@fluidattacks/design 3.33.6-pr → 3.33.6-pr.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/advanced-badge/index.js +1 -1
  5. package/dist/components/advisories-card/index.js +1 -1
  6. package/dist/components/alert/index.js +1 -1
  7. package/dist/components/avatar/index.js +1 -1
  8. package/dist/components/button/index.js +1 -1
  9. package/dist/components/card/card-header/index.js +1 -1
  10. package/dist/components/card/card-with-image/index.js +1 -1
  11. package/dist/components/card/card-with-input/index.js +1 -1
  12. package/dist/components/card/card-with-options/index.js +1 -1
  13. package/dist/components/card/card-with-selector/index.js +1 -1
  14. package/dist/components/card/card-with-switch/index.js +1 -1
  15. package/dist/components/card/index.js +1 -1
  16. package/dist/components/card/indicator-card/index.js +1 -1
  17. package/dist/components/card-container/index.js +1 -1
  18. package/dist/components/carousel/index.js +1 -1
  19. package/dist/components/checkbox/index.js +1 -1
  20. package/dist/components/cloud-image/index.js +1 -1
  21. package/dist/components/code-snippet/index.js +1 -1
  22. package/dist/components/code-snippet/location-code/index.js +1 -1
  23. package/dist/components/colors/index.js +1 -1
  24. package/dist/components/conditions-dialog/index.js +1 -1
  25. package/dist/components/confirm-dialog/index.js +1 -1
  26. package/dist/components/container/index.js +1 -1
  27. package/dist/components/copy-button/index.js +1 -1
  28. package/dist/components/divider/index.js +1 -1
  29. package/dist/components/dropdown/index.js +1 -1
  30. package/dist/components/empty-state/empty-button/index.js +1 -1
  31. package/dist/components/empty-state/index.js +1 -1
  32. package/dist/components/fa-tag/index.js +1 -1
  33. package/dist/components/file-preview/index.js +1 -1
  34. package/dist/components/filters/active-filters/active-filter/index.js +1 -1
  35. package/dist/components/filters/active-filters/index.js +1 -1
  36. package/dist/components/filters/context/index.js +1 -1
  37. package/dist/components/filters/filters-menu/index.js +1 -1
  38. package/dist/components/filters/index.js +1 -1
  39. package/dist/components/filters/options-menu/index.js +1 -1
  40. package/dist/components/filters/options-menu/options/index.js +1 -1
  41. package/dist/components/filters/search/no-matches/index.js +1 -1
  42. package/dist/components/form/index.js +1 -1
  43. package/dist/components/form/inner-form/index.js +1 -1
  44. package/dist/components/grid-container/index.js +1 -1
  45. package/dist/components/group-selector/index.js +1 -1
  46. package/dist/components/group-selector/option-container/index.js +1 -1
  47. package/dist/components/icon/index.js +1 -1
  48. package/dist/components/icon-button/index.js +1 -1
  49. package/dist/components/indicator-card-db/index.js +1 -1
  50. package/dist/components/info-sidebar/index.js +1 -1
  51. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  52. package/dist/components/inputs/fields/combobox/index.js +1 -1
  53. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  54. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  55. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  56. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  57. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  58. package/dist/components/inputs/fields/date/index.js +1 -1
  59. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  60. package/dist/components/inputs/fields/date-range/index.js +1 -1
  61. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  62. package/dist/components/inputs/fields/date-time/index.js +1 -1
  63. package/dist/components/inputs/fields/editable/index.js +1 -1
  64. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  65. package/dist/components/inputs/fields/input-array/index.js +1 -1
  66. package/dist/components/inputs/fields/input-file/default/index.js +1 -1
  67. package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -1
  68. package/dist/components/inputs/fields/input-file/index.js +1 -1
  69. package/dist/components/inputs/fields/input-section/index.js +1 -1
  70. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  71. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  72. package/dist/components/inputs/fields/number/index.js +1 -1
  73. package/dist/components/inputs/fields/number-range/index.js +1 -1
  74. package/dist/components/inputs/fields/phone/index.js +1 -1
  75. package/dist/components/inputs/fields/text-area/index.js +1 -1
  76. package/dist/components/inputs/fields/text-input/index.js +1 -1
  77. package/dist/components/inputs/index.js +1 -1
  78. package/dist/components/inputs/label/index.js +1 -1
  79. package/dist/components/inputs/outline-container/index.js +1 -1
  80. package/dist/components/inputs/utils/action-button/index.js +1 -1
  81. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  82. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  83. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  84. package/dist/components/inputs/utils/dialog/index.js +1 -1
  85. package/dist/components/inputs/utils/number-field/index.js +1 -1
  86. package/dist/components/inputs/utils/popover/index.js +1 -1
  87. package/dist/components/item-card-db/index.js +1 -1
  88. package/dist/components/layout/categories/buttons/index.js +1 -1
  89. package/dist/components/layout/categories/column/index.js +1 -1
  90. package/dist/components/layout/categories/gap/index.js +1 -1
  91. package/dist/components/layout/categories/row/index.js +1 -1
  92. package/dist/components/layout/index.js +1 -1
  93. package/dist/components/link/index.js +1 -1
  94. package/dist/components/list-item/index.js +1 -1
  95. package/dist/components/little-flag/index.js +1 -1
  96. package/dist/components/loading/index.js +1 -1
  97. package/dist/components/logo/index.js +1 -1
  98. package/dist/components/lottie/index.js +1 -1
  99. package/dist/components/menu/index.js +1 -1
  100. package/dist/components/message-banner/index.js +1 -1
  101. package/dist/components/modal/columns-modal/index.js +1 -1
  102. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  103. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  104. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  105. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  106. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  107. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  108. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  109. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  110. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  111. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  112. package/dist/components/modal/filters-modal/index.js +1 -1
  113. package/dist/components/modal/footer/index.js +1 -1
  114. package/dist/components/modal/header/index.js +1 -1
  115. package/dist/components/modal/index.js +1 -1
  116. package/dist/components/modal/modal-confirm/index.js +1 -1
  117. package/dist/components/notification/index.js +1 -1
  118. package/dist/components/notification-sign/index.js +1 -1
  119. package/dist/components/oauth-selector/index.js +1 -1
  120. package/dist/components/oauth-selector/option-container/index.js +1 -1
  121. package/dist/components/paginator-db/btn/index.js +1 -1
  122. package/dist/components/paginator-db/dropdown/index.js +1 -1
  123. package/dist/components/paginator-db/index.js +1 -1
  124. package/dist/components/pop-up/description/index.js +1 -1
  125. package/dist/components/pop-up/index.js +1 -1
  126. package/dist/components/premium-feature/index.js +1 -1
  127. package/dist/components/priority-cards/card/index.js +1 -1
  128. package/dist/components/priority-cards/index.js +1 -1
  129. package/dist/components/priority-score/index.js +1 -1
  130. package/dist/components/progress-bar/index.js +1 -1
  131. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  132. package/dist/components/progress-indicator/index.js +1 -1
  133. package/dist/components/progress-indicator/step/index.js +1 -1
  134. package/dist/components/radio-button/index.js +1 -1
  135. package/dist/components/rank-position/icon/index.js +1 -1
  136. package/dist/components/rank-position/index.js +1 -1
  137. package/dist/components/rules-card/index.js +1 -1
  138. package/dist/components/scroll-button/index.js +1 -1
  139. package/dist/components/search/index.js +1 -1
  140. package/dist/components/search-dropdown/index.js +1 -1
  141. package/dist/components/severity-badge/index.js +1 -1
  142. package/dist/components/severity-overview/badge/index.js +1 -1
  143. package/dist/components/severity-overview/index.js +1 -1
  144. package/dist/components/show-on-hover/index.js +1 -1
  145. package/dist/components/slide-out-menu/index.js +1 -1
  146. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  147. package/dist/components/slider/index.js +1 -1
  148. package/dist/components/slider/thumb/index.js +1 -1
  149. package/dist/components/step-lapse/index.js +1 -1
  150. package/dist/components/table/context/index.js +1 -1
  151. package/dist/components/table/export-csv/index.js +1 -1
  152. package/dist/components/table/index.js +1 -1
  153. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  154. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  155. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  156. package/dist/components/table/sort-icon/index.js +1 -1
  157. package/dist/components/table/table-body/index.js +1 -1
  158. package/dist/components/table/table-column-toggle/index.js +1 -1
  159. package/dist/components/table/table-content/head/index.js +1 -1
  160. package/dist/components/table/table-content/index.js +1 -1
  161. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  162. package/dist/components/table/table-footer/index.js +1 -1
  163. package/dist/components/table/table-options/caption-content/index.js +1 -1
  164. package/dist/components/table/table-options/controls-content/index.js +1 -1
  165. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  166. package/dist/components/table/table-options/index.js +1 -1
  167. package/dist/components/table/wrapper/index.js +1 -1
  168. package/dist/components/table-button/index.js +1 -1
  169. package/dist/components/table-content/index.js +1 -1
  170. package/dist/components/table-content/item-content/index.js +1 -1
  171. package/dist/components/tabs/index.js +1 -1
  172. package/dist/components/tabs/tab/index.js +1 -1
  173. package/dist/components/tag/index.js +1 -1
  174. package/dist/components/timeline/card/index.js +1 -1
  175. package/dist/components/timeline/index.js +1 -1
  176. package/dist/components/toggle/index.js +1 -1
  177. package/dist/components/tooltip/index.js +1 -1
  178. package/dist/components/tour/index.js +1 -1
  179. package/dist/components/typography/heading/index.js +1 -1
  180. package/dist/components/typography/index.js +1 -1
  181. package/dist/components/typography/span/index.js +1 -1
  182. package/dist/components/typography/text/index.js +1 -1
  183. package/dist/components/weaknesses-card/index.js +1 -1
  184. package/dist/{components-dwtjBSq5.mjs → components-C3I3PDNX.mjs} +186 -185
  185. package/dist/{components-Cy3_aZPL.js → components-gK5rY14r.js} +80 -80
  186. package/dist/context/index.js +1 -1
  187. package/dist/hooks/index.d.ts +3 -2
  188. package/dist/hooks/index.js +1 -1
  189. package/dist/index.js +1 -1
  190. package/dist/{vendor-D0NwKL2j.mjs → vendor-C0CrxSAa.mjs} +4010 -4010
  191. package/dist/{vendor-CfI-J17Q.js → vendor-uQRonpxh.js} +9 -9
  192. package/package.json +1 -1
@@ -57,21 +57,22 @@ __p += '`),Wt&&(Ze+=`' +
57
57
  function print() { __p += __j.call(arguments, '') }
58
58
  `:`;
59
59
  `)+Ze+`return __p
60
- }`;var Ot=H5(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Ot.source=Ze,Tg(Ot))throw Ot;return Ot}function Cj(u){return an(u).toLowerCase()}function wj(u){return an(u).toUpperCase()}function Aj(u,d,y){if(u=an(u),u&&(y||d===n))return Nf(u);if(!u||!(d=yi(d)))return u;var S=_(u),N=_(d),re=al(S,N),ye=cr(S,N)+1;return us(S,re,ye).join("")}function Sj(u,d,y){if(u=an(u),u&&(y||d===n))return u.slice(0,B(u)+1);if(!u||!(d=yi(d)))return u;var S=_(u),N=cr(S,_(d))+1;return us(S,0,N).join("")}function Tj(u,d,y){if(u=an(u),u&&(y||d===n))return u.replace(wn,"");if(!u||!(d=yi(d)))return u;var S=_(u),N=al(S,_(d));return us(S,N).join("")}function Pj(u,d){var y=ae,S=O;if(_n(d)){var N="separator"in d?d.separator:N;y="length"in d?Mt(d.length):y,S="omission"in d?yi(d.omission):S}u=an(u);var re=u.length;if(wr(u)){var ye=_(u);re=ye.length}if(y>=re)return u;var we=y-D(S);if(we<1)return S;var Pe=ye?us(ye,0,we).join(""):u.slice(0,we);if(N===n)return Pe+S;if(ye&&(we+=Pe.length-we),Pg(N)){if(u.slice(we).search(N)){var Ue,He=Pe;for(N.global||(N=j(N.source,an(dn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(He);)var Ze=Ue.index;Pe=Pe.slice(0,Ze===n?we:Ze)}}else if(u.indexOf(yi(N),we)!=we){var ot=Pe.lastIndexOf(N);ot>-1&&(Pe=Pe.slice(0,ot))}return Pe+S}function _j(u){return u=an(u),u&&uo.test(u)?u.replace(bt,U):u}var Bj=cl(function(u,d,y){return u+(y?" ":"")+d.toUpperCase()}),Fg=GD("toUpperCase");function W5(u,d,y){return u=an(u),d=y?n:d,d===n?Kc(u)?De(u):qm(u):u.match(d)||[]}var H5=Lt(function(u,d){try{return In(u,n,d)}catch(y){return Tg(y)?y:new he(y)}}),Fj=To(function(u,d){return fn(d,function(y){y=Ua(y),Ao(u,y,Ag(u[y],u))}),u});function kj(u){var d=u==null?0:u.length,y=$t();return u=d?un(u,function(S){if(typeof S[1]!="function")throw new ne(o);return[y(S[0]),S[1]]}):[],Lt(function(S){for(var N=-1;++N<d;){var re=u[N];if(In(re[0],this,S))return In(re[1],this,S)}})}function Mj(u){return aO(Mi(u,m))}function kg(u){return function(){return u}}function Rj(u,d){return u==null||u!==u?d:u}var Ij=ZD(),Oj=ZD(!0);function ei(u){return u}function Mg(u){return AD(typeof u=="function"?u:Mi(u,m))}function Lj(u){return TD(Mi(u,m))}function Vj(u,d){return PD(u,Mi(d,m))}var Nj=Lt(function(u,d){return function(y){return Gc(y,u,d)}}),jj=Lt(function(u,d){return function(y){return Gc(u,y,d)}});function Rg(u,d,y){var S=fr(d),N=Wf(d,S);y==null&&!(_n(d)&&(N.length||!S.length))&&(y=d,d=u,u=this,N=Wf(d,fr(d)));var re=!(_n(y)&&"chain"in y)||!!y.chain,ye=_o(u);return fn(N,function(we){var Pe=d[we];u[we]=Pe,ye&&(u.prototype[we]=function(){var Ue=this.__chain__;if(re||Ue){var He=u(this.__wrapped__),Ze=He.__actions__=Xr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),He.__chain__=Ue,He}return Pe.apply(u,oa([this.value()],arguments))})}),u}function Kj(){return An._===this&&(An._=ce),this}function Ig(){}function zj(u){return u=Mt(u),Lt(function(d){return _D(d,u)})}var qj=hg(un),Uj=hg(Do),Wj=hg(La);function G5(u){return xg(u)?nl(Ua(u)):$O(u)}function Hj(u){return function(d){return u==null?n:Qs(u,d)}}var Gj=QD(),Yj=QD(!0);function Og(){return[]}function Lg(){return!1}function Zj(){return{}}function Xj(){return""}function Qj(){return!0}function Jj(u,d){if(u=Mt(u),u<1||u>K)return[];var y=oe,S=$n(u,oe);d=$t(d),u-=oe;for(var N=il(S,d);++y<u;)d(y);return N}function eK(u){return Bt(u)?un(u,Ua):bi(u)?[u]:Xr(p5(an(u)))}function tK(u){var d=++st;return an(u)+d}var nK=Qf(function(u,d){return u+d},0),rK=pg("ceil"),iK=Qf(function(u,d){return u/d},1),aK=pg("floor");function oK(u){return u&&u.length?Uf(u,ei,Jm):n}function sK(u,d){return u&&u.length?Uf(u,$t(d,2),Jm):n}function uK(u){return Hs(u,ei)}function lK(u,d){return Hs(u,$t(d,2))}function cK(u){return u&&u.length?Uf(u,ei,rg):n}function dK(u,d){return u&&u.length?Uf(u,$t(d,2),rg):n}var fK=Qf(function(u,d){return u*d},1),hK=pg("round"),pK=Qf(function(u,d){return u-d},0);function mK(u){return u&&u.length?Va(u,ei):0}function gK(u,d){return u&&u.length?Va(u,$t(d,2)):0}return X.after=LV,X.ary=w5,X.assign=wN,X.assignIn=V5,X.assignInWith=dh,X.assignWith=AN,X.at=SN,X.before=A5,X.bind=Ag,X.bindAll=Fj,X.bindKey=S5,X.castArray=ZV,X.chain=$5,X.chunk=aL,X.compact=oL,X.concat=sL,X.cond=kj,X.conforms=Mj,X.constant=kg,X.countBy=mV,X.create=TN,X.curry=T5,X.curryRight=P5,X.debounce=_5,X.defaults=PN,X.defaultsDeep=_N,X.defer=VV,X.delay=NV,X.difference=uL,X.differenceBy=lL,X.differenceWith=cL,X.drop=dL,X.dropRight=fL,X.dropRightWhile=hL,X.dropWhile=pL,X.fill=mL,X.filter=vV,X.flatMap=xV,X.flatMapDeep=DV,X.flatMapDepth=$V,X.flatten=y5,X.flattenDeep=gL,X.flattenDepth=vL,X.flip=jV,X.flow=Ij,X.flowRight=Oj,X.fromPairs=yL,X.functions=ON,X.functionsIn=LN,X.groupBy=EV,X.initial=xL,X.intersection=DL,X.intersectionBy=$L,X.intersectionWith=EL,X.invert=NN,X.invertBy=jN,X.invokeMap=wV,X.iteratee=Mg,X.keyBy=AV,X.keys=fr,X.keysIn=Jr,X.map=ah,X.mapKeys=zN,X.mapValues=qN,X.matches=Lj,X.matchesProperty=Vj,X.memoize=sh,X.merge=UN,X.mergeWith=N5,X.method=Nj,X.methodOf=jj,X.mixin=Rg,X.negate=uh,X.nthArg=zj,X.omit=WN,X.omitBy=HN,X.once=KV,X.orderBy=SV,X.over=qj,X.overArgs=zV,X.overEvery=Uj,X.overSome=Wj,X.partial=Sg,X.partialRight=B5,X.partition=TV,X.pick=GN,X.pickBy=j5,X.property=G5,X.propertyOf=Hj,X.pull=SL,X.pullAll=x5,X.pullAllBy=TL,X.pullAllWith=PL,X.pullAt=_L,X.range=Gj,X.rangeRight=Yj,X.rearg=qV,X.reject=BV,X.remove=BL,X.rest=UV,X.reverse=Cg,X.sampleSize=kV,X.set=ZN,X.setWith=XN,X.shuffle=MV,X.slice=FL,X.sortBy=OV,X.sortedUniq=VL,X.sortedUniqBy=NL,X.split=xj,X.spread=WV,X.tail=jL,X.take=KL,X.takeRight=zL,X.takeRightWhile=qL,X.takeWhile=UL,X.tap=oV,X.throttle=HV,X.thru=ih,X.toArray=I5,X.toPairs=K5,X.toPairsIn=z5,X.toPath=eK,X.toPlainObject=L5,X.transform=QN,X.unary=GV,X.union=WL,X.unionBy=HL,X.unionWith=GL,X.uniq=YL,X.uniqBy=ZL,X.uniqWith=XL,X.unset=JN,X.unzip=wg,X.unzipWith=D5,X.update=ej,X.updateWith=tj,X.values=hl,X.valuesIn=nj,X.without=QL,X.words=W5,X.wrap=YV,X.xor=JL,X.xorBy=eV,X.xorWith=tV,X.zip=nV,X.zipObject=rV,X.zipObjectDeep=iV,X.zipWith=aV,X.entries=K5,X.entriesIn=z5,X.extend=V5,X.extendWith=dh,Rg(X,X),X.add=nK,X.attempt=H5,X.camelCase=oj,X.capitalize=q5,X.ceil=rK,X.clamp=rj,X.clone=XV,X.cloneDeep=JV,X.cloneDeepWith=eN,X.cloneWith=QV,X.conformsTo=tN,X.deburr=U5,X.defaultTo=Rj,X.divide=iK,X.endsWith=sj,X.eq=ha,X.escape=uj,X.escapeRegExp=lj,X.every=gV,X.find=yV,X.findIndex=g5,X.findKey=BN,X.findLast=bV,X.findLastIndex=v5,X.findLastKey=FN,X.floor=aK,X.forEach=E5,X.forEachRight=C5,X.forIn=kN,X.forInRight=MN,X.forOwn=RN,X.forOwnRight=IN,X.get=_g,X.gt=nN,X.gte=rN,X.has=VN,X.hasIn=Bg,X.head=b5,X.identity=ei,X.includes=CV,X.indexOf=bL,X.inRange=ij,X.invoke=KN,X.isArguments=tu,X.isArray=Bt,X.isArrayBuffer=iN,X.isArrayLike=Qr,X.isArrayLikeObject=zn,X.isBoolean=aN,X.isBuffer=ls,X.isDate=oN,X.isElement=sN,X.isEmpty=uN,X.isEqual=lN,X.isEqualWith=cN,X.isError=Tg,X.isFinite=dN,X.isFunction=_o,X.isInteger=F5,X.isLength=lh,X.isMap=k5,X.isMatch=fN,X.isMatchWith=hN,X.isNaN=pN,X.isNative=mN,X.isNil=vN,X.isNull=gN,X.isNumber=M5,X.isObject=_n,X.isObjectLike=Vn,X.isPlainObject=ed,X.isRegExp=Pg,X.isSafeInteger=yN,X.isSet=R5,X.isString=ch,X.isSymbol=bi,X.isTypedArray=fl,X.isUndefined=bN,X.isWeakMap=xN,X.isWeakSet=DN,X.join=CL,X.kebabCase=cj,X.last=Ii,X.lastIndexOf=wL,X.lowerCase=dj,X.lowerFirst=fj,X.lt=$N,X.lte=EN,X.max=oK,X.maxBy=sK,X.mean=uK,X.meanBy=lK,X.min=cK,X.minBy=dK,X.stubArray=Og,X.stubFalse=Lg,X.stubObject=Zj,X.stubString=Xj,X.stubTrue=Qj,X.multiply=fK,X.nth=AL,X.noConflict=Kj,X.noop=Ig,X.now=oh,X.pad=hj,X.padEnd=pj,X.padStart=mj,X.parseInt=gj,X.random=aj,X.reduce=PV,X.reduceRight=_V,X.repeat=vj,X.replace=yj,X.result=YN,X.round=hK,X.runInContext=k,X.sample=FV,X.size=RV,X.snakeCase=bj,X.some=IV,X.sortedIndex=kL,X.sortedIndexBy=ML,X.sortedIndexOf=RL,X.sortedLastIndex=IL,X.sortedLastIndexBy=OL,X.sortedLastIndexOf=LL,X.startCase=Dj,X.startsWith=$j,X.subtract=pK,X.sum=mK,X.sumBy=gK,X.template=Ej,X.times=Jj,X.toFinite=Bo,X.toInteger=Mt,X.toLength=O5,X.toLower=Cj,X.toNumber=Oi,X.toSafeInteger=CN,X.toString=an,X.toUpper=wj,X.trim=Aj,X.trimEnd=Sj,X.trimStart=Tj,X.truncate=Pj,X.unescape=_j,X.uniqueId=tK,X.upperCase=Bj,X.upperFirst=Fg,X.each=E5,X.eachRight=C5,X.first=b5,Rg(X,function(){var u={};return za(X,function(d,y){Ve.call(X.prototype,y)||(u[y]=d)}),u}(),{chain:!1}),X.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),fn(["drop","take"],function(u,d){Kt.prototype[u]=function(y){y=y===n?1:Yt(Mt(y),0);var S=this.__filtered__&&!d?new Kt(this):this.clone();return S.__filtered__?S.__takeCount__=$n(y,S.__takeCount__):S.__views__.push({size:$n(y,oe),type:u+(S.__dir__<0?"Right":"")}),S},Kt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),fn(["filter","map","takeWhile"],function(u,d){var y=d+1,S=y==z||y==V;Kt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:$t(N,3),type:y}),re.__filtered__=re.__filtered__||S,re}}),fn(["head","last"],function(u,d){var y="take"+(d?"Right":"");Kt.prototype[u]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(u,d){var y="drop"+(d?"":"Right");Kt.prototype[u]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(ei)},Kt.prototype.find=function(u){return this.filter(u).head()},Kt.prototype.findLast=function(u){return this.reverse().find(u)},Kt.prototype.invokeMap=Lt(function(u,d){return typeof u=="function"?new Kt(this):this.map(function(y){return Gc(y,u,d)})}),Kt.prototype.reject=function(u){return this.filter(uh($t(u)))},Kt.prototype.slice=function(u,d){u=Mt(u);var y=this;return y.__filtered__&&(u>0||d<0)?new Kt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),d!==n&&(d=Mt(d),y=d<0?y.dropRight(-d):y.take(d-u)),y)},Kt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Kt.prototype.toArray=function(){return this.take(oe)},za(Kt.prototype,function(u,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),S=/^(?:head|last)$/.test(d),N=X[S?"take"+(d=="last"?"Right":""):d],re=S||/^find/.test(d);N&&(X.prototype[d]=function(){var ye=this.__wrapped__,we=S?[1]:arguments,Pe=ye instanceof Kt,Ue=we[0],He=Pe||Bt(ye),Ze=function(Vt){var Wt=N.apply(X,oa([Vt],we));return S&&ot?Wt[0]:Wt};He&&y&&typeof Ue=="function"&&Ue.length!=1&&(Pe=He=!1);var ot=this.__chain__,vt=!!this.__actions__.length,Ct=re&&!ot,Ot=Pe&&!vt;if(!re&&He){ye=Ot?ye:new Kt(this);var wt=u.apply(ye,we);return wt.__actions__.push({func:ih,args:[Ze],thisArg:n}),new ki(wt,ot)}return Ct&&Ot?u.apply(this,we):(wt=this.thru(Ze),Ct?S?wt.value()[0]:wt.value():wt)})}),fn(["pop","push","shift","sort","splice","unshift"],function(u){var d=ue[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",S=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(S&&!this.__chain__){var re=this.value();return d.apply(Bt(re)?re:[],N)}return this[y](function(ye){return d.apply(Bt(ye)?ye:[],N)})}}),za(Kt.prototype,function(u,d){var y=X[d];if(y){var S=y.name+"";Ve.call(sl,S)||(sl[S]=[]),sl[S].push({name:d,func:y})}}),sl[Xf(n,w).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=_I,Kt.prototype.reverse=BI,Kt.prototype.value=FI,X.prototype.at=sV,X.prototype.chain=uV,X.prototype.commit=lV,X.prototype.next=cV,X.prototype.plant=fV,X.prototype.reverse=hV,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=pV,X.prototype.first=X.prototype.head,Zn&&(X.prototype[Zn]=dV),X},Re=Ce();_i?((_i.exports=Re)._=Re,Pi._=Re):An._=Re}).call(HW)}(pd,pd.exports)),pd.exports}var jT=GW();const YW=ar(jT);function um(){return typeof window<"u"}function dc(e){return KT(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(KT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function KT(e){return um()?e instanceof Node||e instanceof ui(e).Node:!1}function tr(e){return um()?e instanceof Element||e instanceof ui(e).Element:!1}function Ji(e){return um()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function Jy(e){return!um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}const ZW=new Set(["inline","contents"]);function uf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ZW.has(i)}const XW=new Set(["table","td","th"]);function QW(e){return XW.has(dc(e))}const JW=[":popover-open",":modal"];function lm(e){return JW.some(t=>{try{return e.matches(t)}catch{return!1}})}const eH=["transform","translate","scale","rotate","perspective"],tH=["transform","translate","scale","rotate","perspective","filter"],nH=["paint","layout","strict","content"];function db(e){const t=fb(),n=tr(e)?$a(e):e;return eH.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tH.some(r=>(n.willChange||"").includes(r))||nH.some(r=>(n.contain||"").includes(r))}function rH(e){let t=Cs(e);for(;Ji(t)&&!Gl(t);){if(db(t))return t;if(lm(t))return null;t=Cs(t)}return null}function fb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iH=new Set(["html","body","#document"]);function Gl(e){return iH.has(dc(e))}function $a(e){return ui(e).getComputedStyle(e)}function cm(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cs(e){if(dc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jy(e)&&e.host||so(e);return Jy(t)?t.host:t}function zT(e){const t=Cs(e);return Gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&uf(t)?t:zT(t)}function Vd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=zT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);if(a){const s=e3(o);return t.concat(o,o.visualViewport||[],uf(i)?i:[],s&&n?Vd(s):[])}return t.concat(i,Vd(i,[],n))}function e3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const sp=Math.min,yu=Math.max,up=Math.round,fh=Math.floor,eo=e=>({x:e,y:e}),aH={left:"right",right:"left",bottom:"top",top:"bottom"},oH={start:"end",end:"start"};function IC(e,t,n){return yu(e,sp(t,n))}function dm(e,t){return typeof e=="function"?e(t):e}function Eu(e){return e.split("-")[0]}function fm(e){return e.split("-")[1]}function qT(e){return e==="x"?"y":"x"}function UT(e){return e==="y"?"height":"width"}const sH=new Set(["top","bottom"]);function xs(e){return sH.has(Eu(e))?"y":"x"}function WT(e){return qT(xs(e))}function uH(e,t,n){n===void 0&&(n=!1);const r=fm(e),i=WT(e),a=UT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=lp(o)),[o,lp(o)]}function lH(e){const t=lp(e);return[t3(e),t,t3(t)]}function t3(e){return e.replace(/start|end/g,t=>oH[t])}const OC=["left","right"],LC=["right","left"],cH=["top","bottom"],dH=["bottom","top"];function fH(e,t,n){switch(e){case"top":case"bottom":return n?t?LC:OC:t?OC:LC;case"left":case"right":return t?cH:dH;default:return[]}}function hH(e,t,n,r){const i=fm(e);let a=fH(Eu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(t3)))),a}function lp(e){return e.replace(/left|right|bottom|top/g,t=>aH[t])}function pH(e){return{top:0,right:0,bottom:0,left:0,...e}}function mH(e){return typeof e!="number"?pH(e):{top:e,right:e,bottom:e,left:e}}function cp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function gH(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function vH(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function yH(){return/apple/i.test(navigator.vendor)}function bH(){return gH().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function xH(){return vH().includes("jsdom/")}const VC="data-floating-ui-focusable",DH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function NC(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function n3(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Jy(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function $H(e){return"composedPath"in e?e.composedPath()[0]:e.target}function md(e){return(e==null?void 0:e.ownerDocument)||document}function EH(e){return Ji(e)&&e.matches(DH)}function CH(e){if(!e||xH())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function wH(e){return e?e.hasAttribute(VC)?e:e.querySelector("["+VC+"]")||e:null}function r3(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var AH=typeof document<"u",SH=function(){},Yl=AH?I.useLayoutEffect:SH;const TH={...de};function hh(e){const t=de.useRef(e);return Yl(()=>{t.current=e}),t}const PH=TH.useInsertionEffect,_H=PH||(e=>e());function gd(e){const t=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return _H(()=>{t.current=e}),de.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function jC(e,t,n){let{reference:r,floating:i}=e;const a=xs(t),o=WT(t),s=UT(o),l=Eu(t),f=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(fm(t)){case"start":b[o]-=g*(n&&f?-1:1);break;case"end":b[o]+=g*(n&&f?-1:1);break}return b}const BH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=jC(f,r,l),g=r,b={},$=0;for(let x=0;x<s.length;x++){const{name:A,fn:w}=s[x],{x:C,y:E,data:T,reset:P}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:f,platform:o,elements:{reference:e,floating:t}});h=C??h,m=E??m,b={...b,[A]:{...b[A],...T}},P&&$<=50&&($++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(f=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=jC(f,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function HT(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=dm(t,e),$=mH(b),A=s[g?m==="floating"?"reference":"floating":m],w=cp(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),T=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},P=cp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(w.top-P.top+$.top)/T.y,bottom:(P.bottom-w.bottom+$.bottom)/T.y,left:(w.left-P.left+$.left)/T.x,right:(P.right-w.right+$.right)/T.x}}const FH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:x=!0,...A}=dm(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Eu(i),C=xs(s),E=Eu(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),P=g||(E||!x?[lp(s)]:lH(s)),F=$!=="none";!g&&F&&P.push(...hH(s,x,$,T));const q=[s,...P],te=await HT(t,A),se=[];let ae=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&se.push(te[w]),m){const z=uH(i,o,T);se.push(te[z[0]],te[z[1]])}if(ae=[...ae,{placement:i,overflows:se}],!se.every(z=>z<=0)){var O,Ee;const z=(((O=a.flip)==null?void 0:O.index)||0)+1,G=q[z];if(G&&(!(m==="alignment"?C!==xs(G):!1)||ae.every(K=>xs(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:z,overflows:ae},reset:{placement:G}};let V=(Ee=ae.filter(R=>R.overflows[0]<=0).sort((R,K)=>R.overflows[1]-K.overflows[1])[0])==null?void 0:Ee.placement;if(!V)switch(b){case"bestFit":{var be;const R=(be=ae.filter(K=>{if(F){const fe=xs(K.placement);return fe===C||fe==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(fe=>fe>0).reduce((fe,M)=>fe+M,0)]).sort((K,fe)=>K[1]-fe[1])[0])==null?void 0:be[0];R&&(V=R);break}case"initialPlacement":V=s;break}if(i!==V)return{reset:{placement:V}}}return{}}}},kH=new Set(["left","top"]);async function MH(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Eu(n),s=fm(n),l=xs(n)==="y",f=kH.has(o)?-1:1,h=a&&l?-1:1,m=dm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:$}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof $=="number"&&(b=s==="end"?$*-1:$),l?{x:b*h,y:g*f}:{x:g*f,y:b*h}}const RH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await MH(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},IH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:A=>{let{x:w,y:C}=A;return{x:w,y:C}}},...l}=dm(e,t),f={x:n,y:r},h=await HT(t,l),m=xs(Eu(i)),g=qT(m);let b=f[g],$=f[m];if(a){const A=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=b+h[A],E=b-h[w];b=IC(C,b,E)}if(o){const A=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=$+h[A],E=$-h[w];$=IC(C,$,E)}const x=s.fn({...t,[g]:b,[m]:$});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:o}}}}}};function GT(e){const t=$a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=up(n)!==a||up(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function hb(e){return tr(e)?e:e.contextElement}function Il(e){const t=hb(e);if(!Ji(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=GT(t);let o=(a?up(n.width):n.width)/r,s=(a?up(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const OH=eo(0);function YT(e){const t=ui(e);return!fb()||!t.visualViewport?OH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function Cu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=hb(e);let o=eo(1);t&&(r?tr(r)&&(o=Il(r)):o=Il(e));const s=LH(a,n,r)?YT(a):eo(0);let l=(i.left+s.x)/o.x,f=(i.top+s.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(a){const g=ui(a),b=r&&tr(r)?ui(r):r;let $=g,x=e3($);for(;x&&r&&b!==$;){const A=Il(x),w=x.getBoundingClientRect(),C=$a(x),E=w.left+(x.clientLeft+parseFloat(C.paddingLeft))*A.x,T=w.top+(x.clientTop+parseFloat(C.paddingTop))*A.y;l*=A.x,f*=A.y,h*=A.x,m*=A.y,l+=E,f+=T,$=ui(x),x=e3($)}}return cp({width:h,height:m,x:l,y:f})}function hm(e,t){const n=cm(e).scrollLeft;return t?t.left+n:Cu(so(e)).left+n}function ZT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function VH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=so(r),s=t?lm(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},f=eo(1);const h=eo(0),m=Ji(r);if((m||!m&&!a)&&((dc(r)!=="body"||uf(o))&&(l=cm(r)),Ji(r))){const b=Cu(r);f=Il(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!a?ZT(o,l):eo(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+h.x+g.x,y:n.y*f.y-l.scrollTop*f.y+h.y+g.y}}function NH(e){return Array.from(e.getClientRects())}function jH(e){const t=so(e),n=cm(e),r=e.ownerDocument.body,i=yu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=yu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hm(e);const s=-n.scrollTop;return $a(r).direction==="rtl"&&(o+=yu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const KC=25;function KH(e,t){const n=ui(e),r=so(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const h=fb();(!h||h&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const f=hm(r);if(f<=0){const h=r.ownerDocument,m=h.body,g=getComputedStyle(m),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,$=Math.abs(r.clientWidth-m.clientWidth-b);$<=KC&&(a-=$)}else f<=KC&&(a+=f);return{width:a,height:o,x:s,y:l}}const zH=new Set(["absolute","fixed"]);function qH(e,t){const n=Cu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ji(e)?Il(e):eo(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,f=r*a.y;return{width:o,height:s,x:l,y:f}}function zC(e,t,n){let r;if(t==="viewport")r=KH(e,n);else if(t==="document")r=jH(so(e));else if(tr(t))r=qH(t,n);else{const i=YT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return cp(r)}function XT(e,t){const n=Cs(e);return n===t||!tr(n)||Gl(n)?!1:$a(n).position==="fixed"||XT(n,t)}function UH(e,t){const n=t.get(e);if(n)return n;let r=Vd(e,[],!1).filter(s=>tr(s)&&dc(s)!=="body"),i=null;const a=$a(e).position==="fixed";let o=a?Cs(e):e;for(;tr(o)&&!Gl(o);){const s=$a(o),l=db(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&zH.has(i.position)||uf(o)&&!l&&XT(e,o))?r=r.filter(h=>h!==o):i=s,o=Cs(o)}return t.set(e,r),r}function WH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lm(t)?[]:UH(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((f,h)=>{const m=zC(t,h,i);return f.top=yu(m.top,f.top),f.right=sp(m.right,f.right),f.bottom=sp(m.bottom,f.bottom),f.left=yu(m.left,f.left),f},zC(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function HH(e){const{width:t,height:n}=GT(e);return{width:t,height:n}}function GH(e,t,n){const r=Ji(t),i=so(t),a=n==="fixed",o=Cu(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=eo(0);function f(){l.x=hm(i)}if(r||!r&&!a)if((dc(t)!=="body"||uf(i))&&(s=cm(t)),r){const b=Cu(t,!0,a,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&f();a&&!r&&i&&f();const h=i&&!r&&!a?ZT(i,s):eo(0),m=o.left+s.scrollLeft-l.x-h.x,g=o.top+s.scrollTop-l.y-h.y;return{x:m,y:g,width:o.width,height:o.height}}function s4(e){return $a(e).position==="static"}function qC(e,t){if(!Ji(e)||$a(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function QT(e,t){const n=ui(e);if(lm(e))return n;if(!Ji(e)){let i=Cs(e);for(;i&&!Gl(i);){if(tr(i)&&!s4(i))return i;i=Cs(i)}return n}let r=qC(e,t);for(;r&&QW(r)&&s4(r);)r=qC(r,t);return r&&Gl(r)&&s4(r)&&!db(r)?n:r||rH(e)||n}const YH=async function(e){const t=this.getOffsetParent||QT,n=this.getDimensions,r=await n(e.floating);return{reference:GH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ZH(e){return $a(e).direction==="rtl"}const XH={convertOffsetParentRelativeRectToViewportRelativeRect:VH,getDocumentElement:so,getClippingRect:WH,getOffsetParent:QT,getElementRects:YH,getClientRects:NH,getDimensions:HH,getScale:Il,isElement:tr,isRTL:ZH};function JT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QH(e,t){let n=null,r;const i=so(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const f=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=f;if(s||t(),!g||!b)return;const $=fh(m),x=fh(i.clientWidth-(h+g)),A=fh(i.clientHeight-(m+b)),w=fh(h),E={rootMargin:-$+"px "+-x+"px "+-A+"px "+-w+"px",threshold:yu(0,sp(1,l))||1};let T=!0;function P(F){const q=F[0].intersectionRatio;if(q!==l){if(!T)return o();q?o(!1,q):r=setTimeout(()=>{o(!1,1e-7)},1e3)}q===1&&!JT(f,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return o(!0),a}function JH(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=hb(e),h=i||a?[...f?Vd(f):[],...Vd(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=f&&s?QH(f,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(w=>{let[C]=w;C&&C.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=b)==null||E.observe(t)})),n()}),f&&!l&&b.observe(f),b.observe(t));let $,x=l?Cu(e):null;l&&A();function A(){const w=Cu(e);x&&!JT(x,w)&&n(),x=w,$=requestAnimationFrame(A)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),m==null||m(),(w=b)==null||w.disconnect(),b=null,l&&cancelAnimationFrame($)}}const eG=RH,tG=IH,nG=FH,rG=(e,t,n)=>{const r=new Map,i={platform:XH,...n},a={...i.platform,_c:r};return BH(e,t,{...i,platform:a})};var iG=typeof document<"u",aG=function(){},Ih=iG?I.useLayoutEffect:aG;function dp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!dp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function eP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UC(e,t){const n=eP(e);return Math.round(t*n)/n}function u4(e){const t=de.useRef(e);return Ih(()=>{t.current=e}),t}function tP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:f}=e,[h,m]=de.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=de.useState(r);dp(g,r)||b(r);const[$,x]=de.useState(null),[A,w]=de.useState(null),C=de.useCallback(K=>{K!==F.current&&(F.current=K,x(K))},[]),E=de.useCallback(K=>{K!==q.current&&(q.current=K,w(K))},[]),T=a||$,P=o||A,F=de.useRef(null),q=de.useRef(null),te=de.useRef(h),se=l!=null,ae=u4(l),O=u4(i),Ee=u4(f),be=de.useCallback(()=>{if(!F.current||!q.current)return;const K={placement:t,strategy:n,middleware:g};O.current&&(K.platform=O.current),rG(F.current,q.current,K).then(fe=>{const M={...fe,isPositioned:Ee.current!==!1};z.current&&!dp(te.current,M)&&(te.current=M,No.flushSync(()=>{m(M)}))})},[g,t,n,O,Ee]);Ih(()=>{f===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[f]);const z=de.useRef(!1);Ih(()=>(z.current=!0,()=>{z.current=!1}),[]),Ih(()=>{if(T&&(F.current=T),P&&(q.current=P),T&&P){if(ae.current)return ae.current(T,P,be);be()}},[T,P,be,ae,se]);const G=de.useMemo(()=>({reference:F,floating:q,setReference:C,setFloating:E}),[C,E]),V=de.useMemo(()=>({reference:T,floating:P}),[T,P]),R=de.useMemo(()=>{const K={position:n,left:0,top:0};if(!V.floating)return K;const fe=UC(V.floating,h.x),M=UC(V.floating,h.y);return s?{...K,transform:"translate("+fe+"px, "+M+"px)",...eP(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:M}},[n,s,V.floating,h.x,h.y]);return de.useMemo(()=>({...h,update:be,refs:G,elements:V,floatingStyles:R}),[h,be,G,V,R])}const oG=(e,t)=>({...eG(e),options:[e,t]}),sG=(e,t)=>({...tG(e),options:[e,t]}),uG=(e,t)=>({...nG(e),options:[e,t]}),lG="data-floating-ui-focusable",WC="active",HC="selected",cG={...de};let GC=!1,dG=0;const YC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+dG++;function fG(){const[e,t]=de.useState(()=>GC?YC():void 0);return Yl(()=>{e==null&&t(YC())},[]),de.useEffect(()=>{GC=!0},[]),e}const hG=cG.useId,nP=hG||fG;let i3;process.env.NODE_ENV!=="production"&&(i3=new Set);function pG(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=i3)!=null&&e.has(i))){var a;(a=i3)==null||a.add(i),console.error(i)}}function mG(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const gG=de.createContext(null),vG=de.createContext(null),pb=()=>{var e;return((e=de.useContext(gG))==null?void 0:e.id)||null},rP=()=>de.useContext(vG);function iP(e){return"data-floating-ui-"+e}function Ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const ZC=iP("safe-polygon");function l4(e,t,n){if(n&&!r3(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function c4(e){return typeof e=="function"?e():e}function yG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:l=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=rP(),$=pb(),x=hh(f),A=hh(l),w=hh(n),C=hh(m),E=de.useRef(),T=de.useRef(-1),P=de.useRef(),F=de.useRef(-1),q=de.useRef(!0),te=de.useRef(!1),se=de.useRef(()=>{}),ae=de.useRef(!1),O=gd(()=>{var R;const K=(R=i.current.openEvent)==null?void 0:R.type;return(K==null?void 0:K.includes("mouse"))&&K!=="mousedown"});de.useEffect(()=>{if(!s)return;function R(K){let{open:fe}=K;fe||(Ni(T),Ni(F),q.current=!0,ae.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[s,a]),de.useEffect(()=>{if(!s||!x.current||!n)return;function R(fe){O()&&r(!1,fe,"hover")}const K=md(o.floating).documentElement;return K.addEventListener("mouseleave",R),()=>{K.removeEventListener("mouseleave",R)}},[o.floating,n,r,s,x,O]);const Ee=de.useCallback(function(R,K,fe){K===void 0&&(K=!0),fe===void 0&&(fe="hover");const M=l4(A.current,"close",E.current);M&&!P.current?(Ni(T),T.current=window.setTimeout(()=>r(!1,R,fe),M)):K&&(Ni(T),r(!1,R,fe))},[A,r]),be=gd(()=>{se.current(),P.current=void 0}),z=gd(()=>{if(te.current){const R=md(o.floating).body;R.style.pointerEvents="",R.removeAttribute(ZC),te.current=!1}}),G=gd(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);de.useEffect(()=>{if(!s)return;function R(le){if(Ni(T),q.current=!1,h&&!r3(E.current)||c4(C.current)>0&&!l4(A.current,"open"))return;const Se=l4(A.current,"open",E.current);Se?T.current=window.setTimeout(()=>{w.current||r(!0,le,"hover")},Se):n||r(!0,le,"hover")}function K(le){if(G()){z();return}se.current();const Se=md(o.floating);if(Ni(F),ae.current=!1,x.current&&i.current.floatingContext){n||Ni(T),P.current=x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le,!0,"safe-polygon")}});const Be=P.current;Se.addEventListener("mousemove",Be),se.current=()=>{Se.removeEventListener("mousemove",Be)};return}(E.current==="touch"?!n3(o.floating,le.relatedTarget):!0)&&Ee(le)}function fe(le){G()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le)}})(le))}function M(){Ni(T)}function oe(le){G()||Ee(le,!1)}if(tr(o.domReference)){const le=o.domReference,Se=o.floating;return n&&le.addEventListener("mouseleave",fe),g&&le.addEventListener("mousemove",R,{once:!0}),le.addEventListener("mouseenter",R),le.addEventListener("mouseleave",K),Se&&(Se.addEventListener("mouseleave",fe),Se.addEventListener("mouseenter",M),Se.addEventListener("mouseleave",oe)),()=>{n&&le.removeEventListener("mouseleave",fe),g&&le.removeEventListener("mousemove",R),le.removeEventListener("mouseenter",R),le.removeEventListener("mouseleave",K),Se&&(Se.removeEventListener("mouseleave",fe),Se.removeEventListener("mouseenter",M),Se.removeEventListener("mouseleave",oe))}}},[o,s,e,h,g,Ee,be,z,r,n,w,b,A,x,i,G,C]),Yl(()=>{var R;if(s&&n&&(R=x.current)!=null&&(R=R.__options)!=null&&R.blockPointerEvents&&O()){te.current=!0;const fe=o.floating;if(tr(o.domReference)&&fe){var K;const M=md(o.floating).body;M.setAttribute(ZC,"");const oe=o.domReference,le=b==null||(K=b.nodesRef.current.find(Se=>Se.id===$))==null||(K=K.context)==null?void 0:K.elements.floating;return le&&(le.style.pointerEvents=""),M.style.pointerEvents="none",oe.style.pointerEvents="auto",fe.style.pointerEvents="auto",()=>{M.style.pointerEvents="",oe.style.pointerEvents="",fe.style.pointerEvents=""}}}},[s,n,$,o,b,x,O]),Yl(()=>{n||(E.current=void 0,ae.current=!1,be(),z())},[n,be,z]),de.useEffect(()=>()=>{be(),Ni(T),Ni(F),z()},[s,o.domReference,be,z]);const V=de.useMemo(()=>{function R(K){E.current=K.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(K){const{nativeEvent:fe}=K;function M(){!q.current&&!w.current&&r(!0,fe,"hover")}h&&!r3(E.current)||n||c4(C.current)===0||ae.current&&K.movementX**2+K.movementY**2<2||(Ni(F),E.current==="touch"?M():(ae.current=!0,F.current=window.setTimeout(M,c4(C.current))))}}},[h,r,n,w,C]);return de.useMemo(()=>s?{reference:V}:{},[s,V])}function bG(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=nP(),a=de.useRef({}),[o]=de.useState(()=>mG()),s=pb()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&pG("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,f]=de.useState(r.reference),h=gd((b,$,x)=>{a.current.openEvent=b?$:void 0,o.emit("openchange",{open:b,event:$,reason:x,nested:s}),n==null||n(b,$,x)}),m=de.useMemo(()=>({setPositionReference:f}),[]),g=de.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function xG(e){e===void 0&&(e={});const{nodeId:t}=e,n=bG({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=de.useState(null),[s,l]=de.useState(null),h=(i==null?void 0:i.domReference)||a,m=de.useRef(null),g=rP();Yl(()=>{h&&(m.current=h)},[h]);const b=tP({...e,elements:{...i,...s&&{reference:s}}}),$=de.useCallback(E=>{const T=tr(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;l(T),b.refs.setReference(T)},[b.refs]),x=de.useCallback(E=>{(tr(E)||E===null)&&(m.current=E,o(E)),(tr(b.refs.reference.current)||b.refs.reference.current===null||E!==null&&!tr(E))&&b.refs.setReference(E)},[b.refs]),A=de.useMemo(()=>({...b.refs,setReference:x,setPositionReference:$,domReference:m}),[b.refs,x,$]),w=de.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=de.useMemo(()=>({...b,...r,refs:A,elements:w,nodeId:t}),[b,A,w,t,r]);return Yl(()=>{r.dataRef.current.floatingContext=C;const E=g==null?void 0:g.nodesRef.current.find(T=>T.id===t);E&&(E.context=C)}),de.useMemo(()=>({...b,context:C,refs:A,elements:w}),[b,A,w,C])}function d4(){return bH()&&yH()}function DG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:l=!0}=t,f=de.useRef(!1),h=de.useRef(-1),m=de.useRef(!0);de.useEffect(()=>{if(!s)return;const b=ui(o.domReference);function $(){!n&&Ji(o.domReference)&&o.domReference===NC(md(o.domReference))&&(f.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",$),d4()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",$),d4()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[o.domReference,n,s]),de.useEffect(()=>{if(!s)return;function b($){let{reason:x}=$;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,s]),de.useEffect(()=>()=>{Ni(h)},[]);const g=de.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(b){if(f.current)return;const $=$H(b.nativeEvent);if(l&&tr($)){if(d4()&&!b.relatedTarget){if(!m.current&&!EH($))return}else if(!CH($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){f.current=!1;const $=b.relatedTarget,x=b.nativeEvent,A=tr($)&&$.hasAttribute(iP("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=NC(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||n3((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||n3(o.domReference,C)||A||r(!1,x,"focus")})}}),[a,o.domReference,r,l]);return de.useMemo(()=>s?{reference:g}:{},[s,g])}function f4(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[WC]:o,[HC]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[lG]:""},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[f,h]=l;if(!(i&&[WC,HC].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),o[f]=function(){for(var g,b=arguments.length,$=new Array(b),x=0;x<b;x++)$[x]=arguments[x];return(g=r.get(f))==null?void 0:g.map(A=>A(...$)).find(A=>A!==void 0)}}}else o[f]=h}),o),{})}}function $G(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=de.useCallback(s=>f4(s,e,"reference"),t),a=de.useCallback(s=>f4(s,e,"floating"),n),o=de.useCallback(s=>f4(s,e,"item"),r);return de.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const EG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function CG(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:o}=e,{enabled:s=!0,role:l="dialog"}=t,f=nP(),h=((n=a.domReference)==null?void 0:n.id)||f,m=de.useMemo(()=>{var C;return((C=wH(a.floating))==null?void 0:C.id)||o},[a.floating,o]),g=(r=EG.get(l))!=null?r:l,$=pb()!=null,x=de.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&$&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,$,i,h,l]),A=de.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),w=de.useCallback(C=>{let{active:E,selected:T}=C;const P={role:"option",...E&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{...P,"aria-selected":T}}return{}},[m,l]);return de.useMemo(()=>s?{reference:x,floating:A,item:w}:{},[s,x,A,w])}var lf=e=>e.type==="checkbox",lu=e=>e instanceof Date,ni=e=>e==null;const aP=e=>typeof e=="object";var nr=e=>!ni(e)&&!Array.isArray(e)&&aP(e)&&!lu(e),oP=e=>nr(e)&&e.target?lf(e.target)?e.target.checked:e.target.value:e,wG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,sP=(e,t)=>e.has(wG(t)),AG=e=>{const t=e.constructor&&e.constructor.prototype;return nr(t)&&t.hasOwnProperty("isPrototypeOf")},mb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function En(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(mb&&(e instanceof Blob||r))&&(n||nr(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!AG(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=En(e[i]));else return e;return t}var pm=e=>/^\w*$/.test(e),vn=e=>e===void 0,mm=e=>Array.isArray(e)?e.filter(Boolean):[],gb=e=>mm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!nr(e))return n;const r=(pm(t)?[t]:gb(t)).reduce((i,a)=>ni(i)?i:i[a],e);return vn(r)||r===e?vn(e[t])?n:e[t]:r},Ei=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=pm(t)?[t]:gb(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const f=e[s];l=nr(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const fp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vb=de.default.createContext(null);vb.displayName="HookFormContext";const cf=()=>de.default.useContext(vb),SG=e=>{const{children:t,...n}=e;return de.default.createElement(vb.Provider,{value:n},t)};var uP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Wi.all&&(t._proxyFormState[o]=!r||Wi.all),n&&(n[o]=!0),e[o]}});return i};const gm=typeof window<"u"?de.default.useLayoutEffect:de.default.useEffect;function TG(e){const t=cf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=de.default.useState(n._formState),l=de.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return gm(()=>n._subscribe({name:i,formState:l.current,exact:a,callback:f=>{!r&&s({...n._formState,...f})}}),[i,r,a]),de.default.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),de.default.useMemo(()=>uP(o,n,l.current,!1),[o,n])}var Ci=e=>typeof e=="string",lP=(e,t,n,r,i)=>Ci(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),it(n,a))):(r&&(t.watchAll=!0),n),a3=e=>ni(e)||!aP(e);function Ro(e,t,n=new WeakSet){if(a3(e)||a3(t))return e===t;if(lu(e)&&lu(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const o=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const s=t[a];if(lu(o)&&lu(s)||nr(o)&&nr(s)||Array.isArray(o)&&Array.isArray(s)?!Ro(o,s,n):o!==s)return!1}}return!0}function cP(e){const t=cf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},l=de.default.useRef(i),f=de.default.useRef(s),h=de.default.useRef(void 0);f.current=s;const m=de.default.useMemo(()=>n._getWatch(r,l.current),[n,r]),[g,b]=de.default.useState(f.current?f.current(m):m);return gm(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:$=>{if(!a){const x=lP(r,n._names,$.values||n._formValues,!1,l.current);if(f.current){const A=f.current(x);Ro(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,o]),de.default.useEffect(()=>n._removeUnmounted()),g}function dP(e){const t=cf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:o}=e,s=sP(i._names.array,n),l=de.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,o)),[i,n,o]),f=cP({control:i,name:n,defaultValue:l,exact:!0}),h=TG({control:i,name:n,exact:!0}),m=de.default.useRef(e),g=de.default.useRef(void 0),b=de.default.useRef(i.register(n,{...e.rules,value:f,...Ei(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const $=de.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),x=de.default.useCallback(E=>b.current.onChange({target:{value:oP(E),name:n},type:fp.CHANGE}),[n]),A=de.default.useCallback(()=>b.current.onBlur({target:{value:it(i._formValues,n),name:n},type:fp.BLUR}),[n,i._formValues]),w=de.default.useCallback(E=>{const T=it(i._fields,n);T&&E&&(T._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:P=>E.setCustomValidity(P),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=de.default.useMemo(()=>({name:n,value:f,...Ei(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:x,onBlur:A,ref:w}),[n,r,h.disabled,x,A,w,f]);return de.default.useEffect(()=>{const E=i._options.shouldUnregister||a,T=g.current;T&&T!==n&&!s&&i.unregister(T),i.register(n,{...m.current.rules,...Ei(m.current.disabled)?{disabled:m.current.disabled}:{}});const P=(F,q)=>{const te=it(i._fields,F);te&&te._f&&(te._f.mount=q)};if(P(n,!0),E){const F=En(it(i._options.defaultValues,n,m.current.defaultValue));nn(i._defaultValues,n,F),vn(it(i._formValues,n))&&nn(i._formValues,n,F)}return!s&&i.register(n),g.current=n,()=>{(s?E&&!i._state.action:E)?i.unregister(n):P(n,!1)}},[n,i,s,a]),de.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),de.default.useMemo(()=>({field:C,formState:h,fieldState:$}),[C,h,$])}const PG=e=>e.render(dP(e));var fP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ai=e=>Array.isArray(e)?e:[e],XC=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function hP(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&nr(i)&&a){const o=hP(i,a);nr(o)&&(n[r]=o)}else e[r]&&(n[r]=a)}return n}var Lr=e=>nr(e)&&!Object.keys(e).length,yb=e=>e.type==="file",ya=e=>typeof e=="function",hp=e=>{if(!mb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pP=e=>e.type==="select-multiple",bb=e=>e.type==="radio",_G=e=>bb(e)||lf(e),h4=e=>hp(e)&&e.isConnected;function BG(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=vn(e)?r++:e[t[r++]];return e}function FG(e){for(const t in e)if(e.hasOwnProperty(t)&&!vn(e[t]))return!1;return!0}function Wn(e,t){const n=Array.isArray(t)?t:pm(t)?[t]:gb(t),r=n.length===1?e:BG(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(nr(r)&&Lr(r)||Array.isArray(r)&&FG(r))&&Wn(e,n.slice(0,-1)),e}var kG=e=>{for(const t in e)if(ya(e[t]))return!0;return!1};function mP(e){return Array.isArray(e)||nr(e)&&!kG(e)}function o3(e,t={}){for(const n in e)mP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},o3(e[n],t[n])):vn(e[n])||(t[n]=!0);return t}function Dl(e,t,n){n||(n=o3(t));for(const r in e)mP(e[r])?vn(t)||a3(n[r])?n[r]=o3(e[r],Array.isArray(e[r])?[]:{}):Dl(e[r],ni(t)?{}:t[r],n[r]):n[r]=!Ro(e[r],t[r]);return n}const QC={value:!1,isValid:!1},JC={value:!0,isValid:!0};var gP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!vn(e[0].attributes.value)?vn(e[0].value)||e[0].value===""?JC:{value:e[0].value,isValid:!0}:JC:QC}return QC},vP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>vn(e)?e:t?e===""?NaN:e&&+e:n&&Ci(e)?new Date(e):r?r(e):e;const e2={isValid:!1,value:null};var yP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,e2):e2;function t2(e){const t=e.ref;return yb(t)?t.files:bb(t)?yP(e.refs).value:pP(t)?[...t.selectedOptions].map(({value:n})=>n):lf(t)?gP(e.refs).value:vP(vn(t.value)?e.ref.value:t.value,e)}var MG=(e,t,n,r)=>{const i={};for(const a of e){const o=it(t,a);o&&nn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},pp=e=>e instanceof RegExp,td=e=>vn(e)?e:pp(e)?e.source:nr(e)?pp(e.value)?e.value.source:e.value:e,Cl=e=>({isOnSubmit:!e||e===Wi.onSubmit,isOnBlur:e===Wi.onBlur,isOnChange:e===Wi.onChange,isOnAll:e===Wi.all,isOnTouch:e===Wi.onTouched});const n2="AsyncFunction";var RG=e=>!!e&&!!e.validate&&!!(ya(e.validate)&&e.validate.constructor.name===n2||nr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===n2)),IG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),s3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ol=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Ol(s,t))break}else if(nr(s)&&Ol(s,t))break}}};function r2(e,t,n){const r=it(e,n);if(r||pm(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=it(t,a),s=it(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};i.pop()}return{name:n}}var OG=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Lr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Wi.all))},LG=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),VG=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,NG=(e,t)=>!mm(it(e,t)).length&&Wn(e,t),bP=(e,t,n)=>{const r=ai(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e};function i2(e,t,n="validate"){if(Ci(e)||Array.isArray(e)&&e.every(Ci)||Ei(e)&&!e)return{type:n,message:Ci(e)?e:"",ref:t}}var pl=e=>nr(e)&&!pp(e)?e:{value:e,message:""},u3=async(e,t,n,r,i,a)=>{const{ref:o,refs:s,required:l,maxLength:f,minLength:h,min:m,max:g,pattern:b,validate:$,name:x,valueAsNumber:A,mount:w}=e._f,C=it(n,x);if(!w||t.has(x))return{};const E=s?s[0]:o,T=Ee=>{i&&E.reportValidity&&(E.setCustomValidity(Ei(Ee)?"":Ee||""),E.reportValidity())},P={},F=bb(o),q=lf(o),te=F||q,se=(A||yb(o))&&vn(o.value)&&vn(C)||hp(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,ae=fP.bind(null,x,r,P),O=(Ee,be,z,G=ko.maxLength,V=ko.minLength)=>{const R=Ee?be:z;P[x]={type:Ee?G:V,message:R,ref:o,...ae(Ee?G:V,R)}};if(a?!Array.isArray(C)||!C.length:l&&(!te&&(se||ni(C))||Ei(C)&&!C||q&&!gP(s).isValid||F&&!yP(s).isValid)){const{value:Ee,message:be}=Ci(l)?{value:!!l,message:l}:pl(l);if(Ee&&(P[x]={type:ko.required,message:be,ref:E,...ae(ko.required,be)},!r))return T(be),P}if(!se&&(!ni(m)||!ni(g))){let Ee,be;const z=pl(g),G=pl(m);if(!ni(C)&&!isNaN(C)){const V=o.valueAsNumber||C&&+C;ni(z.value)||(Ee=V>z.value),ni(G.value)||(be=V<G.value)}else{const V=o.valueAsDate||new Date(C),R=M=>new Date(new Date().toDateString()+" "+M),K=o.type=="time",fe=o.type=="week";Ci(z.value)&&C&&(Ee=K?R(C)>R(z.value):fe?C>z.value:V>new Date(z.value)),Ci(G.value)&&C&&(be=K?R(C)<R(G.value):fe?C<G.value:V<new Date(G.value))}if((Ee||be)&&(O(!!Ee,z.message,G.message,ko.max,ko.min),!r))return T(P[x].message),P}if((f||h)&&!se&&(Ci(C)||a&&Array.isArray(C))){const Ee=pl(f),be=pl(h),z=!ni(Ee.value)&&C.length>+Ee.value,G=!ni(be.value)&&C.length<+be.value;if((z||G)&&(O(z,Ee.message,be.message),!r))return T(P[x].message),P}if(b&&!se&&Ci(C)){const{value:Ee,message:be}=pl(b);if(pp(Ee)&&!C.match(Ee)&&(P[x]={type:ko.pattern,message:be,ref:o,...ae(ko.pattern,be)},!r))return T(be),P}if($){if(ya($)){const Ee=await $(C,n),be=i2(Ee,E);if(be&&(P[x]={...be,...ae(ko.validate,be.message)},!r))return T(be.message),P}else if(nr($)){let Ee={};for(const be in $){if(!Lr(Ee)&&!r)break;const z=i2(await $[be](C,n),E,be);z&&(Ee={...z,...ae(be,z.message)},T(z.message),r&&(P[x]=Ee))}if(!Lr(Ee)&&(P[x]={ref:E,...Ee},!r))return P}}return T(!0),P};const jG={mode:Wi.onSubmit,reValidateMode:Wi.onChange,shouldFocusError:!0};function KG(e={}){let t={...jG,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ya(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=nr(t.defaultValues)||nr(t.values)?En(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:En(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:XC(),state:XC()},b=t.criteriaMode===Wi.all,$=xe=>Ae=>{clearTimeout(f),f=setTimeout(xe,Ae)},x=async xe=>{if(!t.disabled&&(h.isValid||m.isValid||xe)){const Ae=t.resolver?Lr((await q()).errors):await se(r,!0);Ae!==n.isValid&&g.state.next({isValid:Ae})}},A=(xe,Ae)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((xe||Array.from(s.mount)).forEach(Fe=>{Fe&&(Ae?nn(n.validatingFields,Fe,Ae):Wn(n.validatingFields,Fe))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Lr(n.validatingFields)}))},w=(xe,Ae=[],Fe,Qe,et=!0,Je=!0)=>{if(Qe&&Fe&&!t.disabled){if(o.action=!0,Je&&Array.isArray(it(r,xe))){const gt=Fe(it(r,xe),Qe.argA,Qe.argB);et&&nn(r,xe,gt)}if(Je&&Array.isArray(it(n.errors,xe))){const gt=Fe(it(n.errors,xe),Qe.argA,Qe.argB);et&&nn(n.errors,xe,gt),NG(n.errors,xe)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,xe))){const gt=Fe(it(n.touchedFields,xe),Qe.argA,Qe.argB);et&&nn(n.touchedFields,xe,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Dl(i,a)),g.state.next({name:xe,isDirty:O(xe,Ae),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,xe,Ae)},C=(xe,Ae)=>{nn(n.errors,xe,Ae),g.state.next({errors:n.errors})},E=xe=>{n.errors=xe,g.state.next({errors:n.errors,isValid:!1})},T=(xe,Ae,Fe,Qe)=>{const et=it(r,xe);if(et){const Je=it(a,xe,vn(Fe)?it(i,xe):Fe);vn(Je)||Qe&&Qe.defaultChecked||Ae?nn(a,xe,Ae?Je:t2(et._f)):z(xe,Je),o.mount&&x()}},P=(xe,Ae,Fe,Qe,et)=>{let Je=!1,gt=!1;const kt={name:xe};if(!t.disabled){if(!Fe||Qe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=O(),Je=gt!==kt.isDirty);const Dt=Ro(it(i,xe),Ae);gt=!!it(n.dirtyFields,xe),Dt?Wn(n.dirtyFields,xe):nn(n.dirtyFields,xe,!0),kt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&&gt!==!Dt}if(Fe){const Dt=it(n.touchedFields,xe);Dt||(nn(n.touchedFields,xe,Fe),kt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&Dt!==Fe)}Je&&et&&g.state.next(kt)}return Je?kt:{}},F=(xe,Ae,Fe,Qe)=>{const et=it(n.errors,xe),Je=(h.isValid||m.isValid)&&Ei(Ae)&&n.isValid!==Ae;if(t.delayError&&Fe?(l=$(()=>C(xe,Fe)),l(t.delayError)):(clearTimeout(f),l=null,Fe?nn(n.errors,xe,Fe):Wn(n.errors,xe)),(Fe?!Ro(et,Fe):et)||!Lr(Qe)||Je){const gt={...Qe,...Je&&Ei(Ae)?{isValid:Ae}:{},errors:n.errors,name:xe};n={...n,...gt},g.state.next(gt)}},q=async xe=>{A(xe,!0);const Ae=await t.resolver(a,t.context,MG(xe||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(xe),Ae},te=async xe=>{const{errors:Ae}=await q(xe);if(xe)for(const Fe of xe){const Qe=it(Ae,Fe);Qe?nn(n.errors,Fe,Qe):Wn(n.errors,Fe)}else n.errors=Ae;return Ae},se=async(xe,Ae,Fe={valid:!0})=>{for(const Qe in xe){const et=xe[Qe];if(et){const{_f:Je,...gt}=et;if(Je){const kt=s.array.has(Je.name),Dt=et._f&&RG(et._f);Dt&&h.validatingFields&&A([Je.name],!0);const bn=await u3(et,s.disabled,a,b,t.shouldUseNativeValidation&&!Ae,kt);if(Dt&&h.validatingFields&&A([Je.name]),bn[Je.name]&&(Fe.valid=!1,Ae))break;!Ae&&(it(bn,Je.name)?kt?bP(n.errors,bn,Je.name):nn(n.errors,Je.name,bn[Je.name]):Wn(n.errors,Je.name))}!Lr(gt)&&await se(gt,Ae,Fe)}}return Fe.valid},ae=()=>{for(const xe of s.unMount){const Ae=it(r,xe);Ae&&(Ae._f.refs?Ae._f.refs.every(Fe=>!h4(Fe)):!h4(Ae._f.ref))&&Xe(xe)}s.unMount=new Set},O=(xe,Ae)=>!t.disabled&&(xe&&Ae&&nn(a,xe,Ae),!Ro(M(),i)),Ee=(xe,Ae,Fe)=>lP(xe,s,{...o.mount?a:vn(Ae)?i:Ci(xe)?{[xe]:Ae}:Ae},Fe,Ae),be=xe=>mm(it(o.mount?a:i,xe,t.shouldUnregister?it(i,xe,[]):[])),z=(xe,Ae,Fe={})=>{const Qe=it(r,xe);let et=Ae;if(Qe){const Je=Qe._f;Je&&(!Je.disabled&&nn(a,xe,vP(Ae,Je)),et=hp(Je.ref)&&ni(Ae)?"":Ae,pP(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=et.includes(gt.value)):Je.refs?lf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(et)?gt.checked=!!et.find(kt=>kt===gt.value):gt.checked=et===gt.value||!!et)}):Je.refs.forEach(gt=>gt.checked=gt.value===et):yb(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||g.state.next({name:xe,values:En(a)})))}(Fe.shouldDirty||Fe.shouldTouch)&&P(xe,et,Fe.shouldTouch,Fe.shouldDirty,!0),Fe.shouldValidate&&fe(xe)},G=(xe,Ae,Fe)=>{for(const Qe in Ae){if(!Ae.hasOwnProperty(Qe))return;const et=Ae[Qe],Je=xe+"."+Qe,gt=it(r,Je);(s.array.has(xe)||nr(et)||gt&&!gt._f)&&!lu(et)?G(Je,et,Fe):z(Je,et,Fe)}},V=(xe,Ae,Fe={})=>{const Qe=it(r,xe),et=s.array.has(xe),Je=En(Ae);nn(a,xe,Je),et?(g.array.next({name:xe,values:En(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Fe.shouldDirty&&g.state.next({name:xe,dirtyFields:Dl(i,a),isDirty:O(xe,Je)})):Qe&&!Qe._f&&!ni(Je)?G(xe,Je,Fe):z(xe,Je,Fe),s3(xe,s)&&g.state.next({...n,name:xe}),g.state.next({name:o.mount?xe:void 0,values:En(a)})},R=async xe=>{o.mount=!0;const Ae=xe.target;let Fe=Ae.name,Qe=!0;const et=it(r,Fe),Je=Dt=>{Qe=Number.isNaN(Dt)||lu(Dt)&&isNaN(Dt.getTime())||Ro(Dt,it(a,Fe,Dt))},gt=Cl(t.mode),kt=Cl(t.reValidateMode);if(et){let Dt,bn;const Dr=Ae.type?t2(et._f):oP(xe),zt=xe.type===fp.BLUR||xe.type===fp.FOCUS_OUT,Pt=!IG(et._f)&&!t.resolver&&!it(n.errors,Fe)&&!et._f.deps||VG(zt,it(n.touchedFields,Fe),n.isSubmitted,kt,gt),It=s3(Fe,s,zt);nn(a,Fe,Dr),zt?(!Ae||!Ae.readOnly)&&(et._f.onBlur&&et._f.onBlur(xe),l&&l(0)):et._f.onChange&&et._f.onChange(xe);const qt=P(Fe,Dr,zt),pr=!Lr(qt)||It;if(!zt&&g.state.next({name:Fe,type:xe.type,values:En(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&x():zt||x()),pr&&g.state.next({name:Fe,...It?{}:qt});if(!zt&&It&&g.state.next({...n}),t.resolver){const{errors:Hr}=await q([Fe]);if(Je(Dr),Qe){const li=r2(n.errors,r,Fe),Br=r2(Hr,r,li.name||Fe);Dt=Br.error,Fe=Br.name,bn=Lr(Hr)}}else A([Fe],!0),Dt=(await u3(et,s.disabled,a,b,t.shouldUseNativeValidation))[Fe],A([Fe]),Je(Dr),Qe&&(Dt?bn=!1:(h.isValid||m.isValid)&&(bn=await se(r,!0)));Qe&&(et._f.deps&&(!Array.isArray(et._f.deps)||et._f.deps.length>0)&&fe(et._f.deps),F(Fe,bn,Dt,qt))}},K=(xe,Ae)=>{if(it(n.errors,Ae)&&xe.focus)return xe.focus(),1},fe=async(xe,Ae={})=>{let Fe,Qe;const et=ai(xe);if(t.resolver){const Je=await te(vn(xe)?xe:et);Fe=Lr(Je),Qe=xe?!et.some(gt=>it(Je,gt)):Fe}else xe?(Qe=(await Promise.all(et.map(async Je=>{const gt=it(r,Je);return await se(gt&&gt._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Qe&&!n.isValid)&&x()):Qe=Fe=await se(r);return g.state.next({...!Ci(xe)||(h.isValid||m.isValid)&&Fe!==n.isValid?{}:{name:xe},...t.resolver||!xe?{isValid:Fe}:{},errors:n.errors}),Ae.shouldFocus&&!Qe&&Ol(r,K,xe?et:s.mount),Qe},M=(xe,Ae)=>{let Fe={...o.mount?a:i};return Ae&&(Fe=hP(Ae.dirtyFields?n.dirtyFields:n.touchedFields,Fe)),vn(xe)?Fe:Ci(xe)?it(Fe,xe):xe.map(Qe=>it(Fe,Qe))},oe=(xe,Ae)=>({invalid:!!it((Ae||n).errors,xe),isDirty:!!it((Ae||n).dirtyFields,xe),error:it((Ae||n).errors,xe),isValidating:!!it(n.validatingFields,xe),isTouched:!!it((Ae||n).touchedFields,xe)}),le=xe=>{xe&&ai(xe).forEach(Ae=>Wn(n.errors,Ae)),g.state.next({errors:xe?n.errors:{}})},Se=(xe,Ae,Fe)=>{const Qe=(it(r,xe,{_f:{}})._f||{}).ref,et=it(n.errors,xe)||{},{ref:Je,message:gt,type:kt,...Dt}=et;nn(n.errors,xe,{...Dt,...Ae,ref:Qe}),g.state.next({name:xe,errors:n.errors,isValid:!1}),Fe&&Fe.shouldFocus&&Qe&&Qe.focus&&Qe.focus()},_e=(xe,Ae)=>ya(xe)?g.state.subscribe({next:Fe=>"values"in Fe&&xe(Ee(void 0,Ae),Fe)}):Ee(xe,Ae,!0),Be=xe=>g.state.subscribe({next:Ae=>{LG(xe.name,Ae.name,xe.exact)&&OG(Ae,xe.formState||h,_t,xe.reRenderRoot)&&xe.callback({values:{...a},...n,...Ae,defaultValues:i})}}).unsubscribe,Ge=xe=>(o.mount=!0,m={...m,...xe.formState},Be({...xe,formState:m})),Xe=(xe,Ae={})=>{for(const Fe of xe?ai(xe):s.mount)s.mount.delete(Fe),s.array.delete(Fe),Ae.keepValue||(Wn(r,Fe),Wn(a,Fe)),!Ae.keepError&&Wn(n.errors,Fe),!Ae.keepDirty&&Wn(n.dirtyFields,Fe),!Ae.keepTouched&&Wn(n.touchedFields,Fe),!Ae.keepIsValidating&&Wn(n.validatingFields,Fe),!t.shouldUnregister&&!Ae.keepDefaultValue&&Wn(i,Fe);g.state.next({values:En(a)}),g.state.next({...n,...Ae.keepDirty?{isDirty:O()}:{}}),!Ae.keepIsValid&&x()},Ne=({disabled:xe,name:Ae})=>{(Ei(xe)&&o.mount||xe||s.disabled.has(Ae))&&(xe?s.disabled.add(Ae):s.disabled.delete(Ae))},qe=(xe,Ae={})=>{let Fe=it(r,xe);const Qe=Ei(Ae.disabled)||Ei(t.disabled);return nn(r,xe,{...Fe||{},_f:{...Fe&&Fe._f?Fe._f:{ref:{name:xe}},name:xe,mount:!0,...Ae}}),s.mount.add(xe),Fe?Ne({disabled:Ei(Ae.disabled)?Ae.disabled:t.disabled,name:xe}):T(xe,!0,Ae.value),{...Qe?{disabled:Ae.disabled||t.disabled}:{},...t.progressive?{required:!!Ae.required,min:td(Ae.min),max:td(Ae.max),minLength:td(Ae.minLength),maxLength:td(Ae.maxLength),pattern:td(Ae.pattern)}:{},name:xe,onChange:R,onBlur:R,ref:et=>{if(et){qe(xe,Ae),Fe=it(r,xe);const Je=vn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,gt=_G(Je),kt=Fe._f.refs||[];if(gt?kt.find(Dt=>Dt===Je):Je===Fe._f.ref)return;nn(r,xe,{_f:{...Fe._f,...gt?{refs:[...kt.filter(h4),Je,...Array.isArray(it(i,xe))?[{}]:[]],ref:{type:Je.type,name:xe}}:{ref:Je}}}),T(xe,!1,void 0,Je)}else Fe=it(r,xe,{}),Fe._f&&(Fe._f.mount=!1),(t.shouldUnregister||Ae.shouldUnregister)&&!(sP(s.array,xe)&&o.action)&&s.unMount.add(xe)}}},ke=()=>t.shouldFocusError&&Ol(r,K,s.mount),je=xe=>{Ei(xe)&&(g.state.next({disabled:xe}),Ol(r,(Ae,Fe)=>{const Qe=it(r,Fe);Qe&&(Ae.disabled=Qe._f.disabled||xe,Array.isArray(Qe._f.refs)&&Qe._f.refs.forEach(et=>{et.disabled=Qe._f.disabled||xe}))},0,!1))},Te=(xe,Ae)=>async Fe=>{let Qe;Fe&&(Fe.preventDefault&&Fe.preventDefault(),Fe.persist&&Fe.persist());let et=En(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await q();n.errors=Je,et=En(gt)}else await se(r);if(s.disabled.size)for(const Je of s.disabled)Wn(et,Je);if(Wn(n.errors,"root"),Lr(n.errors)){g.state.next({errors:{}});try{await xe(et,Fe)}catch(Je){Qe=Je}}else Ae&&await Ae({...n.errors},Fe),ke(),setTimeout(ke);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lr(n.errors)&&!Qe,submitCount:n.submitCount+1,errors:n.errors}),Qe)throw Qe},Ye=(xe,Ae={})=>{it(r,xe)&&(vn(Ae.defaultValue)?V(xe,En(it(i,xe))):(V(xe,Ae.defaultValue),nn(i,xe,En(Ae.defaultValue))),Ae.keepTouched||Wn(n.touchedFields,xe),Ae.keepDirty||(Wn(n.dirtyFields,xe),n.isDirty=Ae.defaultValue?O(xe,En(it(i,xe))):O()),Ae.keepError||(Wn(n.errors,xe),h.isValid&&x()),g.state.next({...n}))},ht=(xe,Ae={})=>{const Fe=xe?En(xe):i,Qe=En(Fe),et=Lr(xe),Je=et?i:Qe;if(Ae.keepDefaultValues||(i=Fe),!Ae.keepValues){if(Ae.keepDirtyValues){const gt=new Set([...s.mount,...Object.keys(Dl(i,a))]);for(const kt of Array.from(gt))it(n.dirtyFields,kt)?nn(Je,kt,it(a,kt)):V(kt,it(Je,kt))}else{if(mb&&vn(xe))for(const gt of s.mount){const kt=it(r,gt);if(kt&&kt._f){const Dt=Array.isArray(kt._f.refs)?kt._f.refs[0]:kt._f.ref;if(hp(Dt)){const bn=Dt.closest("form");if(bn){bn.reset();break}}}}if(Ae.keepFieldsRef)for(const gt of s.mount)V(gt,it(Je,gt));else r={}}a=t.shouldUnregister?Ae.keepDefaultValues?En(i):{}:En(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}s={mount:Ae.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Ae.keepIsValid||!!Ae.keepDirtyValues,o.watch=!!t.shouldUnregister,g.state.next({submitCount:Ae.keepSubmitCount?n.submitCount:0,isDirty:et?!1:Ae.keepDirty?n.isDirty:!!(Ae.keepDefaultValues&&!Ro(xe,i)),isSubmitted:Ae.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:Ae.keepDirtyValues?Ae.keepDefaultValues&&a?Dl(i,a):n.dirtyFields:Ae.keepDefaultValues&&xe?Dl(i,xe):Ae.keepDirty?n.dirtyFields:{},touchedFields:Ae.keepTouched?n.touchedFields:{},errors:Ae.keepErrors?n.errors:{},isSubmitSuccessful:Ae.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(xe,Ae)=>ht(ya(xe)?xe(a):xe,Ae),xt=(xe,Ae={})=>{const Fe=it(r,xe),Qe=Fe&&Fe._f;if(Qe){const et=Qe.refs?Qe.refs[0]:Qe.ref;et.focus&&(et.focus(),Ae.shouldSelect&&ya(et.select)&&et.select())}},_t=xe=>{n={...n,...xe}},Jt={control:{register:qe,unregister:Xe,getFieldState:oe,handleSubmit:Te,setError:Se,_subscribe:Be,_runSchema:q,_focusError:ke,_getWatch:Ee,_getDirty:O,_setValid:x,_setFieldArray:w,_setDisabledField:Ne,_setErrors:E,_getFieldArray:be,_reset:ht,_resetDefaultValues:()=>ya(t.defaultValues)&&t.defaultValues().then(xe=>{Ht(xe,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:je,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(xe){o=xe},get _defaultValues(){return i},get _names(){return s},set _names(xe){s=xe},get _formState(){return n},get _options(){return t},set _options(xe){t={...t,...xe}}},subscribe:Ge,trigger:fe,register:qe,handleSubmit:Te,watch:_e,setValue:V,getValues:M,reset:Ht,resetField:Ye,clearErrors:le,unregister:Xe,setError:Se,setFocus:xt,getFieldState:oe};return{...Jt,formControl:Jt}}var cs=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},p4=(e,t,n={})=>n.shouldFocus||vn(n.shouldFocus)?n.focusName||`${e}.${vn(n.focusIndex)?t:n.focusIndex}.`:"",m4=(e,t)=>[...e,...ai(t)],g4=e=>Array.isArray(e)?e.map(()=>{}):void 0;function v4(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var y4=(e,t,n)=>Array.isArray(e)?(vn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],b4=(e,t)=>[...ai(t),...ai(e)];function zG(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return mm(r).length?r:[]}var x4=(e,t)=>vn(t)?[]:zG(e,ai(t).sort((n,r)=>n-r)),D4=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},a2=(e,t,n)=>(e[t]=n,e);function qG(e){const t=cf(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:o}=e,[s,l]=de.default.useState(n._getFieldArray(r)),f=de.default.useRef(n._getFieldArray(r).map(cs)),h=de.default.useRef(!1);n._names.array.add(r),de.default.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),gm(()=>n._subjects.array.subscribe({next:({values:T,name:P})=>{if(P===r||!P){const F=it(T,r);Array.isArray(F)&&(l(F),f.current=F.map(cs))}}}).unsubscribe,[n,r]);const m=de.default.useCallback(T=>{h.current=!0,n._setFieldArray(r,T)},[n,r]),g=(T,P)=>{const F=ai(En(T)),q=m4(n._getFieldArray(r),F);n._names.focus=p4(r,q.length-1,P),f.current=m4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,m4,{argA:g4(T)})},b=(T,P)=>{const F=ai(En(T)),q=b4(n._getFieldArray(r),F);n._names.focus=p4(r,0,P),f.current=b4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,b4,{argA:g4(T)})},$=T=>{const P=x4(n._getFieldArray(r),T);f.current=x4(f.current,T),m(P),l(P),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,P,x4,{argA:T})},x=(T,P,F)=>{const q=ai(En(P)),te=v4(n._getFieldArray(r),T,q);n._names.focus=p4(r,T,F),f.current=v4(f.current,T,q.map(cs)),m(te),l(te),n._setFieldArray(r,te,v4,{argA:T,argB:g4(P)})},A=(T,P)=>{const F=n._getFieldArray(r);D4(F,T,P),D4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,D4,{argA:T,argB:P},!1)},w=(T,P)=>{const F=n._getFieldArray(r);y4(F,T,P),y4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,y4,{argA:T,argB:P},!1)},C=(T,P)=>{const F=En(P),q=a2(n._getFieldArray(r),T,F);f.current=[...q].map((te,se)=>!te||se===T?cs():f.current[se]),m(q),l([...q]),n._setFieldArray(r,q,a2,{argA:T,argB:F},!0,!1)},E=T=>{const P=ai(En(T));f.current=P.map(cs),m([...P]),l([...P]),n._setFieldArray(r,[...P],F=>F,{},!0,!1)};return de.default.useEffect(()=>{if(n._state.action=!1,s3(r,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!Cl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Cl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(T=>{const P=it(T.errors,r),F=it(n._formState.errors,r);(F?!P&&F.type||P&&(F.type!==P.type||F.message!==P.message):P&&P.type)&&(P?nn(n._formState.errors,r,P):Wn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=it(n._fields,r);T&&T._f&&!(Cl(n._options.reValidateMode).isOnSubmit&&Cl(n._options.mode).isOnSubmit)&&u3(T,n._names.disabled,n._formValues,n._options.criteriaMode===Wi.all,n._options.shouldUseNativeValidation,!0).then(P=>!Lr(P)&&n._subjects.state.next({errors:bP(n._formState.errors,P,r)}))}n._subjects.state.next({name:r,values:En(n._formValues)}),n._names.focus&&Ol(n._fields,(T,P)=>{if(n._names.focus&&P.startsWith(n._names.focus)&&T.focus)return T.focus(),1}),n._names.focus="",n._setValid(),h.current=!1},[s,r,n]),de.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const T=(P,F)=>{const q=it(n._fields,P);q&&q._f&&(q._f.mount=F)};n._options.shouldUnregister||a?n.unregister(r):T(r,!1)}),[r,n,i,a]),{swap:de.default.useCallback(A,[m,r,n]),move:de.default.useCallback(w,[m,r,n]),prepend:de.default.useCallback(b,[m,r,n]),append:de.default.useCallback(g,[m,r,n]),remove:de.default.useCallback($,[m,r,n]),insert:de.default.useCallback(x,[m,r,n]),update:de.default.useCallback(C,[m,r,n]),replace:de.default.useCallback(E,[m,r,n]),fields:de.default.useMemo(()=>s.map((T,P)=>({...T,[i]:f.current[P]||cs()})),[s,i])}}function UG(e={}){const t=de.default.useRef(void 0),n=de.default.useRef(void 0),[r,i]=de.default.useState({isDirty:!1,isValidating:!1,isLoading:ya(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ya(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ya(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...s}=KG(e);t.current={...s,formState:r}}const a=t.current.control;return a._options=e,gm(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),a._formState.isReady=!0,o},[a]),de.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),de.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),de.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),de.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),de.default.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),de.default.useEffect(()=>{e.values&&!Ro(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[a,e.values]),de.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=uP(r,a),t.current}function ml(e,t,n){let r=n.initialDeps??[],i;function a(){var o,s,l,f;let h;n.key&&((o=n.debug)!=null&&o.call(n))&&(h=Date.now());const m=e();if(!(m.length!==r.length||m.some(($,x)=>r[x]!==$)))return i;r=m;let b;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(b=Date.now()),i=t(...m),n.key&&((l=n.debug)!=null&&l.call(n))){const $=Math.round((Date.now()-h)*100)/100,x=Math.round((Date.now()-b)*100)/100,A=x/16,w=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${w(x,5)} /${w($,5)} ms`,`
60
+ }`;var Ot=H5(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Ot.source=Ze,Tg(Ot))throw Ot;return Ot}function Cj(u){return an(u).toLowerCase()}function wj(u){return an(u).toUpperCase()}function Aj(u,d,y){if(u=an(u),u&&(y||d===n))return Nf(u);if(!u||!(d=yi(d)))return u;var S=_(u),N=_(d),re=al(S,N),ye=cr(S,N)+1;return us(S,re,ye).join("")}function Sj(u,d,y){if(u=an(u),u&&(y||d===n))return u.slice(0,B(u)+1);if(!u||!(d=yi(d)))return u;var S=_(u),N=cr(S,_(d))+1;return us(S,0,N).join("")}function Tj(u,d,y){if(u=an(u),u&&(y||d===n))return u.replace(wn,"");if(!u||!(d=yi(d)))return u;var S=_(u),N=al(S,_(d));return us(S,N).join("")}function Pj(u,d){var y=ae,S=O;if(_n(d)){var N="separator"in d?d.separator:N;y="length"in d?Mt(d.length):y,S="omission"in d?yi(d.omission):S}u=an(u);var re=u.length;if(wr(u)){var ye=_(u);re=ye.length}if(y>=re)return u;var we=y-D(S);if(we<1)return S;var Pe=ye?us(ye,0,we).join(""):u.slice(0,we);if(N===n)return Pe+S;if(ye&&(we+=Pe.length-we),Pg(N)){if(u.slice(we).search(N)){var Ue,He=Pe;for(N.global||(N=j(N.source,an(dn.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(He);)var Ze=Ue.index;Pe=Pe.slice(0,Ze===n?we:Ze)}}else if(u.indexOf(yi(N),we)!=we){var ot=Pe.lastIndexOf(N);ot>-1&&(Pe=Pe.slice(0,ot))}return Pe+S}function _j(u){return u=an(u),u&&uo.test(u)?u.replace(bt,U):u}var Bj=cl(function(u,d,y){return u+(y?" ":"")+d.toUpperCase()}),Fg=GD("toUpperCase");function W5(u,d,y){return u=an(u),d=y?n:d,d===n?Kc(u)?De(u):qm(u):u.match(d)||[]}var H5=Lt(function(u,d){try{return In(u,n,d)}catch(y){return Tg(y)?y:new he(y)}}),Fj=To(function(u,d){return fn(d,function(y){y=Ua(y),Ao(u,y,Ag(u[y],u))}),u});function kj(u){var d=u==null?0:u.length,y=$t();return u=d?un(u,function(S){if(typeof S[1]!="function")throw new ne(o);return[y(S[0]),S[1]]}):[],Lt(function(S){for(var N=-1;++N<d;){var re=u[N];if(In(re[0],this,S))return In(re[1],this,S)}})}function Mj(u){return aO(Mi(u,m))}function kg(u){return function(){return u}}function Rj(u,d){return u==null||u!==u?d:u}var Ij=ZD(),Oj=ZD(!0);function ei(u){return u}function Mg(u){return AD(typeof u=="function"?u:Mi(u,m))}function Lj(u){return TD(Mi(u,m))}function Vj(u,d){return PD(u,Mi(d,m))}var Nj=Lt(function(u,d){return function(y){return Gc(y,u,d)}}),jj=Lt(function(u,d){return function(y){return Gc(u,y,d)}});function Rg(u,d,y){var S=fr(d),N=Wf(d,S);y==null&&!(_n(d)&&(N.length||!S.length))&&(y=d,d=u,u=this,N=Wf(d,fr(d)));var re=!(_n(y)&&"chain"in y)||!!y.chain,ye=_o(u);return fn(N,function(we){var Pe=d[we];u[we]=Pe,ye&&(u.prototype[we]=function(){var Ue=this.__chain__;if(re||Ue){var He=u(this.__wrapped__),Ze=He.__actions__=Xr(this.__actions__);return Ze.push({func:Pe,args:arguments,thisArg:u}),He.__chain__=Ue,He}return Pe.apply(u,oa([this.value()],arguments))})}),u}function Kj(){return An._===this&&(An._=ce),this}function Ig(){}function zj(u){return u=Mt(u),Lt(function(d){return _D(d,u)})}var qj=hg(un),Uj=hg(Do),Wj=hg(La);function G5(u){return xg(u)?nl(Ua(u)):$O(u)}function Hj(u){return function(d){return u==null?n:Qs(u,d)}}var Gj=QD(),Yj=QD(!0);function Og(){return[]}function Lg(){return!1}function Zj(){return{}}function Xj(){return""}function Qj(){return!0}function Jj(u,d){if(u=Mt(u),u<1||u>K)return[];var y=oe,S=$n(u,oe);d=$t(d),u-=oe;for(var N=il(S,d);++y<u;)d(y);return N}function eK(u){return Bt(u)?un(u,Ua):bi(u)?[u]:Xr(p5(an(u)))}function tK(u){var d=++st;return an(u)+d}var nK=Qf(function(u,d){return u+d},0),rK=pg("ceil"),iK=Qf(function(u,d){return u/d},1),aK=pg("floor");function oK(u){return u&&u.length?Uf(u,ei,Jm):n}function sK(u,d){return u&&u.length?Uf(u,$t(d,2),Jm):n}function uK(u){return Hs(u,ei)}function lK(u,d){return Hs(u,$t(d,2))}function cK(u){return u&&u.length?Uf(u,ei,rg):n}function dK(u,d){return u&&u.length?Uf(u,$t(d,2),rg):n}var fK=Qf(function(u,d){return u*d},1),hK=pg("round"),pK=Qf(function(u,d){return u-d},0);function mK(u){return u&&u.length?Va(u,ei):0}function gK(u,d){return u&&u.length?Va(u,$t(d,2)):0}return X.after=LV,X.ary=w5,X.assign=wN,X.assignIn=V5,X.assignInWith=dh,X.assignWith=AN,X.at=SN,X.before=A5,X.bind=Ag,X.bindAll=Fj,X.bindKey=S5,X.castArray=ZV,X.chain=$5,X.chunk=aL,X.compact=oL,X.concat=sL,X.cond=kj,X.conforms=Mj,X.constant=kg,X.countBy=mV,X.create=TN,X.curry=T5,X.curryRight=P5,X.debounce=_5,X.defaults=PN,X.defaultsDeep=_N,X.defer=VV,X.delay=NV,X.difference=uL,X.differenceBy=lL,X.differenceWith=cL,X.drop=dL,X.dropRight=fL,X.dropRightWhile=hL,X.dropWhile=pL,X.fill=mL,X.filter=vV,X.flatMap=xV,X.flatMapDeep=DV,X.flatMapDepth=$V,X.flatten=y5,X.flattenDeep=gL,X.flattenDepth=vL,X.flip=jV,X.flow=Ij,X.flowRight=Oj,X.fromPairs=yL,X.functions=ON,X.functionsIn=LN,X.groupBy=EV,X.initial=xL,X.intersection=DL,X.intersectionBy=$L,X.intersectionWith=EL,X.invert=NN,X.invertBy=jN,X.invokeMap=wV,X.iteratee=Mg,X.keyBy=AV,X.keys=fr,X.keysIn=Jr,X.map=ah,X.mapKeys=zN,X.mapValues=qN,X.matches=Lj,X.matchesProperty=Vj,X.memoize=sh,X.merge=UN,X.mergeWith=N5,X.method=Nj,X.methodOf=jj,X.mixin=Rg,X.negate=uh,X.nthArg=zj,X.omit=WN,X.omitBy=HN,X.once=KV,X.orderBy=SV,X.over=qj,X.overArgs=zV,X.overEvery=Uj,X.overSome=Wj,X.partial=Sg,X.partialRight=B5,X.partition=TV,X.pick=GN,X.pickBy=j5,X.property=G5,X.propertyOf=Hj,X.pull=SL,X.pullAll=x5,X.pullAllBy=TL,X.pullAllWith=PL,X.pullAt=_L,X.range=Gj,X.rangeRight=Yj,X.rearg=qV,X.reject=BV,X.remove=BL,X.rest=UV,X.reverse=Cg,X.sampleSize=kV,X.set=ZN,X.setWith=XN,X.shuffle=MV,X.slice=FL,X.sortBy=OV,X.sortedUniq=VL,X.sortedUniqBy=NL,X.split=xj,X.spread=WV,X.tail=jL,X.take=KL,X.takeRight=zL,X.takeRightWhile=qL,X.takeWhile=UL,X.tap=oV,X.throttle=HV,X.thru=ih,X.toArray=I5,X.toPairs=K5,X.toPairsIn=z5,X.toPath=eK,X.toPlainObject=L5,X.transform=QN,X.unary=GV,X.union=WL,X.unionBy=HL,X.unionWith=GL,X.uniq=YL,X.uniqBy=ZL,X.uniqWith=XL,X.unset=JN,X.unzip=wg,X.unzipWith=D5,X.update=ej,X.updateWith=tj,X.values=hl,X.valuesIn=nj,X.without=QL,X.words=W5,X.wrap=YV,X.xor=JL,X.xorBy=eV,X.xorWith=tV,X.zip=nV,X.zipObject=rV,X.zipObjectDeep=iV,X.zipWith=aV,X.entries=K5,X.entriesIn=z5,X.extend=V5,X.extendWith=dh,Rg(X,X),X.add=nK,X.attempt=H5,X.camelCase=oj,X.capitalize=q5,X.ceil=rK,X.clamp=rj,X.clone=XV,X.cloneDeep=JV,X.cloneDeepWith=eN,X.cloneWith=QV,X.conformsTo=tN,X.deburr=U5,X.defaultTo=Rj,X.divide=iK,X.endsWith=sj,X.eq=ha,X.escape=uj,X.escapeRegExp=lj,X.every=gV,X.find=yV,X.findIndex=g5,X.findKey=BN,X.findLast=bV,X.findLastIndex=v5,X.findLastKey=FN,X.floor=aK,X.forEach=E5,X.forEachRight=C5,X.forIn=kN,X.forInRight=MN,X.forOwn=RN,X.forOwnRight=IN,X.get=_g,X.gt=nN,X.gte=rN,X.has=VN,X.hasIn=Bg,X.head=b5,X.identity=ei,X.includes=CV,X.indexOf=bL,X.inRange=ij,X.invoke=KN,X.isArguments=tu,X.isArray=Bt,X.isArrayBuffer=iN,X.isArrayLike=Qr,X.isArrayLikeObject=zn,X.isBoolean=aN,X.isBuffer=ls,X.isDate=oN,X.isElement=sN,X.isEmpty=uN,X.isEqual=lN,X.isEqualWith=cN,X.isError=Tg,X.isFinite=dN,X.isFunction=_o,X.isInteger=F5,X.isLength=lh,X.isMap=k5,X.isMatch=fN,X.isMatchWith=hN,X.isNaN=pN,X.isNative=mN,X.isNil=vN,X.isNull=gN,X.isNumber=M5,X.isObject=_n,X.isObjectLike=Vn,X.isPlainObject=ed,X.isRegExp=Pg,X.isSafeInteger=yN,X.isSet=R5,X.isString=ch,X.isSymbol=bi,X.isTypedArray=fl,X.isUndefined=bN,X.isWeakMap=xN,X.isWeakSet=DN,X.join=CL,X.kebabCase=cj,X.last=Ii,X.lastIndexOf=wL,X.lowerCase=dj,X.lowerFirst=fj,X.lt=$N,X.lte=EN,X.max=oK,X.maxBy=sK,X.mean=uK,X.meanBy=lK,X.min=cK,X.minBy=dK,X.stubArray=Og,X.stubFalse=Lg,X.stubObject=Zj,X.stubString=Xj,X.stubTrue=Qj,X.multiply=fK,X.nth=AL,X.noConflict=Kj,X.noop=Ig,X.now=oh,X.pad=hj,X.padEnd=pj,X.padStart=mj,X.parseInt=gj,X.random=aj,X.reduce=PV,X.reduceRight=_V,X.repeat=vj,X.replace=yj,X.result=YN,X.round=hK,X.runInContext=k,X.sample=FV,X.size=RV,X.snakeCase=bj,X.some=IV,X.sortedIndex=kL,X.sortedIndexBy=ML,X.sortedIndexOf=RL,X.sortedLastIndex=IL,X.sortedLastIndexBy=OL,X.sortedLastIndexOf=LL,X.startCase=Dj,X.startsWith=$j,X.subtract=pK,X.sum=mK,X.sumBy=gK,X.template=Ej,X.times=Jj,X.toFinite=Bo,X.toInteger=Mt,X.toLength=O5,X.toLower=Cj,X.toNumber=Oi,X.toSafeInteger=CN,X.toString=an,X.toUpper=wj,X.trim=Aj,X.trimEnd=Sj,X.trimStart=Tj,X.truncate=Pj,X.unescape=_j,X.uniqueId=tK,X.upperCase=Bj,X.upperFirst=Fg,X.each=E5,X.eachRight=C5,X.first=b5,Rg(X,function(){var u={};return za(X,function(d,y){Ve.call(X.prototype,y)||(u[y]=d)}),u}(),{chain:!1}),X.VERSION=r,fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){X[u].placeholder=X}),fn(["drop","take"],function(u,d){Kt.prototype[u]=function(y){y=y===n?1:Yt(Mt(y),0);var S=this.__filtered__&&!d?new Kt(this):this.clone();return S.__filtered__?S.__takeCount__=$n(y,S.__takeCount__):S.__views__.push({size:$n(y,oe),type:u+(S.__dir__<0?"Right":"")}),S},Kt.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),fn(["filter","map","takeWhile"],function(u,d){var y=d+1,S=y==z||y==V;Kt.prototype[u]=function(N){var re=this.clone();return re.__iteratees__.push({iteratee:$t(N,3),type:y}),re.__filtered__=re.__filtered__||S,re}}),fn(["head","last"],function(u,d){var y="take"+(d?"Right":"");Kt.prototype[u]=function(){return this[y](1).value()[0]}}),fn(["initial","tail"],function(u,d){var y="drop"+(d?"":"Right");Kt.prototype[u]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(ei)},Kt.prototype.find=function(u){return this.filter(u).head()},Kt.prototype.findLast=function(u){return this.reverse().find(u)},Kt.prototype.invokeMap=Lt(function(u,d){return typeof u=="function"?new Kt(this):this.map(function(y){return Gc(y,u,d)})}),Kt.prototype.reject=function(u){return this.filter(uh($t(u)))},Kt.prototype.slice=function(u,d){u=Mt(u);var y=this;return y.__filtered__&&(u>0||d<0)?new Kt(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),d!==n&&(d=Mt(d),y=d<0?y.dropRight(-d):y.take(d-u)),y)},Kt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Kt.prototype.toArray=function(){return this.take(oe)},za(Kt.prototype,function(u,d){var y=/^(?:filter|find|map|reject)|While$/.test(d),S=/^(?:head|last)$/.test(d),N=X[S?"take"+(d=="last"?"Right":""):d],re=S||/^find/.test(d);N&&(X.prototype[d]=function(){var ye=this.__wrapped__,we=S?[1]:arguments,Pe=ye instanceof Kt,Ue=we[0],He=Pe||Bt(ye),Ze=function(Vt){var Wt=N.apply(X,oa([Vt],we));return S&&ot?Wt[0]:Wt};He&&y&&typeof Ue=="function"&&Ue.length!=1&&(Pe=He=!1);var ot=this.__chain__,vt=!!this.__actions__.length,Ct=re&&!ot,Ot=Pe&&!vt;if(!re&&He){ye=Ot?ye:new Kt(this);var wt=u.apply(ye,we);return wt.__actions__.push({func:ih,args:[Ze],thisArg:n}),new ki(wt,ot)}return Ct&&Ot?u.apply(this,we):(wt=this.thru(Ze),Ct?S?wt.value()[0]:wt.value():wt)})}),fn(["pop","push","shift","sort","splice","unshift"],function(u){var d=ue[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",S=/^(?:pop|shift)$/.test(u);X.prototype[u]=function(){var N=arguments;if(S&&!this.__chain__){var re=this.value();return d.apply(Bt(re)?re:[],N)}return this[y](function(ye){return d.apply(Bt(ye)?ye:[],N)})}}),za(Kt.prototype,function(u,d){var y=X[d];if(y){var S=y.name+"";Ve.call(sl,S)||(sl[S]=[]),sl[S].push({name:d,func:y})}}),sl[Xf(n,w).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=_I,Kt.prototype.reverse=BI,Kt.prototype.value=FI,X.prototype.at=sV,X.prototype.chain=uV,X.prototype.commit=lV,X.prototype.next=cV,X.prototype.plant=fV,X.prototype.reverse=hV,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=pV,X.prototype.first=X.prototype.head,Zn&&(X.prototype[Zn]=dV),X},Re=Ce();_i?((_i.exports=Re)._=Re,Pi._=Re):An._=Re}).call(HW)}(pd,pd.exports)),pd.exports}var jT=GW();const YW=ar(jT),db=QW();function vn(e,...t){if(!db)return;const n=XW(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function ZW(e,...t){db&&console.warn(e,...t)}function XW(e,...t){return e.replace(/%[sfdO]/g,n=>{const r=t.shift();return n==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function QW(){try{const e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}const JW={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Iu(e){return`[nuqs] ${JW[e]}
61
+ See https://nuqs.dev/NUQS-${e}`}function eH(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const a=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${a}=${tH(i)}`)}const n="?"+t.join("&");return rH(n),n}function tH(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const nH=2e3;function rH(e){if(process.env.NODE_ENV==="production"||typeof location>"u")return;const t=new URL(location.href);t.search=e,t.href.length>nH&&console.warn(Iu(414))}const Eu=I.createContext({useAdapter(){throw new Error(Iu(404))}});Eu.displayName="NuqsAdapterContext";db&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==Eu&&console.error(Iu(303)),window.__NuqsAdapterContext=Eu);function iH(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>I.createElement(Eu.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function aH(e){const t=I.useContext(Eu);if(!("useAdapter"in t))throw new Error(Iu(404));return t.useAdapter(e)}const oH=()=>I.useContext(Eu).defaultOptions,sH=()=>I.useContext(Eu).processUrlSearchParams;function uH(){var e;if(typeof window>"u"||!window.GestureEvent)return 50;try{const t=(e=navigator.userAgent)==null?void 0:e.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function lH(e){return{method:"throttle",timeMs:e}}const Cd=lH(uH());function cH(e){return e===null||Array.isArray(e)&&e.length===0}function dH(e,t,n){if(typeof e=="string")n.set(t,e);else{n.delete(t);for(const r of e)n.append(t,r);n.has(t)||n.set(t,"")}return n}function fb(){const e=new Map;return{on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))}}}function Jy(e,t,n){function r(){e(),n.removeEventListener("abort",a)}const i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener("abort",a)}n.addEventListener("abort",a)}function e3(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((r,i)=>{t=r,n=i}),resolve:t,reject:n}}function fH(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const a=n;n=()=>i(a)}n()}function t3(){return new URLSearchParams(location.search)}var KT=class{constructor(){Xn(this,"updateMap",new Map);Xn(this,"options",{history:"replace",scroll:!1,shallow:!0});Xn(this,"timeMs",Cd.timeMs);Xn(this,"transitions",new Set);Xn(this,"resolvers",null);Xn(this,"controller",null);Xn(this,"lastFlushedAt",0);Xn(this,"resetQueueOnNextPush",!1)}push({key:e,query:t,options:n},r=Cd.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),vn("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=t3}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=t3,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return vn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=e3();const i=()=>{this.lastFlushedAt=performance.now();const[o,s]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);s===null?(this.resolvers.resolve(o),this.resetQueueOnNextPush=!0):this.resolvers.reject(o),this.resolvers=null};return Jy(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);vn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():Jy(i,l,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){var e,t;return(e=this.controller)==null||e.abort(),this.controller=new AbortController,(t=this.resolvers)==null||t.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return vn("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=Cd.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(vn("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),vn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=dH(f,l,i);t&&(i=t(i));try{return fH(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Iu(429),a.map(([f])=>f).join(),l),[i,l]}}};const wd=new KT;function hH(e,t,n){const r=I.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=I.useRef(null);i.current===null&&(i.current=r());const a=I.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return I.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var pH=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",e3());Xn(this,"controller",new AbortController);Xn(this,"queuedValue");this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,Jy(()=>{const n=this.resolvers;try{vn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);vn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=e3(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},mH=class{constructor(e=new KT){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",fb());this.throttleQueue=e}useQueuedQueries(e){return hH(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??t3;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){vn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new pH(o=>(this.throttleQueue.push(o),this.throttleQueue.flush(n).finally(()=>{var s;((s=this.queues.get(o.key))==null?void 0:s.queuedValue)===void 0&&(vn("[nuqs dqc] Cleaning up empty queue for `%s`",o.key),this.queues.delete(o.key)),this.queuedQuerySync.emit(o.key)})));this.queues.set(r,a)}vn("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){var n;const t=this.queues.get(e);return t?(vn("[nuqs dqc] Aborting debounce queue %s=%s",e,(n=t.queuedValue)==null?void 0:n.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),r=>(r.then(t.resolvers.resolve,t.resolvers.reject),r)):r=>r}abortAll(){var e;for(const[t,n]of this.queues.entries())vn("[nuqs dqc] Aborting debounce queue %s=%s",t,(e=n.queuedValue)==null?void 0:e.query),n.abort(),n.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(t);this.queues.clear()}getQueuedQuery(e){var n,r;const t=(r=(n=this.queues.get(e))==null?void 0:n.queuedValue)==null?void 0:r.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const Ad=new mH(wd);function zT(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((n,r)=>n===t[r])}function qT(e,t,n){try{return e(t)}catch(r){return ZW("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Yo(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),qT(e.parse,r)}return{type:"single",eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const gH=Yo({parse:e=>e,serialize:String});Yo({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});Yo({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Yo({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Yo({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Yo({parse:e=>e==="true",serialize:String});function hb(e,t){return e.valueOf()===t.valueOf()}Yo({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:hb});Yo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:hb});Yo({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:hb});const s4=fb(),vH={};function UT(e,t={}){const n=I.useId(),r=oH(),i=sH(),{history:a="replace",scroll:o=(r==null?void 0:r.scroll)??!1,shallow:s=(r==null?void 0:r.shallow)??!0,throttleMs:l=Cd.timeMs,limitUrlUpdates:f=r==null?void 0:r.limitUrlUpdates,clearOnDefault:h=(r==null?void 0:r.clearOnDefault)??!0,startTransition:m,urlKeys:g=vH}=t,b=Object.keys(e).join(","),$=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=aH(Object.values($)),A=x.searchParams,w=I.useRef({}),C=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=Ad.useQueuedQueries(Object.values($)),[T,P]=I.useState(()=>{const te=A??new URLSearchParams;return u4(e,g,te,E).state}),F=I.useRef(T);if(vn("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,b,T,A),Object.keys(w.current).join("&")!==Object.values($).join("&")){const{state:te,hasChanged:se}=u4(e,g,A,E,w.current,F.current);se&&(vn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te)),w.current=Object.fromEntries(Object.entries($).map(([ae,O])=>{const Ee=e[ae];return[O,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(O):(A==null?void 0:A.get(O))??null]}))}I.useEffect(()=>{const{state:te,hasChanged:se}=u4(e,g,A,E,w.current,F.current);se&&(vn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te))},[Object.values($).map(te=>`${te}=${A==null?void 0:A.getAll(te)}`).join("&"),JSON.stringify(E)]),I.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:O,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=O??z??null,R=be[ae]??z??null;return Object.is(R,V)?(vn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,O,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,vn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,O,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];vn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),s4.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];vn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),s4.off(ae,te[se])}}},[b,$]);const q=I.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),O=typeof te=="function"?te(IC(F.current,C))??ae:te??ae;vn("[nuq+ %s `%s`] setState: %O",n,b,O);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(O)){const Be=e[Se],Ge=$[Se];if(!Be)continue;(se.clearOnDefault??Be.clearOnDefault??h)&&_e!==null&&Be.defaultValue!==void 0&&(Be.eq??((qe,ke)=>qe===ke))(_e,Be.defaultValue)&&(_e=null);const Xe=_e===null?null:(Be.serialize??String)(_e);s4.emit(Ge,{state:_e,query:Xe});const Ne={key:Ge,query:Xe,options:{history:se.history??Be.history??a,shallow:se.shallow??Be.shallow??s,scroll:se.scroll??Be.scroll??o,startTransition:se.startTransition??Be.startTransition??m}};if(((R=se==null?void 0:se.limitUrlUpdates)==null?void 0:R.method)==="debounce"||(f==null?void 0:f.method)==="debounce"||((K=Be.limitUrlUpdates)==null?void 0:K.method)==="debounce"){Ne.options.shallow===!0&&console.warn(Iu(422));const qe=((fe=se==null?void 0:se.limitUrlUpdates)==null?void 0:fe.timeMs)??(f==null?void 0:f.timeMs)??((M=Be.limitUrlUpdates)==null?void 0:M.timeMs)??Cd.timeMs,ke=Ad.push(Ne,qe,x);be<qe&&(Ee=ke,be=qe)}else{const qe=((oe=se==null?void 0:se.limitUrlUpdates)==null?void 0:oe.timeMs)??((le=Be==null?void 0:Be.limitUrlUpdates)==null?void 0:le.timeMs)??(f==null?void 0:f.timeMs)??se.throttleMs??Be.throttleMs??l;G.push(Ad.abort(Ge)),wd.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?wd.flush(x,i):wd.getPendingPromise(x));return Ee??V},[b,a,s,o,l,f==null?void 0:f.method,f==null?void 0:f.timeMs,m,$,x.updateUrl,x.getSearchParamsSnapshot,x.rateLimitFactor,i,C]);return[I.useMemo(()=>IC(T,C),[T,C]),q]}function u4(e,t,n,r,i,a){let o=!1;const s=Object.entries(e).reduce((l,[f,h])=>{const m=(t==null?void 0:t[f])??f,g=r[m],b=h.type==="multi"?[]:null,$=g===void 0?(h.type==="multi"?n==null?void 0:n.getAll(m):n==null?void 0:n.get(m))??b:g;return i&&a&&zT(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(cH($)?null:qT(h.parse,$,m))??null,i&&(i[m]=$),l)},{});if(!o){const l=Object.keys(e),f=Object.keys(a??{});o=l.length!==f.length||l.some(h=>!f.includes(h))}return{state:s,hasChanged:o}}function IC(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function yH(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=UT({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=I.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}function um(){return typeof window<"u"}function dc(e){return WT(e)?(e.nodeName||"").toLowerCase():"#document"}function ui(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(WT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WT(e){return um()?e instanceof Node||e instanceof ui(e).Node:!1}function tr(e){return um()?e instanceof Element||e instanceof ui(e).Element:!1}function Ji(e){return um()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function n3(e){return!um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}const bH=new Set(["inline","contents"]);function uf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!bH.has(i)}const xH=new Set(["table","td","th"]);function DH(e){return xH.has(dc(e))}const $H=[":popover-open",":modal"];function lm(e){return $H.some(t=>{try{return e.matches(t)}catch{return!1}})}const EH=["transform","translate","scale","rotate","perspective"],CH=["transform","translate","scale","rotate","perspective","filter"],wH=["paint","layout","strict","content"];function pb(e){const t=mb(),n=tr(e)?$a(e):e;return EH.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||CH.some(r=>(n.willChange||"").includes(r))||wH.some(r=>(n.contain||"").includes(r))}function AH(e){let t=Cs(e);for(;Ji(t)&&!Gl(t);){if(pb(t))return t;if(lm(t))return null;t=Cs(t)}return null}function mb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SH=new Set(["html","body","#document"]);function Gl(e){return SH.has(dc(e))}function $a(e){return ui(e).getComputedStyle(e)}function cm(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cs(e){if(dc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||n3(e)&&e.host||so(e);return n3(t)?t.host:t}function HT(e){const t=Cs(e);return Gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&uf(t)?t:HT(t)}function Vd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=HT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);if(a){const s=r3(o);return t.concat(o,o.visualViewport||[],uf(i)?i:[],s&&n?Vd(s):[])}return t.concat(i,Vd(i,[],n))}function r3(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const sp=Math.min,yu=Math.max,up=Math.round,fh=Math.floor,eo=e=>({x:e,y:e}),TH={left:"right",right:"left",bottom:"top",top:"bottom"},PH={start:"end",end:"start"};function OC(e,t,n){return yu(e,sp(t,n))}function dm(e,t){return typeof e=="function"?e(t):e}function Cu(e){return e.split("-")[0]}function fm(e){return e.split("-")[1]}function GT(e){return e==="x"?"y":"x"}function YT(e){return e==="y"?"height":"width"}const _H=new Set(["top","bottom"]);function xs(e){return _H.has(Cu(e))?"y":"x"}function ZT(e){return GT(xs(e))}function BH(e,t,n){n===void 0&&(n=!1);const r=fm(e),i=ZT(e),a=YT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=lp(o)),[o,lp(o)]}function FH(e){const t=lp(e);return[i3(e),t,i3(t)]}function i3(e){return e.replace(/start|end/g,t=>PH[t])}const LC=["left","right"],VC=["right","left"],kH=["top","bottom"],MH=["bottom","top"];function RH(e,t,n){switch(e){case"top":case"bottom":return n?t?VC:LC:t?LC:VC;case"left":case"right":return t?kH:MH;default:return[]}}function IH(e,t,n,r){const i=fm(e);let a=RH(Cu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(i3)))),a}function lp(e){return e.replace(/left|right|bottom|top/g,t=>TH[t])}function OH(e){return{top:0,right:0,bottom:0,left:0,...e}}function LH(e){return typeof e!="number"?OH(e):{top:e,right:e,bottom:e,left:e}}function cp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function VH(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function NH(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function jH(){return/apple/i.test(navigator.vendor)}function KH(){return VH().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function zH(){return NH().includes("jsdom/")}const NC="data-floating-ui-focusable",qH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function jC(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function a3(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&n3(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function UH(e){return"composedPath"in e?e.composedPath()[0]:e.target}function md(e){return(e==null?void 0:e.ownerDocument)||document}function WH(e){return Ji(e)&&e.matches(qH)}function HH(e){if(!e||zH())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function GH(e){return e?e.hasAttribute(NC)?e:e.querySelector("["+NC+"]")||e:null}function o3(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var YH=typeof document<"u",ZH=function(){},Yl=YH?I.useLayoutEffect:ZH;const XH={...de};function hh(e){const t=de.useRef(e);return Yl(()=>{t.current=e}),t}const QH=XH.useInsertionEffect,JH=QH||(e=>e());function gd(e){const t=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return JH(()=>{t.current=e}),de.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function KC(e,t,n){let{reference:r,floating:i}=e;const a=xs(t),o=ZT(t),s=YT(o),l=Cu(t),f=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[s]/2-i[s]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(fm(t)){case"start":b[o]-=g*(n&&f?-1:1);break;case"end":b[o]+=g*(n&&f?-1:1);break}return b}const eG=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let f=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=KC(f,r,l),g=r,b={},$=0;for(let x=0;x<s.length;x++){const{name:A,fn:w}=s[x],{x:C,y:E,data:T,reset:P}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:f,platform:o,elements:{reference:e,floating:t}});h=C??h,m=E??m,b={...b,[A]:{...b[A],...T}},P&&$<=50&&($++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(f=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=KC(f,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function XT(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=dm(t,e),$=LH(b),A=s[g?m==="floating"?"reference":"floating":m],w=cp(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(A)))==null||n?A:A.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),T=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},P=cp(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:E,strategy:l}):C);return{top:(w.top-P.top+$.top)/T.y,bottom:(P.bottom-w.bottom+$.bottom)/T.y,left:(w.left-P.left+$.left)/T.x,right:(P.right-w.right+$.right)/T.x}}const tG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:x=!0,...A}=dm(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=Cu(i),C=xs(s),E=Cu(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),P=g||(E||!x?[lp(s)]:FH(s)),F=$!=="none";!g&&F&&P.push(...IH(s,x,$,T));const q=[s,...P],te=await XT(t,A),se=[];let ae=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&se.push(te[w]),m){const z=BH(i,o,T);se.push(te[z[0]],te[z[1]])}if(ae=[...ae,{placement:i,overflows:se}],!se.every(z=>z<=0)){var O,Ee;const z=(((O=a.flip)==null?void 0:O.index)||0)+1,G=q[z];if(G&&(!(m==="alignment"?C!==xs(G):!1)||ae.every(K=>xs(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:z,overflows:ae},reset:{placement:G}};let V=(Ee=ae.filter(R=>R.overflows[0]<=0).sort((R,K)=>R.overflows[1]-K.overflows[1])[0])==null?void 0:Ee.placement;if(!V)switch(b){case"bestFit":{var be;const R=(be=ae.filter(K=>{if(F){const fe=xs(K.placement);return fe===C||fe==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(fe=>fe>0).reduce((fe,M)=>fe+M,0)]).sort((K,fe)=>K[1]-fe[1])[0])==null?void 0:be[0];R&&(V=R);break}case"initialPlacement":V=s;break}if(i!==V)return{reset:{placement:V}}}return{}}}},nG=new Set(["left","top"]);async function rG(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Cu(n),s=fm(n),l=xs(n)==="y",f=nG.has(o)?-1:1,h=a&&l?-1:1,m=dm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:$}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof $=="number"&&(b=s==="end"?$*-1:$),l?{x:b*h,y:g*f}:{x:g*f,y:b*h}}const iG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await rG(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},aG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:A=>{let{x:w,y:C}=A;return{x:w,y:C}}},...l}=dm(e,t),f={x:n,y:r},h=await XT(t,l),m=xs(Cu(i)),g=GT(m);let b=f[g],$=f[m];if(a){const A=g==="y"?"top":"left",w=g==="y"?"bottom":"right",C=b+h[A],E=b-h[w];b=OC(C,b,E)}if(o){const A=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=$+h[A],E=$-h[w];$=OC(C,$,E)}const x=s.fn({...t,[g]:b,[m]:$});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:a,[m]:o}}}}}};function QT(e){const t=$a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=up(n)!==a||up(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function gb(e){return tr(e)?e:e.contextElement}function Il(e){const t=gb(e);if(!Ji(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=QT(t);let o=(a?up(n.width):n.width)/r,s=(a?up(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const oG=eo(0);function JT(e){const t=ui(e);return!mb()||!t.visualViewport?oG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ui(e)?!1:t}function wu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=gb(e);let o=eo(1);t&&(r?tr(r)&&(o=Il(r)):o=Il(e));const s=sG(a,n,r)?JT(a):eo(0);let l=(i.left+s.x)/o.x,f=(i.top+s.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(a){const g=ui(a),b=r&&tr(r)?ui(r):r;let $=g,x=r3($);for(;x&&r&&b!==$;){const A=Il(x),w=x.getBoundingClientRect(),C=$a(x),E=w.left+(x.clientLeft+parseFloat(C.paddingLeft))*A.x,T=w.top+(x.clientTop+parseFloat(C.paddingTop))*A.y;l*=A.x,f*=A.y,h*=A.x,m*=A.y,l+=E,f+=T,$=ui(x),x=r3($)}}return cp({width:h,height:m,x:l,y:f})}function hm(e,t){const n=cm(e).scrollLeft;return t?t.left+n:wu(so(e)).left+n}function eP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-hm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function uG(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=so(r),s=t?lm(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},f=eo(1);const h=eo(0),m=Ji(r);if((m||!m&&!a)&&((dc(r)!=="body"||uf(o))&&(l=cm(r)),Ji(r))){const b=wu(r);f=Il(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!a?eP(o,l):eo(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+h.x+g.x,y:n.y*f.y-l.scrollTop*f.y+h.y+g.y}}function lG(e){return Array.from(e.getClientRects())}function cG(e){const t=so(e),n=cm(e),r=e.ownerDocument.body,i=yu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=yu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+hm(e);const s=-n.scrollTop;return $a(r).direction==="rtl"&&(o+=yu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}const zC=25;function dG(e,t){const n=ui(e),r=so(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const h=mb();(!h||h&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const f=hm(r);if(f<=0){const h=r.ownerDocument,m=h.body,g=getComputedStyle(m),b=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,$=Math.abs(r.clientWidth-m.clientWidth-b);$<=zC&&(a-=$)}else f<=zC&&(a+=f);return{width:a,height:o,x:s,y:l}}const fG=new Set(["absolute","fixed"]);function hG(e,t){const n=wu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ji(e)?Il(e):eo(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,f=r*a.y;return{width:o,height:s,x:l,y:f}}function qC(e,t,n){let r;if(t==="viewport")r=dG(e,n);else if(t==="document")r=cG(so(e));else if(tr(t))r=hG(t,n);else{const i=JT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return cp(r)}function tP(e,t){const n=Cs(e);return n===t||!tr(n)||Gl(n)?!1:$a(n).position==="fixed"||tP(n,t)}function pG(e,t){const n=t.get(e);if(n)return n;let r=Vd(e,[],!1).filter(s=>tr(s)&&dc(s)!=="body"),i=null;const a=$a(e).position==="fixed";let o=a?Cs(e):e;for(;tr(o)&&!Gl(o);){const s=$a(o),l=pb(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&fG.has(i.position)||uf(o)&&!l&&tP(e,o))?r=r.filter(h=>h!==o):i=s,o=Cs(o)}return t.set(e,r),r}function mG(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?lm(t)?[]:pG(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((f,h)=>{const m=qC(t,h,i);return f.top=yu(m.top,f.top),f.right=sp(m.right,f.right),f.bottom=sp(m.bottom,f.bottom),f.left=yu(m.left,f.left),f},qC(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function gG(e){const{width:t,height:n}=QT(e);return{width:t,height:n}}function vG(e,t,n){const r=Ji(t),i=so(t),a=n==="fixed",o=wu(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=eo(0);function f(){l.x=hm(i)}if(r||!r&&!a)if((dc(t)!=="body"||uf(i))&&(s=cm(t)),r){const b=wu(t,!0,a,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&f();a&&!r&&i&&f();const h=i&&!r&&!a?eP(i,s):eo(0),m=o.left+s.scrollLeft-l.x-h.x,g=o.top+s.scrollTop-l.y-h.y;return{x:m,y:g,width:o.width,height:o.height}}function l4(e){return $a(e).position==="static"}function UC(e,t){if(!Ji(e)||$a(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function nP(e,t){const n=ui(e);if(lm(e))return n;if(!Ji(e)){let i=Cs(e);for(;i&&!Gl(i);){if(tr(i)&&!l4(i))return i;i=Cs(i)}return n}let r=UC(e,t);for(;r&&DH(r)&&l4(r);)r=UC(r,t);return r&&Gl(r)&&l4(r)&&!pb(r)?n:r||AH(e)||n}const yG=async function(e){const t=this.getOffsetParent||nP,n=this.getDimensions,r=await n(e.floating);return{reference:vG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bG(e){return $a(e).direction==="rtl"}const xG={convertOffsetParentRelativeRectToViewportRelativeRect:uG,getDocumentElement:so,getClippingRect:mG,getOffsetParent:nP,getElementRects:yG,getClientRects:lG,getDimensions:gG,getScale:Il,isElement:tr,isRTL:bG};function rP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DG(e,t){let n=null,r;const i=so(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const f=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=f;if(s||t(),!g||!b)return;const $=fh(m),x=fh(i.clientWidth-(h+g)),A=fh(i.clientHeight-(m+b)),w=fh(h),E={rootMargin:-$+"px "+-x+"px "+-A+"px "+-w+"px",threshold:yu(0,sp(1,l))||1};let T=!0;function P(F){const q=F[0].intersectionRatio;if(q!==l){if(!T)return o();q?o(!1,q):r=setTimeout(()=>{o(!1,1e-7)},1e3)}q===1&&!rP(f,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return o(!0),a}function $G(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,f=gb(e),h=i||a?[...f?Vd(f):[],...Vd(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=f&&s?DG(f,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(w=>{let[C]=w;C&&C.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=b)==null||E.observe(t)})),n()}),f&&!l&&b.observe(f),b.observe(t));let $,x=l?wu(e):null;l&&A();function A(){const w=wu(e);x&&!rP(x,w)&&n(),x=w,$=requestAnimationFrame(A)}return n(),()=>{var w;h.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),m==null||m(),(w=b)==null||w.disconnect(),b=null,l&&cancelAnimationFrame($)}}const EG=iG,CG=aG,wG=tG,AG=(e,t,n)=>{const r=new Map,i={platform:xG,...n},a={...i.platform,_c:r};return eG(e,t,{...i,platform:a})};var SG=typeof document<"u",TG=function(){},Ih=SG?I.useLayoutEffect:TG;function dp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!dp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!dp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function iP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WC(e,t){const n=iP(e);return Math.round(t*n)/n}function c4(e){const t=de.useRef(e);return Ih(()=>{t.current=e}),t}function aP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:f}=e,[h,m]=de.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=de.useState(r);dp(g,r)||b(r);const[$,x]=de.useState(null),[A,w]=de.useState(null),C=de.useCallback(K=>{K!==F.current&&(F.current=K,x(K))},[]),E=de.useCallback(K=>{K!==q.current&&(q.current=K,w(K))},[]),T=a||$,P=o||A,F=de.useRef(null),q=de.useRef(null),te=de.useRef(h),se=l!=null,ae=c4(l),O=c4(i),Ee=c4(f),be=de.useCallback(()=>{if(!F.current||!q.current)return;const K={placement:t,strategy:n,middleware:g};O.current&&(K.platform=O.current),AG(F.current,q.current,K).then(fe=>{const M={...fe,isPositioned:Ee.current!==!1};z.current&&!dp(te.current,M)&&(te.current=M,No.flushSync(()=>{m(M)}))})},[g,t,n,O,Ee]);Ih(()=>{f===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[f]);const z=de.useRef(!1);Ih(()=>(z.current=!0,()=>{z.current=!1}),[]),Ih(()=>{if(T&&(F.current=T),P&&(q.current=P),T&&P){if(ae.current)return ae.current(T,P,be);be()}},[T,P,be,ae,se]);const G=de.useMemo(()=>({reference:F,floating:q,setReference:C,setFloating:E}),[C,E]),V=de.useMemo(()=>({reference:T,floating:P}),[T,P]),R=de.useMemo(()=>{const K={position:n,left:0,top:0};if(!V.floating)return K;const fe=WC(V.floating,h.x),M=WC(V.floating,h.y);return s?{...K,transform:"translate("+fe+"px, "+M+"px)",...iP(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:M}},[n,s,V.floating,h.x,h.y]);return de.useMemo(()=>({...h,update:be,refs:G,elements:V,floatingStyles:R}),[h,be,G,V,R])}const PG=(e,t)=>({...EG(e),options:[e,t]}),_G=(e,t)=>({...CG(e),options:[e,t]}),BG=(e,t)=>({...wG(e),options:[e,t]}),FG="data-floating-ui-focusable",HC="active",GC="selected",kG={...de};let YC=!1,MG=0;const ZC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+MG++;function RG(){const[e,t]=de.useState(()=>YC?ZC():void 0);return Yl(()=>{e==null&&t(ZC())},[]),de.useEffect(()=>{YC=!0},[]),e}const IG=kG.useId,oP=IG||RG;let s3;process.env.NODE_ENV!=="production"&&(s3=new Set);function OG(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=s3)!=null&&e.has(i))){var a;(a=s3)==null||a.add(i),console.error(i)}}function LG(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const VG=de.createContext(null),NG=de.createContext(null),vb=()=>{var e;return((e=de.useContext(VG))==null?void 0:e.id)||null},sP=()=>de.useContext(NG);function uP(e){return"data-floating-ui-"+e}function Ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const XC=uP("safe-polygon");function d4(e,t,n){if(n&&!o3(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function f4(e){return typeof e=="function"?e():e}function jG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:l=0,handleClose:f=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=sP(),$=vb(),x=hh(f),A=hh(l),w=hh(n),C=hh(m),E=de.useRef(),T=de.useRef(-1),P=de.useRef(),F=de.useRef(-1),q=de.useRef(!0),te=de.useRef(!1),se=de.useRef(()=>{}),ae=de.useRef(!1),O=gd(()=>{var R;const K=(R=i.current.openEvent)==null?void 0:R.type;return(K==null?void 0:K.includes("mouse"))&&K!=="mousedown"});de.useEffect(()=>{if(!s)return;function R(K){let{open:fe}=K;fe||(Ni(T),Ni(F),q.current=!0,ae.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[s,a]),de.useEffect(()=>{if(!s||!x.current||!n)return;function R(fe){O()&&r(!1,fe,"hover")}const K=md(o.floating).documentElement;return K.addEventListener("mouseleave",R),()=>{K.removeEventListener("mouseleave",R)}},[o.floating,n,r,s,x,O]);const Ee=de.useCallback(function(R,K,fe){K===void 0&&(K=!0),fe===void 0&&(fe="hover");const M=d4(A.current,"close",E.current);M&&!P.current?(Ni(T),T.current=window.setTimeout(()=>r(!1,R,fe),M)):K&&(Ni(T),r(!1,R,fe))},[A,r]),be=gd(()=>{se.current(),P.current=void 0}),z=gd(()=>{if(te.current){const R=md(o.floating).body;R.style.pointerEvents="",R.removeAttribute(XC),te.current=!1}}),G=gd(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);de.useEffect(()=>{if(!s)return;function R(le){if(Ni(T),q.current=!1,h&&!o3(E.current)||f4(C.current)>0&&!d4(A.current,"open"))return;const Se=d4(A.current,"open",E.current);Se?T.current=window.setTimeout(()=>{w.current||r(!0,le,"hover")},Se):n||r(!0,le,"hover")}function K(le){if(G()){z();return}se.current();const Se=md(o.floating);if(Ni(F),ae.current=!1,x.current&&i.current.floatingContext){n||Ni(T),P.current=x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le,!0,"safe-polygon")}});const Be=P.current;Se.addEventListener("mousemove",Be),se.current=()=>{Se.removeEventListener("mousemove",Be)};return}(E.current==="touch"?!a3(o.floating,le.relatedTarget):!0)&&Ee(le)}function fe(le){G()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:le.clientX,y:le.clientY,onClose(){z(),be(),G()||Ee(le)}})(le))}function M(){Ni(T)}function oe(le){G()||Ee(le,!1)}if(tr(o.domReference)){const le=o.domReference,Se=o.floating;return n&&le.addEventListener("mouseleave",fe),g&&le.addEventListener("mousemove",R,{once:!0}),le.addEventListener("mouseenter",R),le.addEventListener("mouseleave",K),Se&&(Se.addEventListener("mouseleave",fe),Se.addEventListener("mouseenter",M),Se.addEventListener("mouseleave",oe)),()=>{n&&le.removeEventListener("mouseleave",fe),g&&le.removeEventListener("mousemove",R),le.removeEventListener("mouseenter",R),le.removeEventListener("mouseleave",K),Se&&(Se.removeEventListener("mouseleave",fe),Se.removeEventListener("mouseenter",M),Se.removeEventListener("mouseleave",oe))}}},[o,s,e,h,g,Ee,be,z,r,n,w,b,A,x,i,G,C]),Yl(()=>{var R;if(s&&n&&(R=x.current)!=null&&(R=R.__options)!=null&&R.blockPointerEvents&&O()){te.current=!0;const fe=o.floating;if(tr(o.domReference)&&fe){var K;const M=md(o.floating).body;M.setAttribute(XC,"");const oe=o.domReference,le=b==null||(K=b.nodesRef.current.find(Se=>Se.id===$))==null||(K=K.context)==null?void 0:K.elements.floating;return le&&(le.style.pointerEvents=""),M.style.pointerEvents="none",oe.style.pointerEvents="auto",fe.style.pointerEvents="auto",()=>{M.style.pointerEvents="",oe.style.pointerEvents="",fe.style.pointerEvents=""}}}},[s,n,$,o,b,x,O]),Yl(()=>{n||(E.current=void 0,ae.current=!1,be(),z())},[n,be,z]),de.useEffect(()=>()=>{be(),Ni(T),Ni(F),z()},[s,o.domReference,be,z]);const V=de.useMemo(()=>{function R(K){E.current=K.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(K){const{nativeEvent:fe}=K;function M(){!q.current&&!w.current&&r(!0,fe,"hover")}h&&!o3(E.current)||n||f4(C.current)===0||ae.current&&K.movementX**2+K.movementY**2<2||(Ni(F),E.current==="touch"?M():(ae.current=!0,F.current=window.setTimeout(M,f4(C.current))))}}},[h,r,n,w,C]);return de.useMemo(()=>s?{reference:V}:{},[s,V])}function KG(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=oP(),a=de.useRef({}),[o]=de.useState(()=>LG()),s=vb()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&OG("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,f]=de.useState(r.reference),h=gd((b,$,x)=>{a.current.openEvent=b?$:void 0,o.emit("openchange",{open:b,event:$,reason:x,nested:s}),n==null||n(b,$,x)}),m=de.useMemo(()=>({setPositionReference:f}),[]),g=de.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function zG(e){e===void 0&&(e={});const{nodeId:t}=e,n=KG({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=de.useState(null),[s,l]=de.useState(null),h=(i==null?void 0:i.domReference)||a,m=de.useRef(null),g=sP();Yl(()=>{h&&(m.current=h)},[h]);const b=aP({...e,elements:{...i,...s&&{reference:s}}}),$=de.useCallback(E=>{const T=tr(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;l(T),b.refs.setReference(T)},[b.refs]),x=de.useCallback(E=>{(tr(E)||E===null)&&(m.current=E,o(E)),(tr(b.refs.reference.current)||b.refs.reference.current===null||E!==null&&!tr(E))&&b.refs.setReference(E)},[b.refs]),A=de.useMemo(()=>({...b.refs,setReference:x,setPositionReference:$,domReference:m}),[b.refs,x,$]),w=de.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=de.useMemo(()=>({...b,...r,refs:A,elements:w,nodeId:t}),[b,A,w,t,r]);return Yl(()=>{r.dataRef.current.floatingContext=C;const E=g==null?void 0:g.nodesRef.current.find(T=>T.id===t);E&&(E.context=C)}),de.useMemo(()=>({...b,context:C,refs:A,elements:w}),[b,A,w,C])}function h4(){return KH()&&jH()}function qG(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:l=!0}=t,f=de.useRef(!1),h=de.useRef(-1),m=de.useRef(!0);de.useEffect(()=>{if(!s)return;const b=ui(o.domReference);function $(){!n&&Ji(o.domReference)&&o.domReference===jC(md(o.domReference))&&(f.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",$),h4()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",$),h4()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",A,!0))}},[o.domReference,n,s]),de.useEffect(()=>{if(!s)return;function b($){let{reason:x}=$;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,s]),de.useEffect(()=>()=>{Ni(h)},[]);const g=de.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(b){if(f.current)return;const $=UH(b.nativeEvent);if(l&&tr($)){if(h4()&&!b.relatedTarget){if(!m.current&&!WH($))return}else if(!HH($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){f.current=!1;const $=b.relatedTarget,x=b.nativeEvent,A=tr($)&&$.hasAttribute(uP("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=jC(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||a3((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||a3(o.domReference,C)||A||r(!1,x,"focus")})}}),[a,o.domReference,r,l]);return de.useMemo(()=>s?{reference:g}:{},[s,g])}function p4(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[HC]:o,[GC]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[FG]:""},...a,...t.map(o=>{const s=o?o[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((o,s)=>(s&&Object.entries(s).forEach(l=>{let[f,h]=l;if(!(i&&[HC,GC].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),o[f]=function(){for(var g,b=arguments.length,$=new Array(b),x=0;x<b;x++)$[x]=arguments[x];return(g=r.get(f))==null?void 0:g.map(A=>A(...$)).find(A=>A!==void 0)}}}else o[f]=h}),o),{})}}function UG(e){e===void 0&&(e=[]);const t=e.map(s=>s==null?void 0:s.reference),n=e.map(s=>s==null?void 0:s.floating),r=e.map(s=>s==null?void 0:s.item),i=de.useCallback(s=>p4(s,e,"reference"),t),a=de.useCallback(s=>p4(s,e,"floating"),n),o=de.useCallback(s=>p4(s,e,"item"),r);return de.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const WG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function HG(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:a,floatingId:o}=e,{enabled:s=!0,role:l="dialog"}=t,f=oP(),h=((n=a.domReference)==null?void 0:n.id)||f,m=de.useMemo(()=>{var C;return((C=GH(a.floating))==null?void 0:C.id)||o},[a.floating,o]),g=(r=WG.get(l))!=null?r:l,$=vb()!=null,x=de.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&$&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,$,i,h,l]),A=de.useMemo(()=>{const C={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?C:{...C,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),w=de.useCallback(C=>{let{active:E,selected:T}=C;const P={role:"option",...E&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{...P,"aria-selected":T}}return{}},[m,l]);return de.useMemo(()=>s?{reference:x,floating:A,item:w}:{},[s,x,A,w])}var lf=e=>e.type==="checkbox",lu=e=>e instanceof Date,ni=e=>e==null;const lP=e=>typeof e=="object";var nr=e=>!ni(e)&&!Array.isArray(e)&&lP(e)&&!lu(e),cP=e=>nr(e)&&e.target?lf(e.target)?e.target.checked:e.target.value:e,GG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,dP=(e,t)=>e.has(GG(t)),YG=e=>{const t=e.constructor&&e.constructor.prototype;return nr(t)&&t.hasOwnProperty("isPrototypeOf")},yb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function En(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(yb&&(e instanceof Blob||r))&&(n||nr(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!YG(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=En(e[i]));else return e;return t}var pm=e=>/^\w*$/.test(e),yn=e=>e===void 0,mm=e=>Array.isArray(e)?e.filter(Boolean):[],bb=e=>mm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!nr(e))return n;const r=(pm(t)?[t]:bb(t)).reduce((i,a)=>ni(i)?i:i[a],e);return yn(r)||r===e?yn(e[t])?n:e[t]:r},Ei=e=>typeof e=="boolean",nn=(e,t,n)=>{let r=-1;const i=pm(t)?[t]:bb(t),a=i.length,o=a-1;for(;++r<a;){const s=i[r];let l=n;if(r!==o){const f=e[s];l=nr(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const fp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Wi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ko={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},xb=de.default.createContext(null);xb.displayName="HookFormContext";const cf=()=>de.default.useContext(xb),ZG=e=>{const{children:t,...n}=e;return de.default.createElement(xb.Provider,{value:n},t)};var fP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Wi.all&&(t._proxyFormState[o]=!r||Wi.all),n&&(n[o]=!0),e[o]}});return i};const gm=typeof window<"u"?de.default.useLayoutEffect:de.default.useEffect;function XG(e){const t=cf(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=de.default.useState(n._formState),l=de.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return gm(()=>n._subscribe({name:i,formState:l.current,exact:a,callback:f=>{!r&&s({...n._formState,...f})}}),[i,r,a]),de.default.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),de.default.useMemo(()=>fP(o,n,l.current,!1),[o,n])}var Ci=e=>typeof e=="string",hP=(e,t,n,r,i)=>Ci(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),it(n,a))):(r&&(t.watchAll=!0),n),u3=e=>ni(e)||!lP(e);function Ro(e,t,n=new WeakSet){if(u3(e)||u3(t))return e===t;if(lu(e)&&lu(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const o=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const s=t[a];if(lu(o)&&lu(s)||nr(o)&&nr(s)||Array.isArray(o)&&Array.isArray(s)?!Ro(o,s,n):o!==s)return!1}}return!0}function pP(e){const t=cf(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},l=de.default.useRef(i),f=de.default.useRef(s),h=de.default.useRef(void 0);f.current=s;const m=de.default.useMemo(()=>n._getWatch(r,l.current),[n,r]),[g,b]=de.default.useState(f.current?f.current(m):m);return gm(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:$=>{if(!a){const x=hP(r,n._names,$.values||n._formValues,!1,l.current);if(f.current){const A=f.current(x);Ro(A,h.current)||(b(A),h.current=A)}else b(x)}}}),[n,a,r,o]),de.default.useEffect(()=>n._removeUnmounted()),g}function mP(e){const t=cf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:o}=e,s=dP(i._names.array,n),l=de.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,o)),[i,n,o]),f=pP({control:i,name:n,defaultValue:l,exact:!0}),h=XG({control:i,name:n,exact:!0}),m=de.default.useRef(e),g=de.default.useRef(void 0),b=de.default.useRef(i.register(n,{...e.rules,value:f,...Ei(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const $=de.default.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),x=de.default.useCallback(E=>b.current.onChange({target:{value:cP(E),name:n},type:fp.CHANGE}),[n]),A=de.default.useCallback(()=>b.current.onBlur({target:{value:it(i._formValues,n),name:n},type:fp.BLUR}),[n,i._formValues]),w=de.default.useCallback(E=>{const T=it(i._fields,n);T&&E&&(T._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:P=>E.setCustomValidity(P),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=de.default.useMemo(()=>({name:n,value:f,...Ei(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:x,onBlur:A,ref:w}),[n,r,h.disabled,x,A,w,f]);return de.default.useEffect(()=>{const E=i._options.shouldUnregister||a,T=g.current;T&&T!==n&&!s&&i.unregister(T),i.register(n,{...m.current.rules,...Ei(m.current.disabled)?{disabled:m.current.disabled}:{}});const P=(F,q)=>{const te=it(i._fields,F);te&&te._f&&(te._f.mount=q)};if(P(n,!0),E){const F=En(it(i._options.defaultValues,n,m.current.defaultValue));nn(i._defaultValues,n,F),yn(it(i._formValues,n))&&nn(i._formValues,n,F)}return!s&&i.register(n),g.current=n,()=>{(s?E&&!i._state.action:E)?i.unregister(n):P(n,!1)}},[n,i,s,a]),de.default.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),de.default.useMemo(()=>({field:C,formState:h,fieldState:$}),[C,h,$])}const QG=e=>e.render(mP(e));var gP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ai=e=>Array.isArray(e)?e:[e],QC=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function vP(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&nr(i)&&a){const o=vP(i,a);nr(o)&&(n[r]=o)}else e[r]&&(n[r]=a)}return n}var Lr=e=>nr(e)&&!Object.keys(e).length,Db=e=>e.type==="file",ya=e=>typeof e=="function",hp=e=>{if(!yb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},yP=e=>e.type==="select-multiple",$b=e=>e.type==="radio",JG=e=>$b(e)||lf(e),m4=e=>hp(e)&&e.isConnected;function eY(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=yn(e)?r++:e[t[r++]];return e}function tY(e){for(const t in e)if(e.hasOwnProperty(t)&&!yn(e[t]))return!1;return!0}function Wn(e,t){const n=Array.isArray(t)?t:pm(t)?[t]:bb(t),r=n.length===1?e:eY(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(nr(r)&&Lr(r)||Array.isArray(r)&&tY(r))&&Wn(e,n.slice(0,-1)),e}var nY=e=>{for(const t in e)if(ya(e[t]))return!0;return!1};function bP(e){return Array.isArray(e)||nr(e)&&!nY(e)}function l3(e,t={}){for(const n in e)bP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},l3(e[n],t[n])):yn(e[n])||(t[n]=!0);return t}function Dl(e,t,n){n||(n=l3(t));for(const r in e)bP(e[r])?yn(t)||u3(n[r])?n[r]=l3(e[r],Array.isArray(e[r])?[]:{}):Dl(e[r],ni(t)?{}:t[r],n[r]):n[r]=!Ro(e[r],t[r]);return n}const JC={value:!1,isValid:!1},e2={value:!0,isValid:!0};var xP=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!yn(e[0].attributes.value)?yn(e[0].value)||e[0].value===""?e2:{value:e[0].value,isValid:!0}:e2:JC}return JC},DP=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>yn(e)?e:t?e===""?NaN:e&&+e:n&&Ci(e)?new Date(e):r?r(e):e;const t2={isValid:!1,value:null};var $P=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,t2):t2;function n2(e){const t=e.ref;return Db(t)?t.files:$b(t)?$P(e.refs).value:yP(t)?[...t.selectedOptions].map(({value:n})=>n):lf(t)?xP(e.refs).value:DP(yn(t.value)?e.ref.value:t.value,e)}var rY=(e,t,n,r)=>{const i={};for(const a of e){const o=it(t,a);o&&nn(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},pp=e=>e instanceof RegExp,td=e=>yn(e)?e:pp(e)?e.source:nr(e)?pp(e.value)?e.value.source:e.value:e,Cl=e=>({isOnSubmit:!e||e===Wi.onSubmit,isOnBlur:e===Wi.onBlur,isOnChange:e===Wi.onChange,isOnAll:e===Wi.all,isOnTouch:e===Wi.onTouched});const r2="AsyncFunction";var iY=e=>!!e&&!!e.validate&&!!(ya(e.validate)&&e.validate.constructor.name===r2||nr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===r2)),aY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),c3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ol=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=it(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Ol(s,t))break}else if(nr(s)&&Ol(s,t))break}}};function i2(e,t,n){const r=it(e,n);if(r||pm(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=it(t,a),s=it(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};i.pop()}return{name:n}}var oY=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Lr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||Wi.all))},sY=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),uY=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,lY=(e,t)=>!mm(it(e,t)).length&&Wn(e,t),EP=(e,t,n)=>{const r=ai(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e};function a2(e,t,n="validate"){if(Ci(e)||Array.isArray(e)&&e.every(Ci)||Ei(e)&&!e)return{type:n,message:Ci(e)?e:"",ref:t}}var pl=e=>nr(e)&&!pp(e)?e:{value:e,message:""},d3=async(e,t,n,r,i,a)=>{const{ref:o,refs:s,required:l,maxLength:f,minLength:h,min:m,max:g,pattern:b,validate:$,name:x,valueAsNumber:A,mount:w}=e._f,C=it(n,x);if(!w||t.has(x))return{};const E=s?s[0]:o,T=Ee=>{i&&E.reportValidity&&(E.setCustomValidity(Ei(Ee)?"":Ee||""),E.reportValidity())},P={},F=$b(o),q=lf(o),te=F||q,se=(A||Db(o))&&yn(o.value)&&yn(C)||hp(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,ae=gP.bind(null,x,r,P),O=(Ee,be,z,G=ko.maxLength,V=ko.minLength)=>{const R=Ee?be:z;P[x]={type:Ee?G:V,message:R,ref:o,...ae(Ee?G:V,R)}};if(a?!Array.isArray(C)||!C.length:l&&(!te&&(se||ni(C))||Ei(C)&&!C||q&&!xP(s).isValid||F&&!$P(s).isValid)){const{value:Ee,message:be}=Ci(l)?{value:!!l,message:l}:pl(l);if(Ee&&(P[x]={type:ko.required,message:be,ref:E,...ae(ko.required,be)},!r))return T(be),P}if(!se&&(!ni(m)||!ni(g))){let Ee,be;const z=pl(g),G=pl(m);if(!ni(C)&&!isNaN(C)){const V=o.valueAsNumber||C&&+C;ni(z.value)||(Ee=V>z.value),ni(G.value)||(be=V<G.value)}else{const V=o.valueAsDate||new Date(C),R=M=>new Date(new Date().toDateString()+" "+M),K=o.type=="time",fe=o.type=="week";Ci(z.value)&&C&&(Ee=K?R(C)>R(z.value):fe?C>z.value:V>new Date(z.value)),Ci(G.value)&&C&&(be=K?R(C)<R(G.value):fe?C<G.value:V<new Date(G.value))}if((Ee||be)&&(O(!!Ee,z.message,G.message,ko.max,ko.min),!r))return T(P[x].message),P}if((f||h)&&!se&&(Ci(C)||a&&Array.isArray(C))){const Ee=pl(f),be=pl(h),z=!ni(Ee.value)&&C.length>+Ee.value,G=!ni(be.value)&&C.length<+be.value;if((z||G)&&(O(z,Ee.message,be.message),!r))return T(P[x].message),P}if(b&&!se&&Ci(C)){const{value:Ee,message:be}=pl(b);if(pp(Ee)&&!C.match(Ee)&&(P[x]={type:ko.pattern,message:be,ref:o,...ae(ko.pattern,be)},!r))return T(be),P}if($){if(ya($)){const Ee=await $(C,n),be=a2(Ee,E);if(be&&(P[x]={...be,...ae(ko.validate,be.message)},!r))return T(be.message),P}else if(nr($)){let Ee={};for(const be in $){if(!Lr(Ee)&&!r)break;const z=a2(await $[be](C,n),E,be);z&&(Ee={...z,...ae(be,z.message)},T(z.message),r&&(P[x]=Ee))}if(!Lr(Ee)&&(P[x]={ref:E,...Ee},!r))return P}}return T(!0),P};const cY={mode:Wi.onSubmit,reValidateMode:Wi.onChange,shouldFocusError:!0};function dY(e={}){let t={...cY,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ya(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=nr(t.defaultValues)||nr(t.values)?En(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:En(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...h};const g={array:QC(),state:QC()},b=t.criteriaMode===Wi.all,$=xe=>Ae=>{clearTimeout(f),f=setTimeout(xe,Ae)},x=async xe=>{if(!t.disabled&&(h.isValid||m.isValid||xe)){const Ae=t.resolver?Lr((await q()).errors):await se(r,!0);Ae!==n.isValid&&g.state.next({isValid:Ae})}},A=(xe,Ae)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((xe||Array.from(s.mount)).forEach(Fe=>{Fe&&(Ae?nn(n.validatingFields,Fe,Ae):Wn(n.validatingFields,Fe))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Lr(n.validatingFields)}))},w=(xe,Ae=[],Fe,Qe,et=!0,Je=!0)=>{if(Qe&&Fe&&!t.disabled){if(o.action=!0,Je&&Array.isArray(it(r,xe))){const gt=Fe(it(r,xe),Qe.argA,Qe.argB);et&&nn(r,xe,gt)}if(Je&&Array.isArray(it(n.errors,xe))){const gt=Fe(it(n.errors,xe),Qe.argA,Qe.argB);et&&nn(n.errors,xe,gt),lY(n.errors,xe)}if((h.touchedFields||m.touchedFields)&&Je&&Array.isArray(it(n.touchedFields,xe))){const gt=Fe(it(n.touchedFields,xe),Qe.argA,Qe.argB);et&&nn(n.touchedFields,xe,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Dl(i,a)),g.state.next({name:xe,isDirty:O(xe,Ae),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else nn(a,xe,Ae)},C=(xe,Ae)=>{nn(n.errors,xe,Ae),g.state.next({errors:n.errors})},E=xe=>{n.errors=xe,g.state.next({errors:n.errors,isValid:!1})},T=(xe,Ae,Fe,Qe)=>{const et=it(r,xe);if(et){const Je=it(a,xe,yn(Fe)?it(i,xe):Fe);yn(Je)||Qe&&Qe.defaultChecked||Ae?nn(a,xe,Ae?Je:n2(et._f)):z(xe,Je),o.mount&&x()}},P=(xe,Ae,Fe,Qe,et)=>{let Je=!1,gt=!1;const kt={name:xe};if(!t.disabled){if(!Fe||Qe){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=O(),Je=gt!==kt.isDirty);const Dt=Ro(it(i,xe),Ae);gt=!!it(n.dirtyFields,xe),Dt?Wn(n.dirtyFields,xe):nn(n.dirtyFields,xe,!0),kt.dirtyFields=n.dirtyFields,Je=Je||(h.dirtyFields||m.dirtyFields)&&gt!==!Dt}if(Fe){const Dt=it(n.touchedFields,xe);Dt||(nn(n.touchedFields,xe,Fe),kt.touchedFields=n.touchedFields,Je=Je||(h.touchedFields||m.touchedFields)&&Dt!==Fe)}Je&&et&&g.state.next(kt)}return Je?kt:{}},F=(xe,Ae,Fe,Qe)=>{const et=it(n.errors,xe),Je=(h.isValid||m.isValid)&&Ei(Ae)&&n.isValid!==Ae;if(t.delayError&&Fe?(l=$(()=>C(xe,Fe)),l(t.delayError)):(clearTimeout(f),l=null,Fe?nn(n.errors,xe,Fe):Wn(n.errors,xe)),(Fe?!Ro(et,Fe):et)||!Lr(Qe)||Je){const gt={...Qe,...Je&&Ei(Ae)?{isValid:Ae}:{},errors:n.errors,name:xe};n={...n,...gt},g.state.next(gt)}},q=async xe=>{A(xe,!0);const Ae=await t.resolver(a,t.context,rY(xe||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(xe),Ae},te=async xe=>{const{errors:Ae}=await q(xe);if(xe)for(const Fe of xe){const Qe=it(Ae,Fe);Qe?nn(n.errors,Fe,Qe):Wn(n.errors,Fe)}else n.errors=Ae;return Ae},se=async(xe,Ae,Fe={valid:!0})=>{for(const Qe in xe){const et=xe[Qe];if(et){const{_f:Je,...gt}=et;if(Je){const kt=s.array.has(Je.name),Dt=et._f&&iY(et._f);Dt&&h.validatingFields&&A([Je.name],!0);const bn=await d3(et,s.disabled,a,b,t.shouldUseNativeValidation&&!Ae,kt);if(Dt&&h.validatingFields&&A([Je.name]),bn[Je.name]&&(Fe.valid=!1,Ae))break;!Ae&&(it(bn,Je.name)?kt?EP(n.errors,bn,Je.name):nn(n.errors,Je.name,bn[Je.name]):Wn(n.errors,Je.name))}!Lr(gt)&&await se(gt,Ae,Fe)}}return Fe.valid},ae=()=>{for(const xe of s.unMount){const Ae=it(r,xe);Ae&&(Ae._f.refs?Ae._f.refs.every(Fe=>!m4(Fe)):!m4(Ae._f.ref))&&Xe(xe)}s.unMount=new Set},O=(xe,Ae)=>!t.disabled&&(xe&&Ae&&nn(a,xe,Ae),!Ro(M(),i)),Ee=(xe,Ae,Fe)=>hP(xe,s,{...o.mount?a:yn(Ae)?i:Ci(xe)?{[xe]:Ae}:Ae},Fe,Ae),be=xe=>mm(it(o.mount?a:i,xe,t.shouldUnregister?it(i,xe,[]):[])),z=(xe,Ae,Fe={})=>{const Qe=it(r,xe);let et=Ae;if(Qe){const Je=Qe._f;Je&&(!Je.disabled&&nn(a,xe,DP(Ae,Je)),et=hp(Je.ref)&&ni(Ae)?"":Ae,yP(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=et.includes(gt.value)):Je.refs?lf(Je.ref)?Je.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(et)?gt.checked=!!et.find(kt=>kt===gt.value):gt.checked=et===gt.value||!!et)}):Je.refs.forEach(gt=>gt.checked=gt.value===et):Db(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||g.state.next({name:xe,values:En(a)})))}(Fe.shouldDirty||Fe.shouldTouch)&&P(xe,et,Fe.shouldTouch,Fe.shouldDirty,!0),Fe.shouldValidate&&fe(xe)},G=(xe,Ae,Fe)=>{for(const Qe in Ae){if(!Ae.hasOwnProperty(Qe))return;const et=Ae[Qe],Je=xe+"."+Qe,gt=it(r,Je);(s.array.has(xe)||nr(et)||gt&&!gt._f)&&!lu(et)?G(Je,et,Fe):z(Je,et,Fe)}},V=(xe,Ae,Fe={})=>{const Qe=it(r,xe),et=s.array.has(xe),Je=En(Ae);nn(a,xe,Je),et?(g.array.next({name:xe,values:En(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Fe.shouldDirty&&g.state.next({name:xe,dirtyFields:Dl(i,a),isDirty:O(xe,Je)})):Qe&&!Qe._f&&!ni(Je)?G(xe,Je,Fe):z(xe,Je,Fe),c3(xe,s)&&g.state.next({...n,name:xe}),g.state.next({name:o.mount?xe:void 0,values:En(a)})},R=async xe=>{o.mount=!0;const Ae=xe.target;let Fe=Ae.name,Qe=!0;const et=it(r,Fe),Je=Dt=>{Qe=Number.isNaN(Dt)||lu(Dt)&&isNaN(Dt.getTime())||Ro(Dt,it(a,Fe,Dt))},gt=Cl(t.mode),kt=Cl(t.reValidateMode);if(et){let Dt,bn;const Dr=Ae.type?n2(et._f):cP(xe),zt=xe.type===fp.BLUR||xe.type===fp.FOCUS_OUT,Pt=!aY(et._f)&&!t.resolver&&!it(n.errors,Fe)&&!et._f.deps||uY(zt,it(n.touchedFields,Fe),n.isSubmitted,kt,gt),It=c3(Fe,s,zt);nn(a,Fe,Dr),zt?(!Ae||!Ae.readOnly)&&(et._f.onBlur&&et._f.onBlur(xe),l&&l(0)):et._f.onChange&&et._f.onChange(xe);const qt=P(Fe,Dr,zt),pr=!Lr(qt)||It;if(!zt&&g.state.next({name:Fe,type:xe.type,values:En(a)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&x():zt||x()),pr&&g.state.next({name:Fe,...It?{}:qt});if(!zt&&It&&g.state.next({...n}),t.resolver){const{errors:Hr}=await q([Fe]);if(Je(Dr),Qe){const li=i2(n.errors,r,Fe),Br=i2(Hr,r,li.name||Fe);Dt=Br.error,Fe=Br.name,bn=Lr(Hr)}}else A([Fe],!0),Dt=(await d3(et,s.disabled,a,b,t.shouldUseNativeValidation))[Fe],A([Fe]),Je(Dr),Qe&&(Dt?bn=!1:(h.isValid||m.isValid)&&(bn=await se(r,!0)));Qe&&(et._f.deps&&(!Array.isArray(et._f.deps)||et._f.deps.length>0)&&fe(et._f.deps),F(Fe,bn,Dt,qt))}},K=(xe,Ae)=>{if(it(n.errors,Ae)&&xe.focus)return xe.focus(),1},fe=async(xe,Ae={})=>{let Fe,Qe;const et=ai(xe);if(t.resolver){const Je=await te(yn(xe)?xe:et);Fe=Lr(Je),Qe=xe?!et.some(gt=>it(Je,gt)):Fe}else xe?(Qe=(await Promise.all(et.map(async Je=>{const gt=it(r,Je);return await se(gt&&gt._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Qe&&!n.isValid)&&x()):Qe=Fe=await se(r);return g.state.next({...!Ci(xe)||(h.isValid||m.isValid)&&Fe!==n.isValid?{}:{name:xe},...t.resolver||!xe?{isValid:Fe}:{},errors:n.errors}),Ae.shouldFocus&&!Qe&&Ol(r,K,xe?et:s.mount),Qe},M=(xe,Ae)=>{let Fe={...o.mount?a:i};return Ae&&(Fe=vP(Ae.dirtyFields?n.dirtyFields:n.touchedFields,Fe)),yn(xe)?Fe:Ci(xe)?it(Fe,xe):xe.map(Qe=>it(Fe,Qe))},oe=(xe,Ae)=>({invalid:!!it((Ae||n).errors,xe),isDirty:!!it((Ae||n).dirtyFields,xe),error:it((Ae||n).errors,xe),isValidating:!!it(n.validatingFields,xe),isTouched:!!it((Ae||n).touchedFields,xe)}),le=xe=>{xe&&ai(xe).forEach(Ae=>Wn(n.errors,Ae)),g.state.next({errors:xe?n.errors:{}})},Se=(xe,Ae,Fe)=>{const Qe=(it(r,xe,{_f:{}})._f||{}).ref,et=it(n.errors,xe)||{},{ref:Je,message:gt,type:kt,...Dt}=et;nn(n.errors,xe,{...Dt,...Ae,ref:Qe}),g.state.next({name:xe,errors:n.errors,isValid:!1}),Fe&&Fe.shouldFocus&&Qe&&Qe.focus&&Qe.focus()},_e=(xe,Ae)=>ya(xe)?g.state.subscribe({next:Fe=>"values"in Fe&&xe(Ee(void 0,Ae),Fe)}):Ee(xe,Ae,!0),Be=xe=>g.state.subscribe({next:Ae=>{sY(xe.name,Ae.name,xe.exact)&&oY(Ae,xe.formState||h,_t,xe.reRenderRoot)&&xe.callback({values:{...a},...n,...Ae,defaultValues:i})}}).unsubscribe,Ge=xe=>(o.mount=!0,m={...m,...xe.formState},Be({...xe,formState:m})),Xe=(xe,Ae={})=>{for(const Fe of xe?ai(xe):s.mount)s.mount.delete(Fe),s.array.delete(Fe),Ae.keepValue||(Wn(r,Fe),Wn(a,Fe)),!Ae.keepError&&Wn(n.errors,Fe),!Ae.keepDirty&&Wn(n.dirtyFields,Fe),!Ae.keepTouched&&Wn(n.touchedFields,Fe),!Ae.keepIsValidating&&Wn(n.validatingFields,Fe),!t.shouldUnregister&&!Ae.keepDefaultValue&&Wn(i,Fe);g.state.next({values:En(a)}),g.state.next({...n,...Ae.keepDirty?{isDirty:O()}:{}}),!Ae.keepIsValid&&x()},Ne=({disabled:xe,name:Ae})=>{(Ei(xe)&&o.mount||xe||s.disabled.has(Ae))&&(xe?s.disabled.add(Ae):s.disabled.delete(Ae))},qe=(xe,Ae={})=>{let Fe=it(r,xe);const Qe=Ei(Ae.disabled)||Ei(t.disabled);return nn(r,xe,{...Fe||{},_f:{...Fe&&Fe._f?Fe._f:{ref:{name:xe}},name:xe,mount:!0,...Ae}}),s.mount.add(xe),Fe?Ne({disabled:Ei(Ae.disabled)?Ae.disabled:t.disabled,name:xe}):T(xe,!0,Ae.value),{...Qe?{disabled:Ae.disabled||t.disabled}:{},...t.progressive?{required:!!Ae.required,min:td(Ae.min),max:td(Ae.max),minLength:td(Ae.minLength),maxLength:td(Ae.maxLength),pattern:td(Ae.pattern)}:{},name:xe,onChange:R,onBlur:R,ref:et=>{if(et){qe(xe,Ae),Fe=it(r,xe);const Je=yn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,gt=JG(Je),kt=Fe._f.refs||[];if(gt?kt.find(Dt=>Dt===Je):Je===Fe._f.ref)return;nn(r,xe,{_f:{...Fe._f,...gt?{refs:[...kt.filter(m4),Je,...Array.isArray(it(i,xe))?[{}]:[]],ref:{type:Je.type,name:xe}}:{ref:Je}}}),T(xe,!1,void 0,Je)}else Fe=it(r,xe,{}),Fe._f&&(Fe._f.mount=!1),(t.shouldUnregister||Ae.shouldUnregister)&&!(dP(s.array,xe)&&o.action)&&s.unMount.add(xe)}}},ke=()=>t.shouldFocusError&&Ol(r,K,s.mount),je=xe=>{Ei(xe)&&(g.state.next({disabled:xe}),Ol(r,(Ae,Fe)=>{const Qe=it(r,Fe);Qe&&(Ae.disabled=Qe._f.disabled||xe,Array.isArray(Qe._f.refs)&&Qe._f.refs.forEach(et=>{et.disabled=Qe._f.disabled||xe}))},0,!1))},Te=(xe,Ae)=>async Fe=>{let Qe;Fe&&(Fe.preventDefault&&Fe.preventDefault(),Fe.persist&&Fe.persist());let et=En(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await q();n.errors=Je,et=En(gt)}else await se(r);if(s.disabled.size)for(const Je of s.disabled)Wn(et,Je);if(Wn(n.errors,"root"),Lr(n.errors)){g.state.next({errors:{}});try{await xe(et,Fe)}catch(Je){Qe=Je}}else Ae&&await Ae({...n.errors},Fe),ke(),setTimeout(ke);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lr(n.errors)&&!Qe,submitCount:n.submitCount+1,errors:n.errors}),Qe)throw Qe},Ye=(xe,Ae={})=>{it(r,xe)&&(yn(Ae.defaultValue)?V(xe,En(it(i,xe))):(V(xe,Ae.defaultValue),nn(i,xe,En(Ae.defaultValue))),Ae.keepTouched||Wn(n.touchedFields,xe),Ae.keepDirty||(Wn(n.dirtyFields,xe),n.isDirty=Ae.defaultValue?O(xe,En(it(i,xe))):O()),Ae.keepError||(Wn(n.errors,xe),h.isValid&&x()),g.state.next({...n}))},ht=(xe,Ae={})=>{const Fe=xe?En(xe):i,Qe=En(Fe),et=Lr(xe),Je=et?i:Qe;if(Ae.keepDefaultValues||(i=Fe),!Ae.keepValues){if(Ae.keepDirtyValues){const gt=new Set([...s.mount,...Object.keys(Dl(i,a))]);for(const kt of Array.from(gt))it(n.dirtyFields,kt)?nn(Je,kt,it(a,kt)):V(kt,it(Je,kt))}else{if(yb&&yn(xe))for(const gt of s.mount){const kt=it(r,gt);if(kt&&kt._f){const Dt=Array.isArray(kt._f.refs)?kt._f.refs[0]:kt._f.ref;if(hp(Dt)){const bn=Dt.closest("form");if(bn){bn.reset();break}}}}if(Ae.keepFieldsRef)for(const gt of s.mount)V(gt,it(Je,gt));else r={}}a=t.shouldUnregister?Ae.keepDefaultValues?En(i):{}:En(Je),g.array.next({values:{...Je}}),g.state.next({values:{...Je}})}s={mount:Ae.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Ae.keepIsValid||!!Ae.keepDirtyValues,o.watch=!!t.shouldUnregister,g.state.next({submitCount:Ae.keepSubmitCount?n.submitCount:0,isDirty:et?!1:Ae.keepDirty?n.isDirty:!!(Ae.keepDefaultValues&&!Ro(xe,i)),isSubmitted:Ae.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:Ae.keepDirtyValues?Ae.keepDefaultValues&&a?Dl(i,a):n.dirtyFields:Ae.keepDefaultValues&&xe?Dl(i,xe):Ae.keepDirty?n.dirtyFields:{},touchedFields:Ae.keepTouched?n.touchedFields:{},errors:Ae.keepErrors?n.errors:{},isSubmitSuccessful:Ae.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ht=(xe,Ae)=>ht(ya(xe)?xe(a):xe,Ae),xt=(xe,Ae={})=>{const Fe=it(r,xe),Qe=Fe&&Fe._f;if(Qe){const et=Qe.refs?Qe.refs[0]:Qe.ref;et.focus&&(et.focus(),Ae.shouldSelect&&ya(et.select)&&et.select())}},_t=xe=>{n={...n,...xe}},Jt={control:{register:qe,unregister:Xe,getFieldState:oe,handleSubmit:Te,setError:Se,_subscribe:Be,_runSchema:q,_focusError:ke,_getWatch:Ee,_getDirty:O,_setValid:x,_setFieldArray:w,_setDisabledField:Ne,_setErrors:E,_getFieldArray:be,_reset:ht,_resetDefaultValues:()=>ya(t.defaultValues)&&t.defaultValues().then(xe=>{Ht(xe,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:je,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(xe){o=xe},get _defaultValues(){return i},get _names(){return s},set _names(xe){s=xe},get _formState(){return n},get _options(){return t},set _options(xe){t={...t,...xe}}},subscribe:Ge,trigger:fe,register:qe,handleSubmit:Te,watch:_e,setValue:V,getValues:M,reset:Ht,resetField:Ye,clearErrors:le,unregister:Xe,setError:Se,setFocus:xt,getFieldState:oe};return{...Jt,formControl:Jt}}var cs=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},g4=(e,t,n={})=>n.shouldFocus||yn(n.shouldFocus)?n.focusName||`${e}.${yn(n.focusIndex)?t:n.focusIndex}.`:"",v4=(e,t)=>[...e,...ai(t)],y4=e=>Array.isArray(e)?e.map(()=>{}):void 0;function b4(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var x4=(e,t,n)=>Array.isArray(e)?(yn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],D4=(e,t)=>[...ai(t),...ai(e)];function fY(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return mm(r).length?r:[]}var $4=(e,t)=>yn(t)?[]:fY(e,ai(t).sort((n,r)=>n-r)),E4=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},o2=(e,t,n)=>(e[t]=n,e);function hY(e){const t=cf(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:a,rules:o}=e,[s,l]=de.default.useState(n._getFieldArray(r)),f=de.default.useRef(n._getFieldArray(r).map(cs)),h=de.default.useRef(!1);n._names.array.add(r),de.default.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),gm(()=>n._subjects.array.subscribe({next:({values:T,name:P})=>{if(P===r||!P){const F=it(T,r);Array.isArray(F)&&(l(F),f.current=F.map(cs))}}}).unsubscribe,[n,r]);const m=de.default.useCallback(T=>{h.current=!0,n._setFieldArray(r,T)},[n,r]),g=(T,P)=>{const F=ai(En(T)),q=v4(n._getFieldArray(r),F);n._names.focus=g4(r,q.length-1,P),f.current=v4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,v4,{argA:y4(T)})},b=(T,P)=>{const F=ai(En(T)),q=D4(n._getFieldArray(r),F);n._names.focus=g4(r,0,P),f.current=D4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,D4,{argA:y4(T)})},$=T=>{const P=$4(n._getFieldArray(r),T);f.current=$4(f.current,T),m(P),l(P),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,P,$4,{argA:T})},x=(T,P,F)=>{const q=ai(En(P)),te=b4(n._getFieldArray(r),T,q);n._names.focus=g4(r,T,F),f.current=b4(f.current,T,q.map(cs)),m(te),l(te),n._setFieldArray(r,te,b4,{argA:T,argB:y4(P)})},A=(T,P)=>{const F=n._getFieldArray(r);E4(F,T,P),E4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,E4,{argA:T,argB:P},!1)},w=(T,P)=>{const F=n._getFieldArray(r);x4(F,T,P),x4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,x4,{argA:T,argB:P},!1)},C=(T,P)=>{const F=En(P),q=o2(n._getFieldArray(r),T,F);f.current=[...q].map((te,se)=>!te||se===T?cs():f.current[se]),m(q),l([...q]),n._setFieldArray(r,q,o2,{argA:T,argB:F},!0,!1)},E=T=>{const P=ai(En(T));f.current=P.map(cs),m([...P]),l([...P]),n._setFieldArray(r,[...P],F=>F,{},!0,!1)};return de.default.useEffect(()=>{if(n._state.action=!1,c3(r,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!Cl(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Cl(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(T=>{const P=it(T.errors,r),F=it(n._formState.errors,r);(F?!P&&F.type||P&&(F.type!==P.type||F.message!==P.message):P&&P.type)&&(P?nn(n._formState.errors,r,P):Wn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=it(n._fields,r);T&&T._f&&!(Cl(n._options.reValidateMode).isOnSubmit&&Cl(n._options.mode).isOnSubmit)&&d3(T,n._names.disabled,n._formValues,n._options.criteriaMode===Wi.all,n._options.shouldUseNativeValidation,!0).then(P=>!Lr(P)&&n._subjects.state.next({errors:EP(n._formState.errors,P,r)}))}n._subjects.state.next({name:r,values:En(n._formValues)}),n._names.focus&&Ol(n._fields,(T,P)=>{if(n._names.focus&&P.startsWith(n._names.focus)&&T.focus)return T.focus(),1}),n._names.focus="",n._setValid(),h.current=!1},[s,r,n]),de.default.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const T=(P,F)=>{const q=it(n._fields,P);q&&q._f&&(q._f.mount=F)};n._options.shouldUnregister||a?n.unregister(r):T(r,!1)}),[r,n,i,a]),{swap:de.default.useCallback(A,[m,r,n]),move:de.default.useCallback(w,[m,r,n]),prepend:de.default.useCallback(b,[m,r,n]),append:de.default.useCallback(g,[m,r,n]),remove:de.default.useCallback($,[m,r,n]),insert:de.default.useCallback(x,[m,r,n]),update:de.default.useCallback(C,[m,r,n]),replace:de.default.useCallback(E,[m,r,n]),fields:de.default.useMemo(()=>s.map((T,P)=>({...T,[i]:f.current[P]||cs()})),[s,i])}}function pY(e={}){const t=de.default.useRef(void 0),n=de.default.useRef(void 0),[r,i]=de.default.useState({isDirty:!1,isValidating:!1,isLoading:ya(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ya(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!ya(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...s}=dY(e);t.current={...s,formState:r}}const a=t.current.control;return a._options=e,gm(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),a._formState.isReady=!0,o},[a]),de.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),de.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),de.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),de.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),de.default.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==r.isDirty&&a._subjects.state.next({isDirty:o})}},[a,r.isDirty]),de.default.useEffect(()=>{e.values&&!Ro(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[a,e.values]),de.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=fP(r,a),t.current}function ml(e,t,n){let r=n.initialDeps??[],i;function a(){var o,s,l,f;let h;n.key&&((o=n.debug)!=null&&o.call(n))&&(h=Date.now());const m=e();if(!(m.length!==r.length||m.some(($,x)=>r[x]!==$)))return i;r=m;let b;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(b=Date.now()),i=t(...m),n.key&&((l=n.debug)!=null&&l.call(n))){const $=Math.round((Date.now()-h)*100)/100,x=Math.round((Date.now()-b)*100)/100,A=x/16,w=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${w(x,5)} /${w($,5)} ms`,`
61
62
  font-size: .6rem;
62
63
  font-weight: bold;
63
- color: hsl(${Math.max(0,Math.min(120-120*A,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,i),i}return a.updateDeps=o=>{r=o},a}function o2(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const WG=(e,t)=>Math.abs(e-t)<1.01,HG=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},s2=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},GG=e=>e,YG=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},ZG=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(i(s2(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const f=l.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(s2(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},u2={passive:!0},l2=typeof window>"u"?!0:"onscrollend"in window,XG=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&l2?()=>{}:HG(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=h=>()=>{const{horizontal:m,isRtl:g}=e.options;i=m?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(i,h)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,u2);const f=e.options.useScrollendEvent&&l2;return f&&n.addEventListener("scrollend",l,u2),()=>{n.removeEventListener("scroll",s),f&&n.removeEventListener("scrollend",l)}},QG=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},JG=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const o=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class eY{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:GG,rangeExtractor:YG,onChange:()=>{},measureElement:QG,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ml(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let o=r-1;o>=0;o--){const s=n[o];if(i.has(s.lane))continue;const l=a.get(s.lane);if(l==null||s.end>l.end?a.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=ml(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=ml(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,l);for(let h=l;h<n;h++){const m=a(h),g=this.options.lanes===1?f[h-1]:this.getFurthestMeasurement(f,h),b=g?g.end+this.options.gap:r+i,$=s.get(m),x=typeof $=="number"?$:this.options.estimateSize(h),A=b+x,w=g?g.lane:h%this.options.lanes;f[h]={index:h,start:b,size:x,end:A,key:m,lane:w}}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ml(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?tY({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ml(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,o)=>a===null||o===null?[]:n({startIndex:a,endIndex:o,overscan:r,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const o=a.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,o=r-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=ml(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,o=n.length;a<o;a++){const s=n[a],l=r[s];i.push(l)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return o2(r[xP(0,r.length-1,i=>o2(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const a=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+a-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const o=10,s=f=>{if(!this.targetWindow)return;const h=this.getOffsetForIndex(n,f);if(!h){console.warn("Failed to get offset for index:",n);return}const[m,g]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const b=this.getScrollOffset(),$=this.getOffsetForIndex(n,g);if(!$){console.warn("Failed to get offset for index:",n);return}WG($[0],b)||l(g)})},l=f=>{this.targetWindow&&(a++,a<o?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,o),this.targetWindow.requestAnimationFrame(()=>s(f))):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&a.some(s=>s===null);){const s=r[o];a[s.lane]===null&&(a[s.lane]=s.end),o--}i=Math.max(...a.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const xP=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function tY({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=l=>e[l].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=xP(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const l=Array(r).fill(0);for(;s<i&&l.some(h=>h<n+t);){const h=e[s];l[h.lane]=h.end,s++}const f=Array(r).fill(n+t);for(;o>=0&&f.some(h=>h>=n);){const h=e[o];f[h.lane]=h.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}const c2=typeof document<"u"?de.useLayoutEffect:de.useEffect;function nY(e){const t=de.useReducer(()=>({}),{})[1],n={...e,onChange:(i,a)=>{var o;a?of.flushSync(t):t(),(o=e.onChange)==null||o.call(e,i,a)}},[r]=de.useState(()=>new eY(n));return r.setOptions(n),c2(()=>r._didMount(),[]),c2(()=>r._willUpdate()),r}function rY(e){return nY({observeElementRect:ZG,observeElementOffset:XG,scrollToFn:JG,...e})}const hn=typeof document<"u"?de.default.useLayoutEffect:()=>{};var $4;const iY=($4=de.default.useInsertionEffect)!==null&&$4!==void 0?$4:hn;function cn(e){const t=I.useRef(null);return iY(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function aY(e){let[t,n]=I.useState(e),r=I.useRef(null),i=cn(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});hn(()=>{r.current&&i()});let a=cn(o=>{r.current=o(t),i()});return[t,a]}const mp={prefix:String(Math.round(Math.random()*1e10)),current:0},DP=de.default.createContext(mp),oY=de.default.createContext(!1);let sY=!!(typeof window<"u"&&window.document&&window.document.createElement),E4=new WeakMap;function uY(e=!1){let t=I.useContext(DP),n=I.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=de.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=E4.get(a);o==null?E4.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,E4.delete(a))}n.current=++t.current}return n.current}function lY(e){let t=I.useContext(DP);t===mp&&!sY&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=uY(!!e),r=t===mp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function cY(e){let t=de.default.useId(),[n]=I.useState(vm()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${mp.prefix}`;return e||`${r}-${t}`}const dY=typeof de.default.useId=="function"?cY:lY;function fY(){return!1}function hY(){return!0}function pY(e){return()=>{}}function vm(){return typeof de.default.useSyncExternalStore=="function"?de.default.useSyncExternalStore(pY,fY,hY):I.useContext(oY)}let mY=!!(typeof window<"u"&&window.document&&window.document.createElement),Ll=new Map,vd;typeof FinalizationRegistry<"u"&&(vd=new FinalizationRegistry(e=>{Ll.delete(e)}));function zr(e){let[t,n]=I.useState(e),r=I.useRef(null),i=dY(t),a=I.useRef(null);if(vd&&vd.register(a,i),mY){const o=Ll.get(i);o&&!o.includes(r)?o.push(r):Ll.set(i,[r])}return hn(()=>{let o=i;return()=>{vd&&vd.unregister(a),Ll.delete(o)}},[i]),I.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function gY(e,t){if(e===t)return e;let n=Ll.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Ll.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Zl(e=[]){let t=zr(),[n,r]=aY(t),i=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return hn(i,[t,i,...e]),n}function Iu(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ao=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function vY(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function yY(e){return vY(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let bY=!1;function ym(){return bY}function Sn(e,t){if(!ym())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:yY(n)?n=n.host:n=n.parentNode}return!1}const ir=(e=document)=>{var t;if(!ym())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function tn(e){return ym()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class xY{get currentNode(){return this._currentNode}set currentNode(t){if(!Sn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Sn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const f=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(f),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function DY(e,t,n,r){return ym()?new xY(e,t,n,r):e.createTreeWalker(t,n,r)}function $P(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=$P(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $Y(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=$P(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Iu(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=$Y(a,o):i==="id"&&a&&o?t.id=gY(a,o):t[i]=o!==void 0?o:a}}return t}const EY=new Set(["id"]),CY=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wY=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),AY=new Set(["dir","lang","hidden","inert","translate"]),d2=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),SY=/^(data-.*)$/;function Yo(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(EY.has(l)||n&&CY.has(l)||r&&wY.has(l)||i&&AY.has(l)||a&&d2.has(l)||l.endsWith("Capture")&&d2.has(l.slice(0,-7))||o!=null&&o.has(l)||SY.test(l))&&(s[l]=e[l]);return s}function wi(e){if(TY())e.focus({preventScroll:!0});else{let t=PY(e);e.focus(),_Y(t)}}let ph=null;function TY(){if(ph==null){ph=!1;try{document.createElement("div").focus({get preventScroll(){return ph=!0,!0}})}catch{}}return ph}function PY(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function _Y(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function bm(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function xb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Zo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const oo=Zo(function(){return xb(/^Mac/i)}),BY=Zo(function(){return xb(/^iPhone/i)}),Db=Zo(function(){return xb(/^iPad/i)||oo()&&navigator.maxTouchPoints>1}),df=Zo(function(){return BY()||Db()}),Oh=Zo(function(){return oo()||df()}),$b=Zo(function(){return bm(/AppleWebKit/i)&&!Eb()}),Eb=Zo(function(){return bm(/Chrome/i)}),Cb=Zo(function(){return bm(/Android/i)}),FY=Zo(function(){return bm(/Firefox/i)}),kY=I.createContext({isNative:!0,open:RY,useHref:e=>e});function xm(){return I.useContext(kY)}function wu(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;FY()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(oo()?a=!0:o=!0);let f=$b()&&oo()&&!Db()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});wu.isOpening=n,wi(e),e.dispatchEvent(f),wu.isOpening=!1}wu.isOpening=!1;function MY(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function RY(e,t){MY(e,n=>wu(n,t))}function IY(e){let t=xm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let gs=new Map,l3=new Set;function f2(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=gs.get(r.target);i||(i=new Set,gs.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=gs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),gs.delete(r.target)),gs.size===0)){for(let a of l3)a();l3.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?f2():document.addEventListener("DOMContentLoaded",f2));function OY(){for(const[e]of gs)"isConnected"in e&&!e.isConnected&&gs.delete(e)}function EP(e){requestAnimationFrame(()=>{OY(),gs.size===0?e():l3.add(e)})}function Ts(){let e=I.useRef(new Map),t=I.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,l,s)},[]),n=I.useCallback((i,a,o,s)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,s),e.current.delete(o)},[]),r=I.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return I.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Xl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=zr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function c3(e,t){const n=I.useRef(!0),r=I.useRef(null);I.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),I.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,o)=>!Object.is(a,i[o])))&&e(),r.current=t},t)}function h2(e,t){const n=I.useRef(!0),r=I.useRef(null);hn(()=>(n.current=!0,()=>{n.current=!1}),[]),hn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function LY(){return typeof window.ResizeObserver<"u"}function p2(e){const{ref:t,box:n,onResize:r}=e;I.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(LY()){const a=new window.ResizeObserver(o=>{o.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function CP(e,t){hn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ql(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Dm(e,t){let n=e;for(Ql(n,t)&&(n=n.parentElement);n&&!Ql(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function VY(e,t){const n=[];for(;e&&e!==document.documentElement;)Ql(e,t)&&n.push(e),e=e.parentElement;return n}function $l(e){return oo()?e.metaKey:e.ctrlKey}const NY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function C4(e){return e instanceof HTMLInputElement&&!NY.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let jY=0;const w4=new Map;function fc(e){let[t,n]=I.useState();return hn(()=>{if(!e)return;let r=w4.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${jY++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},w4.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),w4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ba(e,t,n,r){let i=cn(n),a=n==null;I.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function wP(e,t){let n=m2(e,t,"left"),r=m2(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:$,scrollMarginRight:x,scrollMarginBottom:A,scrollMarginLeft:w}=getComputedStyle(t),C=o+parseInt(f,10),E=s+parseInt(l,10),T=C+e.clientWidth,P=E+e.clientHeight,F=parseInt(h,10)||0,q=parseInt(g,10)||0,te=parseInt(m,10)||0,se=parseInt(b,10)||0,ae=parseInt($,10)||0,O=parseInt(A,10)||0,Ee=parseInt(x,10)||0,be=parseInt(w,10)||0,z=n-be,G=n+i+Ee,V=r-ae,R=r+a+O,K=o+parseInt(f,10)+se,fe=T-te,M=s+parseInt(l,10)+F,oe=P-q;if((z>K||G<fe)&&(z<=o+se?o=z-parseInt(f,10)-se:G>T-te&&(o+=G-T+te)),(V>M||R<oe)&&(V<=E+F?s=V-parseInt(l,10)-F:R>P-q&&(s+=R-P+q)),process.env.NODE_ENV==="test"){e.scrollLeft=o,e.scrollTop=s;return}e.scrollTo({left:o,top:s})}function m2(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function gp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!Eb()){var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(f-m)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}else{let l=VY(e);for(let f of l)wP(f,e)}}}function d3(e){return e.pointerType===""&&e.isTrusted?!0:Cb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function KY(e){return!Cb()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function AP(e,t){let n=I.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function wb(e,t,n){let r=cn(()=>{n&&n(t)});I.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",r),()=>{a==null||a.removeEventListener("reset",r)}},[e,r])}const zY="react-aria-clear-focus",qY="react-aria-focus",UY=typeof Element<"u"&&"checkVisibility"in Element.prototype;function WY(e){const t=ao(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function HY(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ab(e,t){return UY?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&WY(e)&&HY(e,t)&&(!e.parentElement||Ab(e.parentElement,e))}const Sb=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],GY=Sb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Sb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const YY=Sb.join(':not([hidden]):not([tabindex="-1"]),');function SP(e){return e.matches(GY)&&Ab(e)&&!TP(e)}function ZY(e){return e.matches(YY)&&Ab(e)&&!TP(e)}function TP(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Ai(e,t,n){let[r,i]=I.useState(e||t),a=I.useRef(e!==void 0),o=e!==void 0;I.useEffect(()=>{let f=a.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=I.useCallback((f,...h)=>{let m=(g,...b)=>{n&&(Object.is(s,g)||n(g,...b)),o||(s=g)};typeof f=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...$)=>{let x=f(o?s:b,...$);return m(x,...h),o?b:x})):(o||i(f),m(f,...h))},[o,s,n]);return[s,l]}function Jl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function mh(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=Math.pow(10,r);n=Math.round(n*o)/o}return n}function nd(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=mh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(mh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(mh((n-t)/r,r))*r),a=mh(a,r),a}function Tb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function PP(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function _P(e){let t=I.useRef({isFocused:!1,observer:null});hn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=cn(r=>{e==null||e(r)});return I.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{if(t.current.isFocused=!1,i.disabled){let s=Tb(o);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let vp=!1;function g2(e){for(;e&&!SP(e);)e=e.parentElement;let t=ao(e),n=t.document.activeElement;if(!n||n===e)return;vp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,wi(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,wi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(f),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),vp=!1,r=!1},f=requestAnimationFrame(l);return l}let wl="default",f3="",Lh=new WeakMap;function h3(e){if(df()){if(wl==="default"){const t=Xt(e);f3=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Lh.set(e,e.style[t]),e.style[t]="none"}}function Vh(e){if(df()){if(wl!=="disabled")return;wl="restoring",setTimeout(()=>{EP(()=>{if(wl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=f3||""),f3="",wl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Lh.has(e)){let t=Lh.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Lh.delete(e)}}const Pb=de.default.createContext({register:()=>{}});Pb.displayName="PressResponderContext";function XY(e,t){return t.get?t.get.call(e):t.value}function BP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function QY(e,t){var n=BP(e,t,"get");return XY(e,n)}function JY(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ff(e,t,n){JY(e,t),t.set(e,n)}function eZ(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function v2(e,t,n){var r=BP(e,t,"set");return eZ(e,r,n),n}function tZ(e){let t=I.useContext(Pb);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return CP(t,e.ref),e}var gh=new WeakMap;class vh{continuePropagation(){v2(this,gh,!1)}get shouldStopPropagation(){return QY(this,gh)}constructor(t,n,r,i){ff(this,gh,{writable:!0,value:void 0}),v2(this,gh,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,f=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),s&&(h!=null&&m!=null?(l=h-s.left,f=m-s.top):(l=s.width/2,f=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=f}}const y2=Symbol("linkClicked"),b2="react-aria-pressable-style",x2="data-react-aria-pressable";function hf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=tZ(e),[$,x]=I.useState(!1),A=I.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:w,removeAllGlobalListeners:C}=Ts(),E=cn((O,Ee)=>{let be=A.current;if(s||be.didFirePressStart)return!1;let z=!0;if(be.isTriggeringEvent=!0,r){let G=new vh("pressstart",Ee,O);r(G),z=G.shouldStopPropagation}return n&&n(!0),be.isTriggeringEvent=!1,be.didFirePressStart=!0,x(!0),z}),T=cn((O,Ee,be=!0)=>{let z=A.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let G=!0;if(i){let V=new vh("pressend",Ee,O);i(V),G=V.shouldStopPropagation}if(n&&n(!1),x(!1),t&&be&&!s){let V=new vh("press",Ee,O);t(V),G&&(G=V.shouldStopPropagation)}return z.isTriggeringEvent=!1,G}),P=cn((O,Ee)=>{let be=A.current;if(s)return!1;if(a){be.isTriggeringEvent=!0;let z=new vh("pressup",Ee,O);return a(z),be.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),F=cn(O=>{let Ee=A.current;if(Ee.isPressed&&Ee.target){Ee.didFirePressStart&&Ee.pointerType!=null&&T(nu(Ee.target,O),Ee.pointerType,!1),Ee.isPressed=!1,Ee.isOverTarget=!1,Ee.activePointerId=null,Ee.pointerType=null,C(),m||Vh(Ee.target);for(let be of Ee.disposables)be();Ee.disposables=[]}}),q=cn(O=>{h&&F(O)}),te=cn(O=>{s||o==null||o(O)}),se=cn((O,Ee)=>{if(!s&&o){let be=new MouseEvent("click",O);PP(be,Ee),o(Tb(be))}}),ae=I.useMemo(()=>{let O=A.current,Ee={onKeyDown(z){if(A4(z.nativeEvent,z.currentTarget)&&Sn(z.currentTarget,tn(z.nativeEvent))){var G;E2(tn(z.nativeEvent),z.key)&&z.preventDefault();let V=!0;if(!O.isPressed&&!z.repeat){O.target=z.currentTarget,O.isPressed=!0,O.pointerType="keyboard",V=E(z,"keyboard");let R=z.currentTarget,K=fe=>{A4(fe,R)&&!fe.repeat&&Sn(R,tn(fe))&&O.target&&P(nu(O.target,fe),"keyboard")};w(Xt(z.currentTarget),"keyup",Iu(K,be),!0)}V&&z.stopPropagation(),z.metaKey&&oo()&&((G=O.metaKeyEvents)===null||G===void 0||G.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(O.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Sn(z.currentTarget,tn(z.nativeEvent)))&&z&&z.button===0&&!O.isTriggeringEvent&&!wu.isOpening){let G=!0;if(s&&z.preventDefault(),!O.ignoreEmulatedMouseEvents&&!O.isPressed&&(O.pointerType==="virtual"||d3(z.nativeEvent))){let V=E(z,"virtual"),R=P(z,"virtual"),K=T(z,"virtual");te(z),G=V&&R&&K}else if(O.isPressed&&O.pointerType!=="keyboard"){let V=O.pointerType||z.nativeEvent.pointerType||"virtual",R=P(nu(z.currentTarget,z),V),K=T(nu(z.currentTarget,z),V,!0);G=R&&K,O.isOverTarget=!1,te(z),F(z)}O.ignoreEmulatedMouseEvents=!1,G&&z.stopPropagation()}}},be=z=>{var G;if(O.isPressed&&O.target&&A4(z,O.target)){var V;E2(tn(z),z.key)&&z.preventDefault();let K=tn(z),fe=Sn(O.target,tn(z));T(nu(O.target,z),"keyboard",fe),fe&&se(z,O.target),C(),z.key!=="Enter"&&_b(O.target)&&Sn(O.target,K)&&!z[y2]&&(z[y2]=!0,wu(O.target,z,!1)),O.isPressed=!1,(V=O.metaKeyEvents)===null||V===void 0||V.delete(z.key)}else if(z.key==="Meta"&&(!((G=O.metaKeyEvents)===null||G===void 0)&&G.size)){var R;let K=O.metaKeyEvents;O.metaKeyEvents=void 0;for(let fe of K.values())(R=O.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",fe))}};if(typeof PointerEvent<"u"){Ee.onPointerDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(KY(V.nativeEvent)){O.pointerType="virtual";return}O.pointerType=V.pointerType;let R=!0;if(!O.isPressed){O.isPressed=!0,O.isOverTarget=!0,O.activePointerId=V.pointerId,O.target=V.currentTarget,m||h3(O.target),R=E(V,O.pointerType);let K=tn(V.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(V.pointerId),w(Xt(V.currentTarget),"pointerup",z,!1),w(Xt(V.currentTarget),"pointercancel",G,!1)}R&&V.stopPropagation()},Ee.onMouseDown=V=>{if(Sn(V.currentTarget,tn(V.nativeEvent))&&V.button===0){if(f){let R=g2(V.target);R&&O.disposables.push(R)}V.stopPropagation()}},Ee.onPointerUp=V=>{!Sn(V.currentTarget,tn(V.nativeEvent))||O.pointerType==="virtual"||V.button===0&&!O.isPressed&&P(V,O.pointerType||V.pointerType)},Ee.onPointerEnter=V=>{V.pointerId===O.activePointerId&&O.target&&!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,E(nu(O.target,V),O.pointerType))},Ee.onPointerLeave=V=>{V.pointerId===O.activePointerId&&O.target&&O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,T(nu(O.target,V),O.pointerType,!1),q(V))};let z=V=>{if(V.pointerId===O.activePointerId&&O.isPressed&&V.button===0&&O.target){if(Sn(O.target,tn(V))&&O.pointerType!=null){let R=!1,K=setTimeout(()=>{O.isPressed&&O.target instanceof HTMLElement&&(R?F(V):(wi(O.target),O.target.click()))},80);w(V.currentTarget,"click",()=>R=!0,!0),O.disposables.push(()=>clearTimeout(K))}else F(V);O.isOverTarget=!1}},G=V=>{F(V)};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}else if(process.env.NODE_ENV==="test"){Ee.onMouseDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(O.ignoreEmulatedMouseEvents){V.stopPropagation();return}if(O.isPressed=!0,O.isOverTarget=!0,O.target=V.currentTarget,O.pointerType=d3(V.nativeEvent)?"virtual":"mouse",of.flushSync(()=>E(V,O.pointerType))&&V.stopPropagation(),f){let K=g2(V.target);K&&O.disposables.push(K)}w(Xt(V.currentTarget),"mouseup",z,!1)},Ee.onMouseEnter=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!0,R=E(V,O.pointerType)),R&&V.stopPropagation()},Ee.onMouseLeave=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!1,R=T(V,O.pointerType,!1),q(V)),R&&V.stopPropagation()},Ee.onMouseUp=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&!O.ignoreEmulatedMouseEvents&&V.button===0&&!O.isPressed&&P(V,O.pointerType||"mouse")};let z=V=>{if(V.button===0){if(O.ignoreEmulatedMouseEvents){O.ignoreEmulatedMouseEvents=!1;return}O.target&&O.target.contains(V.target)&&O.pointerType!=null||F(V),O.isOverTarget=!1}};Ee.onTouchStart=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=nZ(V.nativeEvent);if(!R)return;O.activePointerId=R.identifier,O.ignoreEmulatedMouseEvents=!0,O.isOverTarget=!0,O.isPressed=!0,O.target=V.currentTarget,O.pointerType="touch",m||h3(O.target),E(ds(O.target,V),O.pointerType)&&V.stopPropagation(),w(ao(V.currentTarget),"scroll",G,!0)},Ee.onTouchMove=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=D2(V.nativeEvent,O.activePointerId),K=!0;R&&$2(R,V.currentTarget)?!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,K=E(ds(O.target,V),O.pointerType)):O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,K=T(ds(O.target,V),O.pointerType,!1),q(ds(O.target,V))),K&&V.stopPropagation()},Ee.onTouchEnd=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=D2(V.nativeEvent,O.activePointerId),K=!0;R&&$2(R,V.currentTarget)&&O.pointerType!=null?(P(ds(O.target,V),O.pointerType),K=T(ds(O.target,V),O.pointerType),se(V.nativeEvent,O.target)):O.isOverTarget&&O.pointerType!=null&&(K=T(ds(O.target,V),O.pointerType,!1)),K&&V.stopPropagation(),O.isPressed=!1,O.activePointerId=null,O.isOverTarget=!1,O.ignoreEmulatedMouseEvents=!0,O.target&&!m&&Vh(O.target),C()},Ee.onTouchCancel=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&(V.stopPropagation(),O.isPressed&&F(ds(O.target,V)))};let G=V=>{O.isPressed&&Sn(tn(V),O.target)&&F({currentTarget:O.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}return Ee},[w,s,f,C,m,F,q,T,E,P,te,se]);return I.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const O=Xt(g.current);if(!O||!O.head||O.getElementById(b2))return;const Ee=O.createElement("style");Ee.id=b2,Ee.textContent=`
64
+ color: hsl(${Math.max(0,Math.min(120-120*A,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(f=n==null?void 0:n.onChange)==null||f.call(n,i),i}return a.updateDeps=o=>{r=o},a}function s2(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const mY=(e,t)=>Math.abs(e-t)<1.01,gY=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},u2=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},vY=e=>e,yY=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},bY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=o=>{const{width:s,height:l}=o;t({width:Math.round(s),height:Math.round(l)})};if(i(u2(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(o=>{const s=()=>{const l=o[0];if(l!=null&&l.borderBoxSize){const f=l.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(u2(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},l2={passive:!0},c2=typeof window>"u"?!0:"onscrollend"in window,xY=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&c2?()=>{}:gY(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=h=>()=>{const{horizontal:m,isRtl:g}=e.options;i=m?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(i,h)},s=o(!0),l=o(!1);l(),n.addEventListener("scroll",s,l2);const f=e.options.useScrollendEvent&&c2;return f&&n.addEventListener("scrollend",l,l2),()=>{n.removeEventListener("scroll",s),f&&n.removeEventListener("scrollend",l)}},DY=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},$Y=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const o=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:o,behavior:n})};class EY{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const o=()=>{this._measureElement(a.target,a)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(o):o()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vY,rangeExtractor:yY,onChange:()=>{},measureElement:DY,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=ml(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let o=r-1;o>=0;o--){const s=n[o];if(i.has(s.lane))continue;const l=a.get(s.lane);if(l==null||s.end>l.end?a.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((o,s)=>o.end===s.end?o.index-s.index:o.end-s.end)[0]:void 0},this.getMeasurementOptions=ml(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,a,o)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o}),{key:!1}),this.getMeasurements=ml(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:o},s)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const f=this.measurementsCache.slice(0,l);for(let h=l;h<n;h++){const m=a(h),g=this.options.lanes===1?f[h-1]:this.getFurthestMeasurement(f,h),b=g?g.end+this.options.gap:r+i,$=s.get(m),x=typeof $=="number"?$:this.options.estimateSize(h),A=b+x,w=g?g.lane:h%this.options.lanes;f[h]={index:h,start:b,size:x,end:A,key:m,lane:w}}return this.measurementsCache=f,f},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=ml(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?CY({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=ml(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,o)=>a===null||o===null?[]:n({startIndex:a,endIndex:o,overscan:r,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),a=this.measurementsCache[i];if(!a)return;const o=a.key,s=this.elementsCache.get(o);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(o,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,o=r-a;o!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",o),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=ml(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,o=n.length;a<o;a++){const s=n[a],l=r[s];i.push(l)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return s2(r[CP(0,r.length-1,i=>s2(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const a=this.getSize(),o=this.getScrollOffset();r==="auto"&&(r=n>=o+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const s=this.getTotalSize()+this.options.scrollMargin-a;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const a=this.getSize(),o=this.getScrollOffset();if(r==="auto")if(i.end>=o+a-this.options.scrollPaddingEnd)r="end";else if(i.start<=o+this.options.scrollPaddingStart)r="start";else return[o,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let a=0;const o=10,s=f=>{if(!this.targetWindow)return;const h=this.getOffsetForIndex(n,f);if(!h){console.warn("Failed to get offset for index:",n);return}const[m,g]=h;this._scrollToOffset(m,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const b=this.getScrollOffset(),$=this.getOffsetForIndex(n,g);if(!$){console.warn("Failed to get offset for index:",n);return}mY($[0],b)||l(g)})},l=f=>{this.targetWindow&&(a++,a<o?(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("Schedule retry",a,o),this.targetWindow.requestAnimationFrame(()=>s(f))):console.warn(`Failed to scroll to index ${n} after ${o} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let o=r.length-1;for(;o>=0&&a.some(s=>s===null);){const s=r[o];a[s.lane]===null&&(a[s.lane]=s.end),o--}i=Math.max(...a.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const CP=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function CY({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=l=>e[l].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=CP(0,i,a,n),s=o;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const l=Array(r).fill(0);for(;s<i&&l.some(h=>h<n+t);){const h=e[s];l[h.lane]=h.end,s++}const f=Array(r).fill(n+t);for(;o>=0&&f.some(h=>h>=n);){const h=e[o];f[h.lane]=h.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}const d2=typeof document<"u"?de.useLayoutEffect:de.useEffect;function wY(e){const t=de.useReducer(()=>({}),{})[1],n={...e,onChange:(i,a)=>{var o;a?of.flushSync(t):t(),(o=e.onChange)==null||o.call(e,i,a)}},[r]=de.useState(()=>new EY(n));return r.setOptions(n),d2(()=>r._didMount(),[]),d2(()=>r._willUpdate()),r}function AY(e){return wY({observeElementRect:bY,observeElementOffset:xY,scrollToFn:$Y,...e})}const hn=typeof document<"u"?de.default.useLayoutEffect:()=>{};var C4;const SY=(C4=de.default.useInsertionEffect)!==null&&C4!==void 0?C4:hn;function cn(e){const t=I.useRef(null);return SY(()=>{t.current=e},[e]),I.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TY(e){let[t,n]=I.useState(e),r=I.useRef(null),i=cn(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});hn(()=>{r.current&&i()});let a=cn(o=>{r.current=o(t),i()});return[t,a]}const mp={prefix:String(Math.round(Math.random()*1e10)),current:0},wP=de.default.createContext(mp),PY=de.default.createContext(!1);let _Y=!!(typeof window<"u"&&window.document&&window.document.createElement),w4=new WeakMap;function BY(e=!1){let t=I.useContext(wP),n=I.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=de.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=w4.get(a);o==null?w4.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,w4.delete(a))}n.current=++t.current}return n.current}function FY(e){let t=I.useContext(wP);t===mp&&!_Y&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=BY(!!e),r=t===mp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function kY(e){let t=de.default.useId(),[n]=I.useState(vm()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${mp.prefix}`;return e||`${r}-${t}`}const MY=typeof de.default.useId=="function"?kY:FY;function RY(){return!1}function IY(){return!0}function OY(e){return()=>{}}function vm(){return typeof de.default.useSyncExternalStore=="function"?de.default.useSyncExternalStore(OY,RY,IY):I.useContext(PY)}let LY=!!(typeof window<"u"&&window.document&&window.document.createElement),Ll=new Map,vd;typeof FinalizationRegistry<"u"&&(vd=new FinalizationRegistry(e=>{Ll.delete(e)}));function zr(e){let[t,n]=I.useState(e),r=I.useRef(null),i=MY(t),a=I.useRef(null);if(vd&&vd.register(a,i),LY){const o=Ll.get(i);o&&!o.includes(r)?o.push(r):Ll.set(i,[r])}return hn(()=>{let o=i;return()=>{vd&&vd.unregister(a),Ll.delete(o)}},[i]),I.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function VY(e,t){if(e===t)return e;let n=Ll.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Ll.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Zl(e=[]){let t=zr(),[n,r]=TY(t),i=I.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return hn(i,[t,i,...e]),n}function Ou(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Xt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ao=e=>e&&"window"in e&&e.window===e?e:Xt(e).defaultView||window;function NY(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function jY(e){return NY(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let KY=!1;function ym(){return KY}function Sn(e,t){if(!ym())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:jY(n)?n=n.host:n=n.parentNode}return!1}const ir=(e=document)=>{var t;if(!ym())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function tn(e){return ym()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class zY{get currentNode(){return this._currentNode}set currentNode(t){if(!Sn(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,s=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),r=i=o.host}else r=r.parentNode;const a=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(a),a.currentNode=i,this._currentSetFor.add(a),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return Sn(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let a=this.nextNode();return a&&(this.currentNode=a),a}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let a;if(typeof this.filter=="function"?a=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(a=this.filter.acceptNode(n)),a===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const f=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(f),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(o);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const a=n.shadowRoot;if(a){const o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function qY(e,t,n,r){return ym()?new zY(e,t,n,r):e.createTreeWalker(t,n,r)}function AP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=AP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function UY(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=AP(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ou(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=UY(a,o):i==="id"&&a&&o?t.id=VY(a,o):t[i]=o!==void 0?o:a}}return t}const WY=new Set(["id"]),HY=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),GY=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),YY=new Set(["dir","lang","hidden","inert","translate"]),f2=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ZY=/^(data-.*)$/;function Zo(e,t={}){let{labelable:n,isLink:r,global:i,events:a=i,propNames:o}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(WY.has(l)||n&&HY.has(l)||r&&GY.has(l)||i&&YY.has(l)||a&&f2.has(l)||l.endsWith("Capture")&&f2.has(l.slice(0,-7))||o!=null&&o.has(l)||ZY.test(l))&&(s[l]=e[l]);return s}function wi(e){if(XY())e.focus({preventScroll:!0});else{let t=QY(e);e.focus(),JY(t)}}let ph=null;function XY(){if(ph==null){ph=!1;try{document.createElement("div").focus({get preventScroll(){return ph=!0,!0}})}catch{}}return ph}function QY(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function JY(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function bm(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Eb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Xo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const oo=Xo(function(){return Eb(/^Mac/i)}),eZ=Xo(function(){return Eb(/^iPhone/i)}),Cb=Xo(function(){return Eb(/^iPad/i)||oo()&&navigator.maxTouchPoints>1}),df=Xo(function(){return eZ()||Cb()}),Oh=Xo(function(){return oo()||df()}),wb=Xo(function(){return bm(/AppleWebKit/i)&&!Ab()}),Ab=Xo(function(){return bm(/Chrome/i)}),Sb=Xo(function(){return bm(/Android/i)}),tZ=Xo(function(){return bm(/Firefox/i)}),nZ=I.createContext({isNative:!0,open:iZ,useHref:e=>e});function xm(){return I.useContext(nZ)}function Au(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;tZ()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(oo()?a=!0:o=!0);let f=wb()&&oo()&&!Cb()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Au.isOpening=n,wi(e),e.dispatchEvent(f),Au.isOpening=!1}Au.isOpening=!1;function rZ(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function iZ(e,t){rZ(e,n=>Au(n,t))}function aZ(e){let t=xm();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let gs=new Map,f3=new Set;function h2(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=gs.get(r.target);i||(i=new Set,gs.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=gs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),gs.delete(r.target)),gs.size===0)){for(let a of f3)a();f3.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?h2():document.addEventListener("DOMContentLoaded",h2));function oZ(){for(const[e]of gs)"isConnected"in e&&!e.isConnected&&gs.delete(e)}function SP(e){requestAnimationFrame(()=>{oZ(),gs.size===0?e():f3.add(e)})}function Ts(){let e=I.useRef(new Map),t=I.useCallback((i,a,o,s)=>{let l=s!=null&&s.once?(...f)=>{e.current.delete(o),o(...f)}:o;e.current.set(o,{type:a,eventTarget:i,fn:l,options:s}),i.addEventListener(a,l,s)},[]),n=I.useCallback((i,a,o,s)=>{var l;let f=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(a,f,s),e.current.delete(o)},[]),r=I.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return I.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Xl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=zr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function h3(e,t){const n=I.useRef(!0),r=I.useRef(null);I.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),I.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((a,o)=>!Object.is(a,i[o])))&&e(),r.current=t},t)}function p2(e,t){const n=I.useRef(!0),r=I.useRef(null);hn(()=>(n.current=!0,()=>{n.current=!1}),[]),hn(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function sZ(){return typeof window.ResizeObserver<"u"}function m2(e){const{ref:t,box:n,onResize:r}=e;I.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(sZ()){const a=new window.ResizeObserver(o=>{o.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function TP(e,t){hn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Ql(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Dm(e,t){let n=e;for(Ql(n,t)&&(n=n.parentElement);n&&!Ql(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function uZ(e,t){const n=[];for(;e&&e!==document.documentElement;)Ql(e,t)&&n.push(e),e=e.parentElement;return n}function $l(e){return oo()?e.metaKey:e.ctrlKey}const lZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function A4(e){return e instanceof HTMLInputElement&&!lZ.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let cZ=0;const S4=new Map;function fc(e){let[t,n]=I.useState();return hn(()=>{if(!e)return;let r=S4.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${cZ++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},S4.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),S4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ba(e,t,n,r){let i=cn(n),a=n==null;I.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function PP(e,t){let n=g2(e,t,"left"),r=g2(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),{scrollMarginTop:$,scrollMarginRight:x,scrollMarginBottom:A,scrollMarginLeft:w}=getComputedStyle(t),C=o+parseInt(f,10),E=s+parseInt(l,10),T=C+e.clientWidth,P=E+e.clientHeight,F=parseInt(h,10)||0,q=parseInt(g,10)||0,te=parseInt(m,10)||0,se=parseInt(b,10)||0,ae=parseInt($,10)||0,O=parseInt(A,10)||0,Ee=parseInt(x,10)||0,be=parseInt(w,10)||0,z=n-be,G=n+i+Ee,V=r-ae,R=r+a+O,K=o+parseInt(f,10)+se,fe=T-te,M=s+parseInt(l,10)+F,oe=P-q;if((z>K||G<fe)&&(z<=o+se?o=z-parseInt(f,10)-se:G>T-te&&(o+=G-T+te)),(V>M||R<oe)&&(V<=E+F?s=V-parseInt(l,10)-F:R>P-q&&(s+=R-P+q)),process.env.NODE_ENV==="test"){e.scrollLeft=o,e.scrollTop=s;return}e.scrollTo({left:o,top:s})}function g2(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function gp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!Ab()){var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(f-m)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}else{let l=uZ(e);for(let f of l)PP(f,e)}}}function p3(e){return e.pointerType===""&&e.isTrusted?!0:Sb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dZ(e){return!Sb()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _P(e,t){let n=I.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Tb(e,t,n){let r=cn(()=>{n&&n(t)});I.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",r),()=>{a==null||a.removeEventListener("reset",r)}},[e,r])}const fZ="react-aria-clear-focus",hZ="react-aria-focus",pZ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function mZ(e){const t=ao(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:s}=a(e);i=o!=="none"&&s!=="hidden"&&s!=="collapse"}return i}function gZ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Pb(e,t){return pZ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&mZ(e)&&gZ(e,t)&&(!e.parentElement||Pb(e.parentElement,e))}const _b=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],vZ=_b.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";_b.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const yZ=_b.join(':not([hidden]):not([tabindex="-1"]),');function BP(e){return e.matches(vZ)&&Pb(e)&&!FP(e)}function bZ(e){return e.matches(yZ)&&Pb(e)&&!FP(e)}function FP(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Ai(e,t,n){let[r,i]=I.useState(e||t),a=I.useRef(e!==void 0),o=e!==void 0;I.useEffect(()=>{let f=a.current;f!==o&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let s=o?e:r,l=I.useCallback((f,...h)=>{let m=(g,...b)=>{n&&(Object.is(s,g)||n(g,...b)),o||(s=g)};typeof f=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...$)=>{let x=f(o?s:b,...$);return m(x,...h),o?b:x})):(o||i(f),m(f,...h))},[o,s,n]);return[s,l]}function Jl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function mh(e,t){let n=e,r=0,i=t.toString(),a=i.toLowerCase().indexOf("e-");if(a>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+a;else{let o=i.indexOf(".");o>=0&&(r=i.length-o)}if(r>0){let o=Math.pow(10,r);n=Math.round(n*o)/o}return n}function nd(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=mh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(mh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(mh((n-t)/r,r))*r),a=mh(a,r),a}function Bb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function kP(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function MP(e){let t=I.useRef({isFocused:!1,observer:null});hn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=cn(r=>{e==null||e(r)});return I.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{if(t.current.isFocused=!1,i.disabled){let s=Bb(o);n(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let s=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let vp=!1;function v2(e){for(;e&&!BP(e);)e=e.parentElement;let t=ao(e),n=t.document.activeElement;if(!n||n===e)return;vp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},a=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,wi(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,wi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",a,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(f),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",a,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),vp=!1,r=!1},f=requestAnimationFrame(l);return l}let wl="default",m3="",Lh=new WeakMap;function g3(e){if(df()){if(wl==="default"){const t=Xt(e);m3=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Lh.set(e,e.style[t]),e.style[t]="none"}}function Vh(e){if(df()){if(wl!=="disabled")return;wl="restoring",setTimeout(()=>{SP(()=>{if(wl==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=m3||""),m3="",wl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Lh.has(e)){let t=Lh.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Lh.delete(e)}}const Fb=de.default.createContext({register:()=>{}});Fb.displayName="PressResponderContext";function xZ(e,t){return t.get?t.get.call(e):t.value}function RP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function DZ(e,t){var n=RP(e,t,"get");return xZ(e,n)}function $Z(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ff(e,t,n){$Z(e,t),t.set(e,n)}function EZ(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function y2(e,t,n){var r=RP(e,t,"set");return EZ(e,r,n),n}function CZ(e){let t=I.useContext(Fb);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return TP(t,e.ref),e}var gh=new WeakMap;class vh{continuePropagation(){y2(this,gh,!1)}get shouldStopPropagation(){return DZ(this,gh)}constructor(t,n,r,i){ff(this,gh,{writable:!0,value:void 0}),y2(this,gh,!0);var a;let o=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const s=o==null?void 0:o.getBoundingClientRect();let l,f=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),s&&(h!=null&&m!=null?(l=h-s.left,f=m-s.top):(l=s.width/2,f=s.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=f}}const b2=Symbol("linkClicked"),x2="react-aria-pressable-style",D2="data-react-aria-pressable";function hf(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,onClick:o,isDisabled:s,isPressed:l,preventFocusOnPress:f,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=CZ(e),[$,x]=I.useState(!1),A=I.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:w,removeAllGlobalListeners:C}=Ts(),E=cn((O,Ee)=>{let be=A.current;if(s||be.didFirePressStart)return!1;let z=!0;if(be.isTriggeringEvent=!0,r){let G=new vh("pressstart",Ee,O);r(G),z=G.shouldStopPropagation}return n&&n(!0),be.isTriggeringEvent=!1,be.didFirePressStart=!0,x(!0),z}),T=cn((O,Ee,be=!0)=>{let z=A.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let G=!0;if(i){let V=new vh("pressend",Ee,O);i(V),G=V.shouldStopPropagation}if(n&&n(!1),x(!1),t&&be&&!s){let V=new vh("press",Ee,O);t(V),G&&(G=V.shouldStopPropagation)}return z.isTriggeringEvent=!1,G}),P=cn((O,Ee)=>{let be=A.current;if(s)return!1;if(a){be.isTriggeringEvent=!0;let z=new vh("pressup",Ee,O);return a(z),be.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),F=cn(O=>{let Ee=A.current;if(Ee.isPressed&&Ee.target){Ee.didFirePressStart&&Ee.pointerType!=null&&T(nu(Ee.target,O),Ee.pointerType,!1),Ee.isPressed=!1,Ee.isOverTarget=!1,Ee.activePointerId=null,Ee.pointerType=null,C(),m||Vh(Ee.target);for(let be of Ee.disposables)be();Ee.disposables=[]}}),q=cn(O=>{h&&F(O)}),te=cn(O=>{s||o==null||o(O)}),se=cn((O,Ee)=>{if(!s&&o){let be=new MouseEvent("click",O);kP(be,Ee),o(Bb(be))}}),ae=I.useMemo(()=>{let O=A.current,Ee={onKeyDown(z){if(T4(z.nativeEvent,z.currentTarget)&&Sn(z.currentTarget,tn(z.nativeEvent))){var G;C2(tn(z.nativeEvent),z.key)&&z.preventDefault();let V=!0;if(!O.isPressed&&!z.repeat){O.target=z.currentTarget,O.isPressed=!0,O.pointerType="keyboard",V=E(z,"keyboard");let R=z.currentTarget,K=fe=>{T4(fe,R)&&!fe.repeat&&Sn(R,tn(fe))&&O.target&&P(nu(O.target,fe),"keyboard")};w(Xt(z.currentTarget),"keyup",Ou(K,be),!0)}V&&z.stopPropagation(),z.metaKey&&oo()&&((G=O.metaKeyEvents)===null||G===void 0||G.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(O.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Sn(z.currentTarget,tn(z.nativeEvent)))&&z&&z.button===0&&!O.isTriggeringEvent&&!Au.isOpening){let G=!0;if(s&&z.preventDefault(),!O.ignoreEmulatedMouseEvents&&!O.isPressed&&(O.pointerType==="virtual"||p3(z.nativeEvent))){let V=E(z,"virtual"),R=P(z,"virtual"),K=T(z,"virtual");te(z),G=V&&R&&K}else if(O.isPressed&&O.pointerType!=="keyboard"){let V=O.pointerType||z.nativeEvent.pointerType||"virtual",R=P(nu(z.currentTarget,z),V),K=T(nu(z.currentTarget,z),V,!0);G=R&&K,O.isOverTarget=!1,te(z),F(z)}O.ignoreEmulatedMouseEvents=!1,G&&z.stopPropagation()}}},be=z=>{var G;if(O.isPressed&&O.target&&T4(z,O.target)){var V;C2(tn(z),z.key)&&z.preventDefault();let K=tn(z),fe=Sn(O.target,tn(z));T(nu(O.target,z),"keyboard",fe),fe&&se(z,O.target),C(),z.key!=="Enter"&&kb(O.target)&&Sn(O.target,K)&&!z[b2]&&(z[b2]=!0,Au(O.target,z,!1)),O.isPressed=!1,(V=O.metaKeyEvents)===null||V===void 0||V.delete(z.key)}else if(z.key==="Meta"&&(!((G=O.metaKeyEvents)===null||G===void 0)&&G.size)){var R;let K=O.metaKeyEvents;O.metaKeyEvents=void 0;for(let fe of K.values())(R=O.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",fe))}};if(typeof PointerEvent<"u"){Ee.onPointerDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(dZ(V.nativeEvent)){O.pointerType="virtual";return}O.pointerType=V.pointerType;let R=!0;if(!O.isPressed){O.isPressed=!0,O.isOverTarget=!0,O.activePointerId=V.pointerId,O.target=V.currentTarget,m||g3(O.target),R=E(V,O.pointerType);let K=tn(V.nativeEvent);"releasePointerCapture"in K&&K.releasePointerCapture(V.pointerId),w(Xt(V.currentTarget),"pointerup",z,!1),w(Xt(V.currentTarget),"pointercancel",G,!1)}R&&V.stopPropagation()},Ee.onMouseDown=V=>{if(Sn(V.currentTarget,tn(V.nativeEvent))&&V.button===0){if(f){let R=v2(V.target);R&&O.disposables.push(R)}V.stopPropagation()}},Ee.onPointerUp=V=>{!Sn(V.currentTarget,tn(V.nativeEvent))||O.pointerType==="virtual"||V.button===0&&!O.isPressed&&P(V,O.pointerType||V.pointerType)},Ee.onPointerEnter=V=>{V.pointerId===O.activePointerId&&O.target&&!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,E(nu(O.target,V),O.pointerType))},Ee.onPointerLeave=V=>{V.pointerId===O.activePointerId&&O.target&&O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,T(nu(O.target,V),O.pointerType,!1),q(V))};let z=V=>{if(V.pointerId===O.activePointerId&&O.isPressed&&V.button===0&&O.target){if(Sn(O.target,tn(V))&&O.pointerType!=null){let R=!1,K=setTimeout(()=>{O.isPressed&&O.target instanceof HTMLElement&&(R?F(V):(wi(O.target),O.target.click()))},80);w(V.currentTarget,"click",()=>R=!0,!0),O.disposables.push(()=>clearTimeout(K))}else F(V);O.isOverTarget=!1}},G=V=>{F(V)};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}else if(process.env.NODE_ENV==="test"){Ee.onMouseDown=V=>{if(V.button!==0||!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(O.ignoreEmulatedMouseEvents){V.stopPropagation();return}if(O.isPressed=!0,O.isOverTarget=!0,O.target=V.currentTarget,O.pointerType=p3(V.nativeEvent)?"virtual":"mouse",of.flushSync(()=>E(V,O.pointerType))&&V.stopPropagation(),f){let K=v2(V.target);K&&O.disposables.push(K)}w(Xt(V.currentTarget),"mouseup",z,!1)},Ee.onMouseEnter=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!0,R=E(V,O.pointerType)),R&&V.stopPropagation()},Ee.onMouseLeave=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;O.isPressed&&!O.ignoreEmulatedMouseEvents&&O.pointerType!=null&&(O.isOverTarget=!1,R=T(V,O.pointerType,!1),q(V)),R&&V.stopPropagation()},Ee.onMouseUp=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&!O.ignoreEmulatedMouseEvents&&V.button===0&&!O.isPressed&&P(V,O.pointerType||"mouse")};let z=V=>{if(V.button===0){if(O.ignoreEmulatedMouseEvents){O.ignoreEmulatedMouseEvents=!1;return}O.target&&O.target.contains(V.target)&&O.pointerType!=null||F(V),O.isOverTarget=!1}};Ee.onTouchStart=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;let R=wZ(V.nativeEvent);if(!R)return;O.activePointerId=R.identifier,O.ignoreEmulatedMouseEvents=!0,O.isOverTarget=!0,O.isPressed=!0,O.target=V.currentTarget,O.pointerType="touch",m||g3(O.target),E(ds(O.target,V),O.pointerType)&&V.stopPropagation(),w(ao(V.currentTarget),"scroll",G,!0)},Ee.onTouchMove=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=$2(V.nativeEvent,O.activePointerId),K=!0;R&&E2(R,V.currentTarget)?!O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!0,K=E(ds(O.target,V),O.pointerType)):O.isOverTarget&&O.pointerType!=null&&(O.isOverTarget=!1,K=T(ds(O.target,V),O.pointerType,!1),q(ds(O.target,V))),K&&V.stopPropagation()},Ee.onTouchEnd=V=>{if(!Sn(V.currentTarget,tn(V.nativeEvent)))return;if(!O.isPressed){V.stopPropagation();return}let R=$2(V.nativeEvent,O.activePointerId),K=!0;R&&E2(R,V.currentTarget)&&O.pointerType!=null?(P(ds(O.target,V),O.pointerType),K=T(ds(O.target,V),O.pointerType),se(V.nativeEvent,O.target)):O.isOverTarget&&O.pointerType!=null&&(K=T(ds(O.target,V),O.pointerType,!1)),K&&V.stopPropagation(),O.isPressed=!1,O.activePointerId=null,O.isOverTarget=!1,O.ignoreEmulatedMouseEvents=!0,O.target&&!m&&Vh(O.target),C()},Ee.onTouchCancel=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&(V.stopPropagation(),O.isPressed&&F(ds(O.target,V)))};let G=V=>{O.isPressed&&Sn(tn(V),O.target)&&F({currentTarget:O.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Ee.onDragStart=V=>{Sn(V.currentTarget,tn(V.nativeEvent))&&F(V)}}return Ee},[w,s,f,C,m,F,q,T,E,P,te,se]);return I.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const O=Xt(g.current);if(!O||!O.head||O.getElementById(x2))return;const Ee=O.createElement("style");Ee.id=x2,Ee.textContent=`
64
65
  @layer {
65
- [${x2}] {
66
+ [${D2}] {
66
67
  touch-action: pan-x pan-y pinch-zoom;
67
68
  }
68
69
  }
69
- `.trim(),O.head.prepend(Ee)},[g]),I.useEffect(()=>{let O=A.current;return()=>{var Ee;m||Vh((Ee=O.target)!==null&&Ee!==void 0?Ee:void 0);for(let be of O.disposables)be();O.disposables=[]}},[m]),{isPressed:l||$,pressProps:Qt(b,ae,{[x2]:!0})}}function _b(e){return e.tagName==="A"&&e.hasAttribute("href")}function A4(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ao(i).HTMLInputElement&&!FP(i,n)||i instanceof ao(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_b(i))&&n!=="Enter")}function nZ(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function D2(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function ds(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function nu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function rZ(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function iZ(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function $2(e,t){let n=t.getBoundingClientRect(),r=rZ(e);return iZ(n,r)}function aZ(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_b(e)}function E2(e,t){return e instanceof HTMLInputElement?!FP(e,t):aZ(e)}const oZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function FP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":oZ.has(e.type)}let zo=null,p3=new Set,Cd=new Map,Au=!1,m3=!1;function $m(e,t){for(let n of p3)n(e,t)}function sZ(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yp(e){Au=!0,sZ(e)&&(zo="keyboard",$m("keyboard",e))}function qi(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Au=!0,$m("pointer",e))}function kP(e){d3(e)&&(Au=!0,zo="virtual")}function MP(e){e.target===window||e.target===document||vp||!e.isTrusted||(!Au&&!m3&&(zo="virtual",$m("virtual",e)),Au=!1,m3=!1)}function RP(){vp||(Au=!1,m3=!0)}function g3(e){if(typeof window>"u"||typeof document>"u"||Cd.get(ao(e)))return;const t=ao(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Au=!0,r.apply(this,arguments)},n.addEventListener("keydown",yp,!0),n.addEventListener("keyup",yp,!0),n.addEventListener("click",kP,!0),t.addEventListener("focus",MP,!0),t.addEventListener("blur",RP,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",qi,!0),n.addEventListener("pointermove",qi,!0),n.addEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",qi,!0),n.addEventListener("mousemove",qi,!0),n.addEventListener("mouseup",qi,!0)),t.addEventListener("beforeunload",()=>{IP(e)},{once:!0}),Cd.set(t,{focus:r})}const IP=(e,t)=>{const n=ao(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),Cd.has(n)&&(n.HTMLElement.prototype.focus=Cd.get(n).focus,r.removeEventListener("keydown",yp,!0),r.removeEventListener("keyup",yp,!0),r.removeEventListener("click",kP,!0),n.removeEventListener("focus",MP,!0),n.removeEventListener("blur",RP,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",qi,!0),r.removeEventListener("pointermove",qi,!0),r.removeEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",qi,!0),r.removeEventListener("mousemove",qi,!0),r.removeEventListener("mouseup",qi,!0)),Cd.delete(n))};function uZ(e){const t=Xt(e);let n;return t.readyState!=="loading"?g3(e):(n=()=>{g3(e)},t.addEventListener("DOMContentLoaded",n)),()=>IP(e,n)}typeof document<"u"&&uZ();function C2(){return zo!=="pointer"}function Nd(){return zo}function OP(e){zo=e,$m(e,null)}function lZ(){g3();let[e,t]=I.useState(zo);return I.useEffect(()=>{let n=()=>{t(zo)};return p3.add(n),()=>{p3.delete(n)}},[]),vm()?null:e}function Su(e){const t=Xt(e),n=ir(t);if(Nd()==="virtual"){let r=n;EP(()=>{ir(t)===r&&e.isConnected&&wi(e)})}else wi(e)}function cZ(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=I.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=_P(a),s=I.useCallback(l=>{const f=Xt(l.target),h=f?ir(f):ir();l.target===l.currentTarget&&h===tn(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function w2(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function LP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:w2(e.onKeyDown),onKeyUp:w2(e.onKeyUp)}}}let dZ=de.default.createContext(null);function fZ(e){let t=I.useContext(dZ)||{};CP(t,e);let{ref:n,...r}=t;return r}function Bb(e,t){let{focusProps:n}=cZ(e),{keyboardProps:r}=LP(e),i=Qt(n,r),a=fZ(t),o=e.isDisabled?{}:a,s=I.useRef(e.autoFocus);I.useEffect(()=>{s.current&&t.current&&Su(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},o)}}function hZ({children:e}){let t=I.useMemo(()=>({register:()=>{}}),[]);return de.default.createElement(Pb.Provider,{value:t},e)}function hc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=I.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Ts(),l=I.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(m),i&&i(!1))},[n,i,a,s]),f=_P(l),h=I.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=ir(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,f(m);let $=m.currentTarget;o(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn($,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});PP(A,$);let w=Tb(A);l(w)}},{capture:!0})}},[r,i,f,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let bp=!1,yh=0;function v3(){bp=!0,setTimeout(()=>{bp=!1},50)}function A2(e){e.pointerType==="touch"&&v3()}function pZ(){if(!(typeof document>"u"))return yh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",A2):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",v3)),yh++,()=>{yh--,!(yh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",A2):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",v3))}}function mZ(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=I.useState(!1),s=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(pZ,[]);let{addGlobalListener:l,removeAllGlobalListeners:f}=Ts(),{hoverProps:h,triggerHoverEnd:m}=I.useMemo(()=>{let g=(x,A)=>{if(s.pointerType=A,i||A==="touch"||s.isHovered||!x.currentTarget.contains(x.target))return;s.isHovered=!0;let w=x.currentTarget;s.target=w,l(Xt(x.target),"pointerover",C=>{s.isHovered&&s.target&&!Sn(s.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:w,pointerType:A}),n&&n(!0),o(!0)},b=(x,A)=>{let w=s.target;s.pointerType="",s.target=null,!(A==="touch"||!s.isHovered||!w)&&(s.isHovered=!1,f(),r&&r({type:"hoverend",target:w,pointerType:A}),n&&n(!1),o(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=x=>{bp&&x.pointerType==="mouse"||g(x,x.pointerType)},$.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=x=>{!s.ignoreEmulatedMouseEvents&&!bp&&g(x,"mouse"),s.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:$,triggerHoverEnd:b}},[t,n,r,i,s,l,f]);return I.useEffect(()=>{i&&m({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:h,isHovered:a}}function gZ(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=I.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=cn(l=>{n&&bh(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});I.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,h=Xt(f);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&bh(g,t)&&s(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,s])}function bh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function VP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Ts(),s=cn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=cn((h,m)=>{Vh(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:I.useMemo(()=>{let h={},m=()=>{h3(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=w=>{if(w.button===0){var C,E,T,P;s(w,"mouse",w.pageX-((T=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&T!==void 0?T:0),w.pageY-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&P!==void 0?P:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{w.button===0&&(l(w,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};h.onMouseDown=w=>{w.button===0&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",$,!1))};let x=w=>{let C=[...w.changedTouches].findIndex(({identifier:q})=>q===i.current.id);if(C>=0){var E,T;let{pageX:q,pageY:te}=w.changedTouches[C];var P,F;s(w,"touch",q-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&P!==void 0?P:0),te-((F=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:q,pageY:te}}},A=w=>{[...w.changedTouches].findIndex(({identifier:E})=>E===i.current.id)>=0&&(l(w,"touch"),i.current.id=null,o(window,"touchmove",x),o(window,"touchend",A),o(window,"touchcancel",A))};h.onTouchStart=w=>{if(w.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:E,identifier:T}=w.changedTouches[0];m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:C,pageY:E},i.current.id=T,a(window,"touchmove",x,!1),a(window,"touchend",A,!1),a(window,"touchcancel",A,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var A,w;let T=x.pointerType||"mouse";var C,E;s(x,T,x.pageX-((C=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&C!==void 0?C:0),x.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},$=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";l(x,A),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,a(window,"pointermove",b,!1),a(window,"pointerup",$,!1),a(window,"pointercancel",$,!1))}}let g=(b,$,x)=>{m(),s(b,"keyboard",$,x),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,a,o,s,l])}}const vZ=500;function NP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=vZ,accessibilityDescription:o}=e;const s=I.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Ts(),{pressProps:h}=hf({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),s.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&wi(g.target),i&&i({...g,type:"longpress"}),s.current=void 0},a),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){s.current&&clearTimeout(s.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=fc(i&&!t?o:void 0);return{longPressProps:Qt(h,m)}}const yZ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bZ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function xZ(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return yZ.has(n.script)}let t=e.split("-")[0];return bZ.has(t)}const DZ=Symbol.for("react-aria.i18n.locale");function jP(){let e=typeof window<"u"&&window[DZ]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:xZ(e)?"rtl":"ltr"}}let y3=jP(),yd=new Set;function S2(){y3=jP();for(let e of yd)e(y3)}function $Z(){let e=vm(),[t,n]=I.useState(y3);return I.useEffect(()=>(yd.size===0&&window.addEventListener("languagechange",S2),yd.add(n),()=>{yd.delete(n),yd.size===0&&window.removeEventListener("languagechange",S2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const EZ=de.default.createContext(null);function _r(){let e=$Z();return I.useContext(EZ)||e}const CZ=Symbol.for("react-aria.i18n.locale"),wZ=Symbol.for("react-aria.i18n.strings");let gl;class Ps{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=AZ(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[CZ];if(gl===void 0){let i=window[wZ];if(!i)return null;gl={};for(let a in i)gl[a]=new Ps({[n]:i[a]},n)}let r=gl==null?void 0:gl[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function AZ(e,t,n="en-US"){if(t[e])return t[e];let r=SZ(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function SZ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const T2=new Map,P2=new Map;class KP{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=T2.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),T2.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=P2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),P2.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const _2=new WeakMap;function TZ(e){let t=_2.get(e);return t||(t=new Ps(e),_2.set(e,t)),t}function zP(e,t){return t&&Ps.getGlobalDictionaryForPackage(t)||TZ(e)}function Ta(e,t){let{locale:n}=_r(),r=zP(e,t);return I.useMemo(()=>new KP(n,r),[n,r])}function Vl(e,t){return e-t*Math.floor(e/t)}const qP=1721426;function cu(e,t,n,r){t=pf(e,t);let i=t-1,a=-2;return n<=2?a=0:Ds(t)&&(a=-1),qP-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ds(e){return e%4===0&&(e%100!==0||e%400===0)}function pf(e,t){return e==="BC"?1-t:t}function Em(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const PZ={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ur{fromJulianDay(t){let n=t,r=n-qP,i=Math.floor(r/146097),a=Vl(r,146097),o=Math.floor(a/36524),s=Vl(a,36524),l=Math.floor(s/1461),f=Vl(s,1461),h=Math.floor(f/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Em(m),$=n-cu(g,b,1,1),x=2;n<cu(g,b,3,1)?x=0:Ds(b)&&(x=1);let A=Math.floor((($+x)*12+373)/367),w=n-cu(g,b,A,1)+1;return new Gn(g,b,A,w)}toJulianDay(t){return cu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return PZ[Ds(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ds(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const _Z={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function er(e,t){return t=kn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function b3(e,t){return Cm(e.calendar,t.calendar)&&er(e,t)}function Cm(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function UP(e,t){return er(e,wm(t))}const BZ={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Fb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?BZ[n]:OZ(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function WP(e){return Oo(Date.now(),e)}function wm(e){return qr(WP(e))}function HP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GP(e,t){return B2(e)-B2(t)}function B2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let S4=null;function mf(){return S4==null&&(S4=new Intl.DateTimeFormat().resolvedOptions().timeZone),S4}function gf(e){return e.subtract({days:e.day-1})}function x3(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function FZ(e){return gf(e.subtract({months:e.month-1}))}function kZ(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function MZ(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function jd(e,t,n){let r=Fb(e,t,n);return e.subtract({days:r})}function RZ(e,t,n){return jd(e,t,n).add({days:6})}const F2=new Map,T4=new Map;function IZ(e){if(Intl.Locale){let n=F2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&F2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function OZ(e){let t=T4.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return T4.set(e,t),t.firstDay}let n=IZ(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&_Z[n]||0};T4.set(e,t)}return t.firstDay}function YP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Fb(gf(e),t,n)+r)/7)}function kb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Mb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ec(e){e=kn(e,new Ur);let t=pf(e.era,e.year);return ZP(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ZP(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function D3(e,t){if(t==="UTC")return 0;if(e>0&&t===mf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=XP(e,t);return ZP(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const k2=new Map;function XP(e,t){let n=k2.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),k2.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const M2=864e5;function LZ(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>VZ(e,t,a))}function VZ(e,t,n){let r=XP(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Io(e,t,n="compatible"){let r=Ea(e);if(t==="UTC")return ec(r);if(t===mf()&&n==="compatible"){r=kn(r,new Ur);let l=new Date,f=pf(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ec(r),a=D3(i-M2,t),o=D3(i+M2,t),s=LZ(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function QP(e,t,n="compatible"){return new Date(Io(e,t,n))}function Oo(e,t){let n=D3(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new qd(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,f,h)}function qr(e){return new Gn(e.calendar,e.era,e.year,e.month,e.day)}function Ea(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new zd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function R2(e){return new vf(e.hour,e.minute,e.second,e.millisecond)}function kn(e,t){if(Cm(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Tu(r),r}function JP(e,t,n){if(e instanceof qd)return e.timeZone===t?e:jZ(e,t);let r=Io(e,t,n);return Oo(r,t)}function NZ(e){let t=ec(e)-e.offset;return new Date(t)}function jZ(e,t){let n=ec(e)-e.offset;return kn(Oo(n,t),e.calendar)}const rd=36e5;function Am(e,t){let n=e.copy(),r="hour"in n?r7(n,t):0;$3(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,E3(n),e7(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,KZ(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function $3(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function E3(e){for(;e.month<1;)$3(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,$3(e,1)}function KZ(e){for(;e.day<1;)e.month--,E3(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,E3(e)}function e7(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Tu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),e7(e)}function Rb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function t7(e,t){return Am(e,Rb(t))}function Ib(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Tu(n),n}function Kd(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),n7(n),n}function zZ(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=xh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=xh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=xh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=xh(e.hour,24),t}function n7(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function xh(e,t){let n=e%t;return n<0&&(n+=t),n}function r7(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,zZ(e)}function i7(e,t){let n=e.copy();return r7(n,t),n}function qZ(e,t){return i7(e,Rb(t))}function Ob(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lo(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Tu(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Lo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Lo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Tu(i),i}function Lb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=Lo(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=Lo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Lo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Lo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function a7(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Am(Ea(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Io(i,e.timeZone)}else n=ec(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Oo(n,e.timeZone);return kn(r,e.calendar)}function UZ(e,t){return a7(e,Rb(t))}function WZ(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,a=$?23:11}let o=Ea(e),s=kn(Kd(o,{hour:i}),new Ur),l=[Io(s,e.timeZone,"earlier"),Io(s,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===s.day)[0],f=kn(Kd(o,{hour:a}),new Ur),h=[Io(f,e.timeZone,"earlier"),Io(f,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===f.day).pop(),m=ec(e)-e.offset,g=Math.floor(m/rd),b=m%rd;return m=Lo(g,n,Math.floor(l/rd),Math.floor(h/rd),r==null?void 0:r.round)*rd+b,kn(Oo(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Lb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Ob(Ea(e),t,n,r),a=Io(i,e.timeZone);return kn(Oo(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function HZ(e,t,n){let r=Ea(e),i=Kd(Ib(r,t),t);if(i.compare(r)===0)return e;let a=Io(i,e.timeZone,n);return kn(Oo(a,e.timeZone),e.calendar)}const GZ=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,YZ=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function ZZ(e){let t=e.match(GZ);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gn(Ha(t[1],0,9999),Ha(t[2],1,12),1);return n.day=Ha(t[3],1,n.calendar.getDaysInMonth(n)),n}function XZ(e){let t=e.match(YZ);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ha(t[1],-9999,9999),r=n<1?"BC":"AD",i=new zd(r,n<1?-n+1:n,Ha(t[2],1,12),1,t[4]?Ha(t[4],0,23):0,t[5]?Ha(t[5],0,59):0,t[6]?Ha(t[6],0,59):0,t[7]?Ha(t[7],0,1/0)*1e3:0);return i.day=Ha(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ha(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function o7(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function s7(e){let t=kn(e,new Ur),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function u7(e){return`${s7(e)}T${o7(e)}`}function QZ(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function JZ(e){return`${u7(e)}${QZ(e.offset)}[${e.timeZone}]`}function Vb(e){let t=typeof e[0]=="object"?e.shift():new Ur,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var eX=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day):new Gn(this.calendar,this.year,this.month,this.day)}add(t){return Am(this,t)}subtract(t){return t7(this,t)}set(t){return Ib(this,t)}cycle(t,n,r){return Ob(this,t,n,r)}toDate(t){return QP(this,t)}toString(){return s7(this)}compare(t){return HP(this,t)}constructor(...t){ff(this,eX,{writable:!0,value:void 0});let[n,r,i,a,o]=Vb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Tu(this)}}var tX=new WeakMap;class vf{copy(){return new vf(this.hour,this.minute,this.second,this.millisecond)}add(t){return i7(this,t)}subtract(t){return qZ(this,t)}set(t){return Kd(this,t)}cycle(t,n,r){return Lb(this,t,n,r)}toString(){return o7(this)}compare(t){return GP(this,t)}constructor(t=0,n=0,r=0,i=0){ff(this,tX,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,n7(this)}}var nX=new WeakMap;class zd{copy(){return this.era?new zd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new zd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Am(this,t)}subtract(t){return t7(this,t)}set(t){return Ib(Kd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Ob(this,t,n,r);default:return Lb(this,t,n,r)}}toDate(t,n){return QP(this,t,n)}toString(){return u7(this)}compare(t){let n=HP(this,t);return n===0?GP(this,Ea(t)):n}constructor(...t){ff(this,nX,{writable:!0,value:void 0});let[n,r,i,a,o]=Vb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Tu(this)}}var rX=new WeakMap;class qd{copy(){return this.era?new qd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new qd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return a7(this,t)}subtract(t){return UZ(this,t)}set(t,n){return HZ(this,t,n)}cycle(t,n,r){return WZ(this,t,n,r)}toDate(){return NZ(this)}toString(){return JZ(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JP(t,this.timeZone).toDate().getTime()}constructor(...t){ff(this,rX,{writable:!0,value:void 0});let[n,r,i,a,o]=Vb(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Tu(this)}}const Nl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],iX=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Nh=[1867,1911,1925,1988,2018],ms=["meiji","taisho","showa","heisei","reiwa"];function I2(e){const t=Nl.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Nl.length-1:t===0?0:t-1}function P4(e){let t=Nh[ms.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class aX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=I2(n);return new Gn(this,ms[r],n.year-Nh[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(P4(t))}balanceDate(t){let n=P4(t),r=I2(n);ms[r]!==t.era&&(t.era=ms[r],t.year=n.year-Nh[r]),this.constrainDate(t)}constrainDate(t){let n=ms.indexOf(t.era),r=iX[n];if(r!=null){let[i,a,o]=r,s=i-Nh[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Nl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ms}getYearsInEra(t){let n=ms.indexOf(t.era),r=Nl[n],i=Nl[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(P4(t))}getMinimumMonthInYear(t){let n=O2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=O2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function O2(e){if(e.year===1){let t=ms.indexOf(e.era);return Nl[t]}}const l7=-543;class oX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year);return new Gn(this,r-l7,n.month,n.day)}toJulianDay(t){return super.toJulianDay(L2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(L2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function L2(e){let[t,n]=Em(e.year+l7);return new Gn(t,n,e.month,e.day)}const xp=1911;function c7(e){return e.era==="minguo"?e.year+xp:1-e.year+xp}function V2(e){let t=e-xp;return t>0?["minguo",t]:["before_minguo",1-t]}class sX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year),[i,a]=V2(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(N2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=V2(c7(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(N2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-xp}constructor(...t){super(...t),this.identifier="roc"}}function N2(e){let[t,n]=Em(c7(e));return new Gn(t,n,e.month,e.day)}const j2=1948320,K2=[0,31,62,93,124,155,186,216,246,276,306,336];class uX{fromJulianDay(t){let n=t-j2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-K2[o]+1;return new Gn(this,r,o+1,s)}toJulianDay(t){let n=j2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=K2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Vl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const _4=78,z2=80;class lX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-_4,i=t-cu(n.era,n.year,1,1),a;i<z2?(r--,a=Ds(n.year-1)?31:30,i+=a+155+90+10):(a=Ds(n.year)?31:30,i-=z2);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new Gn(this,r,o,s)}toJulianDay(t){let n=t.year+_4,[r,i]=Em(n),a,o;return Ds(i)?(a=31,o=cu(r,i,3,21)):(a=30,o=cu(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ds(t.year+_4)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Dp=1948440,q2=1948439,zi=1300,vl=1600,cX=460322;function $p(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function d7(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+$p(t,r,1,1)))/29.5)+1),a=n-$p(t,r,i,1)+1;return new Gn(e,r,i,a)}function U2(e){return(14+11*e)%30<11}class Nb{fromJulianDay(t){return d7(this,Dp,t)}toJulianDay(t){return $p(Dp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&U2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return U2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class dX extends Nb{fromJulianDay(t){return d7(this,q2,t)}toJulianDay(t){return $p(q2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const fX="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let C3,jl;function jh(e){return cX+jl[e-zi]}function bd(e,t){let n=e-zi,r=1<<11-(t-1);return(C3[n]&r)===0?29:30}function W2(e,t){let n=jh(e);for(let r=1;r<t;r++)n+=bd(e,r);return n}function H2(e){return jl[e+1-zi]-jl[e-zi]}class hX extends Nb{fromJulianDay(t){let n=t-Dp,r=jh(zi),i=jh(vl);if(n<r||n>i)return super.fromJulianDay(t);{let a=zi-1,o=1,s=1;for(;s>0;){a++,s=n-jh(a)+1;let l=H2(a);if(s===l){o=12;break}else if(s<l){let f=bd(a,o);for(o=1;s>f;)s-=f,o++,f=bd(a,o);break}}return new Gn(this,a,o,n-W2(a,o)+1)}}toJulianDay(t){return t.year<zi||t.year>vl?super.toJulianDay(t):Dp+W2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<zi||t.year>vl?super.getDaysInMonth(t):bd(t.year,t.month)}getDaysInYear(t){return t.year<zi||t.year>vl?super.getDaysInYear(t):H2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",C3||(C3=new Uint16Array(Uint8Array.from(atob(fX),t=>t.charCodeAt(0)).buffer)),!jl){jl=new Uint32Array(vl-zi+1);let t=0;for(let n=zi;n<=vl;n++){jl[n-zi]=t;for(let r=1;r<=12;r++)t+=bd(n,r)}}}}const G2=347997,f7=1080,h7=24*f7,pX=29,mX=12*f7+793,gX=pX*h7+mX;function su(e){return Vl(e*7+1,19)<7}function Kh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Vl(3*(r+1),7)<3&&(r+=1),r}function vX(e){let t=Kh(e-1),n=Kh(e);return Kh(e+1)-n===356?2:n-t===382?1:0}function wd(e){return Kh(e)+vX(e)}function p7(e){return wd(e+1)-wd(e)}function yX(e){let t=p7(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Dh(e,t){if(t>=6&&!su(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yX(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?su(e)?30:0:30}class bX{fromJulianDay(t){let n=t-G2,r=n*h7/gX,i=Math.floor((19*r+234)/235)+1,a=wd(i),o=Math.floor(n-a);for(;o<1;)i--,a=wd(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Dh(i,s),s++;s--,l-=Dh(i,s);let f=o-l;return new Gn(this,i,s,f)}toJulianDay(t){let n=wd(t.year);for(let r=1;r<t.month;r++)n+=Dh(t.year,r);return n+t.day+G2}getDaysInMonth(t){return Dh(t.year,t.month)}getMonthsInYear(t){return su(t.year)?13:12}getDaysInYear(t){return p7(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(su(n.year)&&!su(t.year)&&n.month>6?t.month--:!su(n.year)&&su(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const w3=1723856,Y2=1824665,A3=5500;function Ep(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function jb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ep(e,n,1,1))/30),i=t+1-Ep(e,n,r,1);return[n,r,i]}function m7(e){return Math.floor(e%4/3)}function g7(e,t){return t%13!==0?30:m7(e)+5}class Kb{fromJulianDay(t){let[n,r,i]=jb(w3,t),a="AM";return n<=0&&(a="AA",n+=A3),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=A3),Ep(w3,n,t.month,t.day)}getDaysInMonth(t){return g7(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+m7(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class xX extends Kb{fromJulianDay(t){let[n,r,i]=jb(w3,t);return n+=A3,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class DX extends Kb{fromJulianDay(t){let[n,r,i]=jb(Y2,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ep(Y2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),g7(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function $X(e){switch(e){case"buddhist":return new oX;case"ethiopic":return new Kb;case"ethioaa":return new xX;case"coptic":return new DX;case"hebrew":return new bX;case"indian":return new lX;case"islamic-civil":return new Nb;case"islamic-tbla":return new dX;case"islamic-umalqura":return new hX;case"japanese":return new aX;case"persian":return new uX;case"roc":return new sX;case"gregory":default:return new Ur}}let B4=new Map;class Gi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return wX()&&(this.resolvedHourCycle||(this.resolvedHourCycle=AX(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=v7(t,n),this.options=n}}const EX={true:{ja:"h11"},false:{}};function v7(e,t={}){if(typeof t.hour12=="boolean"&&CX()){t={...t};let i=EX[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(B4.has(n))return B4.get(n);let r=new Intl.DateTimeFormat(e,t);return B4.set(n,r),r}let F4=null;function CX(){return F4==null&&(F4=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),F4}let k4=null;function wX(){return k4==null&&(k4=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),k4}function AX(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=v7(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Za(e){e=AP(e??{},SX);let{locale:t}=_r();return I.useMemo(()=>new Gi(t,e),[t,e])}function SX(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let M4=new Map,S3=!1;try{S3=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Cp=!1;try{Cp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const y7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class b7{format(t){let n="";if(!S3&&this.options.signDisplay!=null?n=PX(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Cp){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let s=(r=y7[i])===null||r===void 0?void 0:r[a];n+=s[o]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!S3&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Cp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=TX(t,n),this.options=n}}function TX(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Cp){var r;let{unit:o,unitDisplay:s="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=y7[o])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(M4.has(i))return M4.get(i);let a=new Intl.NumberFormat(e,t);return M4.set(i,a),a}function PX(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const _X=new RegExp("^.*\\(.*\\).*$"),BX=["latn","arab","hanidec","deva","beng","fullwide"];class x7{parse(t){return R4(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return R4(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return R4(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Z2=new Map;function R4(e,t,n){let r=X2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of BX)if(i!==r.options.numberingSystem){let a=X2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function X2(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=Z2.get(n);return r||(r=new FX(e,t),Z2.set(n,r)),r}class FX{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=yl(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let s=n.indexOf(".");s===-1&&(s=n.length),n=n.replace(".",""),s-2===0?n=`0.${n}`:s-2===-1?n=`0.0${n}`:s-2===-2?n="0.00":n=`${n.slice(0,s-2)}.${n.slice(s-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new x7(this.locale,o).parse(new b7(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&_X.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=yl(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=yl(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=yl(t," ",this.symbols.group),t=yl(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=yl(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=MX(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Q2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),kX=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function MX(e,t,n,r){var i,a,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=kX.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=f.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(a=h.find(ae=>ae.type==="plusSign"))===null||a===void 0?void 0:a.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let A=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||o===void 0?void 0:o.value,w=(s=f.find(ae=>ae.type==="group"))===null||s===void 0?void 0:s.value,C=f.filter(ae=>!Q2.has(ae.type)).map(ae=>J2(ae.value)),E=m.flatMap(ae=>ae.filter(O=>!Q2.has(O.type)).map(O=>J2(O.value))),T=[...new Set([...C,...E])].sort((ae,O)=>O.length-ae.length),P=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),q=new Map(F.map((ae,O)=>[ae,O])),te=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:A,group:w,literals:P,numeral:te,index:ae=>String(q.get(ae))}}function yl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function J2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function RX(e={}){let{locale:t}=_r();return I.useMemo(()=>new b7(t,e),[t,e])}let I4=new Map;function D7(e){let{locale:t}=_r(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(I4.has(n))return I4.get(n);let r=new Intl.Collator(t,e);return I4.set(n,r),r}function $7(e){let t=D7({usage:"search",...e}),n=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=I.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let s=0,l=o.length;for(;s+l<=a.length;s++){let f=a.slice(s,s+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return I.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function IX(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,type:x="button"}=e,A;n==="button"?A={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:A={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:w,isPressed:C}=hf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:E}=Bb(e,t);h&&(E.tabIndex=r?-1:E.tabIndex);let T=Qt(E,w,Yo(e,{labelable:!0}));return{isPressed:C,buttonProps:Qt(A,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const ew=de.default.createContext(null),T3="react-aria-focus-scope-restore";let gn=null;function OX(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=I.useRef(null),o=I.useRef(null),s=I.useRef([]),{parentNode:l}=I.useContext(ew)||{},f=I.useMemo(()=>new _3({scopeRef:s}),[s]);hn(()=>{let g=l||Qn.root;if(Qn.getTreeNode(g.scopeRef)&&gn&&!wp(gn,g.scopeRef)){let b=Qn.getTreeNode(gn);b&&(g=b)}g.addChild(f),Qn.addNode(f)},[f,l]),hn(()=>{let g=Qn.getTreeNode(s);g&&(g.contain=!!n)},[n]),hn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,$=[],x=A=>A.stopPropagation();for(;b&&b!==o.current;)$.push(b),b.addEventListener(T3,x),b=b.nextSibling;return s.current=$,()=>{for(let A of $)A.removeEventListener(T3,x)}},[t]),zX(s,r,n),NX(s,n),qX(s,r,n),KX(s,i),I.useEffect(()=>{const g=ir(Xt(s.current?s.current[0]:void 0));let b=null;if(ea(g,s.current)){for(let $ of Qn.traverse())$.scopeRef&&ea(g,$.scopeRef.current)&&(b=$);b===Qn.getTreeNode(s)&&(gn=b.scopeRef)}},[s]),hn(()=>()=>{var g,b,$;let x=($=(b=Qn.getTreeNode(s))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(s===gn||wp(s,gn))&&(!x||Qn.getTreeNode(x))&&(gn=x),Qn.removeTreeNode(s)},[s]);let h=I.useMemo(()=>LX(s),[]),m=I.useMemo(()=>({focusManager:h,parentNode:f}),[f,h]);return de.default.createElement(ew.Provider,{value:m},de.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,de.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function LX(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[0].previousElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.nextNode();return!g&&a&&(m.currentNode=f,g=m.nextNode()),g&&ii(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[n.length-1].nextElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.previousNode();return!g&&a&&(m.currentNode=f,g=m.previousNode()),g&&ii(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&ii(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&ii(s,!0),s}}}function du(e){return e[0].parentElement}function xd(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function VX(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function NX(e,t){let n=I.useRef(void 0),r=I.useRef(void 0);hn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Xt(i?i[0]:void 0);let o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!xd(e)||f.isComposing)return;let h=ir(a),m=e.current;if(!m||!ea(h,m))return;let g=du(m),b=Vr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=f.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=f.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=f.shiftKey?b.previousNode():b.nextNode()),f.preventDefault(),$&&ii($,!0)},s=f=>{(!gn||wp(gn,e))&&ea(tn(f),e.current)?(gn=e,n.current=tn(f)):xd(e)&&!$s(tn(f),e)?n.current?n.current.focus():gn&&gn.current&&P3(gn.current):xd(e)&&(n.current=tn(f))},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Nd(),m=(h==="virtual"||h===null)&&Cb()&&Eb(),g=ir(a);if(!m&&g&&xd(e)&&!$s(g,e)){gn=e;let $=tn(f);if($&&$.isConnected){var b;n.current=$,(b=n.current)===null||b===void 0||b.focus()}else gn.current&&P3(gn.current)}})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",s,!1),i==null||i.forEach(f=>f.addEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",s,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),hn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function E7(e){return $s(e)}function ea(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function $s(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Qn.traverse(Qn.getTreeNode(t)))if(n&&ea(e,n.current))return!0;return!1}function jX(e){return $s(e,gn)}function wp(e,t){var n;let r=(n=Qn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ii(e,t=!1){if(e!=null&&!t)try{Su(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function C7(e,t=!0){let n=e[0].previousElementSibling,r=du(e),i=Vr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=du(e),i=Vr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function P3(e,t=!0){ii(C7(e,t))}function KX(e,t){const n=de.default.useRef(t);I.useEffect(()=>{if(n.current){gn=e;const r=Xt(e.current?e.current[0]:void 0);!ea(ir(r),gn.current)&&e.current&&P3(e.current)}n.current=!1},[e])}function zX(e,t,n){hn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=o=>{let s=tn(o);ea(s,e.current)?gn=e:E7(s)||(gn=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function tw(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function qX(e,t,n){const r=I.useRef(typeof document<"u"?ir(Xt(e.current?e.current[0]:void 0)):null);hn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!gn||wp(gn,e))&&ea(ir(a),e.current)&&(gn=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!xd(e)||o.isComposing)return;let s=i.activeElement;if(!$s(s,e)||!tw(e))return;let l=Qn.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,h=Vr(i.body,{tabbable:!0});h.currentNode=s;let m=o.shiftKey?h.previousNode():h.nextNode();if((!f||!f.isConnected||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!m||!$s(m,e))&&f){h.currentNode=f;do m=o.shiftKey?h.previousNode():h.nextNode();while($s(m,e));o.preventDefault(),o.stopPropagation(),m?ii(m,!0):E7(f)?ii(f,!0):s.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Qn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let s=Qn.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,f=ir(i);if(t&&l&&(f&&$s(f,e)||f===i.body&&tw(e))){let h=Qn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){nw(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Qn.getTreeNode(m.scopeRef)){let g=C7(m.scopeRef.current,!0);nw(g);return}m=m.parent}}})}}}},[e,t])}function nw(e){e.dispatchEvent(new CustomEvent(T3,{bubbles:!0,cancelable:!0}))&&ii(e)}function Vr(e,t,n){let r=t!=null&&t.tabbable?ZY:SP,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),o=DY(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!VX(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ea(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Sm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});r.contains(l)&&(f.currentNode=l);let h=f.nextNode();return!h&&o&&(f.currentNode=r,h=f.nextNode()),h&&ii(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});if(r.contains(l))f.currentNode=l;else{let m=O4(f);return m&&ii(m,!0),m??null}let h=f.previousNode();if(!h&&o){f.currentNode=r;let m=O4(f);if(!m)return null;h=m}return h&&ii(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Vr(r,{tabbable:i,accept:a}).nextNode();return s&&ii(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Vr(r,{tabbable:i,accept:a}),s=O4(o);return s&&ii(s,!0),s??null}}}function O4(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class zb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new _3({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ea(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new zb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _3({scopeRef:null}),this.fastMap.set(null,this.root)}}class _3{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Qn=new zb;function w7(e){let t=WX(Xt(e));t!==e&&(t&&UX(t,e),e&&qb(e,t))}function UX(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function qb(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function WX(e){let t=ir(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var A7={};A7={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var S7={};S7={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var T7={};T7={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var P7={};P7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var _7={};_7={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var B7={};B7={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var F7={};F7={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var k7={};k7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var M7={};M7={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var R7={};R7={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var I7={};I7={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var O7={};O7={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var L7={};L7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var V7={};V7={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var N7={};N7={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var j7={};j7={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var K7={};K7={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var z7={};z7={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var q7={};q7={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var U7={};U7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var W7={};W7={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var H7={};H7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var G7={};G7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Y7={};Y7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var Z7={};Z7={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var X7={};X7={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var Q7={};Q7={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var J7={};J7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var e_={};e_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var t_={};t_={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var n_={};n_={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var r_={};r_={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var i_={};i_={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var a_={};a_={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var yf={};yf={"ar-AE":A7,"bg-BG":S7,"cs-CZ":T7,"da-DK":P7,"de-DE":_7,"el-GR":B7,"en-US":F7,"es-ES":k7,"et-EE":M7,"fi-FI":R7,"fr-FR":I7,"he-IL":O7,"hr-HR":L7,"hu-HU":V7,"it-IT":N7,"ja-JP":j7,"ko-KR":K7,"lt-LT":z7,"lv-LV":q7,"nb-NO":U7,"nl-NL":W7,"pl-PL":H7,"pt-BR":G7,"pt-PT":Y7,"ro-RO":Z7,"ru-RU":X7,"sk-SK":Q7,"sl-SI":J7,"sr-SP":e_,"sv-SE":t_,"tr-TR":n_,"uk-UA":r_,"zh-CN":i_,"zh-TW":a_};function o_(e){return e&&e.__esModule?e.default:e}const Ub=new WeakMap;function Ud(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function HX(e){let t=Ta(o_(yf),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=Za({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ud(n)||Ud(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return I.useMemo(()=>{if(!o&&n&&r)if(er(n,r)){let s=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=F3(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function B3(e,t,n,r){let i=Ta(o_(yf),"@react-aria/calendar"),a=Ud(e)||Ud(t),o=Za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return I.useMemo(()=>{if(er(e,gf(e))){let l=e,f=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(f=t.calendar.getFormattableMonth(t)),er(t,x3(e)))return o.format(l.toDate(n));if(er(t,x3(t)))return r?F3(o,i,l,f,n):o.formatRange(l.toDate(n),f.toDate(n))}return r?F3(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function F3(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let h=a[f];if(h.source==="shared"&&h.type==="literal")o=f;else if(h.source==="endRange")break}let s="",l="";for(let f=0;f<a.length;f++)f<o?s+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:s,endDate:l})}const s_=7e3;let ji=null;function Kl(e,t="assertive",n=s_){ji?ji.announce(e,t,n):(ji=new YX,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ji.announce(e,t,n):setTimeout(()=>{ji!=null&&ji.isAttached()&&(ji==null||ji.announce(e,t,n))},100))}function GX(e){ji&&ji.clear(e)}class YX{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=s_){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function ZX(e){return e&&e.__esModule?e.default:e}function u_(e,t){let n=Ta(ZX(yf),"@react-aria/calendar"),r=Yo(e),i=B3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=B3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);c3(()=>{t.isFocused||Kl(a)},[a]);let o=HX(t);c3(()=>{o&&Kl(o,"polite",4e3)},[o]);let s=Zl([!!e.errorMessage,e.isInvalid,e.validationState]);Ub.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,f]=I.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(f(!1),t.setFocused(!0));let[m,g]=I.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=Xl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,$,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:s},title:i}}function XX(e,t){return u_(e,t)}function QX(e,t,n){let r=u_(e,t),i=I.useRef(!1),a=I.useRef(typeof window<"u"?window:null);return ba(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),ba(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ba(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function JX(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=_r(),o=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},s=B3(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=Ub.get(t),h=Xl({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":f}),m=Za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=_r(),b=I.useMemo(()=>{let x=jd(wm(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let C=x.add({days:A}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),$=YP(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:$}}function eQ(e){return e&&e.__esModule?e.default:e}function tQ(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Ub.get(t),s=Ta(eQ(yf),"@react-aria/calendar"),l=Za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ud(r),timeZone:t.timeZone}),f=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&er(t.value,r));b&&(f=!0),r=AP(r,b3);let $=I.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=UP(r,t.timeZone),A=I.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(er(r,t.value.start)||er(r,t.value.end))&&(O=o+", "),O+=l.format($),x?O=s.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=s.format("dateSelected",{date:O})),t.minValue&&er(r,t.minValue)?O+=", "+s.format("minimumDate"):t.maxValue&&er(r,t.maxValue)&&(O+=", "+s.format("maximumDate")),O},[l,$,s,f,x,r,t,o]),w="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?w=s.format("finishRangeSelectionPrompt"):w=s.format("startRangeSelectionPrompt"));let C=fc(w),E=I.useRef(!1),T=I.useRef(!1),P=I.useRef(void 0),{pressProps:F,isPressed:q}=hf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!b){if(er(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(er(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Ee=()=>{t.setDragging(!0),P.current=void 0,t.selectDate(r),t.setFocusedDate(r),E.current=!0};O.pointerType==="touch"?P.current=setTimeout(Ee,200):Ee()}},onPressEnd(){T.current=!1,E.current=!1,clearTimeout(P.current),P.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!E.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Ee=r.add({days:1});t.isInvalid(Ee)&&(Ee=r.subtract({days:1})),t.isInvalid(Ee)||t.setFocusedDate(Ee)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),te;i||(te=er(r,t.focusedDate)?0:-1),I.useEffect(()=>{h&&n.current&&(wi(n.current),Nd()!=="pointer"&&document.activeElement===n.current&&gp(n.current,{containingElement:Dm(n.current)}))},[h,n]);let se=Za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=I.useMemo(()=>se.formatToParts($).find(O=>O.type==="day").value,[se,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":f||void 0,"aria-invalid":b||void 0},buttonProps:Qt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:te,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:q,isFocused:h,isSelected:f,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Tm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},l_={...Tm,customError:!0,valid:!1},uu={isInvalid:!1,validationDetails:Tm,validationErrors:[]},nQ=I.createContext({}),tc="__formValidationState"+Date.now();function bf(e){if(e[tc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[tc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return rQ(e)}function rQ(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:l_}:null,f=I.useMemo(()=>{if(!o||i==null)return null;let ae=iQ(o,i);return rw(ae)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=I.useContext(nQ),m=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>k3(h[ae])):k3(h[r]):[],[h,r]),[g,b]=I.useState(h),[$,x]=I.useState(!1);h!==g&&(b(h),x(!1));let A=I.useMemo(()=>rw($?[]:m),[$,m]),w=I.useRef(uu),[C,E]=I.useState(uu),T=I.useRef(uu),P=()=>{if(!F)return;q(!1);let ae=f||a||w.current;L4(ae,T.current)||(T.current=ae,E(ae))},[F,q]=I.useState(!1);return I.useEffect(P),{realtimeValidation:l||A||f||a||uu,displayValidation:s==="native"?l||A||C:l||A||f||a||C,updateValidation(ae){s==="aria"&&!L4(C,ae)?E(ae):w.current=ae},resetValidation(){let ae=uu;L4(ae,T.current)||(T.current=ae,E(ae)),s==="native"&&q(!1),x(!0)},commitValidation(){s==="native"&&q(!0),x(!0)}}}function k3(e){return e?Array.isArray(e)?e:[e]:[]}function iQ(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return k3(n)}return[]}function rw(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:l_}:null}function L4(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Ap(...e){let t=new Set,n=!1,r={...Tm};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function c_(e,t,n){let{validationBehavior:r,focus:i}=e;hn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let f=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(f),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(oQ(n.current))}});let a=I.useRef(!1),o=cn(()=>{a.current||t.resetValidation()}),s=cn(f=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!f.defaultPrevented&&n&&m&&sQ(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),OP("keyboard")}f.preventDefault()}),l=cn(()=>{t.commitValidation()});I.useEffect(()=>{let f=n==null?void 0:n.current;if(!f)return;let h=f.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{a.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),a.current=!1}),f.addEventListener("invalid",s),f.addEventListener("change",l),h==null||h.addEventListener("reset",o),()=>{f.removeEventListener("invalid",s),f.removeEventListener("change",l),h==null||h.removeEventListener("reset",o),h&&(h.reset=m)}},[n,s,l,o,r])}function aQ(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function oQ(e){return{isInvalid:!e.validity.valid,validationDetails:aQ(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function sQ(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Pm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=zr(t);let o=zr(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Xl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function _m(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Pm(e),s=Zl([!!t,!!n,r,i]),l=Zl([!!t,!!n,r,i]);return o=Qt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}const uQ=0,lQ=100,cQ=1;function dQ(e){const{isDisabled:t=!1,minValue:n=uQ,maxValue:r=lQ,numberFormatter:i,step:a=cQ,orientation:o="horizontal"}=e;let s=I.useMemo(()=>{let le=(r-n)/10;return le=nd(le,0,le+a,a),Math.max(le,a)},[a,r,n]),l=I.useCallback(le=>le==null?void 0:le.map((Se,_e)=>{let Be=_e===0?n:le[_e-1],Ge=_e===le.length-1?r:le[_e+1];return nd(Se,Be,Ge,a)}),[n,r,a]),f=I.useMemo(()=>l(aw(e.value)),[e.value,l]),h=I.useMemo(()=>{var le;return l((le=aw(e.defaultValue))!==null&&le!==void 0?le:[n])},[e.defaultValue,n,l]),m=ow(e.value,e.defaultValue,e.onChange),g=ow(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=Ai(f,h,m);let[x]=I.useState(b);const[A,w]=I.useState(new Array(b.length).fill(!1)),C=I.useRef(new Array(b.length).fill(!0)),[E,T]=I.useState(void 0),P=I.useRef(b),F=I.useRef(A);let q=le=>{P.current=le,$(le)},te=le=>{F.current=le,w(le)};function se(le){return(le-n)/(r-n)}function ae(le){return le===0?n:b[le-1]}function O(le){return le===b.length-1?r:b[le+1]}function Ee(le){return C.current[le]}function be(le,Se){C.current[le]=Se}function z(le,Se){if(t||!Ee(le))return;const _e=ae(le),Be=O(le);Se=nd(Se,_e,Be,a);let Ge=iw(P.current,le,Se);q(Ge)}function G(le,Se){if(t||!Ee(le))return;Se&&(P.current=b);const _e=F.current[le];F.current=iw(F.current,le,Se),te(F.current),g&&_e&&!F.current.some(Boolean)&&g(P.current)}function V(le){return i.format(le)}function R(le,Se){z(le,fe(Se))}function K(le){return Math.round((le-n)/a)*a+n}function fe(le){const Se=le*(r-n)+n;return Jl(K(Se),n,r)}function M(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]+_e,n,r,a))}function oe(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]-_e,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:le=>b[le],setThumbValue:z,setThumbPercent:R,isThumbDragging:le=>A[le],setThumbDragging:G,focusedThumb:E,setFocusedThumb:T,getThumbPercent:le=>se(b[le]),getValuePercent:se,getThumbValueLabel:le=>V(b[le]),getFormattedValue:V,getThumbMinValue:ae,getThumbMaxValue:O,getPercentValue:fe,isThumbEditable:Ee,setThumbEditable:be,incrementThumb:M,decrementThumb:oe,step:a,pageSize:s,orientation:o,isDisabled:t}}function iw(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function aw(e){if(e!=null)return Array.isArray(e)?e:[e]}function ow(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const sw={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function fQ(e={}){let{style:t,isFocusable:n}=e,[r,i]=I.useState(!1),{focusWithinProps:a}=hc({isDisabled:!n,onFocusWithinChange:s=>i(s)}),o=I.useMemo(()=>r?t:t?{...sw,...t}:sw,[r]);return{visuallyHiddenProps:{...a,style:o}}}function hQ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=fQ(e);return de.default.createElement(n,Qt(a,o),t)}const Wb=new WeakMap;function M3(e,t){let n=Wb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function pQ(e,t,n){let{labelProps:r,fieldProps:i}=Pm(e),a=e.orientation==="vertical";var o;Wb.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=_r(),{addGlobalListener:l,removeGlobalListener:f}=Ts();const h=I.useRef(null),m=s==="rtl",g=I.useRef(null),{moveProps:b}=VP({onMoveStart(){g.current=null},onMove({deltaX:w,deltaY:C}){if(!n.current)return;let{height:E,width:T}=n.current.getBoundingClientRect(),P=a?E:T;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*P);let F=a?C:w;if((a||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const q=Jl(g.current/P,0,1);t.setThumbPercent(h.current,q)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=I.useRef(void 0),x=(w,C,E,T)=>{if(n.current&&!e.isDisabled&&t.values.every((P,F)=>!t.isThumbDragging(F))){let{height:P,width:F,top:q,left:te}=n.current.getBoundingClientRect(),se=a?P:F,be=((a?T:E)-(a?q:te))/se;(s==="rtl"||a)&&(be=1-be);let z=t.getPercentValue(be),G,V=t.values.findIndex(R=>z-R<0);if(V===0)G=V;else if(V===-1)G=t.values.length-1;else{let R=t.values[V-1],K=t.values[V];Math.abs(R-z)<Math.abs(K-z)?G=V-1:G=V}G>=0&&t.isThumbEditable(G)?(w.preventDefault(),h.current=G,t.setFocusedThumb(G),$.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(G,z),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=w=>{var C,E;((E=w.pointerId)!==null&&E!==void 0?E:(C=w.changedTouches)===null||C===void 0?void 0:C[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),f(window,"mouseup",A,!1),f(window,"touchend",A,!1),f(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var w;(w=document.getElementById(M3(t,0)))===null||w===void 0||w.focus(),OP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(w){w.button!==0||w.altKey||w.ctrlKey||w.metaKey||x(w,void 0,w.clientX,w.clientY)},onPointerDown(w){w.pointerType==="mouse"&&(w.button!==0||w.altKey||w.ctrlKey||w.metaKey)||x(w,w.pointerId,w.clientX,w.clientY)},onTouchStart(w){x(w,w.changedTouches[0].identifier,w.changedTouches[0].clientX,w.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((w,C)=>M3(t,C)).join(" "),"aria-live":"off"}}}function mQ(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:l=t.orientation,name:f,form:h}=e,m=e.isDisabled||t.isDisabled,g=l==="vertical",{direction:b}=_r(),{addGlobalListener:$,removeGlobalListener:x}=Ts(),A=Wb.get(t);var w;const{labelProps:C,fieldProps:E}=Pm({...e,id:M3(t,n),"aria-labelledby":`${A.id} ${(w=e["aria-labelledby"])!==null&&w!==void 0?w:""}`.trim()}),T=t.values[n],P=I.useCallback(()=>{s.current&&wi(s.current)},[s]),F=t.focusedThumb===n;I.useEffect(()=>{F&&P()},[F,P]);let q=b==="rtl",te=I.useRef(null),{keyboardProps:se}=LP({onKeyDown(R){let{getThumbMaxValue:K,getThumbMinValue:fe,decrementThumb:M,incrementThumb:oe,setThumbValue:le,setThumbDragging:Se,pageSize:_e}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(R.key)){R.continuePropagation();return}switch(R.preventDefault(),Se(n,!0),R.key){case"PageUp":oe(n,_e);break;case"PageDown":M(n,_e);break;case"Home":le(n,fe(n));break;case"End":le(n,K(n));break}Se(n,!1)}}),{moveProps:ae}=VP({onMoveStart(){te.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:R,deltaY:K,pointerType:fe,shiftKey:M}){const{getThumbPercent:oe,setThumbPercent:le,decrementThumb:Se,incrementThumb:_e,step:Be,pageSize:Ge}=t;if(!o.current)return;let{width:Xe,height:Ne}=o.current.getBoundingClientRect(),qe=g?Ne:Xe;if(te.current==null&&(te.current=oe(n)*qe),fe==="keyboard")R>0&&q||R<0&&!q||K>0?Se(n,M?Ge:Be):_e(n,M?Ge:Be);else{let ke=g?K:R;(g||q)&&(ke=-ke),te.current+=ke,le(n,Jl(te.current/qe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:O}=Bb(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let Ee=I.useRef(void 0),be=R=>{P(),Ee.current=R,t.setThumbDragging(n,!0),$(window,"mouseup",z,!1),$(window,"touchend",z,!1),$(window,"pointerup",z,!1)},z=R=>{var K,fe;((fe=R.pointerId)!==null&&fe!==void 0?fe:(K=R.changedTouches)===null||K===void 0?void 0:K[0].identifier)===Ee.current&&(P(),t.setThumbDragging(n,!1),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1))},G=t.getThumbPercent(n);(g||b==="rtl")&&(G=1-G);let V=m?{}:Qt(se,ae,{onMouseDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be()},onPointerDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be(R.pointerId)},onTouchStart:R=>{be(R.changedTouches[0].identifier)}});return wb(s,t.defaultValues[n],R=>{t.setThumbValue(n,R)}),{inputProps:Qt(O,E,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:f,form:h,disabled:m,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[A["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[A["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:R=>{t.setThumbValue(n,parseFloat(R.target.value))}}),thumbProps:{...V,style:{position:"absolute",[g?"top":"left"]:`${G*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:C,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function gQ(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,f]=Ai(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Bb(e,t),m=bf({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:w,errorMessageProps:C}=_m({...e,isInvalid:g,errorMessage:e.errorMessage||b}),E=Yo(e,{labelable:!0});const T={type:o,pattern:e.pattern};let[P]=I.useState(l);var F;return wb(t,(F=e.defaultValue)!==null&&F!==void 0?F:P,f),c_(e,m,t),I.useEffect(()=>{if(t.current instanceof ao(t.current).HTMLTextAreaElement){let q=t.current;Object.defineProperty(q,"defaultValue",{get:()=>q.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Qt(E,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:q=>f(q.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(de.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:w,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:$}}var d_={};d_={Empty:"فارغ"};var f_={};f_={Empty:"Изпразни"};var h_={};h_={Empty:"Prázdné"};var p_={};p_={Empty:"Tom"};var m_={};m_={Empty:"Leer"};var g_={};g_={Empty:"Άδειο"};var v_={};v_={Empty:"Empty"};var y_={};y_={Empty:"Vacío"};var b_={};b_={Empty:"Tühjenda"};var x_={};x_={Empty:"Tyhjä"};var D_={};D_={Empty:"Vide"};var $_={};$_={Empty:"ריק"};var E_={};E_={Empty:"Prazno"};var C_={};C_={Empty:"Üres"};var w_={};w_={Empty:"Vuoto"};var A_={};A_={Empty:"空"};var S_={};S_={Empty:"비어 있음"};var T_={};T_={Empty:"Tuščias"};var P_={};P_={Empty:"Tukšs"};var __={};__={Empty:"Tom"};var B_={};B_={Empty:"Leeg"};var F_={};F_={Empty:"Pusty"};var k_={};k_={Empty:"Vazio"};var M_={};M_={Empty:"Vazio"};var R_={};R_={Empty:"Gol"};var I_={};I_={Empty:"Не заполнено"};var O_={};O_={Empty:"Prázdne"};var L_={};L_={Empty:"Prazen"};var V_={};V_={Empty:"Prazno"};var N_={};N_={Empty:"Tomt"};var j_={};j_={Empty:"Boş"};var K_={};K_={Empty:"Пусто"};var z_={};z_={Empty:"空"};var q_={};q_={Empty:"空白"};var U_={};U_={"ar-AE":d_,"bg-BG":f_,"cs-CZ":h_,"da-DK":p_,"de-DE":m_,"el-GR":g_,"en-US":v_,"es-ES":y_,"et-EE":b_,"fi-FI":x_,"fr-FR":D_,"he-IL":$_,"hr-HR":E_,"hu-HU":C_,"it-IT":w_,"ja-JP":A_,"ko-KR":S_,"lt-LT":T_,"lv-LV":P_,"nb-NO":__,"nl-NL":B_,"pl-PL":F_,"pt-BR":k_,"pt-PT":M_,"ro-RO":R_,"ru-RU":I_,"sk-SK":O_,"sl-SI":L_,"sr-SP":V_,"sv-SE":N_,"tr-TR":j_,"uk-UA":K_,"zh-CN":z_,"zh-TW":q_};function vQ(e){return e&&e.__esModule?e.default:e}function yQ(e){const t=I.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:l,onIncrement:f,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const x=Ta(vQ(U_),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);I.useEffect(()=>()=>A(),[]);let w=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||s||O.nativeEvent.isComposing))switch(O.key){case"PageUp":if(h){O.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(g){O.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(O.preventDefault(),m==null||m());break;case"Home":b&&(O.preventDefault(),b==null||b());break;case"End":$&&(O.preventDefault(),$==null||$());break}},C=I.useRef(!1),E=()=>{C.current=!0},T=()=>{C.current=!1},P=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");I.useEffect(()=>{C.current&&(GX("assertive"),Kl(P,"assertive"))},[P]);const F=cn(O=>{A(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},O)}),q=cn(O=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&q(60)},O)});let te=O=>{O.preventDefault()},{addGlobalListener:se,removeAllGlobalListeners:ae}=Ts();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:w,onFocus:E,onBlur:T},incrementButtonProps:{onPressStart:()=>{F(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T},decrementButtonProps:{onPressStart:()=>{q(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T}}}var W_={};W_={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var H_={};H_={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var G_={};G_={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Y_={};Y_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Z_={};Z_={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var X_={};X_={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Q_={};Q_={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var J_={};J_={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var eB={};eB={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var tB={};tB={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var nB={};nB={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var rB={};rB={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var iB={};iB={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var aB={};aB={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var oB={};oB={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var sB={};sB={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var uB={};uB={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var lB={};lB={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var cB={};cB={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var dB={};dB={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var fB={};fB={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var hB={};hB={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var pB={};pB={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var mB={};mB={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var gB={};gB={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var vB={};vB={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var yB={};yB={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var bB={};bB={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var xB={};xB={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var DB={};DB={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var $B={};$B={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var EB={};EB={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var CB={};CB={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var wB={};wB={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var AB={};AB={"ar-AE":W_,"bg-BG":H_,"cs-CZ":G_,"da-DK":Y_,"de-DE":Z_,"el-GR":X_,"en-US":Q_,"es-ES":J_,"et-EE":eB,"fi-FI":tB,"fr-FR":nB,"he-IL":rB,"hr-HR":iB,"hu-HU":aB,"it-IT":oB,"ja-JP":sB,"ko-KR":uB,"lt-LT":lB,"lv-LV":cB,"nb-NO":dB,"nl-NL":fB,"pl-PL":hB,"pt-BR":pB,"pt-PT":mB,"ro-RO":gB,"ru-RU":vB,"sk-SK":yB,"sl-SI":bB,"sr-SP":xB,"sv-SE":DB,"tr-TR":$B,"uk-UA":EB,"zh-CN":CB,"zh-TW":wB};const Xa={top:"top",bottom:"top",left:"left",right:"left"},Sp={top:"bottom",bottom:"top",left:"right",right:"left"},bQ={top:"left",left:"top"},R3={top:"height",left:"width"},SB={width:"totalWidth",height:"totalHeight"},$h={};let hr=typeof document<"u"?window.visualViewport:null;function uw(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let f=((l=hr==null?void 0:hr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=hr==null?void 0:hr.width)!==null&&h!==void 0?h:r;var m;n=(m=hr==null?void 0:hr.height)!==null&&m!==void 0?m:i,s.top=$.scrollTop||e.scrollTop,s.left=$.scrollLeft||e.scrollLeft,hr&&(a=hr.offsetTop,o=hr.offsetLeft)}else({width:t,height:n,top:a,left:o}=zl(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;if($b()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){s.top=0,s.left=0;var g;a=(g=hr==null?void 0:hr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=hr==null?void 0:hr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function xQ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function lw(e,t,n,r,i,a,o){var s;let l=(s=i.scroll[e])!==null&&s!==void 0?s:0,f=r[R3[e]],h=r.scroll[Xa[e]]+a,m=f+r.scroll[Xa[e]]-a,g=t-l+o[e]-r[Xa[e]],b=t-l+n+o[e]-r[Xa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function DQ(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function cw(e){if($h[e])return $h[e];let[t,n]=e.split(" "),r=Xa[t]||"right",i=bQ[r];Xa[n]||(n="center");let a=R3[r],o=R3[i];return $h[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},$h[e]}function V4(e,t,n,r,i,a,o,s,l,f){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:x}=r,A={};var w;A[b]=(w=e[b])!==null&&w!==void 0?w:0;var C,E,T,P;m==="center"?A[b]+=(((C=e[x])!==null&&C!==void 0?C:0)-((E=n[x])!==null&&E!==void 0?E:0))/2:m!==b&&(A[b]+=((T=e[x])!==null&&T!==void 0?T:0)-((P=n[x])!==null&&P!==void 0?P:0)),A[b]+=a;const F=e[b]-n[x]+l+f,q=e[b]+e[x]-l-f;if(A[b]=Jl(A[b],F,q),h===g){const te=s?o[$]:t[SB[$]];A[Sp[g]]=Math.floor(te-e[g]+i)}else A[g]=Math.floor(e[g]+e[$]+i);return A}function $Q(e,t,n,r,i,a,o,s){const l=r?n.height:t[SB.height];var f;let h=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var m,g,b,$,x,A;let w=s!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+a)):Math.max(0,h+o-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+a));return Math.min(t.height-a*2,w)}function dw(e,t,n,r,i,a){let{placement:o,axis:s,size:l}=a;var f,h;if(o===s)return Math.max(0,n[s]-e[s]-((f=e.scroll[s])!==null&&f!==void 0?f:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Sp[s]]-i);var m;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((m=r[s])!==null&&m!==void 0?m:0)-r[Sp[s]]-i)}function EQ(e,t,n,r,i,a,o,s,l,f,h,m,g,b,$,x){let A=cw(e),{size:w,crossAxis:C,crossSize:E,placement:T,crossPlacement:P}=A,F=V4(t,s,n,A,h,m,f,g,$,x),q=h,te=dw(s,f,t,i,a+h,A);if(o&&r[w]>te){let Xe=cw(`${Sp[T]} ${P}`),Ne=V4(t,s,n,Xe,h,m,f,g,$,x);dw(s,f,t,i,a+h,Xe)>te&&(A=Xe,F=Ne,q=h)}let se="bottom";A.axis==="top"?A.placement==="top"?se="top":A.placement==="bottom"&&(se="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?se="bottom":A.crossPlacement==="bottom"&&(se="top"));let ae=lw(C,F[C],n[E],s,l,a,f);F[C]+=ae;let O=$Q(F,s,f,g,i,a,n.height,se);b&&b<O&&(O=b),n.height=Math.min(n.height,O),F=V4(t,s,n,A,q,m,f,g,$,x),ae=lw(C,F[C],n[E],s,l,a,f),F[C]+=ae;let Ee={},be=t[C]-F[C]-i[Xa[C]],z=be+.5*t[E];const G=$/2+x;var V,R,K,fe;const M=Xa[C]==="left"?((V=i.left)!==null&&V!==void 0?V:0)+((R=i.right)!==null&&R!==void 0?R:0):((K=i.top)!==null&&K!==void 0?K:0)+((fe=i.bottom)!==null&&fe!==void 0?fe:0),oe=n[E]-M-$/2-x,le=t[C]+$/2-(F[C]+i[Xa[C]]),Se=t[C]+t[E]-$/2-(F[C]+i[Xa[C]]),_e=Jl(z,le,Se);Ee[C]=Jl(_e,G,oe),{placement:T,crossPlacement:P}=A,$?be=Ee[C]:P==="right"?be+=t[E]:P==="center"&&(be+=t[E]/2);let Be=T==="left"||T==="top"?n[w]:0,Ge={x:T==="top"||T==="bottom"?be:Be,y:T==="left"||T==="right"?be:Be};return{position:F,maxHeight:O,arrowOffsetLeft:Ee.left,arrowOffsetTop:Ee.top,placement:T,triggerAnchorPoint:Ge}}function CQ(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:l,crossOffset:f,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?wQ(r):document.documentElement,$=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",w=$?zl(n,!1):fw(n,b,!1);if(!$){let{marginTop:Ee,marginLeft:be}=window.getComputedStyle(n);w.top+=parseInt(Ee,10)||0,w.left+=parseInt(be,10)||0}let C=zl(r,!0),E=DQ(r);var T,P;C.width+=((T=E.left)!==null&&T!==void 0?T:0)+((P=E.right)!==null&&P!==void 0?P:0);var F,q;C.height+=((F=E.top)!==null&&F!==void 0?F:0)+((q=E.bottom)!==null&&q!==void 0?q:0);let te=xQ(i),se=uw(s),ae=uw(b),O=s.tagName==="BODY"?zl(b,!1):fw(b,s,!1);return b.tagName==="HTML"&&s.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),EQ(t,w,C,te,E,a,o,se,ae,O,l,f,A,h,m,g)}function Hb(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function zl(e,t){let{top:n,left:r,width:i,height:a}=Hb(e,t),{scrollTop:o,scrollLeft:s,clientTop:l,clientLeft:f}=document.documentElement;return{top:n+o-l,left:r+s-f,width:i,height:a}}function fw(e,t,n){let r=window.getComputedStyle(e),i;if(r.position==="fixed")i=Hb(e,n);else{i=zl(e,n);let a=zl(t,n),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=a.top,i.left-=a.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function wQ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!hw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!hw(t);)t=t.parentElement;return t||document.documentElement}function hw(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const TB=new WeakMap;function AQ(e){let{triggerRef:t,isOpen:n,onClose:r}=e;I.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let s=r||TB.get(t.current);s&&s()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Un=typeof document<"u"?window.visualViewport:null;function SQ(e){let{direction:t}=_r(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s="bottom",containerPadding:l=12,shouldFlip:f=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:$=!0,onClose:x,maxHeight:A,arrowBoundaryOffset:w=0}=e,[C,E]=I.useState(null),T=[b,s,i.current,r.current,a==null?void 0:a.current,o.current,l,f,h,m,g,$,t,A,w,n],P=I.useRef(Un==null?void 0:Un.scale);I.useEffect(()=>{$&&(P.current=Un==null?void 0:Un.scale)},[$]);let F=I.useCallback(()=>{if(b===!1||!$||!i.current||!r.current||!h||(Un==null?void 0:Un.scale)!==P.current)return;let Ee=null;if(o.current&&o.current.contains(document.activeElement)){var be;let M=(be=document.activeElement)===null||be===void 0?void 0:be.getBoundingClientRect(),oe=o.current.getBoundingClientRect();var z;if(Ee={type:"top",offset:((z=M==null?void 0:M.top)!==null&&z!==void 0?z:0)-oe.top},Ee.offset>oe.height/2){Ee.type="bottom";var G;Ee.offset=((G=M==null?void 0:M.bottom)!==null&&G!==void 0?G:0)-oe.bottom}}let V=i.current;if(!A&&i.current){var R;V.style.top="0px",V.style.bottom="";var K;V.style.maxHeight=((K=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let fe=CQ({placement:PQ(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:f,boundaryElement:h,offset:m,crossOffset:g,maxHeight:A,arrowSize:n??(a!=null&&a.current?Hb(a.current,!0).width:0),arrowBoundaryOffset:w});if(fe.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(fe.position).forEach(M=>V.style[M]=fe.position[M]+"px"),V.style.maxHeight=fe.maxHeight!=null?fe.maxHeight+"px":"",Ee&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),oe=o.current.getBoundingClientRect(),le=M[Ee.type]-oe[Ee.type];o.current.scrollTop+=le-Ee.offset}E(fe)}},T);hn(F,T),TQ(F),p2({ref:i,onResize:F}),p2({ref:r,onResize:F});let q=I.useRef(!1);hn(()=>{let Ee,be=()=>{q.current=!0,clearTimeout(Ee),Ee=setTimeout(()=>{q.current=!1},500),F()},z=()=>{q.current&&be()};return Un==null||Un.addEventListener("resize",be),Un==null||Un.addEventListener("scroll",z),()=>{Un==null||Un.removeEventListener("resize",be),Un==null||Un.removeEventListener("scroll",z)}},[F]);let te=I.useCallback(()=>{q.current||x==null||x()},[x,q]);AQ({triggerRef:r,isOpen:$,onClose:x&&te});var se,ae,O;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(se=C==null?void 0:C.maxHeight)!==null&&se!==void 0?se:"100vh"}},placement:(ae=C==null?void 0:C.placement)!==null&&ae!==void 0?ae:null,triggerAnchorPoint:(O=C==null?void 0:C.triggerAnchorPoint)!==null&&O!==void 0?O:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:F}}function TQ(e){hn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function PQ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Wa=[];function _Q(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e;I.useEffect(()=>{if(i&&!Wa.includes(t))return Wa.push(t),()=>{let $=Wa.indexOf(t);$>=0&&Wa.splice($,1)}},[i,t]);let l=()=>{Wa[Wa.length-1]===t&&n&&n()},f=$=>{(!s||s($.target))&&Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!s||s($.target))&&(Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!o&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};gZ({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:f});let{focusWithinProps:g}=hc({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||jX($.relatedTarget)||(!s||s($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function BQ(e,t,n){let{type:r}=e,{isOpen:i}=t;I.useEffect(()=>{n&&n.current&&TB.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=zr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Ad=typeof document<"u"&&window.visualViewport;let Eh=0,N4;function FQ(e={}){let{isDisabled:t}=e;hn(()=>{if(!t)return Eh++,Eh===1&&(df()?N4=MQ():N4=kQ()),()=>{Eh--,Eh===0&&N4()}},[t])}function kQ(){let e=window.innerWidth-document.documentElement.clientWidth;return Iu(e>0&&("scrollbarGutter"in document.documentElement.style?j4(document.documentElement,"scrollbarGutter","stable"):j4(document.documentElement,"paddingRight",`${e}px`)),j4(document.documentElement,"overflow","hidden"))}function MQ(){let e,t=!1,n=l=>{let f=l.target;e=Ql(f)?f:Dm(f,!0),t=!1;let h=f.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(f,!0)&&(t=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(t=!0)},r=document.createElement("style");r.textContent=`
70
+ `.trim(),O.head.prepend(Ee)},[g]),I.useEffect(()=>{let O=A.current;return()=>{var Ee;m||Vh((Ee=O.target)!==null&&Ee!==void 0?Ee:void 0);for(let be of O.disposables)be();O.disposables=[]}},[m]),{isPressed:l||$,pressProps:Qt(b,ae,{[D2]:!0})}}function kb(e){return e.tagName==="A"&&e.hasAttribute("href")}function T4(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ao(i).HTMLInputElement&&!IP(i,n)||i instanceof ao(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&kb(i))&&n!=="Enter")}function wZ(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $2(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function ds(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function nu(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function AZ(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function SZ(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function E2(e,t){let n=t.getBoundingClientRect(),r=AZ(e);return SZ(n,r)}function TZ(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!kb(e)}function C2(e,t){return e instanceof HTMLInputElement?!IP(e,t):TZ(e)}const PZ=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function IP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":PZ.has(e.type)}let zo=null,v3=new Set,Sd=new Map,Su=!1,y3=!1;function $m(e,t){for(let n of v3)n(e,t)}function _Z(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yp(e){Su=!0,_Z(e)&&(zo="keyboard",$m("keyboard",e))}function qi(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Su=!0,$m("pointer",e))}function OP(e){p3(e)&&(Su=!0,zo="virtual")}function LP(e){e.target===window||e.target===document||vp||!e.isTrusted||(!Su&&!y3&&(zo="virtual",$m("virtual",e)),Su=!1,y3=!1)}function VP(){vp||(Su=!1,y3=!0)}function b3(e){if(typeof window>"u"||typeof document>"u"||Sd.get(ao(e)))return;const t=ao(e),n=Xt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Su=!0,r.apply(this,arguments)},n.addEventListener("keydown",yp,!0),n.addEventListener("keyup",yp,!0),n.addEventListener("click",OP,!0),t.addEventListener("focus",LP,!0),t.addEventListener("blur",VP,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",qi,!0),n.addEventListener("pointermove",qi,!0),n.addEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",qi,!0),n.addEventListener("mousemove",qi,!0),n.addEventListener("mouseup",qi,!0)),t.addEventListener("beforeunload",()=>{NP(e)},{once:!0}),Sd.set(t,{focus:r})}const NP=(e,t)=>{const n=ao(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),Sd.has(n)&&(n.HTMLElement.prototype.focus=Sd.get(n).focus,r.removeEventListener("keydown",yp,!0),r.removeEventListener("keyup",yp,!0),r.removeEventListener("click",OP,!0),n.removeEventListener("focus",LP,!0),n.removeEventListener("blur",VP,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",qi,!0),r.removeEventListener("pointermove",qi,!0),r.removeEventListener("pointerup",qi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",qi,!0),r.removeEventListener("mousemove",qi,!0),r.removeEventListener("mouseup",qi,!0)),Sd.delete(n))};function BZ(e){const t=Xt(e);let n;return t.readyState!=="loading"?b3(e):(n=()=>{b3(e)},t.addEventListener("DOMContentLoaded",n)),()=>NP(e,n)}typeof document<"u"&&BZ();function w2(){return zo!=="pointer"}function Nd(){return zo}function jP(e){zo=e,$m(e,null)}function FZ(){b3();let[e,t]=I.useState(zo);return I.useEffect(()=>{let n=()=>{t(zo)};return v3.add(n),()=>{v3.delete(n)}},[]),vm()?null:e}function Tu(e){const t=Xt(e),n=ir(t);if(Nd()==="virtual"){let r=n;SP(()=>{ir(t)===r&&e.isConnected&&wi(e)})}else wi(e)}function kZ(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=I.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=MP(a),s=I.useCallback(l=>{const f=Xt(l.target),h=f?ir(f):ir();l.target===l.currentTarget&&h===tn(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:!t&&(r||i)?a:void 0}}}function A2(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function KP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:A2(e.onKeyDown),onKeyUp:A2(e.onKeyUp)}}}let MZ=de.default.createContext(null);function RZ(e){let t=I.useContext(MZ)||{};TP(t,e);let{ref:n,...r}=t;return r}function Mb(e,t){let{focusProps:n}=kZ(e),{keyboardProps:r}=KP(e),i=Qt(n,r),a=RZ(t),o=e.isDisabled?{}:a,s=I.useRef(e.autoFocus);I.useEffect(()=>{s.current&&t.current&&Tu(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},o)}}function IZ({children:e}){let t=I.useMemo(()=>({register:()=>{}}),[]);return de.default.createElement(Fb.Provider,{value:t},e)}function hc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=I.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Ts(),l=I.useCallback(m=>{m.currentTarget.contains(m.target)&&a.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(m),i&&i(!1))},[n,i,a,s]),f=MP(l),h=I.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Xt(m.target),b=ir(g);if(!a.current.isFocusWithin&&b===tn(m.nativeEvent)){r&&r(m),i&&i(!0),a.current.isFocusWithin=!0,f(m);let $=m.currentTarget;o(g,"focus",x=>{if(a.current.isFocusWithin&&!Sn($,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});kP(A,$);let w=Bb(A);l(w)}},{capture:!0})}},[r,i,f,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let bp=!1,yh=0;function x3(){bp=!0,setTimeout(()=>{bp=!1},50)}function S2(e){e.pointerType==="touch"&&x3()}function OZ(){if(!(typeof document>"u"))return yh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",S2):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",x3)),yh++,()=>{yh--,!(yh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",S2):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",x3))}}function LZ(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=I.useState(!1),s=I.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;I.useEffect(OZ,[]);let{addGlobalListener:l,removeAllGlobalListeners:f}=Ts(),{hoverProps:h,triggerHoverEnd:m}=I.useMemo(()=>{let g=(x,A)=>{if(s.pointerType=A,i||A==="touch"||s.isHovered||!x.currentTarget.contains(x.target))return;s.isHovered=!0;let w=x.currentTarget;s.target=w,l(Xt(x.target),"pointerover",C=>{s.isHovered&&s.target&&!Sn(s.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:w,pointerType:A}),n&&n(!0),o(!0)},b=(x,A)=>{let w=s.target;s.pointerType="",s.target=null,!(A==="touch"||!s.isHovered||!w)&&(s.isHovered=!1,f(),r&&r({type:"hoverend",target:w,pointerType:A}),n&&n(!1),o(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=x=>{bp&&x.pointerType==="mouse"||g(x,x.pointerType)},$.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&($.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=x=>{!s.ignoreEmulatedMouseEvents&&!bp&&g(x,"mouse"),s.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:$,triggerHoverEnd:b}},[t,n,r,i,s,l,f]);return I.useEffect(()=>{i&&m({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:h,isHovered:a}}function VZ(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=I.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=cn(l=>{n&&bh(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});I.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,h=Xt(f);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&bh(g,t)&&s(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&bh(b,t)&&s(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,s])}function bh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function zP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=I.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Ts(),s=cn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=cn((h,m)=>{Vh(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:I.useMemo(()=>{let h={},m=()=>{g3(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=w=>{if(w.button===0){var C,E,T,P;s(w,"mouse",w.pageX-((T=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&T!==void 0?T:0),w.pageY-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&P!==void 0?P:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{w.button===0&&(l(w,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};h.onMouseDown=w=>{w.button===0&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},a(window,"mousemove",b,!1),a(window,"mouseup",$,!1))};let x=w=>{let C=[...w.changedTouches].findIndex(({identifier:q})=>q===i.current.id);if(C>=0){var E,T;let{pageX:q,pageY:te}=w.changedTouches[C];var P,F;s(w,"touch",q-((P=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&P!==void 0?P:0),te-((F=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:q,pageY:te}}},A=w=>{[...w.changedTouches].findIndex(({identifier:E})=>E===i.current.id)>=0&&(l(w,"touch"),i.current.id=null,o(window,"touchmove",x),o(window,"touchend",A),o(window,"touchcancel",A))};h.onTouchStart=w=>{if(w.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:E,identifier:T}=w.changedTouches[0];m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:C,pageY:E},i.current.id=T,a(window,"touchmove",x,!1),a(window,"touchend",A,!1),a(window,"touchcancel",A,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var A,w;let T=x.pointerType||"mouse";var C,E;s(x,T,x.pageX-((C=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&C!==void 0?C:0),x.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},$=x=>{if(x.pointerId===i.current.id){let A=x.pointerType||"mouse";l(x,A),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,a(window,"pointermove",b,!1),a(window,"pointerup",$,!1),a(window,"pointercancel",$,!1))}}let g=(b,$,x)=>{m(),s(b,"keyboard",$,x),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,a,o,s,l])}}const NZ=500;function qP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=NZ,accessibilityDescription:o}=e;const s=I.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Ts(),{pressProps:h}=hf({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),s.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Xt(g.target).activeElement!==g.target&&wi(g.target),i&&i({...g,type:"longpress"}),s.current=void 0},a),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){s.current&&clearTimeout(s.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=fc(i&&!t?o:void 0);return{longPressProps:Qt(h,m)}}const jZ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),KZ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zZ(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return jZ.has(n.script)}let t=e.split("-")[0];return KZ.has(t)}const qZ=Symbol.for("react-aria.i18n.locale");function UP(){let e=typeof window<"u"&&window[qZ]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zZ(e)?"rtl":"ltr"}}let D3=UP(),yd=new Set;function T2(){D3=UP();for(let e of yd)e(D3)}function UZ(){let e=vm(),[t,n]=I.useState(D3);return I.useEffect(()=>(yd.size===0&&window.addEventListener("languagechange",T2),yd.add(n),()=>{yd.delete(n),yd.size===0&&window.removeEventListener("languagechange",T2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WZ=de.default.createContext(null);function _r(){let e=UZ();return I.useContext(WZ)||e}const HZ=Symbol.for("react-aria.i18n.locale"),GZ=Symbol.for("react-aria.i18n.strings");let gl;class Ps{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=YZ(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[HZ];if(gl===void 0){let i=window[GZ];if(!i)return null;gl={};for(let a in i)gl[a]=new Ps({[n]:i[a]},n)}let r=gl==null?void 0:gl[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function YZ(e,t,n="en-US"){if(t[e])return t[e];let r=ZZ(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function ZZ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const P2=new Map,_2=new Map;class WP{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=P2.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),P2.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=_2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),_2.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const B2=new WeakMap;function XZ(e){let t=B2.get(e);return t||(t=new Ps(e),B2.set(e,t)),t}function HP(e,t){return t&&Ps.getGlobalDictionaryForPackage(t)||XZ(e)}function Ta(e,t){let{locale:n}=_r(),r=HP(e,t);return I.useMemo(()=>new WP(n,r),[n,r])}function Vl(e,t){return e-t*Math.floor(e/t)}const GP=1721426;function cu(e,t,n,r){t=pf(e,t);let i=t-1,a=-2;return n<=2?a=0:Ds(t)&&(a=-1),GP-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function Ds(e){return e%4===0&&(e%100!==0||e%400===0)}function pf(e,t){return e==="BC"?1-t:t}function Em(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const QZ={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Ur{fromJulianDay(t){let n=t,r=n-GP,i=Math.floor(r/146097),a=Vl(r,146097),o=Math.floor(a/36524),s=Vl(a,36524),l=Math.floor(s/1461),f=Vl(s,1461),h=Math.floor(f/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Em(m),$=n-cu(g,b,1,1),x=2;n<cu(g,b,3,1)?x=0:Ds(b)&&(x=1);let A=Math.floor((($+x)*12+373)/367),w=n-cu(g,b,A,1)+1;return new Gn(g,b,A,w)}toJulianDay(t){return cu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return QZ[Ds(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ds(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const JZ={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function er(e,t){return t=kn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function $3(e,t){return Cm(e.calendar,t.calendar)&&er(e,t)}function Cm(e,t){var n,r,i,a;return(a=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:e.identifier===t.identifier}function YP(e,t){return er(e,wm(t))}const eX={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Rb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?eX[n]:oX(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function ZP(e){return Oo(Date.now(),e)}function wm(e){return qr(ZP(e))}function XP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function QP(e,t){return F2(e)-F2(t)}function F2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let P4=null;function mf(){return P4==null&&(P4=new Intl.DateTimeFormat().resolvedOptions().timeZone),P4}function gf(e){return e.subtract({days:e.day-1})}function E3(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function tX(e){return gf(e.subtract({months:e.month-1}))}function nX(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function rX(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function jd(e,t,n){let r=Rb(e,t,n);return e.subtract({days:r})}function iX(e,t,n){return jd(e,t,n).add({days:6})}const k2=new Map,_4=new Map;function aX(e){if(Intl.Locale){let n=k2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&k2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function oX(e){let t=_4.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return _4.set(e,t),t.firstDay}let n=aX(e);if(e.includes("-fw-")){let r=e.split("-fw-")[1].split("-")[0];r==="mon"?t={firstDay:1}:r==="tue"?t={firstDay:2}:r==="wed"?t={firstDay:3}:r==="thu"?t={firstDay:4}:r==="fri"?t={firstDay:5}:r==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:n&&JZ[n]||0};_4.set(e,t)}return t.firstDay}function JP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Rb(gf(e),t,n)+r)/7)}function Ib(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Ob(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ec(e){e=kn(e,new Ur);let t=pf(e.era,e.year);return e7(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function e7(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function C3(e,t){if(t==="UTC")return 0;if(e>0&&t===mf())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=t7(e,t);return e7(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const M2=new Map;function t7(e,t){let n=M2.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),M2.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const R2=864e5;function sX(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>uX(e,t,a))}function uX(e,t,n){let r=t7(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Io(e,t,n="compatible"){let r=Ea(e);if(t==="UTC")return ec(r);if(t===mf()&&n==="compatible"){r=kn(r,new Ur);let l=new Date,f=pf(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ec(r),a=C3(i-R2,t),o=C3(i+R2,t),s=sX(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-o);case"compatible":case"later":return Math.max(i-a,i-o);case"reject":throw new RangeError("No such absolute time found")}}function n7(e,t,n="compatible"){return new Date(Io(e,t,n))}function Oo(e,t){let n=C3(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new qd(i<1?"BC":"AD",i<1?-i+1:i,a,o,t,n,s,l,f,h)}function qr(e){return new Gn(e.calendar,e.era,e.year,e.month,e.day)}function Ea(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new zd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function I2(e){return new vf(e.hour,e.minute,e.second,e.millisecond)}function kn(e,t){if(Cm(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,Pu(r),r}function r7(e,t,n){if(e instanceof qd)return e.timeZone===t?e:cX(e,t);let r=Io(e,t,n);return Oo(r,t)}function lX(e){let t=ec(e)-e.offset;return new Date(t)}function cX(e,t){let n=ec(e)-e.offset;return kn(Oo(n,t),e.calendar)}const rd=36e5;function Am(e,t){let n=e.copy(),r="hour"in n?s7(n,t):0;w3(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,A3(n),i7(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,dX(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var a,o;let l=(a=(o=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function w3(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function A3(e){for(;e.month<1;)w3(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,w3(e,1)}function dX(e){for(;e.day<1;)e.month--,A3(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,A3(e)}function i7(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Pu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),i7(e)}function Lb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function a7(e,t){return Am(e,Lb(t))}function Vb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Pu(n),n}function Kd(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),o7(n),n}function fX(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=xh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=xh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=xh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=xh(e.hour,24),t}function o7(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function xh(e,t){let n=e%t;return n<0&&(n+=t),n}function s7(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,fX(e)}function u7(e,t){let n=e.copy();return s7(n,t),n}function hX(e,t){return u7(e,Lb(t))}function Nb(e,t,n,r){let i=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),l=s.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lo(l,n,0,s.length-1,r==null?void 0:r.round),i.era=s[l],Pu(i);break}case"year":var a,o;!((a=(o=i.calendar).isInverseEra)===null||a===void 0)&&a.call(o,i)&&(n=-n),i.year=Lo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Lo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Pu(i),i}function jb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,o=0,s=23;if((r==null?void 0:r.hourCycle)===12){let l=a>=12;o=l?12:0,s=l?23:11}i.hour=Lo(a,n,o,s,r==null?void 0:r.round);break}case"minute":i.minute=Lo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Lo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Lo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function l7(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Am(Ea(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Io(i,e.timeZone)}else n=ec(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Oo(n,e.timeZone);return kn(r,e.calendar)}function pX(e,t){return l7(e,Lb(t))}function mX(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,a=$?23:11}let o=Ea(e),s=kn(Kd(o,{hour:i}),new Ur),l=[Io(s,e.timeZone,"earlier"),Io(s,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===s.day)[0],f=kn(Kd(o,{hour:a}),new Ur),h=[Io(f,e.timeZone,"earlier"),Io(f,e.timeZone,"later")].filter($=>Oo($,e.timeZone).day===f.day).pop(),m=ec(e)-e.offset,g=Math.floor(m/rd),b=m%rd;return m=Lo(g,n,Math.floor(l/rd),Math.floor(h/rd),r==null?void 0:r.round)*rd+b,kn(Oo(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return jb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Nb(Ea(e),t,n,r),a=Io(i,e.timeZone);return kn(Oo(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function gX(e,t,n){let r=Ea(e),i=Kd(Vb(r,t),t);if(i.compare(r)===0)return e;let a=Io(i,e.timeZone,n);return kn(Oo(a,e.timeZone),e.calendar)}const vX=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,yX=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function bX(e){let t=e.match(vX);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gn(Ha(t[1],0,9999),Ha(t[2],1,12),1);return n.day=Ha(t[3],1,n.calendar.getDaysInMonth(n)),n}function xX(e){let t=e.match(yX);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ha(t[1],-9999,9999),r=n<1?"BC":"AD",i=new zd(r,n<1?-n+1:n,Ha(t[2],1,12),1,t[4]?Ha(t[4],0,23):0,t[5]?Ha(t[5],0,59):0,t[6]?Ha(t[6],0,59):0,t[7]?Ha(t[7],0,1/0)*1e3:0);return i.day=Ha(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ha(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function c7(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function d7(e){let t=kn(e,new Ur),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function f7(e){return`${d7(e)}T${c7(e)}`}function DX(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return i!==0&&(a+=`:${String(i).padStart(2,"0")}`),a}function $X(e){return`${f7(e)}${DX(e.offset)}[${e.timeZone}]`}function Kb(e){let t=typeof e[0]=="object"?e.shift():new Ur,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var EX=new WeakMap;class Gn{copy(){return this.era?new Gn(this.calendar,this.era,this.year,this.month,this.day):new Gn(this.calendar,this.year,this.month,this.day)}add(t){return Am(this,t)}subtract(t){return a7(this,t)}set(t){return Vb(this,t)}cycle(t,n,r){return Nb(this,t,n,r)}toDate(t){return n7(this,t)}toString(){return d7(this)}compare(t){return XP(this,t)}constructor(...t){ff(this,EX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Pu(this)}}var CX=new WeakMap;class vf{copy(){return new vf(this.hour,this.minute,this.second,this.millisecond)}add(t){return u7(this,t)}subtract(t){return hX(this,t)}set(t){return Kd(this,t)}cycle(t,n,r){return jb(this,t,n,r)}toString(){return c7(this)}compare(t){return QP(this,t)}constructor(t=0,n=0,r=0,i=0){ff(this,CX,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,o7(this)}}var wX=new WeakMap;class zd{copy(){return this.era?new zd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new zd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Am(this,t)}subtract(t){return a7(this,t)}set(t){return Vb(Kd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Nb(this,t,n,r);default:return jb(this,t,n,r)}}toDate(t,n){return n7(this,t,n)}toString(){return f7(this)}compare(t){let n=XP(this,t);return n===0?QP(this,Ea(t)):n}constructor(...t){ff(this,wX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Pu(this)}}var AX=new WeakMap;class qd{copy(){return this.era?new qd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new qd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return l7(this,t)}subtract(t){return pX(this,t)}set(t,n){return gX(this,t,n)}cycle(t,n,r){return mX(this,t,n,r)}toDate(){return lX(this)}toString(){return $X(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-r7(t,this.timeZone).toDate().getTime()}constructor(...t){ff(this,AX,{writable:!0,value:void 0});let[n,r,i,a,o]=Kb(t),s=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,this.timeZone=s,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Pu(this)}}const Nl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],SX=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Nh=[1867,1911,1925,1988,2018],ms=["meiji","taisho","showa","heisei","reiwa"];function O2(e){const t=Nl.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?Nl.length-1:t===0?0:t-1}function B4(e){let t=Nh[ms.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class TX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=O2(n);return new Gn(this,ms[r],n.year-Nh[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(B4(t))}balanceDate(t){let n=B4(t),r=O2(n);ms[r]!==t.era&&(t.era=ms[r],t.year=n.year-Nh[r]),this.constrainDate(t)}constrainDate(t){let n=ms.indexOf(t.era),r=SX[n];if(r!=null){let[i,a,o]=r,s=i-Nh[n];t.year=Math.max(1,Math.min(s,t.year)),t.year===s&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Nl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ms}getYearsInEra(t){let n=ms.indexOf(t.era),r=Nl[n],i=Nl[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(B4(t))}getMinimumMonthInYear(t){let n=L2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=L2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function L2(e){if(e.year===1){let t=ms.indexOf(e.era);return Nl[t]}}const h7=-543;class PX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year);return new Gn(this,r-h7,n.month,n.day)}toJulianDay(t){return super.toJulianDay(V2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(V2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function V2(e){let[t,n]=Em(e.year+h7);return new Gn(t,n,e.month,e.day)}const xp=1911;function p7(e){return e.era==="minguo"?e.year+xp:1-e.year+xp}function N2(e){let t=e-xp;return t>0?["minguo",t]:["before_minguo",1-t]}class _X extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=pf(n.era,n.year),[i,a]=N2(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(j2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=N2(p7(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(j2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-xp}constructor(...t){super(...t),this.identifier="roc"}}function j2(e){let[t,n]=Em(p7(e));return new Gn(t,n,e.month,e.day)}const K2=1948320,z2=[0,31,62,93,124,155,186,216,246,276,306,336];class BX{fromJulianDay(t){let n=t-K2,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,o=a<216?Math.floor(a/31):Math.floor((a-6)/30),s=a-z2[o]+1;return new Gn(this,r,o+1,s)}toJulianDay(t){let n=K2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=z2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Vl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const F4=78,q2=80;class FX extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-F4,i=t-cu(n.era,n.year,1,1),a;i<q2?(r--,a=Ds(n.year-1)?31:30,i+=a+155+90+10):(a=Ds(n.year)?31:30,i-=q2);let o,s;if(i<a)o=1,s=i+1;else{let l=i-a;l<155?(o=Math.floor(l/31)+2,s=l%31+1):(l-=155,o=Math.floor(l/30)+7,s=l%30+1)}return new Gn(this,r,o,s)}toJulianDay(t){let n=t.year+F4,[r,i]=Em(n),a,o;return Ds(i)?(a=31,o=cu(r,i,3,21)):(a=30,o=cu(r,i,3,22)),t.month===1?o+t.day-1:(o+=a+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ds(t.year+F4)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Dp=1948440,U2=1948439,zi=1300,vl=1600,kX=460322;function $p(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function m7(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+$p(t,r,1,1)))/29.5)+1),a=n-$p(t,r,i,1)+1;return new Gn(e,r,i,a)}function W2(e){return(14+11*e)%30<11}class zb{fromJulianDay(t){return m7(this,Dp,t)}toJulianDay(t){return $p(Dp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&W2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return W2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class MX extends zb{fromJulianDay(t){return m7(this,U2,t)}toJulianDay(t){return $p(U2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const RX="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let S3,jl;function jh(e){return kX+jl[e-zi]}function bd(e,t){let n=e-zi,r=1<<11-(t-1);return(S3[n]&r)===0?29:30}function H2(e,t){let n=jh(e);for(let r=1;r<t;r++)n+=bd(e,r);return n}function G2(e){return jl[e+1-zi]-jl[e-zi]}class IX extends zb{fromJulianDay(t){let n=t-Dp,r=jh(zi),i=jh(vl);if(n<r||n>i)return super.fromJulianDay(t);{let a=zi-1,o=1,s=1;for(;s>0;){a++,s=n-jh(a)+1;let l=G2(a);if(s===l){o=12;break}else if(s<l){let f=bd(a,o);for(o=1;s>f;)s-=f,o++,f=bd(a,o);break}}return new Gn(this,a,o,n-H2(a,o)+1)}}toJulianDay(t){return t.year<zi||t.year>vl?super.toJulianDay(t):Dp+H2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<zi||t.year>vl?super.getDaysInMonth(t):bd(t.year,t.month)}getDaysInYear(t){return t.year<zi||t.year>vl?super.getDaysInYear(t):G2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",S3||(S3=new Uint16Array(Uint8Array.from(atob(RX),t=>t.charCodeAt(0)).buffer)),!jl){jl=new Uint32Array(vl-zi+1);let t=0;for(let n=zi;n<=vl;n++){jl[n-zi]=t;for(let r=1;r<=12;r++)t+=bd(n,r)}}}}const Y2=347997,g7=1080,v7=24*g7,OX=29,LX=12*g7+793,VX=OX*v7+LX;function su(e){return Vl(e*7+1,19)<7}function Kh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Vl(3*(r+1),7)<3&&(r+=1),r}function NX(e){let t=Kh(e-1),n=Kh(e);return Kh(e+1)-n===356?2:n-t===382?1:0}function Td(e){return Kh(e)+NX(e)}function y7(e){return Td(e+1)-Td(e)}function jX(e){let t=y7(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Dh(e,t){if(t>=6&&!su(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=jX(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?su(e)?30:0:30}class KX{fromJulianDay(t){let n=t-Y2,r=n*v7/VX,i=Math.floor((19*r+234)/235)+1,a=Td(i),o=Math.floor(n-a);for(;o<1;)i--,a=Td(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=Dh(i,s),s++;s--,l-=Dh(i,s);let f=o-l;return new Gn(this,i,s,f)}toJulianDay(t){let n=Td(t.year);for(let r=1;r<t.month;r++)n+=Dh(t.year,r);return n+t.day+Y2}getDaysInMonth(t){return Dh(t.year,t.month)}getMonthsInYear(t){return su(t.year)?13:12}getDaysInYear(t){return y7(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(su(n.year)&&!su(t.year)&&n.month>6?t.month--:!su(n.year)&&su(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const T3=1723856,Z2=1824665,P3=5500;function Ep(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function qb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ep(e,n,1,1))/30),i=t+1-Ep(e,n,r,1);return[n,r,i]}function b7(e){return Math.floor(e%4/3)}function x7(e,t){return t%13!==0?30:b7(e)+5}class Ub{fromJulianDay(t){let[n,r,i]=qb(T3,t),a="AM";return n<=0&&(a="AA",n+=P3),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=P3),Ep(T3,n,t.month,t.day)}getDaysInMonth(t){return x7(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+b7(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class zX extends Ub{fromJulianDay(t){let[n,r,i]=qb(T3,t);return n+=P3,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class qX extends Ub{fromJulianDay(t){let[n,r,i]=qb(Z2,t),a="CE";return n<=0&&(a="BCE",n=1-n),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ep(Z2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),x7(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function UX(e){switch(e){case"buddhist":return new PX;case"ethiopic":return new Ub;case"ethioaa":return new zX;case"coptic":return new qX;case"hebrew":return new KX;case"indian":return new FX;case"islamic-civil":return new zb;case"islamic-tbla":return new MX;case"islamic-umalqura":return new IX;case"japanese":return new TX;case"persian":return new BX;case"roc":return new _X;case"gregory":default:return new Ur}}let k4=new Map;class Gi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return GX()&&(this.resolvedHourCycle||(this.resolvedHourCycle=YX(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=D7(t,n),this.options=n}}const WX={true:{ja:"h11"},false:{}};function D7(e,t={}){if(typeof t.hour12=="boolean"&&HX()){t={...t};let i=WX[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(k4.has(n))return k4.get(n);let r=new Intl.DateTimeFormat(e,t);return k4.set(n,r),r}let M4=null;function HX(){return M4==null&&(M4=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),M4}let R4=null;function GX(){return R4==null&&(R4=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),R4}function YX(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=D7(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Za(e){e=_P(e??{},ZX);let{locale:t}=_r();return I.useMemo(()=>new Gi(t,e),[t,e])}function ZX(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let I4=new Map,_3=!1;try{_3=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Cp=!1;try{Cp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class E7{format(t){let n="";if(!_3&&this.options.signDisplay!=null?n=QX(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Cp){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let s=(r=$7[i])===null||r===void 0?void 0:r[a];n+=s[o]||s.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!_3&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Cp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=XX(t,n),this.options=n}}function XX(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Cp){var r;let{unit:o,unitDisplay:s="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$7[o])===null||r===void 0)&&r[s]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(I4.has(i))return I4.get(i);let a=new Intl.NumberFormat(e,t);return I4.set(i,a),a}function QX(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}const JX=new RegExp("^.*\\(.*\\).*$"),eQ=["latn","arab","hanidec","deva","beng","fullwide"];class C7{parse(t){return O4(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return O4(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return O4(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const X2=new Map;function O4(e,t,n){let r=Q2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of eQ)if(i!==r.options.numberingSystem){let a=Q2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function Q2(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=X2.get(n);return r||(r=new tQ(e,t),X2.set(n,r)),r}class tQ{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=yl(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let s=n.indexOf(".");s===-1&&(s=n.length),n=n.replace(".",""),s-2===0?n=`0.${n}`:s-2===-1?n=`0.0${n}`:s-2===-2?n="0.00":n=`${n.slice(0,s-2)}.${n.slice(s-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new C7(this.locale,o).parse(new E7(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&JX.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=yl(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=yl(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=yl(t," ",this.symbols.group),t=yl(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=yl(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=rQ(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const J2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),nQ=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function rQ(e,t,n,r){var i,a,o,s;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=nQ.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=f.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(a=h.find(ae=>ae.type==="plusSign"))===null||a===void 0?void 0:a.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let A=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||o===void 0?void 0:o.value,w=(s=f.find(ae=>ae.type==="group"))===null||s===void 0?void 0:s.value,C=f.filter(ae=>!J2.has(ae.type)).map(ae=>ew(ae.value)),E=m.flatMap(ae=>ae.filter(O=>!J2.has(O.type)).map(O=>ew(O.value))),T=[...new Set([...C,...E])].sort((ae,O)=>O.length-ae.length),P=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),q=new Map(F.map((ae,O)=>[ae,O])),te=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:A,group:w,literals:P,numeral:te,index:ae=>String(q.get(ae))}}function yl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ew(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function iQ(e={}){let{locale:t}=_r();return I.useMemo(()=>new E7(t,e),[t,e])}let L4=new Map;function w7(e){let{locale:t}=_r(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(L4.has(n))return L4.get(n);let r=new Intl.Collator(t,e);return L4.set(n,r),r}function A7(e){let t=w7({usage:"search",...e}),n=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),r=I.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=I.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let s=0,l=o.length;for(;s+l<=a.length;s++){let f=a.slice(s,s+l);if(t.compare(o,f)===0)return!0}return!1},[t]);return I.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function aQ(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:s,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,type:x="button"}=e,A;n==="button"?A={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:A={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:w,isPressed:C}=hf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:E}=Mb(e,t);h&&(E.tabIndex=r?-1:E.tabIndex);let T=Qt(E,w,Zo(e,{labelable:!0}));return{isPressed:C,buttonProps:Qt(A,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}const tw=de.default.createContext(null),B3="react-aria-focus-scope-restore";let gn=null;function oQ(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=I.useRef(null),o=I.useRef(null),s=I.useRef([]),{parentNode:l}=I.useContext(tw)||{},f=I.useMemo(()=>new k3({scopeRef:s}),[s]);hn(()=>{let g=l||Qn.root;if(Qn.getTreeNode(g.scopeRef)&&gn&&!wp(gn,g.scopeRef)){let b=Qn.getTreeNode(gn);b&&(g=b)}g.addChild(f),Qn.addNode(f)},[f,l]),hn(()=>{let g=Qn.getTreeNode(s);g&&(g.contain=!!n)},[n]),hn(()=>{var g;let b=(g=a.current)===null||g===void 0?void 0:g.nextSibling,$=[],x=A=>A.stopPropagation();for(;b&&b!==o.current;)$.push(b),b.addEventListener(B3,x),b=b.nextSibling;return s.current=$,()=>{for(let A of $)A.removeEventListener(B3,x)}},[t]),fQ(s,r,n),lQ(s,n),hQ(s,r,n),dQ(s,i),I.useEffect(()=>{const g=ir(Xt(s.current?s.current[0]:void 0));let b=null;if(ea(g,s.current)){for(let $ of Qn.traverse())$.scopeRef&&ea(g,$.scopeRef.current)&&(b=$);b===Qn.getTreeNode(s)&&(gn=b.scopeRef)}},[s]),hn(()=>()=>{var g,b,$;let x=($=(b=Qn.getTreeNode(s))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(s===gn||wp(s,gn))&&(!x||Qn.getTreeNode(x))&&(gn=x),Qn.removeTreeNode(s)},[s]);let h=I.useMemo(()=>sQ(s),[]),m=I.useMemo(()=>({focusManager:h,parentNode:f}),[f,h]);return de.default.createElement(tw.Provider,{value:m},de.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,de.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function sQ(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[0].previousElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.nextNode();return!g&&a&&(m.currentNode=f,g=m.nextNode()),g&&ii(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t;var s;let l=r||ir(Xt((s=n[0])!==null&&s!==void 0?s:void 0)),f=n[n.length-1].nextElementSibling,h=du(n),m=Vr(h,{tabbable:i,accept:o},n);m.currentNode=ea(l,n)?l:f;let g=m.previousNode();return!g&&a&&(m.currentNode=f,g=m.previousNode()),g&&ii(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let s=o.nextNode();return s&&ii(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=du(n),o=Vr(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let s=o.previousNode();return s&&ii(s,!0),s}}}function du(e){return e[0].parentElement}function xd(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uQ(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Xt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(a=>!a.form);else{var n,r;let a=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...a??[]]}return t?!t.some(a=>a.checked):!1}function lQ(e,t){let n=I.useRef(void 0),r=I.useRef(void 0);hn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=Xt(i?i[0]:void 0);let o=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!xd(e)||f.isComposing)return;let h=ir(a),m=e.current;if(!m||!ea(h,m))return;let g=du(m),b=Vr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=f.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=f.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=f.shiftKey?b.previousNode():b.nextNode()),f.preventDefault(),$&&ii($,!0)},s=f=>{(!gn||wp(gn,e))&&ea(tn(f),e.current)?(gn=e,n.current=tn(f)):xd(e)&&!$s(tn(f),e)?n.current?n.current.focus():gn&&gn.current&&F3(gn.current):xd(e)&&(n.current=tn(f))},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Nd(),m=(h==="virtual"||h===null)&&Sb()&&Ab(),g=ir(a);if(!m&&g&&xd(e)&&!$s(g,e)){gn=e;let $=tn(f);if($&&$.isConnected){var b;n.current=$,(b=n.current)===null||b===void 0||b.focus()}else gn.current&&F3(gn.current)}})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",s,!1),i==null||i.forEach(f=>f.addEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",s,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",s,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),hn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function S7(e){return $s(e)}function ea(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function $s(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Qn.traverse(Qn.getTreeNode(t)))if(n&&ea(e,n.current))return!0;return!1}function cQ(e){return $s(e,gn)}function wp(e,t){var n;let r=(n=Qn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ii(e,t=!1){if(e!=null&&!t)try{Tu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function T7(e,t=!0){let n=e[0].previousElementSibling,r=du(e),i=Vr(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=du(e),i=Vr(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function F3(e,t=!0){ii(T7(e,t))}function dQ(e,t){const n=de.default.useRef(t);I.useEffect(()=>{if(n.current){gn=e;const r=Xt(e.current?e.current[0]:void 0);!ea(ir(r),gn.current)&&e.current&&F3(e.current)}n.current=!1},[e])}function fQ(e,t,n){hn(()=>{if(t||n)return;let r=e.current;const i=Xt(r?r[0]:void 0);let a=o=>{let s=tn(o);ea(s,e.current)?gn=e:S7(s)||(gn=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function nw(e){let t=Qn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hQ(e,t,n){const r=I.useRef(typeof document<"u"?ir(Xt(e.current?e.current[0]:void 0)):null);hn(()=>{let i=e.current;const a=Xt(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!gn||wp(gn,e))&&ea(ir(a),e.current)&&(gn=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!xd(e)||o.isComposing)return;let s=i.activeElement;if(!$s(s,e)||!nw(e))return;let l=Qn.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,h=Vr(i.body,{tabbable:!0});h.currentNode=s;let m=o.shiftKey?h.previousNode():h.nextNode();if((!f||!f.isConnected||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!m||!$s(m,e))&&f){h.currentNode=f;do m=o.shiftKey?h.previousNode():h.nextNode();while($s(m,e));o.preventDefault(),o.stopPropagation(),m?ii(m,!0):S7(f)?ii(f,!0):s.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),hn(()=>{const i=Xt(e.current?e.current[0]:void 0);if(!t)return;let a=Qn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let s=Qn.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,f=ir(i);if(t&&l&&(f&&$s(f,e)||f===i.body&&nw(e))){let h=Qn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){rw(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Qn.getTreeNode(m.scopeRef)){let g=T7(m.scopeRef.current,!0);rw(g);return}m=m.parent}}})}}}},[e,t])}function rw(e){e.dispatchEvent(new CustomEvent(B3,{bubbles:!0,cancelable:!0}))&&ii(e)}function Vr(e,t,n){let r=t!=null&&t.tabbable?bZ:BP,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=Xt(i),o=qY(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)||t!=null&&t.tabbable&&s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(!uQ(s)||o.currentNode.tagName==="INPUT"&&o.currentNode.type==="radio"&&o.currentNode.name===s.name)?NodeFilter.FILTER_REJECT:r(s)&&(!n||ea(s,n))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Sm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});r.contains(l)&&(f.currentNode=l);let h=f.nextNode();return!h&&o&&(f.currentNode=r,h=f.nextNode()),h&&ii(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:s=t.accept}=n,l=i||ir(Xt(r)),f=Vr(r,{tabbable:a,accept:s});if(r.contains(l))f.currentNode=l;else{let m=V4(f);return m&&ii(m,!0),m??null}let h=f.previousNode();if(!h&&o){f.currentNode=r;let m=V4(f);if(!m)return null;h=m}return h&&ii(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=Vr(r,{tabbable:i,accept:a}).nextNode();return s&&ii(s,!0),s},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,o=Vr(r,{tabbable:i,accept:a}),s=V4(o);return s&&ii(s,!0),s??null}}}function V4(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Wb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new k3({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ea(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Wb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new k3({scopeRef:null}),this.fastMap.set(null,this.root)}}class k3{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Qn=new Wb;function P7(e){let t=mQ(Xt(e));t!==e&&(t&&pQ(t,e),e&&Hb(e,t))}function pQ(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Hb(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function mQ(e){let t=ir(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var _7={};_7={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var B7={};B7={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var F7={};F7={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var k7={};k7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var M7={};M7={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var R7={};R7={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var I7={};I7={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var O7={};O7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var L7={};L7={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var V7={};V7={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var N7={};N7={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var j7={};j7={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var K7={};K7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var z7={};z7={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var q7={};q7={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var U7={};U7={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var W7={};W7={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var H7={};H7={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var G7={};G7={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var Y7={};Y7={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Z7={};Z7={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var X7={};X7={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var Q7={};Q7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var J7={};J7={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var e_={};e_={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var t_={};t_={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var n_={};n_={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var r_={};r_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var i_={};i_={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var a_={};a_={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var o_={};o_={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var s_={};s_={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var u_={};u_={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var l_={};l_={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var yf={};yf={"ar-AE":_7,"bg-BG":B7,"cs-CZ":F7,"da-DK":k7,"de-DE":M7,"el-GR":R7,"en-US":I7,"es-ES":O7,"et-EE":L7,"fi-FI":V7,"fr-FR":N7,"he-IL":j7,"hr-HR":K7,"hu-HU":z7,"it-IT":q7,"ja-JP":U7,"ko-KR":W7,"lt-LT":H7,"lv-LV":G7,"nb-NO":Y7,"nl-NL":Z7,"pl-PL":X7,"pt-BR":Q7,"pt-PT":J7,"ro-RO":e_,"ru-RU":t_,"sk-SK":n_,"sl-SI":r_,"sr-SP":i_,"sv-SE":a_,"tr-TR":o_,"uk-UA":s_,"zh-CN":u_,"zh-TW":l_};function c_(e){return e&&e.__esModule?e.default:e}const Gb=new WeakMap;function Ud(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function gQ(e){let t=Ta(c_(yf),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let a=Za({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ud(n)||Ud(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return I.useMemo(()=>{if(!o&&n&&r)if(er(n,r)){let s=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:s})}else{let s=R3(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function M3(e,t,n,r){let i=Ta(c_(yf),"@react-aria/calendar"),a=Ud(e)||Ud(t),o=Za({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),s=Za({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return I.useMemo(()=>{if(er(e,gf(e))){let l=e,f=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(f=t.calendar.getFormattableMonth(t)),er(t,E3(e)))return o.format(l.toDate(n));if(er(t,E3(t)))return r?R3(o,i,l,f,n):o.formatRange(l.toDate(n),f.toDate(n))}return r?R3(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function R3(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let f=0;f<a.length;f++){let h=a[f];if(h.source==="shared"&&h.type==="literal")o=f;else if(h.source==="endRange")break}let s="",l="";for(let f=0;f<a.length;f++)f<o?s+=a[f].value:f>o&&(l+=a[f].value);return t.format("dateRange",{startDate:s,endDate:l})}const d_=7e3;let ji=null;function Kl(e,t="assertive",n=d_){ji?ji.announce(e,t,n):(ji=new yQ,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?ji.announce(e,t,n):setTimeout(()=>{ji!=null&&ji.isAttached()&&(ji==null||ji.announce(e,t,n))},100))}function vQ(e){ji&&ji.clear(e)}class yQ{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=d_){var i,a;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(a=this.politeLog)===null||a===void 0||a.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function bQ(e){return e&&e.__esModule?e.default:e}function f_(e,t){let n=Ta(bQ(yf),"@react-aria/calendar"),r=Zo(e),i=M3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=M3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);h3(()=>{t.isFocused||Kl(a)},[a]);let o=gQ(t);h3(()=>{o&&Kl(o,"polite",4e3)},[o]);let s=Zl([!!e.errorMessage,e.isInvalid,e.validationState]);Gb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,f]=I.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(f(!1),t.setFocused(!0));let[m,g]=I.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=Xl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,$,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:s},title:i}}function xQ(e,t){return f_(e,t)}function DQ(e,t,n){let r=f_(e,t),i=I.useRef(!1),a=I.useRef(typeof window<"u"?window:null);return ba(a,"pointerdown",s=>{i.current=s.width===0&&s.height===0}),ba(a,"pointerup",s=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=s.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=s=>{n.current&&(!s.relatedTarget||!n.current.contains(s.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ba(n,"touchmove",s=>{t.isDragging&&s.preventDefault()},{passive:!1,capture:!0}),r}function $Q(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:a}=_r(),o=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),a==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},s=M3(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=Gb.get(t),h=Xl({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":f}),m=Za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=_r(),b=I.useMemo(()=>{let x=jd(wm(t.timeZone),g,i);return[...new Array(7).keys()].map(A=>{let C=x.add({days:A}).toDate(t.timeZone);return m.format(C)})},[g,t.timeZone,m,i]),$=JP(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:$}}function EQ(e){return e&&e.__esModule?e.default:e}function CQ(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=Gb.get(t),s=Ta(EQ(yf),"@react-aria/calendar"),l=Za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ud(r),timeZone:t.timeZone}),f=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&er(t.value,r));b&&(f=!0),r=_P(r,$3);let $=I.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=YP(r,t.timeZone),A=I.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(er(r,t.value.start)||er(r,t.value.end))&&(O=o+", "),O+=l.format($),x?O=s.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=s.format("dateSelected",{date:O})),t.minValue&&er(r,t.minValue)?O+=", "+s.format("minimumDate"):t.maxValue&&er(r,t.maxValue)&&(O+=", "+s.format("maximumDate")),O},[l,$,s,f,x,r,t,o]),w="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?w=s.format("finishRangeSelectionPrompt"):w=s.format("startRangeSelectionPrompt"));let C=fc(w),E=I.useRef(!1),T=I.useRef(!1),P=I.useRef(void 0),{pressProps:F,isPressed:q}=hf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!b){if(er(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(er(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Ee=()=>{t.setDragging(!0),P.current=void 0,t.selectDate(r),t.setFocusedDate(r),E.current=!0};O.pointerType==="touch"?P.current=setTimeout(Ee,200):Ee()}},onPressEnd(){T.current=!1,E.current=!1,clearTimeout(P.current),P.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!E.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Ee=r.add({days:1});t.isInvalid(Ee)&&(Ee=r.subtract({days:1})),t.isInvalid(Ee)||t.setFocusedDate(Ee)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),te;i||(te=er(r,t.focusedDate)?0:-1),I.useEffect(()=>{h&&n.current&&(wi(n.current),Nd()!=="pointer"&&document.activeElement===n.current&&gp(n.current,{containingElement:Dm(n.current)}))},[h,n]);let se=Za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=I.useMemo(()=>se.formatToParts($).find(O=>O.type==="day").value,[se,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":f||void 0,"aria-invalid":b||void 0},buttonProps:Qt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:te,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?a:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:q,isFocused:h,isSelected:f,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Tm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},h_={...Tm,customError:!0,valid:!1},uu={isInvalid:!1,validationDetails:Tm,validationErrors:[]},wQ=I.createContext({}),tc="__formValidationState"+Date.now();function bf(e){if(e[tc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[tc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return AQ(e)}function AQ(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:h_}:null,f=I.useMemo(()=>{if(!o||i==null)return null;let ae=SQ(o,i);return iw(ae)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=I.useContext(wQ),m=I.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>I3(h[ae])):I3(h[r]):[],[h,r]),[g,b]=I.useState(h),[$,x]=I.useState(!1);h!==g&&(b(h),x(!1));let A=I.useMemo(()=>iw($?[]:m),[$,m]),w=I.useRef(uu),[C,E]=I.useState(uu),T=I.useRef(uu),P=()=>{if(!F)return;q(!1);let ae=f||a||w.current;N4(ae,T.current)||(T.current=ae,E(ae))},[F,q]=I.useState(!1);return I.useEffect(P),{realtimeValidation:l||A||f||a||uu,displayValidation:s==="native"?l||A||C:l||A||f||a||C,updateValidation(ae){s==="aria"&&!N4(C,ae)?E(ae):w.current=ae},resetValidation(){let ae=uu;N4(ae,T.current)||(T.current=ae,E(ae)),s==="native"&&q(!1),x(!0)},commitValidation(){s==="native"&&q(!0),x(!0)}}}function I3(e){return e?Array.isArray(e)?e:[e]:[]}function SQ(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return I3(n)}return[]}function iw(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:h_}:null}function N4(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function Ap(...e){let t=new Set,n=!1,r={...Tm};for(let o of e){var i,a;for(let s of o.validationErrors)t.add(s);n||(n=o.isInvalid);for(let s in r)(i=r)[a=s]||(i[a]=o.validationDetails[s])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function p_(e,t,n){let{validationBehavior:r,focus:i}=e;hn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let f=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(f),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(PQ(n.current))}});let a=I.useRef(!1),o=cn(()=>{a.current||t.resetValidation()}),s=cn(f=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!f.defaultPrevented&&n&&m&&_Q(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),jP("keyboard")}f.preventDefault()}),l=cn(()=>{t.commitValidation()});I.useEffect(()=>{let f=n==null?void 0:n.current;if(!f)return;let h=f.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{a.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),a.current=!1}),f.addEventListener("invalid",s),f.addEventListener("change",l),h==null||h.addEventListener("reset",o),()=>{f.removeEventListener("invalid",s),f.removeEventListener("change",l),h==null||h.removeEventListener("reset",o),h&&(h.reset=m)}},[n,s,l,o,r])}function TQ(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function PQ(e){return{isInvalid:!e.validity.valid,validationDetails:TQ(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function _Q(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Pm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=zr(t);let o=zr(),s={};n?(r=r?`${o} ${r}`:o,s={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Xl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function _m(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Pm(e),s=Zl([!!t,!!n,r,i]),l=Zl([!!t,!!n,r,i]);return o=Qt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}const BQ=0,FQ=100,kQ=1;function MQ(e){const{isDisabled:t=!1,minValue:n=BQ,maxValue:r=FQ,numberFormatter:i,step:a=kQ,orientation:o="horizontal"}=e;let s=I.useMemo(()=>{let le=(r-n)/10;return le=nd(le,0,le+a,a),Math.max(le,a)},[a,r,n]),l=I.useCallback(le=>le==null?void 0:le.map((Se,_e)=>{let Be=_e===0?n:le[_e-1],Ge=_e===le.length-1?r:le[_e+1];return nd(Se,Be,Ge,a)}),[n,r,a]),f=I.useMemo(()=>l(ow(e.value)),[e.value,l]),h=I.useMemo(()=>{var le;return l((le=ow(e.defaultValue))!==null&&le!==void 0?le:[n])},[e.defaultValue,n,l]),m=sw(e.value,e.defaultValue,e.onChange),g=sw(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=Ai(f,h,m);let[x]=I.useState(b);const[A,w]=I.useState(new Array(b.length).fill(!1)),C=I.useRef(new Array(b.length).fill(!0)),[E,T]=I.useState(void 0),P=I.useRef(b),F=I.useRef(A);let q=le=>{P.current=le,$(le)},te=le=>{F.current=le,w(le)};function se(le){return(le-n)/(r-n)}function ae(le){return le===0?n:b[le-1]}function O(le){return le===b.length-1?r:b[le+1]}function Ee(le){return C.current[le]}function be(le,Se){C.current[le]=Se}function z(le,Se){if(t||!Ee(le))return;const _e=ae(le),Be=O(le);Se=nd(Se,_e,Be,a);let Ge=aw(P.current,le,Se);q(Ge)}function G(le,Se){if(t||!Ee(le))return;Se&&(P.current=b);const _e=F.current[le];F.current=aw(F.current,le,Se),te(F.current),g&&_e&&!F.current.some(Boolean)&&g(P.current)}function V(le){return i.format(le)}function R(le,Se){z(le,fe(Se))}function K(le){return Math.round((le-n)/a)*a+n}function fe(le){const Se=le*(r-n)+n;return Jl(K(Se),n,r)}function M(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]+_e,n,r,a))}function oe(le,Se=1){let _e=Math.max(Se,a);z(le,nd(b[le]-_e,n,r,a))}return{values:b,defaultValues:e.defaultValue!==void 0?h:x,getThumbValue:le=>b[le],setThumbValue:z,setThumbPercent:R,isThumbDragging:le=>A[le],setThumbDragging:G,focusedThumb:E,setFocusedThumb:T,getThumbPercent:le=>se(b[le]),getValuePercent:se,getThumbValueLabel:le=>V(b[le]),getFormattedValue:V,getThumbMinValue:ae,getThumbMaxValue:O,getPercentValue:fe,isThumbEditable:Ee,setThumbEditable:be,incrementThumb:M,decrementThumb:oe,step:a,pageSize:s,orientation:o,isDisabled:t}}function aw(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function ow(e){if(e!=null)return Array.isArray(e)?e:[e]}function sw(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const uw={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function RQ(e={}){let{style:t,isFocusable:n}=e,[r,i]=I.useState(!1),{focusWithinProps:a}=hc({isDisabled:!n,onFocusWithinChange:s=>i(s)}),o=I.useMemo(()=>r?t:t?{...uw,...t}:uw,[r]);return{visuallyHiddenProps:{...a,style:o}}}function IQ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=RQ(e);return de.default.createElement(n,Qt(a,o),t)}const Yb=new WeakMap;function O3(e,t){let n=Yb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function OQ(e,t,n){let{labelProps:r,fieldProps:i}=Pm(e),a=e.orientation==="vertical";var o;Yb.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:s}=_r(),{addGlobalListener:l,removeGlobalListener:f}=Ts();const h=I.useRef(null),m=s==="rtl",g=I.useRef(null),{moveProps:b}=zP({onMoveStart(){g.current=null},onMove({deltaX:w,deltaY:C}){if(!n.current)return;let{height:E,width:T}=n.current.getBoundingClientRect(),P=a?E:T;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*P);let F=a?C:w;if((a||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const q=Jl(g.current/P,0,1);t.setThumbPercent(h.current,q)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=I.useRef(void 0),x=(w,C,E,T)=>{if(n.current&&!e.isDisabled&&t.values.every((P,F)=>!t.isThumbDragging(F))){let{height:P,width:F,top:q,left:te}=n.current.getBoundingClientRect(),se=a?P:F,be=((a?T:E)-(a?q:te))/se;(s==="rtl"||a)&&(be=1-be);let z=t.getPercentValue(be),G,V=t.values.findIndex(R=>z-R<0);if(V===0)G=V;else if(V===-1)G=t.values.length-1;else{let R=t.values[V-1],K=t.values[V];Math.abs(R-z)<Math.abs(K-z)?G=V-1:G=V}G>=0&&t.isThumbEditable(G)?(w.preventDefault(),h.current=G,t.setFocusedThumb(G),$.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(G,z),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=w=>{var C,E;((E=w.pointerId)!==null&&E!==void 0?E:(C=w.changedTouches)===null||C===void 0?void 0:C[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),f(window,"mouseup",A,!1),f(window,"touchend",A,!1),f(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var w;(w=document.getElementById(O3(t,0)))===null||w===void 0||w.focus(),jP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(w){w.button!==0||w.altKey||w.ctrlKey||w.metaKey||x(w,void 0,w.clientX,w.clientY)},onPointerDown(w){w.pointerType==="mouse"&&(w.button!==0||w.altKey||w.ctrlKey||w.metaKey)||x(w,w.pointerId,w.clientX,w.clientY)},onTouchStart(w){x(w,w.changedTouches[0].identifier,w.changedTouches[0].clientX,w.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((w,C)=>O3(t,C)).join(" "),"aria-live":"off"}}}function LQ(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:s,orientation:l=t.orientation,name:f,form:h}=e,m=e.isDisabled||t.isDisabled,g=l==="vertical",{direction:b}=_r(),{addGlobalListener:$,removeGlobalListener:x}=Ts(),A=Yb.get(t);var w;const{labelProps:C,fieldProps:E}=Pm({...e,id:O3(t,n),"aria-labelledby":`${A.id} ${(w=e["aria-labelledby"])!==null&&w!==void 0?w:""}`.trim()}),T=t.values[n],P=I.useCallback(()=>{s.current&&wi(s.current)},[s]),F=t.focusedThumb===n;I.useEffect(()=>{F&&P()},[F,P]);let q=b==="rtl",te=I.useRef(null),{keyboardProps:se}=KP({onKeyDown(R){let{getThumbMaxValue:K,getThumbMinValue:fe,decrementThumb:M,incrementThumb:oe,setThumbValue:le,setThumbDragging:Se,pageSize:_e}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(R.key)){R.continuePropagation();return}switch(R.preventDefault(),Se(n,!0),R.key){case"PageUp":oe(n,_e);break;case"PageDown":M(n,_e);break;case"Home":le(n,fe(n));break;case"End":le(n,K(n));break}Se(n,!1)}}),{moveProps:ae}=zP({onMoveStart(){te.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:R,deltaY:K,pointerType:fe,shiftKey:M}){const{getThumbPercent:oe,setThumbPercent:le,decrementThumb:Se,incrementThumb:_e,step:Be,pageSize:Ge}=t;if(!o.current)return;let{width:Xe,height:Ne}=o.current.getBoundingClientRect(),qe=g?Ne:Xe;if(te.current==null&&(te.current=oe(n)*qe),fe==="keyboard")R>0&&q||R<0&&!q||K>0?Se(n,M?Ge:Be):_e(n,M?Ge:Be);else{let ke=g?K:R;(g||q)&&(ke=-ke),te.current+=ke,le(n,Jl(te.current/qe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:O}=Mb(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let Ee=I.useRef(void 0),be=R=>{P(),Ee.current=R,t.setThumbDragging(n,!0),$(window,"mouseup",z,!1),$(window,"touchend",z,!1),$(window,"pointerup",z,!1)},z=R=>{var K,fe;((fe=R.pointerId)!==null&&fe!==void 0?fe:(K=R.changedTouches)===null||K===void 0?void 0:K[0].identifier)===Ee.current&&(P(),t.setThumbDragging(n,!1),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1))},G=t.getThumbPercent(n);(g||b==="rtl")&&(G=1-G);let V=m?{}:Qt(se,ae,{onMouseDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be()},onPointerDown:R=>{R.button!==0||R.altKey||R.ctrlKey||R.metaKey||be(R.pointerId)},onTouchStart:R=>{be(R.changedTouches[0].identifier)}});return Tb(s,t.defaultValues[n],R=>{t.setThumbValue(n,R)}),{inputProps:Qt(O,E,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:f,form:h,disabled:m,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[A["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[A["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:R=>{t.setThumbValue(n,parseFloat(R.target.value))}}),thumbProps:{...V,style:{position:"absolute",[g?"top":"left"]:`${G*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:C,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function VQ(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:s="aria"}=e,[l,f]=Ai(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Mb(e,t),m=bf({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:w,errorMessageProps:C}=_m({...e,isInvalid:g,errorMessage:e.errorMessage||b}),E=Zo(e,{labelable:!0});const T={type:o,pattern:e.pattern};let[P]=I.useState(l);var F;return Tb(t,(F=e.defaultValue)!==null&&F!==void 0?F:P,f),p_(e,m,t),I.useEffect(()=>{if(t.current instanceof ao(t.current).HTMLTextAreaElement){let q=t.current;Object.defineProperty(q,"defaultValue",{get:()=>q.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:Qt(E,n==="input"?T:void 0,{disabled:r,readOnly:a,required:i&&s==="native","aria-required":i&&s==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:q=>f(q.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(de.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:w,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:$}}var m_={};m_={Empty:"فارغ"};var g_={};g_={Empty:"Изпразни"};var v_={};v_={Empty:"Prázdné"};var y_={};y_={Empty:"Tom"};var b_={};b_={Empty:"Leer"};var x_={};x_={Empty:"Άδειο"};var D_={};D_={Empty:"Empty"};var $_={};$_={Empty:"Vacío"};var E_={};E_={Empty:"Tühjenda"};var C_={};C_={Empty:"Tyhjä"};var w_={};w_={Empty:"Vide"};var A_={};A_={Empty:"ריק"};var S_={};S_={Empty:"Prazno"};var T_={};T_={Empty:"Üres"};var P_={};P_={Empty:"Vuoto"};var __={};__={Empty:"空"};var B_={};B_={Empty:"비어 있음"};var F_={};F_={Empty:"Tuščias"};var k_={};k_={Empty:"Tukšs"};var M_={};M_={Empty:"Tom"};var R_={};R_={Empty:"Leeg"};var I_={};I_={Empty:"Pusty"};var O_={};O_={Empty:"Vazio"};var L_={};L_={Empty:"Vazio"};var V_={};V_={Empty:"Gol"};var N_={};N_={Empty:"Не заполнено"};var j_={};j_={Empty:"Prázdne"};var K_={};K_={Empty:"Prazen"};var z_={};z_={Empty:"Prazno"};var q_={};q_={Empty:"Tomt"};var U_={};U_={Empty:"Boş"};var W_={};W_={Empty:"Пусто"};var H_={};H_={Empty:"空"};var G_={};G_={Empty:"空白"};var Y_={};Y_={"ar-AE":m_,"bg-BG":g_,"cs-CZ":v_,"da-DK":y_,"de-DE":b_,"el-GR":x_,"en-US":D_,"es-ES":$_,"et-EE":E_,"fi-FI":C_,"fr-FR":w_,"he-IL":A_,"hr-HR":S_,"hu-HU":T_,"it-IT":P_,"ja-JP":__,"ko-KR":B_,"lt-LT":F_,"lv-LV":k_,"nb-NO":M_,"nl-NL":R_,"pl-PL":I_,"pt-BR":O_,"pt-PT":L_,"ro-RO":V_,"ru-RU":N_,"sk-SK":j_,"sl-SI":K_,"sr-SP":z_,"sv-SE":q_,"tr-TR":U_,"uk-UA":W_,"zh-CN":H_,"zh-TW":G_};function NQ(e){return e&&e.__esModule?e.default:e}function jQ(e){const t=I.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:o,isReadOnly:s,isRequired:l,onIncrement:f,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const x=Ta(NQ(Y_),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);I.useEffect(()=>()=>A(),[]);let w=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||s||O.nativeEvent.isComposing))switch(O.key){case"PageUp":if(h){O.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(g){O.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(O.preventDefault(),m==null||m());break;case"Home":b&&(O.preventDefault(),b==null||b());break;case"End":$&&(O.preventDefault(),$==null||$());break}},C=I.useRef(!1),E=()=>{C.current=!0},T=()=>{C.current=!1},P=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");I.useEffect(()=>{C.current&&(vQ("assertive"),Kl(P,"assertive"))},[P]);const F=cn(O=>{A(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},O)}),q=cn(O=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&q(60)},O)});let te=O=>{O.preventDefault()},{addGlobalListener:se,removeAllGlobalListeners:ae}=Ts();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":o||void 0,"aria-readonly":s||void 0,"aria-required":l||void 0,onKeyDown:w,onFocus:E,onBlur:T},incrementButtonProps:{onPressStart:()=>{F(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T},decrementButtonProps:{onPressStart:()=>{q(400),se(window,"contextmenu",te)},onPressEnd:()=>{A(),ae()},onFocus:E,onBlur:T}}}var Z_={};Z_={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var X_={};X_={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Q_={};Q_={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var J_={};J_={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var eB={};eB={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var tB={};tB={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var nB={};nB={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var rB={};rB={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var iB={};iB={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var aB={};aB={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var oB={};oB={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var sB={};sB={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var uB={};uB={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var lB={};lB={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var cB={};cB={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var dB={};dB={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var fB={};fB={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var hB={};hB={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var pB={};pB={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var mB={};mB={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var gB={};gB={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var vB={};vB={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var yB={};yB={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var bB={};bB={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var xB={};xB={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var DB={};DB={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var $B={};$B={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var EB={};EB={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var CB={};CB={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var wB={};wB={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var AB={};AB={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var SB={};SB={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var TB={};TB={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var PB={};PB={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var _B={};_B={"ar-AE":Z_,"bg-BG":X_,"cs-CZ":Q_,"da-DK":J_,"de-DE":eB,"el-GR":tB,"en-US":nB,"es-ES":rB,"et-EE":iB,"fi-FI":aB,"fr-FR":oB,"he-IL":sB,"hr-HR":uB,"hu-HU":lB,"it-IT":cB,"ja-JP":dB,"ko-KR":fB,"lt-LT":hB,"lv-LV":pB,"nb-NO":mB,"nl-NL":gB,"pl-PL":vB,"pt-BR":yB,"pt-PT":bB,"ro-RO":xB,"ru-RU":DB,"sk-SK":$B,"sl-SI":EB,"sr-SP":CB,"sv-SE":wB,"tr-TR":AB,"uk-UA":SB,"zh-CN":TB,"zh-TW":PB};const Xa={top:"top",bottom:"top",left:"left",right:"left"},Sp={top:"bottom",bottom:"top",left:"right",right:"left"},KQ={top:"left",left:"top"},L3={top:"height",left:"width"},BB={width:"totalWidth",height:"totalHeight"},$h={};let hr=typeof document<"u"?window.visualViewport:null;function lw(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let f=((l=hr==null?void 0:hr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=hr==null?void 0:hr.width)!==null&&h!==void 0?h:r;var m;n=(m=hr==null?void 0:hr.height)!==null&&m!==void 0?m:i,s.top=$.scrollTop||e.scrollTop,s.left=$.scrollLeft||e.scrollLeft,hr&&(a=hr.offsetTop,o=hr.offsetLeft)}else({width:t,height:n,top:a,left:o}=zl(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;if(wb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){s.top=0,s.left=0;var g;a=(g=hr==null?void 0:hr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=hr==null?void 0:hr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function zQ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function cw(e,t,n,r,i,a,o){var s;let l=(s=i.scroll[e])!==null&&s!==void 0?s:0,f=r[L3[e]],h=r.scroll[Xa[e]]+a,m=f+r.scroll[Xa[e]]-a,g=t-l+o[e]-r[Xa[e]],b=t-l+n+o[e]-r[Xa[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function qQ(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function dw(e){if($h[e])return $h[e];let[t,n]=e.split(" "),r=Xa[t]||"right",i=KQ[r];Xa[n]||(n="center");let a=L3[r],o=L3[i];return $h[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},$h[e]}function j4(e,t,n,r,i,a,o,s,l,f){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:x}=r,A={};var w;A[b]=(w=e[b])!==null&&w!==void 0?w:0;var C,E,T,P;m==="center"?A[b]+=(((C=e[x])!==null&&C!==void 0?C:0)-((E=n[x])!==null&&E!==void 0?E:0))/2:m!==b&&(A[b]+=((T=e[x])!==null&&T!==void 0?T:0)-((P=n[x])!==null&&P!==void 0?P:0)),A[b]+=a;const F=e[b]-n[x]+l+f,q=e[b]+e[x]-l-f;if(A[b]=Jl(A[b],F,q),h===g){const te=s?o[$]:t[BB[$]];A[Sp[g]]=Math.floor(te-e[g]+i)}else A[g]=Math.floor(e[g]+e[$]+i);return A}function UQ(e,t,n,r,i,a,o,s){const l=r?n.height:t[BB.height];var f;let h=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-o);var m,g,b,$,x,A;let w=s!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+a)):Math.max(0,h+o-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+a));return Math.min(t.height-a*2,w)}function fw(e,t,n,r,i,a){let{placement:o,axis:s,size:l}=a;var f,h;if(o===s)return Math.max(0,n[s]-e[s]-((f=e.scroll[s])!==null&&f!==void 0?f:0)+t[s]-((h=r[s])!==null&&h!==void 0?h:0)-r[Sp[s]]-i);var m;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-n[s]-n[l]-((m=r[s])!==null&&m!==void 0?m:0)-r[Sp[s]]-i)}function WQ(e,t,n,r,i,a,o,s,l,f,h,m,g,b,$,x){let A=dw(e),{size:w,crossAxis:C,crossSize:E,placement:T,crossPlacement:P}=A,F=j4(t,s,n,A,h,m,f,g,$,x),q=h,te=fw(s,f,t,i,a+h,A);if(o&&r[w]>te){let Xe=dw(`${Sp[T]} ${P}`),Ne=j4(t,s,n,Xe,h,m,f,g,$,x);fw(s,f,t,i,a+h,Xe)>te&&(A=Xe,F=Ne,q=h)}let se="bottom";A.axis==="top"?A.placement==="top"?se="top":A.placement==="bottom"&&(se="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?se="bottom":A.crossPlacement==="bottom"&&(se="top"));let ae=cw(C,F[C],n[E],s,l,a,f);F[C]+=ae;let O=UQ(F,s,f,g,i,a,n.height,se);b&&b<O&&(O=b),n.height=Math.min(n.height,O),F=j4(t,s,n,A,q,m,f,g,$,x),ae=cw(C,F[C],n[E],s,l,a,f),F[C]+=ae;let Ee={},be=t[C]-F[C]-i[Xa[C]],z=be+.5*t[E];const G=$/2+x;var V,R,K,fe;const M=Xa[C]==="left"?((V=i.left)!==null&&V!==void 0?V:0)+((R=i.right)!==null&&R!==void 0?R:0):((K=i.top)!==null&&K!==void 0?K:0)+((fe=i.bottom)!==null&&fe!==void 0?fe:0),oe=n[E]-M-$/2-x,le=t[C]+$/2-(F[C]+i[Xa[C]]),Se=t[C]+t[E]-$/2-(F[C]+i[Xa[C]]),_e=Jl(z,le,Se);Ee[C]=Jl(_e,G,oe),{placement:T,crossPlacement:P}=A,$?be=Ee[C]:P==="right"?be+=t[E]:P==="center"&&(be+=t[E]/2);let Be=T==="left"||T==="top"?n[w]:0,Ge={x:T==="top"||T==="bottom"?be:Be,y:T==="left"||T==="right"?be:Be};return{position:F,maxHeight:O,arrowOffsetLeft:Ee.left,arrowOffsetTop:Ee.top,placement:T,triggerAnchorPoint:Ge}}function HQ(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:s,offset:l,crossOffset:f,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?GQ(r):document.documentElement,$=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",w=$?zl(n,!1):hw(n,b,!1);if(!$){let{marginTop:Ee,marginLeft:be}=window.getComputedStyle(n);w.top+=parseInt(Ee,10)||0,w.left+=parseInt(be,10)||0}let C=zl(r,!0),E=qQ(r);var T,P;C.width+=((T=E.left)!==null&&T!==void 0?T:0)+((P=E.right)!==null&&P!==void 0?P:0);var F,q;C.height+=((F=E.top)!==null&&F!==void 0?F:0)+((q=E.bottom)!==null&&q!==void 0?q:0);let te=zQ(i),se=lw(s),ae=lw(b),O=s.tagName==="BODY"?zl(b,!1):hw(b,s,!1);return b.tagName==="HTML"&&s.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),WQ(t,w,C,te,E,a,o,se,ae,O,l,f,A,h,m,g)}function Zb(e,t){let{top:n,left:r,width:i,height:a}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,a=e.offsetHeight),{top:n,left:r,width:i,height:a}}function zl(e,t){let{top:n,left:r,width:i,height:a}=Zb(e,t),{scrollTop:o,scrollLeft:s,clientTop:l,clientLeft:f}=document.documentElement;return{top:n+o-l,left:r+s-f,width:i,height:a}}function hw(e,t,n){let r=window.getComputedStyle(e),i;if(r.position==="fixed")i=Zb(e,n);else{i=zl(e,n);let a=zl(t,n),o=window.getComputedStyle(t);a.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,a.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=a.top,i.left-=a.left}return i.top-=parseInt(r.marginTop,10)||0,i.left-=parseInt(r.marginLeft,10)||0,i}function GQ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!pw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!pw(t);)t=t.parentElement;return t||document.documentElement}function pw(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const FB=new WeakMap;function YQ(e){let{triggerRef:t,isOpen:n,onClose:r}=e;I.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let s=r||FB.get(t.current);s&&s()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Un=typeof document<"u"?window.visualViewport:null;function ZQ(e){let{direction:t}=_r(),{arrowSize:n,targetRef:r,overlayRef:i,arrowRef:a,scrollRef:o=i,placement:s="bottom",containerPadding:l=12,shouldFlip:f=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:$=!0,onClose:x,maxHeight:A,arrowBoundaryOffset:w=0}=e,[C,E]=I.useState(null),T=[b,s,i.current,r.current,a==null?void 0:a.current,o.current,l,f,h,m,g,$,t,A,w,n],P=I.useRef(Un==null?void 0:Un.scale);I.useEffect(()=>{$&&(P.current=Un==null?void 0:Un.scale)},[$]);let F=I.useCallback(()=>{if(b===!1||!$||!i.current||!r.current||!h||(Un==null?void 0:Un.scale)!==P.current)return;let Ee=null;if(o.current&&o.current.contains(document.activeElement)){var be;let M=(be=document.activeElement)===null||be===void 0?void 0:be.getBoundingClientRect(),oe=o.current.getBoundingClientRect();var z;if(Ee={type:"top",offset:((z=M==null?void 0:M.top)!==null&&z!==void 0?z:0)-oe.top},Ee.offset>oe.height/2){Ee.type="bottom";var G;Ee.offset=((G=M==null?void 0:M.bottom)!==null&&G!==void 0?G:0)-oe.bottom}}let V=i.current;if(!A&&i.current){var R;V.style.top="0px",V.style.bottom="";var K;V.style.maxHeight=((K=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let fe=HQ({placement:QQ(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:f,boundaryElement:h,offset:m,crossOffset:g,maxHeight:A,arrowSize:n??(a!=null&&a.current?Zb(a.current,!0).width:0),arrowBoundaryOffset:w});if(fe.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(fe.position).forEach(M=>V.style[M]=fe.position[M]+"px"),V.style.maxHeight=fe.maxHeight!=null?fe.maxHeight+"px":"",Ee&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),oe=o.current.getBoundingClientRect(),le=M[Ee.type]-oe[Ee.type];o.current.scrollTop+=le-Ee.offset}E(fe)}},T);hn(F,T),XQ(F),m2({ref:i,onResize:F}),m2({ref:r,onResize:F});let q=I.useRef(!1);hn(()=>{let Ee,be=()=>{q.current=!0,clearTimeout(Ee),Ee=setTimeout(()=>{q.current=!1},500),F()},z=()=>{q.current&&be()};return Un==null||Un.addEventListener("resize",be),Un==null||Un.addEventListener("scroll",z),()=>{Un==null||Un.removeEventListener("resize",be),Un==null||Un.removeEventListener("scroll",z)}},[F]);let te=I.useCallback(()=>{q.current||x==null||x()},[x,q]);YQ({triggerRef:r,isOpen:$,onClose:x&&te});var se,ae,O;return{overlayProps:{style:{position:C?"absolute":"fixed",top:C?void 0:0,left:C?void 0:0,zIndex:1e5,...C==null?void 0:C.position,maxHeight:(se=C==null?void 0:C.maxHeight)!==null&&se!==void 0?se:"100vh"}},placement:(ae=C==null?void 0:C.placement)!==null&&ae!==void 0?ae:null,triggerAnchorPoint:(O=C==null?void 0:C.triggerAnchorPoint)!==null&&O!==void 0?O:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:F}}function XQ(e){hn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function QQ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Wa=[];function JQ(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e;I.useEffect(()=>{if(i&&!Wa.includes(t))return Wa.push(t),()=>{let $=Wa.indexOf(t);$>=0&&Wa.splice($,1)}},[i,t]);let l=()=>{Wa[Wa.length-1]===t&&n&&n()},f=$=>{(!s||s($.target))&&Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!s||s($.target))&&(Wa[Wa.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!o&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};VZ({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:f});let{focusWithinProps:g}=hc({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||cQ($.relatedTarget)||(!s||s($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function eJ(e,t,n){let{type:r}=e,{isOpen:i}=t;I.useEffect(()=>{n&&n.current&&FB.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=zr();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Pd=typeof document<"u"&&window.visualViewport;let Eh=0,K4;function tJ(e={}){let{isDisabled:t}=e;hn(()=>{if(!t)return Eh++,Eh===1&&(df()?K4=rJ():K4=nJ()),()=>{Eh--,Eh===0&&K4()}},[t])}function nJ(){let e=window.innerWidth-document.documentElement.clientWidth;return Ou(e>0&&("scrollbarGutter"in document.documentElement.style?z4(document.documentElement,"scrollbarGutter","stable"):z4(document.documentElement,"paddingRight",`${e}px`)),z4(document.documentElement,"overflow","hidden"))}function rJ(){let e,t=!1,n=l=>{let f=l.target;e=Ql(f)?f:Dm(f,!0),t=!1;let h=f.ownerDocument.defaultView.getSelection();h&&!h.isCollapsed&&h.containsNode(f,!0)&&(t=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(t=!0)},r=document.createElement("style");r.textContent=`
70
71
  @layer {
71
72
  * {
72
73
  overscroll-behavior: contain;
73
74
  }
74
- }`.trim(),document.head.prepend(r);let i=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},a=l=>{let f=l.target,h=l.relatedTarget;if(h&&C4(h))h.focus({preventScroll:!0}),pw(h,C4(f));else if(!h){var m;let g=(m=f.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let f=document.activeElement!=null&&C4(document.activeElement);o.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&pw(this,f)};let s=Iu(K4(document,"touchstart",n,{passive:!1,capture:!0}),K4(document,"touchmove",i,{passive:!1,capture:!0}),K4(document,"blur",a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function j4(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function K4(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function pw(e,t){t||!Ad?mw(e):Ad.addEventListener("resize",()=>mw(e),{once:!0})}function mw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Dm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let o=i.bottom;Ad&&(o=Math.min(o,Ad.offsetTop+Ad.height));let s=a.top-i.top-((o-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const RQ=I.createContext({});function IQ(){var e;return(e=I.useContext(RQ))!==null&&e!==void 0?e:{}}const OQ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let id=new WeakMap,ti=[];function PB(e,t){let n=ao(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let a=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,o=(r==null?void 0:r.shouldUseInert)&&OQ,s=new Set(e),l=new Set,f=x=>o&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{o&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},m=x=>{for(let E of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(E);let A=E=>{if(l.has(E)||s.has(E)||E.parentElement&&l.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let T of s)if(E.contains(T))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},w=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),C=A(x);if(C===NodeFilter.FILTER_ACCEPT&&g(x),C!==NodeFilter.FILTER_REJECT){let E=w.nextNode();for(;E!=null;)g(E),E=w.nextNode()}},g=x=>{var A;let w=(A=id.get(x))!==null&&A!==void 0?A:0;f(x)&&w===0||(w===0&&h(x,!0),l.add(x),id.set(x,w+1))};ti.length&&ti[ti.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...s,...l].some(w=>w.contains(A.target)))for(let w of A.addedNodes)(w instanceof HTMLElement||w instanceof SVGElement)&&(w.dataset.liveAnnouncer==="true"||w.dataset.reactAriaTopLayer==="true")?s.add(w):w instanceof Element&&m(w)});b.observe(a,{childList:!0,subtree:!0});let $={visibleNodes:s,hiddenNodes:l,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return ti.push($),()=>{b.disconnect();for(let x of l){let A=id.get(x);A!=null&&(A===1?(h(x,!1),id.delete(x)):id.set(x,A-1))}$===ti[ti.length-1]?(ti.pop(),ti.length&&ti[ti.length-1].observe()):ti.splice(ti.indexOf($),1)}}function LQ(e){let t=ti[ti.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function VQ(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...l}=e,f=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=_Q({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||f,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:g,arrowProps:b,placement:$,triggerAnchorPoint:x}=SQ({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!f?t.close:null});return FQ({isDisabled:a||!t.isOpen}),I.useEffect(()=>{if(t.isOpen&&r.current){var A,w;return a?LQ((A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current):PB([(w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:$,triggerAnchorPoint:x}}const _B=de.default.createContext(null);function NQ(e){let t=vm(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=I.useState(!1),o=I.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=IQ();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=de.default.createElement(OX,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=de.default.createElement(_B.Provider,{value:o},de.default.createElement(hZ,null,l)),No.default.createPortal(l,n)}function jQ(){let e=I.useContext(_B),t=e==null?void 0:e.setContain;hn(()=>{t==null||t(!0)},[t])}const Bm=new WeakMap;function KQ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function BB(e,t){let n=Bm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${KQ(t)}`}function I3(e){return Oh()?e.altKey:e.ctrlKey}function zh(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const FB=new WeakMap;function zQ(e){let t=zr();return FB.set(e,t),t}function qQ(e){return FB.get(e)}const UQ=1e3;function WQ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=I.useRef({search:"",timeout:void 0}).current,a=o=>{let s=HQ(o.key);if(!(!s||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},UQ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function HQ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function kB(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:f=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:$=r,linkBehavior:x="action"}=e,{direction:A}=_r(),w=xm(),C=R=>{var K;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(R.target)))return;const fe=(Te,Ye)=>{if(Te!=null){if(t.isLink(Te)&&x==="selection"&&f&&!I3(R)){of.flushSync(()=>{t.setFocusedKey(Te,Ye)});let ht=zh(r,Te),Ht=t.getItemProps(Te);ht&&w.open(ht,R,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Te,Ye),t.isLink(Te)&&x==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&!I3(R)&&t.replaceSelection(Te)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var M,oe,le;let Te=t.focusedKey!=null?(M=n.getKeyBelow)===null||M===void 0?void 0:M.call(n,t.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n);Te==null&&a&&(Te=(le=n.getFirstKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowUp":if(n.getKeyAbove){var Se,_e,Be;let Te=t.focusedKey!=null?(Se=n.getKeyAbove)===null||Se===void 0?void 0:Se.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&a&&(Te=(Be=n.getLastKey)===null||Be===void 0?void 0:Be.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ge,Xe,Ne;let Te=t.focusedKey!=null?(Ge=n.getKeyLeftOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Xe=n.getFirstKey)===null||Xe===void 0?void 0:Xe.call(n,t.focusedKey):(Ne=n.getLastKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var qe,ke,je;let Te=t.focusedKey!=null?(qe=n.getKeyRightOf)===null||qe===void 0?void 0:qe.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(ke=n.getLastKey)===null||ke===void 0?void 0:ke.call(n,t.focusedKey):(je=n.getFirstKey)===null||je===void 0?void 0:je.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getFirstKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getLastKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"a":$l(R)&&t.selectionMode==="multiple"&&s!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(R.shiftKey)r.current.focus();else{let Te=Vr(r.current,{tabbable:!0}),Ye,ht;do ht=Te.lastChild(),ht&&(Ye=ht);while(ht);Ye&&!Ye.contains(document.activeElement)&&wi(Ye)}break}}},E=I.useRef({top:0,left:0});ba($,"scroll",b?void 0:()=>{var R,K,fe,M;E.current={top:(fe=(R=$.current)===null||R===void 0?void 0:R.scrollTop)!==null&&fe!==void 0?fe:0,left:(M=(K=$.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&M!==void 0?M:0}});let T=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var K,fe;let le=_e=>{_e!=null&&(t.setFocusedKey(_e),f&&!t.isSelected(_e)&&t.replaceSelection(_e))},Se=R.relatedTarget;var M,oe;Se&&R.currentTarget.compareDocumentPosition(Se)&Node.DOCUMENT_POSITION_FOLLOWING?le((M=t.lastSelectedKey)!==null&&M!==void 0?M:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):le((oe=t.firstSelectedKey)!==null&&oe!==void 0?oe:(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n))}else!b&&$.current&&($.current.scrollTop=E.current.top,$.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&$.current){let le=zh(r,t.focusedKey);le instanceof HTMLElement&&(!le.contains(document.activeElement)&&!m&&wi(le),Nd()==="keyboard"&&gp(le,{containingElement:r.current}))}}},P=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},F=I.useRef(!1);ba(r,qY,m?R=>{let{detail:K}=R;R.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(F.current=!0)}:void 0);let q=cn(()=>{var R,K;let fe=(K=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&K!==void 0?K:null;if(fe==null){let M=ir();w7(r.current),qb(M,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(fe),F.current=!1});h2(()=>{F.current&&q()},[t.collection,q]);let te=cn(()=>{t.collection.size>0&&(F.current=!1)});h2(()=>{te()},[t.focusedKey,te]),ba(r,zY,m?R=>{var K;R.stopPropagation(),t.setFocused(!1),!((K=R.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const se=I.useRef(i),ae=I.useRef(!1);I.useEffect(()=>{if(se.current){var R,K;let oe=null;var fe;i==="first"&&(oe=(fe=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&fe!==void 0?fe:null);var M;i==="last"&&(oe=(M=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&M!==void 0?M:null);let le=t.selectedKeys;if(le.size){for(let Se of le)if(t.canSelectItem(Se)){oe=Se;break}}t.setFocused(!0),t.setFocusedKey(oe),oe==null&&!m&&r.current&&Su(r.current),t.collection.size>0&&(se.current=!1,ae.current=!0)}});let O=I.useRef(t.focusedKey),Ee=I.useRef(null);I.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==O.current||ae.current)&&$.current&&r.current){let R=Nd(),K=zh(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(R==="keyboard"||ae.current)&&(Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{$.current&&(wP($.current,K),R!=="virtual"&&gp(K,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&O.current!=null&&r.current&&Su(r.current),O.current=t.focusedKey,ae.current=!1}),I.useEffect(()=>()=>{Ee.current&&cancelAnimationFrame(Ee.current)},[]),ba(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let be={onKeyDown:C,onFocus:T,onBlur:P,onMouseDown(R){$.current===R.target&&R.preventDefault()}},{typeSelectProps:z}=WQ({keyboardDelegate:n,selectionManager:t});h||(be=Qt(z,be));let G;m||(G=t.focusedKey==null?0:-1);let V=zQ(t.collection);return{collectionProps:Qt(be,{tabIndex:G,"data-collection":V})}}function GQ(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:l,onAction:f,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=xm();t=zr(t);let b=M=>{if(M.pointerType==="keyboard"&&I3(M))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let oe=n.getItemProps(r);g.open(i.current,M,oe.href,oe.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):M&&M.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||M&&($l(M)||M.pointerType==="touch"||M.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};I.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?w7(i.current):s?s():document.activeElement!==i.current&&i.current&&Su(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let $={};!o&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(M){M.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=M=>{M.preventDefault()});let x=n.isLink(r)&&m==="override",A=f&&e.UNSTABLE_itemBehavior==="action",w=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!x&&!A,E=(f||w)&&!l,T=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),P=E&&C&&n.selectionBehavior==="replace",F=T||P,q=I.useRef(null),te=F&&C,se=I.useRef(!1),ae=I.useRef(!1),O=n.getItemProps(r),Ee=M=>{if(f){var oe;f(),(oe=i.current)===null||oe===void 0||oe.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}w&&i.current&&g.open(i.current,M,O.href,O.routerOptions)},be={ref:i};if(a?(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,M.pointerType==="keyboard"&&(!F||vw())&&b(M)},h?(be.onPressUp=T?void 0:M=>{M.pointerType==="mouse"&&C&&b(M)},be.onPress=T?Ee:M=>{M.pointerType!=="keyboard"&&M.pointerType!=="mouse"&&C&&b(M)}):be.onPress=M=>{if(T||P&&M.pointerType!=="mouse"){if(M.pointerType==="keyboard"&&!gw())return;Ee(M)}else M.pointerType!=="keyboard"&&C&&b(M)}):(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,ae.current=T,C&&(M.pointerType==="mouse"&&!T||M.pointerType==="keyboard"&&(!E||vw()))&&b(M)},be.onPress=M=>{(M.pointerType==="touch"||M.pointerType==="pen"||M.pointerType==="virtual"||M.pointerType==="keyboard"&&F&&gw()||M.pointerType==="mouse"&&ae.current)&&(F?Ee(M):C&&b(M))}),$["data-collection"]=qQ(n.collection),$["data-key"]=r,be.preventFocusOnPress=o,o&&(be=Qt(be,{onPressStart(M){M.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(M){M.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let M of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[M]&&(be[M]=Iu(be[M],O[M]));let{pressProps:z,isPressed:G}=hf(be),V=P?M=>{q.current==="mouse"&&(M.stopPropagation(),M.preventDefault(),Ee(M))}:void 0,{longPressProps:R}=NP({isDisabled:!te,onLongPress(M){M.pointerType==="touch"&&(b(M),n.setSelectionBehavior("toggle"))}}),K=M=>{q.current==="touch"&&se.current&&M.preventDefault()},fe=m!=="none"&&n.isLink(r)?M=>{wu.isOpening||M.preventDefault()}:void 0;return{itemProps:Qt($,C||T||o&&!l?z:{},te?R:{},{onDoubleClick:V,onDragStartCapture:K,onClick:fe,id:t},o?{onMouseDown:M=>M.preventDefault()}:void 0),isPressed:G,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:F}}function gw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function vw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class yw{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zh(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.clientWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.clientHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class MB{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Ql(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Ql(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new yw(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new yw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function YQ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=D7({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=I.useMemo(()=>a||new MB({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,l]),{collectionProps:h}=kB({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:h}}function ZQ(e,t,n){let r=Yo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=YQ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=hc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=zr(e.id);Bm.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:f,fieldProps:h}=Pm({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:Qt(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,o)})}}function RB(e){return null}RB.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,s=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!s&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:s,"aria-label":t["aria-label"],hasChildNodes:XQ(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];de.default.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function XQ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&de.default.Children.count(e.children)>0)}let QQ=RB;class JQ{build(t,n){return this.context=n,bw(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(de.default.isValidElement(n)&&n.type===de.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];de.default.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let s=this.getFullNode({element:o,index:a},{});for(let l of s)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let s=(o=a.key)!==null&&o!==void 0?o:a.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(de.default.isValidElement(t.element)&&t.element.type===de.default.Fragment){let A=[];de.default.Children.forEach(t.element.props.children,C=>{A.push(C)});var a;let w=(a=t.index)!==null&&a!==void 0?a:0;for(const C of A)yield*this.getFullNode({element:C,index:w++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}o=n.renderer(t.value)}if(de.default.isValidElement(o)){let A=o.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let w=A.getCollectionNode(o.props,this.context);var s;let C=(s=t.index)!==null&&s!==void 0?s:0,E=w.next();for(;!E.done&&E.value;){let T=E.value;t.index=C;var l;let P=(l=T.key)!==null&&l!==void 0?l:null;P==null&&(P=T.element?null:this.getKey(o,t,n,r));let q=[...this.getFullNode({...T,key:P,index:C,wrapper:eJ(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let te of q){var f,h;te.value=(h=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&h!==void 0?h:null,te.value&&this.cache.set(te.value,te);var m;if(t.type&&te.type!==t.type)throw new Error(`Unsupported type <${z4(te.type)}> in <${z4((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${z4(t.type)}> is supported.`);C++,yield te}E=w.next(q)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:bw(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let w of t.childNodes()){w.key!=null&&(w.key=`${x.key}${w.key}`);let C=g.getFullNode({...w,index:A},g.getChildState(n,w),x.key,x);for(let E of C)A++,yield E}})};yield x}constructor(){this.cache=new WeakMap}}function bw(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function eJ(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function z4(e){return e[0].toUpperCase()+e.slice(1)}function tJ(e,t,n){let r=I.useMemo(()=>new JQ,[]),{children:i,items:a,collection:o}=e;return I.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function Fm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function nJ(e){return rJ(e)}function rJ(e,t){for(let n of e)return n}function q4(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...xw(e,t),t],i=[...xw(e,n),n],a=r.slice(0,i.length).findIndex((o,s)=>o!==i[s]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function xw(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Dw=new WeakMap;function IB(e){let t=Dw.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Fm(a,e)):a.type==="item"&&n++};return r(e),Dw.set(e,n),n}function iJ(e,t,n){var r,i;let{key:a}=e,o=Bm.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(a);var f;let h=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:o==null?void 0:o.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:o==null?void 0:o.shouldUseVirtualFocus;var w;let C=(w=e.isVirtualized)!==null&&w!==void 0?w:o==null?void 0:o.isVirtualized,E=Zl(),T=Zl(),P={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};oo()&&$b()||(P["aria-label"]=e["aria-label"],P["aria-labelledby"]=E,P["aria-describedby"]=T);let F=t.collection.getItem(a);if(C){let R=Number(F==null?void 0:F.index);P["aria-posinset"]=Number.isNaN(R)?void 0:R+1,P["aria-setsize"]=IB(t.collection)}let q=o!=null&&o.onAction?()=>{var R;return o==null||(R=o.onAction)===null||R===void 0?void 0:R.call(o,a)}:void 0,te=BB(t,a),{itemProps:se,isPressed:ae,isFocused:O,hasAction:Ee,allowsSelection:be}=GQ({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:C,shouldUseVirtualFocus:A,isDisabled:l,onAction:q||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?Iu(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,q):void 0,linkBehavior:o==null?void 0:o.linkBehavior,UNSTABLE_itemBehavior:o==null?void 0:o.UNSTABLE_itemBehavior,id:te}),{hoverProps:z}=mZ({isDisabled:l||!$,onHoverStart(){C2()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),G=Yo(F==null?void 0:F.props);delete G.id;let V=IY(F==null?void 0:F.props);return{optionProps:{...P,...Qt(G,se,z,V),id:te},labelProps:{id:E},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&t.selectionManager.isFocused&&C2(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:be,hasAction:Ee}}var OB={};OB={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var LB={};LB={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var VB={};VB={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var NB={};NB={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var jB={};jB={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var KB={};KB={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var zB={};zB={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var qB={};qB={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var UB={};UB={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var WB={};WB={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var HB={};HB={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var GB={};GB={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var YB={};YB={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ZB={};ZB={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var XB={};XB={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var QB={};QB={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var JB={};JB={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var eF={};eF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var tF={};tF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var nF={};nF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var rF={};rF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var iF={};iF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var aF={};aF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var oF={};oF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var sF={};sF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var uF={};uF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var lF={};lF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var cF={};cF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var dF={};dF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var fF={};fF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var hF={};hF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var pF={};pF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var mF={};mF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var gF={};gF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var vF={};vF={"ar-AE":OB,"bg-BG":LB,"cs-CZ":VB,"da-DK":NB,"de-DE":jB,"el-GR":KB,"en-US":zB,"es-ES":qB,"et-EE":UB,"fi-FI":WB,"fr-FR":HB,"he-IL":GB,"hr-HR":YB,"hu-HU":ZB,"it-IT":XB,"ja-JP":QB,"ko-KR":JB,"lt-LT":eF,"lv-LV":tF,"nb-NO":nF,"nl-NL":rF,"pl-PL":iF,"pt-BR":aF,"pt-PT":oF,"ro-RO":sF,"ru-RU":uF,"sk-SK":lF,"sl-SI":cF,"sr-SP":dF,"sv-SE":fF,"tr-TR":hF,"uk-UA":pF,"zh-CN":mF,"zh-TW":gF};function aJ(e){return e&&e.__esModule?e.default:e}function oJ(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=zr(),{triggerProps:s,overlayProps:l}=BQ({type:r},t,n),f=b=>{if(!i&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=Ta(aJ(vF),"@react-aria/menu"),{longPressProps:m}=NP({isDisabled:i||a!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(wi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(wi(b.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...a==="press"?g:m,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function sJ(e){return e&&e.__esModule?e.default:e}function uJ(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:s,shouldFocusWrap:l,isReadOnly:f,isDisabled:h}=e,m=I.useRef(null);n=n??m;let g=Ta(sJ(AB),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=oJ({type:"listbox",isDisabled:h||f},t,n);Bm.set(t,{id:$.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,w=I.useMemo(()=>o||new MB({collection:x,disabledKeys:A,ref:a,layoutDelegate:s}),[o,s,x,A,a]),{collectionProps:C}=kB({selectionManager:t.selectionManager,keyboardDelegate:w,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),E=xm(),T=je=>{if(!je.nativeEvent.isComposing)switch(je.key){case"Enter":case"Tab":if(t.isOpen&&je.key==="Enter"&&je.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let Te=t.collection.getItem(t.selectionManager.focusedKey);if(Te!=null&&Te.props.href){let Ye=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);je.key==="Enter"&&Ye instanceof HTMLAnchorElement&&E.open(Ye,je,Te.props.href,Te.props.routerOptions),t.close();break}else if(Te!=null&&Te.props.onAction){Te.props.onAction(),t.close();break}}t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&je.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},P=je=>{var Te;let Ye=(n==null?void 0:n.current)&&n.current===je.relatedTarget,ht=(Te=r.current)===null||Te===void 0?void 0:Te.contains(je.relatedTarget);Ye||ht||(e.onBlur&&e.onBlur(je),t.setFocused(!1))},F=je=>{t.isFocused||(e.onFocus&&e.onFocus(je),t.setFocused(!0))},{isInvalid:q,validationErrors:te,validationDetails:se}=t.displayValidation,{labelProps:ae,inputProps:O,descriptionProps:Ee,errorMessageProps:be}=gQ({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Iu(t.isOpen&&C.onKeyDown,T,e.onKeyDown),onBlur:P,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[tc]:t},i),z=je=>{if(je.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},G=je=>{if(je.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(je.pointerType==="keyboard"||je.pointerType==="virtual"?"first":null,"manual")}},V=Xl({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),R=Xl({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),K=I.useRef(0),fe=je=>{if(h||f)return;if(je.timeStamp-K.current<500){var Te;je.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let Ye=je.target.getBoundingClientRect(),ht=je.changedTouches[0],Ht=Math.ceil(Ye.left+.5*Ye.width),xt=Math.ceil(Ye.top+.5*Ye.height);if(ht.clientX===Ht&&ht.clientY===xt){var _t;je.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),K.current=je.timeStamp}},M=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var oe;let le=(oe=M==null?void 0:M.parentKey)!==null&&oe!==void 0?oe:null;var Se;let _e=(Se=t.selectionManager.focusedKey)!==null&&Se!==void 0?Se:null,Be=I.useRef(le),Ge=I.useRef(_e);I.useEffect(()=>{if(Oh()&&M!=null&&_e!=null&&_e!==Ge.current){let Te=t.selectionManager.isSelected(_e),Ye=le!=null?t.collection.getItem(le):null,ht=(Ye==null?void 0:Ye["aria-label"])||(typeof(Ye==null?void 0:Ye.rendered)=="string"?Ye.rendered:"")||"";var je;let Ht=g.format("focusAnnouncement",{isGroupChange:(je=Ye&&le!==Be.current)!==null&&je!==void 0?je:!1,groupTitle:ht,groupCount:Ye?[...Fm(Ye,t.collection)].length:0,optionText:M["aria-label"]||M.textValue||"",isSelected:Te});Kl(Ht)}Be.current=le,Ge.current=_e});let Xe=IB(t.collection),Ne=I.useRef(Xe),qe=I.useRef(t.isOpen);I.useEffect(()=>{let je=t.isOpen!==qe.current&&(t.selectionManager.focusedKey==null||Oh());if(t.isOpen&&(je||Xe!==Ne.current)){let Te=g.format("countAnnouncement",{optionCount:Xe});Kl(Te)}Ne.current=Xe,qe.current=t.isOpen});let ke=I.useRef(t.selectedKey);return I.useEffect(()=>{if(Oh()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ke.current){let je=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:je});Kl(Te)}ke.current=t.selectedKey}),I.useEffect(()=>{if(t.isOpen)return PB([i.current,r.current].filter(je=>je!=null))},[t.isOpen,i,r]),c3(()=>{!M&&i.current&&ir(Xt(i.current))===i.current&&qb(i.current,null)},[M]),ba(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:ae,buttonProps:{...b,...V,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:z,onPressStart:G,isDisabled:h||f},inputProps:Qt(O,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":M?BB(t,M.key):void 0,onTouchEnd:fe,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt($,R,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),descriptionProps:Ee,errorMessageProps:be,isInvalid:q,validationErrors:te,validationDetails:se}}var yF={};yF={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var bF={};bF={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var xF={};xF={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var DF={};DF={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var $F={};$F={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var EF={};EF={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var CF={};CF={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var wF={};wF={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var AF={};AF={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var SF={};SF={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var TF={};TF={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var PF={};PF={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var _F={};_F={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var BF={};BF={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var FF={};FF={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var kF={};kF={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var MF={};MF={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var RF={};RF={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var IF={};IF={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var OF={};OF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var LF={};LF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var VF={};VF={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var NF={};NF={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var jF={};jF={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var KF={};KF={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var zF={};zF={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var qF={};qF={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var UF={};UF={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var WF={};WF={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var HF={};HF={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var GF={};GF={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var YF={};YF={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var ZF={};ZF={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var XF={};XF={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var xf={};xf={"ar-AE":yF,"bg-BG":bF,"cs-CZ":xF,"da-DK":DF,"de-DE":$F,"el-GR":EF,"en-US":CF,"es-ES":wF,"et-EE":AF,"fi-FI":SF,"fr-FR":TF,"he-IL":PF,"hr-HR":_F,"hu-HU":BF,"it-IT":FF,"ja-JP":kF,"ko-KR":MF,"lt-LT":RF,"lv-LV":IF,"nb-NO":OF,"nl-NL":LF,"pl-PL":VF,"pt-BR":NF,"pt-PT":jF,"ro-RO":KF,"ru-RU":zF,"sk-SK":qF,"sl-SI":UF,"sr-SP":WF,"sv-SE":HF,"tr-TR":GF,"uk-UA":YF,"zh-CN":ZF,"zh-TW":XF};function Gb(e,t,n){let{direction:r}=_r(),i=I.useMemo(()=>Sm(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=$w(t.current,f.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=$w(t.current,f.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,h=Vr(t.current,{tabbable:!0});if(f&&(h.currentNode=f,f=h.previousNode()),!f){let m;do m=h.lastChild(),m&&(f=m);while(m)}for(;f!=null&&f.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))f=m;else break}f&&f.focus()},{pressProps:s}=hf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return Qt(s,{onKeyDown:a})}function $w(e,t,n){let r=Vr(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,f=Math.abs(l);Math.sign(l)===n&&f<o&&(a=i,o=f),i=r.nextNode()}return a}function lJ(e){return e&&e.__esModule?e.default:e}const QF=new WeakMap,Sd="__role_"+Date.now(),JF="__focusManager_"+Date.now();function ek(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:f,errorMessageProps:h}=_m({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=I.useRef(null),{focusWithinProps:g}=hc({...e,onFocusWithin(ae){var O;m.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,ae)},onBlurWithin:ae=>{var O;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=Ta(lJ(xf),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format($,{[x]:t.formatValue({month:"long"})}):"",w=fc(A),C=e[Sd]==="presentation"?l["aria-describedby"]:[w["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=e[JF],T=I.useMemo(()=>E||Sm(n),[E,n]),P=Gb(t,n,e[Sd]==="presentation");QF.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:T});let F=I.useRef(e.autoFocus),q;e[Sd]==="presentation"?q={role:"presentation"}:q=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),I.useEffect(()=>{F.current&&T.focusFirst(),F.current=!1},[T]),wb(e.inputRef,t.defaultValue,t.setValue),c_({...e,focus(){T.focusFirst()}},t,e.inputRef);let te={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(te.type="text",te.hidden=!0,te.required=e.isRequired,te.onChange=()=>{});let se=Yo(e);return{labelProps:{...s,onClick:()=>{T.focusFirst()}},fieldProps:Qt(se,q,P,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:te,descriptionProps:f,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:o}}function cJ(e,t,n){var r;let i=ek(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function dJ(e){return e&&e.__esModule?e.default:e}function fJ(e,t,n){let r=zr(),i=zr(),a=zr(),o=Ta(dJ(xf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=_m({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||l}),$=Gb(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=_r(),w=t.formatValue(A,{month:"long"}),C=w?o.format("selectedDateDescription",{date:w}):"",E=fc(C),T=[E["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=Yo(e),F=I.useMemo(()=>Sm(n),[n]),q=I.useRef(!1),{focusWithinProps:te}=hc({...e,isDisabled:t.isOpen,onBlurWithin:se=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(se.relatedTarget))){var O,Ee;q.current=!1,(O=e.onBlur)===null||O===void 0||O.call(e,se),(Ee=e.onFocusChange)===null||Ee===void 0||Ee.call(e,!1)}},onFocusWithin:se=>{if(!q.current){var ae,O;q.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,se),(O=e.onFocusChange)===null||O===void 0||O.call(e,!0)}}});return{groupProps:Qt(P,$,m,E,te,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":T,onKeyDown(se){t.isOpen||e.onKeyDown&&e.onKeyDown(se)},onKeyUp(se){t.isOpen||e.onKeyUp&&e.onKeyUp(se)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:a,[Sd]:"presentation","aria-describedby":T,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[tc]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...E,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:s,validationErrors:l,validationDetails:f}}function hJ(e){return e&&e.__esModule?e.default:e}function pJ(){let{locale:e}=_r(),t=zP(hJ(xf),"@react-aria/datepicker");return I.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new mJ(e,t)}},[e,t])}class mJ{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function gJ(e,t,n){let r=I.useRef(""),{locale:i,direction:a}=_r(),o=pJ(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:f,focusManager:h}=QF.get(t),m=e.isPlaceholder?"":e.text,g=I.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Za({month:"long",timeZone:g.timeZone}),$=Za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=b.format(t.dateValue);m=M!==m?`${m} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:x}=yQ({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),A=I.useMemo(()=>new x7(i,{maximumFractionDigits:0}),[i]),w=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),oe=A.parse(M);M=oe===0?"":M,M.length===0||oe===0?t.clearSegment(e.type):t.setSegment(e.type,oe),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=M=>{if(M.key==="a"&&(oo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),w();break}},{startsWith:E}=$7({sensitivity:"base"}),T=Za({hour:"numeric",hour12:!0}),P=I.useMemo(()=>{let M=new Date;return M.setHours(0),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),F=I.useMemo(()=>{let M=new Date;return M.setHours(12),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),q=Za({year:"numeric",era:"narrow",timeZone:"UTC"}),te=I.useMemo(()=>{if(e.type!=="era")return[];let M=kn(new Gn(1,1,1),t.calendar),oe=t.calendar.getEras().map(Se=>{let _e=M.set({year:1,month:1,day:1,era:Se}).toDate("UTC"),Ge=q.formatToParts(_e).find(Xe=>Xe.type==="era").value;return{era:Se,formatted:Ge}}),le=vJ(oe.map(Se=>Se.formatted));if(le)for(let Se of oe)Se.formatted=Se.formatted.slice(le);return oe},[q,t.calendar,e.type]),se=M=>{if(t.isDisabled||t.isReadOnly)return;let oe=r.current+M;switch(e.type){case"dayPeriod":if(E(P,M))t.setSegment("dayPeriod",0);else if(E(F,M))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let le=te.find(Se=>E(Se.formatted,M));le&&(t.setSegment("era",le.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(oe))return;let le=A.parse(oe),Se=le,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":le>11&&(Se=A.parse(M));break;case"h12":_e=!1,le>12&&(Se=A.parse(M));break}e.value!==void 0&&e.value>=12&&le>1&&(le+=12)}else e.maxValue!==void 0&&le>e.maxValue&&(Se=A.parse(M));if(isNaN(le))return;let Be=Se!==0||_e;Be&&t.setSegment(e.type,Se),e.maxValue!==void 0&&(+(le+"0")>e.maxValue||oe.length>=String(e.maxValue).length)?(r.current="",Be&&h.focusNext()):r.current=oe;break}}},ae=()=>{r.current="",n.current&&gp(n.current,{containingElement:Dm(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=I.useRef(typeof document<"u"?document:null);ba(O,"selectionchange",()=>{var M;let oe=window.getSelection();oe!=null&&oe.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(oe==null?void 0:oe.anchorNode))&&oe.collapse(n.current)});let Ee=I.useRef("");ba(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&w();break;case"insertCompositionText":Ee.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&se(M.data);break}}),ba(n,"input",M=>{let{inputType:oe,data:le}=M;switch(oe){case"insertCompositionText":n.current&&(n.current.textContent=Ee.current),le!=null&&(E(P,le)||E(F,le))&&se(le);break}}),hn(()=>{let M=n.current;return()=>{document.activeElement===M&&(h.focusPrevious()||h.focusNext())}},[n,h]);let be=df()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=I.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(f=void 0);let G=zr(),V=!t.isDisabled&&!t.isReadOnly&&e.isEditable,R=e.type==="literal"?"":o.of(e.type),K=Xl({"aria-label":`${R}${s?`, ${s}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let fe={caretColor:"transparent"};if(a==="rtl"){fe.unicodeBidi="embed";let M=g[e.type];(M==="numeric"||M==="2-digit")&&(fe.direction="ltr")}return{segmentProps:Qt(x,K,{id:G,...be,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":f,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:V,suppressContentEditableWarning:V,spellCheck:V?"false":void 0,autoCorrect:V?"off":void 0,[parseInt(de.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:V?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!V?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:ae,style:fe,onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function vJ(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function yJ(e){return e&&e.__esModule?e.default:e}function bJ(e,t,n){var r,i,a,o,s;let l=Ta(yJ(xf),"@react-aria/datepicker"),{isInvalid:f,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:$,errorMessageProps:x}=_m({...e,labelElementType:"span",isInvalid:f,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:w}=_r(),C=t.formatValue(w,{month:"long"}),E=C?l.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",T=fc(E),P={"aria-label":l.format("startDate"),"aria-labelledby":A},F={"aria-label":l.format("endDate"),"aria-labelledby":A},q=zr(),te=zr(),se=Gb(t,n),ae=[T["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=I.useMemo(()=>Sm(n,{accept:M=>M.id!==q}),[n,q]),Ee={[JF]:O,[Sd]:"presentation","aria-describedby":ae,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},be=Yo(e),z=I.useRef(!1),{focusWithinProps:G}=hc({...e,isDisabled:t.isOpen,onBlurWithin:M=>{let oe=document.getElementById(te);if(!(oe!=null&&oe.contains(M.relatedTarget))){var le,Se;z.current=!1,(le=e.onBlur)===null||le===void 0||le.call(e,M),(Se=e.onFocusChange)===null||Se===void 0||Se.call(e,!1)}},onFocusWithin:M=>{if(!z.current){var oe,le;z.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,M),(le=e.onFocusChange)===null||le===void 0||le.call(e,!0)}}}),V=I.useRef(uu),R=I.useRef(uu);var K,fe;return{groupProps:Qt(be,se,b,T,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":ae,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...g,onClick:()=>{O.focusFirst()}},buttonProps:{...T,id:q,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${q} ${A}`,"aria-describedby":ae,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:te,"aria-labelledby":`${q} ${A}`},startFieldProps:{...P,...Ee,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){V.current=M,t.updateValidation(Ap(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...Ee,value:(fe=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&fe!==void 0?fe:null,defaultValue:(o=t.defaultValue)===null||o===void 0?void 0:o.end,onChange:M=>t.setDateTime("end",M),name:e.endName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(Ap(V.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:$,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:f,validationErrors:h,validationDetails:m}}function xJ(e,t){let{role:n="dialog"}=e,r=Zl();r=e["aria-label"]?void 0:r;let i=I.useRef(!1);return I.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Su(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Su(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),jQ(),{dialogProps:{...Yo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}var ri=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const tk={...ri,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},DJ=rk(tk);DJ[7]="all";const nk={none:"cancel",link:"link",copy:"copy",move:"move"},U4=rk(nk);function rk(e){let t={};for(let n in e)t[e[n]]=n;return t}const O3="application/vnd.react-aria.items+json",Tp="application/octet-stream",$J=Symbol();function EJ(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(e="touch"),e}function CJ(){return EJ(lZ())}class Ch{has(t){return this.includesUnknownTypes||t===$J&&this.types.has(Tp)?!0:typeof t=="string"&&this.types.has(t)}constructor(t){this.types=new Set;let n=!1;for(let r of t.items)r.type!==O3&&(r.kind==="file"&&(n=!0),r.type?this.types.add(r.type):this.types.add(Tp));this.includesUnknownTypes=!n&&t.types.includes("Files")}}function wJ(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(O3))try{let r=e.getData(O3),i=JSON.parse(r);for(let a of i)t.push({kind:"text",types:new Set(Object.keys(a)),getText:o=>Promise.resolve(a[o])});n=!0}catch{}if(!n){let r=new Map;for(let i of e.items)if(i.kind==="string")r.set(i.type||Tp,e.getData(i.type));else if(i.kind==="file")if(typeof i.webkitGetAsEntry=="function"){let a=i.webkitGetAsEntry();if(!a)continue;a.isFile?t.push(L3(i.getAsFile())):a.isDirectory&&t.push(ik(a))}else t.push(L3(i.getAsFile()));r.size>0&&t.push({kind:"text",types:new Set(r.keys()),getText:i=>Promise.resolve(r.get(i))})}return t}function AJ(e){return typeof e.text=="function"?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function L3(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Tp,name:e.name,getText:()=>AJ(e),getFile:()=>Promise.resolve(e)}}function ik(e){return{kind:"directory",name:e.name,getEntries:()=>SJ(e)}}async function*SJ(e){let t=e.createReader(),n;do{n=await new Promise((r,i)=>{t.readEntries(r,i)});for(let r of n)if(r.isFile){let i=await TJ(r);yield L3(i)}else r.isDirectory&&(yield ik(r))}while(n.length>0)}function TJ(e){return new Promise((t,n)=>e.file(t,n))}let ak={draggingKeys:new Set};function PJ(e){ak=e}let Ew=ri.none,Cw=new Map,ww=null,Aw=new Set;function _J(e){return Cw.set(e.element,e),()=>{Cw.delete(e.element)}}function BJ(){let[e,t]=I.useState(ww);return I.useEffect(()=>{let n=()=>t(ww);return Aw.add(n),()=>{Aw.delete(n)}},[]),e}var ok={};ok={dragDescriptionKeyboard:"اضغط Enter لبدء السحب.",dragDescriptionKeyboardAlt:"اضغط على Alt + Enter لبدء السحب.",dragDescriptionLongPress:"اضغط باستمرار لبدء السحب.",dragDescriptionTouch:"اضغط مرتين لبدء السحب.",dragDescriptionVirtual:"انقر لبدء السحب.",dragItem:e=>`اسحب ${e.itemText}`,dragSelectedItems:(e,t)=>`اسحب ${t.plural(e.count,{one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عناصر محددة`})}`,dragSelectedKeyboard:(e,t)=>`اضغط على Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedKeyboardAlt:(e,t)=>`اضغط على مفتاحي Alt + Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedLongPress:(e,t)=>`اضغط باستمرار للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragStartedKeyboard:"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.",dragStartedTouch:"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.",dragStartedVirtual:"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.",dropCanceled:"تم إلغاء الإفلات.",dropComplete:"اكتمل الإفلات.",dropDescriptionKeyboard:"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.",dropDescriptionTouch:"اضغط مرتين للإفلات.",dropDescriptionVirtual:"انقر للإفلات.",dropIndicator:"مؤشر الإفلات",dropOnItem:e=>`إفلات ${e.itemText}`,dropOnRoot:"الإفلات",endDragKeyboard:"السحب. اضغط Enter لإلغاء السحب.",endDragTouch:"السحب. اضغط مرتين لإلغاء السحب.",endDragVirtual:"السحب. انقر لإلغاء السحب.",insertAfter:e=>`أدخل بعد ${e.itemText}`,insertBefore:e=>`أدخل قبل ${e.itemText}`,insertBetween:e=>`أدخل بين ${e.beforeItemText} و ${e.afterItemText}`};var sk={};sk={dragDescriptionKeyboard:"Натиснете „Enter“, за да започнете да плъзгате.",dragDescriptionKeyboardAlt:"Натиснете Alt + Enter, за да започнете да плъзгате.",dragDescriptionLongPress:"Натиснете продължително, за да започнете да плъзгате.",dragDescriptionTouch:"Натиснете двукратно, за да започнете да плъзгате.",dragDescriptionVirtual:"Щракнете, за да започнете да плъзгате.",dragItem:e=>`Плъзни ${e.itemText}`,dragSelectedItems:(e,t)=>`Плъзни ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елемента`})}`,dragSelectedKeyboard:(e,t)=>`Натиснете Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натиснете Alt и Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedLongPress:(e,t)=>`Натиснете продължително, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragStartedKeyboard:"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.",dragStartedTouch:"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.",dragStartedVirtual:"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.",dropCanceled:"Пускането е отменено.",dropComplete:"Пускането е завършено.",dropDescriptionKeyboard:"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.",dropDescriptionTouch:"Натиснете двукратно за пускане.",dropDescriptionVirtual:"Щракнете за пускане.",dropIndicator:"индикатор за пускане",dropOnItem:e=>`Пусни върху ${e.itemText}`,dropOnRoot:"Пусни върху",endDragKeyboard:"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.",endDragTouch:"Плъзгане. Натиснете двукратно за отмяна на плъзгането.",endDragVirtual:"Плъзгане. Щракнете за отмяна.",insertAfter:e=>`Вмъкни след ${e.itemText}`,insertBefore:e=>`Вмъкни преди ${e.itemText}`,insertBetween:e=>`Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`};var uk={};uk={dragDescriptionKeyboard:"Stisknutím klávesy Enter začnete s přetahováním.",dragDescriptionKeyboardAlt:"Stisknutím Alt + Enter zahájíte přetahování.",dragDescriptionLongPress:"Dlouhým stisknutím zahájíte přetahování.",dragDescriptionTouch:"Poklepáním začnete s přetahováním.",dragDescriptionVirtual:"Kliknutím začnete s přetahováním.",dragItem:e=>`Přetáhnout ${e.itemText}`,dragSelectedItems:(e,t)=>`Přetáhnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,few:()=>`${t.number(e.count)} vybrané položky`,other:()=>`${t.number(e.count)} vybraných položek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknutím klávesy Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknutím Alt + Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouhým stisknutím přetáhnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragStartedKeyboard:"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dragStartedTouch:"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.",dragStartedVirtual:"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.",dropCanceled:"Přetažení bylo zrušeno.",dropComplete:"Přetažení bylo dokončeno.",dropDescriptionKeyboard:"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dropDescriptionTouch:"Poklepáním přetažení dokončete.",dropDescriptionVirtual:"Kliknutím objekt přetáhněte.",dropIndicator:"indikátor přetažení",dropOnItem:e=>`Přetáhnout na ${e.itemText}`,dropOnRoot:"Přetáhnout na",endDragKeyboard:"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.",endDragTouch:"Probíhá přetahování. Poklepáním přetažení zrušíte.",endDragVirtual:"Probíhá přetahování. Kliknutím přetažení zrušíte.",insertAfter:e=>`Vložit za ${e.itemText}`,insertBefore:e=>`Vložit před ${e.itemText}`,insertBetween:e=>`Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`};var lk={};lk={dragDescriptionKeyboard:"Tryk på Enter for at starte med at trække.",dragDescriptionKeyboardAlt:"Tryk på Alt + Enter for at starte med at trække.",dragDescriptionLongPress:"Tryk længe for at starte med at trække.",dragDescriptionTouch:"Dobbelttryk for at starte med at trække.",dragDescriptionVirtual:"Klik for at starte med at trække.",dragItem:e=>`Træk ${e.itemText}`,dragSelectedItems:(e,t)=>`Træk ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk på Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk på Alt + Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk længe for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.",dragStartedTouch:"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldført.",dropDescriptionKeyboard:"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip på ${e.itemText}`,dropOnRoot:"Slip på",endDragKeyboard:"Trækning. Tryk på enter for at annullere træk.",endDragTouch:"Trækning. Dobbelttryk for at annullere træk.",endDragVirtual:"Trækning. Klik for at annullere trækning.",insertAfter:e=>`Indsæt efter ${e.itemText}`,insertBefore:e=>`Indsæt før ${e.itemText}`,insertBetween:e=>`Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`};var ck={};ck={dragDescriptionKeyboard:"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe drücken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang drücken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Objekt`,other:()=>`${t.number(e.count)} ausgewählte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einfügen`,insertBefore:e=>`Vor ${e.itemText} einfügen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`};var dk={};dk={dragDescriptionKeyboard:"Πατήστε Enter για έναρξη της μεταφοράς.",dragDescriptionKeyboardAlt:"Πατήστε Alt + Enter για έναρξη της μεταφοράς.",dragDescriptionLongPress:"Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",dragDescriptionTouch:"Πατήστε δύο φορές για έναρξη της μεταφοράς.",dragDescriptionVirtual:"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.",dragItem:e=>`Μεταφορά ${e.itemText}`,dragSelectedItems:(e,t)=>`Μεταφορά σε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}`,dragSelectedKeyboard:(e,t)=>`Πατήστε Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Πατήστε Alt + Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedLongPress:(e,t)=>`Πατήστε παρατεταμένα για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragStartedKeyboard:"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.",dragStartedTouch:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.",dragStartedVirtual:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.",dropCanceled:"Η απόθεση ακυρώθηκε.",dropComplete:"Η απόθεση ολοκληρώθηκε.",dropDescriptionKeyboard:"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.",dropDescriptionTouch:"Πατήστε δύο φορές για απόθεση.",dropDescriptionVirtual:"Κάντε κλικ για απόθεση.",dropIndicator:"δείκτης απόθεσης",dropOnItem:e=>`Απόθεση σε ${e.itemText}`,dropOnRoot:"Απόθεση σε",endDragKeyboard:"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.",endDragTouch:"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.",endDragVirtual:"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.",insertAfter:e=>`Εισαγωγή μετά από ${e.itemText}`,insertBefore:e=>`Εισαγωγή πριν από ${e.itemText}`,insertBetween:e=>`Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`};var fk={};fk={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var hk={};hk={dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al público destinatario donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocación.",dropComplete:"Colocación finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocación",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar después de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var pk={};pk={dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Klõpsake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksust`,other:()=>`${t.number(e.count)} valitud üksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks klõpsake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks klõpsake.",insertAfter:e=>`Sisesta ${e.itemText} järele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var mk={};mk={dragDescriptionKeyboard:"Aloita vetäminen painamalla Enter-näppäintä.",dragDescriptionKeyboardAlt:"Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",dragDescriptionLongPress:"Aloita vetäminen pitämällä painettuna.",dragDescriptionTouch:"Aloita vetäminen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vetäminen napsauttamalla.",dragItem:e=>`Vedä kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Vedä ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Vedä painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Vedä painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Vedä pitämällä painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.",dragStartedTouch:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.",endDragTouch:"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.",endDragVirtual:"Vedetään. Peruuta vetäminen napsauttamalla.",insertAfter:e=>`Lisää kohteen ${e.itemText} jälkeen`,insertBefore:e=>`Lisää ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`};var gk={};gk={dragDescriptionKeyboard:"Appuyez sur Entrée pour commencer le déplacement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt + Entrée pour commencer à faire glisser.",dragDescriptionLongPress:"Appuyez de manière prolongée pour commencer à faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le déplacement.",dragDescriptionVirtual:"Cliquez pour commencer le déplacement.",dragItem:e=>`Déplacer ${e.itemText}`,dragSelectedItems:(e,t)=>`Déplacer ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt + Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de manière prolongée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragStartedKeyboard:"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.",dragStartedTouch:"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.",dragStartedVirtual:"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.",dropCanceled:"Dépôt annulé.",dropComplete:"Dépôt terminé.",dropDescriptionKeyboard:"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.",dropDescriptionTouch:"Touchez deux fois pour déposer.",dropDescriptionVirtual:"Cliquez pour déposer.",dropIndicator:"indicateur de dépôt",dropOnItem:e=>`Déposer sur ${e.itemText}`,dropOnRoot:"Déposer sur",endDragKeyboard:"Déplacement. Appuyez sur Entrée pour annuler le déplacement.",endDragTouch:"Déplacement. Touchez deux fois pour annuler le déplacement.",endDragVirtual:"Déplacement. Cliquez pour annuler le déplacement.",insertAfter:e=>`Insérer après ${e.itemText}`,insertBefore:e=>`Insérer avant ${e.itemText}`,insertBetween:e=>`Insérer entre ${e.beforeItemText} et ${e.afterItemText}`};var vk={};vk={dragDescriptionKeyboard:"הקש על Enter כדי להתחיל לגרור.",dragDescriptionKeyboardAlt:"הקש Alt + Enter כדי להתחיל לגרור.",dragDescriptionLongPress:"לחץ לחיצה ארוכה כדי להתחיל לגרור.",dragDescriptionTouch:"הקש פעמיים כדי להתחיל בגרירה.",dragDescriptionVirtual:"לחץ כדי להתחיל לגרור.",dragItem:e=>`גרור את ${e.itemText}`,dragSelectedItems:(e,t)=>`גרור ${t.plural(e.count,{one:()=>`פריט נבחר ${t.number(e.count)}`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}`,dragSelectedKeyboard:(e,t)=>`הקש על Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedKeyboardAlt:(e,t)=>`הקש Alt + Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedLongPress:(e,t)=>`לחץ לחיצה ארוכה כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragStartedKeyboard:"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.",dragStartedTouch:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.",dragStartedVirtual:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.",dropCanceled:"השחרור בוטל.",dropComplete:"השחרור הושלם.",dropDescriptionKeyboard:"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.",dropDescriptionTouch:"הקש פעמיים כדי לשחרר.",dropDescriptionVirtual:"לחץ כדי לשחרר.",dropIndicator:"מחוון שחרור",dropOnItem:e=>`שחרר על ${e.itemText}`,dropOnRoot:"שחרר על",endDragKeyboard:"גורר. הקש על Enter כדי לבטל את הגרירה.",endDragTouch:"גורר. הקש פעמיים כדי לבטל את הגרירה.",endDragVirtual:"גורר. לחץ כדי לבטל את הגרירה.",insertAfter:e=>`הוסף אחרי ${e.itemText}`,insertBefore:e=>`הוסף לפני ${e.itemText}`,insertBetween:e=>`הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`};var yk={};yk={dragDescriptionKeyboard:"Pritisnite Enter da biste počeli povlačiti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za početak povlačenja.",dragDescriptionLongPress:"Dugo pritisnite za početak povlačenja.",dragDescriptionTouch:"Dvaput dodirnite da biste počeli povlačiti.",dragDescriptionVirtual:"Kliknite da biste počeli povlačiti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.",dragStartedTouch:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povlačenje je prekinuto.",dropComplete:"Ispuštanje je dovršeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispuštanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.",endDragTouch:"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.",endDragVirtual:"Povlačenje. Kliknite da biste prekinuli povlačenje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`};var bk={};bk={dragDescriptionKeyboard:"Nyomja le az Enter billentyűt a húzás megkezdéséhez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",dragDescriptionLongPress:"Hosszan nyomja meg a húzás elindításához.",dragDescriptionTouch:"Koppintson duplán a húzás megkezdéséhez.",dragDescriptionVirtual:"Kattintson a húzás megkezdéséhez.",dragItem:e=>`${e.itemText} húzása`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzása`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billentyűket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragStartedKeyboard:"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.",dragStartedTouch:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.",dragStartedVirtual:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.",dropCanceled:"Elengedés megszakítva.",dropComplete:"Elengedés teljesítve.",dropDescriptionKeyboard:"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.",dropDescriptionTouch:"Koppintson duplán az elengedéshez.",dropDescriptionVirtual:"Kattintson az elengedéshez.",dropIndicator:"elengedésjelző",dropOnItem:e=>`Elengedés erre: ${e.itemText}`,dropOnRoot:"Elengedés erre:",endDragKeyboard:"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.",endDragTouch:"Húzás folyamatban. Koppintson duplán a húzás megszakításához.",endDragVirtual:"Húzás folyamatban. Kattintson a húzás megszakításához.",insertAfter:e=>`Beszúrás ${e.itemText} után`,insertBefore:e=>`Beszúrás ${e.itemText} elé`,insertBetween:e=>`Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`};var xk={};xk={dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var Dk={};Dk={dragDescriptionKeyboard:"Enter キーを押してドラッグを開始してください。",dragDescriptionKeyboardAlt:"Alt+Enter キーを押してドラッグを開始します。",dragDescriptionLongPress:"長押ししてドラッグを開始します。",dragDescriptionTouch:"ダブルタップしてドラッグを開始します。",dragDescriptionVirtual:"クリックしてドラッグを開始します。",dragItem:e=>`${e.itemText} をドラッグ`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の選択項目`,other:()=>`${t.number(e.count)} 個の選択項目`})} をドラッグ`,dragSelectedKeyboard:(e,t)=>`Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedLongPress:(e,t)=>`長押しして、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragStartedKeyboard:"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。",dragStartedTouch:"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。",dragStartedVirtual:"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。",dropCanceled:"ドロップがキャンセルされました。",dropComplete:"ドロップが完了しました。",dropDescriptionKeyboard:"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。",dropDescriptionTouch:"ダブルタップしてドロップします。",dropDescriptionVirtual:"クリックしてドロップします。",dropIndicator:"ドロップインジケーター",dropOnItem:e=>`${e.itemText} にドロップ`,dropOnRoot:"ドロップ場所",endDragKeyboard:"ドラッグしています。Enter キーを押してドラッグをキャンセルします。",endDragTouch:"ドラッグしています。ダブルタップしてドラッグをキャンセルします。",endDragVirtual:"ドラッグしています。クリックしてドラッグをキャンセルします。",insertAfter:e=>`${e.itemText} の後に挿入`,insertBefore:e=>`${e.itemText} の前に挿入`,insertBetween:e=>`${e.beforeItemText} と ${e.afterItemText} の間に挿入`};var $k={};$k={dragDescriptionKeyboard:"드래그를 시작하려면 Enter를 누르세요.",dragDescriptionKeyboardAlt:"드래그를 시작하려면 Alt + Enter를 누르십시오.",dragDescriptionLongPress:"드래그를 시작하려면 길게 누르십시오.",dragDescriptionTouch:"드래그를 시작하려면 더블 탭하세요.",dragDescriptionVirtual:"드래그를 시작하려면 클릭하세요.",dragItem:e=>`${e.itemText} 드래그`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})} 드래그`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Enter를 누르십시오.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Alt + Enter를 누르십시오.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 길게 누르십시오.`,dragStartedKeyboard:"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.",dragStartedTouch:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.",dragStartedVirtual:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.",dropCanceled:"드롭이 취소되었습니다.",dropComplete:"드롭이 완료되었습니다.",dropDescriptionKeyboard:"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.",dropDescriptionTouch:"더블 탭하여 드롭하세요.",dropDescriptionVirtual:"드롭하려면 클릭하세요.",dropIndicator:"드롭 표시기",dropOnItem:e=>`${e.itemText}에 드롭`,dropOnRoot:"드롭 대상",endDragKeyboard:"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.",endDragTouch:"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.",endDragVirtual:"드래그 중입니다. 드래그를 취소하려면 클릭하세요.",insertAfter:e=>`${e.itemText} 이후에 삽입`,insertBefore:e=>`${e.itemText} 이전에 삽입`,insertBetween:e=>`${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`};var Ek={};Ek={dragDescriptionKeyboard:"Paspauskite „Enter“, kad pradėtumėte vilkti.",dragDescriptionKeyboardAlt:"Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",dragDescriptionLongPress:"Palaikykite nuspaudę, kad pradėtumėte vilkti.",dragDescriptionTouch:"Palieskite dukart, kad pradėtumėte vilkti.",dragDescriptionVirtual:"Spustelėkite, kad pradėtumėte vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite „Enter“, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite „Alt + Enter“, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaudę palaikykite, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.",dragStartedTouch:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.",dragStartedVirtual:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.",dropCanceled:"Numetimas atšauktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.",dropDescriptionTouch:"Palieskite dukart, kad numestumėte.",dropDescriptionVirtual:"Spustelėkite, kad numestumėte.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.",endDragTouch:"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.",endDragVirtual:"Velkama. Spustelėkite, kad atšauktumėte vilkimą.",insertAfter:e=>`Įterpti po ${e.itemText}`,insertBefore:e=>`Įterpti prieš ${e.itemText}`,insertBetween:e=>`Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var Ck={};Ck={dragDescriptionKeyboard:"Nospiediet Enter, lai sāktu vilkšanu.",dragDescriptionKeyboardAlt:"Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",dragDescriptionLongPress:"Turiet nospiestu, lai sāktu vilkšanu.",dragDescriptionTouch:"Veiciet dubultskārienu, lai sāktu vilkšanu.",dragDescriptionVirtual:"Noklikšķiniet, lai sāktu vilkšanu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet taustiņu Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet taustiņu kombināciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragStartedKeyboard:"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.",dragStartedVirtual:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.",dropCanceled:"Nomešana atcelta.",dropComplete:"Nomešana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.",dropDescriptionTouch:"Veiciet dubultskārienu, lai nomestu.",dropDescriptionVirtual:"Noklikšķiniet, lai nomestu.",dropIndicator:"nomešanas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.",endDragTouch:"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.",endDragVirtual:"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.",insertAfter:e=>`Ievietojiet pēc ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var wk={};wk={dragDescriptionKeyboard:"Trykk på Enter for å begynne å dra.",dragDescriptionKeyboardAlt:"Trykk på Alt + Enter for å begynne å dra.",dragDescriptionLongPress:"Trykk lenge for å begynne å dra.",dragDescriptionTouch:"Dobbelttrykk for å begynne å dra.",dragDescriptionVirtual:"Klikk for å begynne å dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk på Alt + Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.",dragStartedTouch:"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.",dragStartedVirtual:"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.",dropCanceled:"Avbrøt slipping.",dropComplete:"Slippingen er fullført.",dropDescriptionKeyboard:"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for å slippe.",dropDescriptionVirtual:"Klikk for å slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp på ${e.itemText}`,dropOnRoot:"Slipp på",endDragKeyboard:"Drar. Trykk på Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn før ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var Ak={};Ak={dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen vóór ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var Sk={};Sk={dragDescriptionKeyboard:"Naciśnij Enter, aby rozpocząć przeciąganie.",dragDescriptionKeyboardAlt:"Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",dragDescriptionLongPress:"Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocząć przeciąganie.",dragDescriptionVirtual:"Kliknij, aby rozpocząć przeciąganie.",dragItem:e=>`Przeciągnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeciągnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych elementów`})}`,dragSelectedKeyboard:(e,t)=>`Naciśnij Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naciśnij Alt + Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedLongPress:(e,t)=>`Naciśnij i przytrzymaj, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragStartedKeyboard:"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.",dragStartedTouch:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F",dragStartedVirtual:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zakończono upuszczanie.",dropDescriptionKeyboard:"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upuścić.",dropDescriptionVirtual:"Kliknij, aby upuścić.",dropIndicator:"wskaźnik upuszczenia",dropOnItem:e=>`Upuść na ${e.itemText}`,dropOnRoot:"Upuść",endDragKeyboard:"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.",endDragTouch:"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.",endDragVirtual:"Przeciąganie. Kliknij, aby anulować przeciąganie.",insertAfter:e=>`Umieść za ${e.itemText}`,insertBefore:e=>`Umieść przed ${e.itemText}`,insertBetween:e=>`Umieść między ${e.beforeItemText} i ${e.afterItemText}`};var Tk={};Tk={dragDescriptionKeyboard:"Pressione Enter para começar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para começar a arrastar.",dragDescriptionLongPress:"Pressione e segure para começar a arrastar.",dragDescriptionTouch:"Toque duas vezes para começar a arrastar.",dragDescriptionVirtual:"Clique para começar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Liberação cancelada.",dropComplete:"Liberação concluída.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de liberação",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir após ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var Pk={};Pk={dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para começar a arrastar.",dragDescriptionTouch:"Faça duplo toque para começar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Faça duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Faça duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var _k={};_k={dragDescriptionKeyboard:"Apăsați pe Enter pentru a începe glisarea.",dragDescriptionKeyboardAlt:"Apăsați pe Alt + Enter pentru a începe glisarea.",dragDescriptionLongPress:"Apăsați lung pentru a începe glisarea.",dragDescriptionTouch:"Atingeți de două ori pentru a începe să glisați.",dragDescriptionVirtual:"Faceți clic pentru a începe glisarea.",dragItem:e=>`Glisați ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisați ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Apăsați pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Apăsați pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Apăsați lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.",dragStartedTouch:"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.",dragStartedVirtual:"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.",dropCanceled:"Fixare anulată.",dropComplete:"Fixare finalizată.",dropDescriptionKeyboard:"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atingeți de două ori pentru a fixa.",dropDescriptionVirtual:"Faceți clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixați pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se glisează. Apăsați pe Enter pentru a anula glisarea.",endDragTouch:"Se glisează. Atingeți de două ori pentru a anula glisarea.",endDragVirtual:"Se glisează. Faceți clic pentru a anula glisarea.",insertAfter:e=>`Inserați după ${e.itemText}`,insertBefore:e=>`Inserați înainte de ${e.itemText}`,insertBetween:e=>`Inserați între ${e.beforeItemText} și ${e.afterItemText}`};var Bk={};Bk={dragDescriptionKeyboard:"Нажмите клавишу Enter для начала перетаскивания.",dragDescriptionKeyboardAlt:"Нажмите Alt + Enter, чтобы начать перетаскивать.",dragDescriptionLongPress:"Нажмите и удерживайте, чтобы начать перетаскивать.",dragDescriptionTouch:"Дважды нажмите для начала перетаскивания.",dragDescriptionVirtual:"Щелкните для начала перетаскивания.",dragItem:e=>`Перетащить ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетащить ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранный элемент`,other:()=>`${t.number(e.count)} выбранных элем`})}`,dragSelectedKeyboard:(e,t)=>`Нажмите Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Нажмите Alt + Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedLongPress:(e,t)=>`Нажмите и удерживайте для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragStartedKeyboard:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.",dragStartedTouch:"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.",dragStartedVirtual:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.",dropCanceled:"Перетаскивание отменено.",dropComplete:"Перетаскивание завершено.",dropDescriptionKeyboard:"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.",dropDescriptionTouch:"Дважды нажмите, чтобы применить перетаскивание.",dropDescriptionVirtual:"Щелкните, чтобы применить перетаскивание.",dropIndicator:"индикатор перетаскивания",dropOnItem:e=>`Перетащить на ${e.itemText}`,dropOnRoot:"Перетащить на",endDragKeyboard:"Перетаскивание. Нажмите клавишу Enter для отмены.",endDragTouch:"Перетаскивание. Дважды нажмите для отмены.",endDragVirtual:"Перетаскивание. Щелкните для отмены.",insertAfter:e=>`Вставить после ${e.itemText}`,insertBefore:e=>`Вставить перед ${e.itemText}`,insertBetween:e=>`Вставить между ${e.beforeItemText} и ${e.afterItemText}`};var Fk={};Fk={dragDescriptionKeyboard:"Stlačením klávesu Enter začnete presúvanie.",dragDescriptionKeyboardAlt:"Stlačením klávesov Alt + Enter začnete presúvanie.",dragDescriptionLongPress:"Dlhým stlačením začnete presúvanie.",dragDescriptionTouch:"Dvojitým kliknutím začnete presúvanie.",dragDescriptionVirtual:"Kliknutím začnete presúvanie.",dragItem:e=>`Presunúť položku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presunúť ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybraté položky`})}`,dragSelectedKeyboard:(e,t)=>`Stlačením klávesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stlačením klávesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlhým stlačením presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragStartedKeyboard:"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.",dragStartedTouch:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.",dragStartedVirtual:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.",dropCanceled:"Umiestnenie zrušené.",dropComplete:"Umiestnenie dokončené.",dropDescriptionKeyboard:"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.",dropDescriptionTouch:"Dvojitým kliknutím umiestnite položku.",dropDescriptionVirtual:"Kliknutím umiestnite položku.",dropIndicator:"indikátor umiestnenia",dropOnItem:e=>`Umiestniť na položku ${e.itemText}`,dropOnRoot:"Umiestniť na",endDragKeyboard:"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.",endDragTouch:"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.",endDragVirtual:"Prebieha presúvanie.",insertAfter:e=>`Vložiť za položku ${e.itemText}`,insertBefore:e=>`Vložiť pred položku ${e.itemText}`,insertBetween:e=>`Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`};var kk={};kk={dragDescriptionKeyboard:"Pritisnite tipko Enter za začetek vlečenja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za začetek vlečenja.",dragDescriptionLongPress:"Pritisnite in zadržite za začetek vlečenja.",dragDescriptionTouch:"Dvotapnite za začetek vlečenja.",dragDescriptionVirtual:"Kliknite za začetek vlečenja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadržite, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.",dragStartedTouch:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je končan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.",endDragTouch:"Vlečenje. Dvotapnite za preklic vlečenja.",endDragVirtual:"Vlečenje. Kliknite, da prekličete vlečenje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var Mk={};Mk={dragDescriptionKeyboard:"Pritisnite Enter da biste započeli prevlačenje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste započeli prevlačenje.",dragDescriptionLongPress:"Pritisnite dugo da biste započeli prevlačenje.",dragDescriptionTouch:"Dvaput dodirnite da biste započeli prevlačenje.",dragDescriptionVirtual:"Kliknite da biste započeli prevlačenje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.",dragStartedVirtual:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.",dropCanceled:"Otpuštanje je otkazano.",dropComplete:"Prevlačenje je završeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.",dropDescriptionTouch:"Dvaput dodirnite za otpuštanje.",dropDescriptionVirtual:"Kliknite za otpuštanje.",dropIndicator:"Indikator otpuštanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.",endDragTouch:"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.",endDragVirtual:"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite između ${e.beforeItemText} i ${e.afterItemText}`};var Rk={};Rk={dragDescriptionKeyboard:"Tryck på enter för att börja dra.",dragDescriptionKeyboardAlt:"Tryck på Alt + Retur för att börja dra.",dragDescriptionLongPress:"Tryck länge för att börja dra.",dragDescriptionTouch:"Dubbeltryck för att börja dra.",dragDescriptionVirtual:"Klicka för att börja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck på Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck på Alt + Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck länge för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.",dragStartedTouch:"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.",dragStartedVirtual:"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.",dropCanceled:"Släppåtgärd avbröts.",dropComplete:"Släppåtgärd klar.",dropDescriptionKeyboard:"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.",dropDescriptionTouch:"Dubbeltryck för att släppa.",dropDescriptionVirtual:"Klicka för att släppa.",dropIndicator:"släppindikator",dropOnItem:e=>`Släpp på ${e.itemText}`,dropOnRoot:"Släpp på",endDragKeyboard:"Drar. Tryck på enter för att avbryta dragåtgärd.",endDragTouch:"Drar. Dubbeltryck för att avbryta dragåtgärd.",endDragVirtual:"Drar. Klicka för att avbryta dragåtgärd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga före ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var Ik={};Ik={dragDescriptionKeyboard:"Sürüklemeyi başlatmak için Enter'a basın.",dragDescriptionKeyboardAlt:"Sürüklemeyi başlatmak için Alt + Enter'a basın.",dragDescriptionLongPress:"Sürüklemeye başlamak için uzun basın.",dragDescriptionTouch:"Sürüklemeyi başlatmak için çift tıklayın.",dragDescriptionVirtual:"Sürüklemeyi başlatmak için tıklayın.",dragItem:e=>`${e.itemText}’i sürükle`,dragSelectedItems:(e,t)=>`Sürükle ${t.plural(e.count,{one:()=>`${t.number(e.count)} seçili öge`,other:()=>`${t.number(e.count)} seçili öge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Enter'a basın.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için uzun basın.`,dragStartedKeyboard:"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.",dragStartedTouch:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.",dragStartedVirtual:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.",dropCanceled:"Bırakma iptal edildi.",dropComplete:"Bırakma tamamlandı.",dropDescriptionKeyboard:"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.",dropDescriptionTouch:"Bırakmak için çift tıklayın.",dropDescriptionVirtual:"Bırakmak için tıklayın.",dropIndicator:"bırakma göstergesi",dropOnItem:e=>`${e.itemText} üzerine bırak`,dropOnRoot:"Bırakın",endDragKeyboard:"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.",endDragTouch:"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.",endDragVirtual:"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.",insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den önce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`};var Ok={};Ok={dragDescriptionKeyboard:"Натисніть Enter, щоб почати перетягування.",dragDescriptionKeyboardAlt:"Натисніть Alt + Enter, щоб почати перетягування.",dragDescriptionLongPress:"Натисніть і утримуйте, щоб почати перетягування.",dragDescriptionTouch:"Натисніть двічі, щоб почати перетягування.",dragDescriptionVirtual:"Натисніть, щоб почати перетягування.",dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.",dragStartedTouch:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.",dragStartedVirtual:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.",dropCanceled:"Перетягування скасовано.",dropComplete:"Перетягування завершено.",dropDescriptionKeyboard:"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.",dropDescriptionTouch:"Натисніть двічі, щоб перетягнути.",dropDescriptionVirtual:"Натисніть, щоб перетягнути.",dropIndicator:"індикатор перетягування",dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:"Перетягнути на",endDragKeyboard:"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.",endDragTouch:"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.",endDragVirtual:"Триває перетягування. Натисніть, щоб скасувати перетягування.",insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`};var Lk={};Lk={dragDescriptionKeyboard:"按 Enter 开始拖动。",dragDescriptionKeyboardAlt:"按 Alt + Enter 开始拖动。",dragDescriptionLongPress:"长按以开始拖动。",dragDescriptionTouch:"双击开始拖动。",dragDescriptionVirtual:"单击开始拖动。",dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:"已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。",dragStartedTouch:"已开始拖动。导航到放置目标,然后双击放置。",dragStartedVirtual:"已开始拖动。导航到放置目标,然后单击或按 Enter 放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 放置。按 Escape 取消拖动。",dropDescriptionTouch:"双击放置。",dropDescriptionVirtual:"单击放置。",dropIndicator:"放置标记",dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:"放置于",endDragKeyboard:"正在拖动。按 Enter 取消拖动。",endDragTouch:"正在拖动。双击取消拖动。",endDragVirtual:"正在拖动。单击取消拖动。",insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`};var Vk={};Vk={dragDescriptionKeyboard:"按 Enter 鍵以開始拖曳。",dragDescriptionKeyboardAlt:"按 Alt+Enter 鍵以開始拖曳。",dragDescriptionLongPress:"長按以開始拖曳。",dragDescriptionTouch:"輕點兩下以開始拖曳。",dragDescriptionVirtual:"按一下滑鼠以開始拖曳。",dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:"已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。",dragStartedTouch:"已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。",dragStartedVirtual:"已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。",dropDescriptionTouch:"輕點兩下以放置。",dropDescriptionVirtual:"按一下滑鼠以放置。",dropIndicator:"放置指示器",dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:"放置在",endDragKeyboard:"拖曳中。按 Enter 鍵以取消拖曳。",endDragTouch:"拖曳中。輕點兩下以取消拖曳。",endDragVirtual:"拖曳中。按一下滑鼠以取消拖曳。",insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`};var Nk={};Nk={"ar-AE":ok,"bg-BG":sk,"cs-CZ":uk,"da-DK":lk,"de-DE":ck,"el-GR":dk,"en-US":fk,"es-ES":hk,"et-EE":pk,"fi-FI":mk,"fr-FR":gk,"he-IL":vk,"hr-HR":yk,"hu-HU":bk,"it-IT":xk,"ja-JP":Dk,"ko-KR":$k,"lt-LT":Ek,"lv-LV":Ck,"nb-NO":wk,"nl-NL":Ak,"pl-PL":Sk,"pt-BR":Tk,"pt-PT":Pk,"ro-RO":_k,"ru-RU":Bk,"sk-SK":Fk,"sl-SI":kk,"sr-SP":Mk,"sv-SE":Rk,"tr-TR":Ik,"uk-UA":Ok,"zh-CN":Lk,"zh-TW":Vk};function FJ(e){return e&&e.__esModule?e.default:e}const kJ={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function MJ(){let e=Ta(FJ(Nk),"@react-aria/dnd"),t=CJ(),n=BJ();return{dropProps:{...fc(n?e.format(kJ[t]):""),onClick:()=>{}}}}const RJ=800;function IJ(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=I.useState(!1),a=I.useRef({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:ri.all,dropActivateTimer:void 0}).current,o=E=>{if(i(!0),typeof e.onDropEnter=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:E.clientX-T.x,y:E.clientY-T.y})}},s=E=>{if(i(!1),typeof e.onDropExit=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:E.clientX-T.x,y:E.clientY-T.y})}},l=E=>{E.preventDefault(),E.stopPropagation();let T=Sw(E);if(E.clientX===a.x&&E.clientY===a.y&&T===a.allowedOperations){E.dataTransfer.dropEffect=a.dropEffect;return}a.x=E.clientX,a.y=E.clientY;let P=a.dropEffect;if(T!==a.allowedOperations){let F=W4(T),q=F[0];if(typeof e.getDropOperation=="function"){let te=new Ch(E.dataTransfer);q=wh(T,e.getDropOperation(te,F))}a.dropEffect=U4[q]||"none"}if(typeof e.getDropOperationForPoint=="function"){let F=new Ch(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te=wh(T,e.getDropOperationForPoint(F,W4(T),a.x-q.x,a.y-q.y));a.dropEffect=U4[te]||"none"}if(a.allowedOperations=T,E.dataTransfer.dropEffect=a.dropEffect,a.dropEffect==="none"&&P!=="none"?s(E):a.dropEffect!=="none"&&P==="none"&&o(E),typeof e.onDropMove=="function"&&a.dropEffect!=="none"){let F=E.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:a.x-F.x,y:a.y-F.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate=="function"&&a.dropEffect!=="none"){let F=e.onDropActivate,q=E.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{F({type:"dropactivate",x:a.x-q.x,y:a.y-q.y})},RJ)}},f=E=>{if(E.preventDefault(),E.stopPropagation(),a.dragOverElements.add(E.target),a.dragOverElements.size>1)return;let T=Sw(E),P=W4(T),F=P[0];if(typeof e.getDropOperation=="function"){let q=new Ch(E.dataTransfer);F=wh(T,e.getDropOperation(q,P))}if(typeof e.getDropOperationForPoint=="function"){let q=new Ch(E.dataTransfer),te=E.currentTarget.getBoundingClientRect();F=wh(T,e.getDropOperationForPoint(q,P,E.clientX-te.x,E.clientY-te.y))}a.x=E.clientX,a.y=E.clientY,a.allowedOperations=T,a.dropEffect=U4[F]||"none",E.dataTransfer.dropEffect=a.dropEffect,F!=="cancel"&&o(E)},h=E=>{E.preventDefault(),E.stopPropagation(),a.dragOverElements.delete(E.target);for(let T of a.dragOverElements)E.currentTarget.contains(T)||a.dragOverElements.delete(T);a.dragOverElements.size>0||(a.dropEffect!=="none"&&s(E),clearTimeout(a.dropActivateTimer))},m=E=>{if(E.preventDefault(),E.stopPropagation(),a.dropEffect,typeof e.onDrop=="function"){let P=nk[a.dropEffect],F=wJ(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te={type:"drop",x:E.clientX-q.x,y:E.clientY-q.y,items:F,dropOperation:P};e.onDrop(te)}let T={...ak};a.dragOverElements.clear(),s(E),clearTimeout(a.dropActivateTimer),T.draggingCollectionRef==null||PJ(T)},g=cn(E=>{typeof e.onDropEnter=="function"&&e.onDropEnter(E)}),b=cn(E=>{typeof e.onDropExit=="function"&&e.onDropExit(E)}),$=cn(E=>{typeof e.onDropActivate=="function"&&e.onDropActivate(E)}),x=cn(E=>{typeof e.onDrop=="function"&&e.onDrop(E)}),A=cn((E,T)=>e.getDropOperation?e.getDropOperation(E,T):T[0]),{ref:w}=e;hn(()=>{if(!(n||!w.current))return _J({element:w.current,getDropOperation:A,onDropEnter(E){i(!0),g(E)},onDropExit(E){i(!1),b(E)},onDrop:x,onDropActivate:$})},[n,w,A,g,b,x,$]);let{dropProps:C}=MJ();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&C,onDragEnter:f,onDragOver:l,onDragLeave:h,onDrop:m},dropButtonProps:{...t&&C},isDropTarget:r}}function Sw(e){let t=tk[e.dataTransfer.effectAllowed];Ew&&(t&=Ew);let n=ri.none;return oo()?(e.altKey&&(n|=ri.copy),e.ctrlKey&&!Db()&&(n|=ri.link),e.metaKey&&(n|=ri.move)):(e.altKey&&(n|=ri.link),e.shiftKey&&(n|=ri.move),e.ctrlKey&&(n|=ri.copy)),n?t&n:t}function W4(e){let t=[];return e&ri.move&&t.push("move"),e&ri.copy&&t.push("copy"),e&ri.link&&t.push("link"),t}function wh(e,t){let n=ri[t];return e&n?t:"cancel"}function ql(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function V3(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function fu(e,t,n,r,i){let a=e;return t.years?a=FZ(e):t.months?a=gf(e):t.weeks&&(a=jd(e,n)),Wd(e,a,t,n,r,i)}function N3(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function Wd(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=Mb(t,fu(qr(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=kb(t,N3(qr(a),n,r));o&&(t=o)}return t}function fs(e,t,n){if(t){let r=Mb(e,qr(t));r&&(e=r)}if(n){let r=kb(e,qr(n));r&&(e=r)}return e}function jk(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Kk(e){let t=I.useMemo(()=>new Gi(e.locale),[e.locale]),n=I.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:f,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=I.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,x]=Ai(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=I.useMemo(()=>$?kn(qr($),g):null,[$,g]),w=I.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=I.useMemo(()=>e.focusedValue?fs(kn(qr(e.focusedValue),g),o,s):void 0,[e.focusedValue,g,o,s]),E=I.useMemo(()=>fs(e.defaultFocusedValue?kn(qr(e.defaultFocusedValue),g):A||kn(wm(w),g),o,s),[e.defaultFocusedValue,A,w,g,o,s]),[T,P]=Ai(C,E,e.onFocusChange),[F,q]=I.useState(()=>{switch(l){case"start":return fu(T,a,r,o,s);case"end":return N3(T,a,r,o,s);case"center":default:return V3(T,a,r,o,s)}}),[te,se]=I.useState(e.autoFocus||!1),ae=I.useMemo(()=>{let oe={...a};return oe.days?oe.days--:oe.days=-1,F.add(oe)},[F,a]),[O,Ee]=I.useState(g);if(!Cm(g,O)){let oe=kn(T,g);q(V3(oe,a,r,o,s)),P(oe),Ee(g)}ql(T,o,s)?P(fs(T,o,s)):T.compare(F)<0?q(N3(T,a,r,o,s)):T.compare(ae)>0&&q(fu(T,a,r,o,s));function be(oe){oe=fs(oe,o,s),P(oe)}function z(oe){if(!e.isDisabled&&!e.isReadOnly){let le=oe;if(le===null){x(null);return}if(le=fs(le,o,s),le=jk(le,F,f),!le)return;le=kn(le,($==null?void 0:$.calendar)||new Ur),$&&"hour"in $?x($.set(le)):x(le)}}let G=I.useMemo(()=>A?f&&f(A)?!0:ql(A,o,s):!1,[A,f,o,s]),V=e.isInvalid||e.validationState==="invalid"||G,R=V?"invalid":null,K=I.useMemo(()=>h==="visible"?a:H4(a),[h,a]);var fe,M;return{isDisabled:(fe=e.isDisabled)!==null&&fe!==void 0?fe:!1,isReadOnly:(M=e.isReadOnly)!==null&&M!==void 0?M:!1,value:A,setValue:z,visibleRange:{start:F,end:ae},minValue:o,maxValue:s,focusedDate:T,timeZone:w,validationState:R,isValueInvalid:V,setFocusedDate(oe){be(oe),se(!0)},focusNextDay(){be(T.add({days:1}))},focusPreviousDay(){be(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&be(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&be(T.subtract({weeks:1}))},focusNextPage(){let oe=F.add(K);P(fs(T.add(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusPreviousPage(){let oe=F.subtract(K);P(fs(T.subtract(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusSectionStart(){a.days?be(F):a.weeks?be(jd(T,r)):(a.months||a.years)&&be(gf(T))},focusSectionEnd(){a.days?be(ae):a.weeks?be(RZ(T,r)):(a.months||a.years)&&be(x3(T))},focusNextSection(oe){if(!oe&&!a.days){be(T.add(H4(a)));return}a.days?this.focusNextPage():a.weeks?be(T.add({months:1})):(a.months||a.years)&&be(T.add({years:1}))},focusPreviousSection(oe){if(!oe&&!a.days){be(T.subtract(H4(a)));return}a.days?this.focusPreviousPage():a.weeks?be(T.subtract({months:1})):(a.months||a.years)&&be(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||z(T)},selectDate(oe){z(oe)},isFocused:te,setFocused:se,isInvalid(oe){return ql(oe,o,s)},isSelected(oe){return A!=null&&er(oe,A)&&!this.isCellDisabled(oe)&&!this.isCellUnavailable(oe)},isCellFocused(oe){return te&&T&&er(oe,T)},isCellDisabled(oe){return e.isDisabled||oe.compare(F)<0||oe.compare(ae)>0||this.isInvalid(oe)},isCellUnavailable(oe){return e.isDateUnavailable?e.isDateUnavailable(oe):!1},isPreviousVisibleRangeInvalid(){let oe=F.subtract({days:1});return er(oe,F)||this.isInvalid(oe)},isNextVisibleRangeInvalid(){let oe=ae.add({days:1});return er(oe,ae)||this.isInvalid(oe)},getDatesInWeek(oe,le=F){let Se=le.add({weeks:oe}),_e=[];Se=jd(Se,r,m);let Be=Fb(Se,r,m);for(let Ge=0;Ge<Be;Ge++)_e.push(null);for(;_e.length<7;){_e.push(Se);let Ge=Se.add({days:1});if(er(Se,Ge))break;Se=Ge}for(;_e.length<7;)_e.push(null);return _e}}}function H4(e){let t={...e};for(let n in e)t[n]=1;return t}function OJ(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...f}=e,[h,m]=Ai(t,n||null,r),[g,b]=I.useState(null),$="center";if(h&&h.start&&h.end){let K=V3(qr(h.start),o,a,s,l).add(o).subtract({days:1});h.end.compare(K)>0&&($="start")}let x=I.useRef(null),[A,w]=I.useState(null),C=I.useMemo(()=>Mb(s,A==null?void 0:A.start),[s,A]),E=I.useMemo(()=>kb(l,A==null?void 0:A.end),[l,A]),T=Kk({...f,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:o,minValue:C,maxValue:E,selectionAlignment:e.selectionAlignment||$}),P=R=>{if(R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const K=Pw(R,T,-1),fe=Pw(R,T,1);x.current={start:K,end:fe},w(x.current)}else x.current=null,w(null)},[F,q]=I.useState(T.visibleRange);(!b3(T.visibleRange.start,F.start)||!b3(T.visibleRange.end,F.end))&&(P(g),q(T.visibleRange));let te=R=>{R?(b(R),P(R)):(b(null),P(null))},se=g?G4(g,T.focusedDate):h&&G4(h.start,h.end),ae=R=>{if(e.isReadOnly)return;const K=fs(R,C,E),fe=jk(K,T.visibleRange.start,e.isDateUnavailable);if(fe)if(!g)te(fe);else{let M=G4(g,fe);M&&m({start:Tw(M.start,h==null?void 0:h.start),end:Tw(M.end,h==null?void 0:h.end)}),te(null)}},[O,Ee]=I.useState(!1),{isDateUnavailable:be}=e,z=I.useMemo(()=>!h||g?!1:be&&(be(h.start)||be(h.end))?!0:ql(h.start,s,l)||ql(h.end,s,l),[be,h,g,s,l]),G=e.isInvalid||e.validationState==="invalid"||z;return{...T,value:h,setValue:m,anchorDate:g,setAnchorDate:te,highlightedRange:se,validationState:G?"invalid":null,isValueInvalid:G,selectFocusedDate(){ae(T.focusedDate)},selectDate:ae,highlightDate(R){g&&T.setFocusedDate(R)},isSelected(R){return!!(se&&R.compare(se.start)>=0&&R.compare(se.end)<=0&&!T.isCellDisabled(R)&&!T.isCellUnavailable(R))},isInvalid(R){var K,fe;return T.isInvalid(R)||ql(R,(K=x.current)===null||K===void 0?void 0:K.start,(fe=x.current)===null||fe===void 0?void 0:fe.end)},isDragging:O,setDragging:Ee}}function G4(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:qr(e),end:qr(t)})}function Tw(e,t){return e=kn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function Pw(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class j3{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let l of s.childNodes)n(l)};for(let s of t)n(s);let r=null,i=0,a=0;for(let[s,l]of this.keyMap)r?(r.nextKey=s,l.prevKey=r.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),(l.type==="section"||l.type==="item")&&a++,r=l,r.nextKey=void 0;this._size=a;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class ga extends Set{constructor(t,n,r){super(t),t instanceof ga?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function LJ(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function VJ(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=I.useRef(!1),[,s]=I.useState(!1),l=I.useRef(null),f=I.useRef(null),[,h]=I.useState(null),m=I.useMemo(()=>_w(e.selectedKeys),[e.selectedKeys]),g=I.useMemo(()=>_w(e.defaultSelectedKeys,new ga),[e.defaultSelectedKeys]),[b,$]=Ai(m,g,e.onSelectionChange),x=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,w]=I.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&w("replace");let C=I.useRef(i);return I.useEffect(()=>{i!==C.current&&(w(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:w,get isFocused(){return o.current},setFocused(E){o.current=E,s(E)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(E,T="first"){l.current=E,f.current=T,h(E)},selectedKeys:b,setSelectedKeys(E){(r||!LJ(E,b))&&$(E)},disabledKeys:x,disabledBehavior:a}}function _w(e,t){return e?e==="all"?"all":new ga(e):t}class Yb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&q4(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&q4(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ga([n],n,n);else{let o=this.state.selectedKeys;var i;let s=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new ga(o,s,n);var a;for(let l of this.getKeyRange(s,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?q4(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new ga(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new ga([n],n,n):new ga;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ga;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=nJ(Fm(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ga)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Yb(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function NJ(e){let{filter:t,layoutDelegate:n}=e,r=VJ(e),i=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=I.useCallback(f=>t?new j3(t(f)):new j3(f),[t]),o=I.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=tJ(e,a,o),l=I.useMemo(()=>new Yb(s,r,{layoutDelegate:n}),[s,r,n]);return jJ(s,l),{collection:s,disabledKeys:i,selectionManager:l}}function jJ(e,t){const n=I.useRef(null);I.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(w=>{const C=n.current.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==null),g=[...e.getKeys()].map(w=>{const C=e.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var a,o,s;let $=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((s=g==null?void 0:g.length)!==null&&s!==void 0?s:0)-1),x=null,A=!1;for(;$>=0;){if(!t.isDisabled(g[$].key)){x=g[$];break}if($<g.length-1&&!A)$++;else{A=!0;var l,f;$>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&($=(f=h==null?void 0:h.index)!==null&&f!==void 0?f:0),$--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function KJ(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=I.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:s}=NJ({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var h;let m=(h=f.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Zb(e){let[t,n]=Ai(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=I.useCallback(()=>{n(!0)},[n]),i=I.useCallback(()=>{n(!1)},[n]),a=I.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function zJ(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[s,l]=I.useState(!1),[f,h]=I.useState(!1),[m,g]=I.useState(null),b=Ae=>{e.onSelectionChange&&e.onSelectionChange(Ae),Ae===w&&(Se(),M())};var $;let{collection:x,selectionManager:A,selectedKey:w,setSelectedKey:C,selectedItem:E,disabledKeys:T}=KJ({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),[P,F]=Ai(e.inputValue,Bw(e.defaultInputValue,w,x)||"",e.onInputChange),[q]=I.useState(w),[te]=I.useState(P),se=x,ae=I.useMemo(()=>e.items!=null||!n?x:qJ(x,P,n),[x,P,n,e.items]),[O,Ee]=I.useState(ae),be=I.useRef("focus"),G=Zb({...e,onOpenChange:Ae=>{e.onOpenChange&&e.onOpenChange(Ae,Ae?be.current:void 0),A.setFocused(Ae),Ae||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),V=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";(i||ae.size>0||Qe&&se.size>0||e.items)&&(Qe&&!G.isOpen&&e.items===void 0&&l(!0),be.current=Fe,g(Ae),G.open())},R=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";!(i||ae.size>0||Qe&&se.size>0||e.items)&&!G.isOpen||(Qe&&!G.isOpen&&e.items===void 0&&l(!0),G.isOpen||(be.current=Fe),fe(Ae))},K=I.useCallback(()=>{Ee(s?se:ae)},[s,se,ae]),fe=I.useCallback((Ae=null)=>{G.isOpen&&K(),g(Ae),G.toggle()},[G,K]),M=I.useCallback(()=>{G.isOpen&&(K(),G.close())},[G,K]),[oe,le]=I.useState(P),Se=()=>{var Ae,Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";le(Qe),F(Qe)};var _e,Be;let Ge=I.useRef((Be=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Be!==void 0?Be:null);var Xe;let Ne=I.useRef(w!=null&&(Xe=(t=x.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");I.useEffect(()=>{var Ae;f&&(ae.size>0||i)&&!G.isOpen&&P!==oe&&r!=="manual"&&V(null,"input"),!s&&!i&&G.isOpen&&ae.size===0&&M(),w!=null&&w!==Ge.current&&M(),P!==oe&&(A.setFocusedKey(null),l(!1),P===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),w!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Se():oe!==P&&le(P);var Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";!f&&w!=null&&e.inputValue===void 0&&w===Ge.current&&Ne.current!==Qe&&(le(Qe),F(Qe)),Ge.current=w,Ne.current=Qe});let qe=bf({...e,value:I.useMemo(()=>({inputValue:P,selectedKey:w}),[P,w])}),ke=()=>{a&&w==null?je():Te()},je=()=>{Ge.current=null,C(null),M()},Te=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ae,Fe;(Ae=e.onSelectionChange)===null||Ae===void 0||Ae.call(e,w);var Qe;let et=w!=null&&(Qe=(Fe=x.getItem(w))===null||Fe===void 0?void 0:Fe.textValue)!==null&&Qe!==void 0?Qe:"";le(et),M()}else Se(),M()};const Ye=()=>{if(a){var Ae,Fe;const Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";P===Qe?Te():je()}else Te()};let ht=()=>{G.isOpen&&A.focusedKey!=null?w===A.focusedKey?Te():C(A.focusedKey):Ye()},Ht=I.useRef(P),xt=Ae=>{Ae?(Ht.current=P,r==="focus"&&!e.isReadOnly&&V(null,"focus")):(o&&Ye(),P!==Ht.current&&qe.commitValidation()),h(Ae)},_t=I.useMemo(()=>G.isOpen?s?se:ae:O,[G.isOpen,se,ae,s,O]);var Wr;let Jt=(Wr=e.defaultSelectedKey)!==null&&Wr!==void 0?Wr:q;var xe;return{...qe,...G,focusStrategy:m,toggle:R,open:V,close:Ye,selectionManager:A,selectedKey:w,defaultSelectedKey:Jt,setSelectedKey:C,disabledKeys:T,isFocused:f,setFocused:xt,selectedItem:E,collection:_t,inputValue:P,defaultInputValue:(xe=Bw(e.defaultInputValue,Jt,x))!==null&&xe!==void 0?xe:te,setInputValue:F,commit:ht,revert:ke}}function qJ(e,t,n){return new j3(zk(e,e,t,n))}function zk(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=zk(e,Fm(a,e),n,r);[...o].some(s=>s.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function Bw(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var qk={};qk={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Uk={};Uk={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Wk={};Wk={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Hk={};Hk={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Gk={};Gk={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Yk={};Yk={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var Zk={};Zk={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var Xk={};Xk={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var Qk={};Qk={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var Jk={};Jk={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var e9={};e9={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var t9={};t9={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var n9={};n9={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var r9={};r9={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var i9={};i9={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var a9={};a9={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var o9={};o9={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var s9={};s9={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var u9={};u9={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var l9={};l9={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var c9={};c9={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var d9={};d9={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var f9={};f9={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var h9={};h9={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var p9={};p9={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var m9={};m9={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var g9={};g9={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var v9={};v9={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var y9={};y9={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var b9={};b9={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var x9={};x9={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var D9={};D9={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var $9={};$9={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var E9={};E9={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var C9={};C9={"ar-AE":qk,"bg-BG":Uk,"cs-CZ":Wk,"da-DK":Hk,"de-DE":Gk,"el-GR":Yk,"en-US":Zk,"es-ES":Xk,"et-EE":Qk,"fi-FI":Jk,"fr-FR":e9,"he-IL":t9,"hr-HR":n9,"hu-HU":r9,"it-IT":i9,"ja-JP":a9,"ko-KR":o9,"lt-LT":s9,"lv-LV":u9,"nb-NO":l9,"nl-NL":c9,"pl-PL":d9,"pt-BR":f9,"pt-PT":h9,"ro-RO":p9,"ru-RU":m9,"sk-SK":g9,"sl-SI":v9,"sr-SP":y9,"sv-SE":b9,"tr-TR":x9,"uk-UA":D9,"zh-CN":$9,"zh-TW":E9};function UJ(e){return e&&e.__esModule?e.default:e}const w9=new Ps(UJ(C9));function A9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Pp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,f=[];if(l){let h=A9(),m=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||w9,g=new KP(h,m),b=new Gi(h,jo({},i)),$=b.resolvedOptions().timeZone;o&&t!=null&&f.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),a&&n!=null&&f.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),s&&f.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function WJ(e,t,n,r,i){var a;let o=Pp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=Pp((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),f=Ap(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||w9;f=Ap(f,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",A9())],validationDetails:{...Tm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const HJ={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},GJ={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function jo(e,t){e={...t.shouldForceLeadingZeros?GJ:HJ,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Al(e){return e&&"hour"in e?e:new vf}function S9(e,t){if(e===null)return null;if(e)return kn(e,t)}function ad(e,t,n,r){if(e)return S9(e,n);let i=kn(WP(r??mf()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?qr(i):r?i:Ea(i)}function Xb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=I.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function YJ(e){let t=Zb(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),[i]=I.useState(n),a=n||e.placeholderValue||null,[o,s]=Xb(a,e.granularity),l=n!=null?n.toDate(s??"UTC"):null,f=o==="hour"||o==="minute"||o==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=I.useState(null),[$,x]=I.useState(null);if(n&&(g=n,"hour"in n&&($=n)),a&&!(o in a))throw new Error("Invalid granularity "+o+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",w=I.useMemo(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,A]),{minValue:C,maxValue:E,isDateUnavailable:T}=e,P=I.useMemo(()=>Pp(n,C,E,T,w),[n,C,E,T,w]),F=bf({...e,value:n,builtinValidation:P}),q=F.displayValidation.isInvalid,te=e.validationState||(q?"invalid":null),se=(be,z)=>{r("timeZone"in z?z.set(qr(be)):Ea(be,z)),b(null),x(null),F.commitValidation()},ae=be=>{let z=typeof m=="function"?m():m;f?$||z?se(be,$||Al(e.defaultValue||e.placeholderValue)):b(be):(r(be),F.commitValidation()),z&&t.setOpen(!1)},O=be=>{g&&be?se(g,be):x(be)};var Ee;return{...F,value:n,defaultValue:(Ee=e.defaultValue)!==null&&Ee!==void 0?Ee:i,setValue:r,dateValue:g,timeValue:$,setDateValue:ae,setTimeValue:O,granularity:o,hasTime:f,...t,setOpen(be){!be&&!n&&g&&f&&se(g,$||Al(e.defaultValue||e.placeholderValue)),t.setOpen(be)},validationState:te,isInvalid:q,formatValue(be,z){if(!l)return"";let G=jo(z,w);return new Gi(be,G).format(l)},getDateFormatter(be,z){let G={...w,...z},V=jo({},G);return new Gi(be,V)}}}const ZJ=new Ps({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function XJ(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?ZJ.getStringForLocale(e,n):"––"}const qh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Fw={year:5,month:2,day:7,hour:2,minute:15,second:15},T9={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function P9(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:l,isDateUnavailable:f}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=Xb(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=I.useMemo(()=>new Gi(t),[t]),x=I.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var A;let[w,C]=Ai(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[E]=I.useState(w),T=I.useMemo(()=>{var ke;return(ke=S9(w,x))!==null&&ke!==void 0?ke:null},[w,x]),[P,F]=I.useState(()=>ad(e.placeholderValue,m,x,g)),q=T||P,te=x.identifier==="gregory"&&q.era==="BC",se=I.useMemo(()=>{var ke;return{granularity:m,maxGranularity:(ke=e.maxGranularity)!==null&&ke!==void 0?ke:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:te,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,te]),ae=I.useMemo(()=>jo({},se),[se]),O=I.useMemo(()=>new Gi(t,ae),[t,ae]),Ee=I.useMemo(()=>O.resolvedOptions(),[O]),be=I.useMemo(()=>O.formatToParts(new Date).filter(ke=>qh[ke.type]).reduce((ke,je)=>(ke[T9[je.type]||je.type]=!0,ke),{}),[O]),[z,G]=I.useState(()=>e.value||e.defaultValue?{...be}:{}),V=I.useRef(null),R=I.useRef(x);I.useEffect(()=>{Cm(x,R.current)||(R.current=x,F(ke=>Object.keys(z).length>0?kn(ke,x):ad(e.placeholderValue,m,x,g)))},[x,m,z,g,e.placeholderValue]),w&&Object.keys(z).length<Object.keys(be).length&&(z={...be},G(z)),w==null&&Object.keys(z).length===Object.keys(be).length&&(z={},G(z),F(ad(e.placeholderValue,m,x,g)));let K=T&&Object.keys(z).length>=Object.keys(be).length?T:P,fe=ke=>{if(e.isDisabled||e.isReadOnly)return;let je=Object.keys(z),Te=Object.keys(be);ke==null?(C(null),F(ad(e.placeholderValue,m,x,g)),G({})):je.length===0&&V.current==null||je.length>=Te.length||je.length===Te.length-1&&be.dayPeriod&&!z.dayPeriod&&V.current!=="dayPeriod"?(je.length===0&&(z={...be},G(z)),ke=kn(ke,(h==null?void 0:h.calendar)||new Ur),C(ke)):F(ke),V.current=null},M=I.useMemo(()=>K.toDate(b),[K,b]),oe=I.useMemo(()=>QJ(M,z,O,Ee,K,x,t,m),[M,z,O,Ee,K,x,t,m]);be.era&&z.year&&!z.era?(z.era=!0,G({...z})):!be.era&&z.era&&(delete z.era,G({...z}));let le=ke=>{z[ke]=!0,ke==="year"&&be.era&&(z.era=!0),G({...z})},Se=(ke,je)=>{if(z[ke])fe(JJ(K,ke,je,Ee));else{le(ke);let Te=Object.keys(z),Ye=Object.keys(be);(Te.length>=Ye.length||Te.length===Ye.length-1&&be.dayPeriod&&!z.dayPeriod)&&fe(K)}},_e=I.useMemo(()=>Pp(w,s,l,f,se),[w,s,l,f,se]),Be=bf({...e,value:w,builtinValidation:_e}),Ge=Be.displayValidation.isInvalid,Xe=e.validationState||(Ge?"invalid":null);var Ne,qe;return{...Be,value:T,defaultValue:(Ne=e.defaultValue)!==null&&Ne!==void 0?Ne:E,dateValue:M,calendar:x,setValue:fe,segments:oe,dateFormatter:O,validationState:Xe,isInvalid:Ge,granularity:m,maxGranularity:(qe=e.maxGranularity)!==null&&qe!==void 0?qe:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(ke){Se(ke,1)},decrement(ke){Se(ke,-1)},incrementPage(ke){Se(ke,Fw[ke]||1)},decrementPage(ke){Se(ke,-(Fw[ke]||1))},setSegment(ke,je){le(ke),fe(eee(K,ke,je,Ee))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ke=Object.keys(z),je=Object.keys(be);ke.length===je.length-1&&be.dayPeriod&&!z.dayPeriod&&(z={...be},G(z),fe(K.copy()))},clearSegment(ke){delete z[ke],V.current=ke,G({...z});let je=ad(e.placeholderValue,m,x,g),Te=K;if(ke==="dayPeriod"&&"hour"in K&&"hour"in je){let Ye=K.hour>=12,ht=je.hour>=12;Ye&&!ht?Te=K.set({hour:K.hour-12}):!Ye&&ht&&(Te=K.set({hour:K.hour+12}))}else ke==="hour"&&"hour"in K&&K.hour>=12&&z.dayPeriod?Te=K.set({hour:je.hour+12}):ke in K&&(Te=K.set({[ke]:je[ke]}));C(null),fe(Te)},formatValue(ke){if(!T)return"";let je=jo(ke,se);return new Gi(t,je).format(M)},getDateFormatter(ke,je){let Te={...se,...je},Ye=jo({},Te);return new Gi(ke,Ye)}}}function QJ(e,t,n,r,i,a,o,s){let l=["hour","minute","second"],f=n.formatToParts(e),h=[];for(let m of f){let g=T9[m.type]||m.type,b=qh[g];g==="era"&&a.getEras().length===1&&(b=!1);let $=qh[g]&&!t[g],x=qh[g]?XJ(g,m.value,o):null,A={type:g,text:$?x:m.value,...Ah(i,g,r),isPlaceholder:$,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"⁦",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===s&&h.push({type:"literal",text:"⁩",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===s?(h.push(A),h.push({type:"literal",text:"⁩",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function Ah(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:kZ(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:MZ(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function JJ(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function eee(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function tee(e){var t,n;let r=Zb(e),[i,a]=Ai(e.value,e.defaultValue||null,e.onChange),[o]=I.useState(i),[s,l]=I.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},l(s));let f=i||s,h=K=>{f=K||{start:null,end:null},l(f),ru(f)?a(f):a(null)},m=(f==null?void 0:f.start)||(f==null?void 0:f.end)||e.placeholderValue||null,[g,b]=Xb(m,e.granularity),$=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[w,C]=I.useState(null),[E,T]=I.useState(null);f&&ru(f)&&(w=f,"hour"in f.start&&(E=f));let P=(K,fe)=>{h({start:"timeZone"in fe.start?fe.start.set(qr(K.start)):Ea(K.start,fe.start),end:"timeZone"in fe.end?fe.end.set(qr(K.end)):Ea(K.end,fe.end)}),C(null),T(null),z.commitValidation()},F=K=>{let fe=typeof A=="function"?A():A;$?ru(K)&&(fe||E!=null&&E.start&&(E!=null&&E.end))?P(K,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}):C(K):ru(K)?(h(K),z.commitValidation()):C(K),fe&&r.setOpen(!1)},q=K=>{ru(w)&&ru(K)?P(w,K):T(K)},te=(f==null||(t=f.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&f.start.era==="BC"||(f==null||(n=f.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&f.end.era==="BC",se=I.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:te}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,te]),{minValue:ae,maxValue:O,isDateUnavailable:Ee}=e,be=I.useMemo(()=>WJ(f,ae,O,Ee,se),[f,ae,O,Ee,se]),z=bf({...e,value:i,name:I.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:be}),G=z.displayValidation.isInvalid,V=e.validationState||(G?"invalid":null);var R;return{...z,value:f,defaultValue:(R=e.defaultValue)!==null&&R!==void 0?R:o,setValue:h,dateRange:w,timeRange:E,granularity:g,hasTime:$,setDate(K,fe){var M,oe;F(K==="start"?{start:fe,end:(M=w==null?void 0:w.end)!==null&&M!==void 0?M:null}:{start:(oe=w==null?void 0:w.start)!==null&&oe!==void 0?oe:null,end:fe})},setTime(K,fe){var M,oe;q(K==="start"?{start:fe,end:(M=E==null?void 0:E.end)!==null&&M!==void 0?M:null}:{start:(oe=E==null?void 0:E.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateTime(K,fe){var M,oe;h(K==="start"?{start:fe,end:(M=f==null?void 0:f.end)!==null&&M!==void 0?M:null}:{start:(oe=f==null?void 0:f.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateRange:F,setTimeRange:q,...r,setOpen(K){!K&&!(f!=null&&f.start&&(f!=null&&f.end))&&ru(w)&&$&&P(w,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}),r.setOpen(K)},validationState:V,isInvalid:G,formatValue(K,fe){if(!f||!f.start||!f.end)return null;let M="timeZone"in f.start?f.start.timeZone:void 0,oe=e.granularity||(f.start&&"minute"in f.start?"minute":"day"),le="timeZone"in f.end?f.end.timeZone:void 0,Se=e.granularity||(f.end&&"minute"in f.end?"minute":"day"),_e=jo(fe,{granularity:oe,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:f.start.calendar.identifier==="gregory"&&f.start.era==="BC"||f.end.calendar.identifier==="gregory"&&f.end.era==="BC"}),Be=f.start.toDate(M||"UTC"),Ge=f.end.toDate(le||"UTC"),Xe=new Gi(K,_e),Ne;if(M===le&&oe===Se&&f.start.compare(f.end)!==0){try{let qe=Xe.formatRangeToParts(Be,Ge),ke=-1;for(let Ye=0;Ye<qe.length;Ye++){let ht=qe[Ye];if(ht.source==="shared"&&ht.type==="literal")ke=Ye;else if(ht.source==="endRange")break}let je="",Te="";for(let Ye=0;Ye<qe.length;Ye++)Ye<ke?je+=qe[Ye].value:Ye>ke&&(Te+=qe[Ye].value);return{start:je,end:Te}}catch{}Ne=Xe}else{let qe=jo(fe,{granularity:Se,timeZone:le,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ne=new Gi(K,qe)}return{start:Xe.format(Be),end:Ne.format(Ge)}},getDateFormatter(K,fe){let M={...se,...fe},oe=jo({},M);return new Gi(K,oe)}}}function ru(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function nee(e){let{placeholderValue:t=new vf,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:o}=e,[s,l]=Ai(e.value,i??null,e.onChange),f=s||t,h=f&&"day"in f?f:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=I.useMemo(()=>{let T=f&&"timeZone"in f?f.timeZone:void 0;return(T||m)&&t?JP(bl(t),T||m):bl(t)},[t,f,m]),b=I.useMemo(()=>bl(n,h),[n,h]),$=I.useMemo(()=>bl(r,h),[r,h]),x=I.useMemo(()=>s&&"day"in s?R2(s):s,[s]),A=I.useMemo(()=>s==null?null:bl(s),[s]),w=I.useMemo(()=>i==null?null:bl(i),[i]);return{...P9({...e,value:A,defaultValue:w,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&R2(T))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:I.useCallback(()=>o==null?void 0:o(s),[o,s])}),timeValue:x}}function bl(e,t=wm(mf())){return e?"day"in e?e:Ea(t,e):null}var Y4,kw;function ree(){if(kw)return Y4;kw=1;var e=lb();function t(n,r){return e(n,r)}return Y4=t,Y4}var iee=ree();const aee=ar(iee);var Uh={exports:{}},oee=Uh.exports,Mw;function see(){return Mw||(Mw=1,function(e,t){(function(n,r){e.exports=r()})(oee,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",f="day",h="week",m="month",g="quarter",b="year",$="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var G=["th","st","nd","rd"],V=z%100;return"["+z+(G[(V-20)%10]||G[V]||G[0])+"]"}},E=function(z,G,V){var R=String(z);return!R||R.length>=G?z:""+Array(G+1-R.length).join(V)+z},T={s:E,z:function(z){var G=-z.utcOffset(),V=Math.abs(G),R=Math.floor(V/60),K=V%60;return(G<=0?"+":"-")+E(R,2,"0")+":"+E(K,2,"0")},m:function z(G,V){if(G.date()<V.date())return-z(V,G);var R=12*(V.year()-G.year())+(V.month()-G.month()),K=G.clone().add(R,m),fe=V-K<0,M=G.clone().add(R+(fe?-1:1),m);return+(-(R+(V-K)/(fe?K-M:M-K))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:m,y:b,w:h,d:f,D:$,h:l,m:s,s:o,ms:a,Q:g}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},P="en",F={};F[P]=C;var q="$isDayjsObject",te=function(z){return z instanceof Ee||!(!z||!z[q])},se=function z(G,V,R){var K;if(!G)return P;if(typeof G=="string"){var fe=G.toLowerCase();F[fe]&&(K=fe),V&&(F[fe]=V,K=fe);var M=G.split("-");if(!K&&M.length>1)return z(M[0])}else{var oe=G.name;F[oe]=G,K=oe}return!R&&K&&(P=K),K||!R&&P},ae=function(z,G){if(te(z))return z.clone();var V=typeof G=="object"?G:{};return V.date=z,V.args=arguments,new Ee(V)},O=T;O.l=se,O.i=te,O.w=function(z,G){return ae(z,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var Ee=function(){function z(V){this.$L=se(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[q]=!0}var G=z.prototype;return G.parse=function(V){this.$d=function(R){var K=R.date,fe=R.utc;if(K===null)return new Date(NaN);if(O.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var M=K.match(A);if(M){var oe=M[2]-1||0,le=(M[7]||"0").substring(0,3);return fe?new Date(Date.UTC(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)):new Date(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)}}return new Date(K)}(V),this.init()},G.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},G.$utils=function(){return O},G.isValid=function(){return this.$d.toString()!==x},G.isSame=function(V,R){var K=ae(V);return this.startOf(R)<=K&&K<=this.endOf(R)},G.isAfter=function(V,R){return ae(V)<this.startOf(R)},G.isBefore=function(V,R){return this.endOf(R)<ae(V)},G.$g=function(V,R,K){return O.u(V)?this[R]:this.set(K,V)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(V,R){var K=this,fe=!!O.u(R)||R,M=O.p(V),oe=function(qe,ke){var je=O.w(K.$u?Date.UTC(K.$y,ke,qe):new Date(K.$y,ke,qe),K);return fe?je:je.endOf(f)},le=function(qe,ke){return O.w(K.toDate()[qe].apply(K.toDate("s"),(fe?[0,0,0,0]:[23,59,59,999]).slice(ke)),K)},Se=this.$W,_e=this.$M,Be=this.$D,Ge="set"+(this.$u?"UTC":"");switch(M){case b:return fe?oe(1,0):oe(31,11);case m:return fe?oe(1,_e):oe(0,_e+1);case h:var Xe=this.$locale().weekStart||0,Ne=(Se<Xe?Se+7:Se)-Xe;return oe(fe?Be-Ne:Be+(6-Ne),_e);case f:case $:return le(Ge+"Hours",0);case l:return le(Ge+"Minutes",1);case s:return le(Ge+"Seconds",2);case o:return le(Ge+"Milliseconds",3);default:return this.clone()}},G.endOf=function(V){return this.startOf(V,!1)},G.$set=function(V,R){var K,fe=O.p(V),M="set"+(this.$u?"UTC":""),oe=(K={},K[f]=M+"Date",K[$]=M+"Date",K[m]=M+"Month",K[b]=M+"FullYear",K[l]=M+"Hours",K[s]=M+"Minutes",K[o]=M+"Seconds",K[a]=M+"Milliseconds",K)[fe],le=fe===f?this.$D+(R-this.$W):R;if(fe===m||fe===b){var Se=this.clone().set($,1);Se.$d[oe](le),Se.init(),this.$d=Se.set($,Math.min(this.$D,Se.daysInMonth())).$d}else oe&&this.$d[oe](le);return this.init(),this},G.set=function(V,R){return this.clone().$set(V,R)},G.get=function(V){return this[O.p(V)]()},G.add=function(V,R){var K,fe=this;V=Number(V);var M=O.p(R),oe=function(_e){var Be=ae(fe);return O.w(Be.date(Be.date()+Math.round(_e*V)),fe)};if(M===m)return this.set(m,this.$M+V);if(M===b)return this.set(b,this.$y+V);if(M===f)return oe(1);if(M===h)return oe(7);var le=(K={},K[s]=r,K[l]=i,K[o]=n,K)[M]||1,Se=this.$d.getTime()+V*le;return O.w(Se,this)},G.subtract=function(V,R){return this.add(-1*V,R)},G.format=function(V){var R=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var fe=V||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),oe=this.$H,le=this.$m,Se=this.$M,_e=K.weekdays,Be=K.months,Ge=K.meridiem,Xe=function(ke,je,Te,Ye){return ke&&(ke[je]||ke(R,fe))||Te[je].slice(0,Ye)},Ne=function(ke){return O.s(oe%12||12,ke,"0")},qe=Ge||function(ke,je,Te){var Ye=ke<12?"AM":"PM";return Te?Ye.toLowerCase():Ye};return fe.replace(w,function(ke,je){return je||function(Te){switch(Te){case"YY":return String(R.$y).slice(-2);case"YYYY":return O.s(R.$y,4,"0");case"M":return Se+1;case"MM":return O.s(Se+1,2,"0");case"MMM":return Xe(K.monthsShort,Se,Be,3);case"MMMM":return Xe(Be,Se);case"D":return R.$D;case"DD":return O.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Xe(K.weekdaysMin,R.$W,_e,2);case"ddd":return Xe(K.weekdaysShort,R.$W,_e,3);case"dddd":return _e[R.$W];case"H":return String(oe);case"HH":return O.s(oe,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return qe(oe,le,!0);case"A":return qe(oe,le,!1);case"m":return String(le);case"mm":return O.s(le,2,"0");case"s":return String(R.$s);case"ss":return O.s(R.$s,2,"0");case"SSS":return O.s(R.$ms,3,"0");case"Z":return M}return null}(ke)||M.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(V,R,K){var fe,M=this,oe=O.p(R),le=ae(V),Se=(le.utcOffset()-this.utcOffset())*r,_e=this-le,Be=function(){return O.m(M,le)};switch(oe){case b:fe=Be()/12;break;case m:fe=Be();break;case g:fe=Be()/3;break;case h:fe=(_e-Se)/6048e5;break;case f:fe=(_e-Se)/864e5;break;case l:fe=_e/i;break;case s:fe=_e/r;break;case o:fe=_e/n;break;default:fe=_e}return K?fe:O.a(fe)},G.daysInMonth=function(){return this.endOf(m).$D},G.$locale=function(){return F[this.$L]},G.locale=function(V,R){if(!V)return this.$L;var K=this.clone(),fe=se(V,R,!0);return fe&&(K.$L=fe),K},G.clone=function(){return O.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},z}(),be=Ee.prototype;return ae.prototype=be,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",f],["$M",m],["$y",b],["$D",$]].forEach(function(z){be[z[1]]=function(G){return this.$g(G,z[0],z[1])}}),ae.extend=function(z,G){return z.$i||(z(G,Ee,ae),z.$i=!0),ae},ae.locale=se,ae.isDayjs=te,ae.unix=function(z){return ae(1e3*z)},ae.en=F[P],ae.Ls=F,ae.p={},ae})}(Uh)),Uh.exports}var _9=see();const uee=ar(_9);var Z4,Rw;function B9(){if(Rw)return Z4;Rw=1;var e=uc(),t=lc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Z4=r,Z4}var lee=B9();const cee=ar(lee);var Ou=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],dee="react-international-phone-",F9=(...e)=>e.filter(t=>!!t).join(" ").trim(),fee=(...e)=>F9(...e).split(" ").map(t=>`${dee}${t}`).join(" "),Pr=({addPrefix:e,rawClassNames:t})=>F9(fee(...e),...t),hee=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),s=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){s+=f;continue}break}f===n?(s+=o[l],l+=1):s+=f}return s},El=e=>e?/^\d+$/.test(e):!1,km=e=>e.replace(/\D/g,""),pee=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},mee=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),gee=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=km(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let o=()=>{let f=t.dialCode.length,h=i.slice(0,f),m=i.slice(f);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:s,phoneRightSide:l}=o();return s=`${t.prefix}${s}${t.charAfterDialCode}`,l=hee({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(s=""),a(`${s}${l}`)},vee=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(El(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(El(n[h]))return h;return t.length}let s=0;for(let h=0;h<o;h+=1)El(t[h])&&(s+=1);let l=0,f=0;for(let h=0;h<n.length&&(l+=1,El(n[h])&&(f+=1),!(f>=s+1));h+=1);if(a!=="backward")for(;!El(n[l])&&l<n.length;)l+=1;return l},Wh=({phone:e,prefix:t})=>e?`${t}${km(e)}`:"";function K3({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?Aee({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,x=gee(g,{prefix:a,mask:Cee({phone:g,country:$,defaultMask:f,disableFormatting:m}),maskChar:k9,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:Wh({phone:l?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var yee=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},bee=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:f,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=yee(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",w=(g==null?void 0:g.data)||void 0,C=e.target.value,E=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:Wh({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!El(w)&&C!==i)return{inputValue:r,phone:Wh({phone:s?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:E-((w==null?void 0:w.length)??0),country:t};if(o&&!C.startsWith(`${i}${t.dialCode}`)&&!x){let te=C?r:`${i}${t.dialCode}${a}`;return{inputValue:te,phone:Wh({phone:te,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:P,country:F}=K3({value:C,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,disableFormatting:h,defaultMask:f}),q=vee({cursorPositionAfterInput:E,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:P,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:$});return{phone:T,inputValue:P,cursorPosition:q,country:F}},xee=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},Dee=()=>{let e=I.useRef(),t=I.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},$ee={size:20,overrideLastItemDebounceMS:-1};function Eee(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...$ee,...t},[a,o]=I.useState(e),[s,l]=I.useState([a]),[f,h]=I.useState(0),m=Dee();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&xee(g,a)||g===a)return;let $=r>0,x=m.check(),A=$&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(w=>[...w.slice(0,f),g]);else{let w=s.length>=n;l(C=>[...C.slice(w?1:0,f+1),g]),w||h(C=>C+1)}o(g),i==null||i(g)},()=>{if(f<=0)return{success:!1};let g=s[f-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(f+1>=s.length)return{success:!1};let g=s[f+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var k9=".",Li={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Ou},M9=({defaultCountry:e=Li.defaultCountry,value:t=Li.value,countries:n=Li.countries,prefix:r=Li.prefix,defaultMask:i=Li.defaultMask,charAfterDialCode:a=Li.charAfterDialCode,historySaveDebounceMS:o=Li.historySaveDebounceMS,disableCountryGuess:s=Li.disableCountryGuess,disableDialCodePrefill:l=Li.disableDialCodePrefill,forceDialCode:f=Li.forceDialCode,disableDialCodeAndPrefix:h=Li.disableDialCodeAndPrefix,disableFormatting:m=Li.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:f,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!s,disableFormatting:m},x=I.useRef(null),A=b||x,w=z=>{Promise.resolve().then(()=>{var G;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((G=A.current)==null||G.setSelectionRange(z,z))})},[{phone:C,inputValue:E,country:T},P,F,q]=Eee(()=>{let z=Sl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let G=z||Sl({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:R,country:K}=K3({value:t,country:G,insertDialCodeOnEmpty:!l,...$});return w(R.length),{phone:V,inputValue:R,country:K.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:z,phone:G,country:V})=>{if(!g)return;let R=te(V);g({phone:G,inputValue:z,country:R})}}),te=I.useCallback(z=>Sl({value:z,field:"iso2",countries:n}),[n]),se=I.useMemo(()=>te(T),[T,te]);I.useEffect(()=>{let z=A.current;if(!z)return;let G=V=>{if(!V.key)return;let R=V.ctrlKey,K=V.metaKey,fe=V.shiftKey;if(V.key.toLowerCase()==="z"){if(mee()){if(!K)return}else if(!R)return;fe?q():F()}};return z.addEventListener("keydown",G),()=>{z.removeEventListener("keydown",G)}},[A,F,q]);let ae=z=>{z.preventDefault();let{phone:G,inputValue:V,country:R,cursorPosition:K}=bee(z,{country:se,phoneBeforeInput:E,insertDialCodeOnEmpty:!1,...$});return P({inputValue:V,phone:G,country:R.iso2}),w(K),t},O=(z,G={focusOnInput:!1})=>{let V=Sl({value:z,field:"iso2",countries:n});if(!V){console.error(`[react-international-phone]: can not find a country with "${z}" iso2 code`);return}let R=h?"":`${r}${V.dialCode}${a}`;P({inputValue:R,phone:`${r}${V.dialCode}`,country:V.iso2}),G.focusOnInput&&Promise.resolve().then(()=>{var K;(K=A.current)==null||K.focus()})},[Ee,be]=I.useState(!1);return I.useEffect(()=>{if(!Ee){be(!0),t!==C&&(g==null||g({inputValue:E,phone:C,country:se}));return}if(t===C)return;let{phone:z,inputValue:G,country:V}=K3({value:t,country:se,insertDialCodeOnEmpty:!l,...$});P({phone:z,inputValue:G,country:V.iso2})},[t]),{phone:C,inputValue:E,country:se,setCountry:O,handlePhoneValueChange:ae,inputRef:A}},Cee=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=s=>r?s.replace(new RegExp(`[^${k9}]`,"g"),""):s;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let o=Object.keys(i).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let l=new RegExp(s.substring(1,s.length-1)),f=e.replace(t.dialCode,"");return l.test(km(f))});return a(o?i[o]:i.default)},va=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},wee=e=>`Field "${e}" is not supported`,Sl=({field:e,value:t,countries:n=Ou})=>{if(["priority"].includes(e))throw new Error(wee(e));let r=n.find(i=>{let a=va(i);return t===a[e]});if(r)return va(r)},Aee=({phone:e,countries:t=Ou,currentCountryIso2:n})=>{var s;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=km(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var g,b;let h=l.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=va(l),{dialCode:h,areaCodes:m}=f;if(i.startsWith(h)){let g=a.country?Number(h)>=Number(a.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let $ of m)if(b.startsWith($))return{country:f,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Sl({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;a&&((s=a.country)==null?void 0:s.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},See=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Tee="abcdefghijklmnopqrstuvwxyz",Pee="1f1e6",Iw=Tee.split("").reduce((e,t,n)=>({...e,[t]:See(Pee,n)}),{}),_ee=e=>[Iw[e[0]],Iw[e[1]]].join("-"),Qb=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...s})=>{if(!e)return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...s});let l=()=>{if(n)return n;let f=_ee(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...s})},Bee=1e3,Fee=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Ou,preferredCountries:i=[],flags:a,onSelect:o,onClose:s,...l})=>{let f=I.useRef(null),h=I.useRef(),m=I.useMemo(()=>{if(!i||!i.length)return r;let F=[],q=[...r];for(let te of i){let se=q.findIndex(ae=>va(ae).iso2===te);if(se!==-1){let ae=q.splice(se,1)[0];F.push(ae)}}return F.concat(q)},[r,i]),g=I.useRef({updatedAt:void 0,value:""}),b=F=>{let q=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>Bee;g.current={value:q?F:`${g.current.value}${F}`,updatedAt:new Date};let te=m.findIndex(se=>va(se).name.toLowerCase().startsWith(g.current.value));te!==-1&&A(te)},$=I.useCallback(F=>m.findIndex(q=>va(q).iso2===F),[m]),[x,A]=I.useState($(n)),w=()=>{h.current!==n&&A($(n))},C=I.useCallback(F=>{A($(F.iso2)),o==null||o(F)},[o,$]),E=F=>{let q=m.length-1,te=se=>F==="prev"?se-1:F==="next"?se+1:F==="last"?q:0;A(se=>{let ae=te(se);return ae<0?0:ae>q?q:ae})},T=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let q=va(m[x]);C(q);return}if(F.key==="Escape"){s==null||s();return}if(F.key==="ArrowUp"){F.preventDefault(),E("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),E("next");return}if(F.key==="PageUp"){F.preventDefault(),E("first");return}if(F.key==="PageDown"){F.preventDefault(),E("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},P=I.useCallback(()=>{if(!f.current||x===void 0)return;let F=va(m[x]).iso2;if(F===h.current)return;let q=f.current.querySelector(`[data-country="${F}"]`);q&&(pee(f.current,q),h.current=F)},[x,m]);return I.useEffect(()=>{P()},[x,P]),I.useEffect(()=>{f.current&&(e?f.current.focus():w())},[e]),I.useEffect(()=>{w()},[n]),de.default.createElement("ul",{ref:f,role:"listbox",className:Pr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${va(m[x]).iso2}-option`},m.map((F,q)=>{let te=va(F),se=te.iso2===n,ae=q===x,O=i.includes(te.iso2),Ee=q===i.length-1,be=a==null?void 0:a.find(z=>z.iso2===te.iso2);return de.default.createElement(de.default.Fragment,{key:te.iso2},de.default.createElement("li",{"data-country":te.iso2,role:"option","aria-selected":se,"aria-label":`${te.name} ${t}${te.dialCode}`,id:`react-international-phone__${te.iso2}-option`,className:Pr({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",se&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,O&&l.listItemPreferredClassName,se&&l.listItemSelectedClassName,ae&&l.listItemFocusedClassName]}),onClick:()=>C(te),style:l.listItemStyle,title:te.name},de.default.createElement(Qb,{iso2:te.iso2,src:be==null?void 0:be.src,className:Pr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},te.name),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,te.dialCode)),Ee?de.default.createElement("hr",{className:Pr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},kee=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Ou,preferredCountries:a=[],flags:o,renderButtonWrapper:s,...l})=>{let[f,h]=I.useState(!1),m=I.useMemo(()=>{if(e)return Sl({value:e,field:"iso2",countries:i})},[i,e]),g=I.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},$=()=>{var w;let x={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},A=de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},de.default.createElement(Qb,{iso2:e,src:(w=o==null?void 0:o.find(C=>C.iso2===e))==null?void 0:w.src,className:Pr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return s?s({children:A,rootProps:x}):de.default.createElement("button",{...x,type:"button",className:Pr({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},A)};return de.default.createElement("div",{className:Pr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),de.default.createElement(Fee,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},Mee=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>de.default.createElement("div",{className:Pr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);I.forwardRef(({value:e,onChange:t,countries:n=Ou,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:s,style:l,className:f,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:x,disabled:A,name:w,onFocus:C,onBlur:E,required:T,autoFocus:P,...F},q)=>{let{phone:te,inputValue:se,inputRef:ae,country:O,setCountry:Ee,handlePhoneValueChange:be}=M9({value:e,countries:n,...F,onChange:G=>{t==null||t(G.phone,{country:G.country,inputValue:G.inputValue})}}),z=F.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return I.useImperativeHandle(q,()=>ae.current?Object.assign(ae.current,{setCountry:Ee,state:{phone:te,inputValue:se,country:O}}):null,[ae,Ee,te,se,O]),de.default.createElement("div",{ref:q,className:Pr({addPrefix:["input-container"],rawClassNames:[f]}),style:l},de.default.createElement(kee,{onSelect:G=>Ee(G.iso2,{focusOnInput:!o}),flags:s,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),z&&de.default.createElement(Mee,{dialCode:O.dialCode,prefix:F.prefix??"+",disabled:A,...b}),de.default.createElement("input",{onChange:be,value:se,type:"tel",ref:ae,className:Pr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:w,onFocus:C,onBlur:E,autoFocus:P,required:T,...$}))});var X4,Ow;function Ree(){if(Ow)return X4;Ow=1;function e(t){return t===void 0}return X4=e,X4}var Iee=Ree();const Oee=ar(Iee);var Q4={exports:{}},Lw;function Lee(){return Lw||(Lw=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
75
+ }`.trim(),document.head.prepend(r);let i=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},a=l=>{let f=l.target,h=l.relatedTarget;if(h&&A4(h))h.focus({preventScroll:!0}),mw(h,A4(f));else if(!h){var m;let g=(m=f.parentElement)===null||m===void 0?void 0:m.closest("[tabindex]");g==null||g.focus({preventScroll:!0})}},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let f=document.activeElement!=null&&A4(document.activeElement);o.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&mw(this,f)};let s=Ou(q4(document,"touchstart",n,{passive:!1,capture:!0}),q4(document,"touchmove",i,{passive:!1,capture:!0}),q4(document,"blur",a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function z4(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function q4(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function mw(e,t){t||!Pd?gw(e):Pd.addEventListener("resize",()=>gw(e),{once:!0})}function gw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Dm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(a.top<i.top||a.bottom>i.top+n.clientHeight){let o=i.bottom;Pd&&(o=Math.min(o,Pd.offsetTop+Pd.height));let s=a.top-i.top-((o-i.top)/2-a.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+s)),behavior:"smooth"})}}n=r.parentElement}}const iJ=I.createContext({});function aJ(){var e;return(e=I.useContext(iJ))!==null&&e!==void 0?e:{}}const oJ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let id=new WeakMap,ti=[];function kB(e,t){let n=ao(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let a=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,o=(r==null?void 0:r.shouldUseInert)&&oJ,s=new Set(e),l=new Set,f=x=>o&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,A)=>{o&&x instanceof n.HTMLElement?x.inert=A:A?x.setAttribute("aria-hidden","true"):(x.removeAttribute("aria-hidden"),x instanceof n.HTMLElement&&(x.inert=!1))},m=x=>{for(let E of x.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(E);let A=E=>{if(l.has(E)||s.has(E)||E.parentElement&&l.has(E.parentElement)&&E.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let T of s)if(E.contains(T))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},w=document.createTreeWalker(x,NodeFilter.SHOW_ELEMENT,{acceptNode:A}),C=A(x);if(C===NodeFilter.FILTER_ACCEPT&&g(x),C!==NodeFilter.FILTER_REJECT){let E=w.nextNode();for(;E!=null;)g(E),E=w.nextNode()}},g=x=>{var A;let w=(A=id.get(x))!==null&&A!==void 0?A:0;f(x)&&w===0||(w===0&&h(x,!0),l.add(x),id.set(x,w+1))};ti.length&&ti[ti.length-1].disconnect(),m(a);let b=new MutationObserver(x=>{for(let A of x)if(A.type==="childList"&&![...s,...l].some(w=>w.contains(A.target)))for(let w of A.addedNodes)(w instanceof HTMLElement||w instanceof SVGElement)&&(w.dataset.liveAnnouncer==="true"||w.dataset.reactAriaTopLayer==="true")?s.add(w):w instanceof Element&&m(w)});b.observe(a,{childList:!0,subtree:!0});let $={visibleNodes:s,hiddenNodes:l,observe(){b.observe(a,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return ti.push($),()=>{b.disconnect();for(let x of l){let A=id.get(x);A!=null&&(A===1?(h(x,!1),id.delete(x)):id.set(x,A-1))}$===ti[ti.length-1]?(ti.pop(),ti.length&&ti[ti.length-1].observe()):ti.splice(ti.indexOf($),1)}}function sJ(e){let t=ti[ti.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function uJ(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:a,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...l}=e,f=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=JQ({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||f,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:g,arrowProps:b,placement:$,triggerAnchorPoint:x}=ZQ({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!f?t.close:null});return tJ({isDisabled:a||!t.isOpen}),I.useEffect(()=>{if(t.isOpen&&r.current){var A,w;return a?sJ((A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current):kB([(w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:$,triggerAnchorPoint:x}}const MB=de.default.createContext(null);function lJ(e){let t=vm(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=I.useState(!1),o=I.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:s}=aJ();if(!e.portalContainer&&s&&(n=s()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=de.default.createElement(oQ,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=de.default.createElement(MB.Provider,{value:o},de.default.createElement(IZ,null,l)),No.default.createPortal(l,n)}function cJ(){let e=I.useContext(MB),t=e==null?void 0:e.setContain;hn(()=>{t==null||t(!0)},[t])}const Bm=new WeakMap;function dJ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function RB(e,t){let n=Bm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${dJ(t)}`}function V3(e){return Oh()?e.altKey:e.ctrlKey}function zh(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,a=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return a&&(i=`[data-collection="${CSS.escape(a)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const IB=new WeakMap;function fJ(e){let t=zr();return IB.set(e,t),t}function hJ(e){return IB.get(e)}const pJ=1e3;function mJ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=I.useRef({search:"",timeout:void 0}).current,a=o=>{let s=gJ(o.key);if(!(!s||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||i.search.length===0&&s===" ")){if(s===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},pJ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function gJ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function OB(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:f=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:$=r,linkBehavior:x="action"}=e,{direction:A}=_r(),w=xm(),C=R=>{var K;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(R.target)))return;const fe=(Te,Ye)=>{if(Te!=null){if(t.isLink(Te)&&x==="selection"&&f&&!V3(R)){of.flushSync(()=>{t.setFocusedKey(Te,Ye)});let ht=zh(r,Te),Ht=t.getItemProps(Te);ht&&w.open(ht,R,Ht.href,Ht.routerOptions);return}if(t.setFocusedKey(Te,Ye),t.isLink(Te)&&x==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&!V3(R)&&t.replaceSelection(Te)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var M,oe,le;let Te=t.focusedKey!=null?(M=n.getKeyBelow)===null||M===void 0?void 0:M.call(n,t.focusedKey):(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n);Te==null&&a&&(Te=(le=n.getFirstKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowUp":if(n.getKeyAbove){var Se,_e,Be;let Te=t.focusedKey!=null?(Se=n.getKeyAbove)===null||Se===void 0?void 0:Se.call(n,t.focusedKey):(_e=n.getLastKey)===null||_e===void 0?void 0:_e.call(n);Te==null&&a&&(Te=(Be=n.getLastKey)===null||Be===void 0?void 0:Be.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ge,Xe,Ne;let Te=t.focusedKey!=null?(Ge=n.getKeyLeftOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(Xe=n.getFirstKey)===null||Xe===void 0?void 0:Xe.call(n,t.focusedKey):(Ne=n.getLastKey)===null||Ne===void 0?void 0:Ne.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var qe,ke,je;let Te=t.focusedKey!=null?(qe=n.getKeyRightOf)===null||qe===void 0?void 0:qe.call(n,t.focusedKey):null;Te==null&&a&&(Te=A==="rtl"?(ke=n.getLastKey)===null||ke===void 0?void 0:ke.call(n,t.focusedKey):(je=n.getFirstKey)===null||je===void 0?void 0:je.call(n,t.focusedKey)),Te!=null&&(R.preventDefault(),fe(Te,A==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getFirstKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let Te=n.getLastKey(t.focusedKey,$l(R));t.setFocusedKey(Te),Te!=null&&($l(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Te):f&&t.replaceSelection(Te))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Te=n.getKeyPageBelow(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Te=n.getKeyPageAbove(t.focusedKey);Te!=null&&(R.preventDefault(),fe(Te))}break;case"a":$l(R)&&t.selectionMode==="multiple"&&s!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!o&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(R.shiftKey)r.current.focus();else{let Te=Vr(r.current,{tabbable:!0}),Ye,ht;do ht=Te.lastChild(),ht&&(Ye=ht);while(ht);Ye&&!Ye.contains(document.activeElement)&&wi(Ye)}break}}},E=I.useRef({top:0,left:0});ba($,"scroll",b?void 0:()=>{var R,K,fe,M;E.current={top:(fe=(R=$.current)===null||R===void 0?void 0:R.scrollTop)!==null&&fe!==void 0?fe:0,left:(M=(K=$.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&M!==void 0?M:0}});let T=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var K,fe;let le=_e=>{_e!=null&&(t.setFocusedKey(_e),f&&!t.isSelected(_e)&&t.replaceSelection(_e))},Se=R.relatedTarget;var M,oe;Se&&R.currentTarget.compareDocumentPosition(Se)&Node.DOCUMENT_POSITION_FOLLOWING?le((M=t.lastSelectedKey)!==null&&M!==void 0?M:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):le((oe=t.firstSelectedKey)!==null&&oe!==void 0?oe:(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n))}else!b&&$.current&&($.current.scrollTop=E.current.top,$.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&$.current){let le=zh(r,t.focusedKey);le instanceof HTMLElement&&(!le.contains(document.activeElement)&&!m&&wi(le),Nd()==="keyboard"&&gp(le,{containingElement:r.current}))}}},P=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},F=I.useRef(!1);ba(r,hZ,m?R=>{let{detail:K}=R;R.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(F.current=!0)}:void 0);let q=cn(()=>{var R,K;let fe=(K=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&K!==void 0?K:null;if(fe==null){let M=ir();P7(r.current),Hb(M,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(fe),F.current=!1});p2(()=>{F.current&&q()},[t.collection,q]);let te=cn(()=>{t.collection.size>0&&(F.current=!1)});p2(()=>{te()},[t.focusedKey,te]),ba(r,fZ,m?R=>{var K;R.stopPropagation(),t.setFocused(!1),!((K=R.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const se=I.useRef(i),ae=I.useRef(!1);I.useEffect(()=>{if(se.current){var R,K;let oe=null;var fe;i==="first"&&(oe=(fe=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&fe!==void 0?fe:null);var M;i==="last"&&(oe=(M=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&M!==void 0?M:null);let le=t.selectedKeys;if(le.size){for(let Se of le)if(t.canSelectItem(Se)){oe=Se;break}}t.setFocused(!0),t.setFocusedKey(oe),oe==null&&!m&&r.current&&Tu(r.current),t.collection.size>0&&(se.current=!1,ae.current=!0)}});let O=I.useRef(t.focusedKey),Ee=I.useRef(null);I.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==O.current||ae.current)&&$.current&&r.current){let R=Nd(),K=zh(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(R==="keyboard"||ae.current)&&(Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{$.current&&(PP($.current,K),R!=="virtual"&&gp(K,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&O.current!=null&&r.current&&Tu(r.current),O.current=t.focusedKey,ae.current=!1}),I.useEffect(()=>()=>{Ee.current&&cancelAnimationFrame(Ee.current)},[]),ba(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let be={onKeyDown:C,onFocus:T,onBlur:P,onMouseDown(R){$.current===R.target&&R.preventDefault()}},{typeSelectProps:z}=mJ({keyboardDelegate:n,selectionManager:t});h||(be=Qt(z,be));let G;m||(G=t.focusedKey==null?0:-1);let V=fJ(t.collection);return{collectionProps:Qt(be,{tabIndex:G,"data-collection":V})}}function vJ(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:a,shouldUseVirtualFocus:o,focus:s,isDisabled:l,onAction:f,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=xm();t=zr(t);let b=M=>{if(M.pointerType==="keyboard"&&V3(M))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let oe=n.getItemProps(r);g.open(i.current,M,oe.href,oe.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):M&&M.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||M&&($l(M)||M.pointerType==="touch"||M.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};I.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?P7(i.current):s?s():document.activeElement!==i.current&&i.current&&Tu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let $={};!o&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(M){M.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=M=>{M.preventDefault()});let x=n.isLink(r)&&m==="override",A=f&&e.UNSTABLE_itemBehavior==="action",w=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!x&&!A,E=(f||w)&&!l,T=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),P=E&&C&&n.selectionBehavior==="replace",F=T||P,q=I.useRef(null),te=F&&C,se=I.useRef(!1),ae=I.useRef(!1),O=n.getItemProps(r),Ee=M=>{if(f){var oe;f(),(oe=i.current)===null||oe===void 0||oe.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}w&&i.current&&g.open(i.current,M,O.href,O.routerOptions)},be={ref:i};if(a?(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,M.pointerType==="keyboard"&&(!F||yw())&&b(M)},h?(be.onPressUp=T?void 0:M=>{M.pointerType==="mouse"&&C&&b(M)},be.onPress=T?Ee:M=>{M.pointerType!=="keyboard"&&M.pointerType!=="mouse"&&C&&b(M)}):be.onPress=M=>{if(T||P&&M.pointerType!=="mouse"){if(M.pointerType==="keyboard"&&!vw())return;Ee(M)}else M.pointerType!=="keyboard"&&C&&b(M)}):(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,ae.current=T,C&&(M.pointerType==="mouse"&&!T||M.pointerType==="keyboard"&&(!E||yw()))&&b(M)},be.onPress=M=>{(M.pointerType==="touch"||M.pointerType==="pen"||M.pointerType==="virtual"||M.pointerType==="keyboard"&&F&&vw()||M.pointerType==="mouse"&&ae.current)&&(F?Ee(M):C&&b(M))}),$["data-collection"]=hJ(n.collection),$["data-key"]=r,be.preventFocusOnPress=o,o&&(be=Qt(be,{onPressStart(M){M.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(M){M.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),O)for(let M of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[M]&&(be[M]=Ou(be[M],O[M]));let{pressProps:z,isPressed:G}=hf(be),V=P?M=>{q.current==="mouse"&&(M.stopPropagation(),M.preventDefault(),Ee(M))}:void 0,{longPressProps:R}=qP({isDisabled:!te,onLongPress(M){M.pointerType==="touch"&&(b(M),n.setSelectionBehavior("toggle"))}}),K=M=>{q.current==="touch"&&se.current&&M.preventDefault()},fe=m!=="none"&&n.isLink(r)?M=>{Au.isOpening||M.preventDefault()}:void 0;return{itemProps:Qt($,C||T||o&&!l?z:{},te?R:{},{onDoubleClick:V,onDragStartCapture:K,onClick:fe,id:t},o?{onMouseDown:M=>M.preventDefault()}:void 0),isPressed:G,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:F}}function vw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function yw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class bw{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?zh(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-i.left-n.clientLeft+n.scrollLeft,y:a.top-i.top-n.clientTop+n.scrollTop,width:a.width,height:a.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,a;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.clientWidth)!==null&&i!==void 0?i:0,height:(a=t==null?void 0:t.clientHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class LB{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let o=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(o,a)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Ql(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Ql(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i);if(!a)return null;let o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new bw(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new bw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function yJ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=w7({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=I.useMemo(()=>a||new LB({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,l]),{collectionProps:h}=OB({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:h}}function bJ(e,t,n){let r=Zo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=yJ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=hc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=zr(e.id);Bm.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:f,fieldProps:h}=Pm({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:Qt(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,o)})}}function VB(e){return null}VB.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,s=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!s&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:s,"aria-label":t["aria-label"],hasChildNodes:xJ(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];de.default.Children.forEach(a,f=>{l.push({type:"item",element:f})}),yield*l}}}};function xJ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&de.default.Children.count(e.children)>0)}let DJ=VB;class $J{build(t,n){return this.context=n,xw(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(de.default.isValidElement(n)&&n.type===de.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];de.default.Children.forEach(n,o=>{o&&i.push(o)});let a=0;for(let o of i){let s=this.getFullNode({element:o,index:a},{});for(let l of s)a++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let s=(o=a.key)!==null&&o!==void 0?o:a.id;if(s==null)throw new Error("No key found for item");return s}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(de.default.isValidElement(t.element)&&t.element.type===de.default.Fragment){let A=[];de.default.Children.forEach(t.element.props.children,C=>{A.push(C)});var a;let w=(a=t.index)!==null&&a!==void 0?a:0;for(const C of A)yield*this.getFullNode({element:C,index:w++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}o=n.renderer(t.value)}if(de.default.isValidElement(o)){let A=o.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let T=o.type;throw new Error(`Unknown element <${T}> in collection.`)}let w=A.getCollectionNode(o.props,this.context);var s;let C=(s=t.index)!==null&&s!==void 0?s:0,E=w.next();for(;!E.done&&E.value;){let T=E.value;t.index=C;var l;let P=(l=T.key)!==null&&l!==void 0?l:null;P==null&&(P=T.element?null:this.getKey(o,t,n,r));let q=[...this.getFullNode({...T,key:P,index:C,wrapper:EJ(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${o.key}`:o.key,i)];for(let te of q){var f,h;te.value=(h=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&h!==void 0?h:null,te.value&&this.cache.set(te.value,te);var m;if(t.type&&te.type!==t.type)throw new Error(`Unsupported type <${U4(te.type)}> in <${U4((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${U4(t.type)}> is supported.`);C++,yield te}E=w.next(q)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:xw(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let w of t.childNodes()){w.key!=null&&(w.key=`${x.key}${w.key}`);let C=g.getFullNode({...w,index:A},g.getChildState(n,w),x.key,x);for(let E of C)A++,yield E}})};yield x}constructor(){this.cache=new WeakMap}}function xw(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function EJ(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function U4(e){return e[0].toUpperCase()+e.slice(1)}function CJ(e,t,n){let r=I.useMemo(()=>new $J,[]),{children:i,items:a,collection:o}=e;return I.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function Fm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function wJ(e){return AJ(e)}function AJ(e,t){for(let n of e)return n}function W4(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Dw(e,t),t],i=[...Dw(e,n),n],a=r.slice(0,i.length).findIndex((o,s)=>o!==i[s]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function Dw(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const $w=new WeakMap;function NB(e){let t=$w.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Fm(a,e)):a.type==="item"&&n++};return r(e),$w.set(e,n),n}function SJ(e,t,n){var r,i;let{key:a}=e,o=Bm.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(a);var f;let h=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(a);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:o==null?void 0:o.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var x;let A=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:o==null?void 0:o.shouldUseVirtualFocus;var w;let C=(w=e.isVirtualized)!==null&&w!==void 0?w:o==null?void 0:o.isVirtualized,E=Zl(),T=Zl(),P={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};oo()&&wb()||(P["aria-label"]=e["aria-label"],P["aria-labelledby"]=E,P["aria-describedby"]=T);let F=t.collection.getItem(a);if(C){let R=Number(F==null?void 0:F.index);P["aria-posinset"]=Number.isNaN(R)?void 0:R+1,P["aria-setsize"]=NB(t.collection)}let q=o!=null&&o.onAction?()=>{var R;return o==null||(R=o.onAction)===null||R===void 0?void 0:R.call(o,a)}:void 0,te=RB(t,a),{itemProps:se,isPressed:ae,isFocused:O,hasAction:Ee,allowsSelection:be}=vJ({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:C,shouldUseVirtualFocus:A,isDisabled:l,onAction:q||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?Ou(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,q):void 0,linkBehavior:o==null?void 0:o.linkBehavior,UNSTABLE_itemBehavior:o==null?void 0:o.UNSTABLE_itemBehavior,id:te}),{hoverProps:z}=LZ({isDisabled:l||!$,onHoverStart(){w2()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),G=Zo(F==null?void 0:F.props);delete G.id;let V=aZ(F==null?void 0:F.props);return{optionProps:{...P,...Qt(G,se,z,V),id:te},labelProps:{id:E},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&t.selectionManager.isFocused&&w2(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:be,hasAction:Ee}}var jB={};jB={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var KB={};KB={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var zB={};zB={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qB={};qB={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var UB={};UB={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var WB={};WB={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var HB={};HB={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var GB={};GB={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var YB={};YB={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ZB={};ZB={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var XB={};XB={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var QB={};QB={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var JB={};JB={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var eF={};eF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var tF={};tF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var nF={};nF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var rF={};rF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var iF={};iF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var aF={};aF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var oF={};oF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var sF={};sF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var uF={};uF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var lF={};lF={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var cF={};cF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var dF={};dF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var fF={};fF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var hF={};hF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var pF={};pF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var mF={};mF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var gF={};gF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var vF={};vF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var yF={};yF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var bF={};bF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var xF={};xF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var DF={};DF={"ar-AE":jB,"bg-BG":KB,"cs-CZ":zB,"da-DK":qB,"de-DE":UB,"el-GR":WB,"en-US":HB,"es-ES":GB,"et-EE":YB,"fi-FI":ZB,"fr-FR":XB,"he-IL":QB,"hr-HR":JB,"hu-HU":eF,"it-IT":tF,"ja-JP":nF,"ko-KR":rF,"lt-LT":iF,"lv-LV":aF,"nb-NO":oF,"nl-NL":sF,"pl-PL":uF,"pt-BR":lF,"pt-PT":cF,"ro-RO":dF,"ru-RU":fF,"sk-SK":hF,"sl-SI":pF,"sr-SP":mF,"sv-SE":gF,"tr-TR":vF,"uk-UA":yF,"zh-CN":bF,"zh-TW":xF};function TJ(e){return e&&e.__esModule?e.default:e}function PJ(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=zr(),{triggerProps:s,overlayProps:l}=eJ({type:r},t,n),f=b=>{if(!i&&!(a==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(a==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=Ta(TJ(DF),"@react-aria/menu"),{longPressProps:m}=qP({isDisabled:i||a!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(wi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(wi(b.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...a==="press"?g:m,id:o,onKeyDown:f},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function _J(e){return e&&e.__esModule?e.default:e}function BJ(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:s,shouldFocusWrap:l,isReadOnly:f,isDisabled:h}=e,m=I.useRef(null);n=n??m;let g=Ta(_J(_B),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=PJ({type:"listbox",isDisabled:h||f},t,n);Bm.set(t,{id:$.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,w=I.useMemo(()=>o||new LB({collection:x,disabledKeys:A,ref:a,layoutDelegate:s}),[o,s,x,A,a]),{collectionProps:C}=OB({selectionManager:t.selectionManager,keyboardDelegate:w,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),E=xm(),T=je=>{if(!je.nativeEvent.isComposing)switch(je.key){case"Enter":case"Tab":if(t.isOpen&&je.key==="Enter"&&je.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null){let Te=t.collection.getItem(t.selectionManager.focusedKey);if(Te!=null&&Te.props.href){let Ye=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);je.key==="Enter"&&Ye instanceof HTMLAnchorElement&&E.open(Ye,je,Te.props.href,Te.props.routerOptions),t.close();break}else if(Te!=null&&Te.props.onAction){Te.props.onAction(),t.close();break}}t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&je.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},P=je=>{var Te;let Ye=(n==null?void 0:n.current)&&n.current===je.relatedTarget,ht=(Te=r.current)===null||Te===void 0?void 0:Te.contains(je.relatedTarget);Ye||ht||(e.onBlur&&e.onBlur(je),t.setFocused(!1))},F=je=>{t.isFocused||(e.onFocus&&e.onFocus(je),t.setFocused(!0))},{isInvalid:q,validationErrors:te,validationDetails:se}=t.displayValidation,{labelProps:ae,inputProps:O,descriptionProps:Ee,errorMessageProps:be}=VQ({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Ou(t.isOpen&&C.onKeyDown,T,e.onKeyDown),onBlur:P,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[tc]:t},i),z=je=>{if(je.pointerType==="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(null,"manual")}},G=je=>{if(je.pointerType!=="touch"){var Te;(Te=i.current)===null||Te===void 0||Te.focus(),t.toggle(je.pointerType==="keyboard"||je.pointerType==="virtual"?"first":null,"manual")}},V=Xl({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),R=Xl({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),K=I.useRef(0),fe=je=>{if(h||f)return;if(je.timeStamp-K.current<500){var Te;je.preventDefault(),(Te=i.current)===null||Te===void 0||Te.focus();return}let Ye=je.target.getBoundingClientRect(),ht=je.changedTouches[0],Ht=Math.ceil(Ye.left+.5*Ye.width),xt=Math.ceil(Ye.top+.5*Ye.height);if(ht.clientX===Ht&&ht.clientY===xt){var _t;je.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),K.current=je.timeStamp}},M=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var oe;let le=(oe=M==null?void 0:M.parentKey)!==null&&oe!==void 0?oe:null;var Se;let _e=(Se=t.selectionManager.focusedKey)!==null&&Se!==void 0?Se:null,Be=I.useRef(le),Ge=I.useRef(_e);I.useEffect(()=>{if(Oh()&&M!=null&&_e!=null&&_e!==Ge.current){let Te=t.selectionManager.isSelected(_e),Ye=le!=null?t.collection.getItem(le):null,ht=(Ye==null?void 0:Ye["aria-label"])||(typeof(Ye==null?void 0:Ye.rendered)=="string"?Ye.rendered:"")||"";var je;let Ht=g.format("focusAnnouncement",{isGroupChange:(je=Ye&&le!==Be.current)!==null&&je!==void 0?je:!1,groupTitle:ht,groupCount:Ye?[...Fm(Ye,t.collection)].length:0,optionText:M["aria-label"]||M.textValue||"",isSelected:Te});Kl(Ht)}Be.current=le,Ge.current=_e});let Xe=NB(t.collection),Ne=I.useRef(Xe),qe=I.useRef(t.isOpen);I.useEffect(()=>{let je=t.isOpen!==qe.current&&(t.selectionManager.focusedKey==null||Oh());if(t.isOpen&&(je||Xe!==Ne.current)){let Te=g.format("countAnnouncement",{optionCount:Xe});Kl(Te)}Ne.current=Xe,qe.current=t.isOpen});let ke=I.useRef(t.selectedKey);return I.useEffect(()=>{if(Oh()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ke.current){let je=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:je});Kl(Te)}ke.current=t.selectedKey}),I.useEffect(()=>{if(t.isOpen)return kB([i.current,r.current].filter(je=>je!=null))},[t.isOpen,i,r]),h3(()=>{!M&&i.current&&ir(Xt(i.current))===i.current&&Hb(i.current,null)},[M]),ba(a,"react-aria-item-action",t.isOpen?()=>{t.close()}:void 0),{labelProps:ae,buttonProps:{...b,...V,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:z,onPressStart:G,isDisabled:h||f},inputProps:Qt(O,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":M?RB(t,M.key):void 0,onTouchEnd:fe,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt($,R,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection",UNSTABLE_itemBehavior:"action"}),descriptionProps:Ee,errorMessageProps:be,isInvalid:q,validationErrors:te,validationDetails:se}}var $F={};$F={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var EF={};EF={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var CF={};CF={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var wF={};wF={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var AF={};AF={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var SF={};SF={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var TF={};TF={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var PF={};PF={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var _F={};_F={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var BF={};BF={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var FF={};FF={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var kF={};kF={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var MF={};MF={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var RF={};RF={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var IF={};IF={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var OF={};OF={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var LF={};LF={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var VF={};VF={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var NF={};NF={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var jF={};jF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var KF={};KF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var zF={};zF={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var qF={};qF={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var UF={};UF={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var WF={};WF={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var HF={};HF={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var GF={};GF={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var YF={};YF={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var ZF={};ZF={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var XF={};XF={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var QF={};QF={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var JF={};JF={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var ek={};ek={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var tk={};tk={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var xf={};xf={"ar-AE":$F,"bg-BG":EF,"cs-CZ":CF,"da-DK":wF,"de-DE":AF,"el-GR":SF,"en-US":TF,"es-ES":PF,"et-EE":_F,"fi-FI":BF,"fr-FR":FF,"he-IL":kF,"hr-HR":MF,"hu-HU":RF,"it-IT":IF,"ja-JP":OF,"ko-KR":LF,"lt-LT":VF,"lv-LV":NF,"nb-NO":jF,"nl-NL":KF,"pl-PL":zF,"pt-BR":qF,"pt-PT":UF,"ro-RO":WF,"ru-RU":HF,"sk-SK":GF,"sl-SI":YF,"sr-SP":ZF,"sv-SE":XF,"tr-TR":QF,"uk-UA":JF,"zh-CN":ek,"zh-TW":tk};function Xb(e,t,n){let{direction:r}=_r(),i=I.useMemo(()=>Sm(t),[t]),a=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=Ew(t.current,f.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let f=l.target,h=Ew(t.current,f.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,h=Vr(t.current,{tabbable:!0});if(f&&(h.currentNode=f,f=h.previousNode()),!f){let m;do m=h.lastChild(),m&&(f=m);while(m)}for(;f!=null&&f.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))f=m;else break}f&&f.focus()},{pressProps:s}=hf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return Qt(s,{onKeyDown:a})}function Ew(e,t,n){let r=Vr(e,{tabbable:!0}),i=r.nextNode(),a=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,f=Math.abs(l);Math.sign(l)===n&&f<o&&(a=i,o=f),i=r.nextNode()}return a}function FJ(e){return e&&e.__esModule?e.default:e}const nk=new WeakMap,_d="__role_"+Date.now(),rk="__focusManager_"+Date.now();function ik(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:f,errorMessageProps:h}=_m({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=I.useRef(null),{focusWithinProps:g}=hc({...e,onFocusWithin(ae){var O;m.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,ae)},onBlurWithin:ae=>{var O;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=Ta(FJ(xf),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format($,{[x]:t.formatValue({month:"long"})}):"",w=fc(A),C=e[_d]==="presentation"?l["aria-describedby"]:[w["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=e[rk],T=I.useMemo(()=>E||Sm(n),[E,n]),P=Xb(t,n,e[_d]==="presentation");nk.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[s.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:T});let F=I.useRef(e.autoFocus),q;e[_d]==="presentation"?q={role:"presentation"}:q=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),I.useEffect(()=>{F.current&&T.focusFirst(),F.current=!1},[T]),Tb(e.inputRef,t.defaultValue,t.setValue),p_({...e,focus(){T.focusFirst()}},t,e.inputRef);let te={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(te.type="text",te.hidden=!0,te.required=e.isRequired,te.onChange=()=>{});let se=Zo(e);return{labelProps:{...s,onClick:()=>{T.focusFirst()}},fieldProps:Qt(se,q,P,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:te,descriptionProps:f,errorMessageProps:h,isInvalid:i,validationErrors:a,validationDetails:o}}function kJ(e,t,n){var r;let i=ik(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function MJ(e){return e&&e.__esModule?e.default:e}function RJ(e,t,n){let r=zr(),i=zr(),a=zr(),o=Ta(MJ(xf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=_m({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||l}),$=Xb(t,n),x=m["aria-labelledby"]||m.id,{locale:A}=_r(),w=t.formatValue(A,{month:"long"}),C=w?o.format("selectedDateDescription",{date:w}):"",E=fc(C),T=[E["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=Zo(e),F=I.useMemo(()=>Sm(n),[n]),q=I.useRef(!1),{focusWithinProps:te}=hc({...e,isDisabled:t.isOpen,onBlurWithin:se=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(se.relatedTarget))){var O,Ee;q.current=!1,(O=e.onBlur)===null||O===void 0||O.call(e,se),(Ee=e.onFocusChange)===null||Ee===void 0||Ee.call(e,!1)}},onFocusWithin:se=>{if(!q.current){var ae,O;q.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,se),(O=e.onFocusChange)===null||O===void 0||O.call(e,!0)}}});return{groupProps:Qt(P,$,m,E,te,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":T,onKeyDown(se){t.isOpen||e.onKeyDown&&e.onKeyDown(se)},onKeyUp(se){t.isOpen||e.onKeyUp&&e.onKeyUp(se)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:a,[_d]:"presentation","aria-describedby":T,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[tc]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...E,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${x}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:s,validationErrors:l,validationDetails:f}}function IJ(e){return e&&e.__esModule?e.default:e}function OJ(){let{locale:e}=_r(),t=HP(IJ(xf),"@react-aria/datepicker");return I.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new LJ(e,t)}},[e,t])}class LJ{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function VJ(e,t,n){let r=I.useRef(""),{locale:i,direction:a}=_r(),o=OJ(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:f,focusManager:h}=nk.get(t),m=e.isPlaceholder?"":e.text,g=I.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Za({month:"long",timeZone:g.timeZone}),$=Za({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=b.format(t.dateValue);m=M!==m?`${m} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:x}=jQ({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),A=I.useMemo(()=>new C7(i,{maximumFractionDigits:0}),[i]),w=()=>{if(e.text===e.placeholder&&h.focusPrevious(),A.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),oe=A.parse(M);M=oe===0?"":M,M.length===0||oe===0?t.clearSegment(e.type):t.setSegment(e.type,oe),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=M=>{if(M.key==="a"&&(oo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),w();break}},{startsWith:E}=A7({sensitivity:"base"}),T=Za({hour:"numeric",hour12:!0}),P=I.useMemo(()=>{let M=new Date;return M.setHours(0),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),F=I.useMemo(()=>{let M=new Date;return M.setHours(12),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),q=Za({year:"numeric",era:"narrow",timeZone:"UTC"}),te=I.useMemo(()=>{if(e.type!=="era")return[];let M=kn(new Gn(1,1,1),t.calendar),oe=t.calendar.getEras().map(Se=>{let _e=M.set({year:1,month:1,day:1,era:Se}).toDate("UTC"),Ge=q.formatToParts(_e).find(Xe=>Xe.type==="era").value;return{era:Se,formatted:Ge}}),le=NJ(oe.map(Se=>Se.formatted));if(le)for(let Se of oe)Se.formatted=Se.formatted.slice(le);return oe},[q,t.calendar,e.type]),se=M=>{if(t.isDisabled||t.isReadOnly)return;let oe=r.current+M;switch(e.type){case"dayPeriod":if(E(P,M))t.setSegment("dayPeriod",0);else if(E(F,M))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let le=te.find(Se=>E(Se.formatted,M));le&&(t.setSegment("era",le.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!A.isValidPartialNumber(oe))return;let le=A.parse(oe),Se=le,_e=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":le>11&&(Se=A.parse(M));break;case"h12":_e=!1,le>12&&(Se=A.parse(M));break}e.value!==void 0&&e.value>=12&&le>1&&(le+=12)}else e.maxValue!==void 0&&le>e.maxValue&&(Se=A.parse(M));if(isNaN(le))return;let Be=Se!==0||_e;Be&&t.setSegment(e.type,Se),e.maxValue!==void 0&&(+(le+"0")>e.maxValue||oe.length>=String(e.maxValue).length)?(r.current="",Be&&h.focusNext()):r.current=oe;break}}},ae=()=>{r.current="",n.current&&gp(n.current,{containingElement:Dm(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=I.useRef(typeof document<"u"?document:null);ba(O,"selectionchange",()=>{var M;let oe=window.getSelection();oe!=null&&oe.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(oe==null?void 0:oe.anchorNode))&&oe.collapse(n.current)});let Ee=I.useRef("");ba(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":A.isValidPartialNumber(e.text)&&!t.isReadOnly&&w();break;case"insertCompositionText":Ee.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&se(M.data);break}}),ba(n,"input",M=>{let{inputType:oe,data:le}=M;switch(oe){case"insertCompositionText":n.current&&(n.current.textContent=Ee.current),le!=null&&(E(P,le)||E(F,le))&&se(le);break}}),hn(()=>{let M=n.current;return()=>{document.activeElement===M&&(h.focusPrevious()||h.focusNext())}},[n,h]);let be=df()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=I.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(f=void 0);let G=zr(),V=!t.isDisabled&&!t.isReadOnly&&e.isEditable,R=e.type==="literal"?"":o.of(e.type),K=Xl({"aria-label":`${R}${s?`, ${s}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let fe={caretColor:"transparent"};if(a==="rtl"){fe.unicodeBidi="embed";let M=g[e.type];(M==="numeric"||M==="2-digit")&&(fe.direction="ltr")}return{segmentProps:Qt(x,K,{id:G,...be,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":f,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:V,suppressContentEditableWarning:V,spellCheck:V?"false":void 0,autoCorrect:V?"off":void 0,[parseInt(de.default.version,10)>=17?"enterKeyHint":"enterkeyhint"]:V?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!V?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:ae,style:fe,onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function NJ(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function jJ(e){return e&&e.__esModule?e.default:e}function KJ(e,t,n){var r,i,a,o,s;let l=Ta(jJ(xf),"@react-aria/datepicker"),{isInvalid:f,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:$,errorMessageProps:x}=_m({...e,labelElementType:"span",isInvalid:f,errorMessage:e.errorMessage||h}),A=b["aria-labelledby"]||b.id,{locale:w}=_r(),C=t.formatValue(w,{month:"long"}),E=C?l.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",T=fc(E),P={"aria-label":l.format("startDate"),"aria-labelledby":A},F={"aria-label":l.format("endDate"),"aria-labelledby":A},q=zr(),te=zr(),se=Xb(t,n),ae=[T["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=I.useMemo(()=>Sm(n,{accept:M=>M.id!==q}),[n,q]),Ee={[rk]:O,[_d]:"presentation","aria-describedby":ae,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},be=Zo(e),z=I.useRef(!1),{focusWithinProps:G}=hc({...e,isDisabled:t.isOpen,onBlurWithin:M=>{let oe=document.getElementById(te);if(!(oe!=null&&oe.contains(M.relatedTarget))){var le,Se;z.current=!1,(le=e.onBlur)===null||le===void 0||le.call(e,M),(Se=e.onFocusChange)===null||Se===void 0||Se.call(e,!1)}},onFocusWithin:M=>{if(!z.current){var oe,le;z.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,M),(le=e.onFocusChange)===null||le===void 0||le.call(e,!0)}}}),V=I.useRef(uu),R=I.useRef(uu);var K,fe;return{groupProps:Qt(be,se,b,T,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":ae,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...g,onClick:()=>{O.focusFirst()}},buttonProps:{...T,id:q,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${q} ${A}`,"aria-describedby":ae,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:te,"aria-labelledby":`${q} ${A}`},startFieldProps:{...P,...Ee,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:M=>t.setDateTime("start",M),autoFocus:e.autoFocus,name:e.startName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){V.current=M,t.updateValidation(Ap(M,R.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...Ee,value:(fe=(a=t.value)===null||a===void 0?void 0:a.end)!==null&&fe!==void 0?fe:null,defaultValue:(o=t.defaultValue)===null||o===void 0?void 0:o.end,onChange:M=>t.setDateTime("end",M),name:e.endName,form:e.form,[tc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(Ap(V.current,M))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:$,errorMessageProps:x,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:f,validationErrors:h,validationDetails:m}}function zJ(e,t){let{role:n="dialog"}=e,r=Zl();r=e["aria-label"]?void 0:r;let i=I.useRef(!1);return I.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Tu(t.current);let a=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Tu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),cJ(),{dialogProps:{...Zo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}var ri=function(e){return e[e.none=0]="none",e[e.cancel=0]="cancel",e[e.move=1]="move",e[e.copy=2]="copy",e[e.link=4]="link",e[e.all=7]="all",e}({});const ak={...ri,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},qJ=sk(ak);qJ[7]="all";const ok={none:"cancel",link:"link",copy:"copy",move:"move"},H4=sk(ok);function sk(e){let t={};for(let n in e)t[e[n]]=n;return t}const N3="application/vnd.react-aria.items+json",Tp="application/octet-stream",UJ=Symbol();function WJ(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(e="touch"),e}function HJ(){return WJ(FZ())}class Ch{has(t){return this.includesUnknownTypes||t===UJ&&this.types.has(Tp)?!0:typeof t=="string"&&this.types.has(t)}constructor(t){this.types=new Set;let n=!1;for(let r of t.items)r.type!==N3&&(r.kind==="file"&&(n=!0),r.type?this.types.add(r.type):this.types.add(Tp));this.includesUnknownTypes=!n&&t.types.includes("Files")}}function GJ(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(N3))try{let r=e.getData(N3),i=JSON.parse(r);for(let a of i)t.push({kind:"text",types:new Set(Object.keys(a)),getText:o=>Promise.resolve(a[o])});n=!0}catch{}if(!n){let r=new Map;for(let i of e.items)if(i.kind==="string")r.set(i.type||Tp,e.getData(i.type));else if(i.kind==="file")if(typeof i.webkitGetAsEntry=="function"){let a=i.webkitGetAsEntry();if(!a)continue;a.isFile?t.push(j3(i.getAsFile())):a.isDirectory&&t.push(uk(a))}else t.push(j3(i.getAsFile()));r.size>0&&t.push({kind:"text",types:new Set(r.keys()),getText:i=>Promise.resolve(r.get(i))})}return t}function YJ(e){return typeof e.text=="function"?e.text():new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=n,r.readAsText(e)})}function j3(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Tp,name:e.name,getText:()=>YJ(e),getFile:()=>Promise.resolve(e)}}function uk(e){return{kind:"directory",name:e.name,getEntries:()=>ZJ(e)}}async function*ZJ(e){let t=e.createReader(),n;do{n=await new Promise((r,i)=>{t.readEntries(r,i)});for(let r of n)if(r.isFile){let i=await XJ(r);yield j3(i)}else r.isDirectory&&(yield uk(r))}while(n.length>0)}function XJ(e){return new Promise((t,n)=>e.file(t,n))}let lk={draggingKeys:new Set};function QJ(e){lk=e}let Cw=ri.none,ww=new Map,Aw=null,Sw=new Set;function JJ(e){return ww.set(e.element,e),()=>{ww.delete(e.element)}}function eee(){let[e,t]=I.useState(Aw);return I.useEffect(()=>{let n=()=>t(Aw);return Sw.add(n),()=>{Sw.delete(n)}},[]),e}var ck={};ck={dragDescriptionKeyboard:"اضغط Enter لبدء السحب.",dragDescriptionKeyboardAlt:"اضغط على Alt + Enter لبدء السحب.",dragDescriptionLongPress:"اضغط باستمرار لبدء السحب.",dragDescriptionTouch:"اضغط مرتين لبدء السحب.",dragDescriptionVirtual:"انقر لبدء السحب.",dragItem:e=>`اسحب ${e.itemText}`,dragSelectedItems:(e,t)=>`اسحب ${t.plural(e.count,{one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عناصر محددة`})}`,dragSelectedKeyboard:(e,t)=>`اضغط على Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedKeyboardAlt:(e,t)=>`اضغط على مفتاحي Alt + Enter للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragSelectedLongPress:(e,t)=>`اضغط باستمرار للسحب ${t.plural(e.count,{one:"عدد العناصر المختارة",other:"عدد العناصر المختارة"})}.`,dragStartedKeyboard:"بدأ السحب. اضغط Tab للانتقال إلى موضع الإفلات، ثم اضغط Enter للإفلات، أو اضغط Escape للإلغاء.",dragStartedTouch:"بدأ السحب. انتقل إلى موضع الإفلات، ثم اضغط مرتين للإفلات.",dragStartedVirtual:"بدأ السحب. انتقل إلى مكان الإفلات، ثم انقر أو اضغط Enter للإفلات.",dropCanceled:"تم إلغاء الإفلات.",dropComplete:"اكتمل الإفلات.",dropDescriptionKeyboard:"اضغط Enter للإفلات. اضغط Escape لإلغاء السحب.",dropDescriptionTouch:"اضغط مرتين للإفلات.",dropDescriptionVirtual:"انقر للإفلات.",dropIndicator:"مؤشر الإفلات",dropOnItem:e=>`إفلات ${e.itemText}`,dropOnRoot:"الإفلات",endDragKeyboard:"السحب. اضغط Enter لإلغاء السحب.",endDragTouch:"السحب. اضغط مرتين لإلغاء السحب.",endDragVirtual:"السحب. انقر لإلغاء السحب.",insertAfter:e=>`أدخل بعد ${e.itemText}`,insertBefore:e=>`أدخل قبل ${e.itemText}`,insertBetween:e=>`أدخل بين ${e.beforeItemText} و ${e.afterItemText}`};var dk={};dk={dragDescriptionKeyboard:"Натиснете „Enter“, за да започнете да плъзгате.",dragDescriptionKeyboardAlt:"Натиснете Alt + Enter, за да започнете да плъзгате.",dragDescriptionLongPress:"Натиснете продължително, за да започнете да плъзгате.",dragDescriptionTouch:"Натиснете двукратно, за да започнете да плъзгате.",dragDescriptionVirtual:"Щракнете, за да започнете да плъзгате.",dragItem:e=>`Плъзни ${e.itemText}`,dragSelectedItems:(e,t)=>`Плъзни ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елемента`})}`,dragSelectedKeyboard:(e,t)=>`Натиснете Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натиснете Alt и Enter, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragSelectedLongPress:(e,t)=>`Натиснете продължително, за да плъзнете ${t.plural(e.count,{one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,dragStartedKeyboard:"Започна плъзгане. Натиснете „Tab“, за да се придвижите до целта, след което натиснете „Enter“ за пускане или натиснете „Escape“ за отмяна.",dragStartedTouch:"Започна плъзгане. Придвижете се до целта, след което натиснете двукратно, за да пуснете.",dragStartedVirtual:"Започна плъзгане. Придвижете се до целта, след което щракнете или натиснете „Enter“ за пускане.",dropCanceled:"Пускането е отменено.",dropComplete:"Пускането е завършено.",dropDescriptionKeyboard:"Натиснете „Enter“ за пускане. Натиснете „Escape“ за отмяна на плъзгането.",dropDescriptionTouch:"Натиснете двукратно за пускане.",dropDescriptionVirtual:"Щракнете за пускане.",dropIndicator:"индикатор за пускане",dropOnItem:e=>`Пусни върху ${e.itemText}`,dropOnRoot:"Пусни върху",endDragKeyboard:"Плъзгане. Натиснете „Enter“ за отмяна на плъзгането.",endDragTouch:"Плъзгане. Натиснете двукратно за отмяна на плъзгането.",endDragVirtual:"Плъзгане. Щракнете за отмяна.",insertAfter:e=>`Вмъкни след ${e.itemText}`,insertBefore:e=>`Вмъкни преди ${e.itemText}`,insertBetween:e=>`Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`};var fk={};fk={dragDescriptionKeyboard:"Stisknutím klávesy Enter začnete s přetahováním.",dragDescriptionKeyboardAlt:"Stisknutím Alt + Enter zahájíte přetahování.",dragDescriptionLongPress:"Dlouhým stisknutím zahájíte přetahování.",dragDescriptionTouch:"Poklepáním začnete s přetahováním.",dragDescriptionVirtual:"Kliknutím začnete s přetahováním.",dragItem:e=>`Přetáhnout ${e.itemText}`,dragSelectedItems:(e,t)=>`Přetáhnout ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,few:()=>`${t.number(e.count)} vybrané položky`,other:()=>`${t.number(e.count)} vybraných položek`})}`,dragSelectedKeyboard:(e,t)=>`Stisknutím klávesy Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stisknutím Alt + Enter přetáhněte ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragSelectedLongPress:(e,t)=>`Dlouhým stisknutím přetáhnete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybranou položku`,other:()=>`${t.number(e.count)} vybrané položky`})}.`,dragStartedKeyboard:"Začněte s přetahováním. Po stisknutí klávesy Tab najděte požadovaný cíl a stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dragStartedTouch:"Začněte s přetahováním. Najděte požadovaný cíl a poklepáním přetažení dokončete.",dragStartedVirtual:"Začněte s přetahováním. Najděte požadovaný cíl a kliknutím nebo stisknutím klávesy Enter přetažení dokončete.",dropCanceled:"Přetažení bylo zrušeno.",dropComplete:"Přetažení bylo dokončeno.",dropDescriptionKeyboard:"Stisknutím klávesy Enter přetažení dokončete nebo stisknutím klávesy Esc akci zrušte.",dropDescriptionTouch:"Poklepáním přetažení dokončete.",dropDescriptionVirtual:"Kliknutím objekt přetáhněte.",dropIndicator:"indikátor přetažení",dropOnItem:e=>`Přetáhnout na ${e.itemText}`,dropOnRoot:"Přetáhnout na",endDragKeyboard:"Probíhá přetahování. Stisknutím klávesy Enter přetažení zrušíte.",endDragTouch:"Probíhá přetahování. Poklepáním přetažení zrušíte.",endDragVirtual:"Probíhá přetahování. Kliknutím přetažení zrušíte.",insertAfter:e=>`Vložit za ${e.itemText}`,insertBefore:e=>`Vložit před ${e.itemText}`,insertBetween:e=>`Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`};var hk={};hk={dragDescriptionKeyboard:"Tryk på Enter for at starte med at trække.",dragDescriptionKeyboardAlt:"Tryk på Alt + Enter for at starte med at trække.",dragDescriptionLongPress:"Tryk længe for at starte med at trække.",dragDescriptionTouch:"Dobbelttryk for at starte med at trække.",dragDescriptionVirtual:"Klik for at starte med at trække.",dragItem:e=>`Træk ${e.itemText}`,dragSelectedItems:(e,t)=>`Træk ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}`,dragSelectedKeyboard:(e,t)=>`Tryk på Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryk på Alt + Enter for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Tryk længe for at trække ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgte element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Startet med at trække. Tryk på Tab for at gå til et slip-mål, tryk derefter på Enter for at slippe, eller tryk på Escape for at annullere.",dragStartedTouch:"Startet med at trække. Gå til et slip-mål, og dobbelttryk derefter for at slippe.",dragStartedVirtual:"Startet med at trække. Gå til et slip-mål, og klik eller tryk derefter på enter for at slippe.",dropCanceled:"Slip annulleret.",dropComplete:"Slip fuldført.",dropDescriptionKeyboard:"Tryk på Enter for at slippe. Tryk på Escape for at annullere trækning.",dropDescriptionTouch:"Dobbelttryk for at slippe.",dropDescriptionVirtual:"Klik for at slippe.",dropIndicator:"slip-indikator",dropOnItem:e=>`Slip på ${e.itemText}`,dropOnRoot:"Slip på",endDragKeyboard:"Trækning. Tryk på enter for at annullere træk.",endDragTouch:"Trækning. Dobbelttryk for at annullere træk.",endDragVirtual:"Trækning. Klik for at annullere trækning.",insertAfter:e=>`Indsæt efter ${e.itemText}`,insertBefore:e=>`Indsæt før ${e.itemText}`,insertBetween:e=>`Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`};var pk={};pk={dragDescriptionKeyboard:"Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",dragDescriptionKeyboardAlt:"Alt + Eingabe drücken, um den Ziehvorgang zu starten.",dragDescriptionLongPress:"Lang drücken, um mit dem Ziehen zu beginnen.",dragDescriptionTouch:"Tippen Sie doppelt, um den Ziehvorgang zu starten.",dragDescriptionVirtual:"Zum Starten des Ziehvorgangs klicken.",dragItem:e=>`${e.itemText} ziehen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Objekt`,other:()=>`${t.number(e.count)} ausgewählte Objekte`})} ziehen`,dragSelectedKeyboard:(e,t)=>`Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedKeyboardAlt:(e,t)=>`Alt + Eingabetaste drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragSelectedLongPress:(e,t)=>`Lang drücken, um ${t.plural(e.count,{one:()=>`${t.number(e.count)} ausgewähltes Element`,other:()=>`${t.number(e.count)} ausgewählte Elemente`})} zu ziehen.`,dragStartedKeyboard:"Ziehvorgang gestartet. Drücken Sie die Tabulatortaste, um zu einem Ablegeziel zu navigieren und drücken Sie dann die Eingabetaste, um das Objekt abzulegen, oder Escape, um den Vorgang abzubrechen.",dragStartedTouch:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und tippen Sie doppelt, um das Objekt abzulegen.",dragStartedVirtual:"Ziehvorgang gestartet. Navigieren Sie zu einem Ablegeziel und klicken Sie oder drücken Sie die Eingabetaste, um das Objekt abzulegen.",dropCanceled:"Ablegen abgebrochen.",dropComplete:"Ablegen abgeschlossen.",dropDescriptionKeyboard:"Drücken Sie die Eingabetaste, um das Objekt abzulegen. Drücken Sie Escape, um den Vorgang abzubrechen.",dropDescriptionTouch:"Tippen Sie doppelt, um das Objekt abzulegen.",dropDescriptionVirtual:"Zum Ablegen klicken.",dropIndicator:"Ablegeanzeiger",dropOnItem:e=>`Auf ${e.itemText} ablegen`,dropOnRoot:"Ablegen auf",endDragKeyboard:"Ziehvorgang läuft. Drücken Sie die Eingabetaste, um den Vorgang abzubrechen.",endDragTouch:"Ziehvorgang läuft. Tippen Sie doppelt, um den Vorgang abzubrechen.",endDragVirtual:"Ziehvorgang läuft. Klicken Sie, um den Vorgang abzubrechen.",insertAfter:e=>`Nach ${e.itemText} einfügen`,insertBefore:e=>`Vor ${e.itemText} einfügen`,insertBetween:e=>`Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`};var mk={};mk={dragDescriptionKeyboard:"Πατήστε Enter για έναρξη της μεταφοράς.",dragDescriptionKeyboardAlt:"Πατήστε Alt + Enter για έναρξη της μεταφοράς.",dragDescriptionLongPress:"Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",dragDescriptionTouch:"Πατήστε δύο φορές για έναρξη της μεταφοράς.",dragDescriptionVirtual:"Κάντε κλικ για να ξεκινήσετε τη μεταφορά.",dragItem:e=>`Μεταφορά ${e.itemText}`,dragSelectedItems:(e,t)=>`Μεταφορά σε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}`,dragSelectedKeyboard:(e,t)=>`Πατήστε Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Πατήστε Alt + Enter για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragSelectedLongPress:(e,t)=>`Πατήστε παρατεταμένα για να σύρετε ${t.plural(e.count,{one:()=>`${t.number(e.count)} επιλεγμένο στοιχείο`,other:()=>`${t.number(e.count)} επιλεγμένα στοιχεία`})}.`,dragStartedKeyboard:"Η μεταφορά ξεκίνησε. Πατήστε το πλήκτρο Tab για να μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε Enter για απόθεση ή πατήστε Escape για ακύρωση.",dragStartedTouch:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, πατήστε δύο φορές για απόθεση.",dragStartedVirtual:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε Enter για απόθεση.",dropCanceled:"Η απόθεση ακυρώθηκε.",dropComplete:"Η απόθεση ολοκληρώθηκε.",dropDescriptionKeyboard:"Πατήστε Enter για απόθεση. Πατήστε Escape για ακύρωση της μεταφοράς.",dropDescriptionTouch:"Πατήστε δύο φορές για απόθεση.",dropDescriptionVirtual:"Κάντε κλικ για απόθεση.",dropIndicator:"δείκτης απόθεσης",dropOnItem:e=>`Απόθεση σε ${e.itemText}`,dropOnRoot:"Απόθεση σε",endDragKeyboard:"Μεταφορά σε εξέλιξη. Πατήστε Enter για ακύρωση της μεταφοράς.",endDragTouch:"Μεταφορά σε εξέλιξη. Πατήστε δύο φορές για ακύρωση της μεταφοράς.",endDragVirtual:"Μεταφορά σε εξέλιξη. Κάντε κλικ για ακύρωση της μεταφοράς.",insertAfter:e=>`Εισαγωγή μετά από ${e.itemText}`,insertBefore:e=>`Εισαγωγή πριν από ${e.itemText}`,insertBetween:e=>`Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`};var gk={};gk={dragItem:e=>`Drag ${e.itemText}`,dragSelectedItems:(e,t)=>`Drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}`,dragDescriptionKeyboard:"Press Enter to start dragging.",dragDescriptionKeyboardAlt:"Press Alt + Enter to start dragging.",dragDescriptionTouch:"Double tap to start dragging.",dragDescriptionVirtual:"Click to start dragging.",dragDescriptionLongPress:"Long press to start dragging.",dragSelectedKeyboard:(e,t)=>`Press Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Press Alt + Enter to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragSelectedLongPress:(e,t)=>`Long press to drag ${t.plural(e.count,{one:()=>`${t.number(e.count)} selected item`,other:()=>`${t.number(e.count)} selected items`})}.`,dragStartedKeyboard:"Started dragging. Press Tab to navigate to a drop target, then press Enter to drop, or press Escape to cancel.",dragStartedTouch:"Started dragging. Navigate to a drop target, then double tap to drop.",dragStartedVirtual:"Started dragging. Navigate to a drop target, then click or press Enter to drop.",endDragKeyboard:"Dragging. Press Enter to cancel drag.",endDragTouch:"Dragging. Double tap to cancel drag.",endDragVirtual:"Dragging. Click to cancel drag.",dropDescriptionKeyboard:"Press Enter to drop. Press Escape to cancel drag.",dropDescriptionTouch:"Double tap to drop.",dropDescriptionVirtual:"Click to drop.",dropCanceled:"Drop canceled.",dropComplete:"Drop complete.",dropIndicator:"drop indicator",dropOnRoot:"Drop on",dropOnItem:e=>`Drop on ${e.itemText}`,insertBefore:e=>`Insert before ${e.itemText}`,insertBetween:e=>`Insert between ${e.beforeItemText} and ${e.afterItemText}`,insertAfter:e=>`Insert after ${e.itemText}`};var vk={};vk={dragDescriptionKeyboard:"Pulse Intro para empezar a arrastrar.",dragDescriptionKeyboardAlt:"Pulse Intro para empezar a arrastrar.",dragDescriptionLongPress:"Mantenga pulsado para comenzar a arrastrar.",dragDescriptionTouch:"Pulse dos veces para iniciar el arrastre.",dragDescriptionVirtual:"Haga clic para iniciar el arrastre.",dragItem:e=>`Arrastrar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}`,dragSelectedKeyboard:(e,t)=>`Pulse Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pulse Alt + Intro para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragSelectedLongPress:(e,t)=>`Mantenga pulsado para arrastrar ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,dragStartedKeyboard:"Se ha empezado a arrastrar. Pulse el tabulador para ir al público destinatario donde se vaya a colocar y, a continuación, pulse Intro para soltar, o pulse Escape para cancelar.",dragStartedTouch:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, pulse dos veces para soltar.",dragStartedVirtual:"Se ha empezado a arrastrar. Vaya al público destinatario donde se vaya a colocar y, a continuación, haga clic o pulse Intro para soltar.",dropCanceled:"Se ha cancelado la colocación.",dropComplete:"Colocación finalizada.",dropDescriptionKeyboard:"Pulse Intro para soltar. Pulse Escape para cancelar el arrastre.",dropDescriptionTouch:"Pulse dos veces para soltar.",dropDescriptionVirtual:"Haga clic para soltar.",dropIndicator:"indicador de colocación",dropOnItem:e=>`Soltar en ${e.itemText}`,dropOnRoot:"Soltar en",endDragKeyboard:"Arrastrando. Pulse Intro para cancelar el arrastre.",endDragTouch:"Arrastrando. Pulse dos veces para cancelar el arrastre.",endDragVirtual:"Arrastrando. Haga clic para cancelar el arrastre.",insertAfter:e=>`Insertar después de ${e.itemText}`,insertBefore:e=>`Insertar antes de ${e.itemText}`,insertBetween:e=>`Insertar entre ${e.beforeItemText} y ${e.afterItemText}`};var yk={};yk={dragDescriptionKeyboard:"Lohistamise alustamiseks vajutage klahvi Enter.",dragDescriptionKeyboardAlt:"Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",dragDescriptionLongPress:"Vajutage pikalt lohistamise alustamiseks.",dragDescriptionTouch:"Topeltpuudutage lohistamise alustamiseks.",dragDescriptionVirtual:"Klõpsake lohistamise alustamiseks.",dragItem:e=>`Lohista ${e.itemText}`,dragSelectedItems:(e,t)=>`Lohista ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksust`,other:()=>`${t.number(e.count)} valitud üksust`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks vajutage sisestusklahvi Enter.`,dragSelectedKeyboardAlt:(e,t)=>`Lohistamiseks vajutage klahvikombinatsiooni Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} jaoks.`,dragSelectedLongPress:(e,t)=>`Pikk vajutus ${t.plural(e.count,{one:()=>`${t.number(e.count)} valitud üksuse`,other:()=>`${t.number(e.count)} valitud üksuse`})} lohistamiseks.`,dragStartedKeyboard:"Alustati lohistamist. Kukutamise sihtmärgi juurde navigeerimiseks vajutage klahvi Tab, seejärel vajutage kukutamiseks klahvi Enter või loobumiseks klahvi Escape.",dragStartedTouch:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja topeltpuudutage kukutamiseks.",dragStartedVirtual:"Alustati lohistamist. Navigeerige kukutamise sihtmärgi juurde ja kukutamiseks klõpsake või vajutage klahvi Enter.",dropCanceled:"Lohistamisest loobuti.",dropComplete:"Lohistamine on tehtud.",dropDescriptionKeyboard:"Kukutamiseks vajutage klahvi Enter. Lohistamisest loobumiseks vajutage klahvi Escape.",dropDescriptionTouch:"Kukutamiseks topeltpuudutage.",dropDescriptionVirtual:"Kukutamiseks klõpsake.",dropIndicator:"lohistamise indikaator",dropOnItem:e=>`Kukuta asukohta ${e.itemText}`,dropOnRoot:"Kukuta asukohta",endDragKeyboard:"Lohistamine. Lohistamisest loobumiseks vajutage klahvi Enter.",endDragTouch:"Lohistamine. Lohistamisest loobumiseks topeltpuudutage.",endDragVirtual:"Lohistamine. Lohistamisest loobumiseks klõpsake.",insertAfter:e=>`Sisesta ${e.itemText} järele`,insertBefore:e=>`Sisesta ${e.itemText} ette`,insertBetween:e=>`Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`};var bk={};bk={dragDescriptionKeyboard:"Aloita vetäminen painamalla Enter-näppäintä.",dragDescriptionKeyboardAlt:"Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",dragDescriptionLongPress:"Aloita vetäminen pitämällä painettuna.",dragDescriptionTouch:"Aloita vetäminen kaksoisnapauttamalla.",dragDescriptionVirtual:"Aloita vetäminen napsauttamalla.",dragItem:e=>`Vedä kohdetta ${e.itemText}`,dragSelectedItems:(e,t)=>`Vedä ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittua kohdetta`,other:()=>`${t.number(e.count)} valittua kohdetta`})}`,dragSelectedKeyboard:(e,t)=>`Vedä painamalla Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Vedä painamalla Alt + Enter ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragSelectedLongPress:(e,t)=>`Vedä pitämällä painettuna ${t.plural(e.count,{one:()=>`${t.number(e.count)} valittu kohde`,other:()=>`${t.number(e.count)} valittua kohdetta`})}.`,dragStartedKeyboard:"Vetäminen aloitettu. Siirry pudotuskohteeseen painamalla sarkainnäppäintä ja sitten pudota painamalla Enter-näppäintä tai peruuta painamalla Escape-näppäintä.",dragStartedTouch:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota kaksoisnapauttamalla.",dragStartedVirtual:"Vetäminen aloitettu. Siirry pudotuskohteeseen ja pudota napsauttamalla tai painamalla Enter-näppäintä.",dropCanceled:"Pudotus peruutettu.",dropComplete:"Pudotus suoritettu.",dropDescriptionKeyboard:"Pudota painamalla Enter-näppäintä. Peruuta vetäminen painamalla Escape-näppäintä.",dropDescriptionTouch:"Pudota kaksoisnapauttamalla.",dropDescriptionVirtual:"Pudota napsauttamalla.",dropIndicator:"pudotuksen ilmaisin",dropOnItem:e=>`Pudota kohteeseen ${e.itemText}`,dropOnRoot:"Pudota kohteeseen",endDragKeyboard:"Vedetään. Peruuta vetäminen painamalla Enter-näppäintä.",endDragTouch:"Vedetään. Peruuta vetäminen kaksoisnapauttamalla.",endDragVirtual:"Vedetään. Peruuta vetäminen napsauttamalla.",insertAfter:e=>`Lisää kohteen ${e.itemText} jälkeen`,insertBefore:e=>`Lisää ennen kohdetta ${e.itemText}`,insertBetween:e=>`Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`};var xk={};xk={dragDescriptionKeyboard:"Appuyez sur Entrée pour commencer le déplacement.",dragDescriptionKeyboardAlt:"Appuyez sur Alt + Entrée pour commencer à faire glisser.",dragDescriptionLongPress:"Appuyez de manière prolongée pour commencer à faire glisser.",dragDescriptionTouch:"Touchez deux fois pour commencer le déplacement.",dragDescriptionVirtual:"Cliquez pour commencer le déplacement.",dragItem:e=>`Déplacer ${e.itemText}`,dragSelectedItems:(e,t)=>`Déplacer ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}`,dragSelectedKeyboard:(e,t)=>`Appuyez sur Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Appuyez sur Alt + Entrée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragSelectedLongPress:(e,t)=>`Appuyez de manière prolongée pour faire glisser ${t.plural(e.count,{one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,dragStartedKeyboard:"Déplacement commencé. Appuyez sur Tabulation pour accéder à une cible de dépôt, puis appuyez sur Entrée pour déposer, ou appuyez sur Échap pour annuler.",dragStartedTouch:"Déplacement commencé. Accédez à une cible de dépôt, puis touchez deux fois pour déposer.",dragStartedVirtual:"Déplacement commencé. Accédez à une cible de dépôt, puis cliquez ou appuyez sur Entrée pour déposer.",dropCanceled:"Dépôt annulé.",dropComplete:"Dépôt terminé.",dropDescriptionKeyboard:"Appuyez sur Entrée pour déposer. Appuyez sur Échap pour annuler le déplacement.",dropDescriptionTouch:"Touchez deux fois pour déposer.",dropDescriptionVirtual:"Cliquez pour déposer.",dropIndicator:"indicateur de dépôt",dropOnItem:e=>`Déposer sur ${e.itemText}`,dropOnRoot:"Déposer sur",endDragKeyboard:"Déplacement. Appuyez sur Entrée pour annuler le déplacement.",endDragTouch:"Déplacement. Touchez deux fois pour annuler le déplacement.",endDragVirtual:"Déplacement. Cliquez pour annuler le déplacement.",insertAfter:e=>`Insérer après ${e.itemText}`,insertBefore:e=>`Insérer avant ${e.itemText}`,insertBetween:e=>`Insérer entre ${e.beforeItemText} et ${e.afterItemText}`};var Dk={};Dk={dragDescriptionKeyboard:"הקש על Enter כדי להתחיל לגרור.",dragDescriptionKeyboardAlt:"הקש Alt + Enter כדי להתחיל לגרור.",dragDescriptionLongPress:"לחץ לחיצה ארוכה כדי להתחיל לגרור.",dragDescriptionTouch:"הקש פעמיים כדי להתחיל בגרירה.",dragDescriptionVirtual:"לחץ כדי להתחיל לגרור.",dragItem:e=>`גרור את ${e.itemText}`,dragSelectedItems:(e,t)=>`גרור ${t.plural(e.count,{one:()=>`פריט נבחר ${t.number(e.count)}`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}`,dragSelectedKeyboard:(e,t)=>`הקש על Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedKeyboardAlt:(e,t)=>`הקש Alt + Enter כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragSelectedLongPress:(e,t)=>`לחץ לחיצה ארוכה כדי לגרור ${t.plural(e.count,{one:()=>`${t.number(e.count)} פריט שנבחר`,other:()=>`${t.number(e.count)} פריטים שנבחרו`})}.`,dragStartedKeyboard:"התחלת לגרור. הקש על Tab כדי לנווט לנקודת הגרירה ולאחר מכן הקש על Enter כדי לשחרר או על Escape כדי לבטל.",dragStartedTouch:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן הקש פעמיים כדי לשחרר.",dragStartedVirtual:"התחלת לגרור. נווט לנקודת השחרור ולאחר מכן לחץ או הקש על Enter כדי לשחרר.",dropCanceled:"השחרור בוטל.",dropComplete:"השחרור הושלם.",dropDescriptionKeyboard:"הקש על Enter כדי לשחרר. הקש על Escape כדי לבטל את הגרירה.",dropDescriptionTouch:"הקש פעמיים כדי לשחרר.",dropDescriptionVirtual:"לחץ כדי לשחרר.",dropIndicator:"מחוון שחרור",dropOnItem:e=>`שחרר על ${e.itemText}`,dropOnRoot:"שחרר על",endDragKeyboard:"גורר. הקש על Enter כדי לבטל את הגרירה.",endDragTouch:"גורר. הקש פעמיים כדי לבטל את הגרירה.",endDragVirtual:"גורר. לחץ כדי לבטל את הגרירה.",insertAfter:e=>`הוסף אחרי ${e.itemText}`,insertBefore:e=>`הוסף לפני ${e.itemText}`,insertBetween:e=>`הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`};var $k={};$k={dragDescriptionKeyboard:"Pritisnite Enter da biste počeli povlačiti.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter za početak povlačenja.",dragDescriptionLongPress:"Dugo pritisnite za početak povlačenja.",dragDescriptionTouch:"Dvaput dodirnite da biste počeli povlačiti.",dragDescriptionVirtual:"Kliknite da biste počeli povlačiti.",dragItem:e=>`Povucite stavku ${e.itemText}`,dragSelectedItems:(e,t)=>`Povucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabranu stavku`,other:()=>`ovoliko odabranih stavki: ${t.number(e.count)}`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragSelectedLongPress:(e,t)=>`Dugo pritisnite za povlačenje ${t.plural(e.count,{one:()=>`${t.number(e.count)} odabrana stavka`,other:()=>`${t.number(e.count)} odabrane stavke`})}.`,dragStartedKeyboard:"Počeli ste povlačiti. Pritisnite tipku tabulatora da biste došli do cilja ispuštanja, a zatim Enter da biste ispustili stavku ili Escape da biste prekinuli povlačenje.",dragStartedTouch:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim dvaput dodirnite da biste ispustili stavku.",dragStartedVirtual:"Počeli ste povlačiti. Dođite do cilja ispuštanja, a zatim kliknite ili pritisnite Enter da biste ispustili stavku.",dropCanceled:"Povlačenje je prekinuto.",dropComplete:"Ispuštanje je dovršeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste ispustili stavku. Pritisnite Escape da biste prekinuli povlačenje.",dropDescriptionTouch:"Dvaput dodirnite da biste ispustili stavku.",dropDescriptionVirtual:"Kliknite da biste ispustili stavku.",dropIndicator:"pokazatelj ispuštanja",dropOnItem:e=>`Ispustite na stavku ${e.itemText}`,dropOnRoot:"Ispustite na",endDragKeyboard:"Povlačenje. Pritisnite Enter da biste prekinuli povlačenje.",endDragTouch:"Povlačenje. Dvaput dodirnite da biste prekinuli povlačenje.",endDragVirtual:"Povlačenje. Kliknite da biste prekinuli povlačenje.",insertAfter:e=>`Umetnite iza stavke ${e.itemText}`,insertBefore:e=>`Ispustite ispred stavke ${e.itemText}`,insertBetween:e=>`Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`};var Ek={};Ek={dragDescriptionKeyboard:"Nyomja le az Enter billentyűt a húzás megkezdéséhez.",dragDescriptionKeyboardAlt:"Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",dragDescriptionLongPress:"Hosszan nyomja meg a húzás elindításához.",dragDescriptionTouch:"Koppintson duplán a húzás megkezdéséhez.",dragDescriptionVirtual:"Kattintson a húzás megkezdéséhez.",dragItem:e=>`${e.itemText} húzása`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzása`,dragSelectedKeyboard:(e,t)=>`Nyomja meg az Entert ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedKeyboardAlt:(e,t)=>`Nyomja meg az Alt + Enter billentyűket ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragSelectedLongPress:(e,t)=>`Tartsa lenyomva hosszan ${t.plural(e.count,{one:()=>`${t.number(e.count)} kijelölt elem`,other:()=>`${t.number(e.count)} kijelölt elem`})} húzásához.`,dragStartedKeyboard:"Húzás megkezdve. Nyomja le a Tab billentyűt az elengedési célhoz navigálásához, majd nyomja le az Enter billentyűt az elengedéshez, vagy nyomja le az Escape billentyűt a megszakításhoz.",dragStartedTouch:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd koppintson duplán az elengedéshez.",dragStartedVirtual:"Húzás megkezdve. Navigáljon egy elengedési célhoz, majd kattintson vagy nyomja le az Enter billentyűt az elengedéshez.",dropCanceled:"Elengedés megszakítva.",dropComplete:"Elengedés teljesítve.",dropDescriptionKeyboard:"Nyomja le az Enter billentyűt az elengedéshez. Nyomja le az Escape billentyűt a húzás megszakításához.",dropDescriptionTouch:"Koppintson duplán az elengedéshez.",dropDescriptionVirtual:"Kattintson az elengedéshez.",dropIndicator:"elengedésjelző",dropOnItem:e=>`Elengedés erre: ${e.itemText}`,dropOnRoot:"Elengedés erre:",endDragKeyboard:"Húzás folyamatban. Nyomja le az Enter billentyűt a húzás megszakításához.",endDragTouch:"Húzás folyamatban. Koppintson duplán a húzás megszakításához.",endDragVirtual:"Húzás folyamatban. Kattintson a húzás megszakításához.",insertAfter:e=>`Beszúrás ${e.itemText} után`,insertBefore:e=>`Beszúrás ${e.itemText} elé`,insertBetween:e=>`Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`};var Ck={};Ck={dragDescriptionKeyboard:"Premi Invio per iniziare a trascinare.",dragDescriptionKeyboardAlt:"Premi Alt + Invio per iniziare a trascinare.",dragDescriptionLongPress:"Premi a lungo per iniziare a trascinare.",dragDescriptionTouch:"Tocca due volte per iniziare a trascinare.",dragDescriptionVirtual:"Fai clic per iniziare a trascinare.",dragItem:e=>`Trascina ${e.itemText}`,dragSelectedItems:(e,t)=>`Trascina ${t.plural(e.count,{one:()=>`${t.number(e.count)} altro elemento selezionato`,other:()=>`${t.number(e.count)} altri elementi selezionati`})}`,dragSelectedKeyboard:(e,t)=>`Premi Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Premi Alt + Invio per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragSelectedLongPress:(e,t)=>`Premi a lungo per trascinare ${t.plural(e.count,{one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,dragStartedKeyboard:"Hai iniziato a trascinare. Premi Tab per arrivare sull’area di destinazione, quindi premi Invio per rilasciare o Esc per annullare.",dragStartedTouch:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi tocca due volte per rilasciare.",dragStartedVirtual:"Hai iniziato a trascinare. Arriva sull’area di destinazione, quindi fai clic o premi Invio per rilasciare.",dropCanceled:"Rilascio annullato.",dropComplete:"Rilascio completato.",dropDescriptionKeyboard:"Premi Invio per rilasciare. Premi Esc per annullare.",dropDescriptionTouch:"Tocca due volte per rilasciare.",dropDescriptionVirtual:"Fai clic per rilasciare.",dropIndicator:"indicatore di rilascio",dropOnItem:e=>`Rilascia su ${e.itemText}`,dropOnRoot:"Rilascia su",endDragKeyboard:"Trascinamento. Premi Invio per annullare.",endDragTouch:"Trascinamento. Tocca due volte per annullare.",endDragVirtual:"Trascinamento. Fai clic per annullare.",insertAfter:e=>`Inserisci dopo ${e.itemText}`,insertBefore:e=>`Inserisci prima di ${e.itemText}`,insertBetween:e=>`Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`};var wk={};wk={dragDescriptionKeyboard:"Enter キーを押してドラッグを開始してください。",dragDescriptionKeyboardAlt:"Alt+Enter キーを押してドラッグを開始します。",dragDescriptionLongPress:"長押ししてドラッグを開始します。",dragDescriptionTouch:"ダブルタップしてドラッグを開始します。",dragDescriptionVirtual:"クリックしてドラッグを開始します。",dragItem:e=>`${e.itemText} をドラッグ`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} 個の選択項目`,other:()=>`${t.number(e.count)} 個の選択項目`})} をドラッグ`,dragSelectedKeyboard:(e,t)=>`Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedKeyboardAlt:(e,t)=>`Alt+Enter キーを押して、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragSelectedLongPress:(e,t)=>`長押しして、${t.plural(e.count,{one:()=>`${t.number(e.count)} 選択した項目`,other:()=>`${t.number(e.count)} 選択した項目`})}をドラッグします。`,dragStartedKeyboard:"ドラッグを開始します。Tab キーを押してドロップターゲットにいどうし、Enter キーを押してドロップするか、Esc キーを押してキャンセルします。",dragStartedTouch:"ドラッグを開始しました。ドロップのターゲットに移動し、ダブルタップしてドロップします。",dragStartedVirtual:"ドラッグを開始しました。ドロップのターゲットに移動し、クリックまたは Enter キーを押してドロップします。",dropCanceled:"ドロップがキャンセルされました。",dropComplete:"ドロップが完了しました。",dropDescriptionKeyboard:"Enter キーを押してドロップします。Esc キーを押してドラッグをキャンセルします。",dropDescriptionTouch:"ダブルタップしてドロップします。",dropDescriptionVirtual:"クリックしてドロップします。",dropIndicator:"ドロップインジケーター",dropOnItem:e=>`${e.itemText} にドロップ`,dropOnRoot:"ドロップ場所",endDragKeyboard:"ドラッグしています。Enter キーを押してドラッグをキャンセルします。",endDragTouch:"ドラッグしています。ダブルタップしてドラッグをキャンセルします。",endDragVirtual:"ドラッグしています。クリックしてドラッグをキャンセルします。",insertAfter:e=>`${e.itemText} の後に挿入`,insertBefore:e=>`${e.itemText} の前に挿入`,insertBetween:e=>`${e.beforeItemText} と ${e.afterItemText} の間に挿入`};var Ak={};Ak={dragDescriptionKeyboard:"드래그를 시작하려면 Enter를 누르세요.",dragDescriptionKeyboardAlt:"드래그를 시작하려면 Alt + Enter를 누르십시오.",dragDescriptionLongPress:"드래그를 시작하려면 길게 누르십시오.",dragDescriptionTouch:"드래그를 시작하려면 더블 탭하세요.",dragDescriptionVirtual:"드래그를 시작하려면 클릭하세요.",dragItem:e=>`${e.itemText} 드래그`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})} 드래그`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Enter를 누르십시오.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 Alt + Enter를 누르십시오.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)}개 선택 항목`,other:()=>`${t.number(e.count)}개 선택 항목`})}을 드래그하려면 길게 누르십시오.`,dragStartedKeyboard:"드래그가 시작되었습니다. Tab을 눌러 드롭 대상으로 이동한 다음 Enter를 눌러 드롭하거나 Esc를 눌러 취소하세요.",dragStartedTouch:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 더블 탭하여 드롭하세요.",dragStartedVirtual:"드래그가 시작되었습니다. 드롭 대상으로 이동한 다음 클릭하거나 Enter를 눌러 드롭하세요.",dropCanceled:"드롭이 취소되었습니다.",dropComplete:"드롭이 완료되었습니다.",dropDescriptionKeyboard:"드롭하려면 Enter를 누르세요. 드래그를 취소하려면 Esc를 누르세요.",dropDescriptionTouch:"더블 탭하여 드롭하세요.",dropDescriptionVirtual:"드롭하려면 클릭하세요.",dropIndicator:"드롭 표시기",dropOnItem:e=>`${e.itemText}에 드롭`,dropOnRoot:"드롭 대상",endDragKeyboard:"드래그 중입니다. 드래그를 취소하려면 Enter를 누르세요.",endDragTouch:"드래그 중입니다. 드래그를 취소하려면 더블 탭하세요.",endDragVirtual:"드래그 중입니다. 드래그를 취소하려면 클릭하세요.",insertAfter:e=>`${e.itemText} 이후에 삽입`,insertBefore:e=>`${e.itemText} 이전에 삽입`,insertBetween:e=>`${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`};var Sk={};Sk={dragDescriptionKeyboard:"Paspauskite „Enter“, kad pradėtumėte vilkti.",dragDescriptionKeyboardAlt:"Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",dragDescriptionLongPress:"Palaikykite nuspaudę, kad pradėtumėte vilkti.",dragDescriptionTouch:"Palieskite dukart, kad pradėtumėte vilkti.",dragDescriptionVirtual:"Spustelėkite, kad pradėtumėte vilkti.",dragItem:e=>`Vilkti ${e.itemText}`,dragSelectedItems:(e,t)=>`Vilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}`,dragSelectedKeyboard:(e,t)=>`Paspauskite „Enter“, jei norite nuvilkti ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Paspauskite „Alt + Enter“, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragSelectedLongPress:(e,t)=>`Nuspaudę palaikykite, kad nuvilktumėte ${t.plural(e.count,{one:()=>`${t.number(e.count)} pasirinktą elementą`,other:()=>`${t.number(e.count)} pasirinktus elementus`})}.`,dragStartedKeyboard:"Pradėta vilkti. Paspauskite „Tab“, kad pereitumėte į tiesioginę paskirties vietą, tada paspauskite „Enter“, kad numestumėte, arba „Escape“, kad atšauktumėte.",dragStartedTouch:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą, tada palieskite dukart, kad numestumėte.",dragStartedVirtual:"Pradėta vilkti. Eikite į tiesioginę paskirties vietą ir spustelėkite arba paspauskite „Enter“, kad numestumėte.",dropCanceled:"Numetimas atšauktas.",dropComplete:"Numesta.",dropDescriptionKeyboard:"Paspauskite „Enter“, kad numestumėte. Paspauskite „Escape“, kad atšauktumėte vilkimą.",dropDescriptionTouch:"Palieskite dukart, kad numestumėte.",dropDescriptionVirtual:"Spustelėkite, kad numestumėte.",dropIndicator:"numetimo indikatorius",dropOnItem:e=>`Numesti ant ${e.itemText}`,dropOnRoot:"Numesti ant",endDragKeyboard:"Velkama. Paspauskite „Enter“, kad atšauktumėte vilkimą.",endDragTouch:"Velkama. Spustelėkite dukart, kad atšauktumėte vilkimą.",endDragVirtual:"Velkama. Spustelėkite, kad atšauktumėte vilkimą.",insertAfter:e=>`Įterpti po ${e.itemText}`,insertBefore:e=>`Įterpti prieš ${e.itemText}`,insertBetween:e=>`Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`};var Tk={};Tk={dragDescriptionKeyboard:"Nospiediet Enter, lai sāktu vilkšanu.",dragDescriptionKeyboardAlt:"Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",dragDescriptionLongPress:"Turiet nospiestu, lai sāktu vilkšanu.",dragDescriptionTouch:"Veiciet dubultskārienu, lai sāktu vilkšanu.",dragDescriptionVirtual:"Noklikšķiniet, lai sāktu vilkšanu.",dragItem:e=>`Velciet ${e.itemText}`,dragSelectedItems:(e,t)=>`Velciet ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}`,dragSelectedKeyboard:(e,t)=>`Nospiediet taustiņu Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Nospiediet taustiņu kombināciju Alt+Enter, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragSelectedLongPress:(e,t)=>`Turiet nospiestu, lai vilktu ${t.plural(e.count,{one:()=>`${t.number(e.count)} atlasīto vienumu`,other:()=>`${t.number(e.count)} atlasītos vienumus`})}.`,dragStartedKeyboard:"Uzsākta vilkšana. Nospiediet taustiņu Tab, lai pārietu uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu, vai nospiediet Escape, lai atceltu.",dragStartedTouch:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam veiciet dubultskārienu, lai nomestu.",dragStartedVirtual:"Uzsākta vilkšana. Pārejiet uz nomešanas mērķi, pēc tam nospiediet Enter, lai nomestu.",dropCanceled:"Nomešana atcelta.",dropComplete:"Nomešana pabeigta.",dropDescriptionKeyboard:"Nospiediet Enter, lai nomestu. Nospiediet Escape, lai atceltu vilkšanu.",dropDescriptionTouch:"Veiciet dubultskārienu, lai nomestu.",dropDescriptionVirtual:"Noklikšķiniet, lai nomestu.",dropIndicator:"nomešanas indikators",dropOnItem:e=>`Nometiet uz ${e.itemText}`,dropOnRoot:"Nometiet uz",endDragKeyboard:"Notiek vilkšana. Nospiediet Enter, lai atceltu vilkšanu.",endDragTouch:"Notiek vilkšana. Veiciet dubultskārienu, lai atceltu vilkšanu.",endDragVirtual:"Notiek vilkšana. Noklikšķiniet, lai atceltu vilkšanu.",insertAfter:e=>`Ievietojiet pēc ${e.itemText}`,insertBefore:e=>`Ievietojiet pirms ${e.itemText}`,insertBetween:e=>`Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`};var Pk={};Pk={dragDescriptionKeyboard:"Trykk på Enter for å begynne å dra.",dragDescriptionKeyboardAlt:"Trykk på Alt + Enter for å begynne å dra.",dragDescriptionLongPress:"Trykk lenge for å begynne å dra.",dragDescriptionTouch:"Dobbelttrykk for å begynne å dra.",dragDescriptionVirtual:"Klikk for å begynne å dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} merket element`,other:()=>`${t.number(e.count)} merkede elementer`})}`,dragSelectedKeyboard:(e,t)=>`Trykk Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Trykk på Alt + Enter for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragSelectedLongPress:(e,t)=>`Trykk lenge for å dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valgt element`,other:()=>`${t.number(e.count)} valgte elementer`})}.`,dragStartedKeyboard:"Begynte å dra. Trykk på Tab for å navigere til et mål, og trykk deretter på Enter for å slippe eller på Esc for å avbryte.",dragStartedTouch:"Begynte å dra. Naviger til et mål, og dobbelttrykk for å slippe.",dragStartedVirtual:"Begynte å dra. Naviger til et mål, og klikk eller trykk på Enter for å slippe.",dropCanceled:"Avbrøt slipping.",dropComplete:"Slippingen er fullført.",dropDescriptionKeyboard:"Trykk på Enter for å slippe. Trykk på Esc hvis du vil avbryte draingen.",dropDescriptionTouch:"Dobbelttrykk for å slippe.",dropDescriptionVirtual:"Klikk for å slippe.",dropIndicator:"slippeindikator",dropOnItem:e=>`Slipp på ${e.itemText}`,dropOnRoot:"Slipp på",endDragKeyboard:"Drar. Trykk på Enter hvis du vil avbryte.",endDragTouch:"Drar. Dobbelttrykk hvis du vil avbryte.",endDragVirtual:"Drar. Klikk hvis du vil avbryte.",insertAfter:e=>`Sett inn etter ${e.itemText}`,insertBefore:e=>`Sett inn før ${e.itemText}`,insertBetween:e=>`Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`};var _k={};_k={dragDescriptionKeyboard:"Druk op Enter om te slepen.",dragDescriptionKeyboardAlt:"Druk op Alt + Enter om te slepen.",dragDescriptionLongPress:"Houd lang ingedrukt om te slepen.",dragDescriptionTouch:"Dubbeltik om te slepen.",dragDescriptionVirtual:"Klik om met slepen te starten.",dragItem:e=>`${e.itemText} slepen`,dragSelectedItems:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} slepen`,dragSelectedKeyboard:(e,t)=>`Druk op Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedKeyboardAlt:(e,t)=>`Druk op Alt + Enter om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragSelectedLongPress:(e,t)=>`Houd lang ingedrukt om ${t.plural(e.count,{one:()=>`${t.number(e.count)} geselecteerd item`,other:()=>`${t.number(e.count)} geselecteerde items`})} te slepen.`,dragStartedKeyboard:"Begonnen met slepen. Druk op Tab om naar een locatie te gaan. Druk dan op Enter om neer te zetten, of op Esc om te annuleren.",dragStartedTouch:"Begonnen met slepen. Ga naar de gewenste locatie en dubbeltik om neer te zetten.",dragStartedVirtual:"Begonnen met slepen. Ga naar de gewenste locatie en klik of druk op Enter om neer te zetten.",dropCanceled:"Neerzetten geannuleerd.",dropComplete:"Neerzetten voltooid.",dropDescriptionKeyboard:"Druk op Enter om neer te zetten. Druk op Esc om het slepen te annuleren.",dropDescriptionTouch:"Dubbeltik om neer te zetten.",dropDescriptionVirtual:"Klik om neer te zetten.",dropIndicator:"aanwijzer voor neerzetten",dropOnItem:e=>`Neerzetten op ${e.itemText}`,dropOnRoot:"Neerzetten op",endDragKeyboard:"Bezig met slepen. Druk op Enter om te annuleren.",endDragTouch:"Bezig met slepen. Dubbeltik om te annuleren.",endDragVirtual:"Bezig met slepen. Klik om te annuleren.",insertAfter:e=>`Plaatsen na ${e.itemText}`,insertBefore:e=>`Plaatsen vóór ${e.itemText}`,insertBetween:e=>`Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`};var Bk={};Bk={dragDescriptionKeyboard:"Naciśnij Enter, aby rozpocząć przeciąganie.",dragDescriptionKeyboardAlt:"Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",dragDescriptionLongPress:"Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",dragDescriptionTouch:"Dotknij dwukrotnie, aby rozpocząć przeciąganie.",dragDescriptionVirtual:"Kliknij, aby rozpocząć przeciąganie.",dragItem:e=>`Przeciągnij ${e.itemText}`,dragSelectedItems:(e,t)=>`Przeciągnij ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybranych elementów`})}`,dragSelectedKeyboard:(e,t)=>`Naciśnij Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Naciśnij Alt + Enter, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragSelectedLongPress:(e,t)=>`Naciśnij i przytrzymaj, aby przeciągnąć ${t.plural(e.count,{one:()=>`${t.number(e.count)} wybrany element`,other:()=>`${t.number(e.count)} wybrane(-ych) elementy(-ów)`})}.`,dragStartedKeyboard:"Rozpoczęto przeciąganie. Naciśnij Tab, aby wybrać miejsce docelowe, a następnie naciśnij Enter, aby upuścić, lub Escape, aby anulować.",dragStartedTouch:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie dotknij dwukrotnie, aby upuścić.F",dragStartedVirtual:"Rozpoczęto przeciąganie. Wybierz miejsce, w którym chcesz upuścić element, a następnie kliknij lub naciśnij Enter, aby upuścić.",dropCanceled:"Anulowano upuszczenie.",dropComplete:"Zakończono upuszczanie.",dropDescriptionKeyboard:"Naciśnij Enter, aby upuścić. Naciśnij Escape, aby anulować przeciągnięcie.",dropDescriptionTouch:"Dotknij dwukrotnie, aby upuścić.",dropDescriptionVirtual:"Kliknij, aby upuścić.",dropIndicator:"wskaźnik upuszczenia",dropOnItem:e=>`Upuść na ${e.itemText}`,dropOnRoot:"Upuść",endDragKeyboard:"Przeciąganie. Naciśnij Enter, aby anulować przeciągnięcie.",endDragTouch:"Przeciąganie. Kliknij dwukrotnie, aby anulować przeciągnięcie.",endDragVirtual:"Przeciąganie. Kliknij, aby anulować przeciąganie.",insertAfter:e=>`Umieść za ${e.itemText}`,insertBefore:e=>`Umieść przed ${e.itemText}`,insertBetween:e=>`Umieść między ${e.beforeItemText} i ${e.afterItemText}`};var Fk={};Fk={dragDescriptionKeyboard:"Pressione Enter para começar a arrastar.",dragDescriptionKeyboardAlt:"Pressione Alt + Enter para começar a arrastar.",dragDescriptionLongPress:"Pressione e segure para começar a arrastar.",dragDescriptionTouch:"Toque duas vezes para começar a arrastar.",dragDescriptionVirtual:"Clique para começar a arrastar.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Pressione Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pressione Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Pressione e segure para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Comece a arrastar. Pressione Tab para navegar até um alvo e, em seguida, pressione Enter para soltar ou pressione Escape para cancelar.",dragStartedTouch:"Comece a arrastar. Navegue até um alvo e toque duas vezes para soltar.",dragStartedVirtual:"Comece a arrastar. Navegue até um alvo e clique ou pressione Enter para soltar.",dropCanceled:"Liberação cancelada.",dropComplete:"Liberação concluída.",dropDescriptionKeyboard:"Pressione Enter para soltar. Pressione Escape para cancelar.",dropDescriptionTouch:"Toque duas vezes para soltar.",dropDescriptionVirtual:"Clique para soltar.",dropIndicator:"indicador de liberação",dropOnItem:e=>`Soltar em ${e.itemText}`,dropOnRoot:"Soltar",endDragKeyboard:"Arrastando. Pressione Enter para cancelar.",endDragTouch:"Arrastando. Toque duas vezes para cancelar.",endDragVirtual:"Arrastando. Clique para cancelar.",insertAfter:e=>`Inserir após ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var kk={};kk={dragDescriptionKeyboard:"Prima Enter para iniciar o arrasto.",dragDescriptionKeyboardAlt:"Prima Alt + Enter para iniciar o arrasto.",dragDescriptionLongPress:"Prima longamente para começar a arrastar.",dragDescriptionTouch:"Faça duplo toque para começar a arrastar.",dragDescriptionVirtual:"Clique para iniciar o arrasto.",dragItem:e=>`Arrastar ${e.itemText}`,dragSelectedItems:(e,t)=>`Arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}`,dragSelectedKeyboard:(e,t)=>`Prima Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Prima Alt + Enter para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragSelectedLongPress:(e,t)=>`Prima longamente para arrastar ${t.plural(e.count,{one:()=>`${t.number(e.count)} o item selecionado`,other:()=>`${t.number(e.count)} os itens selecionados`})}.`,dragStartedKeyboard:"Arrasto iniciado. Prima a tecla de tabulação para navegar para um destino para largar, e em seguida prima Enter para largar ou prima Escape para cancelar.",dragStartedTouch:"Arrasto iniciado. Navegue para um destino para largar, e em seguida faça duplo toque para largar.",dragStartedVirtual:"Arrasto iniciado. Navegue para um destino para largar, e em seguida clique ou prima Enter para largar.",dropCanceled:"Largar cancelado.",dropComplete:"Largar completo.",dropDescriptionKeyboard:"Prima Enter para largar. Prima Escape para cancelar o arrasto.",dropDescriptionTouch:"Faça duplo toque para largar.",dropDescriptionVirtual:"Clique para largar.",dropIndicator:"Indicador de largar",dropOnItem:e=>`Largar em ${e.itemText}`,dropOnRoot:"Largar em",endDragKeyboard:"A arrastar. Prima Enter para cancelar o arrasto.",endDragTouch:"A arrastar. Faça duplo toque para cancelar o arrasto.",endDragVirtual:"A arrastar. Clique para cancelar o arrasto.",insertAfter:e=>`Inserir depois de ${e.itemText}`,insertBefore:e=>`Inserir antes de ${e.itemText}`,insertBetween:e=>`Inserir entre ${e.beforeItemText} e ${e.afterItemText}`};var Mk={};Mk={dragDescriptionKeyboard:"Apăsați pe Enter pentru a începe glisarea.",dragDescriptionKeyboardAlt:"Apăsați pe Alt + Enter pentru a începe glisarea.",dragDescriptionLongPress:"Apăsați lung pentru a începe glisarea.",dragDescriptionTouch:"Atingeți de două ori pentru a începe să glisați.",dragDescriptionVirtual:"Faceți clic pentru a începe glisarea.",dragItem:e=>`Glisați ${e.itemText}`,dragSelectedItems:(e,t)=>`Glisați ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}`,dragSelectedKeyboard:(e,t)=>`Apăsați pe Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Apăsați pe Alt + Enter pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragSelectedLongPress:(e,t)=>`Apăsați lung pentru a glisa ${t.plural(e.count,{one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,dragStartedKeyboard:"A început glisarea. Apăsați pe Tab pentru a naviga la o țintă de fixare, apoi apăsați pe Enter pentru a fixa sau apăsați pe Escape pentru a anula glisarea.",dragStartedTouch:"A început glisarea. Navigați la o țintă de fixare, apoi atingeți de două ori pentru a fixa.",dragStartedVirtual:"A început glisarea. Navigați la o țintă de fixare, apoi faceți clic sau apăsați pe Enter pentru a fixa.",dropCanceled:"Fixare anulată.",dropComplete:"Fixare finalizată.",dropDescriptionKeyboard:"Apăsați pe Enter pentru a fixa. Apăsați pe Escape pentru a anula glisarea.",dropDescriptionTouch:"Atingeți de două ori pentru a fixa.",dropDescriptionVirtual:"Faceți clic pentru a fixa.",dropIndicator:"indicator de fixare",dropOnItem:e=>`Fixați pe ${e.itemText}`,dropOnRoot:"Fixare pe",endDragKeyboard:"Se glisează. Apăsați pe Enter pentru a anula glisarea.",endDragTouch:"Se glisează. Atingeți de două ori pentru a anula glisarea.",endDragVirtual:"Se glisează. Faceți clic pentru a anula glisarea.",insertAfter:e=>`Inserați după ${e.itemText}`,insertBefore:e=>`Inserați înainte de ${e.itemText}`,insertBetween:e=>`Inserați între ${e.beforeItemText} și ${e.afterItemText}`};var Rk={};Rk={dragDescriptionKeyboard:"Нажмите клавишу Enter для начала перетаскивания.",dragDescriptionKeyboardAlt:"Нажмите Alt + Enter, чтобы начать перетаскивать.",dragDescriptionLongPress:"Нажмите и удерживайте, чтобы начать перетаскивать.",dragDescriptionTouch:"Дважды нажмите для начала перетаскивания.",dragDescriptionVirtual:"Щелкните для начала перетаскивания.",dragItem:e=>`Перетащить ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетащить ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранный элемент`,other:()=>`${t.number(e.count)} выбранных элем`})}`,dragSelectedKeyboard:(e,t)=>`Нажмите Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Нажмите Alt + Enter для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragSelectedLongPress:(e,t)=>`Нажмите и удерживайте для перетаскивания ${t.plural(e.count,{one:()=>`${t.number(e.count)} выбранного элемента`,other:()=>`${t.number(e.count)} выбранных элементов`})}.`,dragStartedKeyboard:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание, или клавишу Escape для отмены действия.",dragStartedTouch:"Начато перетаскивание. Выберите цель, затем дважды нажмите, чтобы применить перетаскивание.",dragStartedVirtual:"Начато перетаскивание. Нажмите клавишу Tab для выбора цели, затем нажмите клавишу Enter, чтобы применить перетаскивание.",dropCanceled:"Перетаскивание отменено.",dropComplete:"Перетаскивание завершено.",dropDescriptionKeyboard:"Нажмите клавишу Enter, чтобы применить перетаскивание. Нажмите клавишу Escape для отмены.",dropDescriptionTouch:"Дважды нажмите, чтобы применить перетаскивание.",dropDescriptionVirtual:"Щелкните, чтобы применить перетаскивание.",dropIndicator:"индикатор перетаскивания",dropOnItem:e=>`Перетащить на ${e.itemText}`,dropOnRoot:"Перетащить на",endDragKeyboard:"Перетаскивание. Нажмите клавишу Enter для отмены.",endDragTouch:"Перетаскивание. Дважды нажмите для отмены.",endDragVirtual:"Перетаскивание. Щелкните для отмены.",insertAfter:e=>`Вставить после ${e.itemText}`,insertBefore:e=>`Вставить перед ${e.itemText}`,insertBetween:e=>`Вставить между ${e.beforeItemText} и ${e.afterItemText}`};var Ik={};Ik={dragDescriptionKeyboard:"Stlačením klávesu Enter začnete presúvanie.",dragDescriptionKeyboardAlt:"Stlačením klávesov Alt + Enter začnete presúvanie.",dragDescriptionLongPress:"Dlhým stlačením začnete presúvanie.",dragDescriptionTouch:"Dvojitým kliknutím začnete presúvanie.",dragDescriptionVirtual:"Kliknutím začnete presúvanie.",dragItem:e=>`Presunúť položku ${e.itemText}`,dragSelectedItems:(e,t)=>`Presunúť ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybraté položky`})}`,dragSelectedKeyboard:(e,t)=>`Stlačením klávesu Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Stlačením klávesov Alt + Enter presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragSelectedLongPress:(e,t)=>`Dlhým stlačením presuniete ${t.plural(e.count,{one:()=>`${t.number(e.count)} vybratú položku`,other:()=>`${t.number(e.count)} vybratých položiek`})}.`,dragStartedKeyboard:"Presúvanie sa začalo. Do cieľového umiestnenia prejdete stlačením klávesu Tab. Ak chcete položku umiestniť, stlačte kláves Enter alebo stlačte kláves Esc, ak chcete presúvanie zrušiť.",dragStartedTouch:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a dvojitým kliknutím umiestnite položku.",dragStartedVirtual:"Presúvanie sa začalo. Prejdite na cieľové umiestnenie a kliknutím alebo stlačením klávesu Enter umiestnite položku.",dropCanceled:"Umiestnenie zrušené.",dropComplete:"Umiestnenie dokončené.",dropDescriptionKeyboard:"Stlačením klávesu Enter umiestnite položku. Stlačením klávesu Esc zrušíte presúvanie.",dropDescriptionTouch:"Dvojitým kliknutím umiestnite položku.",dropDescriptionVirtual:"Kliknutím umiestnite položku.",dropIndicator:"indikátor umiestnenia",dropOnItem:e=>`Umiestniť na položku ${e.itemText}`,dropOnRoot:"Umiestniť na",endDragKeyboard:"Prebieha presúvanie. Ak ho chcete zrušiť, stlačte kláves Enter.",endDragTouch:"Prebieha presúvanie. Dvojitým kliknutím ho môžete zrušiť.",endDragVirtual:"Prebieha presúvanie.",insertAfter:e=>`Vložiť za položku ${e.itemText}`,insertBefore:e=>`Vložiť pred položku ${e.itemText}`,insertBetween:e=>`Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`};var Ok={};Ok={dragDescriptionKeyboard:"Pritisnite tipko Enter za začetek vlečenja.",dragDescriptionKeyboardAlt:"Pritisnite tipki Alt + Enter za začetek vlečenja.",dragDescriptionLongPress:"Pritisnite in zadržite za začetek vlečenja.",dragDescriptionTouch:"Dvotapnite za začetek vlečenja.",dragDescriptionVirtual:"Kliknite za začetek vlečenja.",dragItem:e=>`Povleci ${e.itemText}`,dragSelectedItems:(e,t)=>`Povlecite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbran element`,other:()=>`izbrane elemente (${t.number(e.count)})`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite tipko Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite tipki Alt + Enter, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite in zadržite, da povlečete ${t.plural(e.count,{one:()=>`${t.number(e.count)} izbrani element`,other:()=>`${t.number(e.count)} izbranih elementov`})}.`,dragStartedKeyboard:"Vlečenje se je začelo. Pritisnite tipko Tab za pomik na mesto, kamor želite spustiti elemente, in pritisnite tipko Enter, da jih spustite, ali tipko Escape, da prekličete postopek.",dragStartedTouch:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in dvotapnite, da jih spustite.",dragStartedVirtual:"Vlečenje se je začelo. Pomaknite se na mesto, kamor želite spustiti elemente, in kliknite ali pritisnite tipko Enter, da jih spustite.",dropCanceled:"Spust je preklican.",dropComplete:"Spust je končan.",dropDescriptionKeyboard:"Pritisnite tipko Enter, da spustite. Pritisnite tipko Escape, da prekličete vlečenje.",dropDescriptionTouch:"Dvotapnite, da spustite.",dropDescriptionVirtual:"Kliknite, da spustite.",dropIndicator:"indikator spusta",dropOnItem:e=>`Spusti na mesto ${e.itemText}`,dropOnRoot:"Spusti na mesto",endDragKeyboard:"Vlečenje. Pritisnite tipko Enter za preklic vlečenja.",endDragTouch:"Vlečenje. Dvotapnite za preklic vlečenja.",endDragVirtual:"Vlečenje. Kliknite, da prekličete vlečenje.",insertAfter:e=>`Vstavi za ${e.itemText}`,insertBefore:e=>`Vstavi pred ${e.itemText}`,insertBetween:e=>`Vstavi med ${e.beforeItemText} in ${e.afterItemText}`};var Lk={};Lk={dragDescriptionKeyboard:"Pritisnite Enter da biste započeli prevlačenje.",dragDescriptionKeyboardAlt:"Pritisnite Alt + Enter da biste započeli prevlačenje.",dragDescriptionLongPress:"Pritisnite dugo da biste započeli prevlačenje.",dragDescriptionTouch:"Dvaput dodirnite da biste započeli prevlačenje.",dragDescriptionVirtual:"Kliknite da biste započeli prevlačenje.",dragItem:e=>`Prevucite ${e.itemText}`,dragSelectedItems:(e,t)=>`Prevucite ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabrane stavke`})}`,dragSelectedKeyboard:(e,t)=>`Pritisnite Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Pritisnite Alt + Enter da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragSelectedLongPress:(e,t)=>`Pritisnite dugo da biste prevukli ${t.plural(e.count,{one:()=>`${t.number(e.count)} izabranu stavku`,other:()=>`${t.number(e.count)} izabranih stavki`})}.`,dragStartedKeyboard:"Prevlačenje je započeto. Pritisnite Tab da biste otišli do cilja za otpuštanje, zatim pritisnite Enter za ispuštanje ili pritisnite Escape za otkazivanje.",dragStartedTouch:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim dvaput dodirnite za otpuštanje.",dragStartedVirtual:"Prevlačenje je započeto. Idite do cilja za otpuštanje, a zatim kliknite ili pritinite Enter za otpuštanje.",dropCanceled:"Otpuštanje je otkazano.",dropComplete:"Prevlačenje je završeno.",dropDescriptionKeyboard:"Pritisnite Enter da biste otpustili. Pritisnite Escape da biste otkazali prevlačenje.",dropDescriptionTouch:"Dvaput dodirnite za otpuštanje.",dropDescriptionVirtual:"Kliknite za otpuštanje.",dropIndicator:"Indikator otpuštanja",dropOnItem:e=>`Otpusti na ${e.itemText}`,dropOnRoot:"Otpusti na",endDragKeyboard:"Prevlačenje u toku. Pritisnite Enter da biste otkazali prevlačenje.",endDragTouch:"Prevlačenje u toku. Dvaput dodirnite da biste otkazali prevlačenje.",endDragVirtual:"Prevlačenje u toku. Kliknite da biste otkazali prevlačenje.",insertAfter:e=>`Umetnite posle ${e.itemText}`,insertBefore:e=>`Umetnite ispred ${e.itemText}`,insertBetween:e=>`Umetnite između ${e.beforeItemText} i ${e.afterItemText}`};var Vk={};Vk={dragDescriptionKeyboard:"Tryck på enter för att börja dra.",dragDescriptionKeyboardAlt:"Tryck på Alt + Retur för att börja dra.",dragDescriptionLongPress:"Tryck länge för att börja dra.",dragDescriptionTouch:"Dubbeltryck för att börja dra.",dragDescriptionVirtual:"Klicka för att börja dra.",dragItem:e=>`Dra ${e.itemText}`,dragSelectedItems:(e,t)=>`Dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} valt objekt`,other:()=>`${t.number(e.count)} valda objekt`})}`,dragSelectedKeyboard:(e,t)=>`Tryck på Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Tryck på Alt + Retur för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragSelectedLongPress:(e,t)=>`Tryck länge för att dra ${t.plural(e.count,{one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,dragStartedKeyboard:"Börja dra. Tryck på tabb för att navigera till målet, tryck på enter för att släppa eller på escape för att avbryta.",dragStartedTouch:"Börja dra. Navigera till ett mål och dubbeltryck för att släppa.",dragStartedVirtual:"Börja dra. Navigera till ett mål och klicka eller tryck på enter för att släppa.",dropCanceled:"Släppåtgärd avbröts.",dropComplete:"Släppåtgärd klar.",dropDescriptionKeyboard:"Tryck på enter för att släppa. Tryck på escape för att avbryta dragåtgärd.",dropDescriptionTouch:"Dubbeltryck för att släppa.",dropDescriptionVirtual:"Klicka för att släppa.",dropIndicator:"släppindikator",dropOnItem:e=>`Släpp på ${e.itemText}`,dropOnRoot:"Släpp på",endDragKeyboard:"Drar. Tryck på enter för att avbryta dragåtgärd.",endDragTouch:"Drar. Dubbeltryck för att avbryta dragåtgärd.",endDragVirtual:"Drar. Klicka för att avbryta dragåtgärd.",insertAfter:e=>`Infoga efter ${e.itemText}`,insertBefore:e=>`Infoga före ${e.itemText}`,insertBetween:e=>`Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`};var Nk={};Nk={dragDescriptionKeyboard:"Sürüklemeyi başlatmak için Enter'a basın.",dragDescriptionKeyboardAlt:"Sürüklemeyi başlatmak için Alt + Enter'a basın.",dragDescriptionLongPress:"Sürüklemeye başlamak için uzun basın.",dragDescriptionTouch:"Sürüklemeyi başlatmak için çift tıklayın.",dragDescriptionVirtual:"Sürüklemeyi başlatmak için tıklayın.",dragItem:e=>`${e.itemText}’i sürükle`,dragSelectedItems:(e,t)=>`Sürükle ${t.plural(e.count,{one:()=>`${t.number(e.count)} seçili öge`,other:()=>`${t.number(e.count)} seçili öge`})}`,dragSelectedKeyboard:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Enter'a basın.`,dragSelectedKeyboardAlt:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için Alt + Enter tuşuna basın.`,dragSelectedLongPress:(e,t)=>`${t.plural(e.count,{one:()=>`${t.number(e.count)} seçilmiş öğe`,other:()=>`${t.number(e.count)} seçilmiş öğe`})} öğesini sürüklemek için uzun basın.`,dragStartedKeyboard:"Sürükleme başlatıldı. Bir bırakma hedefine gitmek için Tab’a basın, ardından bırakmak için Enter’a basın veya iptal etmek için Escape’e basın.",dragStartedTouch:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için çift tıklayın.",dragStartedVirtual:"Sürükleme başlatıldı. Bir bırakma hedefine gidin, ardından bırakmak için Enter’a tıklayın veya basın.",dropCanceled:"Bırakma iptal edildi.",dropComplete:"Bırakma tamamlandı.",dropDescriptionKeyboard:"Bırakmak için Enter'a basın. Sürüklemeyi iptal etmek için Escape'e basın.",dropDescriptionTouch:"Bırakmak için çift tıklayın.",dropDescriptionVirtual:"Bırakmak için tıklayın.",dropIndicator:"bırakma göstergesi",dropOnItem:e=>`${e.itemText} üzerine bırak`,dropOnRoot:"Bırakın",endDragKeyboard:"Sürükleme. Sürüklemeyi iptal etmek için Enter'a basın.",endDragTouch:"Sürükleme. Sürüklemeyi iptal etmek için çift tıklayın.",endDragVirtual:"Sürükleme. Sürüklemeyi iptal etmek için tıklayın.",insertAfter:e=>`${e.itemText}’den sonra gir`,insertBefore:e=>`${e.itemText}’den önce gir`,insertBetween:e=>`${e.beforeItemText} ve ${e.afterItemText} arasına gir`};var jk={};jk={dragDescriptionKeyboard:"Натисніть Enter, щоб почати перетягування.",dragDescriptionKeyboardAlt:"Натисніть Alt + Enter, щоб почати перетягування.",dragDescriptionLongPress:"Натисніть і утримуйте, щоб почати перетягування.",dragDescriptionTouch:"Натисніть двічі, щоб почати перетягування.",dragDescriptionVirtual:"Натисніть, щоб почати перетягування.",dragItem:e=>`Перетягнути ${e.itemText}`,dragSelectedItems:(e,t)=>`Перетягніть ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елем`})}`,dragSelectedKeyboard:(e,t)=>`Натисніть Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedKeyboardAlt:(e,t)=>`Натисніть Alt + Enter, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragSelectedLongPress:(e,t)=>`Утримуйте, щоб перетягнути ${t.plural(e.count,{one:()=>`${t.number(e.count)} вибраний елемент`,other:()=>`${t.number(e.count)} вибраних елементи(-ів)`})}.`,dragStartedKeyboard:"Перетягування почалося. Натисніть Tab, щоб перейти до цілі перетягування, потім натисніть Enter, щоб перетягнути, або Escape, щоб скасувати.",dragStartedTouch:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть двічі, щоб перетягнути.",dragStartedVirtual:"Перетягування почалося. Перейдіть до цілі перетягування, потім натисніть Enter, щоб перетягнути.",dropCanceled:"Перетягування скасовано.",dropComplete:"Перетягування завершено.",dropDescriptionKeyboard:"Натисніть Enter, щоб перетягнути. Натисніть Escape, щоб скасувати перетягування.",dropDescriptionTouch:"Натисніть двічі, щоб перетягнути.",dropDescriptionVirtual:"Натисніть, щоб перетягнути.",dropIndicator:"індикатор перетягування",dropOnItem:e=>`Перетягнути на ${e.itemText}`,dropOnRoot:"Перетягнути на",endDragKeyboard:"Триває перетягування. Натисніть Enter, щоб скасувати перетягування.",endDragTouch:"Триває перетягування. Натисніть двічі, щоб скасувати перетягування.",endDragVirtual:"Триває перетягування. Натисніть, щоб скасувати перетягування.",insertAfter:e=>`Вставити після ${e.itemText}`,insertBefore:e=>`Вставити перед ${e.itemText}`,insertBetween:e=>`Вставити між ${e.beforeItemText} і ${e.afterItemText}`};var Kk={};Kk={dragDescriptionKeyboard:"按 Enter 开始拖动。",dragDescriptionKeyboardAlt:"按 Alt + Enter 开始拖动。",dragDescriptionLongPress:"长按以开始拖动。",dragDescriptionTouch:"双击开始拖动。",dragDescriptionVirtual:"单击开始拖动。",dragItem:e=>`拖动 ${e.itemText}`,dragSelectedItems:(e,t)=>`拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 选中项目`,other:()=>`${t.number(e.count)} 选中项目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt + Enter 以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragSelectedLongPress:(e,t)=>`长按以拖动 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 个选定项`,other:()=>`${t.number(e.count)} 个选定项`})}。`,dragStartedKeyboard:"已开始拖动。按 Tab 导航到放置目标,然后按 Enter 放置或按 Escape 取消。",dragStartedTouch:"已开始拖动。导航到放置目标,然后双击放置。",dragStartedVirtual:"已开始拖动。导航到放置目标,然后单击或按 Enter 放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 放置。按 Escape 取消拖动。",dropDescriptionTouch:"双击放置。",dropDescriptionVirtual:"单击放置。",dropIndicator:"放置标记",dropOnItem:e=>`放置于 ${e.itemText}`,dropOnRoot:"放置于",endDragKeyboard:"正在拖动。按 Enter 取消拖动。",endDragTouch:"正在拖动。双击取消拖动。",endDragVirtual:"正在拖动。单击取消拖动。",insertAfter:e=>`插入到 ${e.itemText} 之后`,insertBefore:e=>`插入到 ${e.itemText} 之前`,insertBetween:e=>`插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`};var zk={};zk={dragDescriptionKeyboard:"按 Enter 鍵以開始拖曳。",dragDescriptionKeyboardAlt:"按 Alt+Enter 鍵以開始拖曳。",dragDescriptionLongPress:"長按以開始拖曳。",dragDescriptionTouch:"輕點兩下以開始拖曳。",dragDescriptionVirtual:"按一下滑鼠以開始拖曳。",dragItem:e=>`拖曳「${e.itemText}」`,dragSelectedItems:(e,t)=>`拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}`,dragSelectedKeyboard:(e,t)=>`按 Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedKeyboardAlt:(e,t)=>`按 Alt+Enter 鍵以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragSelectedLongPress:(e,t)=>`長按以拖曳 ${t.plural(e.count,{one:()=>`${t.number(e.count)} 個選定項目`,other:()=>`${t.number(e.count)} 個選定項目`})}。`,dragStartedKeyboard:"已開始拖曳。按 Tab 鍵以瀏覽至放置目標,然後按 Enter 鍵以放置,或按 Escape 鍵以取消。",dragStartedTouch:"已開始拖曳。瀏覽至放置目標,然後輕點兩下以放置。",dragStartedVirtual:"已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 Enter 鍵以放置。",dropCanceled:"放置已取消。",dropComplete:"放置已完成。",dropDescriptionKeyboard:"按 Enter 鍵以放置。按 Escape 鍵以取消拖曳。",dropDescriptionTouch:"輕點兩下以放置。",dropDescriptionVirtual:"按一下滑鼠以放置。",dropIndicator:"放置指示器",dropOnItem:e=>`放置在「${e.itemText}」上`,dropOnRoot:"放置在",endDragKeyboard:"拖曳中。按 Enter 鍵以取消拖曳。",endDragTouch:"拖曳中。輕點兩下以取消拖曳。",endDragVirtual:"拖曳中。按一下滑鼠以取消拖曳。",insertAfter:e=>`插入至「${e.itemText}」之後`,insertBefore:e=>`插入至「${e.itemText}」之前`,insertBetween:e=>`插入至「${e.beforeItemText}」和「${e.afterItemText}」之間`};var qk={};qk={"ar-AE":ck,"bg-BG":dk,"cs-CZ":fk,"da-DK":hk,"de-DE":pk,"el-GR":mk,"en-US":gk,"es-ES":vk,"et-EE":yk,"fi-FI":bk,"fr-FR":xk,"he-IL":Dk,"hr-HR":$k,"hu-HU":Ek,"it-IT":Ck,"ja-JP":wk,"ko-KR":Ak,"lt-LT":Sk,"lv-LV":Tk,"nb-NO":Pk,"nl-NL":_k,"pl-PL":Bk,"pt-BR":Fk,"pt-PT":kk,"ro-RO":Mk,"ru-RU":Rk,"sk-SK":Ik,"sl-SI":Ok,"sr-SP":Lk,"sv-SE":Vk,"tr-TR":Nk,"uk-UA":jk,"zh-CN":Kk,"zh-TW":zk};function tee(e){return e&&e.__esModule?e.default:e}const nee={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function ree(){let e=Ta(tee(qk),"@react-aria/dnd"),t=HJ(),n=eee();return{dropProps:{...fc(n?e.format(nee[t]):""),onClick:()=>{}}}}const iee=800;function aee(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=I.useState(!1),a=I.useRef({x:0,y:0,dragOverElements:new Set,dropEffect:"none",allowedOperations:ri.all,dropActivateTimer:void 0}).current,o=E=>{if(i(!0),typeof e.onDropEnter=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropEnter({type:"dropenter",x:E.clientX-T.x,y:E.clientY-T.y})}},s=E=>{if(i(!1),typeof e.onDropExit=="function"){let T=E.currentTarget.getBoundingClientRect();e.onDropExit({type:"dropexit",x:E.clientX-T.x,y:E.clientY-T.y})}},l=E=>{E.preventDefault(),E.stopPropagation();let T=Tw(E);if(E.clientX===a.x&&E.clientY===a.y&&T===a.allowedOperations){E.dataTransfer.dropEffect=a.dropEffect;return}a.x=E.clientX,a.y=E.clientY;let P=a.dropEffect;if(T!==a.allowedOperations){let F=G4(T),q=F[0];if(typeof e.getDropOperation=="function"){let te=new Ch(E.dataTransfer);q=wh(T,e.getDropOperation(te,F))}a.dropEffect=H4[q]||"none"}if(typeof e.getDropOperationForPoint=="function"){let F=new Ch(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te=wh(T,e.getDropOperationForPoint(F,G4(T),a.x-q.x,a.y-q.y));a.dropEffect=H4[te]||"none"}if(a.allowedOperations=T,E.dataTransfer.dropEffect=a.dropEffect,a.dropEffect==="none"&&P!=="none"?s(E):a.dropEffect!=="none"&&P==="none"&&o(E),typeof e.onDropMove=="function"&&a.dropEffect!=="none"){let F=E.currentTarget.getBoundingClientRect();e.onDropMove({type:"dropmove",x:a.x-F.x,y:a.y-F.y})}if(clearTimeout(a.dropActivateTimer),e.onDropActivate&&typeof e.onDropActivate=="function"&&a.dropEffect!=="none"){let F=e.onDropActivate,q=E.currentTarget.getBoundingClientRect();a.dropActivateTimer=setTimeout(()=>{F({type:"dropactivate",x:a.x-q.x,y:a.y-q.y})},iee)}},f=E=>{if(E.preventDefault(),E.stopPropagation(),a.dragOverElements.add(E.target),a.dragOverElements.size>1)return;let T=Tw(E),P=G4(T),F=P[0];if(typeof e.getDropOperation=="function"){let q=new Ch(E.dataTransfer);F=wh(T,e.getDropOperation(q,P))}if(typeof e.getDropOperationForPoint=="function"){let q=new Ch(E.dataTransfer),te=E.currentTarget.getBoundingClientRect();F=wh(T,e.getDropOperationForPoint(q,P,E.clientX-te.x,E.clientY-te.y))}a.x=E.clientX,a.y=E.clientY,a.allowedOperations=T,a.dropEffect=H4[F]||"none",E.dataTransfer.dropEffect=a.dropEffect,F!=="cancel"&&o(E)},h=E=>{E.preventDefault(),E.stopPropagation(),a.dragOverElements.delete(E.target);for(let T of a.dragOverElements)E.currentTarget.contains(T)||a.dragOverElements.delete(T);a.dragOverElements.size>0||(a.dropEffect!=="none"&&s(E),clearTimeout(a.dropActivateTimer))},m=E=>{if(E.preventDefault(),E.stopPropagation(),a.dropEffect,typeof e.onDrop=="function"){let P=ok[a.dropEffect],F=GJ(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te={type:"drop",x:E.clientX-q.x,y:E.clientY-q.y,items:F,dropOperation:P};e.onDrop(te)}let T={...lk};a.dragOverElements.clear(),s(E),clearTimeout(a.dropActivateTimer),T.draggingCollectionRef==null||QJ(T)},g=cn(E=>{typeof e.onDropEnter=="function"&&e.onDropEnter(E)}),b=cn(E=>{typeof e.onDropExit=="function"&&e.onDropExit(E)}),$=cn(E=>{typeof e.onDropActivate=="function"&&e.onDropActivate(E)}),x=cn(E=>{typeof e.onDrop=="function"&&e.onDrop(E)}),A=cn((E,T)=>e.getDropOperation?e.getDropOperation(E,T):T[0]),{ref:w}=e;hn(()=>{if(!(n||!w.current))return JJ({element:w.current,getDropOperation:A,onDropEnter(E){i(!0),g(E)},onDropExit(E){i(!1),b(E)},onDrop:x,onDropActivate:$})},[n,w,A,g,b,x,$]);let{dropProps:C}=ree();return n?{dropProps:{},dropButtonProps:{isDisabled:!0},isDropTarget:!1}:{dropProps:{...!t&&C,onDragEnter:f,onDragOver:l,onDragLeave:h,onDrop:m},dropButtonProps:{...t&&C},isDropTarget:r}}function Tw(e){let t=ak[e.dataTransfer.effectAllowed];Cw&&(t&=Cw);let n=ri.none;return oo()?(e.altKey&&(n|=ri.copy),e.ctrlKey&&!Cb()&&(n|=ri.link),e.metaKey&&(n|=ri.move)):(e.altKey&&(n|=ri.link),e.shiftKey&&(n|=ri.move),e.ctrlKey&&(n|=ri.copy)),n?t&n:t}function G4(e){let t=[];return e&ri.move&&t.push("move"),e&ri.copy&&t.push("copy"),e&ri.link&&t.push("link"),t}function wh(e,t){let n=ri[t];return e&n?t:"cancel"}function ql(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function K3(e,t,n,r,i){let a={};for(let s in t)a[s]=Math.floor(t[s]/2),a[s]>0&&t[s]%2===0&&a[s]--;let o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function fu(e,t,n,r,i){let a=e;return t.years?a=tX(e):t.months?a=gf(e):t.weeks&&(a=jd(e,n)),Wd(e,a,t,n,r,i)}function z3(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let o=fu(e,t,n).subtract(a);return Wd(e,o,t,n,r,i)}function Wd(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=Ob(t,fu(qr(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=Ib(t,z3(qr(a),n,r));o&&(t=o)}return t}function fs(e,t,n){if(t){let r=Ob(e,qr(t));r&&(e=r)}if(n){let r=Ib(e,qr(n));r&&(e=r)}return e}function Uk(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Wk(e){let t=I.useMemo(()=>new Gi(e.locale),[e.locale]),n=I.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:o,maxValue:s,selectionAlignment:l,isDateUnavailable:f,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=I.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,x]=Ai(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=I.useMemo(()=>$?kn(qr($),g):null,[$,g]),w=I.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=I.useMemo(()=>e.focusedValue?fs(kn(qr(e.focusedValue),g),o,s):void 0,[e.focusedValue,g,o,s]),E=I.useMemo(()=>fs(e.defaultFocusedValue?kn(qr(e.defaultFocusedValue),g):A||kn(wm(w),g),o,s),[e.defaultFocusedValue,A,w,g,o,s]),[T,P]=Ai(C,E,e.onFocusChange),[F,q]=I.useState(()=>{switch(l){case"start":return fu(T,a,r,o,s);case"end":return z3(T,a,r,o,s);case"center":default:return K3(T,a,r,o,s)}}),[te,se]=I.useState(e.autoFocus||!1),ae=I.useMemo(()=>{let oe={...a};return oe.days?oe.days--:oe.days=-1,F.add(oe)},[F,a]),[O,Ee]=I.useState(g);if(!Cm(g,O)){let oe=kn(T,g);q(K3(oe,a,r,o,s)),P(oe),Ee(g)}ql(T,o,s)?P(fs(T,o,s)):T.compare(F)<0?q(z3(T,a,r,o,s)):T.compare(ae)>0&&q(fu(T,a,r,o,s));function be(oe){oe=fs(oe,o,s),P(oe)}function z(oe){if(!e.isDisabled&&!e.isReadOnly){let le=oe;if(le===null){x(null);return}if(le=fs(le,o,s),le=Uk(le,F,f),!le)return;le=kn(le,($==null?void 0:$.calendar)||new Ur),$&&"hour"in $?x($.set(le)):x(le)}}let G=I.useMemo(()=>A?f&&f(A)?!0:ql(A,o,s):!1,[A,f,o,s]),V=e.isInvalid||e.validationState==="invalid"||G,R=V?"invalid":null,K=I.useMemo(()=>h==="visible"?a:Y4(a),[h,a]);var fe,M;return{isDisabled:(fe=e.isDisabled)!==null&&fe!==void 0?fe:!1,isReadOnly:(M=e.isReadOnly)!==null&&M!==void 0?M:!1,value:A,setValue:z,visibleRange:{start:F,end:ae},minValue:o,maxValue:s,focusedDate:T,timeZone:w,validationState:R,isValueInvalid:V,setFocusedDate(oe){be(oe),se(!0)},focusNextDay(){be(T.add({days:1}))},focusPreviousDay(){be(T.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&be(T.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&be(T.subtract({weeks:1}))},focusNextPage(){let oe=F.add(K);P(fs(T.add(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusPreviousPage(){let oe=F.subtract(K);P(fs(T.subtract(K),o,s)),q(fu(Wd(T,oe,K,r,o,s),K,r))},focusSectionStart(){a.days?be(F):a.weeks?be(jd(T,r)):(a.months||a.years)&&be(gf(T))},focusSectionEnd(){a.days?be(ae):a.weeks?be(iX(T,r)):(a.months||a.years)&&be(E3(T))},focusNextSection(oe){if(!oe&&!a.days){be(T.add(Y4(a)));return}a.days?this.focusNextPage():a.weeks?be(T.add({months:1})):(a.months||a.years)&&be(T.add({years:1}))},focusPreviousSection(oe){if(!oe&&!a.days){be(T.subtract(Y4(a)));return}a.days?this.focusPreviousPage():a.weeks?be(T.subtract({months:1})):(a.months||a.years)&&be(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||z(T)},selectDate(oe){z(oe)},isFocused:te,setFocused:se,isInvalid(oe){return ql(oe,o,s)},isSelected(oe){return A!=null&&er(oe,A)&&!this.isCellDisabled(oe)&&!this.isCellUnavailable(oe)},isCellFocused(oe){return te&&T&&er(oe,T)},isCellDisabled(oe){return e.isDisabled||oe.compare(F)<0||oe.compare(ae)>0||this.isInvalid(oe)},isCellUnavailable(oe){return e.isDateUnavailable?e.isDateUnavailable(oe):!1},isPreviousVisibleRangeInvalid(){let oe=F.subtract({days:1});return er(oe,F)||this.isInvalid(oe)},isNextVisibleRangeInvalid(){let oe=ae.add({days:1});return er(oe,ae)||this.isInvalid(oe)},getDatesInWeek(oe,le=F){let Se=le.add({weeks:oe}),_e=[];Se=jd(Se,r,m);let Be=Rb(Se,r,m);for(let Ge=0;Ge<Be;Ge++)_e.push(null);for(;_e.length<7;){_e.push(Se);let Ge=Se.add({days:1});if(er(Se,Ge))break;Se=Ge}for(;_e.length<7;)_e.push(null);return _e}}}function Y4(e){let t={...e};for(let n in e)t[n]=1;return t}function oee(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:o={months:1},minValue:s,maxValue:l,...f}=e,[h,m]=Ai(t,n||null,r),[g,b]=I.useState(null),$="center";if(h&&h.start&&h.end){let K=K3(qr(h.start),o,a,s,l).add(o).subtract({days:1});h.end.compare(K)>0&&($="start")}let x=I.useRef(null),[A,w]=I.useState(null),C=I.useMemo(()=>Ob(s,A==null?void 0:A.start),[s,A]),E=I.useMemo(()=>Ib(l,A==null?void 0:A.end),[l,A]),T=Wk({...f,value:h&&h.start,createCalendar:i,locale:a,visibleDuration:o,minValue:C,maxValue:E,selectionAlignment:e.selectionAlignment||$}),P=R=>{if(R&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const K=_w(R,T,-1),fe=_w(R,T,1);x.current={start:K,end:fe},w(x.current)}else x.current=null,w(null)},[F,q]=I.useState(T.visibleRange);(!$3(T.visibleRange.start,F.start)||!$3(T.visibleRange.end,F.end))&&(P(g),q(T.visibleRange));let te=R=>{R?(b(R),P(R)):(b(null),P(null))},se=g?Z4(g,T.focusedDate):h&&Z4(h.start,h.end),ae=R=>{if(e.isReadOnly)return;const K=fs(R,C,E),fe=Uk(K,T.visibleRange.start,e.isDateUnavailable);if(fe)if(!g)te(fe);else{let M=Z4(g,fe);M&&m({start:Pw(M.start,h==null?void 0:h.start),end:Pw(M.end,h==null?void 0:h.end)}),te(null)}},[O,Ee]=I.useState(!1),{isDateUnavailable:be}=e,z=I.useMemo(()=>!h||g?!1:be&&(be(h.start)||be(h.end))?!0:ql(h.start,s,l)||ql(h.end,s,l),[be,h,g,s,l]),G=e.isInvalid||e.validationState==="invalid"||z;return{...T,value:h,setValue:m,anchorDate:g,setAnchorDate:te,highlightedRange:se,validationState:G?"invalid":null,isValueInvalid:G,selectFocusedDate(){ae(T.focusedDate)},selectDate:ae,highlightDate(R){g&&T.setFocusedDate(R)},isSelected(R){return!!(se&&R.compare(se.start)>=0&&R.compare(se.end)<=0&&!T.isCellDisabled(R)&&!T.isCellUnavailable(R))},isInvalid(R){var K,fe;return T.isInvalid(R)||ql(R,(K=x.current)===null||K===void 0?void 0:K.start,(fe=x.current)===null||fe===void 0?void 0:fe.end)},isDragging:O,setDragging:Ee}}function Z4(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:qr(e),end:qr(t)})}function Pw(e,t){return e=kn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function _w(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class q3{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let l of s.childNodes)n(l)};for(let s of t)n(s);let r=null,i=0,a=0;for(let[s,l]of this.keyMap)r?(r.nextKey=s,l.prevKey=r.key):(this.firstKey=s,l.prevKey=void 0),l.type==="item"&&(l.index=i++),(l.type==="section"||l.type==="item")&&a++,r=l,r.nextKey=void 0;this._size=a;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class ga extends Set{constructor(t,n,r){super(t),t instanceof ga?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function see(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function uee(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=I.useRef(!1),[,s]=I.useState(!1),l=I.useRef(null),f=I.useRef(null),[,h]=I.useState(null),m=I.useMemo(()=>Bw(e.selectedKeys),[e.selectedKeys]),g=I.useMemo(()=>Bw(e.defaultSelectedKeys,new ga),[e.defaultSelectedKeys]),[b,$]=Ai(m,g,e.onSelectionChange),x=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,w]=I.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&w("replace");let C=I.useRef(i);return I.useEffect(()=>{i!==C.current&&(w(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:w,get isFocused(){return o.current},setFocused(E){o.current=E,s(E)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(E,T="first"){l.current=E,f.current=T,h(E)},selectedKeys:b,setSelectedKeys(E){(r||!see(E,b))&&$(E)},disabledKeys:x,disabledBehavior:a}}function Bw(e,t){return e?e==="all"?"all":new ga(e):t}class Qb{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&W4(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&W4(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new ga([n],n,n);else{let o=this.state.selectedKeys;var i;let s=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new ga(o,s,n);var a;for(let l of this.getKeyRange(s,(a=o.currentKey)!==null&&a!==void 0?a:n))r.delete(l);for(let l of this.getKeyRange(n,s))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?W4(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],a=t;for(;a!=null;){let o=this.collection.getItem(a);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new ga(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new ga([n],n,n):new ga;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new ga;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var a;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((a=(i=wJ(Fm(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ga)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Qb(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function lee(e){let{filter:t,layoutDelegate:n}=e,r=uee(e),i=I.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=I.useCallback(f=>t?new q3(t(f)):new q3(f),[t]),o=I.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=CJ(e,a,o),l=I.useMemo(()=>new Qb(s,r,{layoutDelegate:n}),[s,r,n]);return cee(s,l),{collection:s,disabledKeys:i,selectionManager:l}}function cee(e,t){const n=I.useRef(null);I.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(w=>{const C=n.current.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==null),g=[...e.getKeys()].map(w=>{const C=e.getItem(w);return(C==null?void 0:C.type)==="item"?C:null}).filter(w=>w!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var a,o,s;let $=Math.min(b>1?Math.max(((a=h==null?void 0:h.index)!==null&&a!==void 0?a:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((s=g==null?void 0:g.length)!==null&&s!==void 0?s:0)-1),x=null,A=!1;for(;$>=0;){if(!t.isDisabled(g[$].key)){x=g[$];break}if($<g.length-1&&!A)$++;else{A=!0;var l,f;$>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&($=(f=h==null?void 0:h.index)!==null&&f!==void 0?f:0),$--}}t.setFocusedKey(x?x.key:null)}n.current=e},[e,t])}function dee(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=I.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:s}=lee({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var h;let m=(h=f.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Jb(e){let[t,n]=Ai(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=I.useCallback(()=>{n(!0)},[n]),i=I.useCallback(()=>{n(!1)},[n]),a=I.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function fee(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[s,l]=I.useState(!1),[f,h]=I.useState(!1),[m,g]=I.useState(null),b=Ae=>{e.onSelectionChange&&e.onSelectionChange(Ae),Ae===w&&(Se(),M())};var $;let{collection:x,selectionManager:A,selectedKey:w,setSelectedKey:C,selectedItem:E,disabledKeys:T}=dee({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),[P,F]=Ai(e.inputValue,Fw(e.defaultInputValue,w,x)||"",e.onInputChange),[q]=I.useState(w),[te]=I.useState(P),se=x,ae=I.useMemo(()=>e.items!=null||!n?x:hee(x,P,n),[x,P,n,e.items]),[O,Ee]=I.useState(ae),be=I.useRef("focus"),G=Jb({...e,onOpenChange:Ae=>{e.onOpenChange&&e.onOpenChange(Ae,Ae?be.current:void 0),A.setFocused(Ae),Ae||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),V=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";(i||ae.size>0||Qe&&se.size>0||e.items)&&(Qe&&!G.isOpen&&e.items===void 0&&l(!0),be.current=Fe,g(Ae),G.open())},R=(Ae=null,Fe)=>{let Qe=Fe==="manual"||Fe==="focus"&&r==="focus";!(i||ae.size>0||Qe&&se.size>0||e.items)&&!G.isOpen||(Qe&&!G.isOpen&&e.items===void 0&&l(!0),G.isOpen||(be.current=Fe),fe(Ae))},K=I.useCallback(()=>{Ee(s?se:ae)},[s,se,ae]),fe=I.useCallback((Ae=null)=>{G.isOpen&&K(),g(Ae),G.toggle()},[G,K]),M=I.useCallback(()=>{G.isOpen&&(K(),G.close())},[G,K]),[oe,le]=I.useState(P),Se=()=>{var Ae,Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";le(Qe),F(Qe)};var _e,Be;let Ge=I.useRef((Be=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Be!==void 0?Be:null);var Xe;let Ne=I.useRef(w!=null&&(Xe=(t=x.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");I.useEffect(()=>{var Ae;f&&(ae.size>0||i)&&!G.isOpen&&P!==oe&&r!=="manual"&&V(null,"input"),!s&&!i&&G.isOpen&&ae.size===0&&M(),w!=null&&w!==Ge.current&&M(),P!==oe&&(A.setFocusedKey(null),l(!1),P===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),w!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Se():oe!==P&&le(P);var Fe;let Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";!f&&w!=null&&e.inputValue===void 0&&w===Ge.current&&Ne.current!==Qe&&(le(Qe),F(Qe)),Ge.current=w,Ne.current=Qe});let qe=bf({...e,value:I.useMemo(()=>({inputValue:P,selectedKey:w}),[P,w])}),ke=()=>{a&&w==null?je():Te()},je=()=>{Ge.current=null,C(null),M()},Te=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ae,Fe;(Ae=e.onSelectionChange)===null||Ae===void 0||Ae.call(e,w);var Qe;let et=w!=null&&(Qe=(Fe=x.getItem(w))===null||Fe===void 0?void 0:Fe.textValue)!==null&&Qe!==void 0?Qe:"";le(et),M()}else Se(),M()};const Ye=()=>{if(a){var Ae,Fe;const Qe=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";P===Qe?Te():je()}else Te()};let ht=()=>{G.isOpen&&A.focusedKey!=null?w===A.focusedKey?Te():C(A.focusedKey):Ye()},Ht=I.useRef(P),xt=Ae=>{Ae?(Ht.current=P,r==="focus"&&!e.isReadOnly&&V(null,"focus")):(o&&Ye(),P!==Ht.current&&qe.commitValidation()),h(Ae)},_t=I.useMemo(()=>G.isOpen?s?se:ae:O,[G.isOpen,se,ae,s,O]);var Wr;let Jt=(Wr=e.defaultSelectedKey)!==null&&Wr!==void 0?Wr:q;var xe;return{...qe,...G,focusStrategy:m,toggle:R,open:V,close:Ye,selectionManager:A,selectedKey:w,defaultSelectedKey:Jt,setSelectedKey:C,disabledKeys:T,isFocused:f,setFocused:xt,selectedItem:E,collection:_t,inputValue:P,defaultInputValue:(xe=Fw(e.defaultInputValue,Jt,x))!==null&&xe!==void 0?xe:te,setInputValue:F,commit:ht,revert:ke}}function hee(e,t,n){return new q3(Hk(e,e,t,n))}function Hk(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=Hk(e,Fm(a,e),n,r);[...o].some(s=>s.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function Fw(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var Gk={};Gk={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Yk={};Yk={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Zk={};Zk={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var Xk={};Xk={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var Qk={};Qk={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var Jk={};Jk={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var e9={};e9={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var t9={};t9={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var n9={};n9={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var r9={};r9={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var i9={};i9={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var a9={};a9={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var o9={};o9={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var s9={};s9={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var u9={};u9={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var l9={};l9={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var c9={};c9={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var d9={};d9={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var f9={};f9={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var h9={};h9={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var p9={};p9={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var m9={};m9={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var g9={};g9={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var v9={};v9={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var y9={};y9={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var b9={};b9={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var x9={};x9={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var D9={};D9={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var $9={};$9={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var E9={};E9={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var C9={};C9={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var w9={};w9={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var A9={};A9={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var S9={};S9={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var T9={};T9={"ar-AE":Gk,"bg-BG":Yk,"cs-CZ":Zk,"da-DK":Xk,"de-DE":Qk,"el-GR":Jk,"en-US":e9,"es-ES":t9,"et-EE":n9,"fi-FI":r9,"fr-FR":i9,"he-IL":a9,"hr-HR":o9,"hu-HU":s9,"it-IT":u9,"ja-JP":l9,"ko-KR":c9,"lt-LT":d9,"lv-LV":f9,"nb-NO":h9,"nl-NL":p9,"pl-PL":m9,"pt-BR":g9,"pt-PT":v9,"ro-RO":y9,"ru-RU":b9,"sk-SK":x9,"sl-SI":D9,"sr-SP":$9,"sv-SE":E9,"tr-TR":C9,"uk-UA":w9,"zh-CN":A9,"zh-TW":S9};function pee(e){return e&&e.__esModule?e.default:e}const P9=new Ps(pee(T9));function _9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Pp(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,s=e!=null&&(r==null?void 0:r(e))||!1,l=a||o||s,f=[];if(l){let h=_9(),m=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||P9,g=new WP(h,m),b=new Gi(h,jo({},i)),$=b.resolvedOptions().timeZone;o&&t!=null&&f.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),a&&n!=null&&f.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),s&&f.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:s,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function mee(e,t,n,r,i){var a;let o=Pp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=Pp((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),f=Ap(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||P9;f=Ap(f,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",_9())],validationDetails:{...Tm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const gee={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},vee={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function jo(e,t){e={...t.shouldForceLeadingZeros?vee:gee,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let o=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");o<0&&(o=0);let s=i.indexOf(r);if(s<0&&(s=2),o>s)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,s+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Al(e){return e&&"hour"in e?e:new vf}function B9(e,t){if(e===null)return null;if(e)return kn(e,t)}function ad(e,t,n,r){if(e)return B9(e,n);let i=kn(ZP(r??mf()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?qr(i):r?i:Ea(i)}function ex(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,a]=I.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function yee(e){let t=Jb(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),[i]=I.useState(n),a=n||e.placeholderValue||null,[o,s]=ex(a,e.granularity),l=n!=null?n.toDate(s??"UTC"):null,f=o==="hour"||o==="minute"||o==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=I.useState(null),[$,x]=I.useState(null);if(n&&(g=n,"hour"in n&&($=n)),a&&!(o in a))throw new Error("Invalid granularity "+o+" for value "+a.toString());let A=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",w=I.useMemo(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:A}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,A]),{minValue:C,maxValue:E,isDateUnavailable:T}=e,P=I.useMemo(()=>Pp(n,C,E,T,w),[n,C,E,T,w]),F=bf({...e,value:n,builtinValidation:P}),q=F.displayValidation.isInvalid,te=e.validationState||(q?"invalid":null),se=(be,z)=>{r("timeZone"in z?z.set(qr(be)):Ea(be,z)),b(null),x(null),F.commitValidation()},ae=be=>{let z=typeof m=="function"?m():m;f?$||z?se(be,$||Al(e.defaultValue||e.placeholderValue)):b(be):(r(be),F.commitValidation()),z&&t.setOpen(!1)},O=be=>{g&&be?se(g,be):x(be)};var Ee;return{...F,value:n,defaultValue:(Ee=e.defaultValue)!==null&&Ee!==void 0?Ee:i,setValue:r,dateValue:g,timeValue:$,setDateValue:ae,setTimeValue:O,granularity:o,hasTime:f,...t,setOpen(be){!be&&!n&&g&&f&&se(g,$||Al(e.defaultValue||e.placeholderValue)),t.setOpen(be)},validationState:te,isInvalid:q,formatValue(be,z){if(!l)return"";let G=jo(z,w);return new Gi(be,G).format(l)},getDateFormatter(be,z){let G={...w,...z},V=jo({},G);return new Gi(be,V)}}}const bee=new Ps({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nb:{year:"åååå",month:"mm",day:"dd"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function xee(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?bee.getStringForLocale(e,n):"––"}const qh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},kw={year:5,month:2,day:7,hour:2,minute:15,second:15},F9={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function k9(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:o=!1,minValue:s,maxValue:l,isDateUnavailable:f}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=ex(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=I.useMemo(()=>new Gi(t),[t]),x=I.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var A;let[w,C]=Ai(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),[E]=I.useState(w),T=I.useMemo(()=>{var ke;return(ke=B9(w,x))!==null&&ke!==void 0?ke:null},[w,x]),[P,F]=I.useState(()=>ad(e.placeholderValue,m,x,g)),q=T||P,te=x.identifier==="gregory"&&q.era==="BC",se=I.useMemo(()=>{var ke;return{granularity:m,maxGranularity:(ke=e.maxGranularity)!==null&&ke!==void 0?ke:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:te,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,te]),ae=I.useMemo(()=>jo({},se),[se]),O=I.useMemo(()=>new Gi(t,ae),[t,ae]),Ee=I.useMemo(()=>O.resolvedOptions(),[O]),be=I.useMemo(()=>O.formatToParts(new Date).filter(ke=>qh[ke.type]).reduce((ke,je)=>(ke[F9[je.type]||je.type]=!0,ke),{}),[O]),[z,G]=I.useState(()=>e.value||e.defaultValue?{...be}:{}),V=I.useRef(null),R=I.useRef(x);I.useEffect(()=>{Cm(x,R.current)||(R.current=x,F(ke=>Object.keys(z).length>0?kn(ke,x):ad(e.placeholderValue,m,x,g)))},[x,m,z,g,e.placeholderValue]),w&&Object.keys(z).length<Object.keys(be).length&&(z={...be},G(z)),w==null&&Object.keys(z).length===Object.keys(be).length&&(z={},G(z),F(ad(e.placeholderValue,m,x,g)));let K=T&&Object.keys(z).length>=Object.keys(be).length?T:P,fe=ke=>{if(e.isDisabled||e.isReadOnly)return;let je=Object.keys(z),Te=Object.keys(be);ke==null?(C(null),F(ad(e.placeholderValue,m,x,g)),G({})):je.length===0&&V.current==null||je.length>=Te.length||je.length===Te.length-1&&be.dayPeriod&&!z.dayPeriod&&V.current!=="dayPeriod"?(je.length===0&&(z={...be},G(z)),ke=kn(ke,(h==null?void 0:h.calendar)||new Ur),C(ke)):F(ke),V.current=null},M=I.useMemo(()=>K.toDate(b),[K,b]),oe=I.useMemo(()=>Dee(M,z,O,Ee,K,x,t,m),[M,z,O,Ee,K,x,t,m]);be.era&&z.year&&!z.era?(z.era=!0,G({...z})):!be.era&&z.era&&(delete z.era,G({...z}));let le=ke=>{z[ke]=!0,ke==="year"&&be.era&&(z.era=!0),G({...z})},Se=(ke,je)=>{if(z[ke])fe($ee(K,ke,je,Ee));else{le(ke);let Te=Object.keys(z),Ye=Object.keys(be);(Te.length>=Ye.length||Te.length===Ye.length-1&&be.dayPeriod&&!z.dayPeriod)&&fe(K)}},_e=I.useMemo(()=>Pp(w,s,l,f,se),[w,s,l,f,se]),Be=bf({...e,value:w,builtinValidation:_e}),Ge=Be.displayValidation.isInvalid,Xe=e.validationState||(Ge?"invalid":null);var Ne,qe;return{...Be,value:T,defaultValue:(Ne=e.defaultValue)!==null&&Ne!==void 0?Ne:E,dateValue:M,calendar:x,setValue:fe,segments:oe,dateFormatter:O,validationState:Xe,isInvalid:Ge,granularity:m,maxGranularity:(qe=e.maxGranularity)!==null&&qe!==void 0?qe:"year",isDisabled:i,isReadOnly:a,isRequired:o,increment(ke){Se(ke,1)},decrement(ke){Se(ke,-1)},incrementPage(ke){Se(ke,kw[ke]||1)},decrementPage(ke){Se(ke,-(kw[ke]||1))},setSegment(ke,je){le(ke),fe(Eee(K,ke,je,Ee))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ke=Object.keys(z),je=Object.keys(be);ke.length===je.length-1&&be.dayPeriod&&!z.dayPeriod&&(z={...be},G(z),fe(K.copy()))},clearSegment(ke){delete z[ke],V.current=ke,G({...z});let je=ad(e.placeholderValue,m,x,g),Te=K;if(ke==="dayPeriod"&&"hour"in K&&"hour"in je){let Ye=K.hour>=12,ht=je.hour>=12;Ye&&!ht?Te=K.set({hour:K.hour-12}):!Ye&&ht&&(Te=K.set({hour:K.hour+12}))}else ke==="hour"&&"hour"in K&&K.hour>=12&&z.dayPeriod?Te=K.set({hour:je.hour+12}):ke in K&&(Te=K.set({[ke]:je[ke]}));C(null),fe(Te)},formatValue(ke){if(!T)return"";let je=jo(ke,se);return new Gi(t,je).format(M)},getDateFormatter(ke,je){let Te={...se,...je},Ye=jo({},Te);return new Gi(ke,Ye)}}}function Dee(e,t,n,r,i,a,o,s){let l=["hour","minute","second"],f=n.formatToParts(e),h=[];for(let m of f){let g=F9[m.type]||m.type,b=qh[g];g==="era"&&a.getEras().length===1&&(b=!1);let $=qh[g]&&!t[g],x=qh[g]?xee(g,m.value,o):null,A={type:g,text:$?x:m.value,...Ah(i,g,r),isPlaceholder:$,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"⁦",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===s&&h.push({type:"literal",text:"⁩",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===s?(h.push(A),h.push({type:"literal",text:"⁩",...Ah(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function Ah(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:nX(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:rX(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function $ee(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return e.set({hour:a?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function Eee(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function Cee(e){var t,n;let r=Jb(e),[i,a]=Ai(e.value,e.defaultValue||null,e.onChange),[o]=I.useState(i),[s,l]=I.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},l(s));let f=i||s,h=K=>{f=K||{start:null,end:null},l(f),ru(f)?a(f):a(null)},m=(f==null?void 0:f.start)||(f==null?void 0:f.end)||e.placeholderValue||null,[g,b]=ex(m,e.granularity),$=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[w,C]=I.useState(null),[E,T]=I.useState(null);f&&ru(f)&&(w=f,"hour"in f.start&&(E=f));let P=(K,fe)=>{h({start:"timeZone"in fe.start?fe.start.set(qr(K.start)):Ea(K.start,fe.start),end:"timeZone"in fe.end?fe.end.set(qr(K.end)):Ea(K.end,fe.end)}),C(null),T(null),z.commitValidation()},F=K=>{let fe=typeof A=="function"?A():A;$?ru(K)&&(fe||E!=null&&E.start&&(E!=null&&E.end))?P(K,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}):C(K):ru(K)?(h(K),z.commitValidation()):C(K),fe&&r.setOpen(!1)},q=K=>{ru(w)&&ru(K)?P(w,K):T(K)},te=(f==null||(t=f.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&f.start.era==="BC"||(f==null||(n=f.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&f.end.era==="BC",se=I.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:te}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,te]),{minValue:ae,maxValue:O,isDateUnavailable:Ee}=e,be=I.useMemo(()=>mee(f,ae,O,Ee,se),[f,ae,O,Ee,se]),z=bf({...e,value:i,name:I.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:be}),G=z.displayValidation.isInvalid,V=e.validationState||(G?"invalid":null);var R;return{...z,value:f,defaultValue:(R=e.defaultValue)!==null&&R!==void 0?R:o,setValue:h,dateRange:w,timeRange:E,granularity:g,hasTime:$,setDate(K,fe){var M,oe;F(K==="start"?{start:fe,end:(M=w==null?void 0:w.end)!==null&&M!==void 0?M:null}:{start:(oe=w==null?void 0:w.start)!==null&&oe!==void 0?oe:null,end:fe})},setTime(K,fe){var M,oe;q(K==="start"?{start:fe,end:(M=E==null?void 0:E.end)!==null&&M!==void 0?M:null}:{start:(oe=E==null?void 0:E.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateTime(K,fe){var M,oe;h(K==="start"?{start:fe,end:(M=f==null?void 0:f.end)!==null&&M!==void 0?M:null}:{start:(oe=f==null?void 0:f.start)!==null&&oe!==void 0?oe:null,end:fe})},setDateRange:F,setTimeRange:q,...r,setOpen(K){!K&&!(f!=null&&f.start&&(f!=null&&f.end))&&ru(w)&&$&&P(w,{start:(E==null?void 0:E.start)||Al(e.placeholderValue),end:(E==null?void 0:E.end)||Al(e.placeholderValue)}),r.setOpen(K)},validationState:V,isInvalid:G,formatValue(K,fe){if(!f||!f.start||!f.end)return null;let M="timeZone"in f.start?f.start.timeZone:void 0,oe=e.granularity||(f.start&&"minute"in f.start?"minute":"day"),le="timeZone"in f.end?f.end.timeZone:void 0,Se=e.granularity||(f.end&&"minute"in f.end?"minute":"day"),_e=jo(fe,{granularity:oe,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:f.start.calendar.identifier==="gregory"&&f.start.era==="BC"||f.end.calendar.identifier==="gregory"&&f.end.era==="BC"}),Be=f.start.toDate(M||"UTC"),Ge=f.end.toDate(le||"UTC"),Xe=new Gi(K,_e),Ne;if(M===le&&oe===Se&&f.start.compare(f.end)!==0){try{let qe=Xe.formatRangeToParts(Be,Ge),ke=-1;for(let Ye=0;Ye<qe.length;Ye++){let ht=qe[Ye];if(ht.source==="shared"&&ht.type==="literal")ke=Ye;else if(ht.source==="endRange")break}let je="",Te="";for(let Ye=0;Ye<qe.length;Ye++)Ye<ke?je+=qe[Ye].value:Ye>ke&&(Te+=qe[Ye].value);return{start:je,end:Te}}catch{}Ne=Xe}else{let qe=jo(fe,{granularity:Se,timeZone:le,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ne=new Gi(K,qe)}return{start:Xe.format(Be),end:Ne.format(Ge)}},getDateFormatter(K,fe){let M={...se,...fe},oe=jo({},M);return new Gi(K,oe)}}}function ru(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function wee(e){let{placeholderValue:t=new vf,minValue:n,maxValue:r,defaultValue:i,granularity:a,validate:o}=e,[s,l]=Ai(e.value,i??null,e.onChange),f=s||t,h=f&&"day"in f?f:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=I.useMemo(()=>{let T=f&&"timeZone"in f?f.timeZone:void 0;return(T||m)&&t?r7(bl(t),T||m):bl(t)},[t,f,m]),b=I.useMemo(()=>bl(n,h),[n,h]),$=I.useMemo(()=>bl(r,h),[r,h]),x=I.useMemo(()=>s&&"day"in s?I2(s):s,[s]),A=I.useMemo(()=>s==null?null:bl(s),[s]),w=I.useMemo(()=>i==null?null:bl(i),[i]);return{...k9({...e,value:A,defaultValue:w,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&I2(T))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:I.useCallback(()=>o==null?void 0:o(s),[o,s])}),timeValue:x}}function bl(e,t=wm(mf())){return e?"day"in e?e:Ea(t,e):null}var X4,Mw;function Aee(){if(Mw)return X4;Mw=1;var e=lb();function t(n,r){return e(n,r)}return X4=t,X4}var See=Aee();const Tee=ar(See);var Uh={exports:{}},Pee=Uh.exports,Rw;function _ee(){return Rw||(Rw=1,function(e,t){(function(n,r){e.exports=r()})(Pee,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",f="day",h="week",m="month",g="quarter",b="year",$="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var G=["th","st","nd","rd"],V=z%100;return"["+z+(G[(V-20)%10]||G[V]||G[0])+"]"}},E=function(z,G,V){var R=String(z);return!R||R.length>=G?z:""+Array(G+1-R.length).join(V)+z},T={s:E,z:function(z){var G=-z.utcOffset(),V=Math.abs(G),R=Math.floor(V/60),K=V%60;return(G<=0?"+":"-")+E(R,2,"0")+":"+E(K,2,"0")},m:function z(G,V){if(G.date()<V.date())return-z(V,G);var R=12*(V.year()-G.year())+(V.month()-G.month()),K=G.clone().add(R,m),fe=V-K<0,M=G.clone().add(R+(fe?-1:1),m);return+(-(R+(V-K)/(fe?K-M:M-K))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:m,y:b,w:h,d:f,D:$,h:l,m:s,s:o,ms:a,Q:g}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},P="en",F={};F[P]=C;var q="$isDayjsObject",te=function(z){return z instanceof Ee||!(!z||!z[q])},se=function z(G,V,R){var K;if(!G)return P;if(typeof G=="string"){var fe=G.toLowerCase();F[fe]&&(K=fe),V&&(F[fe]=V,K=fe);var M=G.split("-");if(!K&&M.length>1)return z(M[0])}else{var oe=G.name;F[oe]=G,K=oe}return!R&&K&&(P=K),K||!R&&P},ae=function(z,G){if(te(z))return z.clone();var V=typeof G=="object"?G:{};return V.date=z,V.args=arguments,new Ee(V)},O=T;O.l=se,O.i=te,O.w=function(z,G){return ae(z,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var Ee=function(){function z(V){this.$L=se(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[q]=!0}var G=z.prototype;return G.parse=function(V){this.$d=function(R){var K=R.date,fe=R.utc;if(K===null)return new Date(NaN);if(O.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var M=K.match(A);if(M){var oe=M[2]-1||0,le=(M[7]||"0").substring(0,3);return fe?new Date(Date.UTC(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)):new Date(M[1],oe,M[3]||1,M[4]||0,M[5]||0,M[6]||0,le)}}return new Date(K)}(V),this.init()},G.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},G.$utils=function(){return O},G.isValid=function(){return this.$d.toString()!==x},G.isSame=function(V,R){var K=ae(V);return this.startOf(R)<=K&&K<=this.endOf(R)},G.isAfter=function(V,R){return ae(V)<this.startOf(R)},G.isBefore=function(V,R){return this.endOf(R)<ae(V)},G.$g=function(V,R,K){return O.u(V)?this[R]:this.set(K,V)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(V,R){var K=this,fe=!!O.u(R)||R,M=O.p(V),oe=function(qe,ke){var je=O.w(K.$u?Date.UTC(K.$y,ke,qe):new Date(K.$y,ke,qe),K);return fe?je:je.endOf(f)},le=function(qe,ke){return O.w(K.toDate()[qe].apply(K.toDate("s"),(fe?[0,0,0,0]:[23,59,59,999]).slice(ke)),K)},Se=this.$W,_e=this.$M,Be=this.$D,Ge="set"+(this.$u?"UTC":"");switch(M){case b:return fe?oe(1,0):oe(31,11);case m:return fe?oe(1,_e):oe(0,_e+1);case h:var Xe=this.$locale().weekStart||0,Ne=(Se<Xe?Se+7:Se)-Xe;return oe(fe?Be-Ne:Be+(6-Ne),_e);case f:case $:return le(Ge+"Hours",0);case l:return le(Ge+"Minutes",1);case s:return le(Ge+"Seconds",2);case o:return le(Ge+"Milliseconds",3);default:return this.clone()}},G.endOf=function(V){return this.startOf(V,!1)},G.$set=function(V,R){var K,fe=O.p(V),M="set"+(this.$u?"UTC":""),oe=(K={},K[f]=M+"Date",K[$]=M+"Date",K[m]=M+"Month",K[b]=M+"FullYear",K[l]=M+"Hours",K[s]=M+"Minutes",K[o]=M+"Seconds",K[a]=M+"Milliseconds",K)[fe],le=fe===f?this.$D+(R-this.$W):R;if(fe===m||fe===b){var Se=this.clone().set($,1);Se.$d[oe](le),Se.init(),this.$d=Se.set($,Math.min(this.$D,Se.daysInMonth())).$d}else oe&&this.$d[oe](le);return this.init(),this},G.set=function(V,R){return this.clone().$set(V,R)},G.get=function(V){return this[O.p(V)]()},G.add=function(V,R){var K,fe=this;V=Number(V);var M=O.p(R),oe=function(_e){var Be=ae(fe);return O.w(Be.date(Be.date()+Math.round(_e*V)),fe)};if(M===m)return this.set(m,this.$M+V);if(M===b)return this.set(b,this.$y+V);if(M===f)return oe(1);if(M===h)return oe(7);var le=(K={},K[s]=r,K[l]=i,K[o]=n,K)[M]||1,Se=this.$d.getTime()+V*le;return O.w(Se,this)},G.subtract=function(V,R){return this.add(-1*V,R)},G.format=function(V){var R=this,K=this.$locale();if(!this.isValid())return K.invalidDate||x;var fe=V||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),oe=this.$H,le=this.$m,Se=this.$M,_e=K.weekdays,Be=K.months,Ge=K.meridiem,Xe=function(ke,je,Te,Ye){return ke&&(ke[je]||ke(R,fe))||Te[je].slice(0,Ye)},Ne=function(ke){return O.s(oe%12||12,ke,"0")},qe=Ge||function(ke,je,Te){var Ye=ke<12?"AM":"PM";return Te?Ye.toLowerCase():Ye};return fe.replace(w,function(ke,je){return je||function(Te){switch(Te){case"YY":return String(R.$y).slice(-2);case"YYYY":return O.s(R.$y,4,"0");case"M":return Se+1;case"MM":return O.s(Se+1,2,"0");case"MMM":return Xe(K.monthsShort,Se,Be,3);case"MMMM":return Xe(Be,Se);case"D":return R.$D;case"DD":return O.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return Xe(K.weekdaysMin,R.$W,_e,2);case"ddd":return Xe(K.weekdaysShort,R.$W,_e,3);case"dddd":return _e[R.$W];case"H":return String(oe);case"HH":return O.s(oe,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return qe(oe,le,!0);case"A":return qe(oe,le,!1);case"m":return String(le);case"mm":return O.s(le,2,"0");case"s":return String(R.$s);case"ss":return O.s(R.$s,2,"0");case"SSS":return O.s(R.$ms,3,"0");case"Z":return M}return null}(ke)||M.replace(":","")})},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(V,R,K){var fe,M=this,oe=O.p(R),le=ae(V),Se=(le.utcOffset()-this.utcOffset())*r,_e=this-le,Be=function(){return O.m(M,le)};switch(oe){case b:fe=Be()/12;break;case m:fe=Be();break;case g:fe=Be()/3;break;case h:fe=(_e-Se)/6048e5;break;case f:fe=(_e-Se)/864e5;break;case l:fe=_e/i;break;case s:fe=_e/r;break;case o:fe=_e/n;break;default:fe=_e}return K?fe:O.a(fe)},G.daysInMonth=function(){return this.endOf(m).$D},G.$locale=function(){return F[this.$L]},G.locale=function(V,R){if(!V)return this.$L;var K=this.clone(),fe=se(V,R,!0);return fe&&(K.$L=fe),K},G.clone=function(){return O.w(this.$d,this)},G.toDate=function(){return new Date(this.valueOf())},G.toJSON=function(){return this.isValid()?this.toISOString():null},G.toISOString=function(){return this.$d.toISOString()},G.toString=function(){return this.$d.toUTCString()},z}(),be=Ee.prototype;return ae.prototype=be,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",f],["$M",m],["$y",b],["$D",$]].forEach(function(z){be[z[1]]=function(G){return this.$g(G,z[0],z[1])}}),ae.extend=function(z,G){return z.$i||(z(G,Ee,ae),z.$i=!0),ae},ae.locale=se,ae.isDayjs=te,ae.unix=function(z){return ae(1e3*z)},ae.en=F[P],ae.Ls=F,ae.p={},ae})}(Uh)),Uh.exports}var M9=_ee();const Bee=ar(M9);var Q4,Iw;function R9(){if(Iw)return Q4;Iw=1;var e=uc(),t=lc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Q4=r,Q4}var Fee=R9();const kee=ar(Fee);var Lu=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Mee="react-international-phone-",I9=(...e)=>e.filter(t=>!!t).join(" ").trim(),Ree=(...e)=>I9(...e).split(" ").map(t=>`${Mee}${t}`).join(" "),Pr=({addPrefix:e,rawClassNames:t})=>I9(Ree(...e),...t),Iee=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),o=e.slice(r),s=a,l=0;for(let f of t.split("")){if(l>=o.length){if(!i&&f!==n){s+=f;continue}break}f===n?(s+=o[l],l+=1):s+=f}return s},El=e=>e?/^\d+$/.test(e):!1,km=e=>e.replace(/\D/g,""),Oee=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,o=r.bottom-i.bottom;a>=0&&o>=0||(Math.abs(a)<Math.abs(o)?e.scrollTop+=a:e.scrollTop-=o),e.style.display=n},Lee=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),Vee=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=km(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let o=()=>{let f=t.dialCode.length,h=i.slice(0,f),m=i.slice(f);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:s,phoneRightSide:l}=o();return s=`${t.prefix}${s}${t.charAfterDialCode}`,l=Iee({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(s=""),a(`${s}${l}`)},Nee=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(El(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(El(n[h]))return h;return t.length}let s=0;for(let h=0;h<o;h+=1)El(t[h])&&(s+=1);let l=0,f=0;for(let h=0;h<n.length&&(l+=1,El(n[h])&&(f+=1),!(f>=s+1));h+=1);if(a!=="backward")for(;!El(n[l])&&l<n.length;)l+=1;return l},Wh=({phone:e,prefix:t})=>e?`${t}${km(e)}`:"";function U3({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${a}`)?g:`${a}${t.dialCode}${g}`);let b=h?Yee({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,x=Vee(g,{prefix:a,mask:Hee({phone:g,country:$,defaultMask:f,disableFormatting:m}),maskChar:O9,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:Wh({phone:l?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var jee=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},Kee=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,countryGuessingEnabled:l,defaultMask:f,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=jee(b),x=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",w=(g==null?void 0:g.data)||void 0,C=e.target.value,E=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:Wh({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!El(w)&&C!==i)return{inputValue:r,phone:Wh({phone:s?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:E-((w==null?void 0:w.length)??0),country:t};if(o&&!C.startsWith(`${i}${t.dialCode}`)&&!x){let te=C?r:`${i}${t.dialCode}${a}`;return{inputValue:te,phone:Wh({phone:te,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:P,country:F}=U3({value:C,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:s,disableFormatting:h,defaultMask:f}),q=Nee({cursorPositionAfterInput:E,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:P,leftOffset:o?i.length+t.dialCode.length+a.length:0,deletion:$});return{phone:T,inputValue:P,cursorPosition:q,country:F}},zee=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},qee=()=>{let e=I.useRef(),t=I.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},Uee={size:20,overrideLastItemDebounceMS:-1};function Wee(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...Uee,...t},[a,o]=I.useState(e),[s,l]=I.useState([a]),[f,h]=I.useState(0),m=qee();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&zee(g,a)||g===a)return;let $=r>0,x=m.check(),A=$&&x!==void 0?x>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(w=>[...w.slice(0,f),g]);else{let w=s.length>=n;l(C=>[...C.slice(w?1:0,f+1),g]),w||h(C=>C+1)}o(g),i==null||i(g)},()=>{if(f<=0)return{success:!1};let g=s[f-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(f+1>=s.length)return{success:!1};let g=s[f+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var O9=".",Li={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Lu},L9=({defaultCountry:e=Li.defaultCountry,value:t=Li.value,countries:n=Li.countries,prefix:r=Li.prefix,defaultMask:i=Li.defaultMask,charAfterDialCode:a=Li.charAfterDialCode,historySaveDebounceMS:o=Li.historySaveDebounceMS,disableCountryGuess:s=Li.disableCountryGuess,disableDialCodePrefill:l=Li.disableDialCodePrefill,forceDialCode:f=Li.forceDialCode,disableDialCodeAndPrefix:h=Li.disableDialCodeAndPrefix,disableFormatting:m=Li.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:h?!1:f,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!s,disableFormatting:m},x=I.useRef(null),A=b||x,w=z=>{Promise.resolve().then(()=>{var G;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((G=A.current)==null||G.setSelectionRange(z,z))})},[{phone:C,inputValue:E,country:T},P,F,q]=Wee(()=>{let z=Sl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let G=z||Sl({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:R,country:K}=U3({value:t,country:G,insertDialCodeOnEmpty:!l,...$});return w(R.length),{phone:V,inputValue:R,country:K.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:z,phone:G,country:V})=>{if(!g)return;let R=te(V);g({phone:G,inputValue:z,country:R})}}),te=I.useCallback(z=>Sl({value:z,field:"iso2",countries:n}),[n]),se=I.useMemo(()=>te(T),[T,te]);I.useEffect(()=>{let z=A.current;if(!z)return;let G=V=>{if(!V.key)return;let R=V.ctrlKey,K=V.metaKey,fe=V.shiftKey;if(V.key.toLowerCase()==="z"){if(Lee()){if(!K)return}else if(!R)return;fe?q():F()}};return z.addEventListener("keydown",G),()=>{z.removeEventListener("keydown",G)}},[A,F,q]);let ae=z=>{z.preventDefault();let{phone:G,inputValue:V,country:R,cursorPosition:K}=Kee(z,{country:se,phoneBeforeInput:E,insertDialCodeOnEmpty:!1,...$});return P({inputValue:V,phone:G,country:R.iso2}),w(K),t},O=(z,G={focusOnInput:!1})=>{let V=Sl({value:z,field:"iso2",countries:n});if(!V){console.error(`[react-international-phone]: can not find a country with "${z}" iso2 code`);return}let R=h?"":`${r}${V.dialCode}${a}`;P({inputValue:R,phone:`${r}${V.dialCode}`,country:V.iso2}),G.focusOnInput&&Promise.resolve().then(()=>{var K;(K=A.current)==null||K.focus()})},[Ee,be]=I.useState(!1);return I.useEffect(()=>{if(!Ee){be(!0),t!==C&&(g==null||g({inputValue:E,phone:C,country:se}));return}if(t===C)return;let{phone:z,inputValue:G,country:V}=U3({value:t,country:se,insertDialCodeOnEmpty:!l,...$});P({phone:z,inputValue:G,country:V.iso2})},[t]),{phone:C,inputValue:E,country:se,setCountry:O,handlePhoneValueChange:ae,inputRef:A}},Hee=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=s=>r?s.replace(new RegExp(`[^${O9}]`,"g"),""):s;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let o=Object.keys(i).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${t.iso2} is not valid`),!1;let l=new RegExp(s.substring(1,s.length-1)),f=e.replace(t.dialCode,"");return l.test(km(f))});return a(o?i[o]:i.default)},va=e=>{let[t,n,r,i,a,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:o}},Gee=e=>`Field "${e}" is not supported`,Sl=({field:e,value:t,countries:n=Lu})=>{if(["priority"].includes(e))throw new Error(Gee(e));let r=n.find(i=>{let a=va(i);return t===a[e]});if(r)return va(r)},Yee=({phone:e,countries:t=Lu,currentCountryIso2:n})=>{var s;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=km(e);if(!i)return r;let a=r,o=({country:l,fullDialCodeMatch:f})=>{var g,b;let h=l.dialCode===((g=a.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=a.country)==null?void 0:b.priority)??0);(!h||m)&&(a={country:l,fullDialCodeMatch:f})};for(let l of t){let f=va(l),{dialCode:h,areaCodes:m}=f;if(i.startsWith(h)){let g=a.country?Number(h)>=Number(a.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let $ of m)if(b.startsWith($))return{country:f,fullDialCodeMatch:!0}}(g||h===i||!a.fullDialCodeMatch)&&o({country:f,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!a.country||Number(h)<=Number(a.country.dialCode))&&o({country:f,fullDialCodeMatch:!1})}if(n){let l=Sl({value:n,field:"iso2",countries:t});if(!l)return a;let f=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;a&&((s=a.country)==null?void 0:s.dialCode)===l.dialCode&&a.country!==l&&a.fullDialCodeMatch&&(!l.areaCodes||f)&&(a={country:l,fullDialCodeMatch:!0})}return a},Zee=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Xee="abcdefghijklmnopqrstuvwxyz",Qee="1f1e6",Ow=Xee.split("").reduce((e,t,n)=>({...e,[t]:Zee(Qee,n)}),{}),Jee=e=>[Ow[e[0]],Ow[e[1]]].join("-"),tx=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:o,...s})=>{if(!e)return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...s});let l=()=>{if(n)return n;let f=Jee(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return de.default.createElement("img",{className:Pr({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...s})},ete=1e3,tte=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Lu,preferredCountries:i=[],flags:a,onSelect:o,onClose:s,...l})=>{let f=I.useRef(null),h=I.useRef(),m=I.useMemo(()=>{if(!i||!i.length)return r;let F=[],q=[...r];for(let te of i){let se=q.findIndex(ae=>va(ae).iso2===te);if(se!==-1){let ae=q.splice(se,1)[0];F.push(ae)}}return F.concat(q)},[r,i]),g=I.useRef({updatedAt:void 0,value:""}),b=F=>{let q=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>ete;g.current={value:q?F:`${g.current.value}${F}`,updatedAt:new Date};let te=m.findIndex(se=>va(se).name.toLowerCase().startsWith(g.current.value));te!==-1&&A(te)},$=I.useCallback(F=>m.findIndex(q=>va(q).iso2===F),[m]),[x,A]=I.useState($(n)),w=()=>{h.current!==n&&A($(n))},C=I.useCallback(F=>{A($(F.iso2)),o==null||o(F)},[o,$]),E=F=>{let q=m.length-1,te=se=>F==="prev"?se-1:F==="next"?se+1:F==="last"?q:0;A(se=>{let ae=te(se);return ae<0?0:ae>q?q:ae})},T=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let q=va(m[x]);C(q);return}if(F.key==="Escape"){s==null||s();return}if(F.key==="ArrowUp"){F.preventDefault(),E("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),E("next");return}if(F.key==="PageUp"){F.preventDefault(),E("first");return}if(F.key==="PageDown"){F.preventDefault(),E("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},P=I.useCallback(()=>{if(!f.current||x===void 0)return;let F=va(m[x]).iso2;if(F===h.current)return;let q=f.current.querySelector(`[data-country="${F}"]`);q&&(Oee(f.current,q),h.current=F)},[x,m]);return I.useEffect(()=>{P()},[x,P]),I.useEffect(()=>{f.current&&(e?f.current.focus():w())},[e]),I.useEffect(()=>{w()},[n]),de.default.createElement("ul",{ref:f,role:"listbox",className:Pr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${va(m[x]).iso2}-option`},m.map((F,q)=>{let te=va(F),se=te.iso2===n,ae=q===x,O=i.includes(te.iso2),Ee=q===i.length-1,be=a==null?void 0:a.find(z=>z.iso2===te.iso2);return de.default.createElement(de.default.Fragment,{key:te.iso2},de.default.createElement("li",{"data-country":te.iso2,role:"option","aria-selected":se,"aria-label":`${te.name} ${t}${te.dialCode}`,id:`react-international-phone__${te.iso2}-option`,className:Pr({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",se&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,O&&l.listItemPreferredClassName,se&&l.listItemSelectedClassName,ae&&l.listItemFocusedClassName]}),onClick:()=>C(te),style:l.listItemStyle,title:te.name},de.default.createElement(tx,{iso2:te.iso2,src:be==null?void 0:be.src,className:Pr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},te.name),de.default.createElement("span",{className:Pr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,te.dialCode)),Ee?de.default.createElement("hr",{className:Pr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},nte=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Lu,preferredCountries:a=[],flags:o,renderButtonWrapper:s,...l})=>{let[f,h]=I.useState(!1),m=I.useMemo(()=>{if(e)return Sl({value:e,field:"iso2",countries:i})},[i,e]),g=I.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},$=()=>{var w;let x={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},A=de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},de.default.createElement(tx,{iso2:e,src:(w=o==null?void 0:o.find(C=>C.iso2===e))==null?void 0:w.src,className:Pr({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&de.default.createElement("div",{className:Pr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return s?s({children:A,rootProps:x}):de.default.createElement("button",{...x,type:"button",className:Pr({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},A)};return de.default.createElement("div",{className:Pr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),de.default.createElement(tte,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},rte=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>de.default.createElement("div",{className:Pr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);I.forwardRef(({value:e,onChange:t,countries:n=Lu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:o,flags:s,style:l,className:f,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:x,disabled:A,name:w,onFocus:C,onBlur:E,required:T,autoFocus:P,...F},q)=>{let{phone:te,inputValue:se,inputRef:ae,country:O,setCountry:Ee,handlePhoneValueChange:be}=L9({value:e,countries:n,...F,onChange:G=>{t==null||t(G.phone,{country:G.country,inputValue:G.inputValue})}}),z=F.disableDialCodeAndPrefix&&a&&(O==null?void 0:O.dialCode);return I.useImperativeHandle(q,()=>ae.current?Object.assign(ae.current,{setCountry:Ee,state:{phone:te,inputValue:se,country:O}}):null,[ae,Ee,te,se,O]),de.default.createElement("div",{ref:q,className:Pr({addPrefix:["input-container"],rawClassNames:[f]}),style:l},de.default.createElement(nte,{onSelect:G=>Ee(G.iso2,{focusOnInput:!o}),flags:s,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),z&&de.default.createElement(rte,{dialCode:O.dialCode,prefix:F.prefix??"+",disabled:A,...b}),de.default.createElement("input",{onChange:be,value:se,type:"tel",ref:ae,className:Pr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:A,style:h,name:w,onFocus:C,onBlur:E,autoFocus:P,required:T,...$}))});var J4,Lw;function ite(){if(Lw)return J4;Lw=1;function e(t){return t===void 0}return J4=e,J4}var ate=ite();const ote=ar(ate);var ey={exports:{}},Vw;function ste(){return Vw||(Vw=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
75
76
  * Prism: Lightweight, robust, elegant syntax highlighting
76
77
  *
77
78
  * @license MIT <https://opensource.org/licenses/MIT>
@@ -79,9 +80,8 @@ function print() { __p += __j.call(arguments, '') }
79
80
  * @namespace
80
81
  * @public
81
82
  */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(E){return E instanceof l?new l(E.type,C(E.content),E.alias):Array.isArray(E)?E.map(C):E.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++a}),C.__id},clone:function C(E,T){T=T||{};var P,F;switch(s.util.type(E)){case"Object":if(F=s.util.objId(E),T[F])return T[F];P={},T[F]=P;for(var q in E)E.hasOwnProperty(q)&&(P[q]=C(E[q],T));return P;case"Array":return F=s.util.objId(E),T[F]?T[F]:(P=[],T[F]=P,E.forEach(function(te,se){P[se]=C(te,T)}),P);default:return E}},getLanguage:function(C){for(;C;){var E=i.exec(C.className);if(E)return E[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,E){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+E)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(P){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(C){var E=document.getElementsByTagName("script");for(var T in E)if(E[T].src==C)return E[T]}return null}},isActive:function(C,E,T){for(var P="no-"+E;C;){var F=C.classList;if(F.contains(E))return!0;if(F.contains(P))return!1;C=C.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,E){var T=s.util.clone(s.languages[C]);for(var P in E)T[P]=E[P];return T},insertBefore:function(C,E,T,P){P=P||s.languages;var F=P[C],q={};for(var te in F)if(F.hasOwnProperty(te)){if(te==E)for(var se in T)T.hasOwnProperty(se)&&(q[se]=T[se]);T.hasOwnProperty(te)||(q[te]=F[te])}var ae=P[C];return P[C]=q,s.languages.DFS(s.languages,function(O,Ee){Ee===ae&&O!=C&&(this[O]=q)}),q},DFS:function C(E,T,P,F){F=F||{};var q=s.util.objId;for(var te in E)if(E.hasOwnProperty(te)){T.call(E,te,E[te],P||te);var se=E[te],ae=s.util.type(se);ae==="Object"&&!F[q(se)]?(F[q(se)]=!0,C(se,T,null,F)):ae==="Array"&&!F[q(se)]&&(F[q(se)]=!0,C(se,T,te,F))}}},plugins:{},highlightAll:function(C,E){s.highlightAllUnder(document,C,E)},highlightAllUnder:function(C,E,T){var P={callback:T,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),s.hooks.run("before-all-elements-highlight",P);for(var F=0,q;q=P.elements[F++];)s.highlightElement(q,E===!0,P.callback)},highlightElement:function(C,E,T){var P=s.util.getLanguage(C),F=s.languages[P];s.util.setLanguage(C,P);var q=C.parentElement;q&&q.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(q,P);var te=C.textContent,se={element:C,language:P,grammar:F,code:te};function ae(Ee){se.highlightedCode=Ee,s.hooks.run("before-insert",se),se.element.innerHTML=se.highlightedCode,s.hooks.run("after-highlight",se),s.hooks.run("complete",se),T&&T.call(se.element)}if(s.hooks.run("before-sanity-check",se),q=se.element.parentElement,q&&q.nodeName.toLowerCase()==="pre"&&!q.hasAttribute("tabindex")&&q.setAttribute("tabindex","0"),!se.code){s.hooks.run("complete",se),T&&T.call(se.element);return}if(s.hooks.run("before-highlight",se),!se.grammar){ae(s.util.encode(se.code));return}if(E&&r.Worker){var O=new Worker(s.filename);O.onmessage=function(Ee){ae(Ee.data)},O.postMessage(JSON.stringify({language:se.language,code:se.code,immediateClose:!0}))}else ae(s.highlight(se.code,se.grammar,se.language))},highlight:function(C,E,T){var P={code:C,grammar:E,language:T};if(s.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=s.tokenize(P.code,P.grammar),s.hooks.run("after-tokenize",P),l.stringify(s.util.encode(P.tokens),P.language)},tokenize:function(C,E){var T=E.rest;if(T){for(var P in T)E[P]=T[P];delete E.rest}var F=new m;return g(F,F.head,C),h(C,F,E,F.head,0),$(F)},hooks:{all:{},add:function(C,E){var T=s.hooks.all;T[C]=T[C]||[],T[C].push(E)},run:function(C,E){var T=s.hooks.all[C];if(!(!T||!T.length))for(var P=0,F;F=T[P++];)F(E)}},Token:l};r.Prism=s;function l(C,E,T,P){this.type=C,this.content=E,this.alias=T,this.length=(P||"").length|0}l.stringify=function C(E,T){if(typeof E=="string")return E;if(Array.isArray(E)){var P="";return E.forEach(function(ae){P+=C(ae,T)}),P}var F={type:E.type,content:C(E.content,T),tag:"span",classes:["token",E.type],attributes:{},language:T},q=E.alias;q&&(Array.isArray(q)?Array.prototype.push.apply(F.classes,q):F.classes.push(q)),s.hooks.run("wrap",F);var te="";for(var se in F.attributes)te+=" "+se+'="'+(F.attributes[se]||"").replace(/"/g,"&quot;")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+te+">"+F.content+"</"+F.tag+">"};function f(C,E,T,P){C.lastIndex=E;var F=C.exec(T);if(F&&P&&F[1]){var q=F[1].length;F.index+=q,F[0]=F[0].slice(q)}return F}function h(C,E,T,P,F,q){for(var te in T)if(!(!T.hasOwnProperty(te)||!T[te])){var se=T[te];se=Array.isArray(se)?se:[se];for(var ae=0;ae<se.length;++ae){if(q&&q.cause==te+","+ae)return;var O=se[ae],Ee=O.inside,be=!!O.lookbehind,z=!!O.greedy,G=O.alias;if(z&&!O.pattern.global){var V=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,V+"g")}for(var R=O.pattern||O,K=P.next,fe=F;K!==E.tail&&!(q&&fe>=q.reach);fe+=K.value.length,K=K.next){var M=K.value;if(E.length>C.length)return;if(!(M instanceof l)){var oe=1,le;if(z){if(le=f(R,fe,C,be),!le||le.index>=C.length)break;var Ge=le.index,Se=le.index+le[0].length,_e=fe;for(_e+=K.value.length;Ge>=_e;)K=K.next,_e+=K.value.length;if(_e-=K.value.length,fe=_e,K.value instanceof l)continue;for(var Be=K;Be!==E.tail&&(_e<Se||typeof Be.value=="string");Be=Be.next)oe++,_e+=Be.value.length;oe--,M=C.slice(fe,_e),le.index-=fe}else if(le=f(R,0,M,be),!le)continue;var Ge=le.index,Xe=le[0],Ne=M.slice(0,Ge),qe=M.slice(Ge+Xe.length),ke=fe+M.length;q&&ke>q.reach&&(q.reach=ke);var je=K.prev;Ne&&(je=g(E,je,Ne),fe+=Ne.length),b(E,je,oe);var Te=new l(te,Ee?s.tokenize(Xe,Ee):Xe,G,Xe);if(K=g(E,je,Te),qe&&g(E,K,qe),oe>1){var Ye={cause:te+","+ae,reach:ke};h(C,E,T,K.prev,fe,Ye),q&&Ye.reach>q.reach&&(q.reach=Ye.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},E={value:null,prev:C,next:null};C.next=E,this.head=C,this.tail=E,this.length=0}function g(C,E,T){var P=E.next,F={value:T,prev:E,next:P};return E.next=F,P.prev=F,C.length++,F}function b(C,E,T){for(var P=E.next,F=0;F<T&&P!==C.tail;F++)P=P.next;E.next=P,P.prev=E,C.length-=F}function $(C){for(var E=[],T=C.head.next;T!==C.tail;)E.push(T.value),T=T.next;return E}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(C){var E=JSON.parse(C.data),T=E.language,P=E.code,F=E.immediateClose;r.postMessage(s.highlight(P,s.languages[T],T)),F&&r.close()},!1)),s;var x=s.util.currentScript();x&&(s.filename=x.src,x.hasAttribute("data-manual")&&(s.manual=!0));function A(){s.manual||s.highlightAll()}if(!s.manual){var w=document.readyState;w==="loading"||w==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return s}(t);e.exports&&(e.exports=n),typeof Hi<"u"&&(Hi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(x,A){return"✖ Error "+x+" while fetching file: "+A},a="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",l="loading",f="loaded",h="failed",m="pre[data-src]:not(["+s+'="'+f+'"]):not(['+s+'="'+l+'"])';function g(x,A,w){var C=new XMLHttpRequest;C.open("GET",x,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?A(C.responseText):C.status>=400?w(i(C.status,C.statusText)):w(a))},C.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var w=Number(A[1]),C=A[2],E=A[3];return C?E?[w,Number(E)]:[w,void 0]:[w,w]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var A=x.element;if(A.matches(m)){x.code="",A.setAttribute(s,l);var w=A.appendChild(document.createElement("CODE"));w.textContent=r;var C=A.getAttribute("data-src"),E=x.language;if(E==="none"){var T=(/\.(\w+)$/.exec(C)||[,"none"])[1];E=o[T]||T}n.util.setLanguage(w,E),n.util.setLanguage(A,E);var P=n.plugins.autoloader;P&&P.loadLanguages(E),g(C,function(F){A.setAttribute(s,f);var q=b(A.getAttribute("data-range"));if(q){var te=F.split(/\r\n?|\n/g),se=q[0],ae=q[1]==null?te.length:q[1];se<0&&(se+=te.length),se=Math.max(0,Math.min(se-1,te.length)),ae<0&&(ae+=te.length),ae=Math.max(0,Math.min(ae,te.length)),F=te.slice(se,ae).join(`
82
- `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(se+1))}w.textContent=F,n.highlightElement(w)},function(F){A.setAttribute(s,h),w.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var w=(A||document).querySelectorAll(m),C=0,E;E=w[C++];)n.highlightElement(E)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Q4)),Q4.exports}var Vee=Lee();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var o=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function s(g,b){var $=getComputedStyle(g),x=getComputedStyle(b);function A(w){return+w.substr(0,w.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,x){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var A=$.replace(/\s+/g,"").split(",").filter(Boolean),w=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,E=C(getComputedStyle(b).lineHeight),T=Prism.util.isActive(b,e),P=b.querySelector("code"),F=T?b:P||b,q=[],te=P.textContent.match(n),se=te?te.length+1:1,ae=!P||F==P?0:s(b,P);A.forEach(function(be){var z=be.split("-"),G=+z[0],V=+z[1]||G;if(V=Math.min(se+w,V),!(V<G)){var R=b.querySelector('.line-highlight[data-range="'+be+'"]')||document.createElement("div");if(q.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",be),R.className=(x||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var K=Prism.plugins.lineNumbers.getLine(b,G),fe=Prism.plugins.lineNumbers.getLine(b,V);if(K){var M=K.offsetTop+ae+"px";q.push(function(){R.style.top=M})}if(fe){var oe=fe.offsetTop-K.offsetTop+fe.offsetHeight+"px";q.push(function(){R.style.height=oe})}}else q.push(function(){R.setAttribute("data-start",String(G)),V>G&&R.setAttribute("data-end",String(V)),R.style.top=(G-w-1)*E+ae+"px",R.textContent=new Array(V-G+2).join(`
83
- `)});q.push(function(){R.style.width=b.scrollWidth+"px"}),q.push(function(){F.appendChild(R)})}});var O=b.id;if(T&&Prism.util.isActive(b,t)&&O){i(b,t)||q.push(function(){b.classList.add(t)});var Ee=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(be,z){var G=z+Ee;be.onclick=function(){var V=O+"."+G;f=!1,location.hash=V,setTimeout(function(){f=!0},1)}})}return function(){q.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(w){w.parentNode.removeChild(w)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),x=document.getElementById($);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(x){$+=x.textContent.length,x.parentNode.removeChild(x)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var w=Prism.plugins.lineHighlight.highlightLines($);w(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const R9=I.createContext({});function Df(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jb=typeof window<"u",I9=Jb?I.useLayoutEffect:I.useEffect,ex=I.createContext(null);function tx(e,t){e.indexOf(t)===-1&&e.push(t)}function nx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Nee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const qo=(e,t,n)=>n>t?t:n<e?e:n;function z3(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pc=()=>{},Ca=()=>{};process.env.NODE_ENV!=="production"&&(pc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(z3(t,n))},Ca=(e,t,n)=>{if(!e)throw new Error(z3(t,n))});const Uo={},O9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function L9(e){return typeof e=="object"&&e!==null}const V9=e=>/^0[^.\s]+$/u.test(e);function rx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qi=e=>e,jee=(e,t)=>n=>t(e(n)),$f=(...e)=>e.reduce(jee),Hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let ix=class{constructor(){this.subscriptions=[]}add(t){return tx(this.subscriptions,t),()=>nx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Da=e=>e*1e3,to=e=>e/1e3;function N9(e,t){return t?e*(1e3/t):0}const Vw=new Set;function ax(e,t,n){e||Vw.has(t)||(console.warn(z3(t,n)),Vw.add(t))}const j9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kee=1e-7,zee=12;function qee(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=j9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Kee&&++s<zee);return o}function Ef(e,t,n,r){if(e===t&&n===r)return Qi;const i=a=>qee(a,0,1,e,n);return a=>a===0||a===1?a:j9(i(a),t,r)}const K9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,z9=e=>t=>1-e(1-t),q9=Ef(.33,1.53,.69,.99),ox=z9(q9),U9=K9(ox),W9=e=>(e*=2)<1?.5*ox(e):.5*(2-Math.pow(2,-10*(e-1))),sx=e=>1-Math.sin(Math.acos(e)),H9=z9(sx),G9=K9(sx),Uee=Ef(.42,0,1,1),Wee=Ef(0,0,.58,1),Y9=Ef(.42,0,.58,1),Hee=e=>Array.isArray(e)&&typeof e[0]!="number",Z9=e=>Array.isArray(e)&&typeof e[0]=="number",Nw={linear:Qi,easeIn:Uee,easeInOut:Y9,easeOut:Wee,circIn:sx,circInOut:G9,circOut:H9,backIn:ox,backInOut:U9,backOut:q9,anticipate:W9},Gee=e=>typeof e=="string",jw=e=>{if(Z9(e)){Ca(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Ef(t,n,r,i)}else if(Gee(e))return Ca(Nw[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Nw[e];return e},Sh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Yee(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const Zee=40;function X9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Sh.reduce((E,T)=>(E[T]=Yee(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Uo.useManualTiming?i.timestamp:performance.now();n=!1,Uo.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,Zee),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Sh.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<Sh.length;T++)o[Sh[T]].cancel(E)},state:i,steps:o}}const{schedule:Cn,cancel:Wo,state:br,steps:J4}=X9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qi,!0);let Hh;function Xee(){Hh=void 0}const oi={now:()=>(Hh===void 0&&oi.set(br.isProcessing||Uo.useManualTiming?br.timestamp:performance.now()),Hh),set:e=>{Hh=e,queueMicrotask(Xee)}},Q9=e=>t=>typeof t=="string"&&t.startsWith(e),ux=Q9("--"),Qee=Q9("var(--"),lx=e=>Qee(e)?Jee.test(e.split("/*")[0].trim()):!1,Jee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gd={...mc,transform:e=>qo(0,1,e)},Th={...mc,default:1},Td=e=>Math.round(e*1e5)/1e5,cx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ete(e){return e==null}const tte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dx=(e,t)=>n=>!!(typeof n=="string"&&tte.test(n)&&n.startsWith(e)||t&&!ete(n)&&Object.prototype.hasOwnProperty.call(n,t)),J9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(cx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},nte=e=>qo(0,255,e),ey={...mc,transform:e=>Math.round(nte(e))},hu={test:dx("rgb","red"),parse:J9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ey.transform(e)+", "+ey.transform(t)+", "+ey.transform(n)+", "+Td(Gd.transform(r))+")"};function rte(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const q3={test:dx("#"),parse:rte,transform:hu.transform},Cf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Cf("deg"),no=Cf("%"),At=Cf("px"),ite=Cf("vh"),ate=Cf("vw"),Kw={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},Tl={test:dx("hsl","hue"),parse:J9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Td(t))+", "+no.transform(Td(n))+", "+Td(Gd.transform(r))+")"},Jn={test:e=>hu.test(e)||q3.test(e)||Tl.test(e),parse:e=>hu.test(e)?hu.parse(e):Tl.test(e)?Tl.parse(e):q3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hu.transform(e):Tl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},ote=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ste(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(cx))==null?void 0:t.length)||0)+(((n=e.match(ote))==null?void 0:n.length)||0)>0}const e8="number",t8="color",ute="var",lte="var(",zw="${}",cte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(cte,l=>(Jn.test(l)?(r.color.push(a),i.push(t8),n.push(Jn.parse(l))):l.startsWith(lte)?(r.var.push(a),i.push(ute),n.push(l)):(r.number.push(a),i.push(e8),n.push(parseFloat(l))),++a,zw)).split(zw);return{values:n,split:s,indexes:r,types:i}}function n8(e){return Yd(e).values}function r8(e){const{split:t,types:n}=Yd(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===e8?a+=Td(i[o]):s===t8?a+=Jn.transform(i[o]):a+=i[o]}return a}}const dte=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function fte(e){const t=n8(e);return r8(e)(t.map(dte))}const ws={test:ste,parse:n8,createTransformer:r8,getAnimatableNone:fte};function ty(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=ty(l,s,e+1/3),a=ty(l,s,e),o=ty(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _p(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,ny=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pte=[q3,hu,Tl],mte=e=>pte.find(t=>t.test(e));function qw(e){const t=mte(e);if(pc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Tl&&(n=hte(n)),n}const Uw=(e,t)=>{const n=qw(e),r=qw(t);if(!n||!r)return _p(e,t);const i={...n};return a=>(i.red=ny(n.red,r.red,a),i.green=ny(n.green,r.green,a),i.blue=ny(n.blue,r.blue,a),i.alpha=Pn(n.alpha,r.alpha,a),hu.transform(i))},U3=new Set(["none","hidden"]);function gte(e,t){return U3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vte(e,t){return n=>Pn(e,t,n)}function fx(e){return typeof e=="number"?vte:typeof e=="string"?lx(e)?_p:Jn.test(e)?Uw:xte:Array.isArray(e)?i8:typeof e=="object"?Jn.test(e)?Uw:yte:_p}function i8(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>fx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function yte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function bte(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const xte=(e,t)=>{const n=ws.createTransformer(t),r=Yd(e),i=Yd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?U3.has(e)&&!i.values.length||U3.has(t)&&!r.values.length?gte(e,t):$f(i8(bte(r,i),i.values),n):(pc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_p(e,t))};function a8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):fx(e)(e,t)}const Dte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Cn.update(t,n),stop:()=>Wo(t),now:()=>br.isProcessing?br.timestamp:oi.now()}},o8=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Bp=2e4;function hx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Bp;)t+=n,r=e.next(t);return t>=Bp?1/0:t}function $te(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(hx(r),Bp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:to(i)}}const Ete=5;function s8(e,t,n){const r=Math.max(t-Ete,0);return N9(n-e(r),t-r)}const Bn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ry=.001;function Cte({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:n=Bn.velocity,mass:r=Bn.mass}){let i,a;pc(e<=Da(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qo(Bn.minDamping,Bn.maxDamping,o),e=qo(Bn.minDuration,Bn.maxDuration,to(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=W3(f,o),$=Math.exp(-m);return ry-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=W3(Math.pow(f,2),o);return(-i(f)+ry>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-ry+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=Ate(i,a,s);if(e=Da(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const wte=12;function Ate(e,t,n){let r=n;for(let i=1;i<wte;i++)r=r-e(r)/t(r);return r}function W3(e,t){return e*Math.sqrt(1-t*t)}const Ste=["duration","bounce"],Tte=["stiffness","damping","mass"];function Ww(e,t){return t.some(n=>e[n]!==void 0)}function Pte(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Ww(e,Tte)&&Ww(e,Ste))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*qo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bn.mass,stiffness:i,damping:a}}else{const n=Cte(e);t={...t,...n,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function Fp(e=Bn.visualDuration,t=Bn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Pte({...n,velocity:-to(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=to(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Bn.restSpeed.granular:Bn.restSpeed.default),i||(i=C?Bn.restDelta.granular:Bn.restDelta.default);let E;if(x<1){const P=W3(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?Da($):s8(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(hx(T),Bp),F=o8(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Fp.applyToOptions=e=>{const t=$te(e,100,Fp);return e.ease=t.ease,e.duration=Da(t.duration),e.type="keyframes",e};function H3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Fp({keyframes:[g.value,$(g.value)],velocity:s8(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}function _te(e,t,n){const r=[],i=n||Uo.mix||a8,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Qi:t;s=$f(l,s)}r.push(s)}return r}function u8(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ca(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=_te(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Hd(e[m],e[m+1],h);return s[m](g)};return n?h=>f(qo(e[0],e[a-1],h)):f}function Bte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Hd(0,t,r);e.push(Pn(n,1,i))}}function Fte(e){const t=[0];return Bte(t,e.length-1),t}function kte(e,t){return e.map(n=>n*t)}function Mte(e,t){return e.map(()=>t||Y9).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Hee(r)?r.map(jw):jw(r),a={done:!1,value:t[0]},o=kte(n&&n.length===t.length?n:Fte(t),e),s=u8(o,t,{ease:Array.isArray(i)?i:Mte(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Rte=e=>e!==null;function px(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Rte),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const Ite={decay:H3,inertia:H3,tween:Pl,keyframes:Pl,spring:Fp};function l8(e){typeof e.type=="string"&&(e.type=Ite[e.type])}let mx=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const Ote=e=>e/100;let gx=class extends mx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;l8(t);const{type:n=Pl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Pl;process.env.NODE_ENV!=="production"&&l!==Pl&&Ca(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Pl&&typeof s[0]!="number"&&(this.mixKeyframes=$f(Ote,a8(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=hx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=qo(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==H3&&(P.value=px(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return to(this.calculatedDuration)}get time(){return to(this.currentTime)}set time(t){var n;t=Da(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=to(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Dte,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function Lte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pu=e=>e*180/Math.PI,G3=e=>{const t=pu(Math.atan2(e[1],e[0]));return Y3(t)},Vte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:G3,rotateZ:G3,skewX:e=>pu(Math.atan(e[1])),skewY:e=>pu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Y3=e=>(e=e%360,e<0&&(e+=360),e),Hw=G3,Gw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Yw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Nte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gw,scaleY:Yw,scale:e=>(Gw(e)+Yw(e))/2,rotateX:e=>Y3(pu(Math.atan2(e[6],e[5]))),rotateY:e=>Y3(pu(Math.atan2(-e[2],e[0]))),rotateZ:Hw,rotate:Hw,skewX:e=>pu(Math.atan(e[4])),skewY:e=>pu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Z3(e){return e.includes("scale")?1:0}function X3(e,t){if(!e||e==="none")return Z3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Nte,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Vte,i=s}if(!i)return Z3(t);const a=r[t],o=i[1].split(",").map(Kte);return typeof a=="function"?a(o):o[a]}const jte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return X3(n,t)};function Kte(e){return parseFloat(e.trim())}const gc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vc=new Set(gc),Zw=e=>e===mc||e===At,zte=new Set(["x","y","z"]),qte=gc.filter(e=>!zte.has(e));function Ute(e){const t=[];return qte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>X3(t,"x"),y:(e,{transform:t})=>X3(t,"y")};bu.translateX=bu.x;bu.translateY=bu.y;const xu=new Set;let Q3=!1,J3=!1,e1=!1;function c8(){if(J3){const e=Array.from(xu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ute(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}J3=!1,Q3=!1,xu.forEach(e=>e.complete(e1)),xu.clear()}function d8(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(J3=!0)})}function Wte(){e1=!0,d8(),c8(),e1=!1}let vx=class{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xu.add(this),Q3||(Q3=!0,Cn.read(d8),Cn.resolveKeyframes(c8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}Lte(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xu.delete(this)}cancel(){this.state==="scheduled"&&(xu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const Hte=e=>e.startsWith("--");function Gte(e,t,n){Hte(t)?e.style.setProperty(t,n):e.style[t]=n}const Yte=rx(()=>window.ScrollTimeline!==void 0),Zte={};function Xte(e,t){const n=rx(e);return()=>Zte[t]??n()}const f8=Xte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dd([0,.65,.55,1]),circOut:Dd([.55,0,1,.45]),backIn:Dd([.31,.01,.66,-.59]),backOut:Dd([.33,1.53,.69,.99])};function h8(e,t){if(e)return typeof e=="function"?f8()?o8(e,t):"ease-out":Z9(e)?Dd(e):Array.isArray(e)?e.map(n=>h8(n,t)||Xw.easeOut):Xw[e]}function Qte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=h8(s,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function p8(e){return typeof e=="function"&&"applyToOptions"in e}function Jte({type:e,...t}){return p8(e)&&f8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let ene=class extends mx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Ca(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const f=Jte(t);this.animation=Qte(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=px(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Gte(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return to(Number(t))}get time(){return to(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Da(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Yte()?(this.animation.timeline=t,Qi):n(this)}};const m8={anticipate:W9,backInOut:U9,circInOut:G9};function tne(e){return e in m8}function nne(e){typeof e.ease=="string"&&tne(e.ease)&&(e.ease=m8[e.ease])}const Qw=10;let rne=class extends ene{constructor(t){nne(t),l8(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new gx({...o,autoplay:!1}),l=Da(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Qw).value,s.sample(l).value,Qw),s.stop()}};const Jw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ws.test(e)||e==="0")&&!e.startsWith("url("));function ine(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ane(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=Jw(i,t),s=Jw(a,t);return pc(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:ine(e)||(n==="spring"||p8(n))&&r}function t1(e){e.duration=0,e.type}const one=new Set(["opacity","clipPath","filter","transform"]),sne=rx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function une(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=t.owner.getProps();return sne()&&n&&one.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const lne=40;let cne=class extends mx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||vx;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=oi.now(),ane(t,a,o,s)||((Uo.instantAnimations||!l)&&(h==null||h(px(t,r,n))),t[0]=t[t.length-1],t1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>lne?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&une(g)?new rne({...g,element:g.motionValue.owner.current}):new gx(g);b.finished.then(()=>this.notifyFinished()).catch(Qi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Wte()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const dne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fne(e){const t=dne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const hne=4;function g8(e,t,n=1){Ca(n<=hne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=fne(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return O9(o)?parseFloat(o):o}return lx(i)?g8(i,t,n+1):i}function yx(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const v8=new Set(["width","height","top","left","right","bottom",...gc]),pne={test:e=>e==="auto",parse:e=>e},y8=e=>t=>t.test(e),b8=[mc,At,no,hs,ate,ite,pne],eA=e=>b8.find(y8(e));function mne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V9(e):!0}const gne=new Set(["brightness","contrast","saturate","opacity"]);function vne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(cx)||[];if(!r)return e;const i=n.replace(r,"");let a=gne.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const yne=/\b([a-z-]*)\(.*?\)/gu,n1={...ws,getAnimatableNone:e=>{const t=e.match(yne);return t?t.map(vne).join(" "):e}},tA={...mc,transform:Math.round},bne={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:hs,skewX:hs,skewY:hs,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:Gd,originX:Kw,originY:Kw,originZ:At},bx={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...bne,zIndex:tA,fillOpacity:Gd,strokeOpacity:Gd,numOctaves:tA},xne={...bx,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:n1,WebkitFilter:n1},x8=e=>xne[e];function D8(e,t){let n=x8(e);return n!==n1&&(n=ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dne=new Set(["auto","none","0"]);function $ne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Dne.has(a)&&Yd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=D8(n,i)}let Ene=class extends vx{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),lx(f))){const h=g8(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!v8.has(r)||t.length!==2)return;const[i,a]=t,o=eA(i),s=eA(a);if(o!==s)if(Zw(o)&&Zw(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else bu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||mne(t[i]))&&r.push(i);r.length&&$ne(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=bu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}};function Cne(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const $8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function wne(e){return L9(e)&&"offsetHeight"in e}const nA=30,Ane=e=>!isNaN(parseFloat(e)),Pd={current:void 0};let Sne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=oi.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ane(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ax(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ix);const r=this.events[t].add(n);return t==="change"?()=>{r(),Cn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Pd.current&&Pd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nA);return N9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Pu(e,t){return new Sne(e,t)}const{schedule:xx}=X9(queueMicrotask,!1),ma={x:!1,y:!1};function E8(){return ma.x||ma.y}function Tne(e){return e==="x"||e==="y"?ma[e]?null:(ma[e]=!0,()=>{ma[e]=!1}):ma.x||ma.y?null:(ma.x=ma.y=!0,()=>{ma.x=ma.y=!1})}function C8(e,t){const n=Cne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function rA(e){return!(e.pointerType==="touch"||E8())}function Pne(e,t,n={}){const[r,i,a]=C8(e,n),o=s=>{if(!rA(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{rA(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const w8=(e,t)=>t?e===t?!0:w8(e,t.parentElement):!1,Dx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_ne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Bne(e){return _ne.has(e.tagName)||e.tabIndex!==-1}const Gh=new WeakSet;function iA(e){return t=>{t.key==="Enter"&&e(t)}}function iy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fne=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=iA(()=>{if(Gh.has(n))return;iy(n,"down");const i=iA(()=>{iy(n,"up")}),a=()=>iy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function aA(e){return Dx(e)&&!E8()}function kne(e,t,n={}){const[r,i,a]=C8(e,n),o=s=>{const l=s.currentTarget;if(!aA(s))return;Gh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Gh.has(l)&&Gh.delete(l),aA(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||w8(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),wne(s)&&(s.addEventListener("focus",f=>Fne(f,i)),!Bne(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function A8(e){return L9(e)&&"ownerSVGElement"in e}function Mne(e){return A8(e)&&e.tagName==="svg"}function Rne(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=u8(i,a,o);return t?s(r):s}const xr=e=>!!(e&&e.getVelocity),Ine=[...b8,Jn,ws],One=e=>Ine.find(y8(e)),$x=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Lne(e=!0){const t=I.useContext(ex);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const S8=I.createContext({strict:!1}),oA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nc={};for(const e in oA)nc[e]={isEnabled:t=>oA[e].some(n=>!!t[n])};function Vne(e){for(const t in e)nc[t]={...nc[t],...e[t]}}const Nne=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function kp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nne.has(e)}let T8=e=>!kp(e);function jne(e){typeof e=="function"&&(T8=t=>t.startsWith("on")?!kp(t):e(t))}try{jne(require("@emotion/is-prop-valid").default)}catch{}function Kne(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(T8(i)||n===!0&&kp(i)||!t&&!kp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Mm=I.createContext({});function Rm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zd(e){return typeof e=="string"||Array.isArray(e)}const Ex=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cx=["initial",...Ex];function Im(e){return Rm(e.animate)||Cx.some(t=>Zd(e[t]))}function P8(e){return!!(Im(e)||e.variants)}function zne(e,t){if(Im(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zd(n)?n:void 0,animate:Zd(r)?r:void 0}}return e.inherit!==!1?t:{}}function qne(e){const{initial:t,animate:n}=zne(e,I.useContext(Mm));return I.useMemo(()=>({initial:t,animate:n}),[sA(t),sA(n)])}function sA(e){return Array.isArray(e)?e.join(" "):e}const Xd={};function Une(e){for(const t in e)Xd[t]=e[t],ux(t)&&(Xd[t].isCSSVariable=!0)}function _8(e,{layout:t,layoutId:n}){return vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xd[e]||e==="opacity")}const Wne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hne=gc.length;function Gne(e,t,n){let r="",i=!0;for(let a=0;a<Hne;a++){const o=gc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=$8(s,bx[o]);if(!l){i=!1;const h=Wne[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function wx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(vc.has(l)){o=!0;continue}else if(ux(l)){i[l]=f;continue}else{const h=$8(f,bx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Gne(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const Ax=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function B8(e,t,n){for(const r in t)!xr(t[r])&&!_8(r,n)&&(e[r]=t[r])}function Yne({transformTemplate:e},t){return I.useMemo(()=>{const n=Ax();return wx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Zne(e,t){const n=e.style||{},r={};return B8(r,n,e),Object.assign(r,Yne(e,t)),r}function Xne(e,t){const n={},r=Zne(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Qne={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jne={offset:"strokeDashoffset",array:"strokeDasharray"};function ere(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Qne:Jne;e[a.offset]=At.transform(-r);const o=At.transform(t),s=At.transform(n);e[a.array]=`${o} ${s}`}function F8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(wx(e,s,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&ere(m,i,a,o,!1)}const k8=()=>({...Ax(),attrs:{}}),M8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tre(e,t,n,r){const i=I.useMemo(()=>{const a=k8();return F8(a,t,M8(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};B8(a,e.style,e),i.style={...a,...i.style}}return i}const nre=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Sx(e){return typeof e!="string"||e.includes("-")?!1:!!(nre.indexOf(e)>-1||/[A-Z]/u.test(e))}function rre(e,t,n,{latestValues:r},i,a=!1){const s=(Sx(e)?tre:Xne)(t,r,i,e),l=Kne(t,typeof e=="string",a),f=e!==I.Fragment?{...l,...s,ref:n}:{},{children:h}=t,m=I.useMemo(()=>xr(h)?h.get():h,[h]);return I.createElement(e,{...f,children:m})}function uA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tx(e,t,n,r){if(typeof t=="function"){const[i,a]=uA(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=uA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Yh(e){return xr(e)?e.get():e}function ire({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:are(n,r,i,e),renderState:t()}}function are(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Yh(a[g]);let{initial:o,animate:s}=e;const l=Im(e),f=P8(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Rm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Tx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}const R8=e=>(t,n)=>{const r=I.useContext(Mm),i=I.useContext(ex),a=()=>ire(e,t,r,i);return n?a():Df(a)};function Px(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(xr(r[o])||t.style&&xr(t.style[o])||_8(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const ore=R8({scrapeMotionValuesFromProps:Px,createRenderState:Ax});function I8(e,t,n){const r=Px(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=gc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const sre=R8({scrapeMotionValuesFromProps:I8,createRenderState:k8}),ure=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lre(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_l(n)&&(n.current=r))},[t])}const _x=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cre="framerAppearId",O8="data-"+_x(cre),L8=I.createContext({});function dre(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Mm),o=I.useContext(S8),s=I.useContext(ex),l=I.useContext($x).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(L8);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&fre(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[O8],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return I9(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1),h.enteringChildren=void 0)}),h}function fre(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V8(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_l(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function V8(e){if(e)return e.options.allowProjection!==!1?e.projection:V8(e.parent)}function ay(e,{forwardMotionProps:t=!1}={},n,r){n&&Vne(n);const i=Sx(e)?sre:ore;function a(s,l){let f;const h={...I.useContext($x),...s,layoutId:hre(s)},{isStatic:m}=h,g=qne(s),b=i(s,m);if(!m&&Jb){pre(h,n);const $=mre(h);f=$.MeasureLayout,g.visualElement=dre(e,b,h,r,$.ProjectionNode)}return io.jsxs(Mm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,rre(e,s,lre(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=I.forwardRef(a);return o[ure]=e,o}function hre({layoutId:e}){const t=I.useContext(R9).id;return t&&e!==void 0?t+"-"+e:e}function pre(e,t){const n=I.useContext(S8).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?pc(!1,r,"lazy-strict-mode"):Ca(!1,r,"lazy-strict-mode")}}function mre(e){const{drag:t,layout:n}=nc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function gre(e,t){if(typeof Proxy>"u")return ay;const n=new Map,r=(a,o)=>ay(a,o,e,t),i=(a,o)=>(process.env.NODE_ENV!=="production"&&ax(!1,"motion() is deprecated. Use motion.create() instead."),r(a,o));return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,ay(o,void 0,e,t)),n.get(o))})}function N8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function oy(e){return e===void 0||e===1}function r1({scale:e,scaleX:t,scaleY:n}){return!oy(e)||!oy(t)||!oy(n)}function ou(e){return r1(e)||j8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function j8(e){return lA(e.x)||lA(e.y)}function lA(e){return e&&e!=="0%"}function Mp(e,t,n){const r=e-n,i=t*r;return n+i}function cA(e,t,n,r,i){return i!==void 0&&(e=Mp(e,i,r)),Mp(e,n,r)+t}function i1(e,t=0,n=1,r,i){e.min=cA(e.min,t,n,r,i),e.max=cA(e.max,t,n,r,i)}function K8(e,{x:t,y:n}){i1(e.x,t.translate,t.scale,t.originPoint),i1(e.y,n.translate,n.scale,n.originPoint)}const dA=.999999999999,fA=1.0000000000001;function bre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,K8(e,o)),r&&ou(a.latestValues)&&Fl(e,a.latestValues))}t.x<fA&&t.x>dA&&(t.x=1),t.y<fA&&t.y>dA&&(t.y=1)}function Bl(e,t){e.min=e.min+t,e.max=e.max+t}function hA(e,t,n,r,i=.5){const a=Pn(e.min,e.max,i);i1(e,t,n,a,r)}function Fl(e,t){hA(e.x,t.x,t.scaleX,t.scale,t.originX),hA(e.y,t.y,t.scaleY,t.scale,t.originY)}function z8(e,t){return N8(yre(e.getBoundingClientRect(),t))}function xre(e,t,n){const r=z8(e,n),{scroll:i}=t;return i&&(Bl(r.x,i.offset.x),Bl(r.y,i.offset.y)),r}const pA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:pA(),y:pA()}),mA=()=>({min:0,max:0}),Hn=()=>({x:mA(),y:mA()}),a1={current:null},q8={current:!1};function Dre(){if(q8.current=!0,!!Jb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a1.current=e.matches;e.addEventListener("change",t),t()}else a1.current=!1}const $re=new WeakMap;function Ere(e,t,n){for(const r in t){const i=t[r],a=n[r];if(xr(i))e.addValue(r,i);else if(xr(a))e.addValue(r,Pu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Pu(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Cre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Cn.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Im(n),this.isVariantNode=P8(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&xr(b)&&b.set(l[g])}}mount(t){var n;this.current=t,$re.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),q8.current||Dre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:a1.current,process.env.NODE_ENV!=="production"&&ax(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Wo(this.notifyUpdate),Wo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Cn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nc){const n=nc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Hn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<gA.length;r++){const i=gA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Ere(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Pu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(O9(r)||V9(r))?r=parseFloat(r):!One(r)&&ws.test(n)&&(r=D8(t,n)),this.setBaseTarget(t,xr(r)?r.get():r)),xr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Tx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!xr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ix),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xx.render(this.render)}},U8=class extends Cre{constructor(){super(...arguments),this.KeyframeResolver=Ene}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function W8(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function wre(e){return window.getComputedStyle(e)}let Are=class extends U8{constructor(){super(...arguments),this.type="html",this.renderInstance=W8}readValueFromInstance(t,n){var r;if(vc.has(n))return(r=this.projection)!=null&&r.isProjecting?Z3(n):jte(t,n);{const i=wre(t),a=(ux(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return z8(t,n)}build(t,n,r){wx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Px(t,n,r)}};const H8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Sre(e,t,n,r){W8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(H8.has(i)?i:_x(i),t.attrs[i])}let Tre=class extends U8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Hn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vc.has(n)){const r=x8(n);return r&&r.default||0}return n=H8.has(n)?n:_x(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return I8(t,n,r)}build(t,n,r){F8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Sre(t,n,r,i)}mount(t){this.isSVGTag=M8(t.tagName),super.mount(t)}};const Pre=(e,t)=>Sx(e)?new Tre(t):new Are(t,{allowProjection:e!==I.Fragment});function Ul(e,t,n){const r=e.getProps();return Tx(r,t,n!==void 0?n:r.custom,e)}const o1=e=>Array.isArray(e);function _re(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pu(n))}function Bre(e){return o1(e)?e[e.length-1]||0:e}function Fre(e,t){const n=Ul(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Bre(a[o]);_re(e,o,s)}}function kre(e){return!!(xr(e)&&e.add)}function s1(e,t){const n=e.getValue("willChange");if(kre(n))return n.add(t);if(!n&&Uo.WillChange){const r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function G8(e){return e.props[O8]}const Mre=e=>e!==null;function Rre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Mre),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Ire={type:"spring",stiffness:500,damping:25,restSpeed:10},Ore=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Lre={type:"keyframes",duration:.8},Vre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Nre=(e,{keyframes:t})=>t.length>2?Lre:vc.has(e)?e.startsWith("scale")?Ore(t[1]):Ire:Vre;function jre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}const Bx=(e,t,n,r={},i,a)=>o=>{const s=yx(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Da(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};jre(s)||Object.assign(h,Nre(e,h)),h.duration&&(h.duration=Da(h.duration)),h.repeatDelay&&(h.repeatDelay=Da(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(t1(h),h.delay===0&&(m=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(m=!0,t1(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Rre(h.keyframes,s);if(g!==void 0){Cn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new gx(h):new cne(h)};function Kre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&Kre(f,h))continue;const b={delay:n,...yx(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=G8(e);if(w){const C=window.MotionHandoffAnimation(w,h,Cn);C!==null&&(b.startTime=C,x=!0)}}s1(e,h),m.start(Bx(h,m,g,e.shouldReduceMotion&&v8.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{Cn.update(()=>{o&&Fre(e,o)})}),l}function Z8(e,t,n,r=0,i=1){const a=Array.from(e).sort((f,h)=>f.sortNodePosition(h)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}function u1(e,t,n={}){var l;const r=Ul(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Y8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return zre(e,t,f,h,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function zre(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(u1(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Z8(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function qre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>u1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=u1(e,t,n);else{const i=typeof t=="function"?Ul(e,t,n.custom):t;r=Promise.all(Y8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function X8(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ure=Cx.length;function Q8(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Q8(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ure;n++){const r=Cx[n],i=e.props[r];(Zd(i)||i===!1)&&(t[r]=i)}return t}const Wre=[...Ex].reverse(),Hre=Ex.length;function Gre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qre(e,n,r)))}function Yre(e){let t=Gre(e),n=vA(),r=!0;const i=l=>(f,h)=>{var g;const m=Ul(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=Q8(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<Hre;A++){const w=Wre[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Zd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Rm(E)||typeof E=="boolean")continue;const q=Zre(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;o1(K)&&o1(fe)?M=!X8(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1);const G=F&&q;te&&(!G||se)&&m.push(...ae.map(R=>{const K={type:w};if(typeof R=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,M=Ul(fe,R);if(fe.enteringChildren&&M){const{delayChildren:oe}=M.transition||{};K.delay=Z8(fe.enteringChildren,e,oe)}}return{animation:R,options:K}}))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=Ul(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=vA(),r=!0}}}function Zre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!X8(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vA(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}let _s=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Xre=class extends _s{constructor(t){super(t),t.animationState||(t.animationState=Yre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},Qre=0,Jre=class extends _s{constructor(){super(...arguments),this.id=Qre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const eie={animation:{Feature:Xre},exit:{Feature:Jre}};function Qd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wf(e){return{point:{x:e.pageX,y:e.pageY}}}const tie=e=>t=>Dx(t)&&e(t,wf(t));function _d(e,t,n,r){return Qd(e,t,tie(n),r)}const J8=1e-4,nie=1-J8,rie=1+J8,eM=.01,iie=0-eM,aie=0+eM;function Nr(e){return e.max-e.min}function oie(e,t,n){return Math.abs(e-t)<=n}function yA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Nr(n)/Nr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nie&&e.scale<=rie||isNaN(e.scale))&&(e.scale=1),(e.translate>=iie&&e.translate<=aie||isNaN(e.translate))&&(e.translate=0)}function Bd(e,t,n,r){yA(e.x,t.x,n.x,r?r.originX:void 0),yA(e.y,t.y,n.y,r?r.originY:void 0)}function bA(e,t,n){e.min=n.min+t.min,e.max=e.min+Nr(t)}function sie(e,t,n){bA(e.x,t.x,n.x),bA(e.y,t.y,n.y)}function xA(e,t,n){e.min=t.min-n.min,e.max=e.min+Nr(t)}function Fd(e,t,n){xA(e.x,t.x,n.x),xA(e.y,t.y,n.y)}function Ki(e){return[e("x"),e("y")]}const tM=({current:e})=>e?e.ownerDocument.defaultView:null,DA=(e,t)=>Math.abs(e-t);function uie(e,t){const n=DA(e.x,t.x),r=DA(e.y,t.y);return Math.sqrt(n**2+r**2)}class nM{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=uy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,$=uie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!$)return;const{point:x}=g,{timestamp:A}=br;this.history.push({...x,timestamp:A});const{onStart:w,onMove:C}=this.handlers;b||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=sy(b,this.transformPagePoint),Cn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:$,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=uy(g.type==="pointercancel"?this.lastMoveEventInfo:sy(b,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,w),x&&x(g,w)},!Dx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=wf(t),l=sy(s,this.transformPagePoint),{point:f}=l,{timestamp:h}=br;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,uy(l,this.history)),this.removeListeners=$f(_d(this.contextWindow,"pointermove",this.handlePointerMove),_d(this.contextWindow,"pointerup",this.handlePointerUp),_d(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function sy(e,t){return t?{point:t(e.point)}:e}function $A(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uy({point:e},t){return{point:e,delta:$A(e,rM(t)),offset:$A(e,lie(t)),velocity:cie(t,.1)}}function lie(e){return e[0]}function rM(e){return e[e.length-1]}function cie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Da(t)));)n--;if(!r)return{x:0,y:0};const a=to(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function die(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function EA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function fie(e,{top:t,left:n,bottom:r,right:i}){return{x:EA(e.x,n,i),y:EA(e.y,t,r)}}function CA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function hie(e,t){return{x:CA(e.x,t.x),y:CA(e.y,t.y)}}function pie(e,t){let n=.5;const r=Nr(e),i=Nr(t);return i>r?n=Hd(t.min,t.max-r,e.min):r>i&&(n=Hd(e.min,e.max-i,t.min)),qo(0,1,n)}function mie(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const l1=.35;function gie(e=l1){return e===!1?e=0:e===!0&&(e=l1),{x:wA(e,"left","right"),y:wA(e,"top","bottom")}}function wA(e,t,n){return{min:AA(e,t),max:AA(e,n)}}function AA(e,t){return typeof e=="number"?e:e[t]||0}const vie=new WeakMap;class yie{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Hn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wf(m).point)},o=(m,g)=>{const{drag:b,dragPropagation:$,onDragStart:x}=this.getProps();if(b&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Tne(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ki(w=>{let C=this.getAxisMotionValue(w).get()||0;if(no.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[w];T&&(C=Nr(T)*(parseFloat(C)/100))}}this.originPoint[w]=C}),x&&Cn.postRender(()=>x(m,g)),s1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:$,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if($&&this.currentDirection===null){this.currentDirection=bie(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),A&&A(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>Ki(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new nM(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:tM(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Cn.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ph(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=die(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&_l(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=fie(r.layoutBox,t):this.constraints=!1,this.elastic=gie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=mie(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;Ca(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=xre(r,i.root,this.visualElement.getTransformPagePoint());let o=hie(i.layout.layoutBox,a);if(n){const s=n(vre(o));this.hasMutatedConstraints=!!s,s&&(o=N8(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},f=Ki(h=>{if(!Ph(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(f).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return s1(this.visualElement,t),r.start(Bx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ki(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ki(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ki(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Pn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ki(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=pie({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ki(o=>{if(!Ph(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];s.set(Pn(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;vie.set(this.visualElement,this);const t=this.visualElement.current,n=_d(t,"pointerdown",l=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cn.read(r);const o=Qd(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ki(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=l1,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Ph(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xie extends _s{constructor(t){super(t),this.removeGroupControls=Qi,this.removeListeners=Qi,this.controls=new yie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qi}unmount(){this.removeGroupControls(),this.removeListeners()}}const SA=e=>(t,n)=>{e&&Cn.postRender(()=>e(t,n))};class Die extends _s{constructor(){super(...arguments),this.removePointerDownListener=Qi}onPointerDown(t){this.session=new nM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:SA(t),onStart:SA(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Cn.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=_d(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const od={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=TA(e,t.target.x),r=TA(e,t.target.y);return`${n}% ${r}%`}},$ie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ws.parse(e);if(i.length>5)return r;const a=ws.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const f=Pn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};let ly=!1;class Eie extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Une(Cie),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),ly&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,ly=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Cn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;ly=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function iM(e){const[t,n]=Lne(),r=I.useContext(R9);return io.jsx(Eie,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(L8),isPresent:t,safeToRemove:n})}const Cie={borderRadius:{...od,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:$ie};function wie(e,t,n){const r=xr(e)?e:Pu(e);return r.start(Bx("",r,t,n)),r.animation}const Aie=(e,t)=>e.depth-t.depth;class Sie{constructor(){this.children=[],this.isDirty=!1}add(t){tx(this.children,t),this.isDirty=!0}remove(t){nx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Aie),this.isDirty=!1,this.children.forEach(t)}}function Tie(e,t){const n=oi.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wo(r),e(a-t))};return Cn.setup(r,!0),()=>Wo(r)}const aM=["TopLeft","TopRight","BottomLeft","BottomRight"],Pie=aM.length,PA=e=>typeof e=="string"?parseFloat(e):e,_A=e=>typeof e=="number"||At.test(e);function _ie(e,t,n,r,i,a){i?(e.opacity=Pn(0,n.opacity??1,Bie(r)),e.opacityExit=Pn(t.opacity??1,0,Fie(r))):a&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let o=0;o<Pie;o++){const s=`border${aM[o]}Radius`;let l=BA(t,s),f=BA(n,s);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||_A(l)===_A(f)?(e[s]=Math.max(Pn(PA(l),PA(f),r),0),(no.test(f)||no.test(l))&&(e[s]+="%")):e[s]=f}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function BA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Bie=oM(0,.5,H9),Fie=oM(.5,.95,Qi);function oM(e,t,n){return r=>r<e?0:r>t?1:n(Hd(e,t,r))}function FA(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){FA(e.x,t.x),FA(e.y,t.y)}function kA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function MA(e,t,n,r,i){return e-=t,e=Mp(e,1/n,r),i!==void 0&&(e=Mp(e,1/i,r)),e}function kie(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Pn(a.min,a.max,r);e===a&&(s-=t),e.min=MA(e.min,t,n,s,i),e.max=MA(e.max,t,n,s,i)}function RA(e,t,[n,r,i],a,o){kie(e,t[n],t[r],t[i],t.scale,a,o)}const Mie=["x","scaleX","originX"],Rie=["y","scaleY","originY"];function IA(e,t,n,r){RA(e.x,t,Mie,n?n.x:void 0,r?r.x:void 0),RA(e.y,t,Rie,n?n.y:void 0,r?r.y:void 0)}function OA(e){return e.translate===0&&e.scale===1}function sM(e){return OA(e.x)&&OA(e.y)}function LA(e,t){return e.min===t.min&&e.max===t.max}function Iie(e,t){return LA(e.x,t.x)&&LA(e.y,t.y)}function VA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uM(e,t){return VA(e.x,t.x)&&VA(e.y,t.y)}function NA(e){return Nr(e.x)/Nr(e.y)}function jA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Oie{constructor(){this.members=[]}add(t){tx(this.members,t),t.scheduleRender()}remove(t){if(nx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Lie(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const cy=["","X","Y","Z"],Vie=1e3;let Nie=0;function dy(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=G8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Cn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lM(r)}function cM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Nie++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zie),this.nodes.forEach(Hie),this.nodes.forEach(Gie),this.nodes.forEach(qie)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Sie)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ix),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=A8(o)&&!Mne(o),this.instance=o;const{layoutId:s,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;Cn.read(()=>{m=window.innerWidth}),e(o,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Tie(g,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(qA)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&f&&(s||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||Jie,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),w=!this.targetLayout||!uM(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...yx($,"layout"),onPlay:x,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(h,C)}else m||qA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Yie),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(KA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wie),this.nodes.forEach(jie),this.nodes.forEach(Kie)):this.nodes.forEach(zA),this.clearAllSnapshots();const s=oi.now();br.delta=qo(0,1e3/60,s-br.timestamp),br.timestamp=s,br.isProcessing=!0,J4.update.process(br),J4.preRender.process(br),J4.render.process(br),br.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Uie),this.sharedNodes.forEach(Zie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nr(this.snapshot.measuredBox.x)&&!Nr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Hn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!sM(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;o&&this.instance&&(s||ou(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),eae(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return Hn();const s=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(tae))){const{scroll:h}=this.root;h&&(Bl(s.x,h.offset.x),Bl(s.y,h.offset.y))}return s}removeElementScroll(o){var l;const s=Hn();if(Vi(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Vi(s,o),Bl(s.x,m.offset.x),Bl(s.y,m.offset.y))}return s}applyTransform(o,s=!1){const l=Hn();Vi(l,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!s&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Fl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ou(h.latestValues)&&Fl(l,h.latestValues)}return ou(this.latestValues)&&Fl(l,this.latestValues),l}removeTransform(o){const s=Hn();Vi(s,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!ou(f.latestValues))continue;r1(f.latestValues)&&f.updateSnapshot();const h=Hn(),m=f.measurePageBox();Vi(h,m),IA(s,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ou(this.latestValues)&&IA(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==br.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var g;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=br.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Fd(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Hn(),this.targetWithTransforms=Hn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),sie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vi(this.target,this.layout.layoutBox),K8(this.target,this.targetDelta)):Vi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Fd(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||r1(this.parent.latestValues)||j8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var $;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||($=this.parent)!=null&&$.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===br.timestamp&&(l=!1),l)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Vi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;bre(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Hn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kA(this.prevProjectionDelta.x,this.projectionDelta.x),kA(this.prevProjectionDelta.y,this.projectionDelta.y)),Bd(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!jA(this.projectionDelta.x,this.prevProjectionDelta.x)||!jA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,f=l?l.latestValues:{},h={...this.latestValues},m=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const g=Hn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,x=b!==$,A=this.getStack(),w=!A||A.members.length<=1,C=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(Qie));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const P=T/1e3;UA(m.x,o.x,P),UA(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fd(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xie(this.relativeTarget,this.relativeTargetOrigin,g,P),E&&Iie(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Hn()),Vi(E,this.relativeTarget)),x&&(this.animationValues=h,_ie(h,f,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,f;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(f=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cn.update(()=>{Zh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pu(0)),this.currentAnimation=wie(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),o.onUpdate&&o.onUpdate(h)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:f,latestValues:h}=o;if(!(!s||!l||!f)){if(this!==o&&this.layout&&f&&dM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Hn();const m=Nr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Nr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Vi(s,l),Fl(s,h),Bd(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Oie),this.sharedNodes.get(o).add(s);const f=s.options.initialPromotionConfig;s.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const f={};l.z&&dy("z",o,f,this.animationValues);for(let h=0;h<cy.length;h++)dy(`rotate${cy[h]}`,o,f,this.animationValues),dy(`skew${cy[h]}`,o,f,this.animationValues);o.render();for(const h in f)o.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ou(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=Lie(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),o.transform=m;const{x:g,y:b}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,f.animationValues?o.opacity=f===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const $ in Xd){if(h[$]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:w}=Xd[$],C=m==="none"?h[$]:x(h[$],f);if(A){const E=A.length;for(let T=0;T<E;T++)o[A[T]]=C}else w?this.options.visualElement.renderState.vars[$]=C:o[$]=C}this.options.layoutId&&(o.pointerEvents=f===this?Yh(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(KA),this.root.sharedNodes.clear()}}}function jie(e){e.updateLayout()}function Kie(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(g);g.min=r[m].min,g.max=g.min+b}):dM(a,t.layoutBox,r)&&Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const s=kl();Bd(s,r,t.layoutBox);const l=kl();o?Bd(l,e.applyTransform(i,!0),t.measuredBox):Bd(l,r,t.layoutBox);const f=!sM(s);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Hn();Fd($,t.layoutBox,g.layoutBox);const x=Hn();Fd(x,r,b.layoutBox),uM($,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zie(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function qie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Uie(e){e.clearSnapshot()}function KA(e){e.clearMeasurements()}function zA(e){e.isLayoutDirty=!1}function Wie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Hie(e){e.resolveTargetDelta()}function Gie(e){e.calcProjection()}function Yie(e){e.resetSkewAndRotation()}function Zie(e){e.removeLeadSnapshot()}function UA(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function WA(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function Xie(e,t,n,r){WA(e.x,t.x,n.x,r),WA(e.y,t.y,n.y,r)}function Qie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jie={duration:.45,ease:[.4,0,.1,1]},HA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),GA=HA("applewebkit/")&&!HA("chrome/")?Math.round:Qi;function YA(e){e.min=GA(e.min),e.max=GA(e.max)}function eae(e){YA(e.x),YA(e.y)}function dM(e,t,n){return e==="position"||e==="preserve-aspect"&&!oie(NA(t),NA(n),.2)}function tae(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const nae=cM({attachResizeListener:(e,t)=>Qd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fy={current:void 0},fM=cM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fy.current){const e=new nae({});e.mount(window),e.setOptions({layoutScroll:!0}),fy.current=e}return fy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rae={pan:{Feature:Die},drag:{Feature:xie,ProjectionNode:fM,MeasureLayout:iM}};function ZA(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Cn.postRender(()=>a(t,wf(t)))}let iae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Pne(t,(n,r)=>(ZA(this.node,r,"Start"),i=>ZA(this.node,i,"End"))))}unmount(){}},aae=class extends _s{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$f(Qd(this.node.current,"focus",()=>this.onFocus()),Qd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function XA(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Cn.postRender(()=>a(t,wf(t)))}let oae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=kne(t,(n,r)=>(XA(this.node,r,"Start"),(i,{success:a})=>XA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const c1=new WeakMap,hy=new WeakMap,sae=e=>{const t=c1.get(e.target);t&&t(e)},uae=e=>{e.forEach(sae)};function lae({root:e,...t}){const n=e||document;hy.has(n)||hy.set(n,{});const r=hy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(uae,{root:e,...t})),r[i]}function cae(e,t,n){const r=lae(t);return c1.set(e,n),r.observe(e),()=>{c1.delete(e),r.unobserve(e)}}const dae={some:0,all:1};let fae=class extends _s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:dae[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return cae(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(hae(t,n))&&this.startObserver()}unmount(){}};function hae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const pae={inView:{Feature:fae},tap:{Feature:oae},focus:{Feature:aae},hover:{Feature:iae}},mae={layout:{ProjectionNode:fM,MeasureLayout:iM}},gae={...eie,...pae,...rae,...mae},hM=gre(gae,Pre);function pM(e){const t=Df(()=>Pu(e)),{isStatic:n}=I.useContext($x);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function mM(e,t){const n=pM(t()),r=()=>n.set(t());return r(),I9(()=>{const i=()=>Cn.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),Wo(r)}}),n}function vae(e){Pd.current=[],e();const t=mM(Pd.current,e);return Pd.current=void 0,t}function yae(e,t,n,r){if(typeof e=="function")return vae(e);const i=typeof t=="function"?t:Rne(t,n,r);return Array.isArray(e)?QA(e,i):QA([e],([a])=>i(a))}function QA(e,t){const n=Df(()=>[]);return mM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const gM=I.createContext(null);function bae(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,o=e[i+a];if(!o)return e;const s=e[i],l=o.layout,f=Pn(l.min,l.max,.5);return a===1&&s.layout.max+n>f||a===-1&&s.layout.min+n<f?Nee(e,i,i+a):e}function xae({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const s=Df(()=>hM[t]),l=[],f=I.useRef(!1);Ca(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Eae)},updateOrder:(m,g,b)=>{if(f.current)return;const $=bae(l,m,g,b);l!==$&&(f.current=!0,r($.map($ae).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{f.current=!1}),io.jsx(s,{...a,ref:o,ignoreStrict:!0,children:io.jsx(gM.Provider,{value:h,children:e})})}const Dae=I.forwardRef(xae);function $ae(e){return e.value}function Eae(e,t){return e.layout.min-t.layout.min}function JA(e,t=0){return xr(e)?e:pM(t)}function Cae({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},s){const l=Df(()=>hM[r]),f=I.useContext(gM),h={x:JA(t.x),y:JA(t.y)},m=yae([h.x,h.y],([x,A])=>x||A?1:"unset");Ca(!!f,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:$}=f;return io.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:w}=A;w[g]&&$(n,h[g].get(),w[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:s,ignoreStrict:!0,children:e})}const wae=I.forwardRef(Cae);var Xh={exports:{}},Aae=Xh.exports,eS;function Sae(){return eS||(eS=1,function(e,t){(function(n,r){e.exports=r()})(Aae,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,x){var A=x&&x.toUpperCase();return $||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,C,E){return C||E.slice(1)})})}(l,f===void 0?{}:f);return s.call(this,h)}}})}(Xh)),Xh.exports}var Tae=Sae();const Pae=ar(Tae);var py,tS;function _ae(){if(tS)return py;tS=1;var e=FT(),t=kT(),n=ab(),r=Aa(),i=om(),a=im(),o=_T(),s=am(),l="[object Map]",f="[object Set]",h=Object.prototype,m=h.hasOwnProperty;function g(b){if(b==null)return!0;if(i(b)&&(r(b)||typeof b=="string"||typeof b.splice=="function"||a(b)||s(b)||n(b)))return!b.length;var $=t(b);if($==l||$==f)return!b.size;if(o(b))return!e(b).length;for(var x in b)if(m.call(b,x))return!1;return!0}return py=g,py}var Bae=_ae();const Fae=ar(Bae),Fx=Rae();function yn(e,...t){if(!Fx)return;const n=Mae(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function kae(e,...t){Fx&&console.warn(e,...t)}function Mae(e,...t){return e.replace(/%[sfdO]/g,n=>{const r=t.shift();return n==="%O"&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}function Rae(){try{const e="nuqs-localStorage-test";if(typeof localStorage>"u")return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}const Iae={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function Lu(e){return`[nuqs] ${Iae[e]}
84
- See https://nuqs.dev/NUQS-${e}`}function Oae(e){if(e.size===0)return"";const t=[];for(const[r,i]of e.entries()){const a=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${a}=${Lae(i)}`)}const n="?"+t.join("&");return Nae(n),n}function Lae(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}const Vae=2e3;function Nae(e){if(process.env.NODE_ENV==="production"||typeof location>"u")return;const t=new URL(location.href);t.search=e,t.href.length>Vae&&console.warn(Lu(414))}const _u=I.createContext({useAdapter(){throw new Error(Lu(404))}});_u.displayName="NuqsAdapterContext";Fx&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==_u&&console.error(Lu(303)),window.__NuqsAdapterContext=_u);function jae(e){return({children:t,defaultOptions:n,processUrlSearchParams:r,...i})=>I.createElement(_u.Provider,{...i,value:{useAdapter:e,defaultOptions:n,processUrlSearchParams:r}},t)}function Kae(e){const t=I.useContext(_u);if(!("useAdapter"in t))throw new Error(Lu(404));return t.useAdapter(e)}const zae=()=>I.useContext(_u).defaultOptions,qae=()=>I.useContext(_u).processUrlSearchParams;function Uae(){var e;if(typeof window>"u"||!window.GestureEvent)return 50;try{const t=(e=navigator.userAgent)==null?void 0:e.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}function Wae(e){return{method:"throttle",timeMs:e}}const kd=Wae(Uae());function Hae(e){return e===null||Array.isArray(e)&&e.length===0}function Gae(e,t,n){if(typeof e=="string")n.set(t,e);else{n.delete(t);for(const r of e)n.append(t,r);n.has(t)||n.set(t,"")}return n}function kx(){const e=new Map;return{on(t,n){const r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){const r=e.get(t);r&&e.set(t,r.filter(i=>i!==n))},emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))}}}function d1(e,t,n){function r(){e(),n.removeEventListener("abort",a)}const i=setTimeout(r,t);function a(){clearTimeout(i),n.removeEventListener("abort",a)}n.addEventListener("abort",a)}function f1(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((r,i)=>{t=r,n=i}),resolve:t,reject:n}}function Yae(e,t){let n=t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(!i)continue;const a=n;n=()=>i(a)}n()}function h1(){return new URLSearchParams(location.search)}var vM=class{constructor(){Xn(this,"updateMap",new Map);Xn(this,"options",{history:"replace",scroll:!1,shallow:!0});Xn(this,"timeMs",kd.timeMs);Xn(this,"transitions",new Set);Xn(this,"resolvers",null);Xn(this,"controller",null);Xn(this,"lastFlushedAt",0);Xn(this,"resetQueueOnNextPush",!1)}push({key:e,query:t,options:n},r=kd.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),yn("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),n.history==="push"&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),n.shallow===!1&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h1}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h1,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return yn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=f1();const i=()=>{this.lastFlushedAt=performance.now();const[o,s]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);s===null?(this.resolvers.resolve(o),this.resetQueueOnNextPush=!0):this.resolvers.reject(o),this.resolvers=null};return d1(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);yn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():d1(i,l,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){var e,t;return(e=this.controller)==null||e.abort(),this.controller=new AbortController,(t=this.resolvers)==null||t.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return yn("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=kd.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:n,getSearchParamsSnapshot:r}=e;let i=r();if(yn("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,i.toString()),this.updateMap.size===0)return[i,null];const a=Array.from(this.updateMap.entries()),o={...this.options},s=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),yn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=Gae(f,l,i);t&&(i=t(i));try{return Yae(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Lu(429),a.map(([f])=>f).join(),l),[i,l]}}};const Md=new vM;function Zae(e,t,n){const r=I.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=I.useRef(null);i.current===null&&(i.current=r());const a=I.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return I.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var Xae=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",f1());Xn(this,"controller",new AbortController);Xn(this,"queuedValue");this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,d1(()=>{const n=this.resolvers;try{yn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);yn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=f1(),r.then(i=>n.resolve(i)).catch(i=>n.reject(i))}catch(r){this.queuedValue=void 0,n.reject(r)}},t,this.controller.signal),this.resolvers.promise}},Qae=class{constructor(e=new vM){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",kx());this.throttleQueue=e}useQueuedQueries(e){return Zae(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??h1;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){yn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new Xae(o=>(this.throttleQueue.push(o),this.throttleQueue.flush(n).finally(()=>{var s;((s=this.queues.get(o.key))==null?void 0:s.queuedValue)===void 0&&(yn("[nuqs dqc] Cleaning up empty queue for `%s`",o.key),this.queues.delete(o.key)),this.queuedQuerySync.emit(o.key)})));this.queues.set(r,a)}yn("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(r).push(e,t);return this.queuedQuerySync.emit(r),i}abort(e){var n;const t=this.queues.get(e);return t?(yn("[nuqs dqc] Aborting debounce queue %s=%s",e,(n=t.queuedValue)==null?void 0:n.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),r=>(r.then(t.resolvers.resolve,t.resolvers.reject),r)):r=>r}abortAll(){var e;for(const[t,n]of this.queues.entries())yn("[nuqs dqc] Aborting debounce queue %s=%s",t,(e=n.queuedValue)==null?void 0:e.query),n.abort(),n.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(t);this.queues.clear()}getQueuedQuery(e){var n,r;const t=(r=(n=this.queues.get(e))==null?void 0:n.queuedValue)==null?void 0:r.query;return t!==void 0?t:this.throttleQueue.getQueuedQuery(e)}};const Rd=new Qae(Md);function yM(e,t){return e===t?!0:e===null||t===null||typeof e=="string"||typeof t=="string"||e.length!==t.length?!1:e.every((n,r)=>n===t[r])}function bM(e,t,n){try{return e(t)}catch(r){return kae("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,r,n),null}}function Xo(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),bM(e.parse,r)}return{type:"single",eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}const Jae=Xo({parse:e=>e,serialize:String});Xo({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});Xo({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)});Xo({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(t.length&1?"0":"")+t}});Xo({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String});Xo({parse:e=>e==="true",serialize:String});function Mx(e,t){return e.valueOf()===t.valueOf()}Xo({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:Mx});Xo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:Mx});Xo({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:Mx});const my=kx(),eoe={};function xM(e,t={}){const n=I.useId(),r=zae(),i=qae(),{history:a="replace",scroll:o=(r==null?void 0:r.scroll)??!1,shallow:s=(r==null?void 0:r.shallow)??!0,throttleMs:l=kd.timeMs,limitUrlUpdates:f=r==null?void 0:r.limitUrlUpdates,clearOnDefault:h=(r==null?void 0:r.clearOnDefault)??!0,startTransition:m,urlKeys:g=eoe}=t,b=Object.keys(e).join(","),$=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=Kae(Object.values($)),A=x.searchParams,w=I.useRef({}),C=I.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=Rd.useQueuedQueries(Object.values($)),[T,P]=I.useState(()=>{const te=A??new URLSearchParams;return gy(e,g,te,E).state}),F=I.useRef(T);if(yn("[nuq+ %s `%s`] render - state: %O, iSP: %s",n,b,T,A),Object.keys(w.current).join("&")!==Object.values($).join("&")){const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te)),w.current=Object.fromEntries(Object.entries($).map(([ae,O])=>{const Ee=e[ae];return[O,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(O):(A==null?void 0:A.get(O))??null]}))}I.useEffect(()=>{const{state:te,hasChanged:se}=gy(e,g,A,E,w.current,F.current);se&&(yn("[nuq+ %s `%s`] State changed: %O",n,b,{state:te,initialSearchParams:A,queuedQueries:E,queryRef:w.current,stateRef:F.current}),F.current=te,P(te))},[Object.values($).map(te=>`${te}=${A==null?void 0:A.getAll(te)}`).join("&"),JSON.stringify(E)]),I.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:O,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=O??z??null,R=be[ae]??z??null;return Object.is(R,V)?(yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,O,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,yn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,O,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),my.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];yn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),my.off(ae,te[se])}}},[b,$]);const q=I.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),O=typeof te=="function"?te(nS(F.current,C))??ae:te??ae;yn("[nuq+ %s `%s`] setState: %O",n,b,O);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(O)){const Be=e[Se],Ge=$[Se];if(!Be)continue;(se.clearOnDefault??Be.clearOnDefault??h)&&_e!==null&&Be.defaultValue!==void 0&&(Be.eq??((qe,ke)=>qe===ke))(_e,Be.defaultValue)&&(_e=null);const Xe=_e===null?null:(Be.serialize??String)(_e);my.emit(Ge,{state:_e,query:Xe});const Ne={key:Ge,query:Xe,options:{history:se.history??Be.history??a,shallow:se.shallow??Be.shallow??s,scroll:se.scroll??Be.scroll??o,startTransition:se.startTransition??Be.startTransition??m}};if(((R=se==null?void 0:se.limitUrlUpdates)==null?void 0:R.method)==="debounce"||(f==null?void 0:f.method)==="debounce"||((K=Be.limitUrlUpdates)==null?void 0:K.method)==="debounce"){Ne.options.shallow===!0&&console.warn(Lu(422));const qe=((fe=se==null?void 0:se.limitUrlUpdates)==null?void 0:fe.timeMs)??(f==null?void 0:f.timeMs)??((M=Be.limitUrlUpdates)==null?void 0:M.timeMs)??kd.timeMs,ke=Rd.push(Ne,qe,x);be<qe&&(Ee=ke,be=qe)}else{const qe=((oe=se==null?void 0:se.limitUrlUpdates)==null?void 0:oe.timeMs)??((le=Be==null?void 0:Be.limitUrlUpdates)==null?void 0:le.timeMs)??(f==null?void 0:f.timeMs)??se.throttleMs??Be.throttleMs??l;G.push(Rd.abort(Ge)),Md.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?Md.flush(x,i):Md.getPendingPromise(x));return Ee??V},[b,a,s,o,l,f==null?void 0:f.method,f==null?void 0:f.timeMs,m,$,x.updateUrl,x.getSearchParamsSnapshot,x.rateLimitFactor,i,C]);return[I.useMemo(()=>nS(T,C),[T,C]),q]}function gy(e,t,n,r,i,a){let o=!1;const s=Object.entries(e).reduce((l,[f,h])=>{const m=(t==null?void 0:t[f])??f,g=r[m],b=h.type==="multi"?[]:null,$=g===void 0?(h.type==="multi"?n==null?void 0:n.getAll(m):n==null?void 0:n.get(m))??b:g;return i&&a&&yM(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(Hae($)?null:bM(h.parse,$,m))??null,i&&(i[m]=$),l)},{});if(!o){const l=Object.keys(e),f=Object.keys(a??{});o=l.length!==f.length||l.some(h=>!f.includes(h))}return{state:s,hasChanged:o}}function nS(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function toe(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=xM({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=I.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}var vy,rS;function noe(){if(rS)return vy;rS=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return vy=n,vy}var yy,iS;function roe(){if(iS)return yy;iS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yy=t,yy}var by,aS;function ioe(){if(aS)return by;aS=1;var e=roe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return by=n,by}var xy,oS;function aoe(){if(oS)return xy;oS=1;var e=ioe(),t=Ru(),n=Wp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=a.test(f);return m||o.test(f)?s(f.slice(2),m?2:8):i.test(f)?r:+f}return xy=l,xy}var Dy,sS;function ooe(){if(sS)return Dy;sS=1;var e=aoe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return Dy=r,Dy}var $y,uS;function soe(){if(uS)return $y;uS=1;var e=noe(),t=NT(),n=ooe(),r=parseFloat,i=Math.min,a=Math.random;function o(s,l,f){if(f&&typeof f!="boolean"&&t(s,l,f)&&(l=f=void 0),f===void 0&&(typeof l=="boolean"?(f=l,l=void 0):typeof s=="boolean"&&(f=s,s=void 0)),s===void 0&&l===void 0?(s=0,l=1):(s=n(s),l===void 0?(l=s,s=0):l=n(l)),s>l){var h=s;s=l,l=h}if(f||s%1||l%1){var m=a();return i(s+m*(l-s+r("1e-"+((m+"").length-1))),l)}return e(s,l)}return $y=o,$y}var uoe=soe();const loe=ar(uoe);var Ey,lS;function coe(){if(lS)return Ey;lS=1;var e=B9();function t(n){return e(n)&&n!=+n}return Ey=t,Ey}var doe=coe();const foe=ar(doe),cS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},DM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?cS(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>cS(i,n,e))}},hoe=(e,t)=>{t.shouldUseNativeValidation&&DM(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(poe(t.names||Object.keys(e),r)){const o=Object.assign({},it(n,r));nn(o,"root",a),nn(n,r,o)}else nn(n,r,a)}return n},poe=(e,t)=>{const n=dS(t);return e.some(r=>dS(r).match(`^${n}\\.\\d+`))};function dS(e){return e.replace(/\]|\[/g,"")}function moe(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return a.shouldUseNativeValidation&&DM({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return s(f)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:hoe((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),l){var m=f[h.path].types,g=m&&m[h.type];f[h.path]=fP(h.path,l,f,h.type,g?[].concat(g,h.message):h.message)}return f},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}var $d={exports:{}},goe=$d.exports,fS;function voe(){return fS||(fS=1,function(e,t){(function(n,r){r(t,de.default)})(goe,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var a=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},s={exports:{}};(function(z,G){typeof document<"u"&&typeof navigator<"u"&&function(V,R){z.exports=R()}(o,function(){var V="http://www.w3.org/2000/svg",R="",K=!1,fe=-999999,M=function(p){K=!!p},oe=function(){return K},le=function(p){R=p},Se=function(){return R};function _e(c){return document.createElement(c)}function Be(c,p){var v,D=c.length,_;for(v=0;v<D;v+=1){_=c[v].prototype;for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(p.prototype[B]=_[B])}}function Ge(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].pause()},resume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].resume()},setRate:function(v){var D,_=this.audios.length;for(D=0;D<_;D+=1)this.audios[D].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ne=function(){function c(v,D){var _=0,B=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(_=0;_<D;_+=1)B.push(U);return B}function p(v,D){return v==="float32"?new Float32Array(D):v==="int16"?new Int16Array(D):v==="uint8c"?new Uint8ClampedArray(D):c(v,D)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function qe(c){return Array.apply(null,{length:c})}var ke=!0,je=null,Te="",Ye=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,xt=Math.floor,_t=Math.min,Wr=150,Jt=Math.PI/180,xe=.5519;function Ae(c,p,v,D){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=D<0?-1:1}function Fe(c,p){this.type=c,this.direction=p<0?-1:1}function Qe(c,p,v,D){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=D<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var Dt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function bn(c,p,v){var D,_,B,U,ge,J,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,J=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=J;break;case 1:D=De,_=v,B=J;break;case 2:D=J,_=v,B=Ce;break;case 3:D=J,_=De,B=v;break;case 4:D=Ce,_=J,B=v;break;case 5:D=v,_=J,B=De;break}return[D,_,B]}function Dr(c,p,v){var D=Math.max(c,p,v),_=Math.min(c,p,v),B=D-_,U,ge=D===0?0:B/D,J=D/255;switch(D){case _:U=0;break;case c:U=p-v+B*(p<v?6:0),U/=6*B;break;case p:U=v-c+B*2,U/=6*B;break;case v:U=c-p+B*4,U/=6*B;break}return[U,ge,J]}function zt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),bn(v[0],v[1],v[2])}function Pt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),bn(v[0],v[1],v[2])}function It(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),bn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(D,_,B){return D<0&&(D=0),_<0&&(_=0),B<0&&(B=0),"#"+c[D]+c[_]+c[B]}})();var qt=function(p){ke=!!p},pr=function(){return ke},Hr=function(p){je=p},li=function(){return je},Br=function(p){Wr=p},Ba=function(){return Wr},Bs=function(p){Te=p};function bt(c){return document.createElementNS(V,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var uo=function(){var c=1,p=[],v,D,_={onmessage:function(){},postMessage:function(ee){v({data:ee})}},B={postMessage:function(ee){_.onmessage({data:ee})}};function U(k){if(window.Worker&&window.Blob&&oe()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",k.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=k,_}function ge(){D||(D=U(function(ee){function Y(){function he(Le,$e){var ce,Q,ve=Le.length,Ke,Ie,lt,St;for(Q=0;Q<ve;Q+=1)if(ce=Le[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Et=ce.masksProperties;for(Ie=Et.length,Ke=0;Ke<Ie;Ke+=1)if(Et[Ke].pt.k.i)H(Et[Ke].pt.k);else for(St=Et[Ke].pt.k.length,lt=0;lt<St;lt+=1)Et[Ke].pt.k[lt].s&&H(Et[Ke].pt.k[lt].s[0]),Et[Ke].pt.k[lt].e&&H(Et[Ke].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),he(ce.layers,$e)):ce.ty===4?j(ce.shapes):ce.ty===5&&st(ce)}}function W(Le,$e){if(Le){var ce=0,Q=Le.length;for(ce=0;ce<Q;ce+=1)Le[ce].t===1&&(Le[ce].data.layers=L(Le[ce].data.refId,$e),he(Le[ce].data.layers,$e))}}function Z(Le,$e){for(var ce=0,Q=$e.length;ce<Q;){if($e[ce].id===Le)return $e[ce];ce+=1}return null}function L(Le,$e){var ce=Z(Le,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function j(Le){var $e,ce=Le.length,Q,ve;for($e=ce-1;$e>=0;$e-=1)if(Le[$e].ty==="sh")if(Le[$e].ks.k.i)H(Le[$e].ks.k);else for(ve=Le[$e].ks.k.length,Q=0;Q<ve;Q+=1)Le[$e].ks.k[Q].s&&H(Le[$e].ks.k[Q].s[0]),Le[$e].ks.k[Q].e&&H(Le[$e].ks.k[Q].e[0]);else Le[$e].ty==="gr"&&j(Le[$e].it)}function H(Le){var $e,ce=Le.i.length;for($e=0;$e<ce;$e+=1)Le.i[$e][0]+=Le.v[$e][0],Le.i[$e][1]+=Le.v[$e][1],Le.o[$e][0]+=Le.v[$e][0],Le.o[$e][1]+=Le.v[$e][1]}function ne(Le,$e){var ce=$e?$e.split("."):[100,100,100];return Le[0]>ce[0]?!0:ce[0]>Le[0]?!1:Le[1]>ce[1]?!0:ce[1]>Le[1]?!1:Le[2]>ce[2]?!0:ce[2]>Le[2]?!1:null}var ue=function(){var Le=[4,4,14];function $e(Q){var ve=Q.t.d;Q.t.d={k:[{s:ve,t:0}]}}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,Q=$e.chars.length;for(ce=0;ce<Q;ce+=1){var ve=$e.chars[ce];ve.data&&ve.data.shapes&&(j(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$e.chars[ce].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Le=[5,7,15];function $e(Q){var ve=Q.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(Q[ve].ty==="gr")$e(Q[ve].it);else if(Q[ve].ty==="fl"||Q[ve].ty==="st")if(Q[ve].c.k&&Q[ve].c.k[0].i)for(lt=Q[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].c.k[Ie].s&&(Q[ve].c.k[Ie].s[0]/=255,Q[ve].c.k[Ie].s[1]/=255,Q[ve].c.k[Ie].s[2]/=255,Q[ve].c.k[Ie].s[3]/=255),Q[ve].c.k[Ie].e&&(Q[ve].c.k[Ie].e[0]/=255,Q[ve].c.k[Ie].e[1]/=255,Q[ve].c.k[Ie].e[2]/=255,Q[ve].c.k[Ie].e[3]/=255);else Q[ve].c.k[0]/=255,Q[ve].c.k[1]/=255,Q[ve].c.k[2]/=255,Q[ve].c.k[3]/=255}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===4&&$e(Q[ve].shapes)}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(Q[ve].ty==="sh")if(Q[ve].ks.k.i)Q[ve].ks.k.c=Q[ve].closed;else for(lt=Q[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].ks.k[Ie].s&&(Q[ve].ks.k[Ie].s[0].c=Q[ve].closed),Q[ve].ks.k[Ie].e&&(Q[ve].ks.k[Ie].e[0].c=Q[ve].closed);else Q[ve].ty==="gr"&&$e(Q[ve].it)}function ce(Q){var ve,Ke,Ie=Q.length,lt,St,Et,Dn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=Q[Ke],ve.hasMask){var Ut=ve.masksProperties;for(St=Ut.length,lt=0;lt<St;lt+=1)if(Ut[lt].pt.k.i)Ut[lt].pt.k.c=Ut[lt].cl;else for(Dn=Ut[lt].pt.k.length,Et=0;Et<Dn;Et+=1)Ut[lt].pt.k[Et].s&&(Ut[lt].pt.k[Et].s[0].c=Ut[lt].cl),Ut[lt].pt.k[Et].e&&(Ut[lt].pt.k[Et].e[0].c=Ut[lt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}();function Ve(Le){Le.__complete||(nt(Le),ue(Le),me(Le),Oe(Le),tt(Le),he(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function st(Le){Le.t.a.length===0&&"m"in Le.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=me,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=he,ct}if(B.dataManager||(B.dataManager=Y()),B.assetLoader||(B.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,j,H){var ne,ue=new XMLHttpRequest;try{ue.responseType="json"}catch{}ue.onreadystatechange=function(){if(ue.readyState===4)if(ue.status===200)ne=he(ue),j(ne);else try{ne=he(ue),j(ne)}catch(me){H&&H(me)}};try{ue.open(["G","E","T"].join(""),Z,!0)}catch{ue.open(["G","E","T"].join(""),L+"/"+Z,!0)}ue.send()}return{load:W}}()),ee.data.type==="loadAnimation")B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.dataManager.completeData(he),B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;B.dataManager.completeData(pe),B.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})})}),D.onmessage=function(k){var ee=k.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function J(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadAnimation",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadData",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Re(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Sc=function(){var c=function(){var W=_e("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function D(W,Z,L){var j="";if(W.e)j=W.p;else if(Z){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Z+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function _(W){var Z=0,L=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function B(W){var Z=D(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function U(W){var Z=D(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var j={img:L,assetData:W};return j}function ge(W){var Z={assetData:W},L=D(W,this.assetsPath,this.path);return uo.loadData(L,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function J(W,Z){this.imagesLoadedCb=Z;var L,j=W.length;for(L=0;L<j;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function De(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function k(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:J,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Nu(){}Nu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var D=this._cbs[p],_=0;_<D.length;_+=1)D[_](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var D=0,_=this._cbs[p].length;D<_;)this._cbs[p][D]===v&&(this._cbs[p].splice(D,1),D-=1,_-=1),D+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Tc=function(){function c(p){for(var v=p.split(`\r
83
+ `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(se+1))}w.textContent=F,n.highlightElement(w)},function(F){A.setAttribute(s,h),w.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var w=(A||document).querySelectorAll(m),C=0,E;E=w[C++];)n.highlightElement(E)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(ey)),ey.exports}var ute=ste();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var o=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function s(g,b){var $=getComputedStyle(g),x=getComputedStyle(b);function A(w){return+w.substr(0,w.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,x){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var A=$.replace(/\s+/g,"").split(",").filter(Boolean),w=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,E=C(getComputedStyle(b).lineHeight),T=Prism.util.isActive(b,e),P=b.querySelector("code"),F=T?b:P||b,q=[],te=P.textContent.match(n),se=te?te.length+1:1,ae=!P||F==P?0:s(b,P);A.forEach(function(be){var z=be.split("-"),G=+z[0],V=+z[1]||G;if(V=Math.min(se+w,V),!(V<G)){var R=b.querySelector('.line-highlight[data-range="'+be+'"]')||document.createElement("div");if(q.push(function(){R.setAttribute("aria-hidden","true"),R.setAttribute("data-range",be),R.className=(x||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var K=Prism.plugins.lineNumbers.getLine(b,G),fe=Prism.plugins.lineNumbers.getLine(b,V);if(K){var M=K.offsetTop+ae+"px";q.push(function(){R.style.top=M})}if(fe){var oe=fe.offsetTop-K.offsetTop+fe.offsetHeight+"px";q.push(function(){R.style.height=oe})}}else q.push(function(){R.setAttribute("data-start",String(G)),V>G&&R.setAttribute("data-end",String(V)),R.style.top=(G-w-1)*E+ae+"px",R.textContent=new Array(V-G+2).join(`
84
+ `)});q.push(function(){R.style.width=b.scrollWidth+"px"}),q.push(function(){F.appendChild(R)})}});var O=b.id;if(T&&Prism.util.isActive(b,t)&&O){i(b,t)||q.push(function(){b.classList.add(t)});var Ee=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(be,z){var G=z+Ee;be.onclick=function(){var V=O+"."+G;f=!1,location.hash=V,setTimeout(function(){f=!0},1)}})}return function(){q.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(w){w.parentNode.removeChild(w)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),x=document.getElementById($);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(x){$+=x.textContent.length,x.parentNode.removeChild(x)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var w=Prism.plugins.lineHighlight.highlightLines($);w(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const V9=I.createContext({});function Df(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const nx=typeof window<"u",N9=nx?I.useLayoutEffect:I.useEffect,rx=I.createContext(null);function ix(e,t){e.indexOf(t)===-1&&e.push(t)}function ax(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function lte([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const qo=(e,t,n)=>n>t?t:n<e?e:n;function W3(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pc=()=>{},Ca=()=>{};process.env.NODE_ENV!=="production"&&(pc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(W3(t,n))},Ca=(e,t,n)=>{if(!e)throw new Error(W3(t,n))});const Uo={},j9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function K9(e){return typeof e=="object"&&e!==null}const z9=e=>/^0[^.\s]+$/u.test(e);function ox(e){let t;return()=>(t===void 0&&(t=e()),t)}const Qi=e=>e,cte=(e,t)=>n=>t(e(n)),$f=(...e)=>e.reduce(cte),Hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let sx=class{constructor(){this.subscriptions=[]}add(t){return ix(this.subscriptions,t),()=>ax(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Da=e=>e*1e3,to=e=>e/1e3;function q9(e,t){return t?e*(1e3/t):0}const Nw=new Set;function ux(e,t,n){e||Nw.has(t)||(console.warn(W3(t,n)),Nw.add(t))}const U9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dte=1e-7,fte=12;function hte(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=U9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>dte&&++s<fte);return o}function Ef(e,t,n,r){if(e===t&&n===r)return Qi;const i=a=>hte(a,0,1,e,n);return a=>a===0||a===1?a:U9(i(a),t,r)}const W9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,H9=e=>t=>1-e(1-t),G9=Ef(.33,1.53,.69,.99),lx=H9(G9),Y9=W9(lx),Z9=e=>(e*=2)<1?.5*lx(e):.5*(2-Math.pow(2,-10*(e-1))),cx=e=>1-Math.sin(Math.acos(e)),X9=H9(cx),Q9=W9(cx),pte=Ef(.42,0,1,1),mte=Ef(0,0,.58,1),J9=Ef(.42,0,.58,1),gte=e=>Array.isArray(e)&&typeof e[0]!="number",e8=e=>Array.isArray(e)&&typeof e[0]=="number",jw={linear:Qi,easeIn:pte,easeInOut:J9,easeOut:mte,circIn:cx,circInOut:Q9,circOut:X9,backIn:lx,backInOut:Y9,backOut:G9,anticipate:Z9},vte=e=>typeof e=="string",Kw=e=>{if(e8(e)){Ca(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Ef(t,n,r,i)}else if(vte(e))return Ca(jw[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),jw[e];return e},Sh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yte(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(f.schedule(h),e()),h(s)}const f={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(s=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(h))}};return f}const bte=40;function t8(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Sh.reduce((E,T)=>(E[T]=yte(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Uo.useManualTiming?i.timestamp:performance.now();n=!1,Uo.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,bte),1)),i.timestamp=E,i.isProcessing=!0,s.process(i),l.process(i),f.process(i),h.process(i),m.process(i),g.process(i),b.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Sh.reduce((E,T)=>{const P=o[T];return E[T]=(F,q=!1,te=!1)=>(n||A(),P.schedule(F,q,te)),E},{}),cancel:E=>{for(let T=0;T<Sh.length;T++)o[Sh[T]].cancel(E)},state:i,steps:o}}const{schedule:Cn,cancel:Wo,state:br,steps:ty}=t8(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qi,!0);let Hh;function xte(){Hh=void 0}const oi={now:()=>(Hh===void 0&&oi.set(br.isProcessing||Uo.useManualTiming?br.timestamp:performance.now()),Hh),set:e=>{Hh=e,queueMicrotask(xte)}},n8=e=>t=>typeof t=="string"&&t.startsWith(e),dx=n8("--"),Dte=n8("var(--"),fx=e=>Dte(e)?$te.test(e.split("/*")[0].trim()):!1,$te=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gd={...mc,transform:e=>qo(0,1,e)},Th={...mc,default:1},Bd=e=>Math.round(e*1e5)/1e5,hx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ete(e){return e==null}const Cte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,px=(e,t)=>n=>!!(typeof n=="string"&&Cte.test(n)&&n.startsWith(e)||t&&!Ete(n)&&Object.prototype.hasOwnProperty.call(n,t)),r8=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(hx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},wte=e=>qo(0,255,e),ny={...mc,transform:e=>Math.round(wte(e))},hu={test:px("rgb","red"),parse:r8("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ny.transform(e)+", "+ny.transform(t)+", "+ny.transform(n)+", "+Bd(Gd.transform(r))+")"};function Ate(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const H3={test:px("#"),parse:Ate,transform:hu.transform},Cf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Cf("deg"),no=Cf("%"),At=Cf("px"),Ste=Cf("vh"),Tte=Cf("vw"),zw={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},Tl={test:px("hsl","hue"),parse:r8("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Bd(t))+", "+no.transform(Bd(n))+", "+Bd(Gd.transform(r))+")"},Jn={test:e=>hu.test(e)||H3.test(e)||Tl.test(e),parse:e=>hu.test(e)?hu.parse(e):Tl.test(e)?Tl.parse(e):H3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hu.transform(e):Tl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},Pte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _te(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hx))==null?void 0:t.length)||0)+(((n=e.match(Pte))==null?void 0:n.length)||0)>0}const i8="number",a8="color",Bte="var",Fte="var(",qw="${}",kte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Yd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(kte,l=>(Jn.test(l)?(r.color.push(a),i.push(a8),n.push(Jn.parse(l))):l.startsWith(Fte)?(r.var.push(a),i.push(Bte),n.push(l)):(r.number.push(a),i.push(i8),n.push(parseFloat(l))),++a,qw)).split(qw);return{values:n,split:s,indexes:r,types:i}}function o8(e){return Yd(e).values}function s8(e){const{split:t,types:n}=Yd(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const s=n[o];s===i8?a+=Bd(i[o]):s===a8?a+=Jn.transform(i[o]):a+=i[o]}return a}}const Mte=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function Rte(e){const t=o8(e);return s8(e)(t.map(Mte))}const ws={test:_te,parse:o8,createTransformer:s8,getAnimatableNone:Rte};function ry(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ite({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=ry(l,s,e+1/3),a=ry(l,s,e),o=ry(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function _p(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,iy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ote=[H3,hu,Tl],Lte=e=>Ote.find(t=>t.test(e));function Uw(e){const t=Lte(e);if(pc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Tl&&(n=Ite(n)),n}const Ww=(e,t)=>{const n=Uw(e),r=Uw(t);if(!n||!r)return _p(e,t);const i={...n};return a=>(i.red=iy(n.red,r.red,a),i.green=iy(n.green,r.green,a),i.blue=iy(n.blue,r.blue,a),i.alpha=Pn(n.alpha,r.alpha,a),hu.transform(i))},G3=new Set(["none","hidden"]);function Vte(e,t){return G3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nte(e,t){return n=>Pn(e,t,n)}function mx(e){return typeof e=="number"?Nte:typeof e=="string"?fx(e)?_p:Jn.test(e)?Ww:zte:Array.isArray(e)?u8:typeof e=="object"?Jn.test(e)?Ww:jte:_p}function u8(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>mx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function jte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Kte(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const zte=(e,t)=>{const n=ws.createTransformer(t),r=Yd(e),i=Yd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?G3.has(e)&&!i.values.length||G3.has(t)&&!r.values.length?Vte(e,t):$f(u8(Kte(r,i),i.values),n):(pc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_p(e,t))};function l8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):mx(e)(e,t)}const qte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Cn.update(t,n),stop:()=>Wo(t),now:()=>br.isProcessing?br.timestamp:oi.now()}},c8=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Bp=2e4;function gx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Bp;)t+=n,r=e.next(t);return t>=Bp?1/0:t}function Ute(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(gx(r),Bp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:to(i)}}const Wte=5;function d8(e,t,n){const r=Math.max(t-Wte,0);return q9(n-e(r),t-r)}const Bn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ay=.001;function Hte({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:n=Bn.velocity,mass:r=Bn.mass}){let i,a;pc(e<=Da(Bn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qo(Bn.minDamping,Bn.maxDamping,o),e=qo(Bn.minDuration,Bn.maxDuration,to(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=Y3(f,o),$=Math.exp(-m);return ay-g/b*$},a=f=>{const m=f*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(f,2)*e,$=Math.exp(-m),x=Y3(Math.pow(f,2),o);return(-i(f)+ay>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-ay+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=Yte(i,a,s);if(e=Da(e),isNaN(l))return{stiffness:Bn.stiffness,damping:Bn.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Gte=12;function Yte(e,t,n){let r=n;for(let i=1;i<Gte;i++)r=r-e(r)/t(r);return r}function Y3(e,t){return e*Math.sqrt(1-t*t)}const Zte=["duration","bounce"],Xte=["stiffness","damping","mass"];function Hw(e,t){return t.some(n=>e[n]!==void 0)}function Qte(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!Hw(e,Xte)&&Hw(e,Zte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*qo(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bn.mass,stiffness:i,damping:a}}else{const n=Hte(e);t={...t,...n,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function Fp(e=Bn.visualDuration,t=Bn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:f,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Qte({...n,velocity:-to(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=to(Math.sqrt(l/h)),C=Math.abs(A)<5;r||(r=C?Bn.restSpeed.granular:Bn.restSpeed.default),i||(i=C?Bn.restDelta.granular:Bn.restDelta.default);let E;if(x<1){const P=Y3(w,x);E=F=>{const q=Math.exp(-x*w*F);return o-q*(($+x*w*A)/P*Math.sin(P*F)+A*Math.cos(P*F))}}else if(x===1)E=P=>o-Math.exp(-w*P)*(A+($+w*A)*P);else{const P=w*Math.sqrt(x*x-1);E=F=>{const q=Math.exp(-x*w*F),te=Math.min(P*F,300);return o-q*(($+x*w*A)*Math.sinh(te)+P*A*Math.cosh(te))/P}}const T={calculatedDuration:b&&m||null,next:P=>{const F=E(P);if(b)s.done=P>=m;else{let q=P===0?$:0;x<1&&(q=P===0?Da($):d8(E,P,F));const te=Math.abs(q)<=r,se=Math.abs(o-F)<=i;s.done=te&&se}return s.value=s.done?o:F,s},toString:()=>{const P=Math.min(gx(T),Bp),F=c8(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Fp.applyToOptions=e=>{const t=Ute(e,100,Fp);return e.ease=t.ease,e.duration=Da(t.duration),e.type="keyframes",e};function Z3({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:f=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=te=>s!==void 0&&te<s||l!==void 0&&te>l,$=te=>s===void 0?l:l===void 0||Math.abs(s-te)<Math.abs(l-te)?s:l;let x=n*t;const A=m+x,w=o===void 0?A:o(A);w!==A&&(x=w-m);const C=te=>-x*Math.exp(-te/r),E=te=>w+C(te),T=te=>{const se=C(te),ae=E(te);g.done=Math.abs(se)<=f,g.value=g.done?w:ae};let P,F;const q=te=>{b(g.value)&&(P=te,F=Fp({keyframes:[g.value,$(g.value)],velocity:d8(E,te,g.value),damping:i,stiffness:a,restDelta:f,restSpeed:h}))};return q(0),{calculatedDuration:null,next:te=>{let se=!1;return!F&&P===void 0&&(se=!0,T(te),q(te)),P!==void 0&&te>=P?F.next(te-P):(!se&&T(te),g)}}}function Jte(e,t,n){const r=[],i=n||Uo.mix||l8,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Qi:t;s=$f(l,s)}r.push(s)}return r}function f8(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Ca(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Jte(t,r,i),l=s.length,f=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Hd(e[m],e[m+1],h);return s[m](g)};return n?h=>f(qo(e[0],e[a-1],h)):f}function ene(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Hd(0,t,r);e.push(Pn(n,1,i))}}function tne(e){const t=[0];return ene(t,e.length-1),t}function nne(e,t){return e.map(n=>n*t)}function rne(e,t){return e.map(()=>t||J9).splice(0,e.length-1)}function Pl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=gte(r)?r.map(Kw):Kw(r),a={done:!1,value:t[0]},o=nne(n&&n.length===t.length?n:tne(t),e),s=f8(o,t,{ease:Array.isArray(i)?i:rne(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const ine=e=>e!==null;function vx(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(ine),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const ane={decay:Z3,inertia:Z3,tween:Pl,keyframes:Pl,spring:Fp};function h8(e){typeof e.type=="string"&&(e.type=ane[e.type])}let yx=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const one=e=>e/100;let bx=class extends yx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;h8(t);const{type:n=Pl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Pl;process.env.NODE_ENV!=="production"&&l!==Pl&&Ca(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Pl&&typeof s[0]!="number"&&(this.mixKeyframes=$f(one,l8(s[0],s[1])),s=[0,100]);const f=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),f.calculatedDuration===null&&(f.calculatedDuration=gx(f));const{calculatedDuration:h}=f;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:$,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-f*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let E=this.currentTime,T=r;if(m){const te=Math.min(this.currentTime,i)/s;let se=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&se--,se=Math.min(se,m+1),!!(se%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/s)):g==="mirror"&&(T=o)),E=qo(0,1,ae)*s}const P=C?{done:!1,value:h[0]}:T.next(E);a&&(P.value=a(P.value));let{done:F}=P;!C&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return q&&$!==Z3&&(P.value=vx(h,this.options,A,this.speed)),x&&x(P.value),q&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return to(this.calculatedDuration)}get time(){return to(this.currentTime)}set time(t){var n;t=Da(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=to(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=qte,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function sne(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pu=e=>e*180/Math.PI,X3=e=>{const t=pu(Math.atan2(e[1],e[0]));return Q3(t)},une={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:X3,rotateZ:X3,skewX:e=>pu(Math.atan(e[1])),skewY:e=>pu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Q3=e=>(e=e%360,e<0&&(e+=360),e),Gw=X3,Yw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Zw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),lne={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Yw,scaleY:Zw,scale:e=>(Yw(e)+Zw(e))/2,rotateX:e=>Q3(pu(Math.atan2(e[6],e[5]))),rotateY:e=>Q3(pu(Math.atan2(-e[2],e[0]))),rotateZ:Gw,rotate:Gw,skewX:e=>pu(Math.atan(e[4])),skewY:e=>pu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function J3(e){return e.includes("scale")?1:0}function e1(e,t){if(!e||e==="none")return J3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=lne,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=une,i=s}if(!i)return J3(t);const a=r[t],o=i[1].split(",").map(dne);return typeof a=="function"?a(o):o[a]}const cne=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return e1(n,t)};function dne(e){return parseFloat(e.trim())}const gc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vc=new Set(gc),Xw=e=>e===mc||e===At,fne=new Set(["x","y","z"]),hne=gc.filter(e=>!fne.has(e));function pne(e){const t=[];return hne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>e1(t,"x"),y:(e,{transform:t})=>e1(t,"y")};bu.translateX=bu.x;bu.translateY=bu.y;const xu=new Set;let t1=!1,n1=!1,r1=!1;function p8(){if(n1){const e=Array.from(xu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=pne(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var s;(s=r.getValue(a))==null||s.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}n1=!1,t1=!1,xu.forEach(e=>e.complete(r1)),xu.clear()}function m8(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n1=!0)})}function mne(){r1=!0,m8(),p8(),r1=!1}let xx=class{constructor(t,n,r,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(xu.add(this),t1||(t1=!0,Cn.read(m8),Cn.resolveKeyframes(p8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const s=r.readValue(n,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}sne(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),xu.delete(this)}cancel(){this.state==="scheduled"&&(xu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const gne=e=>e.startsWith("--");function vne(e,t,n){gne(t)?e.style.setProperty(t,n):e.style[t]=n}const yne=ox(()=>window.ScrollTimeline!==void 0),bne={};function xne(e,t){const n=ox(e);return()=>bne[t]??n()}const g8=xne(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Dd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dd([0,.65,.55,1]),circOut:Dd([.55,0,1,.45]),backIn:Dd([.31,.01,.66,-.59]),backOut:Dd([.33,1.53,.69,.99])};function v8(e,t){if(e)return typeof e=="function"?g8()?c8(e,t):"ease-out":e8(e)?Dd(e):Array.isArray(e)?e.map(n=>v8(n,t)||Qw.easeOut):Qw[e]}function Dne(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},f=void 0){const h={[t]:n};l&&(h.offset=l);const m=v8(s,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return f&&(g.pseudoElement=f),e.animate(h,g)}function y8(e){return typeof e=="function"&&"applyToOptions"in e}function $ne({type:e,...t}){return y8(e)&&g8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let Ene=class extends yx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Ca(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const f=$ne(t);this.animation=Dne(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=vx(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):vne(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return to(Number(t))}get time(){return to(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Da(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&yne()?(this.animation.timeline=t,Qi):n(this)}};const b8={anticipate:Z9,backInOut:Y9,circInOut:Q9};function Cne(e){return e in b8}function wne(e){typeof e.ease=="string"&&Cne(e.ease)&&(e.ease=b8[e.ease])}const Jw=10;let Ane=class extends Ene{constructor(t){wne(t),h8(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new bx({...o,autoplay:!1}),l=Da(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Jw).value,s.sample(l).value,Jw),s.stop()}};const eA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ws.test(e)||e==="0")&&!e.startsWith("url("));function Sne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Tne(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=eA(i,t),s=eA(a,t);return pc(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:Sne(e)||(n==="spring"||y8(n))&&r}function i1(e){e.duration=0,e.type}const Pne=new Set(["opacity","clipPath","filter","transform"]),_ne=ox(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Bne(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=t.owner.getProps();return _ne()&&n&&Pne.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const Fne=40;let kne=class extends yx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",keyframes:s,name:l,motionValue:f,element:h,...m}){var $;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=oi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:f,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||xx;this.keyframeResolver=new b(s,(x,A,w)=>this.onKeyframesResolved(x,A,g,!w),l,f,h),($=this.keyframeResolver)==null||$.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:f,onUpdate:h}=r;this.resolvedAt=oi.now(),Tne(t,a,o,s)||((Uo.instantAnimations||!l)&&(h==null||h(vx(t,r,n))),t[0]=t[t.length-1],i1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Fne?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&Bne(g)?new Ane({...g,element:g.motionValue.owner.current}):new bx(g);b.finished.then(()=>this.notifyFinished()).catch(Qi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),mne()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const Mne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rne(e){const t=Mne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Ine=4;function x8(e,t,n=1){Ca(n<=Ine,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Rne(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return j9(o)?parseFloat(o):o}return fx(i)?x8(i,t,n+1):i}function Dx(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const D8=new Set(["width","height","top","left","right","bottom",...gc]),One={test:e=>e==="auto",parse:e=>e},$8=e=>t=>t.test(e),E8=[mc,At,no,hs,Tte,Ste,One],tA=e=>E8.find($8(e));function Lne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z9(e):!0}const Vne=new Set(["brightness","contrast","saturate","opacity"]);function Nne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hx)||[];if(!r)return e;const i=n.replace(r,"");let a=Vne.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const jne=/\b([a-z-]*)\(.*?\)/gu,a1={...ws,getAnimatableNone:e=>{const t=e.match(jne);return t?t.map(Nne).join(" "):e}},nA={...mc,transform:Math.round},Kne={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:hs,skewX:hs,skewY:hs,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:Gd,originX:zw,originY:zw,originZ:At},$x={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At,...Kne,zIndex:nA,fillOpacity:Gd,strokeOpacity:Gd,numOctaves:nA},zne={...$x,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:a1,WebkitFilter:a1},C8=e=>zne[e];function w8(e,t){let n=C8(e);return n!==a1&&(n=ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qne=new Set(["auto","none","0"]);function Une(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!qne.has(a)&&Yd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=w8(n,i)}let Wne=class extends xx{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),fx(f))){const h=x8(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!D8.has(r)||t.length!==2)return;const[i,a]=t,o=tA(i),s=tA(a);if(o!==s)if(Xw(o)&&Xw(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else bu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||Lne(t[i]))&&r.push(i);r.length&&Une(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,o=r[a];r[a]=bu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,f])=>{t.getValue(l).set(f)}),this.resolveNoneKeyframes()}};function Hne(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const A8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gne(e){return K9(e)&&"offsetHeight"in e}const rA=30,Yne=e=>!isNaN(parseFloat(e)),Fd={current:void 0};let Zne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=oi.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ux(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new sx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Cn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Fd.current&&Fd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rA);return q9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function _u(e,t){return new Zne(e,t)}const{schedule:Ex}=t8(queueMicrotask,!1),ma={x:!1,y:!1};function S8(){return ma.x||ma.y}function Xne(e){return e==="x"||e==="y"?ma[e]?null:(ma[e]=!0,()=>{ma[e]=!1}):ma.x||ma.y?null:(ma.x=ma.y=!0,()=>{ma.x=ma.y=!1})}function T8(e,t){const n=Hne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function iA(e){return!(e.pointerType==="touch"||S8())}function Qne(e,t,n={}){const[r,i,a]=T8(e,n),o=s=>{if(!iA(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{iA(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const P8=(e,t)=>t?e===t?!0:P8(e,t.parentElement):!1,Cx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Jne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ere(e){return Jne.has(e.tagName)||e.tabIndex!==-1}const Gh=new WeakSet;function aA(e){return t=>{t.key==="Enter"&&e(t)}}function oy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tre=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=aA(()=>{if(Gh.has(n))return;oy(n,"down");const i=aA(()=>{oy(n,"up")}),a=()=>oy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function oA(e){return Cx(e)&&!S8()}function nre(e,t,n={}){const[r,i,a]=T8(e,n),o=s=>{const l=s.currentTarget;if(!oA(s))return;Gh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Gh.has(l)&&Gh.delete(l),oA(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||P8(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),Gne(s)&&(s.addEventListener("focus",f=>tre(f,i)),!ere(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function _8(e){return K9(e)&&"ownerSVGElement"in e}function rre(e){return _8(e)&&e.tagName==="svg"}function ire(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=f8(i,a,o);return t?s(r):s}const xr=e=>!!(e&&e.getVelocity),are=[...E8,Jn,ws],ore=e=>are.find($8(e)),wx=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sre(e=!0){const t=I.useContext(rx);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const o=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const B8=I.createContext({strict:!1}),sA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nc={};for(const e in sA)nc[e]={isEnabled:t=>sA[e].some(n=>!!t[n])};function ure(e){for(const t in e)nc[t]={...nc[t],...e[t]}}const lre=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function kp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lre.has(e)}let F8=e=>!kp(e);function cre(e){typeof e=="function"&&(F8=t=>t.startsWith("on")?!kp(t):e(t))}try{cre(require("@emotion/is-prop-valid").default)}catch{}function dre(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(F8(i)||n===!0&&kp(i)||!t&&!kp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Mm=I.createContext({});function Rm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zd(e){return typeof e=="string"||Array.isArray(e)}const Ax=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sx=["initial",...Ax];function Im(e){return Rm(e.animate)||Sx.some(t=>Zd(e[t]))}function k8(e){return!!(Im(e)||e.variants)}function fre(e,t){if(Im(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zd(n)?n:void 0,animate:Zd(r)?r:void 0}}return e.inherit!==!1?t:{}}function hre(e){const{initial:t,animate:n}=fre(e,I.useContext(Mm));return I.useMemo(()=>({initial:t,animate:n}),[uA(t),uA(n)])}function uA(e){return Array.isArray(e)?e.join(" "):e}const Xd={};function pre(e){for(const t in e)Xd[t]=e[t],dx(t)&&(Xd[t].isCSSVariable=!0)}function M8(e,{layout:t,layoutId:n}){return vc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xd[e]||e==="opacity")}const mre={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gre=gc.length;function vre(e,t,n){let r="",i=!0;for(let a=0;a<gre;a++){const o=gc[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(o.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const f=A8(s,$x[o]);if(!l){i=!1;const h=mre[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Tx(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const f=t[l];if(vc.has(l)){o=!0;continue}else if(dx(l)){i[l]=f;continue}else{const h=A8(f,$x[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=vre(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:f="50%",originZ:h=0}=a;r.transformOrigin=`${l} ${f} ${h}`}}const Px=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R8(e,t,n){for(const r in t)!xr(t[r])&&!M8(r,n)&&(e[r]=t[r])}function yre({transformTemplate:e},t){return I.useMemo(()=>{const n=Px();return Tx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bre(e,t){const n=e.style||{},r={};return R8(r,n,e),Object.assign(r,yre(e,t)),r}function xre(e,t){const n={},r=bre(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Dre={offset:"stroke-dashoffset",array:"stroke-dasharray"},$re={offset:"strokeDashoffset",array:"strokeDasharray"};function Ere(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Dre:$re;e[a.offset]=At.transform(-r);const o=At.transform(t),s=At.transform(n);e[a.array]=`${o} ${s}`}function I8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(Tx(e,s,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&Ere(m,i,a,o,!1)}const O8=()=>({...Px(),attrs:{}}),L8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Cre(e,t,n,r){const i=I.useMemo(()=>{const a=O8();return I8(a,t,L8(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};R8(a,e.style,e),i.style={...a,...i.style}}return i}const wre=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _x(e){return typeof e!="string"||e.includes("-")?!1:!!(wre.indexOf(e)>-1||/[A-Z]/u.test(e))}function Are(e,t,n,{latestValues:r},i,a=!1){const s=(_x(e)?Cre:xre)(t,r,i,e),l=dre(t,typeof e=="string",a),f=e!==I.Fragment?{...l,...s,ref:n}:{},{children:h}=t,m=I.useMemo(()=>xr(h)?h.get():h,[h]);return I.createElement(e,{...f,children:m})}function lA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Bx(e,t,n,r){if(typeof t=="function"){const[i,a]=lA(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=lA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Yh(e){return xr(e)?e.get():e}function Sre({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Tre(n,r,i,e),renderState:t()}}function Tre(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Yh(a[g]);let{initial:o,animate:s}=e;const l=Im(e),f=k8(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?s:o;if(m&&typeof m!="boolean"&&!Rm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Bx(e,g[b]);if($){const{transitionEnd:x,transition:A,...w}=$;for(const C in w){let E=w[C];if(Array.isArray(E)){const T=h?E.length-1:0;E=E[T]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}const V8=e=>(t,n)=>{const r=I.useContext(Mm),i=I.useContext(rx),a=()=>Sre(e,t,r,i);return n?a():Df(a)};function Fx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(xr(r[o])||t.style&&xr(t.style[o])||M8(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Pre=V8({scrapeMotionValuesFromProps:Fx,createRenderState:Px});function N8(e,t,n){const r=Fx(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=gc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const _re=V8({scrapeMotionValuesFromProps:N8,createRenderState:O8}),Bre=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Fre(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_l(n)&&(n.current=r))},[t])}const kx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kre="framerAppearId",j8="data-"+kx(kre),K8=I.createContext({});function Mre(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(Mm),o=I.useContext(B8),s=I.useContext(rx),l=I.useContext(wx).reducedMotion,f=I.useRef(null);r=r||o.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const h=f.current,m=I.useContext(K8);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Rre(f.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[j8],$=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return N9(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),$.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1),h.enteringChildren=void 0)}),h}function Rre(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:f,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:z8(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&_l(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function z8(e){if(e)return e.options.allowProjection!==!1?e.projection:z8(e.parent)}function sy(e,{forwardMotionProps:t=!1}={},n,r){n&&ure(n);const i=_x(e)?_re:Pre;function a(s,l){let f;const h={...I.useContext(wx),...s,layoutId:Ire(s)},{isStatic:m}=h,g=hre(s),b=i(s,m);if(!m&&nx){Ore(h,n);const $=Lre(h);f=$.MeasureLayout,g.visualElement=Mre(e,b,h,r,$.ProjectionNode)}return io.jsxs(Mm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,Are(e,s,Fre(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=I.forwardRef(a);return o[Bre]=e,o}function Ire({layoutId:e}){const t=I.useContext(V9).id;return t&&e!==void 0?t+"-"+e:e}function Ore(e,t){const n=I.useContext(B8).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?pc(!1,r,"lazy-strict-mode"):Ca(!1,r,"lazy-strict-mode")}}function Lre(e){const{drag:t,layout:n}=nc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Vre(e,t){if(typeof Proxy>"u")return sy;const n=new Map,r=(a,o)=>sy(a,o,e,t),i=(a,o)=>(process.env.NODE_ENV!=="production"&&ux(!1,"motion() is deprecated. Use motion.create() instead."),r(a,o));return new Proxy(i,{get:(a,o)=>o==="create"?r:(n.has(o)||n.set(o,sy(o,void 0,e,t)),n.get(o))})}function q8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Nre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function jre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function uy(e){return e===void 0||e===1}function o1({scale:e,scaleX:t,scaleY:n}){return!uy(e)||!uy(t)||!uy(n)}function ou(e){return o1(e)||U8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function U8(e){return cA(e.x)||cA(e.y)}function cA(e){return e&&e!=="0%"}function Mp(e,t,n){const r=e-n,i=t*r;return n+i}function dA(e,t,n,r,i){return i!==void 0&&(e=Mp(e,i,r)),Mp(e,n,r)+t}function s1(e,t=0,n=1,r,i){e.min=dA(e.min,t,n,r,i),e.max=dA(e.max,t,n,r,i)}function W8(e,{x:t,y:n}){s1(e.x,t.translate,t.scale,t.originPoint),s1(e.y,n.translate,n.scale,n.originPoint)}const fA=.999999999999,hA=1.0000000000001;function Kre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Fl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,W8(e,o)),r&&ou(a.latestValues)&&Fl(e,a.latestValues))}t.x<hA&&t.x>fA&&(t.x=1),t.y<hA&&t.y>fA&&(t.y=1)}function Bl(e,t){e.min=e.min+t,e.max=e.max+t}function pA(e,t,n,r,i=.5){const a=Pn(e.min,e.max,i);s1(e,t,n,a,r)}function Fl(e,t){pA(e.x,t.x,t.scaleX,t.scale,t.originX),pA(e.y,t.y,t.scaleY,t.scale,t.originY)}function H8(e,t){return q8(jre(e.getBoundingClientRect(),t))}function zre(e,t,n){const r=H8(e,n),{scroll:i}=t;return i&&(Bl(r.x,i.offset.x),Bl(r.y,i.offset.y)),r}const mA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:mA(),y:mA()}),gA=()=>({min:0,max:0}),Hn=()=>({x:gA(),y:gA()}),u1={current:null},G8={current:!1};function qre(){if(G8.current=!0,!!nx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>u1.current=e.matches;e.addEventListener("change",t),t()}else u1.current=!1}const Ure=new WeakMap;function Wre(e,t,n){for(const r in t){const i=t[r],a=n[r];if(xr(i))e.addValue(r,i);else if(xr(a))e.addValue(r,_u(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,_u(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=oi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Cn.render(this.render,!1,!0))};const{latestValues:l,renderState:f}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Im(n),this.isVariantNode=k8(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&xr(b)&&b.set(l[g])}}mount(t){var n;this.current=t,Ure.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),G8.current||qre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:u1.current,process.env.NODE_ENV!=="production"&&ux(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Wo(this.notifyUpdate),Wo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Cn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nc){const n=nc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Hn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vA.length;r++){const i=vA[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Wre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_u(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(j9(r)||z9(r))?r=parseFloat(r):!ore(r)&&ws.test(n)&&(r=w8(t,n)),this.setBaseTarget(t,xr(r)?r.get():r)),xr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Bx(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!xr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new sx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ex.render(this.render)}},Y8=class extends Hre{constructor(){super(...arguments),this.KeyframeResolver=Wne}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Z8(e,{style:t,vars:n},r,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,r);for(o in n)a.setProperty(o,n[o])}function Gre(e){return window.getComputedStyle(e)}let Yre=class extends Y8{constructor(){super(...arguments),this.type="html",this.renderInstance=Z8}readValueFromInstance(t,n){var r;if(vc.has(n))return(r=this.projection)!=null&&r.isProjecting?J3(n):cne(t,n);{const i=Gre(t),a=(dx(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return H8(t,n)}build(t,n,r){Tx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Fx(t,n,r)}};const X8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zre(e,t,n,r){Z8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X8.has(i)?i:kx(i),t.attrs[i])}let Xre=class extends Y8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Hn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vc.has(n)){const r=C8(n);return r&&r.default||0}return n=X8.has(n)?n:kx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return N8(t,n,r)}build(t,n,r){I8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Zre(t,n,r,i)}mount(t){this.isSVGTag=L8(t.tagName),super.mount(t)}};const Qre=(e,t)=>_x(e)?new Xre(t):new Yre(t,{allowProjection:e!==I.Fragment});function Ul(e,t,n){const r=e.getProps();return Bx(r,t,n!==void 0?n:r.custom,e)}const l1=e=>Array.isArray(e);function Jre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_u(n))}function eie(e){return l1(e)?e[e.length-1]||0:e}function tie(e,t){const n=Ul(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=eie(a[o]);Jre(e,o,s)}}function nie(e){return!!(xr(e)&&e.add)}function c1(e,t){const n=e.getValue("willChange");if(nie(n))return n.add(t);if(!n&&Uo.WillChange){const r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Q8(e){return e.props[j8]}const rie=e=>e!==null;function iie(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(rie),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const aie={type:"spring",stiffness:500,damping:25,restSpeed:10},oie=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sie={type:"keyframes",duration:.8},uie={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},lie=(e,{keyframes:t})=>t.length>2?sie:vc.has(e)?e.startsWith("scale")?oie(t[1]):aie:uie;function cie({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:f,...h}){return!!Object.keys(h).length}const Mx=(e,t,n,r={},i,a)=>o=>{const s=Dx(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Da(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:g=>{t.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};cie(s)||Object.assign(h,lie(e,h)),h.duration&&(h.duration=Da(h.duration)),h.repeatDelay&&(h.repeatDelay=Da(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(i1(h),h.delay===0&&(m=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(m=!0,i1(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=iie(h.keyframes,s);if(g!==void 0){Cn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new bx(h):new kne(h)};function die({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function J8(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);const l=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const m=e.getValue(h,e.latestValues[h]??null),g=s[h];if(g===void 0||f&&die(f,h))continue;const b={delay:n,...Dx(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Q8(e);if(w){const C=window.MotionHandoffAnimation(w,h,Cn);C!==null&&(b.startTime=C,x=!0)}}c1(e,h),m.start(Mx(h,m,g,e.shouldReduceMotion&&D8.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{Cn.update(()=>{o&&tie(e,o)})}),l}function eM(e,t,n,r=0,i=1){const a=Array.from(e).sort((f,h)=>f.sortNodePosition(h)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n=="function"?n(a,o):i===1?a*r:s-a*r}function d1(e,t,n={}){var l;const r=Ul(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(J8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return fie(e,t,f,h,m,g,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[f,h]=s==="beforeChildren"?[a,o]:[o,a];return f().then(()=>h())}else return Promise.all([a(),o(n.delay)])}function fie(e,t,n=0,r=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(d1(l,t,{...o,delay:n+(typeof r=="function"?0:r)+eM(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function hie(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>d1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=d1(e,t,n);else{const i=typeof t=="function"?Ul(e,t,n.custom):t;r=Promise.all(J8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tM(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const pie=Sx.length;function nM(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nM(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pie;n++){const r=Sx[n],i=e.props[r];(Zd(i)||i===!1)&&(t[r]=i)}return t}const mie=[...Ax].reverse(),gie=Ax.length;function vie(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hie(e,n,r)))}function yie(e){let t=vie(e),n=yA(),r=!0;const i=l=>(f,h)=>{var g;const m=Ul(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:$,...x}=m;f={...f,...x,...$}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,h=nM(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<gie;A++){const w=mie[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Zd(E),P=w===l?C.isActive:null;P===!1&&($=A);let F=E===h[w]&&E!==f[w]&&T;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),C.protectedKeys={...b},!C.isActive&&P===null||!E&&!C.prevProp||Rm(E)||typeof E=="boolean")continue;const q=bie(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let O=ae.reduce(i(w),{});P===!1&&(O={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...O},z=R=>{te=!0,g.has(R)&&(se=!0,g.delete(R)),C.needsAnimating[R]=!0;const K=e.getValue(R);K&&(K.liveStyle=!1)};for(const R in be){const K=O[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;l1(K)&&l1(fe)?M=!tM(K,fe):M=K!==fe,M?K!=null?z(R):g.add(R):K!==void 0&&g.has(R)?z(R):C.protectedKeys[R]=!0}C.prevProp=E,C.prevResolvedValues=O,C.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(te=!1);const G=F&&q;te&&(!G||se)&&m.push(...ae.map(R=>{const K={type:w};if(typeof R=="string"&&r&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:fe}=e,M=Ul(fe,R);if(fe.enteringChildren&&M){const{delayChildren:oe}=M.transition||{};K.delay=eM(fe.enteringChildren,e,oe)}}return{animation:R,options:K}}))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=Ul(e,Array.isArray(f.initial)?f.initial[0]:f.initial);w&&w.transition&&(A.transition=w.transition)}g.forEach(w=>{const C=e.getBaseTarget(w),E=e.getValue(w);E&&(E.liveStyle=!0),A[w]=C??null}),m.push({animation:A})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function s(l,f){var m;if(n[l].isActive===f)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=yA(),r=!0}}}function bie(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tM(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yA(){return{animate:iu(!0),whileInView:iu(),whileHover:iu(),whileTap:iu(),whileDrag:iu(),whileFocus:iu(),exit:iu()}}let _s=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},xie=class extends _s{constructor(t){super(t),t.animationState||(t.animationState=yie(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},Die=0,$ie=class extends _s{constructor(){super(...arguments),this.id=Die++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Eie={animation:{Feature:xie},exit:{Feature:$ie}};function Qd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function wf(e){return{point:{x:e.pageX,y:e.pageY}}}const Cie=e=>t=>Cx(t)&&e(t,wf(t));function kd(e,t,n,r){return Qd(e,t,Cie(n),r)}const rM=1e-4,wie=1-rM,Aie=1+rM,iM=.01,Sie=0-iM,Tie=0+iM;function Nr(e){return e.max-e.min}function Pie(e,t,n){return Math.abs(e-t)<=n}function bA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Nr(n)/Nr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wie&&e.scale<=Aie||isNaN(e.scale))&&(e.scale=1),(e.translate>=Sie&&e.translate<=Tie||isNaN(e.translate))&&(e.translate=0)}function Md(e,t,n,r){bA(e.x,t.x,n.x,r?r.originX:void 0),bA(e.y,t.y,n.y,r?r.originY:void 0)}function xA(e,t,n){e.min=n.min+t.min,e.max=e.min+Nr(t)}function _ie(e,t,n){xA(e.x,t.x,n.x),xA(e.y,t.y,n.y)}function DA(e,t,n){e.min=t.min-n.min,e.max=e.min+Nr(t)}function Rd(e,t,n){DA(e.x,t.x,n.x),DA(e.y,t.y,n.y)}function Ki(e){return[e("x"),e("y")]}const aM=({current:e})=>e?e.ownerDocument.defaultView:null,$A=(e,t)=>Math.abs(e-t);function Bie(e,t){const n=$A(e.x,t.x),r=$A(e.y,t.y);return Math.sqrt(n**2+r**2)}class oM{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=cy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,$=Bie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!$)return;const{point:x}=g,{timestamp:A}=br;this.history.push({...x,timestamp:A});const{onStart:w,onMove:C}=this.handlers;b||(w&&w(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=ly(b,this.transformPagePoint),Cn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:$,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=cy(g.type==="pointercancel"?this.lastMoveEventInfo:ly(b,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,w),x&&x(g,w)},!Cx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=wf(t),l=ly(s,this.transformPagePoint),{point:f}=l,{timestamp:h}=br;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,cy(l,this.history)),this.removeListeners=$f(kd(this.contextWindow,"pointermove",this.handlePointerMove),kd(this.contextWindow,"pointerup",this.handlePointerUp),kd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function ly(e,t){return t?{point:t(e.point)}:e}function EA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cy({point:e},t){return{point:e,delta:EA(e,sM(t)),offset:EA(e,Fie(t)),velocity:kie(t,.1)}}function Fie(e){return e[0]}function sM(e){return e[e.length-1]}function kie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=sM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Da(t)));)n--;if(!r)return{x:0,y:0};const a=to(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Mie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function CA(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Rie(e,{top:t,left:n,bottom:r,right:i}){return{x:CA(e.x,n,i),y:CA(e.y,t,r)}}function wA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Iie(e,t){return{x:wA(e.x,t.x),y:wA(e.y,t.y)}}function Oie(e,t){let n=.5;const r=Nr(e),i=Nr(t);return i>r?n=Hd(t.min,t.max-r,e.min):r>i&&(n=Hd(e.min,e.max-i,t.min)),qo(0,1,n)}function Lie(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const f1=.35;function Vie(e=f1){return e===!1?e=0:e===!0&&(e=f1),{x:AA(e,"left","right"),y:AA(e,"top","bottom")}}function AA(e,t,n){return{min:SA(e,t),max:SA(e,n)}}function SA(e,t){return typeof e=="number"?e:e[t]||0}const Nie=new WeakMap;class jie{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Hn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wf(m).point)},o=(m,g)=>{const{drag:b,dragPropagation:$,onDragStart:x}=this.getProps();if(b&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xne(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ki(w=>{let C=this.getAxisMotionValue(w).get()||0;if(no.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const T=E.layout.layoutBox[w];T&&(C=Nr(T)*(parseFloat(C)/100))}}this.originPoint[w]=C}),x&&Cn.postRender(()=>x(m,g)),c1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},s=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:$,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=g;if($&&this.currentDirection===null){this.currentDirection=Kie(w),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),A&&A(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},f=()=>Ki(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new oM(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:aM(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&Cn.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ph(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Mie(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&_l(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Rie(r.layoutBox,t):this.constraints=!1,this.elastic=Vie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lie(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;Ca(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=zre(r,i.root,this.visualElement.getTransformPagePoint());let o=Iie(i.layout.layoutBox,a);if(n){const s=n(Nre(o));this.hasMutatedConstraints=!!s,s&&(o=q8(s))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},f=Ki(h=>{if(!Ph(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(f).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return c1(this.visualElement,t),r.start(Mx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ki(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ki(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ki(n=>{const{drag:r}=this.getProps();if(!Ph(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[n];a.set(t[n]-Pn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ki(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=Oie({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ki(o=>{if(!Ph(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];s.set(Pn(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;Nie.set(this.visualElement,this);const t=this.visualElement.current,n=kd(t,"pointerdown",l=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Cn.read(r);const o=Qd(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&(Ki(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=f1,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Ph(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Kie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zie extends _s{constructor(t){super(t),this.removeGroupControls=Qi,this.removeListeners=Qi,this.controls=new jie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qi}unmount(){this.removeGroupControls(),this.removeListeners()}}const TA=e=>(t,n)=>{e&&Cn.postRender(()=>e(t,n))};class qie extends _s{constructor(){super(...arguments),this.removePointerDownListener=Qi}onPointerDown(t){this.session=new oM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:TA(t),onStart:TA(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Cn.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=kd(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function PA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const od={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=PA(e,t.target.x),r=PA(e,t.target.y);return`${n}% ${r}%`}},Uie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ws.parse(e);if(i.length>5)return r;const a=ws.createTransformer(e),o=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const f=Pn(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};let dy=!1;class Wie extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;pre(Hie),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),dy&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,dy=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Cn.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ex.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;dy=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function uM(e){const[t,n]=sre(),r=I.useContext(V9);return io.jsx(Wie,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(K8),isPresent:t,safeToRemove:n})}const Hie={borderRadius:{...od,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:od,borderTopRightRadius:od,borderBottomLeftRadius:od,borderBottomRightRadius:od,boxShadow:Uie};function Gie(e,t,n){const r=xr(e)?e:_u(e);return r.start(Mx("",r,t,n)),r.animation}const Yie=(e,t)=>e.depth-t.depth;class Zie{constructor(){this.children=[],this.isDirty=!1}add(t){ix(this.children,t),this.isDirty=!0}remove(t){ax(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yie),this.isDirty=!1,this.children.forEach(t)}}function Xie(e,t){const n=oi.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wo(r),e(a-t))};return Cn.setup(r,!0),()=>Wo(r)}const lM=["TopLeft","TopRight","BottomLeft","BottomRight"],Qie=lM.length,_A=e=>typeof e=="string"?parseFloat(e):e,BA=e=>typeof e=="number"||At.test(e);function Jie(e,t,n,r,i,a){i?(e.opacity=Pn(0,n.opacity??1,eae(r)),e.opacityExit=Pn(t.opacity??1,0,tae(r))):a&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let o=0;o<Qie;o++){const s=`border${lM[o]}Radius`;let l=FA(t,s),f=FA(n,s);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||BA(l)===BA(f)?(e[s]=Math.max(Pn(_A(l),_A(f),r),0),(no.test(f)||no.test(l))&&(e[s]+="%")):e[s]=f}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function FA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eae=cM(0,.5,X9),tae=cM(.5,.95,Qi);function cM(e,t,n){return r=>r<e?0:r>t?1:n(Hd(e,t,r))}function kA(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){kA(e.x,t.x),kA(e.y,t.y)}function MA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function RA(e,t,n,r,i){return e-=t,e=Mp(e,1/n,r),i!==void 0&&(e=Mp(e,1/i,r)),e}function nae(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Pn(a.min,a.max,r);e===a&&(s-=t),e.min=RA(e.min,t,n,s,i),e.max=RA(e.max,t,n,s,i)}function IA(e,t,[n,r,i],a,o){nae(e,t[n],t[r],t[i],t.scale,a,o)}const rae=["x","scaleX","originX"],iae=["y","scaleY","originY"];function OA(e,t,n,r){IA(e.x,t,rae,n?n.x:void 0,r?r.x:void 0),IA(e.y,t,iae,n?n.y:void 0,r?r.y:void 0)}function LA(e){return e.translate===0&&e.scale===1}function dM(e){return LA(e.x)&&LA(e.y)}function VA(e,t){return e.min===t.min&&e.max===t.max}function aae(e,t){return VA(e.x,t.x)&&VA(e.y,t.y)}function NA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fM(e,t){return NA(e.x,t.x)&&NA(e.y,t.y)}function jA(e){return Nr(e.x)/Nr(e.y)}function KA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oae{constructor(){this.members=[]}add(t){ix(this.members,t),t.scheduleRender()}remove(t){if(ax(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sae(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const fy=["","X","Y","Z"],uae=1e3;let lae=0;function hy(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Q8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Cn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hM(r)}function pM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=lae++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(fae),this.nodes.forEach(gae),this.nodes.forEach(vae),this.nodes.forEach(hae)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zie)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new sx),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=_8(o)&&!rre(o),this.instance=o;const{layoutId:s,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;Cn.read(()=>{m=window.innerWidth}),e(o,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Xie(g,250),Zh.hasAnimatedSinceResize&&(Zh.hasAnimatedSinceResize=!1,this.nodes.forEach(UA)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&f&&(s||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||$ae,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),w=!this.targetLayout||!fM(this.targetLayout,b),C=!m&&g;if(this.options.layoutRoot||this.resumeFrom||C||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...Dx($,"layout"),onPlay:x,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(h,C)}else m||UA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Wo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yae),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(qA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mae),this.nodes.forEach(cae),this.nodes.forEach(dae)):this.nodes.forEach(qA),this.clearAllSnapshots();const s=oi.now();br.delta=qo(0,1e3/60,s-br.timestamp),br.timestamp=s,br.isProcessing=!0,ty.update.process(br),ty.preRender.process(br),ty.render.process(br),br.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ex.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pae),this.sharedNodes.forEach(bae)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Cn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Cn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Nr(this.snapshot.measuredBox.x)&&!Nr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Hn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!dM(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;o&&this.instance&&(s||ou(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),Eae(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return Hn();const s=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(Cae))){const{scroll:h}=this.root;h&&(Bl(s.x,h.offset.x),Bl(s.y,h.offset.y))}return s}removeElementScroll(o){var l;const s=Hn();if(Vi(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Vi(s,o),Bl(s.x,m.offset.x),Bl(s.y,m.offset.y))}return s}applyTransform(o,s=!1){const l=Hn();Vi(l,o);for(let f=0;f<this.path.length;f++){const h=this.path[f];!s&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Fl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ou(h.latestValues)&&Fl(l,h.latestValues)}return ou(this.latestValues)&&Fl(l,this.latestValues),l}removeTransform(o){const s=Hn();Vi(s,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!ou(f.latestValues))continue;o1(f.latestValues)&&f.updateSnapshot();const h=Hn(),m=f.measurePageBox();Vi(h,m),OA(s,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ou(this.latestValues)&&OA(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==br.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var g;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=br.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Rd(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Hn(),this.targetWithTransforms=Hn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_ie(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Vi(this.target,this.layout.layoutBox),W8(this.target,this.targetDelta)):Vi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Hn(),this.relativeTargetOrigin=Hn(),Rd(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||o1(this.parent.latestValues)||U8(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var $;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||($=this.parent)!=null&&$.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===br.timestamp&&(l=!1),l)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Vi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;Kre(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Hn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(MA(this.prevProjectionDelta.x,this.projectionDelta.x),MA(this.prevProjectionDelta.y,this.projectionDelta.y)),Md(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!KA(this.projectionDelta.x,this.prevProjectionDelta.x)||!KA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,f=l?l.latestValues:{},h={...this.latestValues},m=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const g=Hn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,x=b!==$,A=this.getStack(),w=!A||A.members.length<=1,C=!!(x&&!w&&this.options.crossfade===!0&&!this.path.some(Dae));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const P=T/1e3;WA(m.x,o.x,P),WA(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rd(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xae(this.relativeTarget,this.relativeTargetOrigin,g,P),E&&aae(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Hn()),Vi(E,this.relativeTarget)),x&&(this.animationValues=h,Jie(h,f,this.latestValues,P,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,f;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(f=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||f.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Cn.update(()=>{Zh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_u(0)),this.currentAnimation=Gie(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),o.onUpdate&&o.onUpdate(h)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uae),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:f,latestValues:h}=o;if(!(!s||!l||!f)){if(this!==o&&this.layout&&f&&mM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Hn();const m=Nr(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Nr(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Vi(s,l),Fl(s,h),Md(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new oae),this.sharedNodes.get(o).add(s);const f=s.options.initialPromotionConfig;s.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const f={};l.z&&hy("z",o,f,this.animationValues);for(let h=0;h<fy.length;h++)hy(`rotate${fy[h]}`,o,f,this.animationValues),hy(`skew${fy[h]}`,o,f,this.animationValues);o.render();for(const h in f)o.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Yh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ou(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const h=f.animationValues||f.latestValues;this.applyTransformsToTarget();let m=sae(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),o.transform=m;const{x:g,y:b}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,f.animationValues?o.opacity=f===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:o.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const $ in Xd){if(h[$]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:w}=Xd[$],C=m==="none"?h[$]:x(h[$],f);if(A){const E=A.length;for(let T=0;T<E;T++)o[A[T]]=C}else w?this.options.visualElement.renderState.vars[$]=C:o[$]=C}this.options.layoutId&&(o.pointerEvents=f===this?Yh(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(zA),this.root.sharedNodes.clear()}}}function cae(e){e.updateLayout()}function dae(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(g);g.min=r[m].min,g.max=g.min+b}):mM(a,t.layoutBox,r)&&Ki(m=>{const g=o?t.measuredBox[m]:t.layoutBox[m],b=Nr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const s=kl();Md(s,r,t.layoutBox);const l=kl();o?Md(l,e.applyTransform(i,!0),t.measuredBox):Md(l,r,t.layoutBox);const f=!dM(s);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Hn();Rd($,t.layoutBox,g.layoutBox);const x=Hn();Rd(x,r,b.layoutBox),fM($,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fae(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function hae(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pae(e){e.clearSnapshot()}function zA(e){e.clearMeasurements()}function qA(e){e.isLayoutDirty=!1}function mae(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function UA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gae(e){e.resolveTargetDelta()}function vae(e){e.calcProjection()}function yae(e){e.resetSkewAndRotation()}function bae(e){e.removeLeadSnapshot()}function WA(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function HA(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function xae(e,t,n,r){HA(e.x,t.x,n.x,r),HA(e.y,t.y,n.y,r)}function Dae(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $ae={duration:.45,ease:[.4,0,.1,1]},GA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),YA=GA("applewebkit/")&&!GA("chrome/")?Math.round:Qi;function ZA(e){e.min=YA(e.min),e.max=YA(e.max)}function Eae(e){ZA(e.x),ZA(e.y)}function mM(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pie(jA(t),jA(n),.2)}function Cae(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const wae=pM({attachResizeListener:(e,t)=>Qd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),py={current:void 0},gM=pM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!py.current){const e=new wae({});e.mount(window),e.setOptions({layoutScroll:!0}),py.current=e}return py.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Aae={pan:{Feature:qie},drag:{Feature:zie,ProjectionNode:gM,MeasureLayout:uM}};function XA(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Cn.postRender(()=>a(t,wf(t)))}let Sae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Qne(t,(n,r)=>(XA(this.node,r,"Start"),i=>XA(this.node,i,"End"))))}unmount(){}},Tae=class extends _s{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=$f(Qd(this.node.current,"focus",()=>this.onFocus()),Qd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function QA(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Cn.postRender(()=>a(t,wf(t)))}let Pae=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=nre(t,(n,r)=>(QA(this.node,r,"Start"),(i,{success:a})=>QA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const h1=new WeakMap,my=new WeakMap,_ae=e=>{const t=h1.get(e.target);t&&t(e)},Bae=e=>{e.forEach(_ae)};function Fae({root:e,...t}){const n=e||document;my.has(n)||my.set(n,{});const r=my.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Bae,{root:e,...t})),r[i]}function kae(e,t,n){const r=Fae(t);return h1.set(e,n),r.observe(e),()=>{h1.delete(e),r.unobserve(e)}}const Mae={some:0,all:1};let Rae=class extends _s{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mae[i]},s=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=f?h:m;g&&g(l)};return kae(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iae(t,n))&&this.startObserver()}unmount(){}};function Iae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oae={inView:{Feature:Rae},tap:{Feature:Pae},focus:{Feature:Tae},hover:{Feature:Sae}},Lae={layout:{ProjectionNode:gM,MeasureLayout:uM}},Vae={...Eie,...Oae,...Aae,...Lae},vM=Vre(Vae,Qre);function yM(e){const t=Df(()=>_u(e)),{isStatic:n}=I.useContext(wx);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function bM(e,t){const n=yM(t()),r=()=>n.set(t());return r(),N9(()=>{const i=()=>Cn.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),Wo(r)}}),n}function Nae(e){Fd.current=[],e();const t=bM(Fd.current,e);return Fd.current=void 0,t}function jae(e,t,n,r){if(typeof e=="function")return Nae(e);const i=typeof t=="function"?t:ire(t,n,r);return Array.isArray(e)?JA(e,i):JA([e],([a])=>i(a))}function JA(e,t){const n=Df(()=>[]);return bM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const xM=I.createContext(null);function Kae(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,o=e[i+a];if(!o)return e;const s=e[i],l=o.layout,f=Pn(l.min,l.max,.5);return a===1&&s.layout.max+n>f||a===-1&&s.layout.min+n<f?lte(e,i,i+a):e}function zae({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const s=Df(()=>vM[t]),l=[],f=I.useRef(!1);Ca(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Wae)},updateOrder:(m,g,b)=>{if(f.current)return;const $=Kae(l,m,g,b);l!==$&&(f.current=!0,r($.map(Uae).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{f.current=!1}),io.jsx(s,{...a,ref:o,ignoreStrict:!0,children:io.jsx(xM.Provider,{value:h,children:e})})}const qae=I.forwardRef(zae);function Uae(e){return e.value}function Wae(e,t){return e.layout.min-t.layout.min}function eS(e,t=0){return xr(e)?e:yM(t)}function Hae({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},s){const l=Df(()=>vM[r]),f=I.useContext(xM),h={x:eS(t.x),y:eS(t.y)},m=jae([h.x,h.y],([x,A])=>x||A?1:"unset");Ca(!!f,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:$}=f;return io.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:w}=A;w[g]&&$(n,h[g].get(),w[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:s,ignoreStrict:!0,children:e})}const Gae=I.forwardRef(Hae);var Xh={exports:{}},Yae=Xh.exports,tS;function Zae(){return tS||(tS=1,function(e,t){(function(n,r){e.exports=r()})(Yae,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var o=i.prototype,s=o.format;a.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,x){var A=x&&x.toUpperCase();return $||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,C,E){return C||E.slice(1)})})}(l,f===void 0?{}:f);return s.call(this,h)}}})}(Xh)),Xh.exports}var Xae=Zae();const Qae=ar(Xae);var gy,nS;function Jae(){if(nS)return gy;nS=1;var e=FT(),t=kT(),n=ab(),r=Aa(),i=om(),a=im(),o=_T(),s=am(),l="[object Map]",f="[object Set]",h=Object.prototype,m=h.hasOwnProperty;function g(b){if(b==null)return!0;if(i(b)&&(r(b)||typeof b=="string"||typeof b.splice=="function"||a(b)||s(b)||n(b)))return!b.length;var $=t(b);if($==l||$==f)return!b.size;if(o(b))return!e(b).length;for(var x in b)if(m.call(b,x))return!1;return!0}return gy=g,gy}var eoe=Jae();const toe=ar(eoe);var vy,rS;function noe(){if(rS)return vy;rS=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return vy=n,vy}var yy,iS;function roe(){if(iS)return yy;iS=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return yy=t,yy}var by,aS;function ioe(){if(aS)return by;aS=1;var e=roe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return by=n,by}var xy,oS;function aoe(){if(oS)return xy;oS=1;var e=ioe(),t=Ru(),n=Wp(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=t(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=e(f);var m=a.test(f);return m||o.test(f)?s(f.slice(2),m?2:8):i.test(f)?r:+f}return xy=l,xy}var Dy,sS;function ooe(){if(sS)return Dy;sS=1;var e=aoe(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*n}return i===i?i:0}return Dy=r,Dy}var $y,uS;function soe(){if(uS)return $y;uS=1;var e=noe(),t=NT(),n=ooe(),r=parseFloat,i=Math.min,a=Math.random;function o(s,l,f){if(f&&typeof f!="boolean"&&t(s,l,f)&&(l=f=void 0),f===void 0&&(typeof l=="boolean"?(f=l,l=void 0):typeof s=="boolean"&&(f=s,s=void 0)),s===void 0&&l===void 0?(s=0,l=1):(s=n(s),l===void 0?(l=s,s=0):l=n(l)),s>l){var h=s;s=l,l=h}if(f||s%1||l%1){var m=a();return i(s+m*(l-s+r("1e-"+((m+"").length-1))),l)}return e(s,l)}return $y=o,$y}var uoe=soe();const loe=ar(uoe);var Ey,lS;function coe(){if(lS)return Ey;lS=1;var e=R9();function t(n){return e(n)&&n!=+n}return Ey=t,Ey}var doe=coe();const foe=ar(doe),cS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},DM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?cS(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>cS(i,n,e))}},hoe=(e,t)=>{t.shouldUseNativeValidation&&DM(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(poe(t.names||Object.keys(e),r)){const o=Object.assign({},it(n,r));nn(o,"root",a),nn(n,r,o)}else nn(n,r,a)}return n},poe=(e,t)=>{const n=dS(t);return e.some(r=>dS(r).match(`^${n}\\.\\d+`))};function dS(e){return e.replace(/\]|\[/g,"")}function moe(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return a.shouldUseNativeValidation&&DM({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return s(f)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:hoe((s=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(s.inner||[]).reduce(function(f,h){if(f[h.path]||(f[h.path]={message:h.message,type:h.type}),l){var m=f[h.path].types,g=m&&m[h.type];f[h.path]=gP(h.path,l,f,h.type,g?[].concat(g,h.message):h.message)}return f},{})),a)};var s,l}))}catch(o){return Promise.reject(o)}}}var $d={exports:{}},goe=$d.exports,fS;function voe(){return fS||(fS=1,function(e,t){(function(n,r){r(t,de.default)})(goe,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var a=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hi<"u"?Hi:typeof self<"u"?self:{},s={exports:{}};(function(z,G){typeof document<"u"&&typeof navigator<"u"&&function(V,R){z.exports=R()}(o,function(){var V="http://www.w3.org/2000/svg",R="",K=!1,fe=-999999,M=function(p){K=!!p},oe=function(){return K},le=function(p){R=p},Se=function(){return R};function _e(c){return document.createElement(c)}function Be(c,p){var v,D=c.length,_;for(v=0;v<D;v+=1){_=c[v].prototype;for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&(p.prototype[B]=_[B])}}function Ge(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].pause()},resume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].resume()},setRate:function(v){var D,_=this.audios.length;for(D=0;D<_;D+=1)this.audios[D].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,D=this.audios.length;for(v=0;v<D;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Ne=function(){function c(v,D){var _=0,B=[],U;switch(v){case"int16":case"uint8c":U=1;break;default:U=1.1;break}for(_=0;_<D;_+=1)B.push(U);return B}function p(v,D){return v==="float32"?new Float32Array(D):v==="int16"?new Int16Array(D):v==="uint8c"?new Uint8ClampedArray(D):c(v,D)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function qe(c){return Array.apply(null,{length:c})}var ke=!0,je=null,Te="",Ye=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,xt=Math.floor,_t=Math.min,Wr=150,Jt=Math.PI/180,xe=.5519;function Ae(c,p,v,D){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=D<0?-1:1}function Fe(c,p){this.type=c,this.direction=p<0?-1:1}function Qe(c,p,v,D){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=D<0?-1:1}function et(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Je(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function kt(c){this.type="configError",this.nativeError=c}var Dt=function(){var c=0;return function(){return c+=1,Te+"__lottie_element_"+c}}();function bn(c,p,v){var D,_,B,U,ge,J,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,J=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=J;break;case 1:D=De,_=v,B=J;break;case 2:D=J,_=v,B=Ce;break;case 3:D=J,_=De,B=v;break;case 4:D=Ce,_=J,B=v;break;case 5:D=v,_=J,B=De;break}return[D,_,B]}function Dr(c,p,v){var D=Math.max(c,p,v),_=Math.min(c,p,v),B=D-_,U,ge=D===0?0:B/D,J=D/255;switch(D){case _:U=0;break;case c:U=p-v+B*(p<v?6:0),U/=6*B;break;case p:U=v-c+B*2,U/=6*B;break;case v:U=c-p+B*4,U/=6*B;break}return[U,ge,J]}function zt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),bn(v[0],v[1],v[2])}function Pt(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),bn(v[0],v[1],v[2])}function It(c,p){var v=Dr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),bn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(D,_,B){return D<0&&(D=0),_<0&&(_=0),B<0&&(B=0),"#"+c[D]+c[_]+c[B]}})();var qt=function(p){ke=!!p},pr=function(){return ke},Hr=function(p){je=p},li=function(){return je},Br=function(p){Wr=p},Ba=function(){return Wr},Bs=function(p){Te=p};function bt(c){return document.createElementNS(V,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var uo=function(){var c=1,p=[],v,D,_={onmessage:function(){},postMessage:function(ee){v({data:ee})}},B={postMessage:function(ee){_.onmessage({data:ee})}};function U(k){if(window.Worker&&window.Blob&&oe()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",k.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=k,_}function ge(){D||(D=U(function(ee){function Y(){function he(Le,$e){var ce,Q,ve=Le.length,Ke,Ie,lt,St;for(Q=0;Q<ve;Q+=1)if(ce=Le[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Et=ce.masksProperties;for(Ie=Et.length,Ke=0;Ke<Ie;Ke+=1)if(Et[Ke].pt.k.i)H(Et[Ke].pt.k);else for(St=Et[Ke].pt.k.length,lt=0;lt<St;lt+=1)Et[Ke].pt.k[lt].s&&H(Et[Ke].pt.k[lt].s[0]),Et[Ke].pt.k[lt].e&&H(Et[Ke].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),he(ce.layers,$e)):ce.ty===4?j(ce.shapes):ce.ty===5&&st(ce)}}function W(Le,$e){if(Le){var ce=0,Q=Le.length;for(ce=0;ce<Q;ce+=1)Le[ce].t===1&&(Le[ce].data.layers=L(Le[ce].data.refId,$e),he(Le[ce].data.layers,$e))}}function Z(Le,$e){for(var ce=0,Q=$e.length;ce<Q;){if($e[ce].id===Le)return $e[ce];ce+=1}return null}function L(Le,$e){var ce=Z(Le,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function j(Le){var $e,ce=Le.length,Q,ve;for($e=ce-1;$e>=0;$e-=1)if(Le[$e].ty==="sh")if(Le[$e].ks.k.i)H(Le[$e].ks.k);else for(ve=Le[$e].ks.k.length,Q=0;Q<ve;Q+=1)Le[$e].ks.k[Q].s&&H(Le[$e].ks.k[Q].s[0]),Le[$e].ks.k[Q].e&&H(Le[$e].ks.k[Q].e[0]);else Le[$e].ty==="gr"&&j(Le[$e].it)}function H(Le){var $e,ce=Le.i.length;for($e=0;$e<ce;$e+=1)Le.i[$e][0]+=Le.v[$e][0],Le.i[$e][1]+=Le.v[$e][1],Le.o[$e][0]+=Le.v[$e][0],Le.o[$e][1]+=Le.v[$e][1]}function ne(Le,$e){var ce=$e?$e.split("."):[100,100,100];return Le[0]>ce[0]?!0:ce[0]>Le[0]?!1:Le[1]>ce[1]?!0:ce[1]>Le[1]?!1:Le[2]>ce[2]?!0:ce[2]>Le[2]?!1:null}var ue=function(){var Le=[4,4,14];function $e(Q){var ve=Q.t.d;Q.t.d={k:[{s:ve,t:0}]}}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,Q=$e.chars.length;for(ce=0;ce<Q;ce+=1){var ve=$e.chars[ce];ve.data&&ve.data.shapes&&(j(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$e.chars[ce].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Le=[5,7,15];function $e(Q){var ve=Q.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===5&&$e(Q[ve])}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(Q[ve].ty==="gr")$e(Q[ve].it);else if(Q[ve].ty==="fl"||Q[ve].ty==="st")if(Q[ve].c.k&&Q[ve].c.k[0].i)for(lt=Q[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].c.k[Ie].s&&(Q[ve].c.k[Ie].s[0]/=255,Q[ve].c.k[Ie].s[1]/=255,Q[ve].c.k[Ie].s[2]/=255,Q[ve].c.k[Ie].s[3]/=255),Q[ve].c.k[Ie].e&&(Q[ve].c.k[Ie].e[0]/=255,Q[ve].c.k[Ie].e[1]/=255,Q[ve].c.k[Ie].e[2]/=255,Q[ve].c.k[Ie].e[3]/=255);else Q[ve].c.k[0]/=255,Q[ve].c.k[1]/=255,Q[ve].c.k[2]/=255,Q[ve].c.k[3]/=255}function ce(Q){var ve,Ke=Q.length;for(ve=0;ve<Ke;ve+=1)Q[ve].ty===4&&$e(Q[ve].shapes)}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(Q){var ve,Ke=Q.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(Q[ve].ty==="sh")if(Q[ve].ks.k.i)Q[ve].ks.k.c=Q[ve].closed;else for(lt=Q[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)Q[ve].ks.k[Ie].s&&(Q[ve].ks.k[Ie].s[0].c=Q[ve].closed),Q[ve].ks.k[Ie].e&&(Q[ve].ks.k[Ie].e[0].c=Q[ve].closed);else Q[ve].ty==="gr"&&$e(Q[ve].it)}function ce(Q){var ve,Ke,Ie=Q.length,lt,St,Et,Dn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=Q[Ke],ve.hasMask){var Ut=ve.masksProperties;for(St=Ut.length,lt=0;lt<St;lt+=1)if(Ut[lt].pt.k.i)Ut[lt].pt.k.c=Ut[lt].cl;else for(Dn=Ut[lt].pt.k.length,Et=0;Et<Dn;Et+=1)Ut[lt].pt.k[Et].s&&(Ut[lt].pt.k[Et].s[0].c=Ut[lt].cl),Ut[lt].pt.k[Et].e&&(Ut[lt].pt.k[Et].e[0].c=Ut[lt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(Q){if(ne(Le,Q.v)&&(ce(Q.layers),Q.assets)){var ve,Ke=Q.assets.length;for(ve=0;ve<Ke;ve+=1)Q.assets[ve].layers&&ce(Q.assets[ve].layers)}}}();function Ve(Le){Le.__complete||(nt(Le),ue(Le),me(Le),Oe(Le),tt(Le),he(Le.layers,Le.assets),W(Le.chars,Le.assets),Le.__complete=!0)}function st(Le){Le.t.a.length===0&&"m"in Le.t.p}var ct={};return ct.completeData=Ve,ct.checkColors=nt,ct.checkChars=me,ct.checkPathProperties=Oe,ct.checkShapes=tt,ct.completeLayers=he,ct}if(B.dataManager||(B.dataManager=Y()),B.assetLoader||(B.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&ci(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function W(Z,L,j,H){var ne,ue=new XMLHttpRequest;try{ue.responseType="json"}catch{}ue.onreadystatechange=function(){if(ue.readyState===4)if(ue.status===200)ne=he(ue),j(ne);else try{ne=he(ue),j(ne)}catch(me){H&&H(me)}};try{ue.open(["G","E","T"].join(""),Z,!0)}catch{ue.open(["G","E","T"].join(""),L+"/"+Z,!0)}ue.send()}return{load:W}}()),ee.data.type==="loadAnimation")B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.dataManager.completeData(he),B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;B.dataManager.completeData(pe),B.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&B.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){B.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){B.postMessage({id:ee.data.id,status:"error"})})}),D.onmessage=function(k){var ee=k.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function J(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadAnimation",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"loadData",path:k,fullPath:window.location.origin+window.location.pathname,id:pe})}function Re(k,ee,Y){ge();var pe=J(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Sc=function(){var c=function(){var W=_e("canvas");W.width=1,W.height=1;var Z=W.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function D(W,Z,L){var j="";if(W.e)j=W.p;else if(Z){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Z+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function _(W){var Z=0,L=setInterval((function(){var j=W.getBBox();(j.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function B(W){var Z=D(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function U(W){var Z=D(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var j={img:L,assetData:W};return j}function ge(W){var Z={assetData:W},L=D(W,this.assetsPath,this.path);return uo.loadData(L,(function(j){Z.img=j,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function J(W,Z){this.imagesLoadedCb=Z;var L,j=W.length;for(L=0;L<j;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function De(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===W)return this.images[Z].img;Z+=1}return null}function k(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(W,Z){W==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:J,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Nu(){}Nu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var D=this._cbs[p],_=0;_<D.length;_+=1)D[_](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var D=0,_=this._cbs[p].length;D<_;)this._cbs[p][D]===v&&(this._cbs[p].splice(D,1),D-=1,_-=1),D+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Tc=function(){function c(p){for(var v=p.split(`\r
85
85
  `),D={},_,B=0,U=0;U<v.length;U+=1)_=v[U].split(":"),_.length===2&&(D[_[0]]=_[1].trim(),B+=1);if(B===0)throw new Error;return D}return function(p){for(var v=[],D=0;D<p.length;D+=1){var _=p[D],B={time:_.tm,duration:_.dr};try{B.payload=JSON.parse(p[D].cm)}catch{try{B.payload=c(p[D].cm)}catch{B.payload={name:p[D].cm}}}v.push(B)}return v}}(),ju=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var D=0,_=this.compositions.length;D<_;){if(this.compositions[D].data&&this.compositions[D].data.nm===v)return this.compositions[D].prepareFrame&&this.compositions[D].data.xt&&this.compositions[D].prepareFrame(this.currentFrame),this.compositions[D].compInterface;D+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Fs={},Ku=function(p,v){Fs[p]=v};function ta(c){return Fs[c]}function na(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?na=function(v){return typeof v}:na=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},na(c)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Dt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=pr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ju(),this.imagePreloader=new Sc,this.audioController=Xe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ae("drawnFrame",0,0,0)};Be([Nu],yt),yt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ta(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),uo.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){uo.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&na(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},D=c.attributes;v.path=D.getNamedItem("data-animation-path")?D.getNamedItem("data-animation-path").value:D.getNamedItem("data-bm-path")?D.getNamedItem("data-bm-path").value:D.getNamedItem("bm-path")?D.getNamedItem("bm-path").value:"",v.animType=D.getNamedItem("data-anim-type")?D.getNamedItem("data-anim-type").value:D.getNamedItem("data-bm-type")?D.getNamedItem("data-bm-type").value:D.getNamedItem("bm-type")?D.getNamedItem("bm-type").value:D.getNamedItem("data-bm-renderer")?D.getNamedItem("data-bm-renderer").value:D.getNamedItem("bm-renderer")?D.getNamedItem("bm-renderer").value:"canvas";var _=D.getNamedItem("data-anim-loop")?D.getNamedItem("data-anim-loop").value:D.getNamedItem("data-bm-loop")?D.getNamedItem("data-bm-loop").value:D.getNamedItem("bm-loop")?D.getNamedItem("bm-loop").value:"";_==="false"?v.loop=!1:_==="true"?v.loop=!0:_!==""&&(v.loop=parseInt(_,10));var B=D.getNamedItem("data-anim-autoplay")?D.getNamedItem("data-anim-autoplay").value:D.getNamedItem("data-bm-autoplay")?D.getNamedItem("data-bm-autoplay").value:D.getNamedItem("bm-autoplay")?D.getNamedItem("bm-autoplay").value:!0;v.autoplay=B!=="false",v.name=D.getNamedItem("data-name")?D.getNamedItem("data-name").value:D.getNamedItem("data-bm-name")?D.getNamedItem("data-bm-name").value:D.getNamedItem("bm-name")?D.getNamedItem("bm-name").value:"";var U=D.getNamedItem("data-anim-prerender")?D.getNamedItem("data-anim-prerender").value:D.getNamedItem("data-bm-prerender")?D.getNamedItem("data-bm-prerender").value:D.getNamedItem("bm-prerender")?D.getNamedItem("bm-prerender").value:"";U==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,D=p.length,_=c.layers,B,U=_.length;for(B=0;B<U;B+=1)for(v=0;v<D;){if(p[v].id===_[B].id){p[v]=_[B];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(D=c.assets.length,v=0;v<D;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,uo.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=li();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,uo.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=Tc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=li();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,D=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,D)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},yt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},yt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&this.goToAndStop(_.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var D=Number(c);if(isNaN(D)){var _=this.getMarkerData(c);_&&(_.duration?this.playSegments([_.time,_.time+_.duration],!0):this.goToAndStop(_.time,!0))}else this.goToAndStop(D,p,v);this.play()}},yt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),na(c[0])==="object"){var v,D=c.length;for(v=0;v<D;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},yt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var D=this.renderer.getElementByPath(c);D.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ae(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Qe(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new Fe(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new et(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Je(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ae(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Qe(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new Fe(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new et(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new kt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var wn=function(){var c={},p=[],v=0,D=0,_=0,B=!0,U=!1;function ge($e){for(var ce=0,Q=$e.target;ce<D;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,D-=1,Q.isPaused||Re()),ce+=1}function J($e,ce){if(!$e)return null;for(var Q=0;Q<D;){if(p[Q].elem===$e&&p[Q].elem!==null)return p[Q].animation;Q+=1}var ve=new yt;return k(ve,$e),ve.setData($e,ce),ve}function De(){var $e,ce=p.length,Q=[];for($e=0;$e<ce;$e+=1)Q.push(p[$e].animation);return Q}function Ce(){_+=1,nt()}function Re(){_-=1}function k($e,ce){$e.addEventListener("destroy",ge),$e.addEventListener("_active",Ce),$e.addEventListener("_idle",Re),p.push({elem:ce,animation:$e}),D+=1}function ee($e){var ce=new yt;return k(ce,null),ce.setParams($e),ce}function Y($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setSpeed($e,ce)}function pe($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setDirection($e,ce)}function he($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.play($e)}function W($e){var ce=$e-v,Q;for(Q=0;Q<D;Q+=1)p[Q].animation.advanceTime(ce);v=$e,_&&!U?window.requestAnimationFrame(W):B=!0}function Z($e){v=$e,window.requestAnimationFrame(W)}function L($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.pause($e)}function j($e,ce,Q){var ve;for(ve=0;ve<D;ve+=1)p[ve].animation.goToAndStop($e,ce,Q)}function H($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.stop($e)}function ne($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.togglePause($e)}function ue($e){var ce;for(ce=D-1;ce>=0;ce-=1)p[ce].animation.destroy($e)}function me($e,ce,Q){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ke,Ie=ve.length;for(Ke=0;Ke<Ie;Ke+=1)Q&&ve[Ke].setAttribute("data-bm-type",Q),J(ve[Ke],$e);if(ce&&Ie===0){Q||(Q="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var St=_e("div");St.style.width="100%",St.style.height="100%",St.setAttribute("data-bm-type",Q),lt.appendChild(St),J(St,$e)}}function Oe(){var $e;for($e=0;$e<D;$e+=1)p[$e].animation.resize()}function nt(){!U&&_&&B&&(window.requestAnimationFrame(Z),B=!1)}function tt(){U=!0}function Ve(){U=!1,nt()}function st($e,ce){var Q;for(Q=0;Q<D;Q+=1)p[Q].animation.setVolume($e,ce)}function ct($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.mute($e)}function Le($e){var ce;for(ce=0;ce<D;ce+=1)p[ce].animation.unmute($e)}return c.registerAnimation=J,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=pe,c.play=he,c.pause=L,c.stop=H,c.togglePause=ne,c.searchAnimations=me,c.resize=Oe,c.goToAndStop=j,c.destroy=ue,c.freeze=tt,c.unfreeze=Ve,c.setVolume=st,c.mute=ct,c.unmute=Le,c.getRegisteredAnimations=De,c}(),lo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,L,j,H,ne){var ue=ne||("bez_"+Z+"_"+L+"_"+j+"_"+H).replace(/\./g,"p");if(p[ue])return p[ue];var me=new W([Z,L,j,H]);return p[ue]=me,me}var D=4,_=.001,B=1e-7,U=10,ge=11,J=1/(ge-1),De=typeof Float32Array=="function";function Ce(Z,L){return 1-3*L+3*Z}function Re(Z,L){return 3*L-6*Z}function k(Z){return 3*Z}function ee(Z,L,j){return((Ce(L,j)*Z+Re(L,j))*Z+k(L))*Z}function Y(Z,L,j){return 3*Ce(L,j)*Z*Z+2*Re(L,j)*Z+k(L)}function pe(Z,L,j,H,ne){var ue,me,Oe=0;do me=L+(j-L)/2,ue=ee(me,H,ne)-Z,ue>0?j=me:L=me;while(Math.abs(ue)>B&&++Oe<U);return me}function he(Z,L,j,H){for(var ne=0;ne<D;++ne){var ue=Y(L,j,H);if(ue===0)return L;var me=ee(L,j,H)-Z;L-=me/ue}return L}function W(Z){this._p=Z,this._mSampleValues=De?new Float32Array(ge):new Array(ge),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var j=this._p[0],H=this._p[1],ne=this._p[2],ue=this._p[3];return this._precomputed||this._precompute(),j===H&&ne===ue?L:L===0?0:L===1?1:ee(this._getTForX(L),H,ue)},_precompute:function(){var L=this._p[0],j=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==j||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],j=this._p[2],H=0;H<ge;++H)this._mSampleValues[H]=ee(H*J,L,j)},_getTForX:function(L){for(var j=this._p[0],H=this._p[2],ne=this._mSampleValues,ue=0,me=1,Oe=ge-1;me!==Oe&&ne[me]<=L;++me)ue+=J;--me;var nt=(L-ne[me])/(ne[me+1]-ne[me]),tt=ue+nt*J,Ve=Y(tt,j,H);return Ve>=_?he(L,tt,j,H):Ve===0?tt:pe(L,ue,ue+J,j,H)}},c}(),zu=function(){function c(p){return p.concat(qe(p.length))}return{double:c}}(),$r=function(){return function(c,p,v){var D=0,_=c,B=qe(_),U={newElement:ge,release:J};function ge(){var De;return D?(D-=1,De=B[D]):De=p(),De}function J(De){D===_&&(B=zu.double(B),_*=2),v&&v(De),B[D]=De,D+=1}return U}}(),qu=function(){function c(){return{addedLength:0,percents:Ne("float32",Ba()),lengths:Ne("float32",Ba())}}return $r(8,c)}(),Uu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var D,_=v.lengths.length;for(D=0;D<_;D+=1)qu.release(v.lengths[D]);v.lengths.length=0}return $r(8,c,p)}();function Pc(){var c=Math;function p(k,ee,Y,pe,he,W){var Z=k*pe+ee*he+Y*W-he*pe-W*k-Y*ee;return Z>-.001&&Z<.001}function v(k,ee,Y,pe,he,W,Z,L,j){if(Y===0&&W===0&&j===0)return p(k,ee,pe,he,Z,L);var H=c.sqrt(c.pow(pe-k,2)+c.pow(he-ee,2)+c.pow(W-Y,2)),ne=c.sqrt(c.pow(Z-k,2)+c.pow(L-ee,2)+c.pow(j-Y,2)),ue=c.sqrt(c.pow(Z-pe,2)+c.pow(L-he,2)+c.pow(j-W,2)),me;return H>ne?H>ue?me=H-ne-ue:me=ue-ne-H:ue>ne?me=ue-ne-H:me=ne-H-ue,me>-1e-4&&me<1e-4}var D=function(){return function(k,ee,Y,pe){var he=Ba(),W,Z,L,j,H,ne=0,ue,me=[],Oe=[],nt=qu.newElement();for(L=Y.length,W=0;W<he;W+=1){for(H=W/(he-1),ue=0,Z=0;Z<L;Z+=1)j=ht(1-H,3)*k[Z]+3*ht(1-H,2)*H*Y[Z]+3*(1-H)*ht(H,2)*pe[Z]+ht(H,3)*ee[Z],me[Z]=j,Oe[Z]!==null&&(ue+=ht(me[Z]-Oe[Z],2)),Oe[Z]=me[Z];ue&&(ue=Ht(ue),ne+=ue),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function _(k){var ee=Uu.newElement(),Y=k.c,pe=k.v,he=k.o,W=k.i,Z,L=k._length,j=ee.lengths,H=0;for(Z=0;Z<L-1;Z+=1)j[Z]=D(pe[Z],pe[Z+1],he[Z],W[Z+1]),H+=j[Z].addedLength;return Y&&L&&(j[Z]=D(pe[Z],pe[0],he[Z],W[0]),H+=j[Z].addedLength),ee.totalLength=H,ee}function B(k){this.segmentLength=0,this.points=new Array(k)}function U(k,ee){this.partialLength=k,this.point=ee}var ge=function(){var k={};return function(ee,Y,pe,he){var W=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+pe[0]+"_"+pe[1]+"_"+he[0]+"_"+he[1]).replace(/\./g,"p");if(!k[W]){var Z=Ba(),L,j,H,ne,ue,me=0,Oe,nt,tt=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+pe[0],ee[1]+pe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+he[0],Y[1]+he[1])&&(Z=2);var Ve=new B(Z);for(H=pe.length,L=0;L<Z;L+=1){for(nt=qe(H),ue=L/(Z-1),Oe=0,j=0;j<H;j+=1)ne=ht(1-ue,3)*ee[j]+3*ht(1-ue,2)*ue*(ee[j]+pe[j])+3*(1-ue)*ht(ue,2)*(Y[j]+he[j])+ht(ue,3)*Y[j],nt[j]=ne,tt!==null&&(Oe+=ht(nt[j]-tt[j],2));Oe=Ht(Oe),me+=Oe,Ve.points[L]=new U(Oe,nt),tt=nt}Ve.segmentLength=me,k[W]=Ve}return k[W]}}();function J(k,ee){var Y=ee.percents,pe=ee.lengths,he=Y.length,W=xt((he-1)*k),Z=k*ee.addedLength,L=0;if(W===he-1||W===0||Z===pe[W])return Y[W];for(var j=pe[W]>Z?-1:1,H=!0;H;)if(pe[W]<=Z&&pe[W+1]>Z?(L=(Z-pe[W])/(pe[W+1]-pe[W]),H=!1):W+=j,W<0||W>=he-1){if(W===he-1)return Y[W];H=!1}return Y[W]+(Y[W+1]-Y[W])*L}function De(k,ee,Y,pe,he,W){var Z=J(he,W),L=1-Z,j=c.round((L*L*L*k[0]+(Z*L*L+L*Z*L+L*L*Z)*Y[0]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[0]+Z*Z*Z*ee[0])*1e3)/1e3,H=c.round((L*L*L*k[1]+(Z*L*L+L*Z*L+L*L*Z)*Y[1]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[j,H]}var Ce=Ne("float32",8);function Re(k,ee,Y,pe,he,W,Z){he<0?he=0:he>1&&(he=1);var L=J(he,Z);W=W>1?1:W;var j=J(W,Z),H,ne=k.length,ue=1-L,me=1-j,Oe=ue*ue*ue,nt=L*ue*ue*3,tt=L*L*ue*3,Ve=L*L*L,st=ue*ue*me,ct=L*ue*me+ue*L*me+ue*ue*j,Le=L*L*me+ue*L*j+L*ue*j,$e=L*L*j,ce=ue*me*me,Q=L*me*me+ue*j*me+ue*me*j,ve=L*j*me+ue*j*j+L*me*j,Ke=L*j*j,Ie=me*me*me,lt=j*me*me+me*j*me+me*me*j,St=j*j*me+me*j*j+j*me*j,Et=j*j*j;for(H=0;H<ne;H+=1)Ce[H*4]=c.round((Oe*k[H]+nt*Y[H]+tt*pe[H]+Ve*ee[H])*1e3)/1e3,Ce[H*4+1]=c.round((st*k[H]+ct*Y[H]+Le*pe[H]+$e*ee[H])*1e3)/1e3,Ce[H*4+2]=c.round((ce*k[H]+Q*Y[H]+ve*pe[H]+Ke*ee[H])*1e3)/1e3,Ce[H*4+3]=c.round((Ie*k[H]+lt*Y[H]+St*pe[H]+Et*ee[H])*1e3)/1e3;return Ce}return{getSegmentsLength:_,getNewSegment:Re,getPointInSegment:De,buildBezierData:ge,pointOnLine2D:p,pointOnLine3D:v}}var Gr=Pc(),at=function(){var c=fe,p=Math.abs;function v(he,W){var Z=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ne("float32",this.pv.length));for(var j=W.lastIndex,H=j,ne=this.keyframes.length-1,ue=!0,me,Oe,nt;ue;){if(me=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&he>=Oe.t-Z){me.h&&(me=Oe),j=0;break}if(Oe.t-Z>he){j=H;break}H<ne-1?H+=1:(j=0,ue=!1)}nt=this.keyframesMetadata[H]||{};var tt,Ve,st,ct,Le,$e,ce=Oe.t-Z,Q=me.t-Z,ve;if(me.to){nt.bezierData||(nt.bezierData=Gr.buildBezierData(me.s,Oe.s||me.e,me.to,me.ti));var Ke=nt.bezierData;if(he>=ce||he<Q){var Ie=he>=ce?Ke.points.length-1:0;for(Ve=Ke.points[Ie].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Ie].point[tt]}else{nt.__fnct?$e=nt.__fnct:($e=lo.getBezierEasing(me.o.x,me.o.y,me.i.x,me.i.y,me.n).get,nt.__fnct=$e),st=$e((he-Q)/(ce-Q));var lt=Ke.segmentLength*st,St,Et=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Le=W.lastFrame<he&&W._lastKeyframeIndex===H?W._lastPoint:0,ue=!0,ct=Ke.points.length;ue;){if(Et+=Ke.points[Le].partialLength,lt===0||st===0||Le===Ke.points.length-1){for(Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt];break}else if(lt>=Et&&lt<Et+Ke.points[Le+1].partialLength){for(St=(lt-Et)/Ke.points[Le+1].partialLength,Ve=Ke.points[Le].point.length,tt=0;tt<Ve;tt+=1)L[tt]=Ke.points[Le].point[tt]+(Ke.points[Le+1].point[tt]-Ke.points[Le].point[tt])*St;break}Le<ct-1?Le+=1:ue=!1}W._lastPoint=Le,W._lastAddedLength=Et-Ke.points[Le].partialLength,W._lastKeyframeIndex=H}}else{var Dn,Ut,dr,Zn,Ln;if(ne=me.s.length,ve=Oe.s||me.e,this.sh&&me.h!==1)if(he>=ce)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(he<=Q)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var jn=B(me.s),Kn=B(ve),vr=(he-Q)/(ce-Q);_(L,D(jn,Kn,vr))}else for(H=0;H<ne;H+=1)me.h!==1&&(he>=ce?st=1:he<Q?st=0:(me.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?$e=nt.__fnct[H]:(Dn=me.o.x[H]===void 0?me.o.x[0]:me.o.x[H],Ut=me.o.y[H]===void 0?me.o.y[0]:me.o.y[H],dr=me.i.x[H]===void 0?me.i.x[0]:me.i.x[H],Zn=me.i.y[H]===void 0?me.i.y[0]:me.i.y[H],$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:(Dn=me.o.x,Ut=me.o.y,dr=me.i.x,Zn=me.i.y,$e=lo.getBezierEasing(Dn,Ut,dr,Zn).get,me.keyframeMetadata=$e),st=$e((he-Q)/(ce-Q)))),ve=Oe.s||me.e,Ln=me.h===1?me.s[H]:me.s[H]+(ve[H]-me.s[H])*st,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=j,L}function D(he,W,Z){var L=[],j=he[0],H=he[1],ne=he[2],ue=he[3],me=W[0],Oe=W[1],nt=W[2],tt=W[3],Ve,st,ct,Le,$e;return st=j*me+H*Oe+ne*nt+ue*tt,st<0&&(st=-st,me=-me,Oe=-Oe,nt=-nt,tt=-tt),1-st>1e-6?(Ve=Math.acos(st),ct=Math.sin(Ve),Le=Math.sin((1-Z)*Ve)/ct,$e=Math.sin(Z*Ve)/ct):(Le=1-Z,$e=Z),L[0]=Le*j+$e*me,L[1]=Le*H+$e*Oe,L[2]=Le*ne+$e*nt,L[3]=Le*ue+$e*tt,L}function _(he,W){var Z=W[0],L=W[1],j=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Z*j,1-2*L*L-2*j*j),ue=Math.asin(2*Z*L+2*j*H),me=Math.atan2(2*Z*H-2*L*j,1-2*Z*Z-2*j*j);he[0]=ne/Jt,he[1]=ue/Jt,he[2]=me/Jt}function B(he){var W=he[0]*Jt,Z=he[1]*Jt,L=he[2]*Jt,j=Math.cos(W/2),H=Math.cos(Z/2),ne=Math.cos(L/2),ue=Math.sin(W/2),me=Math.sin(Z/2),Oe=Math.sin(L/2),nt=j*H*ne-ue*me*Oe,tt=ue*me*ne+j*H*Oe,Ve=ue*H*ne+j*me*Oe,st=j*me*ne-ue*H*Oe;return[tt,Ve,st,nt]}function U(){var he=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(he===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&he>=Z||this._caching.lastFrame<W&&he<W))){this._caching.lastFrame>=he&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(he,this._caching);this.pv=L}return this._caching.lastFrame=he,this.pv}function ge(he){var W;if(this.propType==="unidimensional")W=he*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Z=0,L=this.v.length;Z<L;)W=he[Z]*this.mult,p(this.v[Z]-W)>1e-5&&(this.v[Z]=W,this._mdf=!0),Z+=1}function J(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var he,W=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(he=0;he<W;he+=1)Z=this.effectsSequence[he](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function De(he){this.effectsSequence.push(he),this.container.addDynamicProperty(this)}function Ce(he,W,Z,L){this.propType="unidimensional",this.mult=Z||1,this.data=W,this.v=Z?W.k*Z:W.k,this.pv=W.k,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.addEffect=De}function Re(he,W,Z,L){this.propType="multidimensional",this.mult=Z||1,this.data=W,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,H=W.k.length;for(this.v=Ne("float32",H),this.pv=Ne("float32",H),this.vel=Ne("float32",H),j=0;j<H;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=ge,this.addEffect=De}function k(he,W,Z,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.effectsSequence=[U.bind(this)],this.addEffect=De}function ee(he,W,Z,L){this.propType="multidimensional";var j,H=W.k.length,ne,ue,me,Oe;for(j=0;j<H-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(ne=W.k[j].s,ue=W.k[j+1].s,me=W.k[j].to,Oe=W.k[j].ti,(ne.length===2&&!(ne[0]===ue[0]&&ne[1]===ue[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ne[0]+me[0],ne[1]+me[1])&&Gr.pointOnLine2D(ne[0],ne[1],ue[0],ue[1],ue[0]+Oe[0],ue[1]+Oe[1])||ne.length===3&&!(ne[0]===ue[0]&&ne[1]===ue[1]&&ne[2]===ue[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ne[0]+me[0],ne[1]+me[1],ne[2]+me[2])&&Gr.pointOnLine3D(ne[0],ne[1],ne[2],ue[0],ue[1],ue[2],ue[0]+Oe[0],ue[1]+Oe[1],ue[2]+Oe[2]))&&(W.k[j].to=null,W.k[j].ti=null),ne[0]===ue[0]&&ne[1]===ue[1]&&me[0]===0&&me[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===ue[2]&&me[2]===0&&Oe[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[U.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.getValue=J,this.setVValue=ge,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ne("float32",nt),this.pv=Ne("float32",nt),j=0;j<nt;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Ne("float32",nt)},this.addEffect=De}function Y(he,W,Z,L,j){var H;if(!W.k.length)H=new Ce(he,W,L,j);else if(typeof W.k[0]=="number")H=new Re(he,W,L,j);else switch(Z){case 0:H=new k(he,W,L,j);break;case 1:H=new ee(he,W,L,j);break}return H.effectsSequence.length&&j.addDynamicProperty(H),H}var pe={getProp:Y};return pe}();function dn(){}dn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var ra=function(){function c(){return Ne("float32",2)}return $r(8,c)}();function di(){this.c=!1,this._length=0,this._maxLength=8,this.v=qe(this._maxLength),this.o=qe(this._maxLength),this.i=qe(this._maxLength)}di.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=ra.newElement(),this.o[v]=ra.newElement(),this.i[v]=ra.newElement(),v+=1},di.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},di.prototype.doubleArrayLength=function(){this.v=this.v.concat(qe(this._maxLength)),this.i=this.i.concat(qe(this._maxLength)),this.o=this.o.concat(qe(this._maxLength)),this._maxLength*=2},di.prototype.setXYAt=function(c,p,v,D,_){var B;switch(this._length=Math.max(this._length,D+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":B=this.v;break;case"i":B=this.i;break;case"o":B=this.o;break;default:B=[];break}(!B[D]||B[D]&&!_)&&(B[D]=ra.newElement()),B[D][0]=c,B[D][1]=p},di.prototype.setTripleAt=function(c,p,v,D,_,B,U,ge){this.setXYAt(c,p,"v",U,ge),this.setXYAt(v,D,"o",U,ge),this.setXYAt(_,B,"i",U,ge)},di.prototype.reverse=function(){var c=new di;c.setPathData(this.c,this._length);var p=this.v,v=this.o,D=this.i,_=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],D[0][0],D[0][1],v[0][0],v[0][1],0,!1),_=1);var B=this._length-1,U=this._length,ge;for(ge=_;ge<U;ge+=1)c.setTripleAt(p[B][0],p[B][1],D[B][0],D[B][1],v[B][0],v[B][1],ge,!1),B-=1;return c},di.prototype.length=function(){return this._length};var Yn=function(){function c(){return new di}function p(_){var B=_._length,U;for(U=0;U<B;U+=1)ra.release(_.v[U]),ra.release(_.i[U]),ra.release(_.o[U]),_.v[U]=null,_.i[U]=null,_.o[U]=null;_._length=0,_.c=!1}function v(_){var B=D.newElement(),U,ge=_._length===void 0?_.v.length:_._length;for(B.setLength(ge),B.c=_.c,U=0;U<ge;U+=1)B.setTripleAt(_.v[U][0],_.v[U][1],_.o[U][0],_.o[U][1],_.i[U][0],_.i[U][1],U);return B}var D=$r(4,c,p);return D.clone=v,D}();function ks(){this._length=0,this._maxLength=4,this.shapes=qe(this._maxLength)}ks.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(qe(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},ks.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Yn.release(this.shapes[c]);this._length=0};var Fa=function(){var c={newShapeCollection:_,release:B},p=0,v=4,D=qe(v);function _(){var U;return p?(p-=1,U=D[p]):U=new ks,U}function B(U){var ge,J=U._length;for(ge=0;ge<J;ge+=1)Yn.release(U.shapes[ge]);U._length=0,p===v&&(D=zu.double(D),v*=2),D[p]=U,p+=1}return c}(),fi=function(){var c=-999999;function p(W,Z,L){var j=L.lastIndex,H,ne,ue,me,Oe,nt,tt,Ve,st,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],ue=!0,j=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],ue=!0;else{for(var Le=j,$e=ct.length-1,ce=!0,Q,ve,Ke;ce&&(Q=ct[Le],ve=ct[Le+1],!(ve.t-this.offsetTime>W));)Le<$e-1?Le+=1:ce=!1;if(Ke=this.keyframesMetadata[Le]||{},ue=Q.h===1,j=Le,!ue){if(W>=ve.t-this.offsetTime)Ve=1;else if(W<Q.t-this.offsetTime)Ve=0;else{var Ie;Ke.__fnct?Ie=Ke.__fnct:(Ie=lo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,Ke.__fnct=Ie),Ve=Ie((W-(Q.t-this.offsetTime))/(ve.t-this.offsetTime-(Q.t-this.offsetTime)))}ne=ve.s?ve.s[0]:Q.e[0]}H=Q.s[0]}for(nt=Z._length,tt=H.i[0].length,L.lastIndex=j,me=0;me<nt;me+=1)for(Oe=0;Oe<tt;Oe+=1)st=ue?H.i[me][Oe]:H.i[me][Oe]+(ne.i[me][Oe]-H.i[me][Oe])*Ve,Z.i[me][Oe]=st,st=ue?H.o[me][Oe]:H.o[me][Oe]+(ne.o[me][Oe]-H.o[me][Oe])*Ve,Z.o[me][Oe]=st,st=ue?H.v[me][Oe]:H.v[me][Oe]+(ne.v[me][Oe]-H.v[me][Oe])*Ve,Z.v[me][Oe]=st}function v(){var W=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,j=this._caching.lastFrame;return j!==c&&(j<Z&&W<Z||j>L&&W>L)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function D(){this.paths=this.localShapeCollection}function _(W,Z){if(W._length!==Z._length||W.c!==Z.c)return!1;var L,j=W._length;for(L=0;L<j;L+=1)if(W.v[L][0]!==Z.v[L][0]||W.v[L][1]!==Z.v[L][1]||W.o[L][0]!==Z.o[L][0]||W.o[L][1]!==Z.o[L][1]||W.i[L][0]!==Z.i[L][0]||W.i[L][1]!==Z.i[L][1])return!1;return!0}function B(W){_(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function U(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Z,L=this.effectsSequence.length;for(Z=0;Z<L;Z+=1)W=this.effectsSequence[Z](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ge(W,Z,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var j=L===3?Z.pt.k:Z.ks.k;this.v=Yn.clone(j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=D,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=U,ge.prototype.setVValue=B,ge.prototype.addEffect=J;function De(W,Z,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var j=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Yn.clone(this.v),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=D,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}De.prototype.getValue=U,De.prototype.interpolateShape=p,De.prototype.setVValue=B,De.prototype.addEffect=J;var Ce=function(){var W=xe;function Z(L,j){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Fa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,j.p,1,0,this),this.s=at.getProp(L,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:D,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,ue=this.s.v[1]/2,me=this.d!==3,Oe=this.v;Oe.v[0][0]=j,Oe.v[0][1]=H-ue,Oe.v[1][0]=me?j+ne:j-ne,Oe.v[1][1]=H,Oe.v[2][0]=j,Oe.v[2][1]=H+ue,Oe.v[3][0]=me?j-ne:j+ne,Oe.v[3][1]=H,Oe.i[0][0]=me?j-ne*W:j+ne*W,Oe.i[0][1]=H-ue,Oe.i[1][0]=me?j+ne:j-ne,Oe.i[1][1]=H-ue*W,Oe.i[2][0]=me?j+ne*W:j-ne*W,Oe.i[2][1]=H+ue,Oe.i[3][0]=me?j-ne:j+ne,Oe.i[3][1]=H+ue*W,Oe.o[0][0]=me?j+ne*W:j-ne*W,Oe.o[0][1]=H-ue,Oe.o[1][0]=me?j+ne:j-ne,Oe.o[1][1]=H+ue*W,Oe.o[2][0]=me?j-ne*W:j+ne*W,Oe.o[2][1]=H+ue,Oe.o[3][0]=me?j-ne:j+ne,Oe.o[3][1]=H-ue*W}},Be([dn],Z),Z}(),Re=function(){function W(Z,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),L.sy===1?(this.ir=at.getProp(Z,L.ir,0,0,this),this.is=at.getProp(Z,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Z,L.pt,0,0,this),this.p=at.getProp(Z,L.p,1,0,this),this.r=at.getProp(Z,L.r,0,Jt,this),this.or=at.getProp(Z,L.or,0,0,this),this.os=at.getProp(Z,L.os,0,.01,this),this.localShapeCollection=Fa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:D,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,j=Math.PI*2/L,H=!0,ne=this.or.v,ue=this.ir.v,me=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),tt=2*Math.PI*ue/(L*2),Ve,st,ct,Le,$e=-Math.PI/2;$e+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ve=0;Ve<L;Ve+=1){st=H?ne:ue,ct=H?me:Oe,Le=H?nt:tt;var Q=st*Math.cos($e),ve=st*Math.sin($e),Ke=Q===0&&ve===0?0:ve/Math.sqrt(Q*Q+ve*ve),Ie=Q===0&&ve===0?0:-Q/Math.sqrt(Q*Q+ve*ve);Q+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(Q,ve,Q-Ke*Le*ct*ce,ve-Ie*Le*ct*ce,Q+Ke*Le*ct*ce,ve+Ie*Le*ct*ce,Ve,!0),H=!H,$e+=j*ce}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),j=Math.PI*2/L,H=this.or.v,ne=this.os.v,ue=2*Math.PI*H/(L*4),me,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,me=0;me<L;me+=1){var tt=H*Math.cos(Oe),Ve=H*Math.sin(Oe),st=tt===0&&Ve===0?0:Ve/Math.sqrt(tt*tt+Ve*Ve),ct=tt===0&&Ve===0?0:-tt/Math.sqrt(tt*tt+Ve*Ve);tt+=+this.p.v[0],Ve+=+this.p.v[1],this.v.setTripleAt(tt,Ve,tt-st*ue*ne*nt,Ve-ct*ue*ne*nt,tt+st*ue*ne*nt,Ve+ct*ue*ne*nt,me,!0),Oe+=j*nt}this.paths.length=0,this.paths[0]=this.v}},Be([dn],W),W}(),k=function(){function W(Z,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Fa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),this.p=at.getProp(Z,L.p,1,0,this),this.s=at.getProp(Z,L.s,1,0,this),this.r=at.getProp(Z,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],j=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,ue=_t(H,ne,this.r.v),me=ue*(1-xe);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+ue,L+H,j-ne+me,0,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-me,L+H,j+ne-ue,1,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j+ne,L+H-ue,j+ne,L+H-me,j+ne,2,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+me,j+ne,L-H+ue,j+ne,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-ue,L-H,j+ne-me,4,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+me,L-H,j-ne+ue,5,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+ue,j-ne,L-H+me,j-ne,6,!0),this.v.setTripleAt(L+H-ue,j-ne,L+H-me,j-ne,L+H-ue,j-ne,7,!0)):(this.v.setTripleAt(L-H,j+ne,L-H+me,j+ne,L-H,j+ne,2),this.v.setTripleAt(L-H,j-ne,L-H,j-ne+me,L-H,j-ne,3))):(this.v.setTripleAt(L+H,j-ne+ue,L+H,j-ne+me,L+H,j-ne+ue,0,!0),ue!==0?(this.v.setTripleAt(L+H-ue,j-ne,L+H-ue,j-ne,L+H-me,j-ne,1,!0),this.v.setTripleAt(L-H+ue,j-ne,L-H+me,j-ne,L-H+ue,j-ne,2,!0),this.v.setTripleAt(L-H,j-ne+ue,L-H,j-ne+ue,L-H,j-ne+me,3,!0),this.v.setTripleAt(L-H,j+ne-ue,L-H,j+ne-me,L-H,j+ne-ue,4,!0),this.v.setTripleAt(L-H+ue,j+ne,L-H+ue,j+ne,L-H+me,j+ne,5,!0),this.v.setTripleAt(L+H-ue,j+ne,L+H-me,j+ne,L+H-ue,j+ne,6,!0),this.v.setTripleAt(L+H,j+ne-ue,L+H,j+ne-ue,L+H,j+ne-me,7,!0)):(this.v.setTripleAt(L-H,j-ne,L-H+me,j-ne,L-H,j-ne,1,!0),this.v.setTripleAt(L-H,j+ne,L-H,j+ne-me,L-H,j+ne,2,!0),this.v.setTripleAt(L+H,j+ne,L+H-me,j+ne,L+H,j+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:D},Be([dn],W),W}();function ee(W,Z,L){var j;if(L===3||L===4){var H=L===3?Z.pt:Z.ks,ne=H.k;ne.length?j=new De(W,Z,L):j=new ge(W,Z,L)}else L===5?j=new k(W,Z):L===6?j=new Ce(W,Z):L===7&&(j=new Re(W,Z));return j.k&&W.addDynamicProperty(j),j}function Y(){return ge}function pe(){return De}var he={};return he.getShapeProp=ee,he.getConstructorFunction=Y,he.getKeyframedConstructorFunction=pe,he}();/*!
86
86
  Transformation Matrix v2.0
87
87
  (c) Epistemex 2014-2015
@@ -170,4 +170,4 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge
170
170
  transform: scale(1);
171
171
  }
172
172
  }
173
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ft.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ft.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:o,step:s,styles:l}=this.props,f=Ya(i.open),h={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let m;if(e){const g=e;m=de.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:s,...h})}else m=de.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},de.createElement("span",{style:l.beaconInner}),de.createElement("span",{style:l.beaconOuter}));return m}};function ihe({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return de.default.createElement("button",{style:a,type:"button",...t},de.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("g",null,de.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var ahe=ihe;function ohe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:s,tooltipProps:l}=e,{content:f,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:x}=s,A={};return A.primary=de.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...a}),b&&!i&&(A.skip=de.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(A.back=de.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&de.createElement(ahe,{"data-test-id":"button-close",styles:$.buttonClose,...n}),de.createElement("div",{key:"JoyrideTooltip","aria-label":Ya(x??f),className:"react-joyride__tooltip",style:$.tooltip,...l},de.createElement("div",{style:$.tooltipContainer},x&&de.createElement("h1",{"aria-label":Ya(x),style:$.tooltipTitle},x),de.createElement("div",{style:$.tooltipContent},f)),!g&&de.createElement("div",{style:$.tooltipFooter},de.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var she=ohe,uhe=class extends de.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:o,close:s,last:l,next:f,nextLabelWithProgress:h,skip:m}=a.locale,g=Ya(o),b=Ya(s),$=Ya(l),x=Ya(f),A=Ya(m);let w=s,C=b;if(e){if(w=f,C=x,a.showProgress&&!n){const E=Ya(h,{step:t+1,steps:i});w=I1(h,t+1,i),C=E}n&&(w=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:w,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:o,tooltipComponent:s,...l}=a;let f;if(s){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=s;f=de.createElement(m,{...h})}else f=de.createElement(she,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},lhe=class extends de.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&o.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return de.createElement(uhe,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Ss({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:o,helpers:s,index:l,lifecycle:f,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:x}=jp(e,this.props),A=s.info(),w=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),E=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),T=$("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),P=a&&l===e.index;if(T&&(E||P)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==rn.START&&f===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const F=Vo(g.target),q=!!F;q&&Rfe(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ui.STEP_BEFORE}):(console.warn(q?"Target not visible":"Target not mounted",g),r({...A,type:Ui.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:k6(g)||w?Ft.TOOLTIP:Ft.BEACON}),$("index")&&Ss({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ui.BEACON}),$("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new nhe(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return k6(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,s=Vo(o.target);return!DI(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(hD,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},de.createElement(rhe,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},EI=class extends de.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:s}=this.props;ft.function(s)&&s(o)}),mt(this,"handleKeyboard",o=>{const{index:s,lifecycle:l}=this.state,{steps:f}=this.props,h=f[s];l===Ft.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:s}=this.props;xl(this.props,s[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Xfe({...e,controlled:r&&ft.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ss({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!vs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;I6(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:s,stepIndex:l,steps:f}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:x,update:A}=this.store,{changed:w}=jp(e,this.props),{changed:C,changedFrom:E}=jp(t,this.state),T=xl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(I6(f,o)?b(f):console.warn("Steps are not valid",f)),w("run")&&(s?$(l):x()),F){let ae=ft.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(ae=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!q&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:T}));const te={...this.state,index:i,step:T};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const ae=xl(this.props,f[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const ae=xl(this.props,f[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER}),this.callback({...te,type:Ui.TOUR_END,step:ae,index:t.index}),g()}else E("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...te,type:Ui.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...te,type:Ui.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:o,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:f}=this.props,h=xl(this.props,f[t]),m=Vo(h.target),g=zfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=If(m,a),$=af(m,a);let x=Math.floor(Ofe(m,s,a))||0;Ss({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),w=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:E}=A;!["bottom"].includes(E)&&!b&&(x=Math.floor(C.popper.top-s))}else if(n===Ft.TOOLTIP&&w){const{flipped:C,offsets:E,placement:T}=w;["top","right","left"].includes(T)&&!C&&!b?x=Math.floor(E.popper.top-s):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Lfe(x,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!vs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:s}=this.props,l=n===Nt.RUNNING,f={};if(l&&s[e]){const h=xl(this.props,s[e]);f.step=de.createElement(lhe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),f.overlay=de.createElement(the,{id:"react-joyride-portal"},de.createElement(ehe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(EI,"defaultProps",Wfe);var che=EI;function L6(e,t,n){return r=>{if(!(t.length===0||t.some(a=>!yM(r.getAll(a),e.getAll(a)))))return yn("[nuqs `%s`] no change, returning previous",t.join(","),r),r;const i=O1(e,t,n);return yn("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),r,i),i}}function O1(e,t,n){if(t.length===0)return e;const r=n?new URLSearchParams(e):e;for(const i of e.keys())t.includes(i)||r.delete(i);return r}let np=0;function dhe(e=1){np=e}function fhe(){np=Math.max(0,np-1),!(np>0)&&CI()}function CI(){yn("[nuqs] Aborting queues"),Rd.abortAll(),Md.abort().forEach(e=>Rd.queuedQuerySync.emit(e))}const L1="__nuqs__";function hhe(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function phe(e){var t,n,r;return typeof history>"u"?!1:(t=history.nuqs)!=null&&t.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(Lu(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!((r=(n=history.nuqs)==null?void 0:n.adapters)!=null&&r.includes(e))}function mhe(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function ghe(e,t){if(!phe(t))return;let n=typeof location=="object"?location.search:"";e.on("update",o=>{const s=o.toString();n=s.length?"?"+s:""}),window.addEventListener("popstate",()=>{n=location.search,CI()}),yn("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function r(o){fhe();try{if(new URL(o,location.origin).search===n)return}catch{}try{e.emit("update",hhe(o))}catch(s){console.error(s)}}const i=history.pushState,a=history.replaceState;history.pushState=function(s,l,f){i.call(history,s,"",f),f&&l!==L1&&r(f)},history.replaceState=function(s,l,f){a.call(history,s,"",f),f&&l!==L1&&r(f)},mhe(t)}function vhe({adapter:e,useNavigate:t,useSearchParams:n}){const r=kx();function i(o){const s=t(),l=a(o),f=I.useCallback((h,m)=>{var $;I.startTransition(()=>{r.emit("update",h)});const g=new URL(location.href);g.search=Oae(h),yn(`[nuqs ${e}] Updating url: %s`,g);const b=m.history==="push"?history.pushState:history.replaceState;dhe(m.shallow?1:2),b.call(history,history.state,L1,g),m.shallow===!1&&s({hash:g.hash,search:g.search},{replace:!0,preventScrollReset:!0,state:($=history.state)==null?void 0:$.usr}),m.scroll&&window.scrollTo(0,0)},[s]);return{searchParams:l,updateUrl:f,autoResetQueueOnUpdate:!1}}function a(o=[]){const[s]=n(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,f]=I.useState(()=>typeof location>"u"?O1(s,o,!0):O1(new URLSearchParams(location.search),o,!1));return I.useEffect(()=>{function h(){f(L6(new URLSearchParams(location.search),o,!1))}function m(g){f(L6(g,o,!0))}return r.on("update",m),window.addEventListener("popstate",h),()=>{r.off("update",m),window.removeEventListener("popstate",h)}},[o.join("&")]),l}return ghe(r,e),{NuqsAdapter:jae(i),useOptimisticSearchParams:a}}const yhe=vhe({adapter:"react-router-v6",useNavigate:Z5.useNavigate,useSearchParams:Z5.useSearchParams}),bhe=yhe.NuqsAdapter;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Kk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=UP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=mf;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=YP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=cJ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ek;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=dQ;exports.$293f70390ea03370$export$497855f14858aa34=iJ;exports.$32489daedd52963e$export$1315d136e6f7581=gJ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=NQ;exports.$36a0ac60f04457c5$export$136073280381448e=tQ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=P9;exports.$40df3f8667284809$export$d55e7ee900f34e93=xJ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=QX;exports.$47b897dc8cdb026b$export$8d15029008292ae=mQ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=IJ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=hQ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=fJ;exports.$64244302c3013299$export$dd0bbc9b26defe37=$X;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=IX;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=bJ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=tee;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=XX;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=OJ;exports.$a916eb452884faea$export$b7a616150fdb9f44=RX;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=zJ;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=YJ;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$7;exports.$bcca50147b47f54d$export$56b2c08e277f365=pQ;exports.$c132121280ec012d$export$50eacbbf140a3141=ZQ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=QQ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=uJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=JX;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=nee;exports.$f2f8a6077418541e$export$542a6fd13ac93354=VQ;exports.$fae977aafc393c5c$export$588937bcd60ade55=XZ;exports.$fae977aafc393c5c$export$6b862160d295c8e=ZZ;exports.ACTIONS=rn;exports.AdvancedImage=Tq;exports.CSVLink=Ace;exports.Cloudinary=EU;exports.Controller=PG;exports.EVENTS=Ui;exports.FormProvider=SG;exports.LazyMotion=Aoe;exports.Lottie=boe;exports.M=va;exports.NuqsAdapter=bhe;exports.ReorderGroup=Dae;exports.ReorderItem=wae;exports.STATUS=Nt;exports._=YW;exports._$1=Ou;exports.autoUpdate=JH;exports.capitalize=FK;exports.components_default=che;exports.dayjs=uee;exports.dayjs_minExports=_9;exports.domAnimation=sce;exports.ee=M9;exports.flexRender=_ce;exports.flip=uG;exports.isEmpty=Fae;exports.isEqual=aee;exports.isNaN=foe;exports.isNil=Pce;exports.isNumber=cee;exports.isUndefined=Oee;exports.lazyload=Dq;exports.localizedFormat=Pae;exports.lodashExports=jT;exports.m=mse;exports.o=moe;exports.offset=oG;exports.parseAsString=Jae;exports.placeholder=wq;exports.prismExports=Vee;exports.q=Qb;exports.random=loe;exports.shift=sG;exports.some=WW;exports.transform=Vce;exports.useController=dP;exports.useFieldArray=qG;exports.useFloating=xG;exports.useFloating$1=tP;exports.useFocus=DG;exports.useForm=UG;exports.useFormContext=cf;exports.useHover=yG;exports.useInteractions=$G;exports.useQueryState=toe;exports.useQueryStates=xM;exports.useRole=CG;exports.useVirtualizer=rY;exports.useWatch=cP;
173
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ft.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ft.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:o,step:s,styles:l}=this.props,f=Ya(i.open),h={"aria-label":f,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:f};let m;if(e){const g=e;m=de.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:s,...h})}else m=de.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},de.createElement("span",{style:l.beaconInner}),de.createElement("span",{style:l.beaconOuter}));return m}};function ihe({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return de.default.createElement("button",{style:a,type:"button",...t},de.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("g",null,de.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var ahe=ihe;function ohe(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:o,step:s,tooltipProps:l}=e,{content:f,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:x}=s,A={};return A.primary=de.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...a}),b&&!i&&(A.skip=de.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(A.back=de.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&de.createElement(ahe,{"data-test-id":"button-close",styles:$.buttonClose,...n}),de.createElement("div",{key:"JoyrideTooltip","aria-label":Ya(x??f),className:"react-joyride__tooltip",style:$.tooltip,...l},de.createElement("div",{style:$.tooltipContainer},x&&de.createElement("h1",{"aria-label":Ya(x),style:$.tooltipTitle},x),de.createElement("div",{style:$.tooltipContent},f)),!g&&de.createElement("div",{style:$.tooltipFooter},de.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var she=ohe,uhe=class extends de.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:o,close:s,last:l,next:f,nextLabelWithProgress:h,skip:m}=a.locale,g=Ya(o),b=Ya(s),$=Ya(l),x=Ya(f),A=Ya(m);let w=s,C=b;if(e){if(w=f,C=x,a.showProgress&&!n){const E=Ya(h,{step:t+1,steps:i});w=I1(h,t+1,i),C=E}n&&(w=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:w,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:o,tooltipComponent:s,...l}=a;let f;if(s){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=s;f=de.createElement(m,{...h})}else f=de.createElement(she,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},lhe=class extends de.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&o.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return de.createElement(uhe,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Ss({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:o,helpers:s,index:l,lifecycle:f,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:x}=jp(e,this.props),A=s.info(),w=i&&n!==rn.CLOSE&&(l>0||n===rn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),E=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),T=$("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),P=a&&l===e.index;if(T&&(E||P)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==rn.START&&f===Ft.INIT&&b.update({lifecycle:Ft.READY}),C){const F=Vo(g.target),q=!!F;q&&Rfe(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:Ui.STEP_BEFORE}):(console.warn(q?"Target not visible":"Target not mounted",g),r({...A,type:Ui.TARGET_NOT_FOUND,step:g}),a||b.update({index:l+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:k6(g)||w?Ft.TOOLTIP:Ft.BEACON}),$("index")&&Ss({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Ft.BEACON)&&r({...A,step:g,type:Ui.BEACON}),$("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new nhe(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return k6(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:o}=this.props,s=Vo(o.target);return!DI(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(hD,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},de.createElement(rhe,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:o,styles:o.styles})))}},EI=class extends de.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:s}=this.props;ft.function(s)&&s(o)}),mt(this,"handleKeyboard",o=>{const{index:s,lifecycle:l}=this.state,{steps:f}=this.props,h=f[s];l===Ft.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:s}=this.props;xl(this.props,s[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Xfe({...e,controlled:r&&ft.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Ss({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!vs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;I6(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!vs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:o,run:s,stepIndex:l,steps:f}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:x,update:A}=this.store,{changed:w}=jp(e,this.props),{changed:C,changedFrom:E}=jp(t,this.state),T=xl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(I6(f,o)?b(f):console.warn("Steps are not valid",f)),w("run")&&(s?$(l):x()),F){let ae=ft.number(h)&&h<l?rn.NEXT:rn.PREV;n===rn.STOP&&(ae=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!q&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:T}));const te={...this.state,index:i,step:T};if(C("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&C("status",Nt.PAUSED)){const ae=xl(this.props,f[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const ae=xl(this.props,f[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Ui.STEP_AFTER}),this.callback({...te,type:Ui.TOUR_END,step:ae,index:t.index}),g()}else E("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...te,type:Ui.TOUR_START}):(C("status")||C("action",rn.RESET))&&this.callback({...te,type:Ui.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:o,scrollOffset:s=20,scrollToFirstStep:l=!1,steps:f}=this.props,h=xl(this.props,f[t]),m=Vo(h.target),g=zfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=If(m,a),$=af(m,a);let x=Math.floor(Ofe(m,s,a))||0;Ss({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),w=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:C,placement:E}=A;!["bottom"].includes(E)&&!b&&(x=Math.floor(C.popper.top-s))}else if(n===Ft.TOOLTIP&&w){const{flipped:C,offsets:E,placement:T}=w;["top","right","left"].includes(T)&&!C&&!b?x=Math.floor(E.popper.top-s):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Lfe(x,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!vs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:o=!1,steps:s}=this.props,l=n===Nt.RUNNING,f={};if(l&&s[e]){const h=xl(this.props,s[e]);f.step=de.createElement(lhe,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),f.overlay=de.createElement(the,{id:"react-joyride-portal"},de.createElement(ehe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(EI,"defaultProps",Wfe);var che=EI;function L6(e,t,n){return r=>{if(!(t.length===0||t.some(a=>!zT(r.getAll(a),e.getAll(a)))))return vn("[nuqs `%s`] no change, returning previous",t.join(","),r),r;const i=O1(e,t,n);return vn("[nuqs `%s`] subbed search params change\n from %O\n to %O",t.join(","),r,i),i}}function O1(e,t,n){if(t.length===0)return e;const r=n?new URLSearchParams(e):e;for(const i of e.keys())t.includes(i)||r.delete(i);return r}let np=0;function dhe(e=1){np=e}function fhe(){np=Math.max(0,np-1),!(np>0)&&CI()}function CI(){vn("[nuqs] Aborting queues"),Ad.abortAll(),wd.abort().forEach(e=>Ad.queuedQuerySync.emit(e))}const L1="__nuqs__";function hhe(e){if(e instanceof URL)return e.searchParams;if(e.startsWith("?"))return new URLSearchParams(e);try{return new URL(e,location.origin).searchParams}catch{return new URLSearchParams(e)}}function phe(e){var t,n,r;return typeof history>"u"?!1:(t=history.nuqs)!=null&&t.version&&history.nuqs.version!=="0.0.0-inject-version-here"?(console.error(Iu(409),history.nuqs.version,"0.0.0-inject-version-here",e),!1):!((r=(n=history.nuqs)==null?void 0:n.adapters)!=null&&r.includes(e))}function mhe(e){history.nuqs=history.nuqs??{version:"0.0.0-inject-version-here",adapters:[]},history.nuqs.adapters.push(e)}function ghe(e,t){if(!phe(t))return;let n=typeof location=="object"?location.search:"";e.on("update",o=>{const s=o.toString();n=s.length?"?"+s:""}),window.addEventListener("popstate",()=>{n=location.search,CI()}),vn("[nuqs %s] Patching history (%s adapter)","0.0.0-inject-version-here",t);function r(o){fhe();try{if(new URL(o,location.origin).search===n)return}catch{}try{e.emit("update",hhe(o))}catch(s){console.error(s)}}const i=history.pushState,a=history.replaceState;history.pushState=function(s,l,f){i.call(history,s,"",f),f&&l!==L1&&r(f)},history.replaceState=function(s,l,f){a.call(history,s,"",f),f&&l!==L1&&r(f)},mhe(t)}function vhe({adapter:e,useNavigate:t,useSearchParams:n}){const r=fb();function i(o){const s=t(),l=a(o),f=I.useCallback((h,m)=>{var $;I.startTransition(()=>{r.emit("update",h)});const g=new URL(location.href);g.search=eH(h),vn(`[nuqs ${e}] Updating url: %s`,g);const b=m.history==="push"?history.pushState:history.replaceState;dhe(m.shallow?1:2),b.call(history,history.state,L1,g),m.shallow===!1&&s({hash:g.hash,search:g.search},{replace:!0,preventScrollReset:!0,state:($=history.state)==null?void 0:$.usr}),m.scroll&&window.scrollTo(0,0)},[s]);return{searchParams:l,updateUrl:f,autoResetQueueOnUpdate:!1}}function a(o=[]){const[s]=n(typeof location>"u"?new URLSearchParams:new URLSearchParams(location.search)),[l,f]=I.useState(()=>typeof location>"u"?O1(s,o,!0):O1(new URLSearchParams(location.search),o,!1));return I.useEffect(()=>{function h(){f(L6(new URLSearchParams(location.search),o,!1))}function m(g){f(L6(g,o,!0))}return r.on("update",m),window.addEventListener("popstate",h),()=>{r.off("update",m),window.removeEventListener("popstate",h)}},[o.join("&")]),l}return ghe(r,e),{NuqsAdapter:iH(i),useOptimisticSearchParams:a}}const yhe=vhe({adapter:"react-router-v6",useNavigate:Z5.useNavigate,useSearchParams:Z5.useSearchParams}),bhe=yhe.NuqsAdapter;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Wk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=YP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=mf;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=JP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=kJ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ik;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=MQ;exports.$293f70390ea03370$export$497855f14858aa34=SJ;exports.$32489daedd52963e$export$1315d136e6f7581=VJ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=lJ;exports.$36a0ac60f04457c5$export$136073280381448e=CQ;exports.$3c0fc76039f1c516$export$60e84778edff6d26=k9;exports.$40df3f8667284809$export$d55e7ee900f34e93=zJ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=DQ;exports.$47b897dc8cdb026b$export$8d15029008292ae=LQ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=aee;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=IQ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=RJ;exports.$64244302c3013299$export$dd0bbc9b26defe37=UX;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=aQ;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=KJ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=Cee;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=xQ;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=oee;exports.$a916eb452884faea$export$b7a616150fdb9f44=iQ;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=fee;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=yee;exports.$bb77f239b46e8c72$export$3274cf84b703fff=A7;exports.$bcca50147b47f54d$export$56b2c08e277f365=OQ;exports.$c132121280ec012d$export$50eacbbf140a3141=bJ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=DJ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=BJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=$Q;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=wee;exports.$f2f8a6077418541e$export$542a6fd13ac93354=uJ;exports.$fae977aafc393c5c$export$588937bcd60ade55=xX;exports.$fae977aafc393c5c$export$6b862160d295c8e=bX;exports.ACTIONS=rn;exports.AdvancedImage=Tq;exports.CSVLink=Ace;exports.Cloudinary=EU;exports.Controller=QG;exports.EVENTS=Ui;exports.FormProvider=ZG;exports.LazyMotion=Aoe;exports.Lottie=boe;exports.M=va;exports.NuqsAdapter=bhe;exports.ReorderGroup=qae;exports.ReorderItem=Gae;exports.STATUS=Nt;exports._=YW;exports._$1=Lu;exports.autoUpdate=$G;exports.capitalize=FK;exports.components_default=che;exports.dayjs=Bee;exports.dayjs_minExports=M9;exports.domAnimation=sce;exports.ee=L9;exports.flexRender=_ce;exports.flip=BG;exports.isEmpty=toe;exports.isEqual=Tee;exports.isNaN=foe;exports.isNil=Pce;exports.isNumber=kee;exports.isUndefined=ote;exports.lazyload=Dq;exports.localizedFormat=Qae;exports.lodashExports=jT;exports.m=mse;exports.o=moe;exports.offset=PG;exports.parseAsString=gH;exports.placeholder=wq;exports.prismExports=ute;exports.q=tx;exports.random=loe;exports.shift=_G;exports.some=WW;exports.transform=Vce;exports.useController=mP;exports.useFieldArray=hY;exports.useFloating=zG;exports.useFloating$1=aP;exports.useFocus=qG;exports.useForm=pY;exports.useFormContext=cf;exports.useHover=jG;exports.useInteractions=UG;exports.useQueryState=yH;exports.useQueryStates=UT;exports.useRole=HG;exports.useVirtualizer=AY;exports.useWatch=pP;