@fluidattacks/design 3.32.6 → 3.32.7-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 (205) 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/context/index.js +1 -1
  35. package/dist/components/filters/context/types.d.ts +5 -0
  36. package/dist/components/filters/filters-menu/index.js +1 -1
  37. package/dist/components/filters/index.js +1 -1
  38. package/dist/components/filters/options-menu/index.js +1 -1
  39. package/dist/components/filters/options-menu/options/index.js +1 -1
  40. package/dist/components/filters/options-menu/options/types.d.ts +3 -0
  41. package/dist/components/filters/search/no-matches/index.d.ts +2 -0
  42. package/dist/components/filters/search/no-matches/index.js +1 -0
  43. package/dist/components/filters/types.d.ts +0 -2
  44. package/dist/components/filters/utils.d.ts +6 -1
  45. package/dist/components/form/index.js +1 -1
  46. package/dist/components/form/inner-form/index.js +1 -1
  47. package/dist/components/grid-container/index.js +1 -1
  48. package/dist/components/group-selector/index.js +1 -1
  49. package/dist/components/group-selector/option-container/index.js +1 -1
  50. package/dist/components/icon/index.js +1 -1
  51. package/dist/components/icon-button/index.js +1 -1
  52. package/dist/components/indicator-card-db/index.js +1 -1
  53. package/dist/components/info-sidebar/index.js +1 -1
  54. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  55. package/dist/components/inputs/fields/combobox/index.js +1 -1
  56. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  57. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  58. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  59. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  60. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  61. package/dist/components/inputs/fields/date/index.js +1 -1
  62. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  63. package/dist/components/inputs/fields/date-range/index.js +1 -1
  64. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  65. package/dist/components/inputs/fields/date-time/index.js +1 -1
  66. package/dist/components/inputs/fields/editable/index.js +1 -1
  67. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  68. package/dist/components/inputs/fields/input-array/index.js +1 -1
  69. package/dist/components/inputs/fields/input-file/default/index.d.ts +3 -0
  70. package/dist/components/inputs/fields/input-file/default/index.js +1 -0
  71. package/dist/components/inputs/fields/input-file/dropzone/index.d.ts +3 -0
  72. package/dist/components/inputs/fields/input-file/dropzone/index.js +1 -0
  73. package/dist/components/inputs/fields/input-file/index.d.ts +2 -2
  74. package/dist/components/inputs/fields/input-file/index.js +1 -1
  75. package/dist/components/inputs/fields/input-file/index.stories.d.ts +8 -3
  76. package/dist/components/inputs/fields/input-file/styles.d.ts +6 -1
  77. package/dist/components/inputs/fields/input-file/types.d.ts +34 -0
  78. package/dist/components/inputs/fields/input-section/index.js +1 -1
  79. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  80. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  81. package/dist/components/inputs/fields/number/index.js +1 -1
  82. package/dist/components/inputs/fields/number-range/index.js +1 -1
  83. package/dist/components/inputs/fields/phone/index.js +1 -1
  84. package/dist/components/inputs/fields/text-area/index.js +1 -1
  85. package/dist/components/inputs/fields/text-input/index.js +1 -1
  86. package/dist/components/inputs/index.js +1 -1
  87. package/dist/components/inputs/label/index.js +1 -1
  88. package/dist/components/inputs/outline-container/index.js +1 -1
  89. package/dist/components/inputs/types.d.ts +29 -1
  90. package/dist/components/inputs/utils/action-button/index.js +1 -1
  91. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  92. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  93. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  94. package/dist/components/inputs/utils/dialog/index.js +1 -1
  95. package/dist/components/inputs/utils/number-field/index.js +1 -1
  96. package/dist/components/inputs/utils/popover/index.js +1 -1
  97. package/dist/components/inputs/utils.d.ts +3 -1
  98. package/dist/components/item-card-db/index.js +1 -1
  99. package/dist/components/layout/categories/buttons/index.js +1 -1
  100. package/dist/components/layout/categories/column/index.js +1 -1
  101. package/dist/components/layout/categories/gap/index.js +1 -1
  102. package/dist/components/layout/categories/row/index.js +1 -1
  103. package/dist/components/layout/index.js +1 -1
  104. package/dist/components/link/index.js +1 -1
  105. package/dist/components/list-item/index.js +1 -1
  106. package/dist/components/little-flag/index.js +1 -1
  107. package/dist/components/loading/index.js +1 -1
  108. package/dist/components/logo/index.js +1 -1
  109. package/dist/components/lottie/index.js +1 -1
  110. package/dist/components/menu/index.js +1 -1
  111. package/dist/components/message-banner/index.js +1 -1
  112. package/dist/components/modal/columns-modal/index.js +1 -1
  113. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  114. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  115. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  116. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  117. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  118. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  119. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  120. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  121. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  122. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  123. package/dist/components/modal/filters-modal/index.js +1 -1
  124. package/dist/components/modal/footer/index.js +1 -1
  125. package/dist/components/modal/header/index.js +1 -1
  126. package/dist/components/modal/index.js +1 -1
  127. package/dist/components/modal/modal-confirm/index.js +1 -1
  128. package/dist/components/notification/index.js +1 -1
  129. package/dist/components/notification-sign/index.js +1 -1
  130. package/dist/components/oauth-selector/index.js +1 -1
  131. package/dist/components/oauth-selector/option-container/index.js +1 -1
  132. package/dist/components/paginator-db/btn/index.js +1 -1
  133. package/dist/components/paginator-db/dropdown/index.js +1 -1
  134. package/dist/components/paginator-db/index.js +1 -1
  135. package/dist/components/pop-up/description/index.js +1 -1
  136. package/dist/components/pop-up/index.js +1 -1
  137. package/dist/components/premium-feature/index.js +1 -1
  138. package/dist/components/priority-cards/card/index.js +1 -1
  139. package/dist/components/priority-cards/index.js +1 -1
  140. package/dist/components/priority-score/index.js +1 -1
  141. package/dist/components/progress-bar/index.js +1 -1
  142. package/dist/components/progress-bar/styles.d.ts +1 -1
  143. package/dist/components/progress-bar/types.d.ts +2 -2
  144. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  145. package/dist/components/progress-indicator/index.js +1 -1
  146. package/dist/components/progress-indicator/step/index.js +1 -1
  147. package/dist/components/radio-button/index.js +1 -1
  148. package/dist/components/rank-position/icon/index.js +1 -1
  149. package/dist/components/rank-position/index.js +1 -1
  150. package/dist/components/scroll-button/index.js +1 -1
  151. package/dist/components/search/index.js +1 -1
  152. package/dist/components/search-dropdown/index.js +1 -1
  153. package/dist/components/severity-badge/index.js +1 -1
  154. package/dist/components/severity-overview/badge/index.js +1 -1
  155. package/dist/components/severity-overview/index.js +1 -1
  156. package/dist/components/show-on-hover/index.js +1 -1
  157. package/dist/components/slide-out-menu/index.js +1 -1
  158. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  159. package/dist/components/slider/index.js +1 -1
  160. package/dist/components/slider/thumb/index.js +1 -1
  161. package/dist/components/step-lapse/index.js +1 -1
  162. package/dist/components/table/context/index.js +1 -1
  163. package/dist/components/table/export-csv/index.js +1 -1
  164. package/dist/components/table/index.js +1 -1
  165. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  166. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  167. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  168. package/dist/components/table/sort-icon/index.js +1 -1
  169. package/dist/components/table/table-body/index.js +1 -1
  170. package/dist/components/table/table-column-toggle/index.js +1 -1
  171. package/dist/components/table/table-content/head/index.js +1 -1
  172. package/dist/components/table/table-content/index.js +1 -1
  173. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  174. package/dist/components/table/table-footer/index.js +1 -1
  175. package/dist/components/table/table-options/caption-content/index.js +1 -1
  176. package/dist/components/table/table-options/controls-content/index.js +1 -1
  177. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  178. package/dist/components/table/table-options/index.js +1 -1
  179. package/dist/components/table/wrapper/index.js +1 -1
  180. package/dist/components/table-button/index.js +1 -1
  181. package/dist/components/table-content/index.js +1 -1
  182. package/dist/components/table-content/item-content/index.js +1 -1
  183. package/dist/components/tabs/index.js +1 -1
  184. package/dist/components/tabs/tab/index.js +1 -1
  185. package/dist/components/tag/index.js +1 -1
  186. package/dist/components/timeline/card/index.js +1 -1
  187. package/dist/components/timeline/index.js +1 -1
  188. package/dist/components/toggle/index.js +1 -1
  189. package/dist/components/tooltip/index.js +1 -1
  190. package/dist/components/tour/index.js +1 -1
  191. package/dist/components/typography/heading/index.js +1 -1
  192. package/dist/components/typography/index.js +1 -1
  193. package/dist/components/typography/span/index.js +1 -1
  194. package/dist/components/typography/text/index.js +1 -1
  195. package/dist/components/weaknesses-card/index.js +1 -1
  196. package/dist/components-Ca0LxDKJ.js +3721 -0
  197. package/dist/{components-C15aNvVG.mjs → components-DnxYFiQZ.mjs} +3798 -3286
  198. package/dist/hooks/index.js +1 -1
  199. package/dist/hooks/use-filters.d.ts +1 -0
  200. package/dist/index.js +1 -1
  201. package/dist/{vendor-DwMpUO1G.mjs → vendor-D81n11wR.mjs} +20002 -18199
  202. package/dist/vendor-fvbAJvh0.js +173 -0
  203. package/package.json +1 -1
  204. package/dist/components-Byiwl_-t.js +0 -3605
  205. package/dist/vendor-CBvWb1f3.js +0 -173
@@ -0,0 +1,173 @@
1
+ "use strict";require('./assets/vendor.css');var sK=Object.defineProperty;var uK=(e,t,n)=>t in e?sK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xn=(e,t,n)=>uK(e,typeof t!="symbol"?t+"":t,n);const O=require("react"),io=require("react/jsx-runtime"),nf=require("react-dom");function B6(e){if(e&&typeof e=="object"&&"default"in e)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const de=B6(O),No=B6(nf);var Hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Og,U5;function F6(){if(U5)return Og;U5=1;var e=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi;return Og=e,Og}var Lg,W5;function Go(){if(W5)return Lg;W5=1;var e=F6(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Lg=n,Lg}var Vg,H5;function zp(){if(H5)return Vg;H5=1;var e=Go(),t=e.Symbol;return Vg=t,Vg}var Ng,G5;function lK(){if(G5)return Ng;G5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Ng=e,Ng}var jg,Y5;function Aa(){if(Y5)return jg;Y5=1;var e=Array.isArray;return jg=e,jg}var Kg,Z5;function cK(){if(Z5)return Kg;Z5=1;var e=zp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=n.call(o,i),l=o[i];try{o[i]=void 0;var f=!0}catch{}var h=r.call(o);return f&&(s?o[i]=l:delete o[i]),h}return Kg=a,Kg}var zg,X5;function dK(){if(X5)return zg;X5=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return zg=n,zg}var qg,J5;function sc(){if(J5)return qg;J5=1;var e=zp(),t=cK(),n=dK(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:r:a&&a in Object(s)?t(s):n(s)}return qg=o,qg}var Ug,Q5;function uc(){if(Q5)return Ug;Q5=1;function e(t){return t!=null&&typeof t=="object"}return Ug=e,Ug}var Wg,e$;function qp(){if(e$)return Wg;e$=1;var e=sc(),t=uc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Wg=r,Wg}var Hg,t$;function fK(){if(t$)return Hg;t$=1;var e=zp(),t=lK(),n=Aa(),r=qp(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(n(s))return t(s,o)+"";if(r(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Hg=o,Hg}var Gg,n$;function R1(){if(n$)return Gg;n$=1;var e=fK();function t(n){return n==null?"":e(n)}return Gg=t,Gg}var Yg,r$;function hK(){if(r$)return Yg;r$=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return Yg=e,Yg}var Zg,i$;function pK(){if(i$)return Zg;i$=1;var e=hK();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return Zg=t,Zg}var Xg,a$;function k6(){if(a$)return Xg;a$=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(f){return s.test(f)}return Xg=l,Xg}var Jg,o$;function mK(){if(o$)return Jg;o$=1;function e(t){return t.split("")}return Jg=e,Jg}var Qg,s$;function gK(){if(s$)return Qg;s$=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",f="(?:"+s+"|"+l+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",$=f+"?",x="["+a+"]?",A="(?:"+b+"(?:"+[h,m,g].join("|")+")"+x+$+")*",w=x+$+A,C="(?:"+[h+s+"?",s,m,g,o].join("|")+")",E=RegExp(l+"(?="+l+")|"+C+w,"g");function T(P){return P.match(E)||[]}return Qg=T,Qg}var e0,u$;function vK(){if(u$)return e0;u$=1;var e=mK(),t=k6(),n=gK();function r(i){return t(i)?n(i):e(i)}return e0=r,e0}var t0,l$;function yK(){if(l$)return t0;l$=1;var e=pK(),t=k6(),n=vK(),r=R1();function i(a){return function(o){o=r(o);var s=t(o)?n(o):void 0,l=s?s[0]:o.charAt(0),f=s?e(s,1).join(""):o.slice(1);return l[a]()+f}}return t0=i,t0}var n0,c$;function bK(){if(c$)return n0;c$=1;var e=yK(),t=e("toUpperCase");return n0=t,n0}var r0,d$;function xK(){if(d$)return r0;d$=1;var e=R1(),t=bK();function n(r){return t(e(r).toLowerCase())}return r0=n,r0}var DK=xK();const $K=hr(DK);var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",f="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",$="[object Object]",x="[object Promise]",A="[object RegExp]",w="[object Set]",C="[object String]",E="[object Symbol]",T="[object WeakMap]",P="[object ArrayBuffer]",F="[object DataView]",q="[object Float32Array]",te="[object Float64Array]",se="[object Int8Array]",ae="[object Int16Array]",I="[object Int32Array]",Ee="[object Uint8Array]",be="[object Uint8ClampedArray]",z="[object Uint16Array]",G="[object Uint32Array]",V=/[\\^$.*+?()[\]{}|]/g,R=/\w*$/,K=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,M={};M[a]=M[o]=M[P]=M[F]=M[s]=M[l]=M[q]=M[te]=M[se]=M[ae]=M[I]=M[g]=M[b]=M[$]=M[A]=M[w]=M[C]=M[E]=M[Ee]=M[be]=M[z]=M[G]=!0,M[f]=M[h]=M[T]=!1;var oe=typeof ys=="object"&&ys&&ys.Object===Object&&ys,le=typeof self=="object"&&self&&self.Object===Object&&self,Se=oe||le||Function("return this")(),_e=t&&!t.nodeType&&t,Be=_e&&!0&&e&&!e.nodeType&&e,Ge=Be&&Be.exports===_e;function Xe(ie,Me){return ie.set(Me[0],Me[1]),ie}function Ne(ie,Me){return ie.add(Me),ie}function qe(ie,Me){for(var We=-1,pt=ie?ie.length:0;++We<pt&&Me(ie[We],We,ie)!==!1;);return ie}function ke(ie,Me){for(var We=-1,pt=Me.length,bn=ie.length;++We<pt;)ie[bn+We]=Me[We];return ie}function je(ie,Me,We,pt){for(var bn=-1,rr=ie?ie.length:0;++bn<rr;)We=Me(We,ie[bn],bn,ie);return We}function Te(ie,Me){for(var We=-1,pt=Array(ie);++We<ie;)pt[We]=Me(We);return pt}function Ye(ie,Me){return ie==null?void 0:ie[Me]}function ht(ie){var Me=!1;if(ie!=null&&typeof ie.toString!="function")try{Me=!!(ie+"")}catch{}return Me}function Ht(ie){var Me=-1,We=Array(ie.size);return ie.forEach(function(pt,bn){We[++Me]=[bn,pt]}),We}function xt(ie,Me){return function(We){return ie(Me(We))}}function _t(ie){var Me=-1,We=Array(ie.size);return ie.forEach(function(pt){We[++Me]=pt}),We}var Wr=Array.prototype,Qt=Function.prototype,xe=Object.prototype,Ae=Se["__core-js_shared__"],Fe=function(){var ie=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return ie?"Symbol(src)_1."+ie:""}(),Je=Qt.toString,et=xe.hasOwnProperty,Qe=xe.toString,gt=RegExp("^"+Je.call(et).replace(V,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=Ge?Se.Buffer:void 0,Dt=Se.Symbol,yn=Se.Uint8Array,Dr=xt(Object.getPrototypeOf,Object),zt=Object.create,Pt=xe.propertyIsEnumerable,It=Wr.splice,qt=Object.getOwnPropertySymbols,pr=kt?kt.isBuffer:void 0,Hr=xt(Object.keys,Object),li=hi(Se,"DataView"),Br=hi(Se,"Map"),Ba=hi(Se,"Promise"),Bs=hi(Se,"Set"),bt=hi(Se,"WeakMap"),ci=hi(Object,"create"),uo=Mr(li),Ac=Mr(Br),Lu=Mr(Ba),Sc=Mr(Bs),Vu=Mr(bt),Fs=Dt?Dt.prototype:void 0,Nu=Fs?Fs.valueOf:void 0;function ta(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function na(){this.__data__=ci?ci(null):{}}function yt(ie){return this.has(ie)&&delete this.__data__[ie]}function Cn(ie){var Me=this.__data__;if(ci){var We=Me[ie];return We===r?void 0:We}return et.call(Me,ie)?Me[ie]:void 0}function lo(ie){var Me=this.__data__;return ci?Me[ie]!==void 0:et.call(Me,ie)}function ju(ie,Me){var We=this.__data__;return We[ie]=ci&&Me===void 0?r:Me,this}ta.prototype.clear=na,ta.prototype.delete=yt,ta.prototype.get=Cn,ta.prototype.has=lo,ta.prototype.set=ju;function $r(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function Ku(){this.__data__=[]}function zu(ie){var Me=this.__data__,We=co(Me,ie);if(We<0)return!1;var pt=Me.length-1;return We==pt?Me.pop():It.call(Me,We,1),!0}function Tc(ie){var Me=this.__data__,We=co(Me,ie);return We<0?void 0:Me[We][1]}function Gr(ie){return co(this.__data__,ie)>-1}function at(ie,Me){var We=this.__data__,pt=co(We,ie);return pt<0?We.push([ie,Me]):We[pt][1]=Me,this}$r.prototype.clear=Ku,$r.prototype.delete=zu,$r.prototype.get=Tc,$r.prototype.has=Gr,$r.prototype.set=at;function dn(ie){var Me=-1,We=ie?ie.length:0;for(this.clear();++Me<We;){var pt=ie[Me];this.set(pt[0],pt[1])}}function ra(){this.__data__={hash:new ta,map:new(Br||$r),string:new ta}}function di(ie){return Si(this,ie).delete(ie)}function Yn(ie){return Si(this,ie).get(ie)}function ks(ie){return Si(this,ie).has(ie)}function Fa(ie,Me){return Si(this,ie).set(ie,Me),this}dn.prototype.clear=ra,dn.prototype.delete=di,dn.prototype.get=Yn,dn.prototype.has=ks,dn.prototype.set=Fa;function fi(ie){this.__data__=new $r(ie)}function Mn(){this.__data__=new $r}function Jo(ie){return this.__data__.delete(ie)}function jt(ie){return this.__data__.get(ie)}function Pc(ie){return this.__data__.has(ie)}function qu(ie,Me){var We=this.__data__;if(We instanceof $r){var pt=We.__data__;if(!Br||pt.length<n-1)return pt.push([ie,Me]),this;We=this.__data__=new dn(pt)}return We.set(ie,Me),this}fi.prototype.clear=Mn,fi.prototype.delete=Jo,fi.prototype.get=jt,fi.prototype.has=Pc,fi.prototype.set=qu;function _c(ie,Me){var We=go(ie)||Ra(ie)?Te(ie.length,String):[],pt=We.length,bn=!!pt;for(var rr in ie)et.call(ie,rr)&&!(bn&&(rr=="length"||Vs(rr,pt)))&&We.push(rr);return We}function Ms(ie,Me,We){var pt=ie[Me];(!(et.call(ie,Me)&&Ma(pt,We))||We===void 0&&!(Me in ie))&&(ie[Me]=We)}function co(ie,Me){for(var We=ie.length;We--;)if(Ma(ie[We][0],Me))return We;return-1}function Uu(ie,Me){return ie&&gr(Me,bo(Me),ie)}function Rs(ie,Me,We,pt,bn,rr,or){var Vn;if(pt&&(Vn=rr?pt(ie,bn,rr,or):pt(ie)),Vn!==void 0)return Vn;if(!yo(ie))return ie;var wn=go(ie);if(wn){if(Vn=Ls(ie),!Me)return Qo(ie,Vn)}else{var Pi=Ti(ie),_i=Pi==h||Pi==m;if(es(ie))return Os(ie,Me);if(Pi==$||Pi==a||_i&&!rr){if(ht(ie))return rr?ie:{};if(Vn=Yu(_i?{}:ie),!Me)return ho(ie,Uu(Vn,ie))}else{if(!M[Pi])return rr?ie:{};Vn=pn(ie,Pi,Rs,Me)}}or||(or=new fi);var Ks=or.get(ie);if(Ks)return Ks;if(or.set(ie,Vn),!wn)var ts=We?po(ie):bo(ie);return qe(ts||ie,function(sr,xo){ts&&(xo=sr,sr=ie[xo]),Ms(Vn,xo,Rs(sr,Me,We,pt,xo,ie,or))}),Vn}function Bc(ie){return yo(ie)?zt(ie):{}}function Fc(ie,Me,We){var pt=Me(ie);return go(ie)?pt:ke(pt,We(ie))}function kc(ie){return Qe.call(ie)}function Wu(ie){if(!yo(ie)||Ns(ie))return!1;var Me=Xu(ie)||ht(ie)?gt:K;return Me.test(Mr(ie))}function Is(ie){if(!Zu(ie))return Hr(ie);var Me=[];for(var We in Object(ie))et.call(ie,We)&&We!="constructor"&&Me.push(We);return Me}function Os(ie,Me){if(Me)return ie.slice();var We=new ie.constructor(ie.length);return ie.copy(We),We}function fo(ie){var Me=new ie.constructor(ie.byteLength);return new yn(Me).set(new yn(ie)),Me}function Hu(ie,Me){var We=Me?fo(ie.buffer):ie.buffer;return new ie.constructor(We,ie.byteOffset,ie.byteLength)}function Gu(ie,Me,We){var pt=Me?We(Ht(ie),!0):Ht(ie);return je(pt,Xe,new ie.constructor)}function Fr(ie){var Me=new ie.constructor(ie.source,R.exec(ie));return Me.lastIndex=ie.lastIndex,Me}function mr(ie,Me,We){var pt=Me?We(_t(ie),!0):_t(ie);return je(pt,Ne,new ie.constructor)}function kr(ie){return Nu?Object(Nu.call(ie)):{}}function ka(ie,Me){var We=Me?fo(ie.buffer):ie.buffer;return new ie.constructor(We,ie.byteOffset,ie.length)}function Qo(ie,Me){var We=-1,pt=ie.length;for(Me||(Me=Array(pt));++We<pt;)Me[We]=ie[We];return Me}function gr(ie,Me,We,pt){We||(We={});for(var bn=-1,rr=Me.length;++bn<rr;){var or=Me[bn],Vn=void 0;Ms(We,or,Vn===void 0?ie[or]:Vn)}return We}function ho(ie,Me){return gr(ie,ar(ie),Me)}function po(ie){return Fc(ie,bo,ar)}function Si(ie,Me){var We=ie.__data__;return mo(Me)?We[typeof Me=="string"?"string":"hash"]:We.map}function hi(ie,Me){var We=Ye(ie,Me);return Wu(We)?We:void 0}var ar=qt?xt(qt,Object):Gt,Ti=kc;(li&&Ti(new li(new ArrayBuffer(1)))!=F||Br&&Ti(new Br)!=g||Ba&&Ti(Ba.resolve())!=x||Bs&&Ti(new Bs)!=w||bt&&Ti(new bt)!=T)&&(Ti=function(ie){var Me=Qe.call(ie),We=Me==$?ie.constructor:void 0,pt=We?Mr(We):void 0;if(pt)switch(pt){case uo:return F;case Ac:return g;case Lu:return x;case Sc:return w;case Vu:return T}return Me});function Ls(ie){var Me=ie.length,We=ie.constructor(Me);return Me&&typeof ie[0]=="string"&&et.call(ie,"index")&&(We.index=ie.index,We.input=ie.input),We}function Yu(ie){return typeof ie.constructor=="function"&&!Zu(ie)?Bc(Dr(ie)):{}}function pn(ie,Me,We,pt){var bn=ie.constructor;switch(Me){case P:return fo(ie);case s:case l:return new bn(+ie);case F:return Hu(ie,pt);case q:case te:case se:case ae:case I:case Ee:case be:case z:case G:return ka(ie,pt);case g:return Gu(ie,pt,We);case b:case C:return new bn(ie);case A:return Fr(ie);case w:return mr(ie,pt,We);case E:return kr(ie)}}function Vs(ie,Me){return Me=Me??i,!!Me&&(typeof ie=="number"||fe.test(ie))&&ie>-1&&ie%1==0&&ie<Me}function mo(ie){var Me=typeof ie;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?ie!=="__proto__":ie===null}function Ns(ie){return!!Fe&&Fe in ie}function Zu(ie){var Me=ie&&ie.constructor,We=typeof Me=="function"&&Me.prototype||xe;return ie===We}function Mr(ie){if(ie!=null){try{return Je.call(ie)}catch{}try{return ie+""}catch{}}return""}function js(ie){return Rs(ie,!0,!0)}function Ma(ie,Me){return ie===Me||ie!==ie&&Me!==Me}function Ra(ie){return vo(ie)&&et.call(ie,"callee")&&(!Pt.call(ie,"callee")||Qe.call(ie)==a)}var go=Array.isArray;function ia(ie){return ie!=null&&Mc(ie.length)&&!Xu(ie)}function vo(ie){return Rc(ie)&&ia(ie)}var es=pr||en;function Xu(ie){var Me=yo(ie)?Qe.call(ie):"";return Me==h||Me==m}function Mc(ie){return typeof ie=="number"&&ie>-1&&ie%1==0&&ie<=i}function yo(ie){var Me=typeof ie;return!!ie&&(Me=="object"||Me=="function")}function Rc(ie){return!!ie&&typeof ie=="object"}function bo(ie){return ia(ie)?_c(ie):Is(ie)}function Gt(){return[]}function en(){return!1}e.exports=js})(Wy,Wy.exports);var bs=Wy.exports,Hy=function(){return Hy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Hy.apply(this,arguments)};function EK(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(h){try{f(r.next(h))}catch(m){o(m)}}function l(h){try{f(r.throw(h))}catch(m){o(m)}}function f(h){h.done?a(h.value):i(h.value).then(s,l)}f((r=r.apply(e,[])).next())})}function CK(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(h){return l([f,h])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1],a=f;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(f);break}a[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function tp(e,t,n,r,i){return EK(this,void 0,void 0,function(){var a,o;return CK(this,function(s){switch(s.label){case 0:if(n===void 0)return[2];o=0,s.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(a=s.sent(),a==="canceled")return[3,4];s.label=3;case 3:return o++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Gy=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Hy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},wK=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=bs(n);tp(t,o,r,this.htmlPluginState,i).then(function(s){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=Gy(i,s);a.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,a=bs(t);tp(this.imgElement,a,n,this.htmlPluginState).then(function(o){if(i.isMounted){var s=Gy(r,o);i.imgElement.setAttribute("src",a.toURL(s))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let kn=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},AK=class extends Error{constructor(t="Unsupported"){super(t)}};function I1(e){return new AK(e)}function SK(){return this._qualifierModel||{error:I1(`unsupported qualifier ${this.constructor.name}`)}}let TK=class{constructor(){this._qualifierModel={}}toJson(){return SK.apply(this)}},Rt=class extends TK{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof kn?this.qualifierValue=n:(this.qualifierValue=new kn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Xi=class extends Rt{constructor(t,n){let r;n?r=new kn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function PK(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function _K(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:I1(`unsupported action ${this.constructor.name}`)}}let BK=class{constructor(){this._actionModel={}}toJson(){return _K.apply(this)}},Sa=class extends BK{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),PK(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Xi(r)):this.qualifiers.set(n,new Rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Xi(t)):t instanceof Xi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class O1 extends Sa{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Up extends O1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Rt("h",t)),this}static fromJson(t){const n=new Up;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function FK(){return new Up}function M6(){return new O1("faces")}function kK(){return new O1("ocr_text")}class MK extends Sa{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Rt("e",`blur_region${t}`)),this.addQualifier(new Rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Rt("e",`blur_faces${t}`))):this.addQualifier(new Rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(M6()),r&&r.regionType==="ocr_text"&&i.region(kK()),r&&r.regionType==="custom"&&i.region(Up.fromJson(r)),i}}function Fu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const R6={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},RK={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},I6={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},O6={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},IK={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},L6={444:"CHROMA_444",420:"CHROMA_420"},OK={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},LK=Fu(L6);Fu(OK);const VK=Fu(R6),NK=Fu(RK),V6=Fu(I6);Fu(O6);Fu(IK);class N6 extends Sa{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=V6[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new kn([t,`${n}`]).setDelimiter(":"):r=new kn(t),new Rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=I6[n]||n;return new this(a,r||i)}}class jK extends N6{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=V6[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function Wp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class KK extends Sa{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new kn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new kn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new kn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new kn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new kn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:o,numOfColors:s}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),a&&l.despeckleLevel(a),o&&l.detailsLevel(o),s&&l.numOfColors(s),l}}class zK extends jK{level(t){return this._actionModel.level=t,this.setLevel(t)}}class qK extends Sa{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Rt("e",new kn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Rt("e",new kn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Rt("e",new kn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class UK extends zK{color(t){return this._actionModel.color=t,this.addQualifier(new Rt("co",new kn(Wp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class WK extends Sa{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new Rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Rt("e",`pixelate_region${t}`)),this.addQualifier(new Rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Rt("e",`pixelate_faces${t}`))):this.addQualifier(new Rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(M6()),n&&n.regionType==="custom"&&i.region(FK()),i}}const HK=e=>JK(encodeURIComponent,ZK,XK)(e),GK=/[!'()*~_.-]/g,YK={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},ZK=e=>e.replace(GK,t=>{var n;return(n=YK[t])!==null&&n!==void 0?n:t}),XK=e=>e.replace(/%20/g," "),JK=(...e)=>t=>e.reduce((n,r)=>r(n),t);function QK(e){return new MK(e)}function ez(){return new N6("grayscale")}function f$(e){return new UK("colorize",e)}function tz(){return new KK}function nz(){return new qK}function rz(e){return new WK(e)}let iz=class extends Sa{constructor(t){super(),this._actionModel={},this.addQualifier(new Rt("b",new kn(Wp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},h$=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:I1(`unsupported action ${this.constructor.name}`)}}};function az(e){const t=e;return"error"in t&&!!t.error}function oz(){return new Xi("ignore_aspect_ratio")}function sz(){return new Xi("lossy")}function uz(){return new Xi("preserve_transparency")}function lz(e){return new Xi("progressive",e)}function cz(){return new Xi("region_relative")}function dz(){return new Xi("relative")}let L1=class extends kn{constructor(t){super(t),this.val=t}getValue(){return this.val}},j6=class extends Sa{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof L1?i=n.getValue():i=n,this._actionModel.actionType=NK[t],this._actionModel[r]=i,this.addQualifier(new Rt(t,n))}},fz=class extends Xi{constructor(t){super("progressive",t)}},Yy=class extends j6{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(sz()),this}progressive(t){return t instanceof fz?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(lz(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(uz()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}},Hp=class K6{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new h$(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof K6?this.actions=this.actions.concat(t.actions):this.actions.push(new h$(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Yy("q",t)),this}format(t){return this.addAction(new Yy("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new iz(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Sa;let r=t;return typeof t=="string"&&(r=new Xi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(az(r))return r;t.push(r)}return{actions:t}}};function p$(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class hz extends kn{}class pz extends Sa{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=VK[t]||t,this.addQualifier(new Rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Rt("w",t))}aspectRatio(t){if(t instanceof hz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=p$(t),this.addQualifier(new Rt("ar",p$(t)));if(t instanceof Xi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(dz())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(cz())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:o,width:s,height:l}=r,f=R6[n]||n,h=new this(f,s,l);return o&&h.aspectRatio(o==="ignore_aspect_ratio"?oz():o),i&&h.relative(),a&&h.regionRelative(),h}}class V1 extends Rt{constructor(t){super("g",new kn(t))}}class z6 extends V1{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class q6 extends V1{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class U6 extends V1{constructor(t){super(t)}}function mz(e){return new U6(e)}function W6(...e){const t=[...e];return new q6(t)}function H6(){return new z6}class Ul extends kn{constructor(t){super(),this.name=t}toString(){return this.name}}function gz(){return new Ul("ocr_text")}function vz(e){return e&&`${e}`.split(":")[0]==="auto"}function yz(e){const t=N1(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function N1(e){return`${e}`.replace("g_","")}function bz(e){return{compass:N1(e),gravityType:"direction"}}function xz(e){return N1(e)==="ocr_text"}function Dz(){return{gravityType:"ocr"}}function $z(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function Ez(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function G6(e){let t;const n=e==="auto"?new z6:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(Ez)}}function Cz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),o=H6().autoFocus(...a);i.fallbackGravity=G6(o)}return i}function wz(e){const n=e.split(":").map(r=>new Ul(r));return new q6(n)}function Az(e){return yz(e)?bz(e):xz(e)?Dz():vz(e)||$z(e)?G6(e):Cz(typeof e=="string"?wz(e):e)}class j1 extends kn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Ul?t:new Ul(t);return new j1(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Y6 extends kn{constructor(t){super(),this.val=t}toString(){return this.val}}function Sz(e){return e.gravityType==="direction"}function Tz(e){return e.gravityType==="ocr"}function Pz(e){return e.gravityType==="auto"}function _z(e){const{object:t,weight:n,avoid:r}=e,i=new j1(new Ul(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function Z6(e){const n=(e.autoFocus||[]).map(_z);return H6().autoFocus(...n)}function Bz(e){const t=(e.focusOnObjects||[]).map(r=>new Ul(r)),n=W6(...t);if(e.fallbackGravity){const r=Z6(e.fallbackGravity);n.fallbackGravity(r)}return n}function Fz(e){return Sz(e)?new U6(new Y6(e.compass)):Tz(e)?W6(gz()):Pz(e)?Z6(e):Bz(e)}class K1 extends pz{gravity(t){this._actionModel.gravity=Az(t);const n=typeof t=="string"?new Rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(Fz(t.gravity)),n}}class rf extends Rt{constructor(t){super("b"),t&&this.addValue(t)}}const X6=100,kz=0;class Mz extends rf{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${X6}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var J6=Mz;class z1 extends rf{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Wp(n)),this}}class Q6 extends z1{toString(){return`
2
+ b_auto:border
3
+ ${this._contrast?"_contrast":""}
4
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
5
+ `.replace(/\s+/g,"")}}class eT extends z1{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class tT extends eT{toString(){return`
6
+ b_auto:border_gradient
7
+ ${this._contrast?"_contrast":""}
8
+ ${this._gradientColors?`:${this._gradientColors}`:""}
9
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
10
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
11
+ `.replace(/\s+/g,"")}}class nT extends eT{toString(){return`
12
+ b_auto:predominant_gradient
13
+ ${this._contrast?"_contrast":""}
14
+ ${this._gradientColors?`:${this._gradientColors}`:""}
15
+ ${this._gradientDirection?`:${this._gradientDirection}`:""}
16
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
17
+ `.replace(/\s+/g,"")}}class rT extends z1{toString(){return`
18
+ b_auto:predominant
19
+ ${this._contrast?"_contrast":""}
20
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
21
+ `.replace(/\s+/g,"")}}class iT extends rf{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${HK(this._prompt)}`:""}`}}function aT(e){return`${e}`.replace("b_","")}function Rz(){return{backgroundType:"auto"}}function Iz(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function q1(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Oz(e){return Object.assign(Object.assign({},q1(e)),{backgroundType:"border"})}function oT(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=q1(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Lz(e){return Object.assign(Object.assign({},oT(e)),{backgroundType:"borderGradient"})}function Vz(e){return{backgroundType:"color",color:aT(e)}}function Nz(e){return Object.assign(Object.assign({},q1(e)),{backgroundType:"predominant"})}function jz(e){return Object.assign(Object.assign({},oT(e)),{backgroundType:"predominantGradient"})}function Kz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function zz(e){return aT(e)==="auto"?Rz():e instanceof J6?Iz(e):e instanceof Q6?Oz(e):e instanceof tT?Lz(e):e instanceof rT?Nz(e):e instanceof nT?jz(e):e instanceof iT?Kz(e):Vz(e)}function qz(){return new L1("svg")}function U1(){return new L1("auto")}function sT(){return new Q6}function uT(){return new rf("auto")}function lT(){return new tT}function cT(){return new nT}function dT(){return new rT}function fT(e){return new rf(Wp(e))}function Uz(){return new J6}function hT(){return new iT}const pT={auto:uT,border:sT,borderGradient:lT,predominantGradient:cT,predominant:dT,color:fT,blurred:Uz,generativeFill:hT};function Wz(e){const{brightness:t,intensity:n}=e,r=pT.blurred();return r.brightness(t??kz),r.intensity(n??X6),r}function m$(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function g$(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function Hz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Gz(e){const{backgroundType:t}=e;switch(t){case"auto":return uT();case"blurred":return Wz(e);case"border":return g$(sT(),e);case"borderGradient":return m$(lT(),e);case"predominant":return g$(dT(),e);case"predominantGradient":return m$(cT(),e);case"generativeFill":return Hz(hT(),e);default:return fT(e.color)}}class Yz extends K1{background(t){return this._actionModel.background=zz(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(Gz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Zz extends K1{x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class Xz extends K1{x(t){return this._actionModel.x=t,this.addQualifier(new Rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function Jz(e,t){return new Zz("crop",e,t)}function Qz(e,t){return new Xz("fill",e,t)}function eq(e,t){return new Yz("pad",e,t)}class tq extends j6{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=L6[t];const n=new kn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new kn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=O6[n]||n,o=new this(a);if(r){const s=LK[r.toUpperCase()];s&&o.chromaSubSampling(+s)}return i&&o.quantization(i),o}}function Gp(e){return new Yy("f",e)}function Yp(e){return new tq(e)}function nq(){return new Y6("north_east")}f$(70).color("black"),f$(40).color("white"),ez(),nz();var rq=new Hp().effect(tz()).delivery(Yp("auto")).delivery(Gp(qz())),iq=new Hp().effect(rz()).delivery(Yp("auto")).delivery(Gp(U1())),aq=new Hp().effect(QK(2e3)).delivery(Yp("auto")).delivery(Gp(U1())),oq=new Hp().resize(eq("iw_div_2").aspectRatio(1).background(pT.auto())).resize(Jz(1,1).gravity(mz(nq()))).resize(Qz().height("ih").width("iw")).delivery(Yp("auto")).delivery(Gp(U1())),v$={vectorize:rq,pixelate:iq,blur:aq,"predominant-color":oq},y$="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b$={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},x$="?_a=",sq=function(){function e(t,n,r,i,a,o,s){var l=this;this.mimeType="video",this.mimeSubTypes=b$,this.videoElement=t,this.originalVideo=n,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var f=bs(n);tp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(a,o),l.handleSourceToVideo(f,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(a){r.appendSourceTag(bs(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,o=i.codecs,s=i.transcode;return r.appendSourceTag(bs(t).transcode(s),a,r.buildMimeType(a,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var s=t.toURL(),l=s.split(x$),f=l[1]?"".concat(x$).concat(l[1]):"",h=o?"":".".concat(n);a.src="".concat(l[0]).concat(h).concat(f),a.type=r||"video/".concat(b$[n]||n),this.videoElement.appendChild(a)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=bs(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var a=0,o=Object.entries(t);a<o.length;a++){var s=o[a],l=s[0],f=s[1];f&&this.videoElement.setAttribute(l,l==="poster"?f:"")}},e.prototype.update=function(t,n,r,i,a){var o=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);tp(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,a),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),uq=typeof ys=="object"&&ys&&ys.Object===Object&&ys,lq=typeof self=="object"&&self&&self.Object===Object&&self;uq||lq||Function("return this")();function W1(){return typeof window<"u"}function cq(e){return e instanceof HTMLImageElement}function dq(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return fq.bind(null,r,a)}function fq(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),W1()?new Promise(function(o){var s=function(){return o({lazyload:!0})},l=pq(n,s,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function hq(){return window&&"IntersectionObserver"in window}function pq(e,t,n,r){try{if(!hq())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function mq(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return gq.bind(null,r)}function gq(e,t,n,r,i,a){v$[e]||(e="vectorize");var o=v$[e].actions,s=bs(n);if(o.forEach(function(f){s.addAction(f)}),!W1())return n.transformation=s.transformation,!0;if(cq(t)){s.transformation.actions.forEach(function(f,h){f instanceof Sa&&f.getActionTag()==="responsive"&&delete s.transformation.actions[h]});var l=Gy(i,{placeholder:!0});return t.src=s.toURL(l),t.onerror=function(){t.src=y$},new Promise(function(f){t.onload=function(){f()}}).then(function(){return new Promise(function(f){r.cleanupCallbacks.push(function(){t.src=y$,f("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){f({placeholder:!0})},h.onerror=function(){f({placeholder:!0})}})})}}function vq(e,t,n){var r=bs(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL(n?{trackedAnalytics:n}:null)}function np(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
22
+ Copyright (c) Microsoft Corporation.
23
+
24
+ Permission to use, copy, modify, and/or distribute this software for any
25
+ purpose with or without fee is hereby granted.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
29
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
30
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
31
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
32
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33
+ PERFORMANCE OF THIS SOFTWARE.
34
+ ***************************************************************************** */var Zy=function(e,t){return Zy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Zy(e,t)};function mT(e,t){Zy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Md=function(){return Md=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Md.apply(this,arguments)};function gT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var i0={sdkSemver:"1.14.3",techVersion:de.default.version,sdkCode:"J"},yq=function(e){mT(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=de.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new wK(this.imageRef.current,this.props.cldImg,this.props.plugins,i0)},t.prototype.componentDidUpdate=function(){np(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,i0)},t.prototype.componentWillUnmount=function(){np(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=gT(n,["cldImg","plugins"]);if(W1())return de.default.createElement("img",Md({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=vq(this.props.plugins,this.props.cldImg,i0);return de.default.createElement("img",Md({},r,{src:i}))},t}(de.default.Component),bq=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){mT(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=O.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new sq(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){np(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){np(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return bq.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=gT(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return de.default.createElement("video",Md({},r,{ref:this.attachRef}))},t})(O.Component);function xq(e){return!(typeof e!="object"||e instanceof Array)}class Dq{filterOutNonSupportedKeys(t,n){const r=Object.create({});return xq(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const D$=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class H1 extends Dq{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,D$);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,D$);return new H1(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class Rd{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class $q extends Error{constructor(t="Unsupported"){super(t)}}function G1(e){return new $q(e)}function Eq(){return this._qualifierModel||{error:G1(`unsupported qualifier ${this.constructor.name}`)}}class Cq{constructor(){this._qualifierModel={}}toJson(){return Eq.apply(this)}}class Zp extends Cq{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Rd?this.qualifierValue=n:(this.qualifierValue=new Rd,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class Es extends Zp{constructor(t,n){let r;n?r=new Rd([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function wq(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Aq(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:G1(`unsupported action ${this.constructor.name}`)}}class Sq{constructor(){this._actionModel={}}toJson(){return Aq.apply(this)}}class Y1 extends Sq{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),wq(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Es(r)):this.qualifiers.set(n,new Zp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Es(t)):t instanceof Es&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function Tq(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class Pq extends Y1{constructor(t){super(),this._actionModel={},this.addQualifier(new Zp("b",new Rd(Tq(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class $${constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:G1(`unsupported action ${this.constructor.name}`)}}}function _q(e){const t=e;return"error"in t&&!!t.error}function Bq(){return new Es("lossy")}function Fq(){return new Es("preserve_transparency")}function kq(e){return new Es("progressive",e)}class Mq extends Rd{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ku(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const Rq={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},Iq={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},Oq={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Lq={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Vq={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Nq={444:"CHROMA_444",420:"CHROMA_420"},jq={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ku(Nq);ku(jq);ku(Rq);const Kq=ku(Iq);ku(Oq);ku(Lq);ku(Vq);class zq extends Y1{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Mq?i=n.getValue():i=n,this._actionModel.actionType=Kq[t],this._actionModel[r]=i,this.addQualifier(new Zp(t,n))}}class qq extends Es{constructor(t){super("progressive",t)}}class rp extends zq{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(Bq()),this}progressive(t){return t instanceof qq?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(kq(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(Fq()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),a&&o.preserveTransparency(),o}}class Xp{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new $$(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Xp?this.actions=this.actions.concat(t.actions):this.actions.push(new $$(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new rp("q",t)),this}format(t){return this.addAction(new rp("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Pq(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Y1;let r=t;return typeof t=="string"&&(r=new Es(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(_q(r))return r;t.push(r)}return{actions:t}}}class Uq extends Xp{}class Wq extends Xp{}function Hq(e){return e.match(/^https?:\//)}function Gq(e){return e.indexOf("/")<0}function Yq(e){return e.match(/^v[0-9]+/)}function Zq(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function Xq(e){return e||"image"}function Jq(e){return e||"upload"}function Qq(e,t,n){const r=n!==!1;return t?`v${t}`:Yq(e)||Hq(e)||Gq(e)?"":r?"v1":""}function Z1(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=eU(i,r/i.length)),i.slice(0,r)+String(e))}function eU(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const tU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip={};let E$=0;tU.split("").forEach(e=>{let t=E$.toString(2);t=Z1(t,6,"0"),ip[t]=e,E$++});function nU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function rU(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return Z1(t,2,"0")}).join(".")}function C$(e){let t="";const r=e.split(".").length*6,i=nU(e),a=rU(i);let s=parseInt(a.split(".").join("")).toString(2);if(s=Z1(s,r,"0"),s.length%6!==0)throw"Version must be smaller than 43.21.26)";return s.match(/.{1,6}/g).forEach(l=>{t+=ip[l]}),t}function iU(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),e.feature&&(t.feature=e.feature),t}const aU="1.22.0";function oU(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),o=i.padStart(6,"0");return ip[a]+ip[o]}function sU(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function uU(e){const t={techVersion:sU(),sdkCode:"T",sdkSemver:aU.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function w$(e){const t=uU(e),n=iU(t);try{const r=lU(n.techVersion),i=C$(n.sdkSemver),a=C$(r),o=oU(n.osVersion),s=n.feature,l=n.sdkCode,{product:f,osType:h}=n;return`D${f}${l}${i}${a}${h}${o}${s}`}catch{return"E"}}function lU(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const A$={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class cU{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new H1(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=Xq(this.assetType),n=Jq(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=A$[`${t}/${n}`],o=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(s&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(A$).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=Zq(this.cloudName,this.urlConfig),i=t?t.toString():"",a=Qq(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const s=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let f="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",w$(n)),f=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else f=this.urlConfig.queryParams||"",l&&(f+=`${f.length>0?"&":""}_a=${w$(n)}`);return f?`${s}?${f}`:s}}}class vT extends cU{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new rp("q",t)),this}format(t){return this.addAction(new rp("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class dU extends vT{constructor(t,n,r){super(t,n,r,new Uq)}}class fU extends vT{constructor(t,n,r){super(t,n,r,new Wq),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class hU{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new dU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new fU(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var a0,S$;function yT(){if(S$)return a0;S$=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return a0=e,a0}var o0,T$;function pU(){if(T$)return o0;T$=1;function e(){this.__data__=[],this.size=0}return o0=e,o0}var s0,P$;function X1(){if(P$)return s0;P$=1;function e(t,n){return t===n||t!==t&&n!==n}return s0=e,s0}var u0,_$;function Jp(){if(_$)return u0;_$=1;var e=X1();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return u0=t,u0}var l0,B$;function mU(){if(B$)return l0;B$=1;var e=Jp(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():n.call(a,o,1),--this.size,!0}return l0=r,l0}var c0,F$;function gU(){if(F$)return c0;F$=1;var e=Jp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return c0=t,c0}var d0,k$;function vU(){if(k$)return d0;k$=1;var e=Jp();function t(n){return e(this.__data__,n)>-1}return d0=t,d0}var f0,M$;function yU(){if(M$)return f0;M$=1;var e=Jp();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return f0=t,f0}var h0,R$;function Qp(){if(R$)return h0;R$=1;var e=pU(),t=mU(),n=gU(),r=vU(),i=yU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,h0=a,h0}var p0,I$;function bU(){if(I$)return p0;I$=1;var e=Qp();function t(){this.__data__=new e,this.size=0}return p0=t,p0}var m0,O$;function xU(){if(O$)return m0;O$=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return m0=e,m0}var g0,L$;function DU(){if(L$)return g0;L$=1;function e(t){return this.__data__.get(t)}return g0=e,g0}var v0,V$;function $U(){if(V$)return v0;V$=1;function e(t){return this.__data__.has(t)}return v0=e,v0}var y0,N$;function Mu(){if(N$)return y0;N$=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return y0=e,y0}var b0,j$;function J1(){if(j$)return b0;j$=1;var e=sc(),t=Mu(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==r||l==i||l==n||l==a}return b0=o,b0}var x0,K$;function EU(){if(K$)return x0;K$=1;var e=Go(),t=e["__core-js_shared__"];return x0=t,x0}var D0,z$;function CU(){if(z$)return D0;z$=1;var e=EU(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return D0=n,D0}var $0,q$;function bT(){if(q$)return $0;q$=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return $0=n,$0}var E0,U$;function wU(){if(U$)return E0;U$=1;var e=J1(),t=CU(),n=Mu(),r=bT(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,f=s.hasOwnProperty,h=RegExp("^"+l.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:a;return b.test(r(g))}return E0=m,E0}var C0,W$;function AU(){if(W$)return C0;W$=1;function e(t,n){return t==null?void 0:t[n]}return C0=e,C0}var w0,H$;function lc(){if(H$)return w0;H$=1;var e=wU(),t=AU();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return w0=n,w0}var A0,G$;function Q1(){if(G$)return A0;G$=1;var e=lc(),t=Go(),n=e(t,"Map");return A0=n,A0}var S0,Y$;function em(){if(Y$)return S0;Y$=1;var e=lc(),t=e(Object,"create");return S0=t,S0}var T0,Z$;function SU(){if(Z$)return T0;Z$=1;var e=em();function t(){this.__data__=e?e(null):{},this.size=0}return T0=t,T0}var P0,X$;function TU(){if(X$)return P0;X$=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return P0=e,P0}var _0,J$;function PU(){if(J$)return _0;J$=1;var e=em(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return r.call(o,a)?o[a]:void 0}return _0=i,_0}var B0,Q$;function _U(){if(Q$)return B0;Q$=1;var e=em(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return B0=r,B0}var F0,eE;function BU(){if(eE)return F0;eE=1;var e=em(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return F0=n,F0}var k0,tE;function FU(){if(tE)return k0;tE=1;var e=SU(),t=TU(),n=PU(),r=_U(),i=BU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,k0=a,k0}var M0,nE;function kU(){if(nE)return M0;nE=1;var e=FU(),t=Qp(),n=Q1();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return M0=r,M0}var R0,rE;function MU(){if(rE)return R0;rE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return R0=e,R0}var I0,iE;function tm(){if(iE)return I0;iE=1;var e=MU();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return I0=t,I0}var O0,aE;function RU(){if(aE)return O0;aE=1;var e=tm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return O0=t,O0}var L0,oE;function IU(){if(oE)return L0;oE=1;var e=tm();function t(n){return e(this,n).get(n)}return L0=t,L0}var V0,sE;function OU(){if(sE)return V0;sE=1;var e=tm();function t(n){return e(this,n).has(n)}return V0=t,V0}var N0,uE;function LU(){if(uE)return N0;uE=1;var e=tm();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return N0=t,N0}var j0,lE;function eb(){if(lE)return j0;lE=1;var e=kU(),t=RU(),n=IU(),r=OU(),i=LU();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var f=o[s];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,j0=a,j0}var K0,cE;function VU(){if(cE)return K0;cE=1;var e=Qp(),t=Q1(),n=eb(),r=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<r-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(a,o),this.size=s.size,this}return K0=i,K0}var z0,dE;function xT(){if(dE)return z0;dE=1;var e=Qp(),t=bU(),n=xU(),r=DU(),i=$U(),a=VU();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,z0=o,z0}var q0,fE;function NU(){if(fE)return q0;fE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return q0=t,q0}var U0,hE;function jU(){if(hE)return U0;hE=1;function e(t){return this.__data__.has(t)}return U0=e,U0}var W0,pE;function KU(){if(pE)return W0;pE=1;var e=eb(),t=NU(),n=jU();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,W0=r,W0}var H0,mE;function zU(){if(mE)return H0;mE=1;function e(t,n){return t.has(n)}return H0=e,H0}var G0,gE;function DT(){if(gE)return G0;gE=1;var e=KU(),t=yT(),n=zU(),r=1,i=2;function a(o,s,l,f,h,m){var g=l&r,b=o.length,$=s.length;if(b!=$&&!(g&&$>b))return!1;var x=m.get(o),A=m.get(s);if(x&&A)return x==s&&A==o;var w=-1,C=!0,E=l&i?new e:void 0;for(m.set(o,s),m.set(s,o);++w<b;){var T=o[w],P=s[w];if(f)var F=g?f(P,T,w,s,o,m):f(T,P,w,o,s,m);if(F!==void 0){if(F)continue;C=!1;break}if(E){if(!t(s,function(q,te){if(!n(E,te)&&(T===q||h(T,q,l,f,m)))return E.push(te)})){C=!1;break}}else if(!(T===P||h(T,P,l,f,m))){C=!1;break}}return m.delete(o),m.delete(s),C}return G0=a,G0}var Y0,vE;function qU(){if(vE)return Y0;vE=1;var e=Go(),t=e.Uint8Array;return Y0=t,Y0}var Z0,yE;function UU(){if(yE)return Z0;yE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return Z0=e,Z0}var X0,bE;function WU(){if(bE)return X0;bE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return X0=e,X0}var J0,xE;function HU(){if(xE)return J0;xE=1;var e=zp(),t=qU(),n=X1(),r=DT(),i=UU(),a=WU(),o=1,s=2,l="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",$="[object Set]",x="[object String]",A="[object Symbol]",w="[object ArrayBuffer]",C="[object DataView]",E=e?e.prototype:void 0,T=E?E.valueOf:void 0;function P(F,q,te,se,ae,I,Ee){switch(te){case C:if(F.byteLength!=q.byteLength||F.byteOffset!=q.byteOffset)return!1;F=F.buffer,q=q.buffer;case w:return!(F.byteLength!=q.byteLength||!I(new t(F),new t(q)));case l:case f:case g:return n(+F,+q);case h:return F.name==q.name&&F.message==q.message;case b:case x:return F==q+"";case m:var be=i;case $:var z=se&o;if(be||(be=a),F.size!=q.size&&!z)return!1;var G=Ee.get(F);if(G)return G==q;se|=s,Ee.set(F,q);var V=r(be(F),be(q),se,ae,I,Ee);return Ee.delete(F),V;case A:if(T)return T.call(F)==T.call(q)}return!1}return J0=P,J0}var Q0,DE;function GU(){if(DE)return Q0;DE=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return Q0=e,Q0}var ev,$E;function YU(){if($E)return ev;$E=1;var e=GU(),t=Aa();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return ev=n,ev}var tv,EE;function ZU(){if(EE)return tv;EE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var s=t[r];n(s,r,t)&&(o[a++]=s)}return o}return tv=e,tv}var nv,CE;function XU(){if(CE)return nv;CE=1;function e(){return[]}return nv=e,nv}var rv,wE;function JU(){if(wE)return rv;wE=1;var e=ZU(),t=XU(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return r.call(o,s)}))}:t;return rv=a,rv}var iv,AE;function QU(){if(AE)return iv;AE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return iv=e,iv}var av,SE;function eW(){if(SE)return av;SE=1;var e=sc(),t=uc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return av=r,av}var ov,TE;function tb(){if(TE)return ov;TE=1;var e=eW(),t=uc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return ov=a,ov}var dd={exports:{}},sv,PE;function tW(){if(PE)return sv;PE=1;function e(){return!1}return sv=e,sv}dd.exports;var _E;function nm(){return _E||(_E=1,function(e,t){var n=Go(),r=tW(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,f=l||r;e.exports=f}(dd,dd.exports)),dd.exports}var uv,BE;function nb(){if(BE)return uv;BE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return uv=n,uv}var lv,FE;function rb(){if(FE)return lv;FE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return lv=t,lv}var cv,kE;function nW(){if(kE)return cv;kE=1;var e=sc(),t=rb(),n=uc(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",f="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",$="[object String]",x="[object WeakMap]",A="[object ArrayBuffer]",w="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",P="[object Int16Array]",F="[object Int32Array]",q="[object Uint8Array]",te="[object Uint8ClampedArray]",se="[object Uint16Array]",ae="[object Uint32Array]",I={};I[C]=I[E]=I[T]=I[P]=I[F]=I[q]=I[te]=I[se]=I[ae]=!0,I[r]=I[i]=I[A]=I[a]=I[w]=I[o]=I[s]=I[l]=I[f]=I[h]=I[m]=I[g]=I[b]=I[$]=I[x]=!1;function Ee(be){return n(be)&&t(be.length)&&!!I[e(be)]}return cv=Ee,cv}var dv,ME;function rW(){if(ME)return dv;ME=1;function e(t){return function(n){return t(n)}}return dv=e,dv}var fd={exports:{}};fd.exports;var RE;function iW(){return RE||(RE=1,function(e,t){var n=F6(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(fd,fd.exports)),fd.exports}var fv,IE;function rm(){if(IE)return fv;IE=1;var e=nW(),t=rW(),n=iW(),r=n&&n.isTypedArray,i=r?t(r):e;return fv=i,fv}var hv,OE;function aW(){if(OE)return hv;OE=1;var e=QU(),t=tb(),n=Aa(),r=nm(),i=nb(),a=rm(),o=Object.prototype,s=o.hasOwnProperty;function l(f,h){var m=n(f),g=!m&&t(f),b=!m&&!g&&r(f),$=!m&&!g&&!b&&a(f),x=m||g||b||$,A=x?e(f.length,String):[],w=A.length;for(var C in f)(h||s.call(f,C))&&!(x&&(C=="length"||b&&(C=="offset"||C=="parent")||$&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,w)))&&A.push(C);return A}return hv=l,hv}var pv,LE;function $T(){if(LE)return pv;LE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return pv=t,pv}var mv,VE;function ET(){if(VE)return mv;VE=1;function e(t,n){return function(r){return t(n(r))}}return mv=e,mv}var gv,NE;function oW(){if(NE)return gv;NE=1;var e=ET(),t=e(Object.keys,Object);return gv=t,gv}var vv,jE;function CT(){if(jE)return vv;jE=1;var e=$T(),t=oW(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))r.call(a,s)&&s!="constructor"&&o.push(s);return o}return vv=i,vv}var yv,KE;function im(){if(KE)return yv;KE=1;var e=J1(),t=rb();function n(r){return r!=null&&t(r.length)&&!e(r)}return yv=n,yv}var bv,zE;function ib(){if(zE)return bv;zE=1;var e=aW(),t=CT(),n=im();function r(i){return n(i)?e(i):t(i)}return bv=r,bv}var xv,qE;function sW(){if(qE)return xv;qE=1;var e=YU(),t=JU(),n=ib();function r(i){return e(i,n,t)}return xv=r,xv}var Dv,UE;function uW(){if(UE)return Dv;UE=1;var e=sW(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,s,l,f,h){var m=s&t,g=e(a),b=g.length,$=e(o),x=$.length;if(b!=x&&!m)return!1;for(var A=b;A--;){var w=g[A];if(!(m?w in o:r.call(o,w)))return!1}var C=h.get(a),E=h.get(o);if(C&&E)return C==o&&E==a;var T=!0;h.set(a,o),h.set(o,a);for(var P=m;++A<b;){w=g[A];var F=a[w],q=o[w];if(l)var te=m?l(q,F,w,o,a,h):l(F,q,w,a,o,h);if(!(te===void 0?F===q||f(F,q,s,l,h):te)){T=!1;break}P||(P=w=="constructor")}if(T&&!P){var se=a.constructor,ae=o.constructor;se!=ae&&"constructor"in a&&"constructor"in o&&!(typeof se=="function"&&se instanceof se&&typeof ae=="function"&&ae instanceof ae)&&(T=!1)}return h.delete(a),h.delete(o),T}return Dv=i,Dv}var $v,WE;function lW(){if(WE)return $v;WE=1;var e=lc(),t=Go(),n=e(t,"DataView");return $v=n,$v}var Ev,HE;function cW(){if(HE)return Ev;HE=1;var e=lc(),t=Go(),n=e(t,"Promise");return Ev=n,Ev}var Cv,GE;function dW(){if(GE)return Cv;GE=1;var e=lc(),t=Go(),n=e(t,"Set");return Cv=n,Cv}var wv,YE;function fW(){if(YE)return wv;YE=1;var e=lc(),t=Go(),n=e(t,"WeakMap");return wv=n,wv}var Av,ZE;function wT(){if(ZE)return Av;ZE=1;var e=lW(),t=Q1(),n=cW(),r=dW(),i=fW(),a=sc(),o=bT(),s="[object Map]",l="[object Object]",f="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=o(e),$=o(t),x=o(n),A=o(r),w=o(i),C=a;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=s||n&&C(n.resolve())!=f||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(E){var T=a(E),P=T==l?E.constructor:void 0,F=P?o(P):"";if(F)switch(F){case b:return g;case $:return s;case x:return f;case A:return h;case w:return m}return T}),Av=C,Av}var Sv,XE;function hW(){if(XE)return Sv;XE=1;var e=xT(),t=DT(),n=HU(),r=uW(),i=wT(),a=Aa(),o=nm(),s=rm(),l=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function $(x,A,w,C,E,T){var P=a(x),F=a(A),q=P?h:i(x),te=F?h:i(A);q=q==f?m:q,te=te==f?m:te;var se=q==m,ae=te==m,I=q==te;if(I&&o(x)){if(!o(A))return!1;P=!0,se=!1}if(I&&!se)return T||(T=new e),P||s(x)?t(x,A,w,C,E,T):n(x,A,q,w,C,E,T);if(!(w&l)){var Ee=se&&b.call(x,"__wrapped__"),be=ae&&b.call(A,"__wrapped__");if(Ee||be){var z=Ee?x.value():x,G=be?A.value():A;return T||(T=new e),E(z,G,w,C,T)}}return I?(T||(T=new e),r(x,A,w,C,E,T)):!1}return Sv=$,Sv}var Tv,JE;function ab(){if(JE)return Tv;JE=1;var e=hW(),t=uc();function n(r,i,a,o,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,s)}return Tv=n,Tv}var Pv,QE;function pW(){if(QE)return Pv;QE=1;var e=xT(),t=ab(),n=1,r=2;function i(a,o,s,l){var f=s.length,h=f,m=!l;if(a==null)return!h;for(a=Object(a);f--;){var g=s[f];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++f<h;){g=s[f];var b=g[0],$=a[b],x=g[1];if(m&&g[2]){if($===void 0&&!(b in a))return!1}else{var A=new e;if(l)var w=l($,x,b,a,o,A);if(!(w===void 0?t(x,$,n|r,l,A):w))return!1}}return!0}return Pv=i,Pv}var _v,eC;function AT(){if(eC)return _v;eC=1;var e=Mu();function t(n){return n===n&&!e(n)}return _v=t,_v}var Bv,tC;function mW(){if(tC)return Bv;tC=1;var e=AT(),t=ib();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],s=r[o];i[a]=[o,s,e(s)]}return i}return Bv=n,Bv}var Fv,nC;function ST(){if(nC)return Fv;nC=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Fv=e,Fv}var kv,rC;function gW(){if(rC)return kv;rC=1;var e=pW(),t=mW(),n=ST();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return kv=r,kv}var Mv,iC;function ob(){if(iC)return Mv;iC=1;var e=Aa(),t=qp(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return Mv=i,Mv}var Rv,aC;function vW(){if(aC)return Rv;aC=1;var e=eb(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var f=r.apply(this,o);return a.cache=l.set(s,f)||l,f};return a.cache=new(n.Cache||e),a}return n.Cache=e,Rv=n,Rv}var Iv,oC;function yW(){if(oC)return Iv;oC=1;var e=vW(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Iv=n,Iv}var Ov,sC;function bW(){if(sC)return Ov;sC=1;var e=yW(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,f){a.push(l?f.replace(n,"$1"):s||o)}),a});return Ov=r,Ov}var Lv,uC;function TT(){if(uC)return Lv;uC=1;var e=Aa(),t=ob(),n=bW(),r=R1();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return Lv=i,Lv}var Vv,lC;function am(){if(lC)return Vv;lC=1;var e=qp();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Vv=t,Vv}var Nv,cC;function PT(){if(cC)return Nv;cC=1;var e=TT(),t=am();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return Nv=n,Nv}var jv,dC;function xW(){if(dC)return jv;dC=1;var e=PT();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return jv=t,jv}var Kv,fC;function DW(){if(fC)return Kv;fC=1;function e(t,n){return t!=null&&n in Object(t)}return Kv=e,Kv}var zv,hC;function $W(){if(hC)return zv;hC=1;var e=TT(),t=tb(),n=Aa(),r=nb(),i=rb(),a=am();function o(s,l,f){l=e(l,s);for(var h=-1,m=l.length,g=!1;++h<m;){var b=a(l[h]);if(!(g=s!=null&&f(s,b)))break;s=s[b]}return g||++h!=m?g:(m=s==null?0:s.length,!!m&&i(m)&&r(b,m)&&(n(s)||t(s)))}return zv=o,zv}var qv,pC;function EW(){if(pC)return qv;pC=1;var e=DW(),t=$W();function n(r,i){return r!=null&&t(r,i,e)}return qv=n,qv}var Uv,mC;function CW(){if(mC)return Uv;mC=1;var e=ab(),t=xW(),n=EW(),r=ob(),i=AT(),a=ST(),o=am(),s=1,l=2;function f(h,m){return r(h)&&i(m)?a(o(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,s|l)}}return Uv=f,Uv}var Wv,gC;function wW(){if(gC)return Wv;gC=1;function e(t){return t}return Wv=e,Wv}var Hv,vC;function AW(){if(vC)return Hv;vC=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Hv=e,Hv}var Gv,yC;function SW(){if(yC)return Gv;yC=1;var e=PT();function t(n){return function(r){return e(r,n)}}return Gv=t,Gv}var Yv,bC;function TW(){if(bC)return Yv;bC=1;var e=AW(),t=SW(),n=ob(),r=am();function i(a){return n(a)?e(r(a)):t(a)}return Yv=i,Yv}var Zv,xC;function _T(){if(xC)return Zv;xC=1;var e=gW(),t=CW(),n=wW(),r=Aa(),i=TW();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return Zv=a,Zv}var Xv,DC;function PW(){if(DC)return Xv;DC=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),s=i(n),l=s.length;l--;){var f=s[t?l:++a];if(r(o[f],f,o)===!1)break}return n}}return Xv=e,Xv}var Jv,$C;function _W(){if($C)return Jv;$C=1;var e=PW(),t=e();return Jv=t,Jv}var Qv,EC;function BT(){if(EC)return Qv;EC=1;var e=_W(),t=ib();function n(r,i){return r&&e(r,i,t)}return Qv=n,Qv}var e4,CC;function BW(){if(CC)return e4;CC=1;var e=im();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,s=r?o:-1,l=Object(i);(r?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return e4=t,e4}var t4,wC;function FW(){if(wC)return t4;wC=1;var e=BT(),t=BW(),n=t(e);return t4=n,t4}var n4,AC;function kW(){if(AC)return n4;AC=1;var e=FW();function t(n,r){var i;return e(n,function(a,o,s){return i=r(a,o,s),!i}),!!i}return n4=t,n4}var r4,SC;function FT(){if(SC)return r4;SC=1;var e=X1(),t=im(),n=nb(),r=Mu();function i(a,o,s){if(!r(s))return!1;var l=typeof o;return(l=="number"?t(s)&&n(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return r4=i,r4}var i4,TC;function MW(){if(TC)return i4;TC=1;var e=yT(),t=_T(),n=kW(),r=Aa(),i=FT();function a(o,s,l){var f=r(o)?e:n;return l&&i(o,s,l)&&(s=void 0),f(o,t(s,3))}return i4=a,i4}var RW=MW();const IW=hr(RW);var hd={exports:{}};/**
35
+ * @license
36
+ * Lodash <https://lodash.com/>
37
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
38
+ * Released under MIT license <https://lodash.com/license>
39
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
40
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
41
+ */var OW=hd.exports,PC;function LW(){return PC||(PC=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",m=1,g=2,b=4,$=1,x=2,A=1,w=2,C=4,E=8,T=16,P=32,F=64,q=128,te=256,se=512,ae=30,I="...",Ee=800,be=16,z=1,G=2,V=3,R=1/0,K=9007199254740991,fe=17976931348623157e292,M=NaN,oe=4294967295,le=oe-1,Se=oe>>>1,_e=[["ary",q],["bind",A],["bindKey",w],["curry",E],["curryRight",T],["flip",se],["partial",P],["partialRight",F],["rearg",te]],Be="[object Arguments]",Ge="[object Array]",Xe="[object AsyncFunction]",Ne="[object Boolean]",qe="[object Date]",ke="[object DOMException]",je="[object Error]",Te="[object Function]",Ye="[object GeneratorFunction]",ht="[object Map]",Ht="[object Number]",xt="[object Null]",_t="[object Object]",Wr="[object Promise]",Qt="[object Proxy]",xe="[object RegExp]",Ae="[object Set]",Fe="[object String]",Je="[object Symbol]",et="[object Undefined]",Qe="[object WeakMap]",gt="[object WeakSet]",kt="[object ArrayBuffer]",Dt="[object DataView]",yn="[object Float32Array]",Dr="[object Float64Array]",zt="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",pr="[object Uint8ClampedArray]",Hr="[object Uint16Array]",li="[object Uint32Array]",Br=/\b__p \+= '';/g,Ba=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,ci=/[&<>"']/g,uo=RegExp(bt.source),Ac=RegExp(ci.source),Lu=/<%-([\s\S]+?)%>/g,Sc=/<%([\s\S]+?)%>/g,Vu=/<%=([\s\S]+?)%>/g,Fs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nu=/^\w*$/,ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(na.source),Cn=/^\s+/,lo=/\s/,ju=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$r=/\{\n\/\* \[wrapped with (.+)\] \*/,Ku=/,? & /,zu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tc=/[()=,{}\[\]\/\s]/,Gr=/\\(\\)?/g,at=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,ra=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,ks=/^0o[0-7]+$/i,Fa=/^(?:0|[1-9]\d*)$/,fi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mn=/($^)/,Jo=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",Pc="\\u0300-\\u036f",qu="\\ufe20-\\ufe2f",_c="\\u20d0-\\u20ff",Ms=Pc+qu+_c,co="\\u2700-\\u27bf",Uu="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",Bc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fc="\\u2000-\\u206f",kc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wu="A-Z\\xc0-\\xd6\\xd8-\\xde",Is="\\ufe0e\\ufe0f",Os=Rs+Bc+Fc+kc,fo="['’]",Hu="["+jt+"]",Gu="["+Os+"]",Fr="["+Ms+"]",mr="\\d+",kr="["+co+"]",ka="["+Uu+"]",Qo="[^"+jt+Os+mr+co+Uu+Wu+"]",gr="\\ud83c[\\udffb-\\udfff]",ho="(?:"+Fr+"|"+gr+")",po="[^"+jt+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",hi="[\\ud800-\\udbff][\\udc00-\\udfff]",ar="["+Wu+"]",Ti="\\u200d",Ls="(?:"+ka+"|"+Qo+")",Yu="(?:"+ar+"|"+Qo+")",pn="(?:"+fo+"(?:d|ll|m|re|s|t|ve))?",Vs="(?:"+fo+"(?:D|LL|M|RE|S|T|VE))?",mo=ho+"?",Ns="["+Is+"]?",Zu="(?:"+Ti+"(?:"+[po,Si,hi].join("|")+")"+Ns+mo+")*",Mr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",js="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ma=Ns+mo+Zu,Ra="(?:"+[kr,Si,hi].join("|")+")"+Ma,go="(?:"+[po+Fr+"?",Fr,Si,hi,Hu].join("|")+")",ia=RegExp(fo,"g"),vo=RegExp(Fr,"g"),es=RegExp(gr+"(?="+gr+")|"+go+Ma,"g"),Xu=RegExp([ar+"?"+ka+"+"+pn+"(?="+[Gu,ar,"$"].join("|")+")",Yu+"+"+Vs+"(?="+[Gu,ar+Ls,"$"].join("|")+")",ar+"?"+Ls+"+"+pn,ar+"+"+Vs,js,Mr,mr,Ra].join("|"),"g"),Mc=RegExp("["+Ti+jt+Ms+Is+"]"),yo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bo=-1,Gt={};Gt[yn]=Gt[Dr]=Gt[zt]=Gt[Pt]=Gt[It]=Gt[qt]=Gt[pr]=Gt[Hr]=Gt[li]=!0,Gt[Be]=Gt[Ge]=Gt[kt]=Gt[Ne]=Gt[Dt]=Gt[qe]=Gt[je]=Gt[Te]=Gt[ht]=Gt[Ht]=Gt[_t]=Gt[xe]=Gt[Ae]=Gt[Fe]=Gt[Qe]=!1;var en={};en[Be]=en[Ge]=en[kt]=en[Dt]=en[Ne]=en[qe]=en[yn]=en[Dr]=en[zt]=en[Pt]=en[It]=en[ht]=en[Ht]=en[_t]=en[xe]=en[Ae]=en[Fe]=en[Je]=en[qt]=en[pr]=en[Hr]=en[li]=!0,en[je]=en[Te]=en[Qe]=!1;var ie={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Me={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},We={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,rr=parseInt,or=typeof Hi=="object"&&Hi&&Hi.Object===Object&&Hi,Vn=typeof self=="object"&&self&&self.Object===Object&&self,wn=or||Vn||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,Ks=_i&&_i.exports===Pi,ts=Ks&&or.process,sr=function(){try{var k=_i&&_i.require&&_i.require("util").types;return k||ts&&ts.binding&&ts.binding("util")}catch{}}(),xo=sr&&sr.isArrayBuffer,Rf=sr&&sr.isDate,If=sr&&sr.isMap,Ic=sr&&sr.isRegExp,ns=sr&&sr.isSet,aa=sr&&sr.isTypedArray;function Rn(k,ee,Y){switch(Y.length){case 0:return k.call(ee);case 1:return k.call(ee,Y[0]);case 2:return k.call(ee,Y[0],Y[1]);case 3:return k.call(ee,Y[0],Y[1],Y[2])}return k.apply(ee,Y)}function Ia(k,ee,Y,pe){for(var he=-1,W=k==null?0:k.length;++he<W;){var Z=k[he];ee(pe,Z,Y(Z),k)}return pe}function fn(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe&&ee(k[Y],Y,k)!==!1;);return k}function ur(k,ee){for(var Y=k==null?0:k.length;Y--&&ee(k[Y],Y,k)!==!1;);return k}function Do(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe;)if(!ee(k[Y],Y,k))return!1;return!0}function Er(k,ee){for(var Y=-1,pe=k==null?0:k.length,he=0,W=[];++Y<pe;){var Z=k[Y];ee(Z,Y,k)&&(W[he++]=Z)}return W}function Oa(k,ee){var Y=k==null?0:k.length;return!!Y&&$o(k,ee,0)>-1}function Ju(k,ee,Y){for(var pe=-1,he=k==null?0:k.length;++pe<he;)if(Y(ee,k[pe]))return!0;return!1}function un(k,ee){for(var Y=-1,pe=k==null?0:k.length,he=Array(pe);++Y<pe;)he[Y]=ee(k[Y],Y,k);return he}function oa(k,ee){for(var Y=-1,pe=ee.length,he=k.length;++Y<pe;)k[he+Y]=ee[Y];return k}function Qu(k,ee,Y,pe){var he=-1,W=k==null?0:k.length;for(pe&&W&&(Y=k[++he]);++he<W;)Y=ee(Y,k[he],he,k);return Y}function zs(k,ee,Y,pe){var he=k==null?0:k.length;for(pe&&he&&(Y=k[--he]);he--;)Y=ee(Y,k[he],he,k);return Y}function La(k,ee){for(var Y=-1,pe=k==null?0:k.length;++Y<pe;)if(ee(k[Y],Y,k))return!0;return!1}var qs=el("length");function Us(k){return k.split("")}function Km(k){return k.match(zu)||[]}function Oc(k,ee,Y){var pe;return Y(k,function(he,W,Z){if(ee(he,W,Z))return pe=W,!1}),pe}function Ws(k,ee,Y,pe){for(var he=k.length,W=Y+(pe?1:-1);pe?W--:++W<he;)if(ee(k[W],W,k))return W;return-1}function $o(k,ee,Y){return ee===ee?p(k,ee,Y):Ws(k,Lc,Y)}function Of(k,ee,Y,pe){for(var he=Y-1,W=k.length;++he<W;)if(pe(k[he],ee))return he;return-1}function Lc(k){return k!==k}function Hs(k,ee){var Y=k==null?0:k.length;return Y?Va(k,ee)/Y:M}function el(k){return function(ee){return ee==null?n:ee[k]}}function tl(k){return function(ee){return k==null?n:k[ee]}}function Vc(k,ee,Y,pe,he){return he(k,function(W,Z,L){Y=pe?(pe=!1,W):ee(Y,W,Z,L)}),Y}function Gs(k,ee){var Y=k.length;for(k.sort(ee);Y--;)k[Y]=k[Y].value;return k}function Va(k,ee){for(var Y,pe=-1,he=k.length;++pe<he;){var W=ee(k[pe]);W!==n&&(Y=Y===n?W:Y+W)}return Y}function nl(k,ee){for(var Y=-1,pe=Array(k);++Y<k;)pe[Y]=ee(Y);return pe}function zm(k,ee){return un(ee,function(Y){return[Y,k[Y]]})}function Lf(k){return k&&k.slice(0,B(k)+1).replace(Cn,"")}function Cr(k){return function(ee){return k(ee)}}function Nc(k,ee){return un(ee,function(Y){return k[Y]})}function mn(k,ee){return k.has(ee)}function rl(k,ee){for(var Y=-1,pe=k.length;++Y<pe&&$o(ee,k[Y],0)>-1;);return Y}function lr(k,ee){for(var Y=k.length;Y--&&$o(ee,k[Y],0)>-1;);return Y}function qm(k,ee){for(var Y=k.length,pe=0;Y--;)k[Y]===ee&&++pe;return pe}var Um=tl(ie),Eo=tl(Me);function pi(k){return"\\"+pt[k]}function Wm(k,ee){return k==null?n:k[ee]}function wr(k){return Mc.test(k)}function jc(k){return yo.test(k)}function Na(k){for(var ee,Y=[];!(ee=k.next()).done;)Y.push(ee.value);return Y}function In(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe,he){Y[++ee]=[he,pe]}),Y}function Bi(k,ee){return function(Y){return k(ee(Y))}}function Yr(k,ee){for(var Y=-1,pe=k.length,he=0,W=[];++Y<pe;){var Z=k[Y];(Z===ee||Z===h)&&(k[Y]=h,W[he++]=Y)}return W}function rs(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe){Y[++ee]=pe}),Y}function c(k){var ee=-1,Y=Array(k.size);return k.forEach(function(pe){Y[++ee]=[pe,pe]}),Y}function p(k,ee,Y){for(var pe=Y-1,he=k.length;++pe<he;)if(k[pe]===ee)return pe;return-1}function v(k,ee,Y){for(var pe=Y+1;pe--;)if(k[pe]===ee)return pe;return pe}function D(k){return wr(k)?ge(k):qs(k)}function _(k){return wr(k)?Q(k):Us(k)}function B(k){for(var ee=k.length;ee--&&lo.test(k.charAt(ee)););return ee}var U=tl(We);function ge(k){for(var ee=es.lastIndex=0;es.test(k);)++ee;return ee}function Q(k){return k.match(es)||[]}function De(k){return k.match(Xu)||[]}var Ce=function k(ee){ee=ee==null?wn:Re.defaults(wn.Object(),ee,Re.pick(wn,Rc));var Y=ee.Array,pe=ee.Date,he=ee.Error,W=ee.Function,Z=ee.Math,L=ee.Object,j=ee.RegExp,H=ee.String,ne=ee.TypeError,ue=Y.prototype,me=W.prototype,Oe=L.prototype,nt=ee["__core-js_shared__"],tt=me.toString,Ve=Oe.hasOwnProperty,st=0,ct=function(){var u=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Le=Oe.toString,$e=tt.call(L),ce=wn._,J=j("^"+tt.call(Ve).replace(na,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Ks?ee.Buffer:n,Ke=ee.Symbol,Ie=ee.Uint8Array,lt=ve?ve.allocUnsafe:n,St=Bi(L.getPrototypeOf,L),Et=L.create,xn=Oe.propertyIsEnumerable,Ut=ue.splice,cr=Ke?Ke.isConcatSpreadable:n,Zn=Ke?Ke.iterator:n,On=Ke?Ke.toStringTag:n,Nn=function(){try{var u=Qs(L,"defineProperty");return u({},"",{}),u}catch{}}(),jn=ee.clearTimeout!==wn.clearTimeout&&ee.clearTimeout,vr=pe&&pe.now!==wn.Date.now&&pe.now,dt=ee.setTimeout!==wn.setTimeout&&ee.setTimeout,ln=Z.ceil,Zr=Z.floor,Fi=L.getOwnPropertySymbols,sa=ve?ve.isBuffer:n,mi=ee.isFinite,ua=ue.join,la=Bi(L.keys,L),Yt=Z.max,Dn=Z.min,ja=pe.now,gi=ee.parseInt,ca=Z.random,vi=ue.reverse,da=Qs(ee,"DataView"),Ka=Qs(ee,"Map"),is=Qs(ee,"Promise"),il=Qs(ee,"Set"),Kc=Qs(ee,"WeakMap"),zc=Qs(L,"create"),Vf=Kc&&new Kc,al={},mI=eu(da),gI=eu(Ka),vI=eu(is),yI=eu(il),bI=eu(Kc),Nf=Ke?Ke.prototype:n,qc=Nf?Nf.valueOf:n,lD=Nf?Nf.toString:n;function X(u){if(Ln(u)&&!Bt(u)&&!(u instanceof Kt)){if(u instanceof ki)return u;if(Ve.call(u,"__wrapped__"))return c5(u)}return new ki(u)}var ol=function(){function u(){}return function(d){if(!Pn(d))return{};if(Et)return Et(d);u.prototype=d;var y=new u;return u.prototype=n,y}}();function jf(){}function ki(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}X.templateSettings={escape:Lu,evaluate:Sc,interpolate:Vu,variable:"",imports:{_:X}},X.prototype=jf.prototype,X.prototype.constructor=X,ki.prototype=ol(jf.prototype),ki.prototype.constructor=ki;function Kt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function xI(){var u=new Kt(this.__wrapped__);return u.__actions__=Xr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Xr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Xr(this.__views__),u}function DI(){if(this.__filtered__){var u=new Kt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function $I(){var u=this.__wrapped__.value(),d=this.__dir__,y=Bt(u),S=d<0,N=y?u.length:0,re=MO(0,N,this.__views__),ye=re.start,we=re.end,Pe=we-ye,Ue=S?we:ye-1,He=this.__iteratees__,Ze=He.length,ot=0,vt=Dn(Pe,this.__takeCount__);if(!y||!S&&N==Pe&&vt==Pe)return kD(u,this.__actions__);var Ct=[];e:for(;Pe--&&ot<vt;){Ue+=d;for(var Ot=-1,wt=u[Ue];++Ot<Ze;){var Vt=He[Ot],Wt=Vt.iteratee,xi=Vt.type,Or=Wt(wt);if(xi==G)wt=Or;else if(!Or){if(xi==z)continue e;break e}}Ct[ot++]=wt}return Ct}Kt.prototype=ol(jf.prototype),Kt.prototype.constructor=Kt;function Ys(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function EI(){this.__data__=zc?zc(null):{},this.size=0}function CI(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function wI(u){var d=this.__data__;if(zc){var y=d[u];return y===l?n:y}return Ve.call(d,u)?d[u]:n}function AI(u){var d=this.__data__;return zc?d[u]!==n:Ve.call(d,u)}function SI(u,d){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=zc&&d===n?l:d,this}Ys.prototype.clear=EI,Ys.prototype.delete=CI,Ys.prototype.get=wI,Ys.prototype.has=AI,Ys.prototype.set=SI;function Co(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function TI(){this.__data__=[],this.size=0}function PI(u){var d=this.__data__,y=Kf(d,u);if(y<0)return!1;var S=d.length-1;return y==S?d.pop():Ut.call(d,y,1),--this.size,!0}function _I(u){var d=this.__data__,y=Kf(d,u);return y<0?n:d[y][1]}function BI(u){return Kf(this.__data__,u)>-1}function FI(u,d){var y=this.__data__,S=Kf(y,u);return S<0?(++this.size,y.push([u,d])):y[S][1]=d,this}Co.prototype.clear=TI,Co.prototype.delete=PI,Co.prototype.get=_I,Co.prototype.has=BI,Co.prototype.set=FI;function wo(u){var d=-1,y=u==null?0:u.length;for(this.clear();++d<y;){var S=u[d];this.set(S[0],S[1])}}function kI(){this.size=0,this.__data__={hash:new Ys,map:new(Ka||Co),string:new Ys}}function MI(u){var d=eh(this,u).delete(u);return this.size-=d?1:0,d}function RI(u){return eh(this,u).get(u)}function II(u){return eh(this,u).has(u)}function OI(u,d){var y=eh(this,u),S=y.size;return y.set(u,d),this.size+=y.size==S?0:1,this}wo.prototype.clear=kI,wo.prototype.delete=MI,wo.prototype.get=RI,wo.prototype.has=II,wo.prototype.set=OI;function Zs(u){var d=-1,y=u==null?0:u.length;for(this.__data__=new wo;++d<y;)this.add(u[d])}function LI(u){return this.__data__.set(u,l),this}function VI(u){return this.__data__.has(u)}Zs.prototype.add=Zs.prototype.push=LI,Zs.prototype.has=VI;function fa(u){var d=this.__data__=new Co(u);this.size=d.size}function NI(){this.__data__=new Co,this.size=0}function jI(u){var d=this.__data__,y=d.delete(u);return this.size=d.size,y}function KI(u){return this.__data__.get(u)}function zI(u){return this.__data__.has(u)}function qI(u,d){var y=this.__data__;if(y instanceof Co){var S=y.__data__;if(!Ka||S.length<i-1)return S.push([u,d]),this.size=++y.size,this;y=this.__data__=new wo(S)}return y.set(u,d),this.size=y.size,this}fa.prototype.clear=NI,fa.prototype.delete=jI,fa.prototype.get=KI,fa.prototype.has=zI,fa.prototype.set=qI;function cD(u,d){var y=Bt(u),S=!y&&tu(u),N=!y&&!S&&ls(u),re=!y&&!S&&!N&&cl(u),ye=y||S||N||re,we=ye?nl(u.length,H):[],Pe=we.length;for(var Ue in u)(d||Ve.call(u,Ue))&&!(ye&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||Po(Ue,Pe)))&&we.push(Ue);return we}function dD(u){var d=u.length;return d?u[rg(0,d-1)]:n}function UI(u,d){return th(Xr(u),Xs(d,0,u.length))}function WI(u){return th(Xr(u))}function Hm(u,d,y){(y!==n&&!ha(u[d],y)||y===n&&!(d in u))&&Ao(u,d,y)}function Uc(u,d,y){var S=u[d];(!(Ve.call(u,d)&&ha(S,y))||y===n&&!(d in u))&&Ao(u,d,y)}function Kf(u,d){for(var y=u.length;y--;)if(ha(u[y][0],d))return y;return-1}function HI(u,d,y,S){return as(u,function(N,re,ye){d(S,N,y(N),ye)}),S}function fD(u,d){return u&&qa(d,dr(d),u)}function GI(u,d){return u&&qa(d,Qr(d),u)}function Ao(u,d,y){d=="__proto__"&&Nn?Nn(u,d,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[d]=y}function Gm(u,d){for(var y=-1,S=d.length,N=Y(S),re=u==null;++y<S;)N[y]=re?n:Tg(u,d[y]);return N}function Xs(u,d,y){return u===u&&(y!==n&&(u=u<=y?u:y),d!==n&&(u=u>=d?u:d)),u}function Mi(u,d,y,S,N,re){var ye,we=d&m,Pe=d&g,Ue=d&b;if(y&&(ye=N?y(u,S,N,re):y(u)),ye!==n)return ye;if(!Pn(u))return u;var He=Bt(u);if(He){if(ye=IO(u),!we)return Xr(u,ye)}else{var Ze=Ar(u),ot=Ze==Te||Ze==Ye;if(ls(u))return ID(u,we);if(Ze==_t||Ze==Be||ot&&!N){if(ye=Pe||ot?{}:t5(u),!we)return Pe?wO(u,GI(ye,u)):CO(u,fD(ye,u))}else{if(!en[Ze])return N?u:{};ye=OO(u,Ze,we)}}re||(re=new fa);var vt=re.get(u);if(vt)return vt;re.set(u,ye),_5(u)?u.forEach(function(wt){ye.add(Mi(wt,d,y,wt,u,re))}):T5(u)&&u.forEach(function(wt,Vt){ye.set(Vt,Mi(wt,d,y,Vt,u,re))});var Ct=Ue?Pe?pg:hg:Pe?Qr:dr,Ot=He?n:Ct(u);return fn(Ot||u,function(wt,Vt){Ot&&(Vt=wt,wt=u[Vt]),Uc(ye,Vt,Mi(wt,d,y,Vt,u,re))}),ye}function YI(u){var d=dr(u);return function(y){return hD(y,u,d)}}function hD(u,d,y){var S=y.length;if(u==null)return!S;for(u=L(u);S--;){var N=y[S],re=d[N],ye=u[N];if(ye===n&&!(N in u)||!re(ye))return!1}return!0}function pD(u,d,y){if(typeof u!="function")throw new ne(o);return Jc(function(){u.apply(n,y)},d)}function Wc(u,d,y,S){var N=-1,re=Oa,ye=!0,we=u.length,Pe=[],Ue=d.length;if(!we)return Pe;y&&(d=un(d,Cr(y))),S?(re=Ju,ye=!1):d.length>=i&&(re=mn,ye=!1,d=new Zs(d));e:for(;++N<we;){var He=u[N],Ze=y==null?He:y(He);if(He=S||He!==0?He:0,ye&&Ze===Ze){for(var ot=Ue;ot--;)if(d[ot]===Ze)continue e;Pe.push(He)}else re(d,Ze,S)||Pe.push(He)}return Pe}var as=jD(za),mD=jD(Zm,!0);function ZI(u,d){var y=!0;return as(u,function(S,N,re){return y=!!d(S,N,re),y}),y}function zf(u,d,y){for(var S=-1,N=u.length;++S<N;){var re=u[S],ye=d(re);if(ye!=null&&(we===n?ye===ye&&!bi(ye):y(ye,we)))var we=ye,Pe=re}return Pe}function XI(u,d,y,S){var N=u.length;for(y=Mt(y),y<0&&(y=-y>N?0:N+y),S=S===n||S>N?N:Mt(S),S<0&&(S+=N),S=y>S?0:F5(S);y<S;)u[y++]=d;return u}function gD(u,d){var y=[];return as(u,function(S,N,re){d(S,N,re)&&y.push(S)}),y}function yr(u,d,y,S,N){var re=-1,ye=u.length;for(y||(y=VO),N||(N=[]);++re<ye;){var we=u[re];d>0&&y(we)?d>1?yr(we,d-1,y,S,N):oa(N,we):S||(N[N.length]=we)}return N}var Ym=KD(),vD=KD(!0);function za(u,d){return u&&Ym(u,d,dr)}function Zm(u,d){return u&&vD(u,d,dr)}function qf(u,d){return Er(d,function(y){return _o(u[y])})}function Js(u,d){d=ss(d,u);for(var y=0,S=d.length;u!=null&&y<S;)u=u[Ua(d[y++])];return y&&y==S?u:n}function yD(u,d,y){var S=d(u);return Bt(u)?S:oa(S,y(u))}function Rr(u){return u==null?u===n?et:xt:On&&On in L(u)?kO(u):WO(u)}function Xm(u,d){return u>d}function JI(u,d){return u!=null&&Ve.call(u,d)}function QI(u,d){return u!=null&&d in L(u)}function eO(u,d,y){return u>=Dn(d,y)&&u<Yt(d,y)}function Jm(u,d,y){for(var S=y?Ju:Oa,N=u[0].length,re=u.length,ye=re,we=Y(re),Pe=1/0,Ue=[];ye--;){var He=u[ye];ye&&d&&(He=un(He,Cr(d))),Pe=Dn(He.length,Pe),we[ye]=!y&&(d||N>=120&&He.length>=120)?new Zs(ye&&He):n}He=u[0];var Ze=-1,ot=we[0];e:for(;++Ze<N&&Ue.length<Pe;){var vt=He[Ze],Ct=d?d(vt):vt;if(vt=y||vt!==0?vt:0,!(ot?mn(ot,Ct):S(Ue,Ct,y))){for(ye=re;--ye;){var Ot=we[ye];if(!(Ot?mn(Ot,Ct):S(u[ye],Ct,y)))continue e}ot&&ot.push(Ct),Ue.push(vt)}}return Ue}function tO(u,d,y,S){return za(u,function(N,re,ye){d(S,y(N),re,ye)}),S}function Hc(u,d,y){d=ss(d,u),u=a5(u,d);var S=u==null?u:u[Ua(Ii(d))];return S==null?n:Rn(S,u,y)}function bD(u){return Ln(u)&&Rr(u)==Be}function nO(u){return Ln(u)&&Rr(u)==kt}function rO(u){return Ln(u)&&Rr(u)==qe}function Gc(u,d,y,S,N){return u===d?!0:u==null||d==null||!Ln(u)&&!Ln(d)?u!==u&&d!==d:iO(u,d,y,S,Gc,N)}function iO(u,d,y,S,N,re){var ye=Bt(u),we=Bt(d),Pe=ye?Ge:Ar(u),Ue=we?Ge:Ar(d);Pe=Pe==Be?_t:Pe,Ue=Ue==Be?_t:Ue;var He=Pe==_t,Ze=Ue==_t,ot=Pe==Ue;if(ot&&ls(u)){if(!ls(d))return!1;ye=!0,He=!1}if(ot&&!He)return re||(re=new fa),ye||cl(u)?JD(u,d,y,S,N,re):BO(u,d,Pe,y,S,N,re);if(!(y&$)){var vt=He&&Ve.call(u,"__wrapped__"),Ct=Ze&&Ve.call(d,"__wrapped__");if(vt||Ct){var Ot=vt?u.value():u,wt=Ct?d.value():d;return re||(re=new fa),N(Ot,wt,y,S,re)}}return ot?(re||(re=new fa),FO(u,d,y,S,N,re)):!1}function aO(u){return Ln(u)&&Ar(u)==ht}function Qm(u,d,y,S){var N=y.length,re=N,ye=!S;if(u==null)return!re;for(u=L(u);N--;){var we=y[N];if(ye&&we[2]?we[1]!==u[we[0]]:!(we[0]in u))return!1}for(;++N<re;){we=y[N];var Pe=we[0],Ue=u[Pe],He=we[1];if(ye&&we[2]){if(Ue===n&&!(Pe in u))return!1}else{var Ze=new fa;if(S)var ot=S(Ue,He,Pe,u,d,Ze);if(!(ot===n?Gc(He,Ue,$|x,S,Ze):ot))return!1}}return!0}function xD(u){if(!Pn(u)||jO(u))return!1;var d=_o(u)?J:Yn;return d.test(eu(u))}function oO(u){return Ln(u)&&Rr(u)==xe}function sO(u){return Ln(u)&&Ar(u)==Ae}function uO(u){return Ln(u)&&sh(u.length)&&!!Gt[Rr(u)]}function DD(u){return typeof u=="function"?u:u==null?ei:typeof u=="object"?Bt(u)?CD(u[0],u[1]):ED(u):z5(u)}function eg(u){if(!Xc(u))return la(u);var d=[];for(var y in L(u))Ve.call(u,y)&&y!="constructor"&&d.push(y);return d}function lO(u){if(!Pn(u))return UO(u);var d=Xc(u),y=[];for(var S in u)S=="constructor"&&(d||!Ve.call(u,S))||y.push(S);return y}function tg(u,d){return u<d}function $D(u,d){var y=-1,S=Jr(u)?Y(u.length):[];return as(u,function(N,re,ye){S[++y]=d(N,re,ye)}),S}function ED(u){var d=gg(u);return d.length==1&&d[0][2]?r5(d[0][0],d[0][1]):function(y){return y===u||Qm(y,u,d)}}function CD(u,d){return yg(u)&&n5(d)?r5(Ua(u),d):function(y){var S=Tg(y,u);return S===n&&S===d?Pg(y,u):Gc(d,S,$|x)}}function Uf(u,d,y,S,N){u!==d&&Ym(d,function(re,ye){if(N||(N=new fa),Pn(re))cO(u,d,ye,y,Uf,S,N);else{var we=S?S(xg(u,ye),re,ye+"",u,d,N):n;we===n&&(we=re),Hm(u,ye,we)}},Qr)}function cO(u,d,y,S,N,re,ye){var we=xg(u,y),Pe=xg(d,y),Ue=ye.get(Pe);if(Ue){Hm(u,y,Ue);return}var He=re?re(we,Pe,y+"",u,d,ye):n,Ze=He===n;if(Ze){var ot=Bt(Pe),vt=!ot&&ls(Pe),Ct=!ot&&!vt&&cl(Pe);He=Pe,ot||vt||Ct?Bt(we)?He=we:Kn(we)?He=Xr(we):vt?(Ze=!1,He=ID(Pe,!0)):Ct?(Ze=!1,He=OD(Pe,!0)):He=[]:Qc(Pe)||tu(Pe)?(He=we,tu(we)?He=k5(we):(!Pn(we)||_o(we))&&(He=t5(Pe))):Ze=!1}Ze&&(ye.set(Pe,He),N(He,Pe,S,re,ye),ye.delete(Pe)),Hm(u,y,He)}function wD(u,d){var y=u.length;if(y)return d+=d<0?y:0,Po(d,y)?u[d]:n}function AD(u,d,y){d.length?d=un(d,function(re){return Bt(re)?function(ye){return Js(ye,re.length===1?re[0]:re)}:re}):d=[ei];var S=-1;d=un(d,Cr($t()));var N=$D(u,function(re,ye,we){var Pe=un(d,function(Ue){return Ue(re)});return{criteria:Pe,index:++S,value:re}});return Gs(N,function(re,ye){return EO(re,ye,y)})}function dO(u,d){return SD(u,d,function(y,S){return Pg(u,S)})}function SD(u,d,y){for(var S=-1,N=d.length,re={};++S<N;){var ye=d[S],we=Js(u,ye);y(we,ye)&&Yc(re,ss(ye,u),we)}return re}function fO(u){return function(d){return Js(d,u)}}function ng(u,d,y,S){var N=S?Of:$o,re=-1,ye=d.length,we=u;for(u===d&&(d=Xr(d)),y&&(we=un(u,Cr(y)));++re<ye;)for(var Pe=0,Ue=d[re],He=y?y(Ue):Ue;(Pe=N(we,He,Pe,S))>-1;)we!==u&&Ut.call(we,Pe,1),Ut.call(u,Pe,1);return u}function TD(u,d){for(var y=u?d.length:0,S=y-1;y--;){var N=d[y];if(y==S||N!==re){var re=N;Po(N)?Ut.call(u,N,1):og(u,N)}}return u}function rg(u,d){return u+Zr(ca()*(d-u+1))}function hO(u,d,y,S){for(var N=-1,re=Yt(ln((d-u)/(y||1)),0),ye=Y(re);re--;)ye[S?re:++N]=u,u+=y;return ye}function ig(u,d){var y="";if(!u||d<1||d>K)return y;do d%2&&(y+=u),d=Zr(d/2),d&&(u+=u);while(d);return y}function Lt(u,d){return Dg(i5(u,d,ei),u+"")}function pO(u){return dD(dl(u))}function mO(u,d){var y=dl(u);return th(y,Xs(d,0,y.length))}function Yc(u,d,y,S){if(!Pn(u))return u;d=ss(d,u);for(var N=-1,re=d.length,ye=re-1,we=u;we!=null&&++N<re;){var Pe=Ua(d[N]),Ue=y;if(Pe==="__proto__"||Pe==="constructor"||Pe==="prototype")return u;if(N!=ye){var He=we[Pe];Ue=S?S(He,Pe,we):n,Ue===n&&(Ue=Pn(He)?He:Po(d[N+1])?[]:{})}Uc(we,Pe,Ue),we=we[Pe]}return u}var PD=Vf?function(u,d){return Vf.set(u,d),u}:ei,gO=Nn?function(u,d){return Nn(u,"toString",{configurable:!0,enumerable:!1,value:Bg(d),writable:!0})}:ei;function vO(u){return th(dl(u))}function Ri(u,d,y){var S=-1,N=u.length;d<0&&(d=-d>N?0:N+d),y=y>N?N:y,y<0&&(y+=N),N=d>y?0:y-d>>>0,d>>>=0;for(var re=Y(N);++S<N;)re[S]=u[S+d];return re}function yO(u,d){var y;return as(u,function(S,N,re){return y=d(S,N,re),!y}),!!y}function Wf(u,d,y){var S=0,N=u==null?S:u.length;if(typeof d=="number"&&d===d&&N<=Se){for(;S<N;){var re=S+N>>>1,ye=u[re];ye!==null&&!bi(ye)&&(y?ye<=d:ye<d)?S=re+1:N=re}return N}return ag(u,d,ei,y)}function ag(u,d,y,S){var N=0,re=u==null?0:u.length;if(re===0)return 0;d=y(d);for(var ye=d!==d,we=d===null,Pe=bi(d),Ue=d===n;N<re;){var He=Zr((N+re)/2),Ze=y(u[He]),ot=Ze!==n,vt=Ze===null,Ct=Ze===Ze,Ot=bi(Ze);if(ye)var wt=S||Ct;else Ue?wt=Ct&&(S||ot):we?wt=Ct&&ot&&(S||!vt):Pe?wt=Ct&&ot&&!vt&&(S||!Ot):vt||Ot?wt=!1:wt=S?Ze<=d:Ze<d;wt?N=He+1:re=He}return Dn(re,le)}function _D(u,d){for(var y=-1,S=u.length,N=0,re=[];++y<S;){var ye=u[y],we=d?d(ye):ye;if(!y||!ha(we,Pe)){var Pe=we;re[N++]=ye===0?0:ye}}return re}function BD(u){return typeof u=="number"?u:bi(u)?M:+u}function yi(u){if(typeof u=="string")return u;if(Bt(u))return un(u,yi)+"";if(bi(u))return lD?lD.call(u):"";var d=u+"";return d=="0"&&1/u==-R?"-0":d}function os(u,d,y){var S=-1,N=Oa,re=u.length,ye=!0,we=[],Pe=we;if(y)ye=!1,N=Ju;else if(re>=i){var Ue=d?null:PO(u);if(Ue)return rs(Ue);ye=!1,N=mn,Pe=new Zs}else Pe=d?[]:we;e:for(;++S<re;){var He=u[S],Ze=d?d(He):He;if(He=y||He!==0?He:0,ye&&Ze===Ze){for(var ot=Pe.length;ot--;)if(Pe[ot]===Ze)continue e;d&&Pe.push(Ze),we.push(He)}else N(Pe,Ze,y)||(Pe!==we&&Pe.push(Ze),we.push(He))}return we}function og(u,d){return d=ss(d,u),u=a5(u,d),u==null||delete u[Ua(Ii(d))]}function FD(u,d,y,S){return Yc(u,d,y(Js(u,d)),S)}function Hf(u,d,y,S){for(var N=u.length,re=S?N:-1;(S?re--:++re<N)&&d(u[re],re,u););return y?Ri(u,S?0:re,S?re+1:N):Ri(u,S?re+1:0,S?N:re)}function kD(u,d){var y=u;return y instanceof Kt&&(y=y.value()),Qu(d,function(S,N){return N.func.apply(N.thisArg,oa([S],N.args))},y)}function sg(u,d,y){var S=u.length;if(S<2)return S?os(u[0]):[];for(var N=-1,re=Y(S);++N<S;)for(var ye=u[N],we=-1;++we<S;)we!=N&&(re[N]=Wc(re[N]||ye,u[we],d,y));return os(yr(re,1),d,y)}function MD(u,d,y){for(var S=-1,N=u.length,re=d.length,ye={};++S<N;){var we=S<re?d[S]:n;y(ye,u[S],we)}return ye}function ug(u){return Kn(u)?u:[]}function lg(u){return typeof u=="function"?u:ei}function ss(u,d){return Bt(u)?u:yg(u,d)?[u]:l5(an(u))}var bO=Lt;function us(u,d,y){var S=u.length;return y=y===n?S:y,!d&&y>=S?u:Ri(u,d,y)}var RD=jn||function(u){return wn.clearTimeout(u)};function ID(u,d){if(d)return u.slice();var y=u.length,S=lt?lt(y):new u.constructor(y);return u.copy(S),S}function cg(u){var d=new u.constructor(u.byteLength);return new Ie(d).set(new Ie(u)),d}function xO(u,d){var y=d?cg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function DO(u){var d=new u.constructor(u.source,dn.exec(u));return d.lastIndex=u.lastIndex,d}function $O(u){return qc?L(qc.call(u)):{}}function OD(u,d){var y=d?cg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function LD(u,d){if(u!==d){var y=u!==n,S=u===null,N=u===u,re=bi(u),ye=d!==n,we=d===null,Pe=d===d,Ue=bi(d);if(!we&&!Ue&&!re&&u>d||re&&ye&&Pe&&!we&&!Ue||S&&ye&&Pe||!y&&Pe||!N)return 1;if(!S&&!re&&!Ue&&u<d||Ue&&y&&N&&!S&&!re||we&&y&&N||!ye&&N||!Pe)return-1}return 0}function EO(u,d,y){for(var S=-1,N=u.criteria,re=d.criteria,ye=N.length,we=y.length;++S<ye;){var Pe=LD(N[S],re[S]);if(Pe){if(S>=we)return Pe;var Ue=y[S];return Pe*(Ue=="desc"?-1:1)}}return u.index-d.index}function VD(u,d,y,S){for(var N=-1,re=u.length,ye=y.length,we=-1,Pe=d.length,Ue=Yt(re-ye,0),He=Y(Pe+Ue),Ze=!S;++we<Pe;)He[we]=d[we];for(;++N<ye;)(Ze||N<re)&&(He[y[N]]=u[N]);for(;Ue--;)He[we++]=u[N++];return He}function ND(u,d,y,S){for(var N=-1,re=u.length,ye=-1,we=y.length,Pe=-1,Ue=d.length,He=Yt(re-we,0),Ze=Y(He+Ue),ot=!S;++N<He;)Ze[N]=u[N];for(var vt=N;++Pe<Ue;)Ze[vt+Pe]=d[Pe];for(;++ye<we;)(ot||N<re)&&(Ze[vt+y[ye]]=u[N++]);return Ze}function Xr(u,d){var y=-1,S=u.length;for(d||(d=Y(S));++y<S;)d[y]=u[y];return d}function qa(u,d,y,S){var N=!y;y||(y={});for(var re=-1,ye=d.length;++re<ye;){var we=d[re],Pe=S?S(y[we],u[we],we,y,u):n;Pe===n&&(Pe=u[we]),N?Ao(y,we,Pe):Uc(y,we,Pe)}return y}function CO(u,d){return qa(u,vg(u),d)}function wO(u,d){return qa(u,QD(u),d)}function Gf(u,d){return function(y,S){var N=Bt(y)?Ia:HI,re=d?d():{};return N(y,u,$t(S,2),re)}}function sl(u){return Lt(function(d,y){var S=-1,N=y.length,re=N>1?y[N-1]:n,ye=N>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(N--,re):n,ye&&Ir(y[0],y[1],ye)&&(re=N<3?n:re,N=1),d=L(d);++S<N;){var we=y[S];we&&u(d,we,S,re)}return d})}function jD(u,d){return function(y,S){if(y==null)return y;if(!Jr(y))return u(y,S);for(var N=y.length,re=d?N:-1,ye=L(y);(d?re--:++re<N)&&S(ye[re],re,ye)!==!1;);return y}}function KD(u){return function(d,y,S){for(var N=-1,re=L(d),ye=S(d),we=ye.length;we--;){var Pe=ye[u?we:++N];if(y(re[Pe],Pe,re)===!1)break}return d}}function AO(u,d,y){var S=d&A,N=Zc(u);function re(){var ye=this&&this!==wn&&this instanceof re?N:u;return ye.apply(S?y:this,arguments)}return re}function zD(u){return function(d){d=an(d);var y=wr(d)?_(d):n,S=y?y[0]:d.charAt(0),N=y?us(y,1).join(""):d.slice(1);return S[u]()+N}}function ul(u){return function(d){return Qu(j5(N5(d).replace(ia,"")),u,"")}}function Zc(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var y=ol(u.prototype),S=u.apply(y,d);return Pn(S)?S:y}}function SO(u,d,y){var S=Zc(u);function N(){for(var re=arguments.length,ye=Y(re),we=re,Pe=ll(N);we--;)ye[we]=arguments[we];var Ue=re<3&&ye[0]!==Pe&&ye[re-1]!==Pe?[]:Yr(ye,Pe);if(re-=Ue.length,re<y)return GD(u,d,Yf,N.placeholder,n,ye,Ue,n,n,y-re);var He=this&&this!==wn&&this instanceof N?S:u;return Rn(He,this,ye)}return N}function qD(u){return function(d,y,S){var N=L(d);if(!Jr(d)){var re=$t(y,3);d=dr(d),y=function(we){return re(N[we],we,N)}}var ye=u(d,y,S);return ye>-1?N[re?d[ye]:ye]:n}}function UD(u){return To(function(d){var y=d.length,S=y,N=ki.prototype.thru;for(u&&d.reverse();S--;){var re=d[S];if(typeof re!="function")throw new ne(o);if(N&&!ye&&Qf(re)=="wrapper")var ye=new ki([],!0)}for(S=ye?S:y;++S<y;){re=d[S];var we=Qf(re),Pe=we=="wrapper"?mg(re):n;Pe&&bg(Pe[0])&&Pe[1]==(q|E|P|te)&&!Pe[4].length&&Pe[9]==1?ye=ye[Qf(Pe[0])].apply(ye,Pe[3]):ye=re.length==1&&bg(re)?ye[we]():ye.thru(re)}return function(){var Ue=arguments,He=Ue[0];if(ye&&Ue.length==1&&Bt(He))return ye.plant(He).value();for(var Ze=0,ot=y?d[Ze].apply(this,Ue):He;++Ze<y;)ot=d[Ze].call(this,ot);return ot}})}function Yf(u,d,y,S,N,re,ye,we,Pe,Ue){var He=d&q,Ze=d&A,ot=d&w,vt=d&(E|T),Ct=d&se,Ot=ot?n:Zc(u);function wt(){for(var Vt=arguments.length,Wt=Y(Vt),xi=Vt;xi--;)Wt[xi]=arguments[xi];if(vt)var Or=ll(wt),Di=qm(Wt,Or);if(S&&(Wt=VD(Wt,S,N,vt)),re&&(Wt=ND(Wt,re,ye,vt)),Vt-=Di,vt&&Vt<Ue){var zn=Yr(Wt,Or);return GD(u,d,Yf,wt.placeholder,y,Wt,zn,we,Pe,Ue-Vt)}var pa=Ze?y:this,Fo=ot?pa[u]:u;return Vt=Wt.length,we?Wt=HO(Wt,we):Ct&&Vt>1&&Wt.reverse(),He&&Pe<Vt&&(Wt.length=Pe),this&&this!==wn&&this instanceof wt&&(Fo=Ot||Zc(Fo)),Fo.apply(pa,Wt)}return wt}function WD(u,d){return function(y,S){return tO(y,u,d(S),{})}}function Zf(u,d){return function(y,S){var N;if(y===n&&S===n)return d;if(y!==n&&(N=y),S!==n){if(N===n)return S;typeof y=="string"||typeof S=="string"?(y=yi(y),S=yi(S)):(y=BD(y),S=BD(S)),N=u(y,S)}return N}}function dg(u){return To(function(d){return d=un(d,Cr($t())),Lt(function(y){var S=this;return u(d,function(N){return Rn(N,S,y)})})})}function Xf(u,d){d=d===n?" ":yi(d);var y=d.length;if(y<2)return y?ig(d,u):d;var S=ig(d,ln(u/D(d)));return wr(d)?us(_(S),0,u).join(""):S.slice(0,u)}function TO(u,d,y,S){var N=d&A,re=Zc(u);function ye(){for(var we=-1,Pe=arguments.length,Ue=-1,He=S.length,Ze=Y(He+Pe),ot=this&&this!==wn&&this instanceof ye?re:u;++Ue<He;)Ze[Ue]=S[Ue];for(;Pe--;)Ze[Ue++]=arguments[++we];return Rn(ot,N?y:this,Ze)}return ye}function HD(u){return function(d,y,S){return S&&typeof S!="number"&&Ir(d,y,S)&&(y=S=n),d=Bo(d),y===n?(y=d,d=0):y=Bo(y),S=S===n?d<y?1:-1:Bo(S),hO(d,y,S,u)}}function Jf(u){return function(d,y){return typeof d=="string"&&typeof y=="string"||(d=Oi(d),y=Oi(y)),u(d,y)}}function GD(u,d,y,S,N,re,ye,we,Pe,Ue){var He=d&E,Ze=He?ye:n,ot=He?n:ye,vt=He?re:n,Ct=He?n:re;d|=He?P:F,d&=~(He?F:P),d&C||(d&=-4);var Ot=[u,d,N,vt,Ze,Ct,ot,we,Pe,Ue],wt=y.apply(n,Ot);return bg(u)&&o5(wt,Ot),wt.placeholder=S,s5(wt,u,d)}function fg(u){var d=Z[u];return function(y,S){if(y=Oi(y),S=S==null?0:Dn(Mt(S),292),S&&mi(y)){var N=(an(y)+"e").split("e"),re=d(N[0]+"e"+(+N[1]+S));return N=(an(re)+"e").split("e"),+(N[0]+"e"+(+N[1]-S))}return d(y)}}var PO=il&&1/rs(new il([,-0]))[1]==R?function(u){return new il(u)}:Mg;function YD(u){return function(d){var y=Ar(d);return y==ht?In(d):y==Ae?c(d):zm(d,u(d))}}function So(u,d,y,S,N,re,ye,we){var Pe=d&w;if(!Pe&&typeof u!="function")throw new ne(o);var Ue=S?S.length:0;if(Ue||(d&=-97,S=N=n),ye=ye===n?ye:Yt(Mt(ye),0),we=we===n?we:Mt(we),Ue-=N?N.length:0,d&F){var He=S,Ze=N;S=N=n}var ot=Pe?n:mg(u),vt=[u,d,y,S,N,He,Ze,re,ye,we];if(ot&&qO(vt,ot),u=vt[0],d=vt[1],y=vt[2],S=vt[3],N=vt[4],we=vt[9]=vt[9]===n?Pe?0:u.length:Yt(vt[9]-Ue,0),!we&&d&(E|T)&&(d&=-25),!d||d==A)var Ct=AO(u,d,y);else d==E||d==T?Ct=SO(u,d,we):(d==P||d==(A|P))&&!N.length?Ct=TO(u,d,y,S):Ct=Yf.apply(n,vt);var Ot=ot?PD:o5;return s5(Ot(Ct,vt),u,d)}function ZD(u,d,y,S){return u===n||ha(u,Oe[y])&&!Ve.call(S,y)?d:u}function XD(u,d,y,S,N,re){return Pn(u)&&Pn(d)&&(re.set(d,u),Uf(u,d,n,XD,re),re.delete(d)),u}function _O(u){return Qc(u)?n:u}function JD(u,d,y,S,N,re){var ye=y&$,we=u.length,Pe=d.length;if(we!=Pe&&!(ye&&Pe>we))return!1;var Ue=re.get(u),He=re.get(d);if(Ue&&He)return Ue==d&&He==u;var Ze=-1,ot=!0,vt=y&x?new Zs:n;for(re.set(u,d),re.set(d,u);++Ze<we;){var Ct=u[Ze],Ot=d[Ze];if(S)var wt=ye?S(Ot,Ct,Ze,d,u,re):S(Ct,Ot,Ze,u,d,re);if(wt!==n){if(wt)continue;ot=!1;break}if(vt){if(!La(d,function(Vt,Wt){if(!mn(vt,Wt)&&(Ct===Vt||N(Ct,Vt,y,S,re)))return vt.push(Wt)})){ot=!1;break}}else if(!(Ct===Ot||N(Ct,Ot,y,S,re))){ot=!1;break}}return re.delete(u),re.delete(d),ot}function BO(u,d,y,S,N,re,ye){switch(y){case Dt:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case kt:return!(u.byteLength!=d.byteLength||!re(new Ie(u),new Ie(d)));case Ne:case qe:case Ht:return ha(+u,+d);case je:return u.name==d.name&&u.message==d.message;case xe:case Fe:return u==d+"";case ht:var we=In;case Ae:var Pe=S&$;if(we||(we=rs),u.size!=d.size&&!Pe)return!1;var Ue=ye.get(u);if(Ue)return Ue==d;S|=x,ye.set(u,d);var He=JD(we(u),we(d),S,N,re,ye);return ye.delete(u),He;case Je:if(qc)return qc.call(u)==qc.call(d)}return!1}function FO(u,d,y,S,N,re){var ye=y&$,we=hg(u),Pe=we.length,Ue=hg(d),He=Ue.length;if(Pe!=He&&!ye)return!1;for(var Ze=Pe;Ze--;){var ot=we[Ze];if(!(ye?ot in d:Ve.call(d,ot)))return!1}var vt=re.get(u),Ct=re.get(d);if(vt&&Ct)return vt==d&&Ct==u;var Ot=!0;re.set(u,d),re.set(d,u);for(var wt=ye;++Ze<Pe;){ot=we[Ze];var Vt=u[ot],Wt=d[ot];if(S)var xi=ye?S(Wt,Vt,ot,d,u,re):S(Vt,Wt,ot,u,d,re);if(!(xi===n?Vt===Wt||N(Vt,Wt,y,S,re):xi)){Ot=!1;break}wt||(wt=ot=="constructor")}if(Ot&&!wt){var Or=u.constructor,Di=d.constructor;Or!=Di&&"constructor"in u&&"constructor"in d&&!(typeof Or=="function"&&Or instanceof Or&&typeof Di=="function"&&Di instanceof Di)&&(Ot=!1)}return re.delete(u),re.delete(d),Ot}function To(u){return Dg(i5(u,n,h5),u+"")}function hg(u){return yD(u,dr,vg)}function pg(u){return yD(u,Qr,QD)}var mg=Vf?function(u){return Vf.get(u)}:Mg;function Qf(u){for(var d=u.name+"",y=al[d],S=Ve.call(al,d)?y.length:0;S--;){var N=y[S],re=N.func;if(re==null||re==u)return N.name}return d}function ll(u){var d=Ve.call(X,"placeholder")?X:u;return d.placeholder}function $t(){var u=X.iteratee||Fg;return u=u===Fg?DD:u,arguments.length?u(arguments[0],arguments[1]):u}function eh(u,d){var y=u.__data__;return NO(d)?y[typeof d=="string"?"string":"hash"]:y.map}function gg(u){for(var d=dr(u),y=d.length;y--;){var S=d[y],N=u[S];d[y]=[S,N,n5(N)]}return d}function Qs(u,d){var y=Wm(u,d);return xD(y)?y:n}function kO(u){var d=Ve.call(u,On),y=u[On];try{u[On]=n;var S=!0}catch{}var N=Le.call(u);return S&&(d?u[On]=y:delete u[On]),N}var vg=Fi?function(u){return u==null?[]:(u=L(u),Er(Fi(u),function(d){return xn.call(u,d)}))}:Rg,QD=Fi?function(u){for(var d=[];u;)oa(d,vg(u)),u=St(u);return d}:Rg,Ar=Rr;(da&&Ar(new da(new ArrayBuffer(1)))!=Dt||Ka&&Ar(new Ka)!=ht||is&&Ar(is.resolve())!=Wr||il&&Ar(new il)!=Ae||Kc&&Ar(new Kc)!=Qe)&&(Ar=function(u){var d=Rr(u),y=d==_t?u.constructor:n,S=y?eu(y):"";if(S)switch(S){case mI:return Dt;case gI:return ht;case vI:return Wr;case yI:return Ae;case bI:return Qe}return d});function MO(u,d,y){for(var S=-1,N=y.length;++S<N;){var re=y[S],ye=re.size;switch(re.type){case"drop":u+=ye;break;case"dropRight":d-=ye;break;case"take":d=Dn(d,u+ye);break;case"takeRight":u=Yt(u,d-ye);break}}return{start:u,end:d}}function RO(u){var d=u.match($r);return d?d[1].split(Ku):[]}function e5(u,d,y){d=ss(d,u);for(var S=-1,N=d.length,re=!1;++S<N;){var ye=Ua(d[S]);if(!(re=u!=null&&y(u,ye)))break;u=u[ye]}return re||++S!=N?re:(N=u==null?0:u.length,!!N&&sh(N)&&Po(ye,N)&&(Bt(u)||tu(u)))}function IO(u){var d=u.length,y=new u.constructor(d);return d&&typeof u[0]=="string"&&Ve.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function t5(u){return typeof u.constructor=="function"&&!Xc(u)?ol(St(u)):{}}function OO(u,d,y){var S=u.constructor;switch(d){case kt:return cg(u);case Ne:case qe:return new S(+u);case Dt:return xO(u,y);case yn:case Dr:case zt:case Pt:case It:case qt:case pr:case Hr:case li:return OD(u,y);case ht:return new S;case Ht:case Fe:return new S(u);case xe:return DO(u);case Ae:return new S;case Je:return $O(u)}}function LO(u,d){var y=d.length;if(!y)return u;var S=y-1;return d[S]=(y>1?"& ":"")+d[S],d=d.join(y>2?", ":" "),u.replace(ju,`{
42
+ /* [wrapped with `+d+`] */
43
+ `)}function VO(u){return Bt(u)||tu(u)||!!(cr&&u&&u[cr])}function Po(u,d){var y=typeof u;return d=d??K,!!d&&(y=="number"||y!="symbol"&&Fa.test(u))&&u>-1&&u%1==0&&u<d}function Ir(u,d,y){if(!Pn(y))return!1;var S=typeof d;return(S=="number"?Jr(y)&&Po(d,y.length):S=="string"&&d in y)?ha(y[d],u):!1}function yg(u,d){if(Bt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||bi(u)?!0:Nu.test(u)||!Fs.test(u)||d!=null&&u in L(d)}function NO(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function bg(u){var d=Qf(u),y=X[d];if(typeof y!="function"||!(d in Kt.prototype))return!1;if(u===y)return!0;var S=mg(y);return!!S&&u===S[0]}function jO(u){return!!ct&&ct in u}var KO=nt?_o:Ig;function Xc(u){var d=u&&u.constructor,y=typeof d=="function"&&d.prototype||Oe;return u===y}function n5(u){return u===u&&!Pn(u)}function r5(u,d){return function(y){return y==null?!1:y[u]===d&&(d!==n||u in L(y))}}function zO(u){var d=ah(u,function(S){return y.size===f&&y.clear(),S}),y=d.cache;return d}function qO(u,d){var y=u[1],S=d[1],N=y|S,re=N<(A|w|q),ye=S==q&&y==E||S==q&&y==te&&u[7].length<=d[8]||S==(q|te)&&d[7].length<=d[8]&&y==E;if(!(re||ye))return u;S&A&&(u[2]=d[2],N|=y&A?0:C);var we=d[3];if(we){var Pe=u[3];u[3]=Pe?VD(Pe,we,d[4]):we,u[4]=Pe?Yr(u[3],h):d[4]}return we=d[5],we&&(Pe=u[5],u[5]=Pe?ND(Pe,we,d[6]):we,u[6]=Pe?Yr(u[5],h):d[6]),we=d[7],we&&(u[7]=we),S&q&&(u[8]=u[8]==null?d[8]:Dn(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=N,u}function UO(u){var d=[];if(u!=null)for(var y in L(u))d.push(y);return d}function WO(u){return Le.call(u)}function i5(u,d,y){return d=Yt(d===n?u.length-1:d,0),function(){for(var S=arguments,N=-1,re=Yt(S.length-d,0),ye=Y(re);++N<re;)ye[N]=S[d+N];N=-1;for(var we=Y(d+1);++N<d;)we[N]=S[N];return we[d]=y(ye),Rn(u,this,we)}}function a5(u,d){return d.length<2?u:Js(u,Ri(d,0,-1))}function HO(u,d){for(var y=u.length,S=Dn(d.length,y),N=Xr(u);S--;){var re=d[S];u[S]=Po(re,y)?N[re]:n}return u}function xg(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var o5=u5(PD),Jc=dt||function(u,d){return wn.setTimeout(u,d)},Dg=u5(gO);function s5(u,d,y){var S=d+"";return Dg(u,LO(S,GO(RO(S),y)))}function u5(u){var d=0,y=0;return function(){var S=ja(),N=be-(S-y);if(y=S,N>0){if(++d>=Ee)return arguments[0]}else d=0;return u.apply(n,arguments)}}function th(u,d){var y=-1,S=u.length,N=S-1;for(d=d===n?S:d;++y<d;){var re=rg(y,N),ye=u[re];u[re]=u[y],u[y]=ye}return u.length=d,u}var l5=zO(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(ta,function(y,S,N,re){d.push(N?re.replace(Gr,"$1"):S||y)}),d});function Ua(u){if(typeof u=="string"||bi(u))return u;var d=u+"";return d=="0"&&1/u==-R?"-0":d}function eu(u){if(u!=null){try{return tt.call(u)}catch{}try{return u+""}catch{}}return""}function GO(u,d){return fn(_e,function(y){var S="_."+y[0];d&y[1]&&!Oa(u,S)&&u.push(S)}),u.sort()}function c5(u){if(u instanceof Kt)return u.clone();var d=new ki(u.__wrapped__,u.__chain__);return d.__actions__=Xr(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function YO(u,d,y){(y?Ir(u,d,y):d===n)?d=1:d=Yt(Mt(d),0);var S=u==null?0:u.length;if(!S||d<1)return[];for(var N=0,re=0,ye=Y(ln(S/d));N<S;)ye[re++]=Ri(u,N,N+=d);return ye}function ZO(u){for(var d=-1,y=u==null?0:u.length,S=0,N=[];++d<y;){var re=u[d];re&&(N[S++]=re)}return N}function XO(){var u=arguments.length;if(!u)return[];for(var d=Y(u-1),y=arguments[0],S=u;S--;)d[S-1]=arguments[S];return oa(Bt(y)?Xr(y):[y],yr(d,1))}var JO=Lt(function(u,d){return Kn(u)?Wc(u,yr(d,1,Kn,!0)):[]}),QO=Lt(function(u,d){var y=Ii(d);return Kn(y)&&(y=n),Kn(u)?Wc(u,yr(d,1,Kn,!0),$t(y,2)):[]}),eL=Lt(function(u,d){var y=Ii(d);return Kn(y)&&(y=n),Kn(u)?Wc(u,yr(d,1,Kn,!0),n,y):[]});function tL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),Ri(u,d<0?0:d,S)):[]}function nL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),d=S-d,Ri(u,0,d<0?0:d)):[]}function rL(u,d){return u&&u.length?Hf(u,$t(d,3),!0,!0):[]}function iL(u,d){return u&&u.length?Hf(u,$t(d,3),!0):[]}function aL(u,d,y,S){var N=u==null?0:u.length;return N?(y&&typeof y!="number"&&Ir(u,d,y)&&(y=0,S=N),XI(u,d,y,S)):[]}function d5(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=y==null?0:Mt(y);return N<0&&(N=Yt(S+N,0)),Ws(u,$t(d,3),N)}function f5(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=S-1;return y!==n&&(N=Mt(y),N=y<0?Yt(S+N,0):Dn(N,S-1)),Ws(u,$t(d,3),N,!0)}function h5(u){var d=u==null?0:u.length;return d?yr(u,1):[]}function oL(u){var d=u==null?0:u.length;return d?yr(u,R):[]}function sL(u,d){var y=u==null?0:u.length;return y?(d=d===n?1:Mt(d),yr(u,d)):[]}function uL(u){for(var d=-1,y=u==null?0:u.length,S={};++d<y;){var N=u[d];S[N[0]]=N[1]}return S}function p5(u){return u&&u.length?u[0]:n}function lL(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=y==null?0:Mt(y);return N<0&&(N=Yt(S+N,0)),$o(u,d,N)}function cL(u){var d=u==null?0:u.length;return d?Ri(u,0,-1):[]}var dL=Lt(function(u){var d=un(u,ug);return d.length&&d[0]===u[0]?Jm(d):[]}),fL=Lt(function(u){var d=Ii(u),y=un(u,ug);return d===Ii(y)?d=n:y.pop(),y.length&&y[0]===u[0]?Jm(y,$t(d,2)):[]}),hL=Lt(function(u){var d=Ii(u),y=un(u,ug);return d=typeof d=="function"?d:n,d&&y.pop(),y.length&&y[0]===u[0]?Jm(y,n,d):[]});function pL(u,d){return u==null?"":ua.call(u,d)}function Ii(u){var d=u==null?0:u.length;return d?u[d-1]:n}function mL(u,d,y){var S=u==null?0:u.length;if(!S)return-1;var N=S;return y!==n&&(N=Mt(y),N=N<0?Yt(S+N,0):Dn(N,S-1)),d===d?v(u,d,N):Ws(u,Lc,N,!0)}function gL(u,d){return u&&u.length?wD(u,Mt(d)):n}var vL=Lt(m5);function m5(u,d){return u&&u.length&&d&&d.length?ng(u,d):u}function yL(u,d,y){return u&&u.length&&d&&d.length?ng(u,d,$t(y,2)):u}function bL(u,d,y){return u&&u.length&&d&&d.length?ng(u,d,n,y):u}var xL=To(function(u,d){var y=u==null?0:u.length,S=Gm(u,d);return TD(u,un(d,function(N){return Po(N,y)?+N:N}).sort(LD)),S});function DL(u,d){var y=[];if(!(u&&u.length))return y;var S=-1,N=[],re=u.length;for(d=$t(d,3);++S<re;){var ye=u[S];d(ye,S,u)&&(y.push(ye),N.push(S))}return TD(u,N),y}function $g(u){return u==null?u:vi.call(u)}function $L(u,d,y){var S=u==null?0:u.length;return S?(y&&typeof y!="number"&&Ir(u,d,y)?(d=0,y=S):(d=d==null?0:Mt(d),y=y===n?S:Mt(y)),Ri(u,d,y)):[]}function EL(u,d){return Wf(u,d)}function CL(u,d,y){return ag(u,d,$t(y,2))}function wL(u,d){var y=u==null?0:u.length;if(y){var S=Wf(u,d);if(S<y&&ha(u[S],d))return S}return-1}function AL(u,d){return Wf(u,d,!0)}function SL(u,d,y){return ag(u,d,$t(y,2),!0)}function TL(u,d){var y=u==null?0:u.length;if(y){var S=Wf(u,d,!0)-1;if(ha(u[S],d))return S}return-1}function PL(u){return u&&u.length?_D(u):[]}function _L(u,d){return u&&u.length?_D(u,$t(d,2)):[]}function BL(u){var d=u==null?0:u.length;return d?Ri(u,1,d):[]}function FL(u,d,y){return u&&u.length?(d=y||d===n?1:Mt(d),Ri(u,0,d<0?0:d)):[]}function kL(u,d,y){var S=u==null?0:u.length;return S?(d=y||d===n?1:Mt(d),d=S-d,Ri(u,d<0?0:d,S)):[]}function ML(u,d){return u&&u.length?Hf(u,$t(d,3),!1,!0):[]}function RL(u,d){return u&&u.length?Hf(u,$t(d,3)):[]}var IL=Lt(function(u){return os(yr(u,1,Kn,!0))}),OL=Lt(function(u){var d=Ii(u);return Kn(d)&&(d=n),os(yr(u,1,Kn,!0),$t(d,2))}),LL=Lt(function(u){var d=Ii(u);return d=typeof d=="function"?d:n,os(yr(u,1,Kn,!0),n,d)});function VL(u){return u&&u.length?os(u):[]}function NL(u,d){return u&&u.length?os(u,$t(d,2)):[]}function jL(u,d){return d=typeof d=="function"?d:n,u&&u.length?os(u,n,d):[]}function Eg(u){if(!(u&&u.length))return[];var d=0;return u=Er(u,function(y){if(Kn(y))return d=Yt(y.length,d),!0}),nl(d,function(y){return un(u,el(y))})}function g5(u,d){if(!(u&&u.length))return[];var y=Eg(u);return d==null?y:un(y,function(S){return Rn(d,n,S)})}var KL=Lt(function(u,d){return Kn(u)?Wc(u,d):[]}),zL=Lt(function(u){return sg(Er(u,Kn))}),qL=Lt(function(u){var d=Ii(u);return Kn(d)&&(d=n),sg(Er(u,Kn),$t(d,2))}),UL=Lt(function(u){var d=Ii(u);return d=typeof d=="function"?d:n,sg(Er(u,Kn),n,d)}),WL=Lt(Eg);function HL(u,d){return MD(u||[],d||[],Uc)}function GL(u,d){return MD(u||[],d||[],Yc)}var YL=Lt(function(u){var d=u.length,y=d>1?u[d-1]:n;return y=typeof y=="function"?(u.pop(),y):n,g5(u,y)});function v5(u){var d=X(u);return d.__chain__=!0,d}function ZL(u,d){return d(u),u}function nh(u,d){return d(u)}var XL=To(function(u){var d=u.length,y=d?u[0]:0,S=this.__wrapped__,N=function(re){return Gm(re,u)};return d>1||this.__actions__.length||!(S instanceof Kt)||!Po(y)?this.thru(N):(S=S.slice(y,+y+(d?1:0)),S.__actions__.push({func:nh,args:[N],thisArg:n}),new ki(S,this.__chain__).thru(function(re){return d&&!re.length&&re.push(n),re}))});function JL(){return v5(this)}function QL(){return new ki(this.value(),this.__chain__)}function eV(){this.__values__===n&&(this.__values__=B5(this.value()));var u=this.__index__>=this.__values__.length,d=u?n:this.__values__[this.__index__++];return{done:u,value:d}}function tV(){return this}function nV(u){for(var d,y=this;y instanceof jf;){var S=c5(y);S.__index__=0,S.__values__=n,d?N.__wrapped__=S:d=S;var N=S;y=y.__wrapped__}return N.__wrapped__=u,d}function rV(){var u=this.__wrapped__;if(u instanceof Kt){var d=u;return this.__actions__.length&&(d=new Kt(this)),d=d.reverse(),d.__actions__.push({func:nh,args:[$g],thisArg:n}),new ki(d,this.__chain__)}return this.thru($g)}function iV(){return kD(this.__wrapped__,this.__actions__)}var aV=Gf(function(u,d,y){Ve.call(u,y)?++u[y]:Ao(u,y,1)});function oV(u,d,y){var S=Bt(u)?Do:ZI;return y&&Ir(u,d,y)&&(d=n),S(u,$t(d,3))}function sV(u,d){var y=Bt(u)?Er:gD;return y(u,$t(d,3))}var uV=qD(d5),lV=qD(f5);function cV(u,d){return yr(rh(u,d),1)}function dV(u,d){return yr(rh(u,d),R)}function fV(u,d,y){return y=y===n?1:Mt(y),yr(rh(u,d),y)}function y5(u,d){var y=Bt(u)?fn:as;return y(u,$t(d,3))}function b5(u,d){var y=Bt(u)?ur:mD;return y(u,$t(d,3))}var hV=Gf(function(u,d,y){Ve.call(u,y)?u[y].push(d):Ao(u,y,[d])});function pV(u,d,y,S){u=Jr(u)?u:dl(u),y=y&&!S?Mt(y):0;var N=u.length;return y<0&&(y=Yt(N+y,0)),uh(u)?y<=N&&u.indexOf(d,y)>-1:!!N&&$o(u,d,y)>-1}var mV=Lt(function(u,d,y){var S=-1,N=typeof d=="function",re=Jr(u)?Y(u.length):[];return as(u,function(ye){re[++S]=N?Rn(d,ye,y):Hc(ye,d,y)}),re}),gV=Gf(function(u,d,y){Ao(u,y,d)});function rh(u,d){var y=Bt(u)?un:$D;return y(u,$t(d,3))}function vV(u,d,y,S){return u==null?[]:(Bt(d)||(d=d==null?[]:[d]),y=S?n:y,Bt(y)||(y=y==null?[]:[y]),AD(u,d,y))}var yV=Gf(function(u,d,y){u[y?0:1].push(d)},function(){return[[],[]]});function bV(u,d,y){var S=Bt(u)?Qu:Vc,N=arguments.length<3;return S(u,$t(d,4),y,N,as)}function xV(u,d,y){var S=Bt(u)?zs:Vc,N=arguments.length<3;return S(u,$t(d,4),y,N,mD)}function DV(u,d){var y=Bt(u)?Er:gD;return y(u,oh($t(d,3)))}function $V(u){var d=Bt(u)?dD:pO;return d(u)}function EV(u,d,y){(y?Ir(u,d,y):d===n)?d=1:d=Mt(d);var S=Bt(u)?UI:mO;return S(u,d)}function CV(u){var d=Bt(u)?WI:vO;return d(u)}function wV(u){if(u==null)return 0;if(Jr(u))return uh(u)?D(u):u.length;var d=Ar(u);return d==ht||d==Ae?u.size:eg(u).length}function AV(u,d,y){var S=Bt(u)?La:yO;return y&&Ir(u,d,y)&&(d=n),S(u,$t(d,3))}var SV=Lt(function(u,d){if(u==null)return[];var y=d.length;return y>1&&Ir(u,d[0],d[1])?d=[]:y>2&&Ir(d[0],d[1],d[2])&&(d=[d[0]]),AD(u,yr(d,1),[])}),ih=vr||function(){return wn.Date.now()};function TV(u,d){if(typeof d!="function")throw new ne(o);return u=Mt(u),function(){if(--u<1)return d.apply(this,arguments)}}function x5(u,d,y){return d=y?n:d,d=u&&d==null?u.length:d,So(u,q,n,n,n,n,d)}function D5(u,d){var y;if(typeof d!="function")throw new ne(o);return u=Mt(u),function(){return--u>0&&(y=d.apply(this,arguments)),u<=1&&(d=n),y}}var Cg=Lt(function(u,d,y){var S=A;if(y.length){var N=Yr(y,ll(Cg));S|=P}return So(u,S,d,y,N)}),$5=Lt(function(u,d,y){var S=A|w;if(y.length){var N=Yr(y,ll($5));S|=P}return So(d,S,u,y,N)});function E5(u,d,y){d=y?n:d;var S=So(u,E,n,n,n,n,n,d);return S.placeholder=E5.placeholder,S}function C5(u,d,y){d=y?n:d;var S=So(u,T,n,n,n,n,n,d);return S.placeholder=C5.placeholder,S}function w5(u,d,y){var S,N,re,ye,we,Pe,Ue=0,He=!1,Ze=!1,ot=!0;if(typeof u!="function")throw new ne(o);d=Oi(d)||0,Pn(y)&&(He=!!y.leading,Ze="maxWait"in y,re=Ze?Yt(Oi(y.maxWait)||0,d):re,ot="trailing"in y?!!y.trailing:ot);function vt(zn){var pa=S,Fo=N;return S=N=n,Ue=zn,ye=u.apply(Fo,pa),ye}function Ct(zn){return Ue=zn,we=Jc(Vt,d),He?vt(zn):ye}function Ot(zn){var pa=zn-Pe,Fo=zn-Ue,q5=d-pa;return Ze?Dn(q5,re-Fo):q5}function wt(zn){var pa=zn-Pe,Fo=zn-Ue;return Pe===n||pa>=d||pa<0||Ze&&Fo>=re}function Vt(){var zn=ih();if(wt(zn))return Wt(zn);we=Jc(Vt,Ot(zn))}function Wt(zn){return we=n,ot&&S?vt(zn):(S=N=n,ye)}function xi(){we!==n&&RD(we),Ue=0,S=Pe=N=we=n}function Or(){return we===n?ye:Wt(ih())}function Di(){var zn=ih(),pa=wt(zn);if(S=arguments,N=this,Pe=zn,pa){if(we===n)return Ct(Pe);if(Ze)return RD(we),we=Jc(Vt,d),vt(Pe)}return we===n&&(we=Jc(Vt,d)),ye}return Di.cancel=xi,Di.flush=Or,Di}var PV=Lt(function(u,d){return pD(u,1,d)}),_V=Lt(function(u,d,y){return pD(u,Oi(d)||0,y)});function BV(u){return So(u,se)}function ah(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new ne(o);var y=function(){var S=arguments,N=d?d.apply(this,S):S[0],re=y.cache;if(re.has(N))return re.get(N);var ye=u.apply(this,S);return y.cache=re.set(N,ye)||re,ye};return y.cache=new(ah.Cache||wo),y}ah.Cache=wo;function oh(u){if(typeof u!="function")throw new ne(o);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function FV(u){return D5(2,u)}var kV=bO(function(u,d){d=d.length==1&&Bt(d[0])?un(d[0],Cr($t())):un(yr(d,1),Cr($t()));var y=d.length;return Lt(function(S){for(var N=-1,re=Dn(S.length,y);++N<re;)S[N]=d[N].call(this,S[N]);return Rn(u,this,S)})}),wg=Lt(function(u,d){var y=Yr(d,ll(wg));return So(u,P,n,d,y)}),A5=Lt(function(u,d){var y=Yr(d,ll(A5));return So(u,F,n,d,y)}),MV=To(function(u,d){return So(u,te,n,n,n,d)});function RV(u,d){if(typeof u!="function")throw new ne(o);return d=d===n?d:Mt(d),Lt(u,d)}function IV(u,d){if(typeof u!="function")throw new ne(o);return d=d==null?0:Yt(Mt(d),0),Lt(function(y){var S=y[d],N=us(y,0,d);return S&&oa(N,S),Rn(u,this,N)})}function OV(u,d,y){var S=!0,N=!0;if(typeof u!="function")throw new ne(o);return Pn(y)&&(S="leading"in y?!!y.leading:S,N="trailing"in y?!!y.trailing:N),w5(u,d,{leading:S,maxWait:d,trailing:N})}function LV(u){return x5(u,1)}function VV(u,d){return wg(lg(d),u)}function NV(){if(!arguments.length)return[];var u=arguments[0];return Bt(u)?u:[u]}function jV(u){return Mi(u,b)}function KV(u,d){return d=typeof d=="function"?d:n,Mi(u,b,d)}function zV(u){return Mi(u,m|b)}function qV(u,d){return d=typeof d=="function"?d:n,Mi(u,m|b,d)}function UV(u,d){return d==null||hD(u,d,dr(d))}function ha(u,d){return u===d||u!==u&&d!==d}var WV=Jf(Xm),HV=Jf(function(u,d){return u>=d}),tu=bD(function(){return arguments}())?bD:function(u){return Ln(u)&&Ve.call(u,"callee")&&!xn.call(u,"callee")},Bt=Y.isArray,GV=xo?Cr(xo):nO;function Jr(u){return u!=null&&sh(u.length)&&!_o(u)}function Kn(u){return Ln(u)&&Jr(u)}function YV(u){return u===!0||u===!1||Ln(u)&&Rr(u)==Ne}var ls=sa||Ig,ZV=Rf?Cr(Rf):rO;function XV(u){return Ln(u)&&u.nodeType===1&&!Qc(u)}function JV(u){if(u==null)return!0;if(Jr(u)&&(Bt(u)||typeof u=="string"||typeof u.splice=="function"||ls(u)||cl(u)||tu(u)))return!u.length;var d=Ar(u);if(d==ht||d==Ae)return!u.size;if(Xc(u))return!eg(u).length;for(var y in u)if(Ve.call(u,y))return!1;return!0}function QV(u,d){return Gc(u,d)}function eN(u,d,y){y=typeof y=="function"?y:n;var S=y?y(u,d):n;return S===n?Gc(u,d,n,y):!!S}function Ag(u){if(!Ln(u))return!1;var d=Rr(u);return d==je||d==ke||typeof u.message=="string"&&typeof u.name=="string"&&!Qc(u)}function tN(u){return typeof u=="number"&&mi(u)}function _o(u){if(!Pn(u))return!1;var d=Rr(u);return d==Te||d==Ye||d==Xe||d==Qt}function S5(u){return typeof u=="number"&&u==Mt(u)}function sh(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=K}function Pn(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function Ln(u){return u!=null&&typeof u=="object"}var T5=If?Cr(If):aO;function nN(u,d){return u===d||Qm(u,d,gg(d))}function rN(u,d,y){return y=typeof y=="function"?y:n,Qm(u,d,gg(d),y)}function iN(u){return P5(u)&&u!=+u}function aN(u){if(KO(u))throw new he(a);return xD(u)}function oN(u){return u===null}function sN(u){return u==null}function P5(u){return typeof u=="number"||Ln(u)&&Rr(u)==Ht}function Qc(u){if(!Ln(u)||Rr(u)!=_t)return!1;var d=St(u);if(d===null)return!0;var y=Ve.call(d,"constructor")&&d.constructor;return typeof y=="function"&&y instanceof y&&tt.call(y)==$e}var Sg=Ic?Cr(Ic):oO;function uN(u){return S5(u)&&u>=-K&&u<=K}var _5=ns?Cr(ns):sO;function uh(u){return typeof u=="string"||!Bt(u)&&Ln(u)&&Rr(u)==Fe}function bi(u){return typeof u=="symbol"||Ln(u)&&Rr(u)==Je}var cl=aa?Cr(aa):uO;function lN(u){return u===n}function cN(u){return Ln(u)&&Ar(u)==Qe}function dN(u){return Ln(u)&&Rr(u)==gt}var fN=Jf(tg),hN=Jf(function(u,d){return u<=d});function B5(u){if(!u)return[];if(Jr(u))return uh(u)?_(u):Xr(u);if(Zn&&u[Zn])return Na(u[Zn]());var d=Ar(u),y=d==ht?In:d==Ae?rs:dl;return y(u)}function Bo(u){if(!u)return u===0?u:0;if(u=Oi(u),u===R||u===-R){var d=u<0?-1:1;return d*fe}return u===u?u:0}function Mt(u){var d=Bo(u),y=d%1;return d===d?y?d-y:d:0}function F5(u){return u?Xs(Mt(u),0,oe):0}function Oi(u){if(typeof u=="number")return u;if(bi(u))return M;if(Pn(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=Pn(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=Lf(u);var y=di.test(u);return y||ks.test(u)?rr(u.slice(2),y?2:8):ra.test(u)?M:+u}function k5(u){return qa(u,Qr(u))}function pN(u){return u?Xs(Mt(u),-K,K):u===0?u:0}function an(u){return u==null?"":yi(u)}var mN=sl(function(u,d){if(Xc(d)||Jr(d)){qa(d,dr(d),u);return}for(var y in d)Ve.call(d,y)&&Uc(u,y,d[y])}),M5=sl(function(u,d){qa(d,Qr(d),u)}),lh=sl(function(u,d,y,S){qa(d,Qr(d),u,S)}),gN=sl(function(u,d,y,S){qa(d,dr(d),u,S)}),vN=To(Gm);function yN(u,d){var y=ol(u);return d==null?y:fD(y,d)}var bN=Lt(function(u,d){u=L(u);var y=-1,S=d.length,N=S>2?d[2]:n;for(N&&Ir(d[0],d[1],N)&&(S=1);++y<S;)for(var re=d[y],ye=Qr(re),we=-1,Pe=ye.length;++we<Pe;){var Ue=ye[we],He=u[Ue];(He===n||ha(He,Oe[Ue])&&!Ve.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),xN=Lt(function(u){return u.push(n,XD),Rn(R5,n,u)});function DN(u,d){return Oc(u,$t(d,3),za)}function $N(u,d){return Oc(u,$t(d,3),Zm)}function EN(u,d){return u==null?u:Ym(u,$t(d,3),Qr)}function CN(u,d){return u==null?u:vD(u,$t(d,3),Qr)}function wN(u,d){return u&&za(u,$t(d,3))}function AN(u,d){return u&&Zm(u,$t(d,3))}function SN(u){return u==null?[]:qf(u,dr(u))}function TN(u){return u==null?[]:qf(u,Qr(u))}function Tg(u,d,y){var S=u==null?n:Js(u,d);return S===n?y:S}function PN(u,d){return u!=null&&e5(u,d,JI)}function Pg(u,d){return u!=null&&e5(u,d,QI)}var _N=WD(function(u,d,y){d!=null&&typeof d.toString!="function"&&(d=Le.call(d)),u[d]=y},Bg(ei)),BN=WD(function(u,d,y){d!=null&&typeof d.toString!="function"&&(d=Le.call(d)),Ve.call(u,d)?u[d].push(y):u[d]=[y]},$t),FN=Lt(Hc);function dr(u){return Jr(u)?cD(u):eg(u)}function Qr(u){return Jr(u)?cD(u,!0):lO(u)}function kN(u,d){var y={};return d=$t(d,3),za(u,function(S,N,re){Ao(y,d(S,N,re),S)}),y}function MN(u,d){var y={};return d=$t(d,3),za(u,function(S,N,re){Ao(y,N,d(S,N,re))}),y}var RN=sl(function(u,d,y){Uf(u,d,y)}),R5=sl(function(u,d,y,S){Uf(u,d,y,S)}),IN=To(function(u,d){var y={};if(u==null)return y;var S=!1;d=un(d,function(re){return re=ss(re,u),S||(S=re.length>1),re}),qa(u,pg(u),y),S&&(y=Mi(y,m|g|b,_O));for(var N=d.length;N--;)og(y,d[N]);return y});function ON(u,d){return I5(u,oh($t(d)))}var LN=To(function(u,d){return u==null?{}:dO(u,d)});function I5(u,d){if(u==null)return{};var y=un(pg(u),function(S){return[S]});return d=$t(d),SD(u,y,function(S,N){return d(S,N[0])})}function VN(u,d,y){d=ss(d,u);var S=-1,N=d.length;for(N||(N=1,u=n);++S<N;){var re=u==null?n:u[Ua(d[S])];re===n&&(S=N,re=y),u=_o(re)?re.call(u):re}return u}function NN(u,d,y){return u==null?u:Yc(u,d,y)}function jN(u,d,y,S){return S=typeof S=="function"?S:n,u==null?u:Yc(u,d,y,S)}var O5=YD(dr),L5=YD(Qr);function KN(u,d,y){var S=Bt(u),N=S||ls(u)||cl(u);if(d=$t(d,4),y==null){var re=u&&u.constructor;N?y=S?new re:[]:Pn(u)?y=_o(re)?ol(St(u)):{}:y={}}return(N?fn:za)(u,function(ye,we,Pe){return d(y,ye,we,Pe)}),y}function zN(u,d){return u==null?!0:og(u,d)}function qN(u,d,y){return u==null?u:FD(u,d,lg(y))}function UN(u,d,y,S){return S=typeof S=="function"?S:n,u==null?u:FD(u,d,lg(y),S)}function dl(u){return u==null?[]:Nc(u,dr(u))}function WN(u){return u==null?[]:Nc(u,Qr(u))}function HN(u,d,y){return y===n&&(y=d,d=n),y!==n&&(y=Oi(y),y=y===y?y:0),d!==n&&(d=Oi(d),d=d===d?d:0),Xs(Oi(u),d,y)}function GN(u,d,y){return d=Bo(d),y===n?(y=d,d=0):y=Bo(y),u=Oi(u),eO(u,d,y)}function YN(u,d,y){if(y&&typeof y!="boolean"&&Ir(u,d,y)&&(d=y=n),y===n&&(typeof d=="boolean"?(y=d,d=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&d===n?(u=0,d=1):(u=Bo(u),d===n?(d=u,u=0):d=Bo(d)),u>d){var S=u;u=d,d=S}if(y||u%1||d%1){var N=ca();return Dn(u+N*(d-u+bn("1e-"+((N+"").length-1))),d)}return rg(u,d)}var ZN=ul(function(u,d,y){return d=d.toLowerCase(),u+(y?V5(d):d)});function V5(u){return _g(an(u).toLowerCase())}function N5(u){return u=an(u),u&&u.replace(fi,Um).replace(vo,"")}function XN(u,d,y){u=an(u),d=yi(d);var S=u.length;y=y===n?S:Xs(Mt(y),0,S);var N=y;return y-=d.length,y>=0&&u.slice(y,N)==d}function JN(u){return u=an(u),u&&Ac.test(u)?u.replace(ci,Eo):u}function QN(u){return u=an(u),u&&yt.test(u)?u.replace(na,"\\$&"):u}var ej=ul(function(u,d,y){return u+(y?"-":"")+d.toLowerCase()}),tj=ul(function(u,d,y){return u+(y?" ":"")+d.toLowerCase()}),nj=zD("toLowerCase");function rj(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;if(!d||S>=d)return u;var N=(d-S)/2;return Xf(Zr(N),y)+u+Xf(ln(N),y)}function ij(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;return d&&S<d?u+Xf(d-S,y):u}function aj(u,d,y){u=an(u),d=Mt(d);var S=d?D(u):0;return d&&S<d?Xf(d-S,y)+u:u}function oj(u,d,y){return y||d==null?d=0:d&&(d=+d),gi(an(u).replace(Cn,""),d||0)}function sj(u,d,y){return(y?Ir(u,d,y):d===n)?d=1:d=Mt(d),ig(an(u),d)}function uj(){var u=arguments,d=an(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var lj=ul(function(u,d,y){return u+(y?"_":"")+d.toLowerCase()});function cj(u,d,y){return y&&typeof y!="number"&&Ir(u,d,y)&&(d=y=n),y=y===n?oe:y>>>0,y?(u=an(u),u&&(typeof d=="string"||d!=null&&!Sg(d))&&(d=yi(d),!d&&wr(u))?us(_(u),0,y):u.split(d,y)):[]}var dj=ul(function(u,d,y){return u+(y?" ":"")+_g(d)});function fj(u,d,y){return u=an(u),y=y==null?0:Xs(Mt(y),0,u.length),d=yi(d),u.slice(y,y+d.length)==d}function hj(u,d,y){var S=X.templateSettings;y&&Ir(u,d,y)&&(d=n),u=an(u),d=lh({},d,S,ZD);var N=lh({},d.imports,S.imports,ZD),re=dr(N),ye=Nc(N,re),we,Pe,Ue=0,He=d.interpolate||Mn,Ze="__p += '",ot=j((d.escape||Mn).source+"|"+He.source+"|"+(He===Vu?at:Mn).source+"|"+(d.evaluate||Mn).source+"|$","g"),vt="//# sourceURL="+(Ve.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bo+"]")+`
44
+ `;u.replace(ot,function(wt,Vt,Wt,xi,Or,Di){return Wt||(Wt=xi),Ze+=u.slice(Ue,Di).replace(Jo,pi),Vt&&(we=!0,Ze+=`' +
45
+ __e(`+Vt+`) +
46
+ '`),Or&&(Pe=!0,Ze+=`';
47
+ `+Or+`;
48
+ __p += '`),Wt&&(Ze+=`' +
49
+ ((__t = (`+Wt+`)) == null ? '' : __t) +
50
+ '`),Ue=Di+wt.length,wt}),Ze+=`';
51
+ `;var Ct=Ve.call(d,"variable")&&d.variable;if(!Ct)Ze=`with (obj) {
52
+ `+Ze+`
53
+ }
54
+ `;else if(Tc.test(Ct))throw new he(s);Ze=(Pe?Ze.replace(Br,""):Ze).replace(Ba,"$1").replace(Bs,"$1;"),Ze="function("+(Ct||"obj")+`) {
55
+ `+(Ct?"":`obj || (obj = {});
56
+ `)+"var __t, __p = ''"+(we?", __e = _.escape":"")+(Pe?`, __j = Array.prototype.join;
57
+ function print() { __p += __j.call(arguments, '') }
58
+ `:`;
59
+ `)+Ze+`return __p
60
+ }`;var Ot=K5(function(){return W(re,vt+"return "+Ze).apply(n,ye)});if(Ot.source=Ze,Ag(Ot))throw Ot;return Ot}function pj(u){return an(u).toLowerCase()}function mj(u){return an(u).toUpperCase()}function gj(u,d,y){if(u=an(u),u&&(y||d===n))return Lf(u);if(!u||!(d=yi(d)))return u;var S=_(u),N=_(d),re=rl(S,N),ye=lr(S,N)+1;return us(S,re,ye).join("")}function vj(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=lr(S,_(d))+1;return us(S,0,N).join("")}function yj(u,d,y){if(u=an(u),u&&(y||d===n))return u.replace(Cn,"");if(!u||!(d=yi(d)))return u;var S=_(u),N=rl(S,_(d));return us(S,N).join("")}function bj(u,d){var y=ae,S=I;if(Pn(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),Sg(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 xj(u){return u=an(u),u&&uo.test(u)?u.replace(bt,U):u}var Dj=ul(function(u,d,y){return u+(y?" ":"")+d.toUpperCase()}),_g=zD("toUpperCase");function j5(u,d,y){return u=an(u),d=y?n:d,d===n?jc(u)?De(u):Km(u):u.match(d)||[]}var K5=Lt(function(u,d){try{return Rn(u,n,d)}catch(y){return Ag(y)?y:new he(y)}}),$j=To(function(u,d){return fn(d,function(y){y=Ua(y),Ao(u,y,Cg(u[y],u))}),u});function Ej(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(Rn(re[0],this,S))return Rn(re[1],this,S)}})}function Cj(u){return YI(Mi(u,m))}function Bg(u){return function(){return u}}function wj(u,d){return u==null||u!==u?d:u}var Aj=UD(),Sj=UD(!0);function ei(u){return u}function Fg(u){return DD(typeof u=="function"?u:Mi(u,m))}function Tj(u){return ED(Mi(u,m))}function Pj(u,d){return CD(u,Mi(d,m))}var _j=Lt(function(u,d){return function(y){return Hc(y,u,d)}}),Bj=Lt(function(u,d){return function(y){return Hc(u,y,d)}});function kg(u,d,y){var S=dr(d),N=qf(d,S);y==null&&!(Pn(d)&&(N.length||!S.length))&&(y=d,d=u,u=this,N=qf(d,dr(d)));var re=!(Pn(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 Fj(){return wn._===this&&(wn._=ce),this}function Mg(){}function kj(u){return u=Mt(u),Lt(function(d){return wD(d,u)})}var Mj=dg(un),Rj=dg(Do),Ij=dg(La);function z5(u){return yg(u)?el(Ua(u)):fO(u)}function Oj(u){return function(d){return u==null?n:Js(u,d)}}var Lj=HD(),Vj=HD(!0);function Rg(){return[]}function Ig(){return!1}function Nj(){return{}}function jj(){return""}function Kj(){return!0}function zj(u,d){if(u=Mt(u),u<1||u>K)return[];var y=oe,S=Dn(u,oe);d=$t(d),u-=oe;for(var N=nl(S,d);++y<u;)d(y);return N}function qj(u){return Bt(u)?un(u,Ua):bi(u)?[u]:Xr(l5(an(u)))}function Uj(u){var d=++st;return an(u)+d}var Wj=Zf(function(u,d){return u+d},0),Hj=fg("ceil"),Gj=Zf(function(u,d){return u/d},1),Yj=fg("floor");function Zj(u){return u&&u.length?zf(u,ei,Xm):n}function Xj(u,d){return u&&u.length?zf(u,$t(d,2),Xm):n}function Jj(u){return Hs(u,ei)}function Qj(u,d){return Hs(u,$t(d,2))}function eK(u){return u&&u.length?zf(u,ei,tg):n}function tK(u,d){return u&&u.length?zf(u,$t(d,2),tg):n}var nK=Zf(function(u,d){return u*d},1),rK=fg("round"),iK=Zf(function(u,d){return u-d},0);function aK(u){return u&&u.length?Va(u,ei):0}function oK(u,d){return u&&u.length?Va(u,$t(d,2)):0}return X.after=TV,X.ary=x5,X.assign=mN,X.assignIn=M5,X.assignInWith=lh,X.assignWith=gN,X.at=vN,X.before=D5,X.bind=Cg,X.bindAll=$j,X.bindKey=$5,X.castArray=NV,X.chain=v5,X.chunk=YO,X.compact=ZO,X.concat=XO,X.cond=Ej,X.conforms=Cj,X.constant=Bg,X.countBy=aV,X.create=yN,X.curry=E5,X.curryRight=C5,X.debounce=w5,X.defaults=bN,X.defaultsDeep=xN,X.defer=PV,X.delay=_V,X.difference=JO,X.differenceBy=QO,X.differenceWith=eL,X.drop=tL,X.dropRight=nL,X.dropRightWhile=rL,X.dropWhile=iL,X.fill=aL,X.filter=sV,X.flatMap=cV,X.flatMapDeep=dV,X.flatMapDepth=fV,X.flatten=h5,X.flattenDeep=oL,X.flattenDepth=sL,X.flip=BV,X.flow=Aj,X.flowRight=Sj,X.fromPairs=uL,X.functions=SN,X.functionsIn=TN,X.groupBy=hV,X.initial=cL,X.intersection=dL,X.intersectionBy=fL,X.intersectionWith=hL,X.invert=_N,X.invertBy=BN,X.invokeMap=mV,X.iteratee=Fg,X.keyBy=gV,X.keys=dr,X.keysIn=Qr,X.map=rh,X.mapKeys=kN,X.mapValues=MN,X.matches=Tj,X.matchesProperty=Pj,X.memoize=ah,X.merge=RN,X.mergeWith=R5,X.method=_j,X.methodOf=Bj,X.mixin=kg,X.negate=oh,X.nthArg=kj,X.omit=IN,X.omitBy=ON,X.once=FV,X.orderBy=vV,X.over=Mj,X.overArgs=kV,X.overEvery=Rj,X.overSome=Ij,X.partial=wg,X.partialRight=A5,X.partition=yV,X.pick=LN,X.pickBy=I5,X.property=z5,X.propertyOf=Oj,X.pull=vL,X.pullAll=m5,X.pullAllBy=yL,X.pullAllWith=bL,X.pullAt=xL,X.range=Lj,X.rangeRight=Vj,X.rearg=MV,X.reject=DV,X.remove=DL,X.rest=RV,X.reverse=$g,X.sampleSize=EV,X.set=NN,X.setWith=jN,X.shuffle=CV,X.slice=$L,X.sortBy=SV,X.sortedUniq=PL,X.sortedUniqBy=_L,X.split=cj,X.spread=IV,X.tail=BL,X.take=FL,X.takeRight=kL,X.takeRightWhile=ML,X.takeWhile=RL,X.tap=ZL,X.throttle=OV,X.thru=nh,X.toArray=B5,X.toPairs=O5,X.toPairsIn=L5,X.toPath=qj,X.toPlainObject=k5,X.transform=KN,X.unary=LV,X.union=IL,X.unionBy=OL,X.unionWith=LL,X.uniq=VL,X.uniqBy=NL,X.uniqWith=jL,X.unset=zN,X.unzip=Eg,X.unzipWith=g5,X.update=qN,X.updateWith=UN,X.values=dl,X.valuesIn=WN,X.without=KL,X.words=j5,X.wrap=VV,X.xor=zL,X.xorBy=qL,X.xorWith=UL,X.zip=WL,X.zipObject=HL,X.zipObjectDeep=GL,X.zipWith=YL,X.entries=O5,X.entriesIn=L5,X.extend=M5,X.extendWith=lh,kg(X,X),X.add=Wj,X.attempt=K5,X.camelCase=ZN,X.capitalize=V5,X.ceil=Hj,X.clamp=HN,X.clone=jV,X.cloneDeep=zV,X.cloneDeepWith=qV,X.cloneWith=KV,X.conformsTo=UV,X.deburr=N5,X.defaultTo=wj,X.divide=Gj,X.endsWith=XN,X.eq=ha,X.escape=JN,X.escapeRegExp=QN,X.every=oV,X.find=uV,X.findIndex=d5,X.findKey=DN,X.findLast=lV,X.findLastIndex=f5,X.findLastKey=$N,X.floor=Yj,X.forEach=y5,X.forEachRight=b5,X.forIn=EN,X.forInRight=CN,X.forOwn=wN,X.forOwnRight=AN,X.get=Tg,X.gt=WV,X.gte=HV,X.has=PN,X.hasIn=Pg,X.head=p5,X.identity=ei,X.includes=pV,X.indexOf=lL,X.inRange=GN,X.invoke=FN,X.isArguments=tu,X.isArray=Bt,X.isArrayBuffer=GV,X.isArrayLike=Jr,X.isArrayLikeObject=Kn,X.isBoolean=YV,X.isBuffer=ls,X.isDate=ZV,X.isElement=XV,X.isEmpty=JV,X.isEqual=QV,X.isEqualWith=eN,X.isError=Ag,X.isFinite=tN,X.isFunction=_o,X.isInteger=S5,X.isLength=sh,X.isMap=T5,X.isMatch=nN,X.isMatchWith=rN,X.isNaN=iN,X.isNative=aN,X.isNil=sN,X.isNull=oN,X.isNumber=P5,X.isObject=Pn,X.isObjectLike=Ln,X.isPlainObject=Qc,X.isRegExp=Sg,X.isSafeInteger=uN,X.isSet=_5,X.isString=uh,X.isSymbol=bi,X.isTypedArray=cl,X.isUndefined=lN,X.isWeakMap=cN,X.isWeakSet=dN,X.join=pL,X.kebabCase=ej,X.last=Ii,X.lastIndexOf=mL,X.lowerCase=tj,X.lowerFirst=nj,X.lt=fN,X.lte=hN,X.max=Zj,X.maxBy=Xj,X.mean=Jj,X.meanBy=Qj,X.min=eK,X.minBy=tK,X.stubArray=Rg,X.stubFalse=Ig,X.stubObject=Nj,X.stubString=jj,X.stubTrue=Kj,X.multiply=nK,X.nth=gL,X.noConflict=Fj,X.noop=Mg,X.now=ih,X.pad=rj,X.padEnd=ij,X.padStart=aj,X.parseInt=oj,X.random=YN,X.reduce=bV,X.reduceRight=xV,X.repeat=sj,X.replace=uj,X.result=VN,X.round=rK,X.runInContext=k,X.sample=$V,X.size=wV,X.snakeCase=lj,X.some=AV,X.sortedIndex=EL,X.sortedIndexBy=CL,X.sortedIndexOf=wL,X.sortedLastIndex=AL,X.sortedLastIndexBy=SL,X.sortedLastIndexOf=TL,X.startCase=dj,X.startsWith=fj,X.subtract=iK,X.sum=aK,X.sumBy=oK,X.template=hj,X.times=zj,X.toFinite=Bo,X.toInteger=Mt,X.toLength=F5,X.toLower=pj,X.toNumber=Oi,X.toSafeInteger=pN,X.toString=an,X.toUpper=mj,X.trim=gj,X.trimEnd=vj,X.trimStart=yj,X.truncate=bj,X.unescape=xj,X.uniqueId=Uj,X.upperCase=Dj,X.upperFirst=_g,X.each=y5,X.eachRight=b5,X.first=p5,kg(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__=Dn(y,S.__takeCount__):S.__views__.push({size:Dn(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 Hc(y,u,d)})}),Kt.prototype.reject=function(u){return this.filter(oh($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:nh,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(al,S)||(al[S]=[]),al[S].push({name:d,func:y})}}),al[Yf(n,w).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=xI,Kt.prototype.reverse=DI,Kt.prototype.value=$I,X.prototype.at=XL,X.prototype.chain=JL,X.prototype.commit=QL,X.prototype.next=eV,X.prototype.plant=nV,X.prototype.reverse=rV,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=iV,X.prototype.first=X.prototype.head,Zn&&(X.prototype[Zn]=tV),X},Re=Ce();_i?((_i.exports=Re)._=Re,Pi._=Re):wn._=Re}).call(OW)}(hd,hd.exports)),hd.exports}var kT=LW();const VW=hr(kT);function om(){return typeof window<"u"}function cc(e){return MT(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=(MT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function MT(e){return om()?e instanceof Node||e instanceof ui(e).Node:!1}function tr(e){return om()?e instanceof Element||e instanceof ui(e).Element:!1}function Qi(e){return om()?e instanceof HTMLElement||e instanceof ui(e).HTMLElement:!1}function Xy(e){return!om()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ui(e).ShadowRoot}const NW=new Set(["inline","contents"]);function af(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!NW.has(i)}const jW=new Set(["table","td","th"]);function KW(e){return jW.has(cc(e))}const zW=[":popover-open",":modal"];function sm(e){return zW.some(t=>{try{return e.matches(t)}catch{return!1}})}const qW=["transform","translate","scale","rotate","perspective"],UW=["transform","translate","scale","rotate","perspective","filter"],WW=["paint","layout","strict","content"];function sb(e){const t=ub(),n=tr(e)?$a(e):e;return qW.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)||UW.some(r=>(n.willChange||"").includes(r))||WW.some(r=>(n.contain||"").includes(r))}function HW(e){let t=Cs(e);for(;Qi(t)&&!Wl(t);){if(sb(t))return t;if(sm(t))return null;t=Cs(t)}return null}function ub(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GW=new Set(["html","body","#document"]);function Wl(e){return GW.has(cc(e))}function $a(e){return ui(e).getComputedStyle(e)}function um(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Cs(e){if(cc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xy(e)&&e.host||so(e);return Xy(t)?t.host:t}function RT(e){const t=Cs(e);return Wl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qi(t)&&af(t)?t:RT(t)}function Id(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=RT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=ui(i);if(a){const s=Jy(o);return t.concat(o,o.visualViewport||[],af(i)?i:[],s&&n?Id(s):[])}return t.concat(i,Id(i,[],n))}function Jy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const ap=Math.min,yu=Math.max,op=Math.round,ch=Math.floor,eo=e=>({x:e,y:e}),YW={left:"right",right:"left",bottom:"top",top:"bottom"},ZW={start:"end",end:"start"};function _C(e,t,n){return yu(e,ap(t,n))}function lm(e,t){return typeof e=="function"?e(t):e}function Eu(e){return e.split("-")[0]}function cm(e){return e.split("-")[1]}function IT(e){return e==="x"?"y":"x"}function OT(e){return e==="y"?"height":"width"}const XW=new Set(["top","bottom"]);function xs(e){return XW.has(Eu(e))?"y":"x"}function LT(e){return IT(xs(e))}function JW(e,t,n){n===void 0&&(n=!1);const r=cm(e),i=LT(e),a=OT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=sp(o)),[o,sp(o)]}function QW(e){const t=sp(e);return[Qy(e),t,Qy(t)]}function Qy(e){return e.replace(/start|end/g,t=>ZW[t])}const BC=["left","right"],FC=["right","left"],eH=["top","bottom"],tH=["bottom","top"];function nH(e,t,n){switch(e){case"top":case"bottom":return n?t?FC:BC:t?BC:FC;case"left":case"right":return t?eH:tH;default:return[]}}function rH(e,t,n,r){const i=cm(e);let a=nH(Eu(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Qy)))),a}function sp(e){return e.replace(/left|right|bottom|top/g,t=>YW[t])}function iH(e){return{top:0,right:0,bottom:0,left:0,...e}}function aH(e){return typeof e!="number"?iH(e):{top:e,right:e,bottom:e,left:e}}function up(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 oH(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function sH(){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 uH(){return/apple/i.test(navigator.vendor)}function lH(){return oH().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function cH(){return sH().includes("jsdom/")}const kC="data-floating-ui-focusable",dH="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function MC(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 e3(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Xy(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function fH(e){return"composedPath"in e?e.composedPath()[0]:e.target}function pd(e){return(e==null?void 0:e.ownerDocument)||document}function hH(e){return Qi(e)&&e.matches(dH)}function pH(e){if(!e||cH())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function mH(e){return e?e.hasAttribute(kC)?e:e.querySelector("["+kC+"]")||e:null}function t3(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var gH=typeof document<"u",vH=function(){},Hl=gH?O.useLayoutEffect:vH;const yH={...de};function dh(e){const t=de.useRef(e);return Hl(()=>{t.current=e}),t}const bH=yH.useInsertionEffect,xH=bH||(e=>e());function md(e){const t=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return xH(()=>{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 RC(e,t,n){let{reference:r,floating:i}=e;const a=xs(t),o=LT(t),s=OT(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(cm(t)){case"start":b[o]-=g*(n&&f?-1:1);break;case"end":b[o]+=g*(n&&f?-1:1);break}return b}const DH=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}=RC(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}=RC(f,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function VT(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}=lm(t,e),$=aH(b),A=s[g?m==="floating"?"reference":"floating":m],w=up(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=up(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 $H=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}=lm(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?[sp(s)]:QW(s)),F=$!=="none";!g&&F&&P.push(...rH(s,x,$,T));const q=[s,...P],te=await VT(t,A),se=[];let ae=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&se.push(te[w]),m){const z=JW(i,o,T);se.push(te[z[0]],te[z[1]])}if(ae=[...ae,{placement:i,overflows:se}],!se.every(z=>z<=0)){var I,Ee;const z=(((I=a.flip)==null?void 0:I.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{}}}},EH=new Set(["left","top"]);async function CH(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=cm(n),l=xs(n)==="y",f=EH.has(o)?-1:1,h=a&&l?-1:1,m=lm(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 wH=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 CH(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}}}}},AH=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}=lm(e,t),f={x:n,y:r},h=await VT(t,l),m=xs(Eu(i)),g=IT(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=_C(C,b,E)}if(o){const A=m==="y"?"top":"left",w=m==="y"?"bottom":"right",C=$+h[A],E=$-h[w];$=_C(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 NT(e){const t=$a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qi(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=op(n)!==a||op(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function lb(e){return tr(e)?e:e.contextElement}function Ml(e){const t=lb(e);if(!Qi(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=NT(t);let o=(a?op(n.width):n.width)/r,s=(a?op(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const SH=eo(0);function jT(e){const t=ui(e);return!ub()||!t.visualViewport?SH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TH(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=lb(e);let o=eo(1);t&&(r?tr(r)&&(o=Ml(r)):o=Ml(e));const s=TH(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=Jy($);for(;x&&r&&b!==$;){const A=Ml(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=Jy($)}}return up({width:h,height:m,x:l,y:f})}function dm(e,t){const n=um(e).scrollLeft;return t?t.left+n:Cu(so(e)).left+n}function KT(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-dm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function PH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=so(r),s=t?sm(t.floating):!1;if(r===o||s&&a)return n;let l={scrollLeft:0,scrollTop:0},f=eo(1);const h=eo(0),m=Qi(r);if((m||!m&&!a)&&((cc(r)!=="body"||af(o))&&(l=um(r)),Qi(r))){const b=Cu(r);f=Ml(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!a?KT(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 _H(e){return Array.from(e.getClientRects())}function BH(e){const t=so(e),n=um(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+dm(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 IC=25;function FH(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=ub();(!h||h&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const f=dm(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);$<=IC&&(a-=$)}else f<=IC&&(a+=f);return{width:a,height:o,x:s,y:l}}const kH=new Set(["absolute","fixed"]);function MH(e,t){const n=Cu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qi(e)?Ml(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 OC(e,t,n){let r;if(t==="viewport")r=FH(e,n);else if(t==="document")r=BH(so(e));else if(tr(t))r=MH(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 up(r)}function zT(e,t){const n=Cs(e);return n===t||!tr(n)||Wl(n)?!1:$a(n).position==="fixed"||zT(n,t)}function RH(e,t){const n=t.get(e);if(n)return n;let r=Id(e,[],!1).filter(s=>tr(s)&&cc(s)!=="body"),i=null;const a=$a(e).position==="fixed";let o=a?Cs(e):e;for(;tr(o)&&!Wl(o);){const s=$a(o),l=sb(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&kH.has(i.position)||af(o)&&!l&&zT(e,o))?r=r.filter(h=>h!==o):i=s,o=Cs(o)}return t.set(e,r),r}function IH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sm(t)?[]:RH(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((f,h)=>{const m=OC(t,h,i);return f.top=yu(m.top,f.top),f.right=ap(m.right,f.right),f.bottom=ap(m.bottom,f.bottom),f.left=yu(m.left,f.left),f},OC(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function OH(e){const{width:t,height:n}=NT(e);return{width:t,height:n}}function LH(e,t,n){const r=Qi(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=dm(i)}if(r||!r&&!a)if((cc(t)!=="body"||af(i))&&(s=um(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?KT(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 a4(e){return $a(e).position==="static"}function LC(e,t){if(!Qi(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(sm(e))return n;if(!Qi(e)){let i=Cs(e);for(;i&&!Wl(i);){if(tr(i)&&!a4(i))return i;i=Cs(i)}return n}let r=LC(e,t);for(;r&&KW(r)&&a4(r);)r=LC(r,t);return r&&Wl(r)&&a4(r)&&!sb(r)?n:r||HW(e)||n}const VH=async function(e){const t=this.getOffsetParent||qT,n=this.getDimensions,r=await n(e.floating);return{reference:LH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NH(e){return $a(e).direction==="rtl"}const jH={convertOffsetParentRelativeRectToViewportRelativeRect:PH,getDocumentElement:so,getClippingRect:IH,getOffsetParent:qT,getElementRects:VH,getClientRects:_H,getDimensions:OH,getScale:Ml,isElement:tr,isRTL:NH};function UT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KH(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 $=ch(m),x=ch(i.clientWidth-(h+g)),A=ch(i.clientHeight-(m+b)),w=ch(h),E={rootMargin:-$+"px "+-x+"px "+-A+"px "+-w+"px",threshold:yu(0,ap(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&&!UT(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 zH(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=lb(e),h=i||a?[...f?Id(f):[],...Id(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const m=f&&s?KH(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&&!UT(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 qH=wH,UH=AH,WH=$H,HH=(e,t,n)=>{const r=new Map,i={platform:jH,...n},a={...i.platform,_c:r};return DH(e,t,{...i,platform:a})};var GH=typeof document<"u",YH=function(){},Mh=GH?O.useLayoutEffect:YH;function lp(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(!lp(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)&&!lp(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function WT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VC(e,t){const n=WT(e);return Math.round(t*n)/n}function o4(e){const t=de.useRef(e);return Mh(()=>{t.current=e}),t}function HT(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);lp(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=o4(l),I=o4(i),Ee=o4(f),be=de.useCallback(()=>{if(!F.current||!q.current)return;const K={placement:t,strategy:n,middleware:g};I.current&&(K.platform=I.current),HH(F.current,q.current,K).then(fe=>{const M={...fe,isPositioned:Ee.current!==!1};z.current&&!lp(te.current,M)&&(te.current=M,No.flushSync(()=>{m(M)}))})},[g,t,n,I,Ee]);Mh(()=>{f===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,m(K=>({...K,isPositioned:!1})))},[f]);const z=de.useRef(!1);Mh(()=>(z.current=!0,()=>{z.current=!1}),[]),Mh(()=>{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=VC(V.floating,h.x),M=VC(V.floating,h.y);return s?{...K,transform:"translate("+fe+"px, "+M+"px)",...WT(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 ZH=(e,t)=>({...qH(e),options:[e,t]}),XH=(e,t)=>({...UH(e),options:[e,t]}),JH=(e,t)=>({...WH(e),options:[e,t]}),QH="data-floating-ui-focusable",NC="active",jC="selected",eG={...de};let KC=!1,tG=0;const zC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tG++;function nG(){const[e,t]=de.useState(()=>KC?zC():void 0);return Hl(()=>{e==null&&t(zC())},[]),de.useEffect(()=>{KC=!0},[]),e}const rG=eG.useId,GT=rG||nG;let n3;process.env.NODE_ENV!=="production"&&(n3=new Set);function iG(){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=n3)!=null&&e.has(i))){var a;(a=n3)==null||a.add(i),console.error(i)}}function aG(){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 oG=de.createContext(null),sG=de.createContext(null),cb=()=>{var e;return((e=de.useContext(oG))==null?void 0:e.id)||null},YT=()=>de.useContext(sG);function ZT(e){return"data-floating-ui-"+e}function Ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const qC=ZT("safe-polygon");function s4(e,t,n){if(n&&!t3(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 u4(e){return typeof e=="function"?e():e}function uG(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=YT(),$=cb(),x=dh(f),A=dh(l),w=dh(n),C=dh(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),I=md(()=>{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){I()&&r(!1,fe,"hover")}const K=pd(o.floating).documentElement;return K.addEventListener("mouseleave",R),()=>{K.removeEventListener("mouseleave",R)}},[o.floating,n,r,s,x,I]);const Ee=de.useCallback(function(R,K,fe){K===void 0&&(K=!0),fe===void 0&&(fe="hover");const M=s4(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=md(()=>{se.current(),P.current=void 0}),z=md(()=>{if(te.current){const R=pd(o.floating).body;R.style.pointerEvents="",R.removeAttribute(qC),te.current=!1}}),G=md(()=>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&&!t3(E.current)||u4(C.current)>0&&!s4(A.current,"open"))return;const Se=s4(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=pd(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"?!e3(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]),Hl(()=>{var R;if(s&&n&&(R=x.current)!=null&&(R=R.__options)!=null&&R.blockPointerEvents&&I()){te.current=!0;const fe=o.floating;if(tr(o.domReference)&&fe){var K;const M=pd(o.floating).body;M.setAttribute(qC,"");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,I]),Hl(()=>{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&&!t3(E.current)||n||u4(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,u4(C.current))))}}},[h,r,n,w,C]);return de.useMemo(()=>s?{reference:V}:{},[s,V])}function lG(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=GT(),a=de.useRef({}),[o]=de.useState(()=>aG()),s=cb()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&iG("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=md((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 cG(e){e===void 0&&(e={});const{nodeId:t}=e,n=lG({...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=YT();Hl(()=>{h&&(m.current=h)},[h]);const b=HT({...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 Hl(()=>{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 l4(){return lH()&&uH()}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&&Qi(o.domReference)&&o.domReference===MC(pd(o.domReference))&&(f.current=!0)}function x(){m.current=!0}function A(){m.current=!1}return b.addEventListener("blur",$),l4()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",A,!0)),()=>{b.removeEventListener("blur",$),l4()&&(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 $=fH(b.nativeEvent);if(l&&tr($)){if(l4()&&!b.relatedTarget){if(!m.current&&!hH($))return}else if(!pH($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){f.current=!1;const $=b.relatedTarget,x=b.nativeEvent,A=tr($)&&$.hasAttribute(ZT("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const C=MC(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||e3((w=a.current.floatingContext)==null?void 0:w.refs.floating.current,C)||e3(o.domReference,C)||A||r(!1,x,"focus")})}}),[a,o.domReference,r,l]);return de.useMemo(()=>s?{reference:g}:{},[s,g])}function c4(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[NC]:o,[jC]:s,...l}=e;a=l}return{...n==="floating"&&{tabIndex:-1,[QH]:""},...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&&[NC,jC].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 fG(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=>c4(s,e,"reference"),t),a=de.useCallback(s=>c4(s,e,"floating"),n),o=de.useCallback(s=>c4(s,e,"item"),r);return de.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const hG=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pG(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=GT(),h=((n=a.domReference)==null?void 0:n.id)||f,m=de.useMemo(()=>{var C;return((C=mH(a.floating))==null?void 0:C.id)||o},[a.floating,o]),g=(r=hG.get(l))!=null?r:l,$=cb()!=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 of=e=>e.type==="checkbox",lu=e=>e instanceof Date,ni=e=>e==null;const XT=e=>typeof e=="object";var nr=e=>!ni(e)&&!Array.isArray(e)&&XT(e)&&!lu(e),JT=e=>nr(e)&&e.target?of(e.target)?e.target.checked:e.target.value:e,mG=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,QT=(e,t)=>e.has(mG(t)),gG=e=>{const t=e.constructor&&e.constructor.prototype;return nr(t)&&t.hasOwnProperty("isPrototypeOf")},db=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $n(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(!(db&&(e instanceof Blob||r))&&(n||nr(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!gG(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=$n(e[i]));else return e;return t}var fm=e=>/^\w*$/.test(e),vn=e=>e===void 0,hm=e=>Array.isArray(e)?e.filter(Boolean):[],fb=e=>hm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!nr(e))return n;const r=(fm(t)?[t]:fb(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=fm(t)?[t]:fb(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 cp={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"},hb=de.default.createContext(null);hb.displayName="HookFormContext";const sf=()=>de.default.useContext(hb),vG=e=>{const{children:t,...n}=e;return de.default.createElement(hb.Provider,{value:n},t)};var eP=(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 pm=typeof window<"u"?de.default.useLayoutEffect:de.default.useEffect;function yG(e){const t=sf(),{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 pm(()=>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(()=>eP(o,n,l.current,!1),[o,n])}var Ci=e=>typeof e=="string",tP=(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),r3=e=>ni(e)||!XT(e);function Ro(e,t,n=new WeakSet){if(r3(e)||r3(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 nP(e){const t=sf(),{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 pm(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:$=>{if(!a){const x=tP(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 rP(e){const t=sf(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a,defaultValue:o}=e,s=QT(i._names.array,n),l=de.default.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,o)),[i,n,o]),f=nP({control:i,name:n,defaultValue:l,exact:!0}),h=yG({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:JT(E),name:n},type:cp.CHANGE}),[n]),A=de.default.useCallback(()=>b.current.onBlur({target:{value:it(i._formValues,n),name:n},type:cp.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=$n(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 bG=e=>e.render(rP(e));var iP=(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],UC=()=>{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 aP(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=aP(i,a);nr(o)&&(n[r]=o)}else e[r]&&(n[r]=a)}return n}var Lr=e=>nr(e)&&!Object.keys(e).length,pb=e=>e.type==="file",ya=e=>typeof e=="function",dp=e=>{if(!db)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oP=e=>e.type==="select-multiple",mb=e=>e.type==="radio",xG=e=>mb(e)||of(e),d4=e=>dp(e)&&e.isConnected;function DG(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 $G(e){for(const t in e)if(e.hasOwnProperty(t)&&!vn(e[t]))return!1;return!0}function Un(e,t){const n=Array.isArray(t)?t:fm(t)?[t]:fb(t),r=n.length===1?e:DG(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(nr(r)&&Lr(r)||Array.isArray(r)&&$G(r))&&Un(e,n.slice(0,-1)),e}var EG=e=>{for(const t in e)if(ya(e[t]))return!0;return!1};function sP(e){return Array.isArray(e)||nr(e)&&!EG(e)}function i3(e,t={}){for(const n in e)sP(e[n])?(t[n]=Array.isArray(e[n])?[]:{},i3(e[n],t[n])):vn(e[n])||(t[n]=!0);return t}function bl(e,t,n){n||(n=i3(t));for(const r in e)sP(e[r])?vn(t)||r3(n[r])?n[r]=i3(e[r],Array.isArray(e[r])?[]:{}):bl(e[r],ni(t)?{}:t[r],n[r]):n[r]=!Ro(e[r],t[r]);return n}const WC={value:!1,isValid:!1},HC={value:!0,isValid:!0};var uP=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===""?HC:{value:e[0].value,isValid:!0}:HC:WC}return WC},lP=(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 GC={isValid:!1,value:null};var cP=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,GC):GC;function YC(e){const t=e.ref;return pb(t)?t.files:mb(t)?cP(e.refs).value:oP(t)?[...t.selectedOptions].map(({value:n})=>n):of(t)?uP(e.refs).value:lP(vn(t.value)?e.ref.value:t.value,e)}var CG=(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}},fp=e=>e instanceof RegExp,ed=e=>vn(e)?e:fp(e)?e.source:nr(e)?fp(e.value)?e.value.source:e.value:e,$l=e=>({isOnSubmit:!e||e===Wi.onSubmit,isOnBlur:e===Wi.onBlur,isOnChange:e===Wi.onChange,isOnAll:e===Wi.all,isOnTouch:e===Wi.onTouched});const ZC="AsyncFunction";var wG=e=>!!e&&!!e.validate&&!!(ya(e.validate)&&e.validate.constructor.name===ZC||nr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ZC)),AG=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),a3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Rl=(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(Rl(s,t))break}else if(nr(s)&&Rl(s,t))break}}};function XC(e,t,n){const r=it(e,n);if(r||fm(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 SG=(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))},TG=(e,t,n)=>!e||!t||e===t||ai(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),PG=(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,_G=(e,t)=>!hm(it(e,t)).length&&Un(e,t),dP=(e,t,n)=>{const r=ai(it(e,n));return nn(r,"root",t[n]),nn(e,n,r),e};function JC(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 fl=e=>nr(e)&&!fp(e)?e:{value:e,message:""},o3=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=mb(o),q=of(o),te=F||q,se=(A||pb(o))&&vn(o.value)&&vn(C)||dp(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,ae=iP.bind(null,x,r,P),I=(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&&!uP(s).isValid||F&&!cP(s).isValid)){const{value:Ee,message:be}=Ci(l)?{value:!!l,message:l}:fl(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=fl(g),G=fl(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)&&(I(!!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=fl(f),be=fl(h),z=!ni(Ee.value)&&C.length>+Ee.value,G=!ni(be.value)&&C.length<+be.value;if((z||G)&&(I(z,Ee.message,be.message),!r))return T(P[x].message),P}if(b&&!se&&Ci(C)){const{value:Ee,message:be}=fl(b);if(fp(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=JC(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=JC(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 BG={mode:Wi.onSubmit,reValidateMode:Wi.onChange,shouldFocusError:!0};function FG(e={}){let t={...BG,...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)?$n(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:$n(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:UC(),state:UC()},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):Un(n.validatingFields,Fe))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Lr(n.validatingFields)}))},w=(xe,Ae=[],Fe,Je,et=!0,Qe=!0)=>{if(Je&&Fe&&!t.disabled){if(o.action=!0,Qe&&Array.isArray(it(r,xe))){const gt=Fe(it(r,xe),Je.argA,Je.argB);et&&nn(r,xe,gt)}if(Qe&&Array.isArray(it(n.errors,xe))){const gt=Fe(it(n.errors,xe),Je.argA,Je.argB);et&&nn(n.errors,xe,gt),_G(n.errors,xe)}if((h.touchedFields||m.touchedFields)&&Qe&&Array.isArray(it(n.touchedFields,xe))){const gt=Fe(it(n.touchedFields,xe),Je.argA,Je.argB);et&&nn(n.touchedFields,xe,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=bl(i,a)),g.state.next({name:xe,isDirty:I(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,Je)=>{const et=it(r,xe);if(et){const Qe=it(a,xe,vn(Fe)?it(i,xe):Fe);vn(Qe)||Je&&Je.defaultChecked||Ae?nn(a,xe,Ae?Qe:YC(et._f)):z(xe,Qe),o.mount&&x()}},P=(xe,Ae,Fe,Je,et)=>{let Qe=!1,gt=!1;const kt={name:xe};if(!t.disabled){if(!Fe||Je){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=kt.isDirty=I(),Qe=gt!==kt.isDirty);const Dt=Ro(it(i,xe),Ae);gt=!!it(n.dirtyFields,xe),Dt?Un(n.dirtyFields,xe):nn(n.dirtyFields,xe,!0),kt.dirtyFields=n.dirtyFields,Qe=Qe||(h.dirtyFields||m.dirtyFields)&&gt!==!Dt}if(Fe){const Dt=it(n.touchedFields,xe);Dt||(nn(n.touchedFields,xe,Fe),kt.touchedFields=n.touchedFields,Qe=Qe||(h.touchedFields||m.touchedFields)&&Dt!==Fe)}Qe&&et&&g.state.next(kt)}return Qe?kt:{}},F=(xe,Ae,Fe,Je)=>{const et=it(n.errors,xe),Qe=(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):Un(n.errors,xe)),(Fe?!Ro(et,Fe):et)||!Lr(Je)||Qe){const gt={...Je,...Qe&&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,CG(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 Je=it(Ae,Fe);Je?nn(n.errors,Fe,Je):Un(n.errors,Fe)}else n.errors=Ae;return Ae},se=async(xe,Ae,Fe={valid:!0})=>{for(const Je in xe){const et=xe[Je];if(et){const{_f:Qe,...gt}=et;if(Qe){const kt=s.array.has(Qe.name),Dt=et._f&&wG(et._f);Dt&&h.validatingFields&&A([Qe.name],!0);const yn=await o3(et,s.disabled,a,b,t.shouldUseNativeValidation&&!Ae,kt);if(Dt&&h.validatingFields&&A([Qe.name]),yn[Qe.name]&&(Fe.valid=!1,Ae))break;!Ae&&(it(yn,Qe.name)?kt?dP(n.errors,yn,Qe.name):nn(n.errors,Qe.name,yn[Qe.name]):Un(n.errors,Qe.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=>!d4(Fe)):!d4(Ae._f.ref))&&Xe(xe)}s.unMount=new Set},I=(xe,Ae)=>!t.disabled&&(xe&&Ae&&nn(a,xe,Ae),!Ro(M(),i)),Ee=(xe,Ae,Fe)=>tP(xe,s,{...o.mount?a:vn(Ae)?i:Ci(xe)?{[xe]:Ae}:Ae},Fe,Ae),be=xe=>hm(it(o.mount?a:i,xe,t.shouldUnregister?it(i,xe,[]):[])),z=(xe,Ae,Fe={})=>{const Je=it(r,xe);let et=Ae;if(Je){const Qe=Je._f;Qe&&(!Qe.disabled&&nn(a,xe,lP(Ae,Qe)),et=dp(Qe.ref)&&ni(Ae)?"":Ae,oP(Qe.ref)?[...Qe.ref.options].forEach(gt=>gt.selected=et.includes(gt.value)):Qe.refs?of(Qe.ref)?Qe.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(et)?gt.checked=!!et.find(kt=>kt===gt.value):gt.checked=et===gt.value||!!et)}):Qe.refs.forEach(gt=>gt.checked=gt.value===et):pb(Qe.ref)?Qe.ref.value="":(Qe.ref.value=et,Qe.ref.type||g.state.next({name:xe,values:$n(a)})))}(Fe.shouldDirty||Fe.shouldTouch)&&P(xe,et,Fe.shouldTouch,Fe.shouldDirty,!0),Fe.shouldValidate&&fe(xe)},G=(xe,Ae,Fe)=>{for(const Je in Ae){if(!Ae.hasOwnProperty(Je))return;const et=Ae[Je],Qe=xe+"."+Je,gt=it(r,Qe);(s.array.has(xe)||nr(et)||gt&&!gt._f)&&!lu(et)?G(Qe,et,Fe):z(Qe,et,Fe)}},V=(xe,Ae,Fe={})=>{const Je=it(r,xe),et=s.array.has(xe),Qe=$n(Ae);nn(a,xe,Qe),et?(g.array.next({name:xe,values:$n(a)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&Fe.shouldDirty&&g.state.next({name:xe,dirtyFields:bl(i,a),isDirty:I(xe,Qe)})):Je&&!Je._f&&!ni(Qe)?G(xe,Qe,Fe):z(xe,Qe,Fe),a3(xe,s)&&g.state.next({...n,name:xe}),g.state.next({name:o.mount?xe:void 0,values:$n(a)})},R=async xe=>{o.mount=!0;const Ae=xe.target;let Fe=Ae.name,Je=!0;const et=it(r,Fe),Qe=Dt=>{Je=Number.isNaN(Dt)||lu(Dt)&&isNaN(Dt.getTime())||Ro(Dt,it(a,Fe,Dt))},gt=$l(t.mode),kt=$l(t.reValidateMode);if(et){let Dt,yn;const Dr=Ae.type?YC(et._f):JT(xe),zt=xe.type===cp.BLUR||xe.type===cp.FOCUS_OUT,Pt=!AG(et._f)&&!t.resolver&&!it(n.errors,Fe)&&!et._f.deps||PG(zt,it(n.touchedFields,Fe),n.isSubmitted,kt,gt),It=a3(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:$n(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(Qe(Dr),Je){const li=XC(n.errors,r,Fe),Br=XC(Hr,r,li.name||Fe);Dt=Br.error,Fe=Br.name,yn=Lr(Hr)}}else A([Fe],!0),Dt=(await o3(et,s.disabled,a,b,t.shouldUseNativeValidation))[Fe],A([Fe]),Qe(Dr),Je&&(Dt?yn=!1:(h.isValid||m.isValid)&&(yn=await se(r,!0)));Je&&(et._f.deps&&(!Array.isArray(et._f.deps)||et._f.deps.length>0)&&fe(et._f.deps),F(Fe,yn,Dt,qt))}},K=(xe,Ae)=>{if(it(n.errors,Ae)&&xe.focus)return xe.focus(),1},fe=async(xe,Ae={})=>{let Fe,Je;const et=ai(xe);if(t.resolver){const Qe=await te(vn(xe)?xe:et);Fe=Lr(Qe),Je=xe?!et.some(gt=>it(Qe,gt)):Fe}else xe?(Je=(await Promise.all(et.map(async Qe=>{const gt=it(r,Qe);return await se(gt&&gt._f?{[Qe]:gt}:gt)}))).every(Boolean),!(!Je&&!n.isValid)&&x()):Je=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&&!Je&&Rl(r,K,xe?et:s.mount),Je},M=(xe,Ae)=>{let Fe={...o.mount?a:i};return Ae&&(Fe=aP(Ae.dirtyFields?n.dirtyFields:n.touchedFields,Fe)),vn(xe)?Fe:Ci(xe)?it(Fe,xe):xe.map(Je=>it(Fe,Je))},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=>Un(n.errors,Ae)),g.state.next({errors:xe?n.errors:{}})},Se=(xe,Ae,Fe)=>{const Je=(it(r,xe,{_f:{}})._f||{}).ref,et=it(n.errors,xe)||{},{ref:Qe,message:gt,type:kt,...Dt}=et;nn(n.errors,xe,{...Dt,...Ae,ref:Je}),g.state.next({name:xe,errors:n.errors,isValid:!1}),Fe&&Fe.shouldFocus&&Je&&Je.focus&&Je.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=>{TG(xe.name,Ae.name,xe.exact)&&SG(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||(Un(r,Fe),Un(a,Fe)),!Ae.keepError&&Un(n.errors,Fe),!Ae.keepDirty&&Un(n.dirtyFields,Fe),!Ae.keepTouched&&Un(n.touchedFields,Fe),!Ae.keepIsValidating&&Un(n.validatingFields,Fe),!t.shouldUnregister&&!Ae.keepDefaultValue&&Un(i,Fe);g.state.next({values:$n(a)}),g.state.next({...n,...Ae.keepDirty?{isDirty:I()}:{}}),!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 Je=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),{...Je?{disabled:Ae.disabled||t.disabled}:{},...t.progressive?{required:!!Ae.required,min:ed(Ae.min),max:ed(Ae.max),minLength:ed(Ae.minLength),maxLength:ed(Ae.maxLength),pattern:ed(Ae.pattern)}:{},name:xe,onChange:R,onBlur:R,ref:et=>{if(et){qe(xe,Ae),Fe=it(r,xe);const Qe=vn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,gt=xG(Qe),kt=Fe._f.refs||[];if(gt?kt.find(Dt=>Dt===Qe):Qe===Fe._f.ref)return;nn(r,xe,{_f:{...Fe._f,...gt?{refs:[...kt.filter(d4),Qe,...Array.isArray(it(i,xe))?[{}]:[]],ref:{type:Qe.type,name:xe}}:{ref:Qe}}}),T(xe,!1,void 0,Qe)}else Fe=it(r,xe,{}),Fe._f&&(Fe._f.mount=!1),(t.shouldUnregister||Ae.shouldUnregister)&&!(QT(s.array,xe)&&o.action)&&s.unMount.add(xe)}}},ke=()=>t.shouldFocusError&&Rl(r,K,s.mount),je=xe=>{Ei(xe)&&(g.state.next({disabled:xe}),Rl(r,(Ae,Fe)=>{const Je=it(r,Fe);Je&&(Ae.disabled=Je._f.disabled||xe,Array.isArray(Je._f.refs)&&Je._f.refs.forEach(et=>{et.disabled=Je._f.disabled||xe}))},0,!1))},Te=(xe,Ae)=>async Fe=>{let Je;Fe&&(Fe.preventDefault&&Fe.preventDefault(),Fe.persist&&Fe.persist());let et=$n(a);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Qe,values:gt}=await q();n.errors=Qe,et=$n(gt)}else await se(r);if(s.disabled.size)for(const Qe of s.disabled)Un(et,Qe);if(Un(n.errors,"root"),Lr(n.errors)){g.state.next({errors:{}});try{await xe(et,Fe)}catch(Qe){Je=Qe}}else Ae&&await Ae({...n.errors},Fe),ke(),setTimeout(ke);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Lr(n.errors)&&!Je,submitCount:n.submitCount+1,errors:n.errors}),Je)throw Je},Ye=(xe,Ae={})=>{it(r,xe)&&(vn(Ae.defaultValue)?V(xe,$n(it(i,xe))):(V(xe,Ae.defaultValue),nn(i,xe,$n(Ae.defaultValue))),Ae.keepTouched||Un(n.touchedFields,xe),Ae.keepDirty||(Un(n.dirtyFields,xe),n.isDirty=Ae.defaultValue?I(xe,$n(it(i,xe))):I()),Ae.keepError||(Un(n.errors,xe),h.isValid&&x()),g.state.next({...n}))},ht=(xe,Ae={})=>{const Fe=xe?$n(xe):i,Je=$n(Fe),et=Lr(xe),Qe=et?i:Je;if(Ae.keepDefaultValues||(i=Fe),!Ae.keepValues){if(Ae.keepDirtyValues){const gt=new Set([...s.mount,...Object.keys(bl(i,a))]);for(const kt of Array.from(gt))it(n.dirtyFields,kt)?nn(Qe,kt,it(a,kt)):V(kt,it(Qe,kt))}else{if(db&&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(dp(Dt)){const yn=Dt.closest("form");if(yn){yn.reset();break}}}}if(Ae.keepFieldsRef)for(const gt of s.mount)V(gt,it(Qe,gt));else r={}}a=t.shouldUnregister?Ae.keepDefaultValues?$n(i):{}:$n(Qe),g.array.next({values:{...Qe}}),g.state.next({values:{...Qe}})}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?bl(i,a):n.dirtyFields:Ae.keepDefaultValues&&xe?bl(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),Je=Fe&&Fe._f;if(Je){const et=Je.refs?Je.refs[0]:Je.ref;et.focus&&(et.focus(),Ae.shouldSelect&&ya(et.select)&&et.select())}},_t=xe=>{n={...n,...xe}},Qt={control:{register:qe,unregister:Xe,getFieldState:oe,handleSubmit:Te,setError:Se,_subscribe:Be,_runSchema:q,_focusError:ke,_getWatch:Ee,_getDirty:I,_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{...Qt,formControl:Qt}}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)})},f4=(e,t,n={})=>n.shouldFocus||vn(n.shouldFocus)?n.focusName||`${e}.${vn(n.focusIndex)?t:n.focusIndex}.`:"",h4=(e,t)=>[...e,...ai(t)],p4=e=>Array.isArray(e)?e.map(()=>{}):void 0;function m4(e,t,n){return[...e.slice(0,t),...ai(n),...e.slice(t)]}var g4=(e,t,n)=>Array.isArray(e)?(vn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],v4=(e,t)=>[...ai(t),...ai(e)];function kG(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return hm(r).length?r:[]}var y4=(e,t)=>vn(t)?[]:kG(e,ai(t).sort((n,r)=>n-r)),b4=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},QC=(e,t,n)=>(e[t]=n,e);function MG(e){const t=sf(),{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]),pm(()=>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($n(T)),q=h4(n._getFieldArray(r),F);n._names.focus=f4(r,q.length-1,P),f.current=h4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,h4,{argA:p4(T)})},b=(T,P)=>{const F=ai($n(T)),q=v4(n._getFieldArray(r),F);n._names.focus=f4(r,0,P),f.current=v4(f.current,F.map(cs)),m(q),l(q),n._setFieldArray(r,q,v4,{argA:p4(T)})},$=T=>{const P=y4(n._getFieldArray(r),T);f.current=y4(f.current,T),m(P),l(P),!Array.isArray(it(n._fields,r))&&nn(n._fields,r,void 0),n._setFieldArray(r,P,y4,{argA:T})},x=(T,P,F)=>{const q=ai($n(P)),te=m4(n._getFieldArray(r),T,q);n._names.focus=f4(r,T,F),f.current=m4(f.current,T,q.map(cs)),m(te),l(te),n._setFieldArray(r,te,m4,{argA:T,argB:p4(P)})},A=(T,P)=>{const F=n._getFieldArray(r);b4(F,T,P),b4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,b4,{argA:T,argB:P},!1)},w=(T,P)=>{const F=n._getFieldArray(r);g4(F,T,P),g4(f.current,T,P),m(F),l(F),n._setFieldArray(r,F,g4,{argA:T,argB:P},!1)},C=(T,P)=>{const F=$n(P),q=QC(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,QC,{argA:T,argB:F},!0,!1)},E=T=>{const P=ai($n(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,a3(r,n._names)&&n._subjects.state.next({...n._formState}),h.current&&(!$l(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!$l(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):Un(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const T=it(n._fields,r);T&&T._f&&!($l(n._options.reValidateMode).isOnSubmit&&$l(n._options.mode).isOnSubmit)&&o3(T,n._names.disabled,n._formValues,n._options.criteriaMode===Wi.all,n._options.shouldUseNativeValidation,!0).then(P=>!Lr(P)&&n._subjects.state.next({errors:dP(n._formState.errors,P,r)}))}n._subjects.state.next({name:r,values:$n(n._formValues)}),n._names.focus&&Rl(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 RG(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}=FG(e);t.current={...s,formState:r}}const a=t.current.control;return a._options=e,pm(()=>{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=eP(r,a),t.current}function hl(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
+ font-size: .6rem;
62
+ 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 e2(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const IG=(e,t)=>Math.abs(e-t)<1.01,OG=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},t2=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},LG=e=>e,VG=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},NG=(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(t2(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(t2(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},n2={passive:!0},r2=typeof window>"u"?!0:"onscrollend"in window,jG=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&r2?()=>{}:OG(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,n2);const f=e.options.useScrollendEvent&&r2;return f&&n.addEventListener("scrollend",l,n2),()=>{n.removeEventListener("scroll",s),f&&n.removeEventListener("scrollend",l)}},KG=(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"]},zG=(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 qG{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:LG,rangeExtractor:VG,onChange:()=>{},measureElement:KG,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=hl(()=>(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=hl(()=>[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=hl(()=>[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=hl(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?UG({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=hl(()=>{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=hl(()=>[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 e2(r[fP(0,r.length-1,i=>e2(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}IG($[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 fP=(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 UG({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=fP(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 i2=typeof document<"u"?de.useLayoutEffect:de.useEffect;function WG(e){const t=de.useReducer(()=>({}),{})[1],n={...e,onChange:(i,a)=>{var o;a?nf.flushSync(t):t(),(o=e.onChange)==null||o.call(e,i,a)}},[r]=de.useState(()=>new qG(n));return r.setOptions(n),i2(()=>r._didMount(),[]),i2(()=>r._willUpdate()),r}function HG(e){return WG({observeElementRect:NG,observeElementOffset:jG,scrollToFn:zG,...e})}const hn=typeof document<"u"?de.default.useLayoutEffect:()=>{};var x4;const GG=(x4=de.default.useInsertionEffect)!==null&&x4!==void 0?x4:hn;function cn(e){const t=O.useRef(null);return GG(()=>{t.current=e},[e]),O.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function YG(e){let[t,n]=O.useState(e),r=O.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 hp={prefix:String(Math.round(Math.random()*1e10)),current:0},hP=de.default.createContext(hp),ZG=de.default.createContext(!1);let XG=!!(typeof window<"u"&&window.document&&window.document.createElement),D4=new WeakMap;function JG(e=!1){let t=O.useContext(hP),n=O.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=D4.get(a);o==null?D4.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,D4.delete(a))}n.current=++t.current}return n.current}function QG(e){let t=O.useContext(hP);t===hp&&!XG&&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=JG(!!e),r=t===hp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function eY(e){let t=de.default.useId(),[n]=O.useState(mm()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${hp.prefix}`;return e||`${r}-${t}`}const tY=typeof de.default.useId=="function"?eY:QG;function nY(){return!1}function rY(){return!0}function iY(e){return()=>{}}function mm(){return typeof de.default.useSyncExternalStore=="function"?de.default.useSyncExternalStore(iY,nY,rY):O.useContext(ZG)}let aY=!!(typeof window<"u"&&window.document&&window.document.createElement),Il=new Map,gd;typeof FinalizationRegistry<"u"&&(gd=new FinalizationRegistry(e=>{Il.delete(e)}));function zr(e){let[t,n]=O.useState(e),r=O.useRef(null),i=tY(t),a=O.useRef(null);if(gd&&gd.register(a,i),aY){const o=Il.get(i);o&&!o.includes(r)?o.push(r):Il.set(i,[r])}return hn(()=>{let o=i;return()=>{gd&&gd.unregister(a),Il.delete(o)}},[i]),O.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function oY(e,t){if(e===t)return e;let n=Il.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Il.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Gl(e=[]){let t=zr(),[n,r]=YG(t),i=O.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return hn(i,[t,i,...e]),n}function Ru(...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 sY(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function uY(e){return sY(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let lY=!1;function gm(){return lY}function An(e,t){if(!gm())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:uY(n)?n=n.host:n=n.parentNode}return!1}const ir=(e=document)=>{var t;if(!gm())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 gm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class cY{get currentNode(){return this._currentNode}set currentNode(t){if(!An(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 An(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 gm()?new cY(e,t,n,r):e.createTreeWalker(t,n,r)}function pP(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=pP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fY(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=pP(e))&&(r&&(r+=" "),r+=t);return r}function Jt(...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]=Ru(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=fY(a,o):i==="id"&&a&&o?t.id=oY(a,o):t[i]=o!==void 0?o:a}}return t}const hY=new Set(["id"]),pY=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),mY=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),gY=new Set(["dir","lang","hidden","inert","translate"]),a2=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"]),vY=/^(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)&&(hY.has(l)||n&&pY.has(l)||r&&mY.has(l)||i&&gY.has(l)||a&&a2.has(l)||l.endsWith("Capture")&&a2.has(l.slice(0,-7))||o!=null&&o.has(l)||vY.test(l))&&(s[l]=e[l]);return s}function wi(e){if(yY())e.focus({preventScroll:!0});else{let t=bY(e);e.focus(),xY(t)}}let fh=null;function yY(){if(fh==null){fh=!1;try{document.createElement("div").focus({get preventScroll(){return fh=!0,!0}})}catch{}}return fh}function bY(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 xY(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function vm(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 gb(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 gb(/^Mac/i)}),DY=Zo(function(){return gb(/^iPhone/i)}),vb=Zo(function(){return gb(/^iPad/i)||oo()&&navigator.maxTouchPoints>1}),uf=Zo(function(){return DY()||vb()}),Rh=Zo(function(){return oo()||uf()}),yb=Zo(function(){return vm(/AppleWebKit/i)&&!bb()}),bb=Zo(function(){return vm(/Chrome/i)}),xb=Zo(function(){return vm(/Android/i)}),$Y=Zo(function(){return vm(/Firefox/i)}),EY=O.createContext({isNative:!0,open:wY,useHref:e=>e});function ym(){return O.useContext(EY)}function wu(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:s,shiftKey:l}=t;$Y()&&(!((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=yb()&&oo()&&!vb()&&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 CY(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 wY(e,t){CY(e,n=>wu(n,t))}function AY(e){let t=ym();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,s3=new Set;function o2(){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 s3)a();s3.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?o2():document.addEventListener("DOMContentLoaded",o2));function SY(){for(const[e]of gs)"isConnected"in e&&!e.isConnected&&gs.delete(e)}function mP(e){requestAnimationFrame(()=>{SY(),gs.size===0?e():s3.add(e)})}function Ts(){let e=O.useRef(new Map),t=O.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=O.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=O.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return O.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Yl(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 u3(e,t){const n=O.useRef(!0),r=O.useRef(null);O.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),O.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 s2(e,t){const n=O.useRef(!0),r=O.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 TY(){return typeof window.ResizeObserver<"u"}function u2(e){const{ref:t,box:n,onResize:r}=e;O.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(TY()){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 gP(e,t){hn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Zl(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 bm(e,t){let n=e;for(Zl(n,t)&&(n=n.parentElement);n&&!Zl(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function PY(e,t){const n=[];for(;e&&e!==document.documentElement;)Zl(e,t)&&n.push(e),e=e.parentElement;return n}function xl(e){return oo()?e.metaKey:e.ctrlKey}const _Y=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $4(e){return e instanceof HTMLInputElement&&!_Y.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let BY=0;const E4=new Map;function dc(e){let[t,n]=O.useState();return hn(()=>{if(!e)return;let r=E4.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${BY++}`;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},E4.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),E4.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ba(e,t,n,r){let i=cn(n),a=n==null;O.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 vP(e,t){let n=l2(e,t,"left"),r=l2(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,I=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+I,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 l2(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 pp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(o).overflow==="hidden")&&!bb()){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=PY(e);for(let f of l)vP(f,e)}}}function l3(e){return e.pointerType===""&&e.isTrusted?!0:xb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function FY(e){return!xb()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function yP(e,t){let n=O.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Db(e,t,n){let r=cn(()=>{n&&n(t)});O.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 kY="react-aria-clear-focus",MY="react-aria-focus",RY=typeof Element<"u"&&"checkVisibility"in Element.prototype;function IY(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 OY(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 $b(e,t){return RY?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&IY(e)&&OY(e,t)&&(!e.parentElement||$b(e.parentElement,e))}const Eb=["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"],LY=Eb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Eb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const VY=Eb.join(':not([hidden]):not([tabindex="-1"]),');function bP(e){return e.matches(LY)&&$b(e)&&!xP(e)}function NY(e){return e.matches(VY)&&$b(e)&&!xP(e)}function xP(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]=O.useState(e||t),a=O.useRef(e!==void 0),o=e!==void 0;O.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=O.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 Xl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function hh(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 td(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=hh(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(hh(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(hh((n-t)/r,r))*r),a=hh(a,r),a}function Cb(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function DP(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function $P(e){let t=O.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 O.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=Cb(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 mp=!1;function c2(e){for(;e&&!bP(e);)e=e.parentElement;let t=ao(e),n=t.document.activeElement;if(!n||n===e)return;mp=!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),mp=!1,r=!1},f=requestAnimationFrame(l);return l}let El="default",c3="",Ih=new WeakMap;function d3(e){if(uf()){if(El==="default"){const t=Xt(e);c3=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}El="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Ih.set(e,e.style[t]),e.style[t]="none"}}function Oh(e){if(uf()){if(El!=="disabled")return;El="restoring",setTimeout(()=>{mP(()=>{if(El==="restoring"){const t=Xt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=c3||""),c3="",El="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ih.has(e)){let t=Ih.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ih.delete(e)}}const wb=de.default.createContext({register:()=>{}});wb.displayName="PressResponderContext";function jY(e,t){return t.get?t.get.call(e):t.value}function EP(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function KY(e,t){var n=EP(e,t,"get");return jY(e,n)}function zY(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function lf(e,t,n){zY(e,t),t.set(e,n)}function qY(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 d2(e,t,n){var r=EP(e,t,"set");return qY(e,r,n),n}function UY(e){let t=O.useContext(wb);if(t){let{register:n,...r}=t;e=Jt(r,e),n()}return gP(t,e.ref),e}var ph=new WeakMap;class mh{continuePropagation(){d2(this,ph,!1)}get shouldStopPropagation(){return KY(this,ph)}constructor(t,n,r,i){lf(this,ph,{writable:!0,value:void 0}),d2(this,ph,!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 f2=Symbol("linkClicked"),h2="react-aria-pressable-style",p2="data-react-aria-pressable";function cf(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}=UY(e),[$,x]=O.useState(!1),A=O.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((I,Ee)=>{let be=A.current;if(s||be.didFirePressStart)return!1;let z=!0;if(be.isTriggeringEvent=!0,r){let G=new mh("pressstart",Ee,I);r(G),z=G.shouldStopPropagation}return n&&n(!0),be.isTriggeringEvent=!1,be.didFirePressStart=!0,x(!0),z}),T=cn((I,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 mh("pressend",Ee,I);i(V),G=V.shouldStopPropagation}if(n&&n(!1),x(!1),t&&be&&!s){let V=new mh("press",Ee,I);t(V),G&&(G=V.shouldStopPropagation)}return z.isTriggeringEvent=!1,G}),P=cn((I,Ee)=>{let be=A.current;if(s)return!1;if(a){be.isTriggeringEvent=!0;let z=new mh("pressup",Ee,I);return a(z),be.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),F=cn(I=>{let Ee=A.current;if(Ee.isPressed&&Ee.target){Ee.didFirePressStart&&Ee.pointerType!=null&&T(nu(Ee.target,I),Ee.pointerType,!1),Ee.isPressed=!1,Ee.isOverTarget=!1,Ee.activePointerId=null,Ee.pointerType=null,C(),m||Oh(Ee.target);for(let be of Ee.disposables)be();Ee.disposables=[]}}),q=cn(I=>{h&&F(I)}),te=cn(I=>{s||o==null||o(I)}),se=cn((I,Ee)=>{if(!s&&o){let be=new MouseEvent("click",I);DP(be,Ee),o(Cb(be))}}),ae=O.useMemo(()=>{let I=A.current,Ee={onKeyDown(z){if(C4(z.nativeEvent,z.currentTarget)&&An(z.currentTarget,tn(z.nativeEvent))){var G;v2(tn(z.nativeEvent),z.key)&&z.preventDefault();let V=!0;if(!I.isPressed&&!z.repeat){I.target=z.currentTarget,I.isPressed=!0,I.pointerType="keyboard",V=E(z,"keyboard");let R=z.currentTarget,K=fe=>{C4(fe,R)&&!fe.repeat&&An(R,tn(fe))&&I.target&&P(nu(I.target,fe),"keyboard")};w(Xt(z.currentTarget),"keyup",Ru(K,be),!0)}V&&z.stopPropagation(),z.metaKey&&oo()&&((G=I.metaKeyEvents)===null||G===void 0||G.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(z){if(!(z&&!An(z.currentTarget,tn(z.nativeEvent)))&&z&&z.button===0&&!I.isTriggeringEvent&&!wu.isOpening){let G=!0;if(s&&z.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||l3(z.nativeEvent))){let V=E(z,"virtual"),R=P(z,"virtual"),K=T(z,"virtual");te(z),G=V&&R&&K}else if(I.isPressed&&I.pointerType!=="keyboard"){let V=I.pointerType||z.nativeEvent.pointerType||"virtual",R=P(nu(z.currentTarget,z),V),K=T(nu(z.currentTarget,z),V,!0);G=R&&K,I.isOverTarget=!1,te(z),F(z)}I.ignoreEmulatedMouseEvents=!1,G&&z.stopPropagation()}}},be=z=>{var G;if(I.isPressed&&I.target&&C4(z,I.target)){var V;v2(tn(z),z.key)&&z.preventDefault();let K=tn(z),fe=An(I.target,tn(z));T(nu(I.target,z),"keyboard",fe),fe&&se(z,I.target),C(),z.key!=="Enter"&&Ab(I.target)&&An(I.target,K)&&!z[f2]&&(z[f2]=!0,wu(I.target,z,!1)),I.isPressed=!1,(V=I.metaKeyEvents)===null||V===void 0||V.delete(z.key)}else if(z.key==="Meta"&&(!((G=I.metaKeyEvents)===null||G===void 0)&&G.size)){var R;let K=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let fe of K.values())(R=I.target)===null||R===void 0||R.dispatchEvent(new KeyboardEvent("keyup",fe))}};if(typeof PointerEvent<"u"){Ee.onPointerDown=V=>{if(V.button!==0||!An(V.currentTarget,tn(V.nativeEvent)))return;if(FY(V.nativeEvent)){I.pointerType="virtual";return}I.pointerType=V.pointerType;let R=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=V.pointerId,I.target=V.currentTarget,m||d3(I.target),R=E(V,I.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(An(V.currentTarget,tn(V.nativeEvent))&&V.button===0){if(f){let R=c2(V.target);R&&I.disposables.push(R)}V.stopPropagation()}},Ee.onPointerUp=V=>{!An(V.currentTarget,tn(V.nativeEvent))||I.pointerType==="virtual"||V.button===0&&!I.isPressed&&P(V,I.pointerType||V.pointerType)},Ee.onPointerEnter=V=>{V.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,E(nu(I.target,V),I.pointerType))},Ee.onPointerLeave=V=>{V.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,T(nu(I.target,V),I.pointerType,!1),q(V))};let z=V=>{if(V.pointerId===I.activePointerId&&I.isPressed&&V.button===0&&I.target){if(An(I.target,tn(V))&&I.pointerType!=null){let R=!1,K=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(R?F(V):(wi(I.target),I.target.click()))},80);w(V.currentTarget,"click",()=>R=!0,!0),I.disposables.push(()=>clearTimeout(K))}else F(V);I.isOverTarget=!1}},G=V=>{F(V)};Ee.onDragStart=V=>{An(V.currentTarget,tn(V.nativeEvent))&&F(V)}}else if(process.env.NODE_ENV==="test"){Ee.onMouseDown=V=>{if(V.button!==0||!An(V.currentTarget,tn(V.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){V.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=V.currentTarget,I.pointerType=l3(V.nativeEvent)?"virtual":"mouse",nf.flushSync(()=>E(V,I.pointerType))&&V.stopPropagation(),f){let K=c2(V.target);K&&I.disposables.push(K)}w(Xt(V.currentTarget),"mouseup",z,!1)},Ee.onMouseEnter=V=>{if(!An(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,R=E(V,I.pointerType)),R&&V.stopPropagation()},Ee.onMouseLeave=V=>{if(!An(V.currentTarget,tn(V.nativeEvent)))return;let R=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,R=T(V,I.pointerType,!1),q(V)),R&&V.stopPropagation()},Ee.onMouseUp=V=>{An(V.currentTarget,tn(V.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&V.button===0&&!I.isPressed&&P(V,I.pointerType||"mouse")};let z=V=>{if(V.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(V.target)&&I.pointerType!=null||F(V),I.isOverTarget=!1}};Ee.onTouchStart=V=>{if(!An(V.currentTarget,tn(V.nativeEvent)))return;let R=WY(V.nativeEvent);if(!R)return;I.activePointerId=R.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=V.currentTarget,I.pointerType="touch",m||d3(I.target),E(ds(I.target,V),I.pointerType)&&V.stopPropagation(),w(ao(V.currentTarget),"scroll",G,!0)},Ee.onTouchMove=V=>{if(!An(V.currentTarget,tn(V.nativeEvent)))return;if(!I.isPressed){V.stopPropagation();return}let R=m2(V.nativeEvent,I.activePointerId),K=!0;R&&g2(R,V.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,K=E(ds(I.target,V),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,K=T(ds(I.target,V),I.pointerType,!1),q(ds(I.target,V))),K&&V.stopPropagation()},Ee.onTouchEnd=V=>{if(!An(V.currentTarget,tn(V.nativeEvent)))return;if(!I.isPressed){V.stopPropagation();return}let R=m2(V.nativeEvent,I.activePointerId),K=!0;R&&g2(R,V.currentTarget)&&I.pointerType!=null?(P(ds(I.target,V),I.pointerType),K=T(ds(I.target,V),I.pointerType),se(V.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(K=T(ds(I.target,V),I.pointerType,!1)),K&&V.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&Oh(I.target),C()},Ee.onTouchCancel=V=>{An(V.currentTarget,tn(V.nativeEvent))&&(V.stopPropagation(),I.isPressed&&F(ds(I.target,V)))};let G=V=>{I.isPressed&&An(tn(V),I.target)&&F({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};Ee.onDragStart=V=>{An(V.currentTarget,tn(V.nativeEvent))&&F(V)}}return Ee},[w,s,f,C,m,F,q,T,E,P,te,se]);return O.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=Xt(g.current);if(!I||!I.head||I.getElementById(h2))return;const Ee=I.createElement("style");Ee.id=h2,Ee.textContent=`
64
+ @layer {
65
+ [${p2}] {
66
+ touch-action: pan-x pan-y pinch-zoom;
67
+ }
68
+ }
69
+ `.trim(),I.head.prepend(Ee)},[g]),O.useEffect(()=>{let I=A.current;return()=>{var Ee;m||Oh((Ee=I.target)!==null&&Ee!==void 0?Ee:void 0);for(let be of I.disposables)be();I.disposables=[]}},[m]),{isPressed:l||$,pressProps:Jt(b,ae,{[p2]:!0})}}function Ab(e){return e.tagName==="A"&&e.hasAttribute("href")}function C4(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&&!CP(i,n)||i instanceof ao(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&Ab(i))&&n!=="Enter")}function WY(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function m2(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 HY(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 GY(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function g2(e,t){let n=t.getBoundingClientRect(),r=HY(e);return GY(n,r)}function YY(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ab(e)}function v2(e,t){return e instanceof HTMLInputElement?!CP(e,t):YY(e)}const ZY=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function CP(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":ZY.has(e.type)}let zo=null,f3=new Set,Ed=new Map,Au=!1,h3=!1;function xm(e,t){for(let n of f3)n(e,t)}function XY(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function gp(e){Au=!0,XY(e)&&(zo="keyboard",xm("keyboard",e))}function qi(e){zo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Au=!0,xm("pointer",e))}function wP(e){l3(e)&&(Au=!0,zo="virtual")}function AP(e){e.target===window||e.target===document||mp||!e.isTrusted||(!Au&&!h3&&(zo="virtual",xm("virtual",e)),Au=!1,h3=!1)}function SP(){mp||(Au=!1,h3=!0)}function p3(e){if(typeof window>"u"||typeof document>"u"||Ed.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",gp,!0),n.addEventListener("keyup",gp,!0),n.addEventListener("click",wP,!0),t.addEventListener("focus",AP,!0),t.addEventListener("blur",SP,!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",()=>{TP(e)},{once:!0}),Ed.set(t,{focus:r})}const TP=(e,t)=>{const n=ao(e),r=Xt(e);t&&r.removeEventListener("DOMContentLoaded",t),Ed.has(n)&&(n.HTMLElement.prototype.focus=Ed.get(n).focus,r.removeEventListener("keydown",gp,!0),r.removeEventListener("keyup",gp,!0),r.removeEventListener("click",wP,!0),n.removeEventListener("focus",AP,!0),n.removeEventListener("blur",SP,!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)),Ed.delete(n))};function JY(e){const t=Xt(e);let n;return t.readyState!=="loading"?p3(e):(n=()=>{p3(e)},t.addEventListener("DOMContentLoaded",n)),()=>TP(e,n)}typeof document<"u"&&JY();function y2(){return zo!=="pointer"}function Od(){return zo}function PP(e){zo=e,xm(e,null)}function QY(){p3();let[e,t]=O.useState(zo);return O.useEffect(()=>{let n=()=>{t(zo)};return f3.add(n),()=>{f3.delete(n)}},[]),mm()?null:e}function Su(e){const t=Xt(e),n=ir(t);if(Od()==="virtual"){let r=n;mP(()=>{ir(t)===r&&e.isConnected&&wi(e)})}else wi(e)}function eZ(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=O.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=$P(a),s=O.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 b2(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 _P(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:b2(e.onKeyDown),onKeyUp:b2(e.onKeyUp)}}}let tZ=de.default.createContext(null);function nZ(e){let t=O.useContext(tZ)||{};gP(t,e);let{ref:n,...r}=t;return r}function Sb(e,t){let{focusProps:n}=eZ(e),{keyboardProps:r}=_P(e),i=Jt(n,r),a=nZ(t),o=e.isDisabled?{}:a,s=O.useRef(e.autoFocus);O.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:Jt({...i,tabIndex:l},o)}}function rZ({children:e}){let t=O.useMemo(()=>({register:()=>{}}),[]);return de.default.createElement(wb.Provider,{value:t},e)}function fc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=O.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:s}=Ts(),l=O.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=O.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&&!An($,x.target)){let A=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});DP(A,$);let w=Cb(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 vp=!1,gh=0;function m3(){vp=!0,setTimeout(()=>{vp=!1},50)}function x2(e){e.pointerType==="touch"&&m3()}function iZ(){if(!(typeof document>"u"))return gh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",x2):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",m3)),gh++,()=>{gh--,!(gh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",x2):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",m3))}}function aZ(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=O.useState(!1),s=O.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;O.useEffect(iZ,[]);let{addGlobalListener:l,removeAllGlobalListeners:f}=Ts(),{hoverProps:h,triggerHoverEnd:m}=O.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&&!An(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=>{vp&&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&&!vp&&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 O.useEffect(()=>{i&&m({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:h,isHovered:a}}function oZ(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=O.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=cn(l=>{n&&vh(l,t)&&(i&&i(l),a.current.isPointerDown=!0)}),s=cn(l=>{n&&n(l)});O.useEffect(()=>{let l=a.current;if(r)return;const f=t.current,h=Xt(f);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&vh(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&&vh(b,t)&&s(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&vh(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 vh(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 BP(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=O.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)=>{Oh(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:O.useMemo(()=>{let h={},m=()=>{d3(),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 sZ=500;function FP(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=sZ,accessibilityDescription:o}=e;const s=O.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Ts(),{pressProps:h}=cf({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=dc(i&&!t?o:void 0);return{longPressProps:Jt(h,m)}}const uZ=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),lZ=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function cZ(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 uZ.has(n.script)}let t=e.split("-")[0];return lZ.has(t)}const dZ=Symbol.for("react-aria.i18n.locale");function kP(){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:cZ(e)?"rtl":"ltr"}}let g3=kP(),vd=new Set;function D2(){g3=kP();for(let e of vd)e(g3)}function fZ(){let e=mm(),[t,n]=O.useState(g3);return O.useEffect(()=>(vd.size===0&&window.addEventListener("languagechange",D2),vd.add(n),()=>{vd.delete(n),vd.size===0&&window.removeEventListener("languagechange",D2)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const hZ=de.default.createContext(null);function _r(){let e=fZ();return O.useContext(hZ)||e}const pZ=Symbol.for("react-aria.i18n.locale"),mZ=Symbol.for("react-aria.i18n.strings");let pl;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=gZ(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[pZ];if(pl===void 0){let i=window[mZ];if(!i)return null;pl={};for(let a in i)pl[a]=new Ps({[n]:i[a]},n)}let r=pl==null?void 0:pl[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 gZ(e,t,n="en-US"){if(t[e])return t[e];let r=vZ(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function vZ(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const $2=new Map,E2=new Map;class MP{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=$2.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),$2.set(a,o));let s=o.select(t);return i=n[s]||n.other,typeof i=="function"?i():i}number(t){let n=E2.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),E2.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 C2=new WeakMap;function yZ(e){let t=C2.get(e);return t||(t=new Ps(e),C2.set(e,t)),t}function RP(e,t){return t&&Ps.getGlobalDictionaryForPackage(t)||yZ(e)}function Ta(e,t){let{locale:n}=_r(),r=RP(e,t);return O.useMemo(()=>new MP(n,r),[n,r])}function Ol(e,t){return e-t*Math.floor(e/t)}const IP=1721426;function cu(e,t,n,r){t=df(e,t);let i=t-1,a=-2;return n<=2?a=0:Ds(t)&&(a=-1),IP-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 df(e,t){return e==="BC"?1-t:t}function Dm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const bZ={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-IP,i=Math.floor(r/146097),a=Ol(r,146097),o=Math.floor(a/36524),s=Ol(a,36524),l=Math.floor(s/1461),f=Ol(s,1461),h=Math.floor(f/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Dm(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 bZ[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 xZ={"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=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function v3(e,t){return $m(e.calendar,t.calendar)&&er(e,t)}function $m(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 OP(e,t){return er(e,Em(t))}const DZ={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Tb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?DZ[n]:SZ(t),a=Math.ceil(r+1-i)%7;return a<0&&(a+=7),a}function LP(e){return Oo(Date.now(),e)}function Em(e){return qr(LP(e))}function VP(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function NP(e,t){return w2(e)-w2(t)}function w2(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let w4=null;function ff(){return w4==null&&(w4=new Intl.DateTimeFormat().resolvedOptions().timeZone),w4}function hf(e){return e.subtract({days:e.day-1})}function y3(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function $Z(e){return hf(e.subtract({months:e.month-1}))}function EZ(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function CZ(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ld(e,t,n){let r=Tb(e,t,n);return e.subtract({days:r})}function wZ(e,t,n){return Ld(e,t,n).add({days:6})}const A2=new Map,A4=new Map;function AZ(e){if(Intl.Locale){let n=A2.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&A2.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function SZ(e){let t=A4.get(e);if(!t){if(Intl.Locale){let r=new Intl.Locale(e);if("getWeekInfo"in r&&(t=r.getWeekInfo(),t))return A4.set(e,t),t.firstDay}let n=AZ(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&&xZ[n]||0};A4.set(e,t)}return t.firstDay}function jP(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Tb(hf(e),t,n)+r)/7)}function Pb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function _b(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Jl(e){e=Fn(e,new Ur);let t=df(e.era,e.year);return KP(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function KP(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 b3(e,t){if(t==="UTC")return 0;if(e>0&&t===ff())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=zP(e,t);return KP(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}const S2=new Map;function zP(e,t){let n=S2.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"}),S2.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 T2=864e5;function TZ(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>PZ(e,t,a))}function PZ(e,t,n){let r=zP(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 Jl(r);if(t===ff()&&n==="compatible"){r=Fn(r,new Ur);let l=new Date,f=df(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=Jl(r),a=b3(i-T2,t),o=b3(i+T2,t),s=TZ(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=b3(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 jd(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 Nd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function P2(e){return new pf(e.hour,e.minute,e.second,e.millisecond)}function Fn(e,t){if($m(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 UP(e,t,n){if(e instanceof jd)return e.timeZone===t?e:BZ(e,t);let r=Io(e,t,n);return Oo(r,t)}function _Z(e){let t=Jl(e)-e.offset;return new Date(t)}function BZ(e,t){let n=Jl(e)-e.offset;return Fn(Oo(n,t),e.calendar)}const nd=36e5;function Cm(e,t){let n=e.copy(),r="hour"in n?YP(n,t):0;x3(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,D3(n),WP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,FZ(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 x3(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function D3(e){for(;e.month<1;)x3(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,x3(e,1)}function FZ(e){for(;e.day<1;)e.month--,D3(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,D3(e)}function WP(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)),WP(e)}function Bb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function HP(e,t){return Cm(e,Bb(t))}function Fb(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 Vd(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),GP(n),n}function kZ(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=yh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=yh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=yh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=yh(e.hour,24),t}function GP(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 yh(e,t){let n=e%t;return n<0&&(n+=t),n}function YP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,kZ(e)}function ZP(e,t){let n=e.copy();return YP(n,t),n}function MZ(e,t){return ZP(e,Bb(t))}function kb(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 Mb(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 XP(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=Cm(Ea(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Io(i,e.timeZone)}else n=Jl(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 Fn(r,e.calendar)}function RZ(e,t){return XP(e,Bb(t))}function IZ(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=Fn(Vd(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=Fn(Vd(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=Jl(e)-e.offset,g=Math.floor(m/nd),b=m%nd;return m=Lo(g,n,Math.floor(l/nd),Math.floor(h/nd),r==null?void 0:r.round)*nd+b,Fn(Oo(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=kb(Ea(e),t,n,r),a=Io(i,e.timeZone);return Fn(Oo(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function OZ(e,t,n){let r=Ea(e),i=Vd(Fb(r,t),t);if(i.compare(r)===0)return e;let a=Io(i,e.timeZone,n);return Fn(Oo(a,e.timeZone),e.calendar)}const LZ=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,VZ=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function NZ(e){let t=e.match(LZ);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 jZ(e){let t=e.match(VZ);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 Nd(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 JP(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 QP(e){let t=Fn(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 e7(e){return`${QP(e)}T${JP(e)}`}function KZ(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 zZ(e){return`${e7(e)}${KZ(e.offset)}[${e.timeZone}]`}function Rb(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 qZ=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 Cm(this,t)}subtract(t){return HP(this,t)}set(t){return Fb(this,t)}cycle(t,n,r){return kb(this,t,n,r)}toDate(t){return qP(this,t)}toString(){return QP(this)}compare(t){return VP(this,t)}constructor(...t){lf(this,qZ,{writable:!0,value:void 0});let[n,r,i,a,o]=Rb(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=o,Tu(this)}}var UZ=new WeakMap;class pf{copy(){return new pf(this.hour,this.minute,this.second,this.millisecond)}add(t){return ZP(this,t)}subtract(t){return MZ(this,t)}set(t){return Vd(this,t)}cycle(t,n,r){return Mb(this,t,n,r)}toString(){return JP(this)}compare(t){return NP(this,t)}constructor(t=0,n=0,r=0,i=0){lf(this,UZ,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,GP(this)}}var WZ=new WeakMap;class Nd{copy(){return this.era?new Nd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Nd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Cm(this,t)}subtract(t){return HP(this,t)}set(t){return Fb(Vd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return kb(this,t,n,r);default:return Mb(this,t,n,r)}}toDate(t,n){return qP(this,t,n)}toString(){return e7(this)}compare(t){let n=VP(this,t);return n===0?NP(this,Ea(t)):n}constructor(...t){lf(this,WZ,{writable:!0,value:void 0});let[n,r,i,a,o]=Rb(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 HZ=new WeakMap;class jd{copy(){return this.era?new jd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new jd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return XP(this,t)}subtract(t){return RZ(this,t)}set(t,n){return OZ(this,t,n)}cycle(t,n,r){return IZ(this,t,n,r)}toDate(){return _Z(this)}toString(){return zZ(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-UP(t,this.timeZone).toDate().getTime()}constructor(...t){lf(this,HZ,{writable:!0,value:void 0});let[n,r,i,a,o]=Rb(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 Ll=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],GZ=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Lh=[1867,1911,1925,1988,2018],ms=["meiji","taisho","showa","heisei","reiwa"];function _2(e){const t=Ll.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?Ll.length-1:t===0?0:t-1}function S4(e){let t=Lh[ms.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gn(e.year+t,e.month,e.day)}class YZ extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=_2(n);return new Gn(this,ms[r],n.year-Lh[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(S4(t))}balanceDate(t){let n=S4(t),r=_2(n);ms[r]!==t.era&&(t.era=ms[r],t.year=n.year-Lh[r]),this.constrainDate(t)}constrainDate(t){let n=ms.indexOf(t.era),r=GZ[n];if(r!=null){let[i,a,o]=r,s=i-Lh[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]=Ll[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=Ll[n],i=Ll[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(S4(t))}getMinimumMonthInYear(t){let n=B2(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=B2(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function B2(e){if(e.year===1){let t=ms.indexOf(e.era);return Ll[t]}}const t7=-543;class ZZ extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=df(n.era,n.year);return new Gn(this,r-t7,n.month,n.day)}toJulianDay(t){return super.toJulianDay(F2(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(F2(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function F2(e){let[t,n]=Dm(e.year+t7);return new Gn(t,n,e.month,e.day)}const yp=1911;function n7(e){return e.era==="minguo"?e.year+yp:1-e.year+yp}function k2(e){let t=e-yp;return t>0?["minguo",t]:["before_minguo",1-t]}class XZ extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=df(n.era,n.year),[i,a]=k2(r);return new Gn(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(M2(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=k2(n7(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(M2(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-yp}constructor(...t){super(...t),this.identifier="roc"}}function M2(e){let[t,n]=Dm(n7(e));return new Gn(t,n,e.month,e.day)}const R2=1948320,I2=[0,31,62,93,124,155,186,216,246,276,306,336];class JZ{fromJulianDay(t){let n=t-R2,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-I2[o]+1;return new Gn(this,r,o+1,s)}toJulianDay(t){let n=R2-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=I2[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ol(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const T4=78,O2=80;class QZ extends Ur{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-T4,i=t-cu(n.era,n.year,1,1),a;i<O2?(r--,a=Ds(n.year-1)?31:30,i+=a+155+90+10):(a=Ds(n.year)?31:30,i-=O2);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+T4,[r,i]=Dm(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+T4)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const bp=1948440,L2=1948439,zi=1300,ml=1600,eX=460322;function xp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function r7(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+xp(t,r,1,1)))/29.5)+1),a=n-xp(t,r,i,1)+1;return new Gn(e,r,i,a)}function V2(e){return(14+11*e)%30<11}class Ib{fromJulianDay(t){return r7(this,bp,t)}toJulianDay(t){return xp(bp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&V2(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return V2(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class tX extends Ib{fromJulianDay(t){return r7(this,L2,t)}toJulianDay(t){return xp(L2,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const nX="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let $3,Vl;function Vh(e){return eX+Vl[e-zi]}function yd(e,t){let n=e-zi,r=1<<11-(t-1);return($3[n]&r)===0?29:30}function N2(e,t){let n=Vh(e);for(let r=1;r<t;r++)n+=yd(e,r);return n}function j2(e){return Vl[e+1-zi]-Vl[e-zi]}class rX extends Ib{fromJulianDay(t){let n=t-bp,r=Vh(zi),i=Vh(ml);if(n<r||n>i)return super.fromJulianDay(t);{let a=zi-1,o=1,s=1;for(;s>0;){a++,s=n-Vh(a)+1;let l=j2(a);if(s===l){o=12;break}else if(s<l){let f=yd(a,o);for(o=1;s>f;)s-=f,o++,f=yd(a,o);break}}return new Gn(this,a,o,n-N2(a,o)+1)}}toJulianDay(t){return t.year<zi||t.year>ml?super.toJulianDay(t):bp+N2(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<zi||t.year>ml?super.getDaysInMonth(t):yd(t.year,t.month)}getDaysInYear(t){return t.year<zi||t.year>ml?super.getDaysInYear(t):j2(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",$3||($3=new Uint16Array(Uint8Array.from(atob(nX),t=>t.charCodeAt(0)).buffer)),!Vl){Vl=new Uint32Array(ml-zi+1);let t=0;for(let n=zi;n<=ml;n++){Vl[n-zi]=t;for(let r=1;r<=12;r++)t+=yd(n,r)}}}}const K2=347997,i7=1080,a7=24*i7,iX=29,aX=12*i7+793,oX=iX*a7+aX;function su(e){return Ol(e*7+1,19)<7}function Nh(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Ol(3*(r+1),7)<3&&(r+=1),r}function sX(e){let t=Nh(e-1),n=Nh(e);return Nh(e+1)-n===356?2:n-t===382?1:0}function Cd(e){return Nh(e)+sX(e)}function o7(e){return Cd(e+1)-Cd(e)}function uX(e){let t=o7(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function bh(e,t){if(t>=6&&!su(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=uX(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?su(e)?30:0:30}class lX{fromJulianDay(t){let n=t-K2,r=n*a7/oX,i=Math.floor((19*r+234)/235)+1,a=Cd(i),o=Math.floor(n-a);for(;o<1;)i--,a=Cd(i),o=Math.floor(n-a);let s=1,l=0;for(;l<o;)l+=bh(i,s),s++;s--,l-=bh(i,s);let f=o-l;return new Gn(this,i,s,f)}toJulianDay(t){let n=Cd(t.year);for(let r=1;r<t.month;r++)n+=bh(t.year,r);return n+t.day+K2}getDaysInMonth(t){return bh(t.year,t.month)}getMonthsInYear(t){return su(t.year)?13:12}getDaysInYear(t){return o7(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 E3=1723856,z2=1824665,C3=5500;function Dp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Ob(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Dp(e,n,1,1))/30),i=t+1-Dp(e,n,r,1);return[n,r,i]}function s7(e){return Math.floor(e%4/3)}function u7(e,t){return t%13!==0?30:s7(e)+5}class Lb{fromJulianDay(t){let[n,r,i]=Ob(E3,t),a="AM";return n<=0&&(a="AA",n+=C3),new Gn(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=C3),Dp(E3,n,t.month,t.day)}getDaysInMonth(t){return u7(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+s7(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class cX extends Lb{fromJulianDay(t){let[n,r,i]=Ob(E3,t);return n+=C3,new Gn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class dX extends Lb{fromJulianDay(t){let[n,r,i]=Ob(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),Dp(z2,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),u7(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 fX(e){switch(e){case"buddhist":return new ZZ;case"ethiopic":return new Lb;case"ethioaa":return new cX;case"coptic":return new dX;case"hebrew":return new lX;case"indian":return new QZ;case"islamic-civil":return new Ib;case"islamic-tbla":return new tX;case"islamic-umalqura":return new rX;case"japanese":return new YZ;case"persian":return new JZ;case"roc":return new XZ;case"gregory":default:return new Ur}}let P4=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 mX()&&(this.resolvedHourCycle||(this.resolvedHourCycle=gX(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=l7(t,n),this.options=n}}const hX={true:{ja:"h11"},false:{}};function l7(e,t={}){if(typeof t.hour12=="boolean"&&pX()){t={...t};let i=hX[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(P4.has(n))return P4.get(n);let r=new Intl.DateTimeFormat(e,t);return P4.set(n,r),r}let _4=null;function pX(){return _4==null&&(_4=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),_4}let B4=null;function mX(){return B4==null&&(B4=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),B4}function gX(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=l7(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=yP(e??{},vX);let{locale:t}=_r();return O.useMemo(()=>new Gi(t,e),[t,e])}function vX(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 F4=new Map,w3=!1;try{w3=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let $p=!1;try{$p=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const c7={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class d7{format(t){let n="";if(!w3&&this.options.signDisplay!=null?n=bX(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!$p){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let s=(r=c7[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!w3&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!$p&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=yX(t,n),this.options=n}}function yX(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!$p){var r;let{unit:o,unitDisplay:s="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=c7[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(F4.has(i))return F4.get(i);let a=new Intl.NumberFormat(e,t);return F4.set(i,a),a}function bX(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 xX=new RegExp("^.*\\(.*\\).*$"),DX=["latn","arab","hanidec","deva","beng","fullwide"];class f7{parse(t){return k4(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return k4(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return k4(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const q2=new Map;function k4(e,t,n){let r=U2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of DX)if(i!==r.options.numberingSystem){let a=U2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function U2(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=q2.get(n);return r||(r=new $X(e,t),q2.set(n,r)),r}class $X{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=gl(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 f7(this.locale,o).parse(new d7(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&xX.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=gl(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=gl(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=gl(t," ",this.symbols.group),t=gl(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=gl(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=CX(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 W2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),EX=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function CX(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=EX.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=>!W2.has(ae.type)).map(ae=>H2(ae.value)),E=m.flatMap(ae=>ae.filter(I=>!W2.has(I.type)).map(I=>H2(I.value))),T=[...new Set([...C,...E])].sort((ae,I)=>I.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,I)=>[ae,I])),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 gl(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function H2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wX(e={}){let{locale:t}=_r();return O.useMemo(()=>new d7(t,e),[t,e])}let M4=new Map;function h7(e){let{locale:t}=_r(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(M4.has(n))return M4.get(n);let r=new Intl.Collator(t,e);return M4.set(n,r),r}function p7(e){let t=h7({usage:"search",...e}),n=O.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=O.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=O.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 O.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function AX(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}=cf({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:s,onClick:m,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:E}=Sb(e,t);h&&(E.tabIndex=r?-1:E.tabIndex);let T=Jt(E,w,Yo(e,{labelable:!0}));return{isPressed:C,buttonProps:Jt(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 G2=de.default.createContext(null),A3="react-aria-focus-scope-restore";let gn=null;function SX(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=O.useRef(null),o=O.useRef(null),s=O.useRef([]),{parentNode:l}=O.useContext(G2)||{},f=O.useMemo(()=>new T3({scopeRef:s}),[s]);hn(()=>{let g=l||Jn.root;if(Jn.getTreeNode(g.scopeRef)&&gn&&!Ep(gn,g.scopeRef)){let b=Jn.getTreeNode(gn);b&&(g=b)}g.addChild(f),Jn.addNode(f)},[f,l]),hn(()=>{let g=Jn.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(A3,x),b=b.nextSibling;return s.current=$,()=>{for(let A of $)A.removeEventListener(A3,x)}},[t]),kX(s,r,n),_X(s,n),MX(s,r,n),FX(s,i),O.useEffect(()=>{const g=ir(Xt(s.current?s.current[0]:void 0));let b=null;if(ea(g,s.current)){for(let $ of Jn.traverse())$.scopeRef&&ea(g,$.scopeRef.current)&&(b=$);b===Jn.getTreeNode(s)&&(gn=b.scopeRef)}},[s]),hn(()=>()=>{var g,b,$;let x=($=(b=Jn.getTreeNode(s))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(s===gn||Ep(s,gn))&&(!x||Jn.getTreeNode(x))&&(gn=x),Jn.removeTreeNode(s)},[s]);let h=O.useMemo(()=>TX(s),[]),m=O.useMemo(()=>({focusManager:h,parentNode:f}),[f,h]);return de.default.createElement(G2.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 TX(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 bd(e){let t=Jn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function PX(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 _X(e,t){let n=O.useRef(void 0),r=O.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||!bd(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||Ep(gn,e))&&ea(tn(f),e.current)?(gn=e,n.current=tn(f)):bd(e)&&!$s(tn(f),e)?n.current?n.current.focus():gn&&gn.current&&S3(gn.current):bd(e)&&(n.current=tn(f))},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Od(),m=(h==="virtual"||h===null)&&xb()&&bb(),g=ir(a);if(!m&&g&&bd(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&&S3(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 m7(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 Jn.traverse(Jn.getTreeNode(t)))if(n&&ea(e,n.current))return!0;return!1}function BX(e){return $s(e,gn)}function Ep(e,t){var n;let r=(n=Jn.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 g7(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 S3(e,t=!0){ii(g7(e,t))}function FX(e,t){const n=de.default.useRef(t);O.useEffect(()=>{if(n.current){gn=e;const r=Xt(e.current?e.current[0]:void 0);!ea(ir(r),gn.current)&&e.current&&S3(e.current)}n.current=!1},[e])}function kX(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:m7(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 Y2(e){let t=Jn.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function MX(e,t,n){const r=O.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||Ep(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||!bd(e)||o.isComposing)return;let s=i.activeElement;if(!$s(s,e)||!Y2(e))return;let l=Jn.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):m7(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=Jn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let s=Jn.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,f=ir(i);if(t&&l&&(f&&$s(f,e)||f===i.body&&Y2(e))){let h=Jn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){Z2(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Jn.getTreeNode(m.scopeRef)){let g=g7(m.scopeRef.current,!0);Z2(g);return}m=m.parent}}})}}}},[e,t])}function Z2(e){e.dispatchEvent(new CustomEvent(A3,{bubbles:!0,cancelable:!0}))&&ii(e)}function Vr(e,t,n){let r=t!=null&&t.tabbable?NY:bP,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"&&(!PX(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 wm(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=R4(f);return m&&ii(m,!0),m??null}let h=f.previousNode();if(!h&&o){f.currentNode=r;let m=R4(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=R4(o);return s&&ii(s,!0),s??null}}}function R4(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Vb{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 T3({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 Vb;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 T3({scopeRef:null}),this.fastMap.set(null,this.root)}}class T3{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 Jn=new Vb;function v7(e){let t=IX(Xt(e));t!==e&&(t&&RX(t,e),e&&Nb(e,t))}function RX(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Nb(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function IX(e){let t=ir(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var y7={};y7={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 x7={};x7={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 D7={};D7={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 E7={};E7={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 C7={};C7={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 w7={};w7={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 A7={};A7={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 S7={};S7={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 T7={};T7={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 P7={};P7={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 _7={};_7={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 B7={};B7={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 F7={};F7={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 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 M7={};M7={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 R7={};R7={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 I7={};I7={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 O7={};O7={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 L7={};L7={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 V7={};V7={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 N7={};N7={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 K7={};K7={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 z7={};z7={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 U7={};U7={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 W7={};W7={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 H7={};H7={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 G7={};G7={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 Y7={};Y7={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=>`${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 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 mf={};mf={"ar-AE":y7,"bg-BG":b7,"cs-CZ":x7,"da-DK":D7,"de-DE":$7,"el-GR":E7,"en-US":C7,"es-ES":w7,"et-EE":A7,"fi-FI":S7,"fr-FR":T7,"he-IL":P7,"hr-HR":_7,"hu-HU":B7,"it-IT":F7,"ja-JP":k7,"ko-KR":M7,"lt-LT":R7,"lv-LV":I7,"nb-NO":O7,"nl-NL":L7,"pl-PL":V7,"pt-BR":N7,"pt-PT":j7,"ro-RO":K7,"ru-RU":z7,"sk-SK":q7,"sl-SI":U7,"sr-SP":W7,"sv-SE":H7,"tr-TR":G7,"uk-UA":Y7,"zh-CN":Z7,"zh-TW":X7};function J7(e){return e&&e.__esModule?e.default:e}const jb=new WeakMap;function Kd(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function OX(e){let t=Ta(J7(mf),"@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:Kd(n)||Kd(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return O.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=_3(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:s})}return""},[n,r,o,e.timeZone,t,a])}function P3(e,t,n,r){let i=Ta(J7(mf),"@react-aria/calendar"),a=Kd(e)||Kd(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 O.useMemo(()=>{if(er(e,hf(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,y3(e)))return o.format(l.toDate(n));if(er(t,y3(t)))return r?_3(o,i,l,f,n):o.formatRange(l.toDate(n),f.toDate(n))}return r?_3(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,s,i,n,r])}function _3(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 Q7=7e3;let ji=null;function Nl(e,t="assertive",n=Q7){ji?ji.announce(e,t,n):(ji=new VX,(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 LX(e){ji&&ji.clear(e)}class VX{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=Q7){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 NX(e){return e&&e.__esModule?e.default:e}function e_(e,t){let n=Ta(NX(mf),"@react-aria/calendar"),r=Yo(e),i=P3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=P3(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);u3(()=>{t.isFocused||Nl(a)},[a]);let o=OX(t);u3(()=>{o&&Nl(o,"polite",4e3)},[o]);let s=Gl([!!e.errorMessage,e.isInvalid,e.validationState]);jb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:o});let[l,f]=O.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(f(!1),t.setFocused(!0));let[m,g]=O.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=Yl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Jt(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 jX(e,t){return e_(e,t)}function KX(e,t,n){let r=e_(e,t),i=O.useRef(!1),a=O.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 zX(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=P3(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=jb.get(t),h=Yl({"aria-label":[l,s].filter(Boolean).join(", "),"aria-labelledby":f}),m=Za({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=_r(),b=O.useMemo(()=>{let x=Ld(Em(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:Jt(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 qX(e){return e&&e.__esModule?e.default:e}function UX(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:o}=jb.get(t),s=Ta(qX(mf),"@react-aria/calendar"),l=Za({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Kd(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=yP(r,v3);let $=O.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=OP(r,t.timeZone),A=O.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(er(r,t.value.start)||er(r,t.value.end))&&(I=o+", "),I+=l.format($),x?I=s.format(f?"todayDateSelected":"todayDate",{date:I}):f&&(I=s.format("dateSelected",{date:I})),t.minValue&&er(r,t.minValue)?I+=", "+s.format("minimumDate"):t.maxValue&&er(r,t.maxValue)&&(I+=", "+s.format("maximumDate")),I},[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=dc(w),E=O.useRef(!1),T=O.useRef(!1),P=O.useRef(void 0),{pressProps:F,isPressed:q}=cf({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.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};I.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(I){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(I.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 I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),te;i||(te=er(r,t.focusedDate)?0:-1),O.useEffect(()=>{h&&n.current&&(wi(n.current),Od()!=="pointer"&&document.activeElement===n.current&&pp(n.current,{containingElement:bm(n.current)}))},[h,n]);let se=Za({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=O.useMemo(()=>se.formatToParts($).find(I=>I.type==="day").value,[se,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":f||void 0,"aria-invalid":b||void 0},buttonProps:Jt(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(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.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 Am={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},t_={...Am,customError:!0,valid:!1},uu={isInvalid:!1,validationDetails:Am,validationErrors:[]},WX=O.createContext({}),Ql="__formValidationState"+Date.now();function gf(e){if(e[Ql]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[Ql];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return HX(e)}function HX(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:t_}:null,f=O.useMemo(()=>{if(!o||i==null)return null;let ae=GX(o,i);return X2(ae)},[o,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let h=O.useContext(WX),m=O.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>B3(h[ae])):B3(h[r]):[],[h,r]),[g,b]=O.useState(h),[$,x]=O.useState(!1);h!==g&&(b(h),x(!1));let A=O.useMemo(()=>X2($?[]:m),[$,m]),w=O.useRef(uu),[C,E]=O.useState(uu),T=O.useRef(uu),P=()=>{if(!F)return;q(!1);let ae=f||a||w.current;I4(ae,T.current)||(T.current=ae,E(ae))},[F,q]=O.useState(!1);return O.useEffect(P),{realtimeValidation:l||A||f||a||uu,displayValidation:s==="native"?l||A||C:l||A||f||a||C,updateValidation(ae){s==="aria"&&!I4(C,ae)?E(ae):w.current=ae},resetValidation(){let ae=uu;I4(ae,T.current)||(T.current=ae,E(ae)),s==="native"&&q(!1),x(!0)},commitValidation(){s==="native"&&q(!0),x(!0)}}}function B3(e){return e?Array.isArray(e)?e:[e]:[]}function GX(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return B3(n)}return[]}function X2(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:t_}:null}function I4(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 Cp(...e){let t=new Set,n=!1,r={...Am};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 n_(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(ZX(n.current))}});let a=O.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&&XX(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),PP("keyboard")}f.preventDefault()}),l=cn(()=>{t.commitValidation()});O.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 YX(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 ZX(e){return{isInvalid:!e.validity.valid,validationDetails:YX(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function XX(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Sm(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=Yl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:s,fieldProps:l}}function Tm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Sm(e),s=Gl([!!t,!!n,r,i]),l=Gl([!!t,!!n,r,i]);return o=Jt(o,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:s},errorMessageProps:{id:l}}}const JX=0,QX=100,eJ=1;function tJ(e){const{isDisabled:t=!1,minValue:n=JX,maxValue:r=QX,numberFormatter:i,step:a=eJ,orientation:o="horizontal"}=e;let s=O.useMemo(()=>{let le=(r-n)/10;return le=td(le,0,le+a,a),Math.max(le,a)},[a,r,n]),l=O.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 td(Se,Be,Ge,a)}),[n,r,a]),f=O.useMemo(()=>l(Q2(e.value)),[e.value,l]),h=O.useMemo(()=>{var le;return l((le=Q2(e.defaultValue))!==null&&le!==void 0?le:[n])},[e.defaultValue,n,l]),m=ew(e.value,e.defaultValue,e.onChange),g=ew(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=Ai(f,h,m);let[x]=O.useState(b);const[A,w]=O.useState(new Array(b.length).fill(!1)),C=O.useRef(new Array(b.length).fill(!0)),[E,T]=O.useState(void 0),P=O.useRef(b),F=O.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 I(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=I(le);Se=td(Se,_e,Be,a);let Ge=J2(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=J2(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 Xl(K(Se),n,r)}function M(le,Se=1){let _e=Math.max(Se,a);z(le,td(b[le]+_e,n,r,a))}function oe(le,Se=1){let _e=Math.max(Se,a);z(le,td(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:I,getPercentValue:fe,isThumbEditable:Ee,setThumbEditable:be,incrementThumb:M,decrementThumb:oe,step:a,pageSize:s,orientation:o,isDisabled:t}}function J2(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Q2(e){if(e!=null)return Array.isArray(e)?e:[e]}function ew(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const tw={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 nJ(e={}){let{style:t,isFocusable:n}=e,[r,i]=O.useState(!1),{focusWithinProps:a}=fc({isDisabled:!n,onFocusWithinChange:s=>i(s)}),o=O.useMemo(()=>r?t:t?{...tw,...t}:tw,[r]);return{visuallyHiddenProps:{...a,style:o}}}function rJ(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=nJ(e);return de.default.createElement(n,Jt(a,o),t)}const Kb=new WeakMap;function F3(e,t){let n=Kb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function iJ(e,t,n){let{labelProps:r,fieldProps:i}=Sm(e),a=e.orientation==="vertical";var o;Kb.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=O.useRef(null),m=s==="rtl",g=O.useRef(null),{moveProps:b}=BP({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=Xl(g.current/P,0,1);t.setThumbPercent(h.current,q)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=O.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(F3(t,0)))===null||w===void 0||w.focus(),PP("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Jt({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)=>F3(t,C)).join(" "),"aria-live":"off"}}}function aJ(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=Kb.get(t);var w;const{labelProps:C,fieldProps:E}=Sm({...e,id:F3(t,n),"aria-labelledby":`${A.id} ${(w=e["aria-labelledby"])!==null&&w!==void 0?w:""}`.trim()}),T=t.values[n],P=O.useCallback(()=>{s.current&&wi(s.current)},[s]),F=t.focusedThumb===n;O.useEffect(()=>{F&&P()},[F,P]);let q=b==="rtl",te=O.useRef(null),{keyboardProps:se}=_P({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}=BP({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,Xl(te.current/qe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:I}=Sb(Jt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),s);let Ee=O.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?{}:Jt(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 Db(s,t.defaultValues[n],R=>{t.setThumbValue(n,R)}),{inputProps:Jt(I,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 oJ(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}=Sb(e,t),m=gf({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:x,fieldProps:A,descriptionProps:w,errorMessageProps:C}=Tm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),E=Yo(e,{labelable:!0});const T={type:o,pattern:e.pattern};let[P]=O.useState(l);var F;return Db(t,(F=e.defaultValue)!==null&&F!==void 0?F:P,f),n_(e,m,t),O.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:Jt(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 r_={};r_={Empty:"فارغ"};var i_={};i_={Empty:"Изпразни"};var a_={};a_={Empty:"Prázdné"};var o_={};o_={Empty:"Tom"};var s_={};s_={Empty:"Leer"};var u_={};u_={Empty:"Άδειο"};var l_={};l_={Empty:"Empty"};var c_={};c_={Empty:"Vacío"};var d_={};d_={Empty:"Tühjenda"};var f_={};f_={Empty:"Tyhjä"};var h_={};h_={Empty:"Vide"};var p_={};p_={Empty:"ריק"};var m_={};m_={Empty:"Prazno"};var g_={};g_={Empty:"Üres"};var v_={};v_={Empty:"Vuoto"};var y_={};y_={Empty:"空"};var b_={};b_={Empty:"비어 있음"};var x_={};x_={Empty:"Tuščias"};var D_={};D_={Empty:"Tukšs"};var $_={};$_={Empty:"Tom"};var E_={};E_={Empty:"Leeg"};var C_={};C_={Empty:"Pusty"};var w_={};w_={Empty:"Vazio"};var A_={};A_={Empty:"Vazio"};var S_={};S_={Empty:"Gol"};var T_={};T_={Empty:"Не заполнено"};var P_={};P_={Empty:"Prázdne"};var __={};__={Empty:"Prazen"};var B_={};B_={Empty:"Prazno"};var F_={};F_={Empty:"Tomt"};var k_={};k_={Empty:"Boş"};var M_={};M_={Empty:"Пусто"};var R_={};R_={Empty:"空"};var I_={};I_={Empty:"空白"};var O_={};O_={"ar-AE":r_,"bg-BG":i_,"cs-CZ":a_,"da-DK":o_,"de-DE":s_,"el-GR":u_,"en-US":l_,"es-ES":c_,"et-EE":d_,"fi-FI":f_,"fr-FR":h_,"he-IL":p_,"hr-HR":m_,"hu-HU":g_,"it-IT":v_,"ja-JP":y_,"ko-KR":b_,"lt-LT":x_,"lv-LV":D_,"nb-NO":$_,"nl-NL":E_,"pl-PL":C_,"pt-BR":w_,"pt-PT":A_,"ro-RO":S_,"ru-RU":T_,"sk-SK":P_,"sl-SI":__,"sr-SP":B_,"sv-SE":F_,"tr-TR":k_,"uk-UA":M_,"zh-CN":R_,"zh-TW":I_};function sJ(e){return e&&e.__esModule?e.default:e}function uJ(e){const t=O.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(sJ(O_),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);O.useEffect(()=>()=>A(),[]);let w=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||s||I.nativeEvent.isComposing))switch(I.key){case"PageUp":if(h){I.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":f&&(I.preventDefault(),f==null||f());break;case"PageDown":if(g){I.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(I.preventDefault(),m==null||m());break;case"Home":b&&(I.preventDefault(),b==null||b());break;case"End":$&&(I.preventDefault(),$==null||$());break}},C=O.useRef(!1),E=()=>{C.current=!0},T=()=>{C.current=!1},P=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");O.useEffect(()=>{C.current&&(LX("assertive"),Nl(P,"assertive"))},[P]);const F=cn(I=>{A(),f==null||f(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&F(60)},I)}),q=cn(I=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&q(60)},I)});let te=I=>{I.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 L_={};L_={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 V_={};V_={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 N_={};N_={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 K_={};K_={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 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 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 U_={};U_={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 W_={};W_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 X_={};X_={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 J_={};J_={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 Q_={};Q_={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 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 tB={};tB={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 nB={};nB={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 rB={};rB={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 iB={};iB={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 aB={};aB={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 oB={};oB={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 sB={};sB={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 uB={};uB={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 lB={};lB={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:"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 dB={};dB={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 fB={};fB={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 hB={};hB={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 pB={};pB={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 mB={};mB={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 gB={};gB={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 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={"ar-AE":L_,"bg-BG":V_,"cs-CZ":N_,"da-DK":j_,"de-DE":K_,"el-GR":z_,"en-US":q_,"es-ES":U_,"et-EE":W_,"fi-FI":H_,"fr-FR":G_,"he-IL":Y_,"hr-HR":Z_,"hu-HU":X_,"it-IT":J_,"ja-JP":Q_,"ko-KR":eB,"lt-LT":tB,"lv-LV":nB,"nb-NO":rB,"nl-NL":iB,"pl-PL":aB,"pt-BR":oB,"pt-PT":sB,"ro-RO":uB,"ru-RU":lB,"sk-SK":cB,"sl-SI":dB,"sr-SP":fB,"sv-SE":hB,"tr-TR":pB,"uk-UA":mB,"zh-CN":gB,"zh-TW":vB};const Xa={top:"top",bottom:"top",left:"left",right:"left"},wp={top:"bottom",bottom:"top",left:"right",right:"left"},lJ={top:"left",left:"top"},k3={top:"height",left:"width"},bB={width:"totalWidth",height:"totalHeight"},xh={};let fr=typeof document<"u"?window.visualViewport:null;function nw(e){let t=0,n=0,r=0,i=0,a=0,o=0,s={};var l;let f=((l=fr==null?void 0:fr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=fr==null?void 0:fr.width)!==null&&h!==void 0?h:r;var m;n=(m=fr==null?void 0:fr.height)!==null&&m!==void 0?m:i,s.top=$.scrollTop||e.scrollTop,s.left=$.scrollLeft||e.scrollLeft,fr&&(a=fr.offsetTop,o=fr.offsetLeft)}else({width:t,height:n,top:a,left:o}=jl(e,!1)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,i=n;if(yb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){s.top=0,s.left=0;var g;a=(g=fr==null?void 0:fr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=fr==null?void 0:fr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:s,top:a,left:o}}function cJ(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function rw(e,t,n,r,i,a,o){var s;let l=(s=i.scroll[e])!==null&&s!==void 0?s:0,f=r[k3[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 dJ(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 iw(e){if(xh[e])return xh[e];let[t,n]=e.split(" "),r=Xa[t]||"right",i=lJ[r];Xa[n]||(n="center");let a=k3[r],o=k3[i];return xh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},xh[e]}function O4(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]=Xl(A[b],F,q),h===g){const te=s?o[$]:t[bB[$]];A[wp[g]]=Math.floor(te-e[g]+i)}else A[g]=Math.floor(e[g]+e[$]+i);return A}function fJ(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 aw(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[wp[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[wp[s]]-i)}function hJ(e,t,n,r,i,a,o,s,l,f,h,m,g,b,$,x){let A=iw(e),{size:w,crossAxis:C,crossSize:E,placement:T,crossPlacement:P}=A,F=O4(t,s,n,A,h,m,f,g,$,x),q=h,te=aw(s,f,t,i,a+h,A);if(o&&r[w]>te){let Xe=iw(`${wp[T]} ${P}`),Ne=O4(t,s,n,Xe,h,m,f,g,$,x);aw(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=rw(C,F[C],n[E],s,l,a,f);F[C]+=ae;let I=fJ(F,s,f,g,i,a,n.height,se);b&&b<I&&(I=b),n.height=Math.min(n.height,I),F=O4(t,s,n,A,q,m,f,g,$,x),ae=rw(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=Xl(z,le,Se);Ee[C]=Xl(_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:I,arrowOffsetLeft:Ee.left,arrowOffsetTop:Ee.top,placement:T,triggerAnchorPoint:Ge}}function pJ(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?mJ(r):document.documentElement,$=b===document.documentElement;const x=window.getComputedStyle(b).position;let A=!!x&&x!=="static",w=$?jl(n,!1):ow(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=jl(r,!0),E=dJ(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=cJ(i),se=nw(s),ae=nw(b),I=s.tagName==="BODY"?jl(b,!1):ow(b,s,!1);return b.tagName==="HTML"&&s.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),hJ(t,w,C,te,E,a,o,se,ae,I,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 jl(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 ow(e,t,n){let r=window.getComputedStyle(e),i;if(r.position==="fixed")i=zb(e,n);else{i=jl(e,n);let a=jl(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 mJ(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!sw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!sw(t);)t=t.parentElement;return t||document.documentElement}function sw(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 xB=new WeakMap;function gJ(e){let{triggerRef:t,isOpen:n,onClose:r}=e;O.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||xB.get(t.current);s&&s()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function vJ(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]=O.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=O.useRef(qn==null?void 0:qn.scale);O.useEffect(()=>{$&&(P.current=qn==null?void 0:qn.scale)},[$]);let F=O.useCallback(()=>{if(b===!1||!$||!i.current||!r.current||!h||(qn==null?void 0:qn.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=pJ({placement:bJ(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),yJ(F),u2({ref:i,onResize:F}),u2({ref:r,onResize:F});let q=O.useRef(!1);hn(()=>{let Ee,be=()=>{q.current=!0,clearTimeout(Ee),Ee=setTimeout(()=>{q.current=!1},500),F()},z=()=>{q.current&&be()};return qn==null||qn.addEventListener("resize",be),qn==null||qn.addEventListener("scroll",z),()=>{qn==null||qn.removeEventListener("resize",be),qn==null||qn.removeEventListener("scroll",z)}},[F]);let te=O.useCallback(()=>{q.current||x==null||x()},[x,q]);gJ({triggerRef:r,isOpen:$,onClose:x&&te});var se,ae,I;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:(I=C==null?void 0:C.triggerAnchorPoint)!==null&&I!==void 0?I: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 yJ(e){hn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function bJ(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Wa=[];function xJ(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:s}=e;O.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())};oZ({ref:t,onInteractOutside:a&&i?h:void 0,onInteractOutsideStart:f});let{focusWithinProps:g}=fc({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||BX($.relatedTarget)||(!s||s($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function DJ(e,t,n){let{type:r}=e,{isOpen:i}=t;O.useEffect(()=>{n&&n.current&&xB.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 wd=typeof document<"u"&&window.visualViewport;let Dh=0,L4;function $J(e={}){let{isDisabled:t}=e;hn(()=>{if(!t)return Dh++,Dh===1&&(uf()?L4=CJ():L4=EJ()),()=>{Dh--,Dh===0&&L4()}},[t])}function EJ(){let e=window.innerWidth-document.documentElement.clientWidth;return Ru(e>0&&("scrollbarGutter"in document.documentElement.style?V4(document.documentElement,"scrollbarGutter","stable"):V4(document.documentElement,"paddingRight",`${e}px`)),V4(document.documentElement,"overflow","hidden"))}function CJ(){let e,t=!1,n=l=>{let f=l.target;e=Zl(f)?f:bm(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
+ @layer {
71
+ * {
72
+ overscroll-behavior: contain;
73
+ }
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&&$4(h))h.focus({preventScroll:!0}),uw(h,$4(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&&$4(document.activeElement);o.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&uw(this,f)};let s=Ru(N4(document,"touchstart",n,{passive:!1,capture:!0}),N4(document,"touchmove",i,{passive:!1,capture:!0}),N4(document,"blur",a,!0));return()=>{s(),r.remove(),HTMLElement.prototype.focus=o}}function V4(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function N4(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function uw(e,t){t||!wd?lw(e):wd.addEventListener("resize",()=>lw(e),{once:!0})}function lw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=bm(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;wd&&(o=Math.min(o,wd.offsetTop+wd.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 wJ=O.createContext({});function AJ(){var e;return(e=O.useContext(wJ))!==null&&e!==void 0?e:{}}const SJ=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let rd=new WeakMap,ti=[];function DB(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)&&SJ,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=rd.get(x))!==null&&A!==void 0?A:0;f(x)&&w===0||(w===0&&h(x,!0),l.add(x),rd.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=rd.get(x);A!=null&&(A===1?(h(x,!1),rd.delete(x)):rd.set(x,A-1))}$===ti[ti.length-1]?(ti.pop(),ti.length&&ti[ti.length-1].observe()):ti.splice(ti.indexOf($),1)}}function TJ(e){let t=ti[ti.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function PJ(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}=xJ({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!a||f,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},i??r),{overlayProps:g,arrowProps:b,placement:$,triggerAnchorPoint:x}=vJ({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:a&&!f?t.close:null});return $J({isDisabled:a||!t.isOpen}),O.useEffect(()=>{if(t.isOpen&&r.current){var A,w;return a?TJ((A=i==null?void 0:i.current)!==null&&A!==void 0?A:r.current):DB([(w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current],{shouldUseInert:!0})}},[a,t.isOpen,r,i]),{popoverProps:Jt(h,g),arrowProps:b,underlayProps:m,placement:$,triggerAnchorPoint:x}}const $B=de.default.createContext(null);function _J(e){let t=mm(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=O.useState(!1),o=O.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(SX,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=de.default.createElement($B.Provider,{value:o},de.default.createElement(rZ,null,l)),No.default.createPortal(l,n)}function BJ(){let e=O.useContext($B),t=e==null?void 0:e.setContain;hn(()=>{t==null||t(!0)},[t])}const Pm=new WeakMap;function FJ(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function EB(e,t){let n=Pm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${FJ(t)}`}function M3(e){return Rh()?e.altKey:e.ctrlKey}function jh(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 CB=new WeakMap;function kJ(e){let t=zr();return CB.set(e,t),t}function MJ(e){return CB.get(e)}const RJ=1e3;function IJ(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=O.useRef({search:"",timeout:void 0}).current,a=o=>{let s=OJ(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=""},RJ)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function OJ(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function wB(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=ym(),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&&!M3(R)){nf.flushSync(()=>{t.setFocusedKey(Te,Ye)});let ht=jh(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&&!M3(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,xl(R));t.setFocusedKey(Te),Te!=null&&(xl(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,xl(R));t.setFocusedKey(Te),Te!=null&&(xl(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":xl(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=O.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=jh(r,t.focusedKey);le instanceof HTMLElement&&(!le.contains(document.activeElement)&&!m&&wi(le),Od()==="keyboard"&&pp(le,{containingElement:r.current}))}}},P=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},F=O.useRef(!1);ba(r,MY,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();v7(r.current),Nb(M,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(fe),F.current=!1});s2(()=>{F.current&&q()},[t.collection,q]);let te=cn(()=>{t.collection.size>0&&(F.current=!1)});s2(()=>{te()},[t.focusedKey,te]),ba(r,kY,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=O.useRef(i),ae=O.useRef(!1);O.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 I=O.useRef(t.focusedKey),Ee=O.useRef(null);O.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||ae.current)&&$.current&&r.current){let R=Od(),K=jh(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(R==="keyboard"||ae.current)&&(Ee.current&&cancelAnimationFrame(Ee.current),Ee.current=requestAnimationFrame(()=>{$.current&&(vP($.current,K),R!=="virtual"&&pp(K,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&Su(r.current),I.current=t.focusedKey,ae.current=!1}),O.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}=IJ({keyboardDelegate:n,selectionManager:t});h||(be=Jt(z,be));let G;m||(G=t.focusedKey==null?0:-1);let V=kJ(t.collection);return{collectionProps:Jt(be,{tabIndex:G,"data-collection":V})}}function LJ(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=ym();t=zr(t);let b=M=>{if(M.pointerType==="keyboard"&&M3(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&&(xl(M)||M.pointerType==="touch"||M.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};O.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?v7(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=O.useRef(null),te=F&&C,se=O.useRef(!1),ae=O.useRef(!1),I=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,I.href,I.routerOptions)},be={ref:i};if(a?(be.onPressStart=M=>{q.current=M.pointerType,se.current=te,M.pointerType==="keyboard"&&(!F||dw())&&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"&&!cw())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||dw()))&&b(M)},be.onPress=M=>{(M.pointerType==="touch"||M.pointerType==="pen"||M.pointerType==="virtual"||M.pointerType==="keyboard"&&F&&cw()||M.pointerType==="mouse"&&ae.current)&&(F?Ee(M):C&&b(M))}),$["data-collection"]=MJ(n.collection),$["data-key"]=r,be.preventFocusOnPress=o,o&&(be=Jt(be,{onPressStart(M){M.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(M){M.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),I)for(let M of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])I[M]&&(be[M]=Ru(be[M],I[M]));let{pressProps:z,isPressed:G}=cf(be),V=P?M=>{q.current==="mouse"&&(M.stopPropagation(),M.preventDefault(),Ee(M))}:void 0,{longPressProps:R}=FP({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:Jt($,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 cw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function dw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class fw{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?jh(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 AB{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&&!Zl(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&&!Zl(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 fw(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 fw(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function VJ(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:o}=e,s=h7({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=O.useMemo(()=>a||new AB({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:s,layoutDelegate:o}),[a,o,n,r,i,s,l]),{collectionProps:h}=wB({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:h}}function NJ(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}=VJ({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:s}=fc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=zr(e.id);Pm.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}=Sm({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:Jt(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Jt(h,o)})}}function SB(e){return null}SB.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:jJ(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 jJ(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&de.default.Children.count(e.children)>0)}let KJ=SB;class zJ{build(t,n){return this.context=n,hw(()=>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:qJ(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 <${j4(te.type)}> in <${j4((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${j4(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:hw(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 hw(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 qJ(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function j4(e){return e[0].toUpperCase()+e.slice(1)}function UJ(e,t,n){let r=O.useMemo(()=>new zJ,[]),{children:i,items:a,collection:o}=e;return O.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:a},n);return t(l)},[r,i,a,o,n,t])}function _m(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function WJ(e){return HJ(e)}function HJ(e,t){for(let n of e)return n}function K4(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...pw(e,t),t],i=[...pw(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 pw(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 mw=new WeakMap;function TB(e){let t=mw.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(_m(a,e)):a.type==="item"&&n++};return r(e),mw.set(e,n),n}function GJ(e,t,n){var r,i;let{key:a}=e,o=Pm.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=Gl(),T=Gl(),P={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};oo()&&yb()||(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"]=TB(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=EB(t,a),{itemProps:se,isPressed:ae,isFocused:I,hasAction:Ee,allowsSelection:be}=LJ({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?Ru(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}=aZ({isDisabled:l||!$,onHoverStart(){y2()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),G=Yo(F==null?void 0:F.props);delete G.id;let V=AY(F==null?void 0:F.props);return{optionProps:{...P,...Jt(G,se,z,V),id:te},labelProps:{id:E},descriptionProps:{id:T},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&y2(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:be,hasAction:Ee}}var PB={};PB={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var _B={};_B={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var BB={};BB={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var FB={};FB={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var kB={};kB={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var MB={};MB={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var RB={};RB={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var IB={};IB={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var OB={};OB={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var LB={};LB={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var VB={};VB={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var NB={};NB={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var jB={};jB={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var KB={};KB={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var zB={};zB={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var qB={};qB={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var UB={};UB={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var WB={};WB={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var HB={};HB={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var GB={};GB={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var YB={};YB={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var ZB={};ZB={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var XB={};XB={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var JB={};JB={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var QB={};QB={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var eF={};eF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var tF={};tF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var nF={};nF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var rF={};rF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var iF={};iF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var aF={};aF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var oF={};oF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var sF={};sF={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var uF={};uF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var lF={};lF={"ar-AE":PB,"bg-BG":_B,"cs-CZ":BB,"da-DK":FB,"de-DE":kB,"el-GR":MB,"en-US":RB,"es-ES":IB,"et-EE":OB,"fi-FI":LB,"fr-FR":VB,"he-IL":NB,"hr-HR":jB,"hu-HU":KB,"it-IT":zB,"ja-JP":qB,"ko-KR":UB,"lt-LT":WB,"lv-LV":HB,"nb-NO":GB,"nl-NL":YB,"pl-PL":ZB,"pt-BR":XB,"pt-PT":JB,"ro-RO":QB,"ru-RU":eF,"sk-SK":tF,"sl-SI":nF,"sr-SP":rF,"sv-SE":iF,"tr-TR":aF,"uk-UA":oF,"zh-CN":sF,"zh-TW":uF};function YJ(e){return e&&e.__esModule?e.default:e}function ZJ(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=zr(),{triggerProps:s,overlayProps:l}=DJ({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(YJ(lF),"@react-aria/menu"),{longPressProps:m}=FP({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 XJ(e){return e&&e.__esModule?e.default:e}function JJ(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:o,layoutDelegate:s,shouldFocusWrap:l,isReadOnly:f,isDisabled:h}=e,m=O.useRef(null);n=n??m;let g=Ta(XJ(yB),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=ZJ({type:"listbox",isDisabled:h||f},t,n);Pm.set(t,{id:$.id});let{collection:x}=t,{disabledKeys:A}=t.selectionManager,w=O.useMemo(()=>o||new AB({collection:x,disabledKeys:A,ref:a,layoutDelegate:s}),[o,s,x,A,a]),{collectionProps:C}=wB({selectionManager:t.selectionManager,keyboardDelegate:w,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),E=ym(),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:I,descriptionProps:Ee,errorMessageProps:be}=oJ({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Ru(t.isOpen&&C.onKeyDown,T,e.onKeyDown),onBlur:P,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[Ql]: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=Yl({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),R=Yl({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),K=O.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=O.useRef(le),Ge=O.useRef(_e);O.useEffect(()=>{if(Rh()&&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?[..._m(Ye,t.collection)].length:0,optionText:M["aria-label"]||M.textValue||"",isSelected:Te});Nl(Ht)}Be.current=le,Ge.current=_e});let Xe=TB(t.collection),Ne=O.useRef(Xe),qe=O.useRef(t.isOpen);O.useEffect(()=>{let je=t.isOpen!==qe.current&&(t.selectionManager.focusedKey==null||Rh());if(t.isOpen&&(je||Xe!==Ne.current)){let Te=g.format("countAnnouncement",{optionCount:Xe});Nl(Te)}Ne.current=Xe,qe.current=t.isOpen});let ke=O.useRef(t.selectedKey);return O.useEffect(()=>{if(Rh()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ke.current){let je=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Te=g.format("selectedAnnouncement",{optionText:je});Nl(Te)}ke.current=t.selectedKey}),O.useEffect(()=>{if(t.isOpen)return DB([i.current,r.current].filter(je=>je!=null))},[t.isOpen,i,r]),u3(()=>{!M&&i.current&&ir(Xt(i.current))===i.current&&Nb(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:Jt(I,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":M?EB(t,M.key):void 0,onTouchEnd:fe,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Jt($,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 cF={};cF={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 dF={};dF={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 fF={};fF={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 hF={};hF={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 pF={};pF={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 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 gF={};gF={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 vF={};vF={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 yF={};yF={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 xF={};xF={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 DF={};DF={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 EF={};EF={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 CF={};CF={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 wF={};wF={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 AF={};AF={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 SF={};SF={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 TF={};TF={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 PF={};PF={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 _F={};_F={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 BF={};BF={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 FF={};FF={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 kF={};kF={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 MF={};MF={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 RF={};RF={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 IF={};IF={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 OF={};OF={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 LF={};LF={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 VF={};VF={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 NF={};NF={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 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 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 vf={};vf={"ar-AE":cF,"bg-BG":dF,"cs-CZ":fF,"da-DK":hF,"de-DE":pF,"el-GR":mF,"en-US":gF,"es-ES":vF,"et-EE":yF,"fi-FI":bF,"fr-FR":xF,"he-IL":DF,"hr-HR":$F,"hu-HU":EF,"it-IT":CF,"ja-JP":wF,"ko-KR":AF,"lt-LT":SF,"lv-LV":TF,"nb-NO":PF,"nl-NL":_F,"pl-PL":BF,"pt-BR":FF,"pt-PT":kF,"ro-RO":MF,"ru-RU":RF,"sk-SK":IF,"sl-SI":OF,"sr-SP":LF,"sv-SE":VF,"tr-TR":NF,"uk-UA":jF,"zh-CN":KF,"zh-TW":zF};function qb(e,t,n){let{direction:r}=_r(),i=O.useMemo(()=>wm(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=gw(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=gw(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}=cf({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&o()}});return Jt(s,{onKeyDown:a})}function gw(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 QJ(e){return e&&e.__esModule?e.default:e}const qF=new WeakMap,Ad="__role_"+Date.now(),UF="__focusManager_"+Date.now();function WF(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:o}=t.displayValidation,{labelProps:s,fieldProps:l,descriptionProps:f,errorMessageProps:h}=Tm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),m=O.useRef(null),{focusWithinProps:g}=fc({...e,onFocusWithin(ae){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,ae)},onBlurWithin:ae=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=Ta(QJ(vf),"@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=dc(A),C=e[Ad]==="presentation"?l["aria-describedby"]:[w["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=e[UF],T=O.useMemo(()=>E||wm(n),[E,n]),P=qb(t,n,e[Ad]==="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=O.useRef(e.autoFocus),q;e[Ad]==="presentation"?q={role:"presentation"}:q=Jt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),O.useEffect(()=>{F.current&&T.focusFirst(),F.current=!1},[T]),Db(e.inputRef,t.defaultValue,t.setValue),n_({...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:Jt(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 eQ(e,t,n){var r;let i=WF(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function tQ(e){return e&&e.__esModule?e.default:e}function nQ(e,t,n){let r=zr(),i=zr(),a=zr(),o=Ta(tQ(vf),"@react-aria/datepicker"),{isInvalid:s,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Tm({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||l}),$=qb(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=dc(C),T=[E["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=Yo(e),F=O.useMemo(()=>wm(n),[n]),q=O.useRef(!1),{focusWithinProps:te}=fc({...e,isDisabled:t.isOpen,onBlurWithin:se=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(se.relatedTarget))){var I,Ee;q.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,se),(Ee=e.onFocusChange)===null||Ee===void 0||Ee.call(e,!1)}},onFocusWithin:se=>{if(!q.current){var ae,I;q.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,se),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Jt(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,[Ad]:"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,[Ql]: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 rQ(e){return e&&e.__esModule?e.default:e}function iQ(){let{locale:e}=_r(),t=RP(rQ(vf),"@react-aria/datepicker");return O.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new aQ(e,t)}},[e,t])}class aQ{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function oQ(e,t,n){let r=O.useRef(""),{locale:i,direction:a}=_r(),o=iQ(),{ariaLabel:s,ariaLabelledBy:l,ariaDescribedBy:f,focusManager:h}=qF.get(t),m=e.isPlaceholder?"":e.text,g=O.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}=uJ({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=O.useMemo(()=>new f7(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}=p7({sensitivity:"base"}),T=Za({hour:"numeric",hour12:!0}),P=O.useMemo(()=>{let M=new Date;return M.setHours(0),T.formatToParts(M).find(oe=>oe.type==="dayPeriod").value},[T]),F=O.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=O.useMemo(()=>{if(e.type!=="era")return[];let M=Fn(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=sQ(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&&pp(n.current,{containingElement:bm(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},I=O.useRef(typeof document<"u"?document:null);ba(I,"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=O.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=uf()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=O.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=Yl({"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:Jt(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 sQ(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 uQ(e){return e&&e.__esModule?e.default:e}function lQ(e,t,n){var r,i,a,o,s;let l=Ta(uQ(vf),"@react-aria/datepicker"),{isInvalid:f,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:$,errorMessageProps:x}=Tm({...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=dc(E),P={"aria-label":l.format("startDate"),"aria-labelledby":A},F={"aria-label":l.format("endDate"),"aria-labelledby":A},q=zr(),te=zr(),se=qb(t,n),ae=[T["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=O.useMemo(()=>wm(n,{accept:M=>M.id!==q}),[n,q]),Ee={[UF]:I,[Ad]:"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=O.useRef(!1),{focusWithinProps:G}=fc({...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=O.useRef(uu),R=O.useRef(uu);var K,fe;return{groupProps:Jt(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:()=>{I.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,[Ql]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){V.current=M,t.updateValidation(Cp(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,[Ql]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(M){R.current=M,t.updateValidation(Cp(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 cQ(e,t){let{role:n="dialog"}=e,r=Gl();r=e["aria-label"]?void 0:r;let i=O.useRef(!1);return O.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]),BJ(),{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 HF={...ri,copyMove:3,copyLink:6,linkMove:5,all:7,uninitialized:7},dQ=YF(HF);dQ[7]="all";const GF={none:"cancel",link:"link",copy:"copy",move:"move"},z4=YF(GF);function YF(e){let t={};for(let n in e)t[e[n]]=n;return t}const R3="application/vnd.react-aria.items+json",Ap="application/octet-stream",fQ=Symbol();function hQ(e){return e||(e="virtual"),e==="pointer"&&(e="virtual"),e==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(e="touch"),e}function pQ(){return hQ(QY())}class $h{has(t){return this.includesUnknownTypes||t===fQ&&this.types.has(Ap)?!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!==R3&&(r.kind==="file"&&(n=!0),r.type?this.types.add(r.type):this.types.add(Ap));this.includesUnknownTypes=!n&&t.types.includes("Files")}}function mQ(e){let t=[];if(!e)return t;let n=!1;if(e.types.includes(R3))try{let r=e.getData(R3),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||Ap,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(I3(i.getAsFile())):a.isDirectory&&t.push(ZF(a))}else t.push(I3(i.getAsFile()));r.size>0&&t.push({kind:"text",types:new Set(r.keys()),getText:i=>Promise.resolve(r.get(i))})}return t}function gQ(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 I3(e){if(!e)throw new Error("No file provided");return{kind:"file",type:e.type||Ap,name:e.name,getText:()=>gQ(e),getFile:()=>Promise.resolve(e)}}function ZF(e){return{kind:"directory",name:e.name,getEntries:()=>vQ(e)}}async function*vQ(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 yQ(r);yield I3(i)}else r.isDirectory&&(yield ZF(r))}while(n.length>0)}function yQ(e){return new Promise((t,n)=>e.file(t,n))}let XF={draggingKeys:new Set};function bQ(e){XF=e}let vw=ri.none,yw=new Map,bw=null,xw=new Set;function xQ(e){return yw.set(e.element,e),()=>{yw.delete(e.element)}}function DQ(){let[e,t]=O.useState(bw);return O.useEffect(()=>{let n=()=>t(bw);return xw.add(n),()=>{xw.delete(n)}},[]),e}var JF={};JF={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 QF={};QF={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 ek={};ek={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 tk={};tk={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 nk={};nk={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 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:"Η μεταφορά ξεκίνησε. Μεταβείτε σε έναν προορισμό απόθεσης και, στη συνέχεια, κάντε κλικ ή πατήστε 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={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 ak={};ak={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 ok={};ok={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 sk={};sk={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 uk={};uk={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 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 ck={};ck={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 dk={};dk={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 fk={};fk={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 hk={};hk={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 pk={};pk={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 mk={};mk={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 gk={};gk={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 vk={};vk={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 yk={};yk={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 xk={};xk={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 Dk={};Dk={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 Ek={};Ek={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 Ck={};Ck={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 wk={};wk={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 Ak={};Ak={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 Sk={};Sk={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 Tk={};Tk={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 Pk={};Pk={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:"按 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 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:"已開始拖曳。瀏覽至放置目標,然後按一下滑鼠或按 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={"ar-AE":JF,"bg-BG":QF,"cs-CZ":ek,"da-DK":tk,"de-DE":nk,"el-GR":rk,"en-US":ik,"es-ES":ak,"et-EE":ok,"fi-FI":sk,"fr-FR":uk,"he-IL":lk,"hr-HR":ck,"hu-HU":dk,"it-IT":fk,"ja-JP":hk,"ko-KR":pk,"lt-LT":mk,"lv-LV":gk,"nb-NO":vk,"nl-NL":yk,"pl-PL":bk,"pt-BR":xk,"pt-PT":Dk,"ro-RO":$k,"ru-RU":Ek,"sk-SK":Ck,"sl-SI":wk,"sr-SP":Ak,"sv-SE":Sk,"tr-TR":Tk,"uk-UA":Pk,"zh-CN":_k,"zh-TW":Bk};function $Q(e){return e&&e.__esModule?e.default:e}const EQ={keyboard:"dropDescriptionKeyboard",touch:"dropDescriptionTouch",virtual:"dropDescriptionVirtual"};function CQ(){let e=Ta($Q(Fk),"@react-aria/dnd"),t=pQ(),n=DQ();return{dropProps:{...dc(n?e.format(EQ[t]):""),onClick:()=>{}}}}const wQ=800;function AQ(e){let{hasDropButton:t,isDisabled:n}=e,[r,i]=O.useState(!1),a=O.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=Dw(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=q4(T),q=F[0];if(typeof e.getDropOperation=="function"){let te=new $h(E.dataTransfer);q=Eh(T,e.getDropOperation(te,F))}a.dropEffect=z4[q]||"none"}if(typeof e.getDropOperationForPoint=="function"){let F=new $h(E.dataTransfer),q=E.currentTarget.getBoundingClientRect(),te=Eh(T,e.getDropOperationForPoint(F,q4(T),a.x-q.x,a.y-q.y));a.dropEffect=z4[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})},wQ)}},f=E=>{if(E.preventDefault(),E.stopPropagation(),a.dragOverElements.add(E.target),a.dragOverElements.size>1)return;let T=Dw(E),P=q4(T),F=P[0];if(typeof e.getDropOperation=="function"){let q=new $h(E.dataTransfer);F=Eh(T,e.getDropOperation(q,P))}if(typeof e.getDropOperationForPoint=="function"){let q=new $h(E.dataTransfer),te=E.currentTarget.getBoundingClientRect();F=Eh(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=z4[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=GF[a.dropEffect],F=mQ(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={...XF};a.dragOverElements.clear(),s(E),clearTimeout(a.dropActivateTimer),T.draggingCollectionRef==null||bQ(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 xQ({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}=CQ();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 Dw(e){let t=HF[e.dataTransfer.effectAllowed];vw&&(t&=vw);let n=ri.none;return oo()?(e.altKey&&(n|=ri.copy),e.ctrlKey&&!vb()&&(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 q4(e){let t=[];return e&ri.move&&t.push("move"),e&ri.copy&&t.push("copy"),e&ri.link&&t.push("link"),t}function Eh(e,t){let n=ri[t];return e&n?t:"cancel"}function Kl(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function O3(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 zd(e,o,t,n,r,i)}function fu(e,t,n,r,i){let a=e;return t.years?a=$Z(e):t.months?a=hf(e):t.weeks&&(a=Ld(e,n)),zd(e,a,t,n,r,i)}function L3(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 zd(e,o,t,n,r,i)}function zd(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let o=_b(t,fu(qr(i),n,r));o&&(t=o)}if(a&&e.compare(a)<=0){let o=Pb(t,L3(qr(a),n,r));o&&(t=o)}return t}function fs(e,t,n){if(t){let r=_b(e,qr(t));r&&(e=r)}if(n){let r=Pb(e,qr(n));r&&(e=r)}return e}function kk(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 Mk(e){let t=O.useMemo(()=>new Gi(e.locale),[e.locale]),n=O.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=O.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=O.useMemo(()=>$?Fn(qr($),g):null,[$,g]),w=O.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=O.useMemo(()=>e.focusedValue?fs(Fn(qr(e.focusedValue),g),o,s):void 0,[e.focusedValue,g,o,s]),E=O.useMemo(()=>fs(e.defaultFocusedValue?Fn(qr(e.defaultFocusedValue),g):A||Fn(Em(w),g),o,s),[e.defaultFocusedValue,A,w,g,o,s]),[T,P]=Ai(C,E,e.onFocusChange),[F,q]=O.useState(()=>{switch(l){case"start":return fu(T,a,r,o,s);case"end":return L3(T,a,r,o,s);case"center":default:return O3(T,a,r,o,s)}}),[te,se]=O.useState(e.autoFocus||!1),ae=O.useMemo(()=>{let oe={...a};return oe.days?oe.days--:oe.days=-1,F.add(oe)},[F,a]),[I,Ee]=O.useState(g);if(!$m(g,I)){let oe=Fn(T,g);q(O3(oe,a,r,o,s)),P(oe),Ee(g)}Kl(T,o,s)?P(fs(T,o,s)):T.compare(F)<0?q(L3(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=kk(le,F,f),!le)return;le=Fn(le,($==null?void 0:$.calendar)||new Ur),$&&"hour"in $?x($.set(le)):x(le)}}let G=O.useMemo(()=>A?f&&f(A)?!0:Kl(A,o,s):!1,[A,f,o,s]),V=e.isInvalid||e.validationState==="invalid"||G,R=V?"invalid":null,K=O.useMemo(()=>h==="visible"?a:U4(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(zd(T,oe,K,r,o,s),K,r))},focusPreviousPage(){let oe=F.subtract(K);P(fs(T.subtract(K),o,s)),q(fu(zd(T,oe,K,r,o,s),K,r))},focusSectionStart(){a.days?be(F):a.weeks?be(Ld(T,r)):(a.months||a.years)&&be(hf(T))},focusSectionEnd(){a.days?be(ae):a.weeks?be(wZ(T,r)):(a.months||a.years)&&be(y3(T))},focusNextSection(oe){if(!oe&&!a.days){be(T.add(U4(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(U4(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 Kl(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=Ld(Se,r,m);let Be=Tb(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 U4(e){let t={...e};for(let n in e)t[n]=1;return t}function SQ(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]=O.useState(null),$="center";if(h&&h.start&&h.end){let K=O3(qr(h.start),o,a,s,l).add(o).subtract({days:1});h.end.compare(K)>0&&($="start")}let x=O.useRef(null),[A,w]=O.useState(null),C=O.useMemo(()=>_b(s,A==null?void 0:A.start),[s,A]),E=O.useMemo(()=>Pb(l,A==null?void 0:A.end),[l,A]),T=Mk({...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=Ew(R,T,-1),fe=Ew(R,T,1);x.current={start:K,end:fe},w(x.current)}else x.current=null,w(null)},[F,q]=O.useState(T.visibleRange);(!v3(T.visibleRange.start,F.start)||!v3(T.visibleRange.end,F.end))&&(P(g),q(T.visibleRange));let te=R=>{R?(b(R),P(R)):(b(null),P(null))},se=g?W4(g,T.focusedDate):h&&W4(h.start,h.end),ae=R=>{if(e.isReadOnly)return;const K=fs(R,C,E),fe=kk(K,T.visibleRange.start,e.isDateUnavailable);if(fe)if(!g)te(fe);else{let M=W4(g,fe);M&&m({start:$w(M.start,h==null?void 0:h.start),end:$w(M.end,h==null?void 0:h.end)}),te(null)}},[I,Ee]=O.useState(!1),{isDateUnavailable:be}=e,z=O.useMemo(()=>!h||g?!1:be&&(be(h.start)||be(h.end))?!0:Kl(h.start,s,l)||Kl(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)||Kl(R,(K=x.current)===null||K===void 0?void 0:K.start,(fe=x.current)===null||fe===void 0?void 0:fe.end)},isDragging:I,setDragging:Ee}}function W4(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:qr(e),end:qr(t)})}function $w(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new Ur),t&&"hour"in t?t.set(e):e}function Ew(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 V3{*[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 TQ(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function PQ(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=O.useRef(!1),[,s]=O.useState(!1),l=O.useRef(null),f=O.useRef(null),[,h]=O.useState(null),m=O.useMemo(()=>Cw(e.selectedKeys),[e.selectedKeys]),g=O.useMemo(()=>Cw(e.defaultSelectedKeys,new ga),[e.defaultSelectedKeys]),[b,$]=Ai(m,g,e.onSelectionChange),x=O.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,w]=O.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&w("replace");let C=O.useRef(i);return O.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||!TQ(E,b))&&$(E)},disabledKeys:x,disabledBehavior:a}}function Cw(e,t){return e?e==="all"?"all":new ga(e):t}class Ub{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&&K4(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&&K4(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?K4(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(_m(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 Ub(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 _Q(e){let{filter:t,layoutDelegate:n}=e,r=PQ(e),i=O.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=O.useCallback(f=>t?new V3(t(f)):new V3(f),[t]),o=O.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=UJ(e,a,o),l=O.useMemo(()=>new Ub(s,r,{layoutDelegate:n}),[s,r,n]);return BQ(s,l),{collection:s,disabledKeys:i,selectionManager:l}}function BQ(e,t){const n=O.useRef(null);O.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 FQ(e){var t;let[n,r]=Ai(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=O.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:s}=_Q({...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 Wb(e){let[t,n]=Ai(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=O.useCallback(()=>{n(!0)},[n]),i=O.useCallback(()=>{n(!1)},[n]),a=O.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function kQ(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[s,l]=O.useState(!1),[f,h]=O.useState(!1),[m,g]=O.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}=FQ({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),[P,F]=Ai(e.inputValue,ww(e.defaultInputValue,w,x)||"",e.onInputChange),[q]=O.useState(w),[te]=O.useState(P),se=x,ae=O.useMemo(()=>e.items!=null||!n?x:MQ(x,P,n),[x,P,n,e.items]),[I,Ee]=O.useState(ae),be=O.useRef("focus"),G=Wb({...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 Je=Fe==="manual"||Fe==="focus"&&r==="focus";(i||ae.size>0||Je&&se.size>0||e.items)&&(Je&&!G.isOpen&&e.items===void 0&&l(!0),be.current=Fe,g(Ae),G.open())},R=(Ae=null,Fe)=>{let Je=Fe==="manual"||Fe==="focus"&&r==="focus";!(i||ae.size>0||Je&&se.size>0||e.items)&&!G.isOpen||(Je&&!G.isOpen&&e.items===void 0&&l(!0),G.isOpen||(be.current=Fe),fe(Ae))},K=O.useCallback(()=>{Ee(s?se:ae)},[s,se,ae]),fe=O.useCallback((Ae=null)=>{G.isOpen&&K(),g(Ae),G.toggle()},[G,K]),M=O.useCallback(()=>{G.isOpen&&(K(),G.close())},[G,K]),[oe,le]=O.useState(P),Se=()=>{var Ae,Fe;let Je=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";le(Je),F(Je)};var _e,Be;let Ge=O.useRef((Be=(_e=e.selectedKey)!==null&&_e!==void 0?_e:e.defaultSelectedKey)!==null&&Be!==void 0?Be:null);var Xe;let Ne=O.useRef(w!=null&&(Xe=(t=x.getItem(w))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");O.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 Je=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!==Je&&(le(Je),F(Je)),Ge.current=w,Ne.current=Je});let qe=gf({...e,value:O.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 Je;let et=w!=null&&(Je=(Fe=x.getItem(w))===null||Fe===void 0?void 0:Fe.textValue)!==null&&Je!==void 0?Je:"";le(et),M()}else Se(),M()};const Ye=()=>{if(a){var Ae,Fe;const Je=w!=null&&(Fe=(Ae=x.getItem(w))===null||Ae===void 0?void 0:Ae.textValue)!==null&&Fe!==void 0?Fe:"";P===Je?Te():je()}else Te()};let ht=()=>{G.isOpen&&A.focusedKey!=null?w===A.focusedKey?Te():C(A.focusedKey):Ye()},Ht=O.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=O.useMemo(()=>G.isOpen?s?se:ae:I,[G.isOpen,se,ae,s,I]);var Wr;let Qt=(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:Qt,setSelectedKey:C,disabledKeys:T,isFocused:f,setFocused:xt,selectedItem:E,collection:_t,inputValue:P,defaultInputValue:(xe=ww(e.defaultInputValue,Qt,x))!==null&&xe!==void 0?xe:te,setInputValue:F,commit:ht,revert:ke}}function MQ(e,t,n){return new V3(Rk(e,e,t,n))}function Rk(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=Rk(e,_m(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 ww(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 Ik={};Ik={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var Ok={};Ok={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var Lk={};Lk={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 Vk={};Vk={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 Nk={};Nk={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 Kk={};Kk={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 zk={};zk={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 Uk={};Uk={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 Wk={};Wk={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 Hk={};Hk={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var Gk={};Gk={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 Yk={};Yk={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 Zk={};Zk={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 Xk={};Xk={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var Jk={};Jk={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var Qk={};Qk={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 e9={};e9={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 t9={};t9={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 n9={};n9={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 r9={};r9={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 i9={};i9={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 a9={};a9={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 o9={};o9={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 s9={};s9={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var u9={};u9={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 l9={};l9={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 c9={};c9={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 d9={};d9={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 f9={};f9={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 h9={};h9={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var p9={};p9={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var m9={};m9={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var g9={};g9={"ar-AE":Ik,"bg-BG":Ok,"cs-CZ":Lk,"da-DK":Vk,"de-DE":Nk,"el-GR":jk,"en-US":Kk,"es-ES":zk,"et-EE":qk,"fi-FI":Uk,"fr-FR":Wk,"he-IL":Hk,"hr-HR":Gk,"hu-HU":Yk,"it-IT":Zk,"ja-JP":Xk,"ko-KR":Jk,"lt-LT":Qk,"lv-LV":e9,"nb-NO":t9,"nl-NL":n9,"pl-PL":r9,"pt-BR":i9,"pt-PT":a9,"ro-RO":o9,"ru-RU":s9,"sk-SK":u9,"sl-SI":l9,"sr-SP":c9,"sv-SE":d9,"tr-TR":f9,"uk-UA":h9,"zh-CN":p9,"zh-TW":m9};function RQ(e){return e&&e.__esModule?e.default:e}const v9=new Ps(RQ(g9));function y9(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return e}function Sp(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=y9(),m=Ps.getGlobalDictionaryForPackage("@react-stately/datepicker")||v9,g=new MP(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 IQ(e,t,n,r,i){var a;let o=Sp((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var s;let l=Sp((s=e==null?void 0:e.end)!==null&&s!==void 0?s:null,t,n,r,i),f=Cp(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")||v9;f=Cp(f,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",y9())],validationDetails:{...Am,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const OQ={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},LQ={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function jo(e,t){e={...t.shouldForceLeadingZeros?LQ:OQ,...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 Cl(e){return e&&"hour"in e?e:new pf}function b9(e,t){if(e===null)return null;if(e)return Fn(e,t)}function id(e,t,n,r){if(e)return b9(e,n);let i=Fn(LP(r??ff()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?qr(i):r?i:Ea(i)}function Hb(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]=O.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 VQ(e){let t=Wb(e),[n,r]=Ai(e.value,e.defaultValue||null,e.onChange),[i]=O.useState(n),a=n||e.placeholderValue||null,[o,s]=Hb(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]=O.useState(null),[$,x]=O.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=O.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=O.useMemo(()=>Sp(n,C,E,T,w),[n,C,E,T,w]),F=gf({...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,$||Cl(e.defaultValue||e.placeholderValue)):b(be):(r(be),F.commitValidation()),z&&t.setOpen(!1)},I=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:I,granularity:o,hasTime:f,...t,setOpen(be){!be&&!n&&g&&f&&se(g,$||Cl(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 NQ=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 jQ(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?NQ.getStringForLocale(e,n):"––"}const Kh={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Aw={year:5,month:2,day:7,hour:2,minute:15,second:15},x9={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function D9(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]=Hb(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=O.useMemo(()=>new Gi(t),[t]),x=O.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]=O.useState(w),T=O.useMemo(()=>{var ke;return(ke=b9(w,x))!==null&&ke!==void 0?ke:null},[w,x]),[P,F]=O.useState(()=>id(e.placeholderValue,m,x,g)),q=T||P,te=x.identifier==="gregory"&&q.era==="BC",se=O.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=O.useMemo(()=>jo({},se),[se]),I=O.useMemo(()=>new Gi(t,ae),[t,ae]),Ee=O.useMemo(()=>I.resolvedOptions(),[I]),be=O.useMemo(()=>I.formatToParts(new Date).filter(ke=>Kh[ke.type]).reduce((ke,je)=>(ke[x9[je.type]||je.type]=!0,ke),{}),[I]),[z,G]=O.useState(()=>e.value||e.defaultValue?{...be}:{}),V=O.useRef(null),R=O.useRef(x);O.useEffect(()=>{$m(x,R.current)||(R.current=x,F(ke=>Object.keys(z).length>0?Fn(ke,x):id(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(id(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(id(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=Fn(ke,(h==null?void 0:h.calendar)||new Ur),C(ke)):F(ke),V.current=null},M=O.useMemo(()=>K.toDate(b),[K,b]),oe=O.useMemo(()=>KQ(M,z,I,Ee,K,x,t,m),[M,z,I,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(zQ(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=O.useMemo(()=>Sp(w,s,l,f,se),[w,s,l,f,se]),Be=gf({...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:I,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,Aw[ke]||1)},decrementPage(ke){Se(ke,-(Aw[ke]||1))},setSegment(ke,je){le(ke),fe(qQ(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=id(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 KQ(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=x9[m.type]||m.type,b=Kh[g];g==="era"&&a.getEras().length===1&&(b=!1);let $=Kh[g]&&!t[g],x=Kh[g]?jQ(g,m.value,o):null,A={type:g,text:$?x:m.value,...Ch(i,g,r),isPlaceholder:$,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"⁦",...Ch(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(A),g===s&&h.push({type:"literal",text:"⁩",...Ch(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===s?(h.push(A),h.push({type:"literal",text:"⁩",...Ch(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(A)}return h}function Ch(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:EZ(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:CZ(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 zQ(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 qQ(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 UQ(e){var t,n;let r=Wb(e),[i,a]=Ai(e.value,e.defaultValue||null,e.onChange),[o]=O.useState(i),[s,l]=O.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]=Hb(m,e.granularity),$=g==="hour"||g==="minute"||g==="second";var x;let A=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[w,C]=O.useState(null),[E,T]=O.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)||Cl(e.placeholderValue),end:(E==null?void 0:E.end)||Cl(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=O.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:I,isDateUnavailable:Ee}=e,be=O.useMemo(()=>IQ(f,ae,I,Ee,se),[f,ae,I,Ee,se]),z=gf({...e,value:i,name:O.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)||Cl(e.placeholderValue),end:(E==null?void 0:E.end)||Cl(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 WQ(e){let{placeholderValue:t=new pf,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=O.useMemo(()=>{let T=f&&"timeZone"in f?f.timeZone:void 0;return(T||m)&&t?UP(vl(t),T||m):vl(t)},[t,f,m]),b=O.useMemo(()=>vl(n,h),[n,h]),$=O.useMemo(()=>vl(r,h),[r,h]),x=O.useMemo(()=>s&&"day"in s?P2(s):s,[s]),A=O.useMemo(()=>s==null?null:vl(s),[s]),w=O.useMemo(()=>i==null?null:vl(i),[i]);return{...D9({...e,value:A,defaultValue:w,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&P2(T))},granularity:a||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Ur,validate:O.useCallback(()=>o==null?void 0:o(s),[o,s])}),timeValue:x}}function vl(e,t=Em(ff())){return e?"day"in e?e:Ea(t,e):null}var H4,Sw;function HQ(){if(Sw)return H4;Sw=1;var e=ab();function t(n,r){return e(n,r)}return H4=t,H4}var GQ=HQ();const YQ=hr(GQ);var zh={exports:{}},ZQ=zh.exports,Tw;function XQ(){return Tw||(Tw=1,function(e,t){(function(n,r){e.exports=r()})(ZQ,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)},I=T;I.l=se,I.i=te,I.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(I.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 I},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 I.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=!!I.u(R)||R,M=I.p(V),oe=function(qe,ke){var je=I.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 I.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=I.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[I.p(V)]()},G.add=function(V,R){var K,fe=this;V=Number(V);var M=I.p(R),oe=function(_e){var Be=ae(fe);return I.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 I.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=I.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 I.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 I.s(R.$y,4,"0");case"M":return Se+1;case"MM":return I.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 I.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 I.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 I.s(le,2,"0");case"s":return String(R.$s);case"ss":return I.s(R.$s,2,"0");case"SSS":return I.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=I.p(R),le=ae(V),Se=(le.utcOffset()-this.utcOffset())*r,_e=this-le,Be=function(){return I.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:I.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 I.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})}(zh)),zh.exports}var $9=XQ();const JQ=hr($9);var G4,Pw;function QQ(){if(Pw)return G4;Pw=1;var e=sc(),t=uc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return G4=r,G4}var eee=QQ();const tee=hr(eee);var Iu=[["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"]],nee="react-international-phone-",E9=(...e)=>e.filter(t=>!!t).join(" ").trim(),ree=(...e)=>E9(...e).split(" ").map(t=>`${nee}${t}`).join(" "),Pr=({addPrefix:e,rawClassNames:t})=>E9(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},Dl=e=>e?/^\d+$/.test(e):!1,Bm=e=>e.replace(/\D/g,""),aee=(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},oee=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),see=(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=Bm(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}`)},uee=({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(Dl(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(Dl(n[h]))return h;return t.length}let s=0;for(let h=0;h<o;h+=1)Dl(t[h])&&(s+=1);let l=0,f=0;for(let h=0;h<n.length&&(l+=1,Dl(n[h])&&(f+=1),!(f>=s+1));h+=1);if(a!=="backward")for(;!Dl(n[l])&&l<n.length;)l+=1;return l},qh=({phone:e,prefix:t})=>e?`${t}${Bm(e)}`:"";function N3({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?vee({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,x=see(g,{prefix:a,mask:mee({phone:g,country:$,defaultMask:f,disableFormatting:m}),maskChar:C9,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:s,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:qh({phone:l?`${A.dialCode}${x}`:x,prefix:a}),inputValue:x,country:A}}var lee=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},cee=(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,$=lee(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:qh({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!Dl(w)&&C!==i)return{inputValue:r,phone:qh({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:qh({phone:te,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:T,inputValue:P,country:F}=N3({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=uee({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}},dee=(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},fee=()=>{let e=O.useRef(),t=O.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}}},hee={size:20,overrideLastItemDebounceMS:-1};function pee(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...hee,...t},[a,o]=O.useState(e),[s,l]=O.useState([a]),[f,h]=O.useState(0),m=fee();return[a,(g,b)=>{if(typeof g=="object"&&typeof a=="object"&&dee(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 C9=".",Li={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Iu},w9=({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=O.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]=pee(()=>{let z=wl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let G=z||wl({value:"us",field:"iso2",countries:n}),{phone:V,inputValue:R,country:K}=N3({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=O.useCallback(z=>wl({value:z,field:"iso2",countries:n}),[n]),se=O.useMemo(()=>te(T),[T,te]);O.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(oee()){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}=cee(z,{country:se,phoneBeforeInput:E,insertDialCodeOnEmpty:!1,...$});return P({inputValue:V,phone:G,country:R.iso2}),w(K),t},I=(z,G={focusOnInput:!1})=>{let V=wl({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]=O.useState(!1);return O.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}=N3({value:t,country:se,insertDialCodeOnEmpty:!l,...$});P({phone:z,inputValue:G,country:V.iso2})},[t]),{phone:C,inputValue:E,country:se,setCountry:I,handlePhoneValueChange:ae,inputRef:A}},mee=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=s=>r?s.replace(new RegExp(`[^${C9}]`,"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(Bm(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`,wl=({field:e,value:t,countries:n=Iu})=>{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)},vee=({phone:e,countries:t=Iu,currentCountryIso2:n})=>{var s;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Bm(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=wl({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},yee=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},bee="abcdefghijklmnopqrstuvwxyz",xee="1f1e6",_w=bee.split("").reduce((e,t,n)=>({...e,[t]:yee(xee,n)}),{}),Dee=e=>[_w[e[0]],_w[e[1]]].join("-"),Gb=({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=Dee(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})},$ee=1e3,Eee=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Iu,preferredCountries:i=[],flags:a,onSelect:o,onClose:s,...l})=>{let f=O.useRef(null),h=O.useRef(),m=O.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=O.useRef({updatedAt:void 0,value:""}),b=F=>{let q=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>$ee;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)},$=O.useCallback(F=>m.findIndex(q=>va(q).iso2===F),[m]),[x,A]=O.useState($(n)),w=()=>{h.current!==n&&A($(n))},C=O.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=O.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&&(aee(f.current,q),h.current=F)},[x,m]);return O.useEffect(()=>{P()},[x,P]),O.useEffect(()=>{f.current&&(e?f.current.focus():w())},[e]),O.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,I=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",I&&"country-selector-dropdown__list-item--preferred",se&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,I&&l.listItemPreferredClassName,se&&l.listItemSelectedClassName,ae&&l.listItemFocusedClassName]}),onClick:()=>C(te),style:l.listItemStyle,title:te.name},de.default.createElement(Gb,{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)}))},Cee=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Iu,preferredCountries:a=[],flags:o,renderButtonWrapper:s,...l})=>{let[f,h]=O.useState(!1),m=O.useMemo(()=>{if(e)return wl({value:e,field:"iso2",countries:i})},[i,e]),g=O.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(Gb,{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(Eee,{show:f,countries:i,preferredCountries:a,flags:o,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},wee=({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}`);O.forwardRef(({value:e,onChange:t,countries:n=Iu,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:I,setCountry:Ee,handlePhoneValueChange:be}=w9({value:e,countries:n,...F,onChange:G=>{t==null||t(G.phone,{country:G.country,inputValue:G.inputValue})}}),z=F.disableDialCodeAndPrefix&&a&&(I==null?void 0:I.dialCode);return O.useImperativeHandle(q,()=>ae.current?Object.assign(ae.current,{setCountry:Ee,state:{phone:te,inputValue:se,country:I}}):null,[ae,Ee,te,se,I]),de.default.createElement("div",{ref:q,className:Pr({addPrefix:["input-container"],rawClassNames:[f]}),style:l},de.default.createElement(Cee,{onSelect:G=>Ee(G.iso2,{focusOnInput:!o}),flags:s,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),z&&de.default.createElement(wee,{dialCode:I.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 Y4,Bw;function Aee(){if(Bw)return Y4;Bw=1;function e(t){return t===void 0}return Y4=e,Y4}var See=Aee();const Tee=hr(See);var Z4={exports:{}},Fw;function Pee(){return Fw||(Fw=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
75
+ * Prism: Lightweight, robust, elegant syntax highlighting
76
+ *
77
+ * @license MIT <https://opensource.org/licenses/MIT>
78
+ * @author Lea Verou <https://lea.verou.me>
79
+ * @namespace
80
+ * @public
81
+ */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(I,Ee){Ee===ae&&I!=C&&(this[I]=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 I=new Worker(s.filename);I.onmessage=function(Ee){ae(Ee.data)},I.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 I=se[ae],Ee=I.inside,be=!!I.lookbehind,z=!!I.greedy,G=I.alias;if(z&&!I.pattern.global){var V=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,V+"g")}for(var R=I.pattern||I,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)}}()}(Z4)),Z4.exports}var _ee=Pee();(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 I=b.id;if(T&&Prism.util.isActive(b,t)&&I){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=I+"."+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 A9=O.createContext({});function yf(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yb=typeof window<"u",S9=Yb?O.useLayoutEffect:O.useEffect,Zb=O.createContext(null);function Xb(e,t){e.indexOf(t)===-1&&e.push(t)}function Jb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bee([...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 j3(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let hc=()=>{},Ca=()=>{};process.env.NODE_ENV!=="production"&&(hc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(j3(t,n))},Ca=(e,t,n)=>{if(!e)throw new Error(j3(t,n))});const Uo={},T9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function P9(e){return typeof e=="object"&&e!==null}const _9=e=>/^0[^.\s]+$/u.test(e);function Qb(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ji=e=>e,Fee=(e,t)=>n=>t(e(n)),bf=(...e)=>e.reduce(Fee),qd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let ex=class{constructor(){this.subscriptions=[]}add(t){return Xb(this.subscriptions,t),()=>Jb(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 B9(e,t){return t?e*(1e3/t):0}const kw=new Set;function tx(e,t,n){e||kw.has(t)||(console.warn(j3(t,n)),kw.add(t))}const F9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kee=1e-7,Mee=12;function Ree(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=F9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>kee&&++s<Mee);return o}function xf(e,t,n,r){if(e===t&&n===r)return Ji;const i=a=>Ree(a,0,1,e,n);return a=>a===0||a===1?a:F9(i(a),t,r)}const k9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,M9=e=>t=>1-e(1-t),R9=xf(.33,1.53,.69,.99),nx=M9(R9),I9=k9(nx),O9=e=>(e*=2)<1?.5*nx(e):.5*(2-Math.pow(2,-10*(e-1))),rx=e=>1-Math.sin(Math.acos(e)),L9=M9(rx),V9=k9(rx),Iee=xf(.42,0,1,1),Oee=xf(0,0,.58,1),N9=xf(.42,0,.58,1),Lee=e=>Array.isArray(e)&&typeof e[0]!="number",j9=e=>Array.isArray(e)&&typeof e[0]=="number",Mw={linear:Ji,easeIn:Iee,easeInOut:N9,easeOut:Oee,circIn:rx,circInOut:V9,circOut:L9,backIn:nx,backInOut:I9,backOut:R9,anticipate:O9},Vee=e=>typeof e=="string",Rw=e=>{if(j9(e)){Ca(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return xf(t,n,r,i)}else if(Vee(e))return Ca(Mw[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Mw[e];return e},wh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nee(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 jee=40;function K9(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=wh.reduce((E,T)=>(E[T]=Nee(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,jee),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:wh.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<wh.length;T++)o[wh[T]].cancel(E)},state:i,steps:o}}const{schedule:En,cancel:Wo,state:br,steps:X4}=K9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ji,!0);let Uh;function Kee(){Uh=void 0}const oi={now:()=>(Uh===void 0&&oi.set(br.isProcessing||Uo.useManualTiming?br.timestamp:performance.now()),Uh),set:e=>{Uh=e,queueMicrotask(Kee)}},z9=e=>t=>typeof t=="string"&&t.startsWith(e),ix=z9("--"),zee=z9("var(--"),ax=e=>zee(e)?qee.test(e.split("/*")[0].trim()):!1,qee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ud={...pc,transform:e=>qo(0,1,e)},Ah={...pc,default:1},Sd=e=>Math.round(e*1e5)/1e5,ox=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Uee(e){return e==null}const Wee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sx=(e,t)=>n=>!!(typeof n=="string"&&Wee.test(n)&&n.startsWith(e)||t&&!Uee(n)&&Object.prototype.hasOwnProperty.call(n,t)),q9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(ox);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Hee=e=>qo(0,255,e),J4={...pc,transform:e=>Math.round(Hee(e))},hu={test:sx("rgb","red"),parse:q9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+J4.transform(e)+", "+J4.transform(t)+", "+J4.transform(n)+", "+Sd(Ud.transform(r))+")"};function Gee(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 K3={test:sx("#"),parse:Gee,transform:hu.transform},Df=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hs=Df("deg"),no=Df("%"),At=Df("px"),Yee=Df("vh"),Zee=Df("vw"),Iw={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},Al={test:sx("hsl","hue"),parse:q9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Sd(t))+", "+no.transform(Sd(n))+", "+Sd(Ud.transform(r))+")"},Qn={test:e=>hu.test(e)||K3.test(e)||Al.test(e),parse:e=>hu.test(e)?hu.parse(e):Al.test(e)?Al.parse(e):K3.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?hu.transform(e):Al.transform(e),getAnimatableNone:e=>{const t=Qn.parse(e);return t.alpha=0,Qn.transform(t)}},Xee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ox))==null?void 0:t.length)||0)+(((n=e.match(Xee))==null?void 0:n.length)||0)>0}const U9="number",W9="color",Qee="var",ete="var(",Ow="${}",tte=/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 Wd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(tte,l=>(Qn.test(l)?(r.color.push(a),i.push(W9),n.push(Qn.parse(l))):l.startsWith(ete)?(r.var.push(a),i.push(Qee),n.push(l)):(r.number.push(a),i.push(U9),n.push(parseFloat(l))),++a,Ow)).split(Ow);return{values:n,split:s,indexes:r,types:i}}function H9(e){return Wd(e).values}function G9(e){const{split:t,types:n}=Wd(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===U9?a+=Sd(i[o]):s===W9?a+=Qn.transform(i[o]):a+=i[o]}return a}}const nte=e=>typeof e=="number"?0:Qn.test(e)?Qn.getAnimatableNone(e):e;function rte(e){const t=H9(e);return G9(e)(t.map(nte))}const ws={test:Jee,parse:H9,createTransformer:G9,getAnimatableNone:rte};function Q4(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=Q4(l,s,e+1/3),a=Q4(l,s,e),o=Q4(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Tp(e,t){return n=>n>0?t:e}const Tn=(e,t,n)=>e+(t-e)*n,ey=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ate=[K3,hu,Al],ote=e=>ate.find(t=>t.test(e));function Lw(e){const t=ote(e);if(hc(!!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===Al&&(n=ite(n)),n}const Vw=(e,t)=>{const n=Lw(e),r=Lw(t);if(!n||!r)return Tp(e,t);const i={...n};return a=>(i.red=ey(n.red,r.red,a),i.green=ey(n.green,r.green,a),i.blue=ey(n.blue,r.blue,a),i.alpha=Tn(n.alpha,r.alpha,a),hu.transform(i))},z3=new Set(["none","hidden"]);function ste(e,t){return z3.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ute(e,t){return n=>Tn(e,t,n)}function ux(e){return typeof e=="number"?ute:typeof e=="string"?ax(e)?Tp:Qn.test(e)?Vw:dte:Array.isArray(e)?Y9:typeof e=="object"?Qn.test(e)?Vw:lte:Tp}function Y9(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>ux(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function lte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ux(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function cte(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 dte=(e,t)=>{const n=ws.createTransformer(t),r=Wd(e),i=Wd(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?z3.has(e)&&!i.values.length||z3.has(t)&&!r.values.length?ste(e,t):bf(Y9(cte(r,i),i.values),n):(hc(!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"),Tp(e,t))};function Z9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Tn(e,t,n):ux(e)(e,t)}const fte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>En.update(t,n),stop:()=>Wo(t),now:()=>br.isProcessing?br.timestamp:oi.now()}},X9=(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)})`},Pp=2e4;function lx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Pp;)t+=n,r=e.next(t);return t>=Pp?1/0:t}function hte(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(lx(r),Pp);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:to(i)}}const pte=5;function J9(e,t,n){const r=Math.max(t-pte,0);return B9(n-e(r),t-r)}const _n={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},ty=.001;function mte({duration:e=_n.duration,bounce:t=_n.bounce,velocity:n=_n.velocity,mass:r=_n.mass}){let i,a;hc(e<=Da(_n.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=qo(_n.minDamping,_n.maxDamping,o),e=qo(_n.minDuration,_n.maxDuration,to(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=q3(f,o),$=Math.exp(-m);return ty-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=q3(Math.pow(f,2),o);return(-i(f)+ty>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-ty+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=vte(i,a,s);if(e=Da(e),isNaN(l))return{stiffness:_n.stiffness,damping:_n.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 vte(e,t,n){let r=n;for(let i=1;i<gte;i++)r=r-e(r)/t(r);return r}function q3(e,t){return e*Math.sqrt(1-t*t)}const yte=["duration","bounce"],bte=["stiffness","damping","mass"];function Nw(e,t){return t.some(n=>e[n]!==void 0)}function xte(e){let t={velocity:_n.velocity,stiffness:_n.stiffness,damping:_n.damping,mass:_n.mass,isResolvedFromDuration:!1,...e};if(!Nw(e,bte)&&Nw(e,yte))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:_n.mass,stiffness:i,damping:a}}else{const n=mte(e);t={...t,...n,mass:_n.mass},t.isResolvedFromDuration=!0}return t}function _p(e=_n.visualDuration,t=_n.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}=xte({...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?_n.restSpeed.granular:_n.restSpeed.default),i||(i=C?_n.restDelta.granular:_n.restDelta.default);let E;if(x<1){const P=q3(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($):J9(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(lx(T),Pp),F=X9(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}_p.applyToOptions=e=>{const t=hte(e,100,_p);return e.ease=t.ease,e.duration=Da(t.duration),e.type="keyframes",e};function U3({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=_p({keyframes:[g.value,$(g.value)],velocity:J9(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 Dte(e,t,n){const r=[],i=n||Uo.mix||Z9,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]||Ji:t;s=bf(l,s)}r.push(s)}return r}function Q9(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=Dte(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=qd(e[m],e[m+1],h);return s[m](g)};return n?h=>f(qo(e[0],e[a-1],h)):f}function $te(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qd(0,t,r);e.push(Tn(n,1,i))}}function Ete(e){const t=[0];return $te(t,e.length-1),t}function Cte(e,t){return e.map(n=>n*t)}function wte(e,t){return e.map(()=>t||N9).splice(0,e.length-1)}function Sl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Lee(r)?r.map(Rw):Rw(r),a={done:!1,value:t[0]},o=Cte(n&&n.length===t.length?n:Ete(t),e),s=Q9(o,t,{ease:Array.isArray(i)?i:wte(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Ate=e=>e!==null;function cx(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Ate),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const Ste={decay:U3,inertia:U3,tween:Sl,keyframes:Sl,spring:_p};function e8(e){typeof e.type=="string"&&(e.type=Ste[e.type])}let dx=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 Tte=e=>e/100;let fx=class extends dx{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;e8(t);const{type:n=Sl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||Sl;process.env.NODE_ENV!=="production"&&l!==Sl&&Ca(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`,"spring-two-frames"),l!==Sl&&typeof s[0]!="number"&&(this.mixKeyframes=bf(Tte,Z9(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=lx(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&&$!==U3&&(P.value=cx(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=fte,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 Pte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pu=e=>e*180/Math.PI,W3=e=>{const t=pu(Math.atan2(e[1],e[0]));return H3(t)},_te={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:W3,rotateZ:W3,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},H3=e=>(e=e%360,e<0&&(e+=360),e),jw=W3,Kw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Bte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kw,scaleY:zw,scale:e=>(Kw(e)+zw(e))/2,rotateX:e=>H3(pu(Math.atan2(e[6],e[5]))),rotateY:e=>H3(pu(Math.atan2(-e[2],e[0]))),rotateZ:jw,rotate:jw,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 G3(e){return e.includes("scale")?1:0}function Y3(e,t){if(!e||e==="none")return G3(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Bte,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_te,i=s}if(!i)return G3(t);const a=r[t],o=i[1].split(",").map(kte);return typeof a=="function"?a(o):o[a]}const Fte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Y3(n,t)};function kte(e){return parseFloat(e.trim())}const mc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gc=new Set(mc),qw=e=>e===pc||e===At,Mte=new Set(["x","y","z"]),Rte=mc.filter(e=>!Mte.has(e));function Ite(e){const t=[];return Rte.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})=>Y3(t,"x"),y:(e,{transform:t})=>Y3(t,"y")};bu.translateX=bu.x;bu.translateY=bu.y;const xu=new Set;let Z3=!1,X3=!1,J3=!1;function t8(){if(X3){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=Ite(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)})}X3=!1,Z3=!1,xu.forEach(e=>e.complete(J3)),xu.clear()}function n8(){xu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(X3=!0)})}function Ote(){J3=!0,n8(),t8(),J3=!1}let hx=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),Z3||(Z3=!0,En.read(n8),En.resolveKeyframes(t8))):(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])}Pte(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 Lte=e=>e.startsWith("--");function Vte(e,t,n){Lte(t)?e.style.setProperty(t,n):e.style[t]=n}const Nte=Qb(()=>window.ScrollTimeline!==void 0),jte={};function Kte(e,t){const n=Qb(e);return()=>jte[t]??n()}const r8=Kte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xd=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xd([0,.65,.55,1]),circOut:xd([.55,0,1,.45]),backIn:xd([.31,.01,.66,-.59]),backOut:xd([.33,1.53,.69,.99])};function i8(e,t){if(e)return typeof e=="function"?r8()?X9(e,t):"ease-out":j9(e)?xd(e):Array.isArray(e)?e.map(n=>i8(n,t)||Uw.easeOut):Uw[e]}function zte(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=i8(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 a8(e){return typeof e=="function"&&"applyToOptions"in e}function qte({type:e,...t}){return a8(e)&&r8()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let Ute=class extends dx{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=qte(t);this.animation=zte(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=cx(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Vte(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&&Nte()?(this.animation.timeline=t,Ji):n(this)}};const o8={anticipate:O9,backInOut:I9,circInOut:V9};function Wte(e){return e in o8}function Hte(e){typeof e.ease=="string"&&Wte(e.ease)&&(e.ease=o8[e.ease])}const Ww=10;let Gte=class extends Ute{constructor(t){Hte(t),e8(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 fx({...o,autoplay:!1}),l=Da(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-Ww).value,s.sample(l).value,Ww),s.stop()}};const Hw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ws.test(e)||e==="0")&&!e.startsWith("url("));function Yte(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 Zte(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=Hw(i,t),s=Hw(a,t);return hc(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:Yte(e)||(n==="spring"||a8(n))&&r}function Q3(e){e.duration=0,e.type}const Xte=new Set(["opacity","clipPath","filter","transform"]),Jte=Qb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qte(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 Jte()&&n&&Xte.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const ene=40;let tne=class extends dx{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)||hx;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(),Zte(t,a,o,s)||((Uo.instantAnimations||!l)&&(h==null||h(cx(t,r,n))),t[0]=t[t.length-1],Q3(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ene?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&Qte(g)?new Gte({...g,element:g.motionValue.owner.current}):new fx(g);b.finished.then(()=>this.notifyFinished()).catch(Ji),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(),Ote()),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 nne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rne(e){const t=nne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ine=4;function s8(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 T9(o)?parseFloat(o):o}return ax(i)?s8(i,t,n+1):i}function px(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const u8=new Set(["width","height","top","left","right","bottom",...mc]),ane={test:e=>e==="auto",parse:e=>e},l8=e=>t=>t.test(e),c8=[pc,At,no,hs,Zee,Yee,ane],Gw=e=>c8.find(l8(e));function one(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||_9(e):!0}const sne=new Set(["brightness","contrast","saturate","opacity"]);function une(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ox)||[];if(!r)return e;const i=n.replace(r,"");let a=sne.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const lne=/\b([a-z-]*)\(.*?\)/gu,e1={...ws,getAnimatableNone:e=>{const t=e.match(lne);return t?t.map(une).join(" "):e}},Yw={...pc,transform:Math.round},cne={rotate:hs,rotateX:hs,rotateY:hs,rotateZ:hs,scale:Ah,scaleX:Ah,scaleY:Ah,scaleZ:Ah,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:Ud,originX:Iw,originY:Iw,originZ:At},mx={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,...cne,zIndex:Yw,fillOpacity:Ud,strokeOpacity:Ud,numOctaves:Yw},dne={...mx,color:Qn,backgroundColor:Qn,outlineColor:Qn,fill:Qn,stroke:Qn,borderColor:Qn,borderTopColor:Qn,borderRightColor:Qn,borderBottomColor:Qn,borderLeftColor:Qn,filter:e1,WebkitFilter:e1},d8=e=>dne[e];function f8(e,t){let n=d8(e);return n!==e1&&(n=ws),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const fne=new Set(["auto","none","0"]);function hne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!fne.has(a)&&Wd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=f8(n,i)}let pne=class extends hx{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(),ax(f))){const h=s8(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!u8.has(r)||t.length!==2)return;const[i,a]=t,o=Gw(i),s=Gw(a);if(o!==s)if(qw(o)&&qw(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||one(t[i]))&&r.push(i);r.length&&hne(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 mne(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 h8=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function gne(e){return P9(e)&&"offsetHeight"in e}const Zw=30,vne=e=>!isNaN(parseFloat(e)),Td={current:void 0};let yne=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=vne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&tx(!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 ex);const r=this.events[t].add(n);return t==="change"?()=>{r(),En.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 Td.current&&Td.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zw);return B9(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 yne(e,t)}const{schedule:gx}=K9(queueMicrotask,!1),ma={x:!1,y:!1};function p8(){return ma.x||ma.y}function bne(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 m8(e,t){const n=mne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Xw(e){return!(e.pointerType==="touch"||p8())}function xne(e,t,n={}){const[r,i,a]=m8(e,n),o=s=>{if(!Xw(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{Xw(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}const g8=(e,t)=>t?e===t?!0:g8(e,t.parentElement):!1,vx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Dne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $ne(e){return Dne.has(e.tagName)||e.tabIndex!==-1}const Wh=new WeakSet;function Jw(e){return t=>{t.key==="Enter"&&e(t)}}function ny(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ene=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jw(()=>{if(Wh.has(n))return;ny(n,"down");const i=Jw(()=>{ny(n,"up")}),a=()=>ny(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 Qw(e){return vx(e)&&!p8()}function Cne(e,t,n={}){const[r,i,a]=m8(e,n),o=s=>{const l=s.currentTarget;if(!Qw(s))return;Wh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Wh.has(l)&&Wh.delete(l),Qw(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||g8(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=>Ene(f,i)),!$ne(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function v8(e){return P9(e)&&"ownerSVGElement"in e}function wne(e){return v8(e)&&e.tagName==="svg"}function Ane(...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=Q9(i,a,o);return t?s(r):s}const xr=e=>!!(e&&e.getVelocity),Sne=[...c8,Qn,ws],Tne=e=>Sne.find(l8(e)),yx=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Pne(e=!0){const t=O.useContext(Zb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=O.useId();O.useEffect(()=>{if(e)return i(a)},[e]);const o=O.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const y8=O.createContext({strict:!1}),eA={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"]},ec={};for(const e in eA)ec[e]={isEnabled:t=>eA[e].some(n=>!!t[n])};function _ne(e){for(const t in e)ec[t]={...ec[t],...e[t]}}const Bne=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 Bp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bne.has(e)}let b8=e=>!Bp(e);function Fne(e){typeof e=="function"&&(b8=t=>t.startsWith("on")?!Bp(t):e(t))}try{Fne(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"||(b8(i)||n===!0&&Bp(i)||!t&&!Bp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Fm=O.createContext({});function km(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hd(e){return typeof e=="string"||Array.isArray(e)}const bx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xx=["initial",...bx];function Mm(e){return km(e.animate)||xx.some(t=>Hd(e[t]))}function x8(e){return!!(Mm(e)||e.variants)}function Mne(e,t){if(Mm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Hd(n)?n:void 0,animate:Hd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rne(e){const{initial:t,animate:n}=Mne(e,O.useContext(Fm));return O.useMemo(()=>({initial:t,animate:n}),[tA(t),tA(n)])}function tA(e){return Array.isArray(e)?e.join(" "):e}const Gd={};function Ine(e){for(const t in e)Gd[t]=e[t],ix(t)&&(Gd[t].isCSSVariable=!0)}function D8(e,{layout:t,layoutId:n}){return gc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gd[e]||e==="opacity")}const One={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Lne=mc.length;function Vne(e,t,n){let r="",i=!0;for(let a=0;a<Lne;a++){const o=mc[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=h8(s,mx[o]);if(!l){i=!1;const h=One[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Dx(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(gc.has(l)){o=!0;continue}else if(ix(l)){i[l]=f;continue}else{const h=h8(f,mx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Vne(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 $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $8(e,t,n){for(const r in t)!xr(t[r])&&!D8(r,n)&&(e[r]=t[r])}function Nne({transformTemplate:e},t){return O.useMemo(()=>{const n=$x();return Dx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jne(e,t){const n=e.style||{},r={};return $8(r,n,e),Object.assign(r,Nne(e,t)),r}function Kne(e,t){const n={},r=jne(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 zne={offset:"stroke-dashoffset",array:"stroke-dasharray"},qne={offset:"strokeDashoffset",array:"strokeDasharray"};function Une(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?zne:qne;e[a.offset]=At.transform(-r);const o=At.transform(t),s=At.transform(n);e[a.array]=`${o} ${s}`}function E8(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(Dx(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&&Une(m,i,a,o,!1)}const C8=()=>({...$x(),attrs:{}}),w8=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Wne(e,t,n,r){const i=O.useMemo(()=>{const a=C8();return E8(a,t,w8(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$8(a,e.style,e),i.style={...a,...i.style}}return i}const Hne=["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 Ex(e){return typeof e!="string"||e.includes("-")?!1:!!(Hne.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gne(e,t,n,{latestValues:r},i,a=!1){const s=(Ex(e)?Wne:Kne)(t,r,i,e),l=kne(t,typeof e=="string",a),f=e!==O.Fragment?{...l,...s,ref:n}:{},{children:h}=t,m=O.useMemo(()=>xr(h)?h.get():h,[h]);return O.createElement(e,{...f,children:m})}function nA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cx(e,t,n,r){if(typeof t=="function"){const[i,a]=nA(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]=nA(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Hh(e){return xr(e)?e.get():e}function Yne({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Zne(n,r,i,e),renderState:t()}}function Zne(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Hh(a[g]);let{initial:o,animate:s}=e;const l=Mm(e),f=x8(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"&&!km(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Cx(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 A8=e=>(t,n)=>{const r=O.useContext(Fm),i=O.useContext(Zb),a=()=>Yne(e,t,r,i);return n?a():yf(a)};function wx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(xr(r[o])||t.style&&xr(t.style[o])||D8(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Xne=A8({scrapeMotionValuesFromProps:wx,createRenderState:$x});function S8(e,t,n){const r=wx(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const a=mc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Jne=A8({scrapeMotionValuesFromProps:S8,createRenderState:C8}),Qne=Symbol.for("motionComponentSymbol");function Tl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ere(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Tl(n)&&(n.current=r))},[t])}const Ax=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tre="framerAppearId",T8="data-"+Ax(tre),P8=O.createContext({});function nre(e,t,n,r,i){var x,A;const{visualElement:a}=O.useContext(Fm),o=O.useContext(y8),s=O.useContext(Zb),l=O.useContext(yx).reducedMotion,f=O.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=O.useContext(P8);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&rre(f.current,n,i,m);const g=O.useRef(!1);O.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[T8],$=O.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return S9(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),$.current&&h.animationState&&h.animationState.animateChanges())}),O.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:_8(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Tl(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function _8(e){if(e)return e.options.allowProjection!==!1?e.projection:_8(e.parent)}function ry(e,{forwardMotionProps:t=!1}={},n,r){n&&_ne(n);const i=Ex(e)?Jne:Xne;function a(s,l){let f;const h={...O.useContext(yx),...s,layoutId:ire(s)},{isStatic:m}=h,g=Rne(s),b=i(s,m);if(!m&&Yb){are(h,n);const $=ore(h);f=$.MeasureLayout,g.visualElement=nre(e,b,h,r,$.ProjectionNode)}return io.jsxs(Fm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,Gne(e,s,ere(b,g.visualElement,l),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=O.forwardRef(a);return o[Qne]=e,o}function ire({layoutId:e}){const t=O.useContext(A9).id;return t&&e!==void 0?t+"-"+e:e}function are(e,t){const n=O.useContext(y8).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?hc(!1,r,"lazy-strict-mode"):Ca(!1,r,"lazy-strict-mode")}}function ore(e){const{drag:t,layout:n}=ec;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 sre(e,t){if(typeof Proxy>"u")return ry;const n=new Map,r=(a,o)=>ry(a,o,e,t),i=(a,o)=>(process.env.NODE_ENV!=="production"&&tx(!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,ry(o,void 0,e,t)),n.get(o))})}function B8({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ure({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lre(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 iy(e){return e===void 0||e===1}function t1({scale:e,scaleX:t,scaleY:n}){return!iy(e)||!iy(t)||!iy(n)}function ou(e){return t1(e)||F8(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function F8(e){return rA(e.x)||rA(e.y)}function rA(e){return e&&e!=="0%"}function Fp(e,t,n){const r=e-n,i=t*r;return n+i}function iA(e,t,n,r,i){return i!==void 0&&(e=Fp(e,i,r)),Fp(e,n,r)+t}function n1(e,t=0,n=1,r,i){e.min=iA(e.min,t,n,r,i),e.max=iA(e.max,t,n,r,i)}function k8(e,{x:t,y:n}){n1(e.x,t.translate,t.scale,t.originPoint),n1(e.y,n.translate,n.scale,n.originPoint)}const aA=.999999999999,oA=1.0000000000001;function cre(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&&_l(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)&&_l(e,a.latestValues))}t.x<oA&&t.x>aA&&(t.x=1),t.y<oA&&t.y>aA&&(t.y=1)}function Pl(e,t){e.min=e.min+t,e.max=e.max+t}function sA(e,t,n,r,i=.5){const a=Tn(e.min,e.max,i);n1(e,t,n,a,r)}function _l(e,t){sA(e.x,t.x,t.scaleX,t.scale,t.originX),sA(e.y,t.y,t.scaleY,t.scale,t.originY)}function M8(e,t){return B8(lre(e.getBoundingClientRect(),t))}function dre(e,t,n){const r=M8(e,n),{scroll:i}=t;return i&&(Pl(r.x,i.offset.x),Pl(r.y,i.offset.y)),r}const uA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bl=()=>({x:uA(),y:uA()}),lA=()=>({min:0,max:0}),Wn=()=>({x:lA(),y:lA()}),r1={current:null},R8={current:!1};function fre(){if(R8.current=!0,!!Yb)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r1.current=e.matches;e.addEventListener("change",t),t()}else r1.current=!1}const hre=new WeakMap;function pre(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 cA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let mre=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=hx,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,En.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=Mm(n),this.isVariantNode=x8(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,hre.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)),R8.current||fre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:r1.current,process.env.NODE_ENV!=="production"&&tx(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=gc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&En.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 ec){const n=ec[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):Wn()}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<cA.length;r++){const i=cA[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=pre(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"&&(T9(r)||_9(r))?r=parseFloat(r):!Tne(r)&&ws.test(n)&&(r=f8(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=Cx(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 ex),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gx.render(this.render)}},I8=class extends mre{constructor(){super(...arguments),this.KeyframeResolver=pne}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 O8(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 vre=class extends I8{constructor(){super(...arguments),this.type="html",this.renderInstance=O8}readValueFromInstance(t,n){var r;if(gc.has(n))return(r=this.projection)!=null&&r.isProjecting?G3(n):Fte(t,n);{const i=gre(t),a=(ix(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return M8(t,n)}build(t,n,r){Dx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return wx(t,n,r)}};const L8=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 yre(e,t,n,r){O8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(L8.has(i)?i:Ax(i),t.attrs[i])}let bre=class extends I8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gc.has(n)){const r=d8(n);return r&&r.default||0}return n=L8.has(n)?n:Ax(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return S8(t,n,r)}build(t,n,r){E8(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){yre(t,n,r,i)}mount(t){this.isSVGTag=w8(t.tagName),super.mount(t)}};const xre=(e,t)=>Ex(e)?new bre(t):new vre(t,{allowProjection:e!==O.Fragment});function zl(e,t,n){const r=e.getProps();return Cx(r,t,n!==void 0?n:r.custom,e)}const i1=e=>Array.isArray(e);function Dre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Pu(n))}function $re(e){return i1(e)?e[e.length-1]||0:e}function Ere(e,t){const n=zl(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=$re(a[o]);Dre(e,o,s)}}function Cre(e){return!!(xr(e)&&e.add)}function a1(e,t){const n=e.getValue("willChange");if(Cre(n))return n.add(t);if(!n&&Uo.WillChange){const r=new Uo.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function V8(e){return e.props[T8]}const wre=e=>e!==null;function Are(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(wre),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Sre={type:"spring",stiffness:500,damping:25,restSpeed:10},Tre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pre={type:"keyframes",duration:.8},_re={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bre=(e,{keyframes:t})=>t.length>2?Pre:gc.has(e)?e.startsWith("scale")?Tre(t[1]):Sre:_re;function Fre({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 Sx=(e,t,n,r={},i,a)=>o=>{const s=px(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};Fre(s)||Object.assign(h,Bre(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)&&(Q3(h),h.delay===0&&(m=!0)),(Uo.instantAnimations||Uo.skipAnimations)&&(m=!0,Q3(h),h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=Are(h.keyframes,s);if(g!==void 0){En.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new fx(h):new tne(h)};function kre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N8(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,...px(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=V8(e);if(w){const C=window.MotionHandoffAnimation(w,h,En);C!==null&&(b.startTime=C,x=!0)}}a1(e,h),m.start(Sx(h,m,g,e.shouldReduceMotion&&u8.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{En.update(()=>{o&&Ere(e,o)})}),l}function j8(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 o1(e,t,n={}){var l;const r=zl(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(N8(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Mre(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 Mre(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(o1(l,t,{...o,delay:n+(typeof r=="function"?0:r)+j8(e.variantChildren,l,r,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function Rre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>o1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=o1(e,t,n);else{const i=typeof t=="function"?zl(e,t,n.custom):t;r=Promise.all(N8(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function K8(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 Ire=xx.length;function z8(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?z8(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ire;n++){const r=xx[n],i=e.props[r];(Hd(i)||i===!1)&&(t[r]=i)}return t}const Ore=[...bx].reverse(),Lre=bx.length;function Vre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Rre(e,n,r)))}function Nre(e){let t=Vre(e),n=dA(),r=!0;const i=l=>(f,h)=>{var g;const m=zl(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=z8(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<Lre;A++){const w=Ore[A],C=n[w],E=f[w]!==void 0?f[w]:h[w],T=Hd(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||km(E)||typeof E=="boolean")continue;const q=jre(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let I=ae.reduce(i(w),{});P===!1&&(I={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...I},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=I[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;i1(K)&&i1(fe)?M=!K8(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=I,C.isActive&&(b={...b,...I}),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=zl(fe,R);if(fe.enteringChildren&&M){const{delayChildren:oe}=M.transition||{};K.delay=j8(fe.enteringChildren,e,oe)}}return{animation:R,options:K}}))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=zl(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=dA(),r=!0}}}function jre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!K8(t,e):!1}function iu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dA(){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(){}},Kre=class extends _s{constructor(t){super(t),t.animationState||(t.animationState=Nre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();km(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)}},zre=0,qre=class extends _s{constructor(){super(...arguments),this.id=zre++}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 Ure={animation:{Feature:Kre},exit:{Feature:qre}};function Yd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $f(e){return{point:{x:e.pageX,y:e.pageY}}}const Wre=e=>t=>vx(t)&&e(t,$f(t));function Pd(e,t,n,r){return Yd(e,t,Wre(n),r)}const q8=1e-4,Hre=1-q8,Gre=1+q8,U8=.01,Yre=0-U8,Zre=0+U8;function Nr(e){return e.max-e.min}function Xre(e,t,n){return Math.abs(e-t)<=n}function fA(e,t,n,r=.5){e.origin=r,e.originPoint=Tn(t.min,t.max,e.origin),e.scale=Nr(n)/Nr(t),e.translate=Tn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Hre&&e.scale<=Gre||isNaN(e.scale))&&(e.scale=1),(e.translate>=Yre&&e.translate<=Zre||isNaN(e.translate))&&(e.translate=0)}function _d(e,t,n,r){fA(e.x,t.x,n.x,r?r.originX:void 0),fA(e.y,t.y,n.y,r?r.originY:void 0)}function hA(e,t,n){e.min=n.min+t.min,e.max=e.min+Nr(t)}function Jre(e,t,n){hA(e.x,t.x,n.x),hA(e.y,t.y,n.y)}function pA(e,t,n){e.min=t.min-n.min,e.max=e.min+Nr(t)}function Bd(e,t,n){pA(e.x,t.x,n.x),pA(e.y,t.y,n.y)}function Ki(e){return[e("x"),e("y")]}const W8=({current:e})=>e?e.ownerDocument.defaultView:null,mA=(e,t)=>Math.abs(e-t);function Qre(e,t){const n=mA(e.x,t.x),r=mA(e.y,t.y);return Math.sqrt(n**2+r**2)}class H8{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=oy(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,$=Qre(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=ay(b,this.transformPagePoint),En.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=oy(g.type==="pointercancel"?this.lastMoveEventInfo:ay(b,this.transformPagePoint),this.history);this.startEvent&&$&&$(g,w),x&&x(g,w)},!vx(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const s=$f(t),l=ay(s,this.transformPagePoint),{point:f}=l,{timestamp:h}=br;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,oy(l,this.history)),this.removeListeners=bf(Pd(this.contextWindow,"pointermove",this.handlePointerMove),Pd(this.contextWindow,"pointerup",this.handlePointerUp),Pd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function ay(e,t){return t?{point:t(e.point)}:e}function gA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oy({point:e},t){return{point:e,delta:gA(e,G8(t)),offset:gA(e,eie(t)),velocity:tie(t,.1)}}function eie(e){return e[0]}function G8(e){return e[e.length-1]}function tie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=G8(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 nie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Tn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Tn(n,e,r.max):Math.min(e,n)),e}function vA(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:vA(e.x,n,i),y:vA(e.y,t,r)}}function yA(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:yA(e.x,t.x),y:yA(e.y,t.y)}}function aie(e,t){let n=.5;const r=Nr(e),i=Nr(t);return i>r?n=qd(t.min,t.max-r,e.min):r>i&&(n=qd(e.min,e.max-i,t.min)),qo(0,1,n)}function oie(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 s1=.35;function sie(e=s1){return e===!1?e=0:e===!0&&(e=s1),{x:bA(e,"left","right"),y:bA(e,"top","bottom")}}function bA(e,t,n){return{min:xA(e,t),max:xA(e,n)}}function xA(e,t){return typeof e=="number"?e:e[t]||0}const uie=new WeakMap;class lie{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=Wn(),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($f(m).point)},o=(m,g)=>{const{drag:b,dragPropagation:$,onDragStart:x}=this.getProps();if(b&&!$&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bne(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&&En.postRender(()=>x(m,g)),a1(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=cie(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 H8(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:W8(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&&En.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||!Sh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=nie(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&&Tl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=rie(r.layoutBox,t):this.constraints=!1,this.elastic=sie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ki(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=oie(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Tl(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=dre(r,i.root,this.visualElement.getTransformPagePoint());let o=iie(i.layout.layoutBox,a);if(n){const s=n(ure(o));this.hasMutatedConstraints=!!s,s&&(o=B8(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(!Sh(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 a1(this.visualElement,t),r.start(Sx(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(!Sh(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]-Tn(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Tl(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]=aie({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(!Sh(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];s.set(Tn(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;uie.set(this.visualElement,this);const t=this.visualElement.current,n=Pd(t,"pointerdown",l=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Tl(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()),En.read(r);const o=Yd(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=s1,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Sh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class die extends _s{constructor(t){super(t),this.removeGroupControls=Ji,this.removeListeners=Ji,this.controls=new lie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ji}unmount(){this.removeGroupControls(),this.removeListeners()}}const DA=e=>(t,n)=>{e&&En.postRender(()=>e(t,n))};class fie extends _s{constructor(){super(...arguments),this.removePointerDownListener=Ji}onPointerDown(t){this.session=new H8(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W8(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:DA(t),onStart:DA(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&En.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Pd(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 Gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $A(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ad={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(At.test(e))e=parseFloat(e);else return e;const n=$A(e,t.target.x),r=$A(e,t.target.y);return`${n}% ${r}%`}},hie={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=Tn(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 sy=!1;class pie extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Ine(mie),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),sy&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Gh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,sy=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||En.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;sy=!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 Y8(e){const[t,n]=Pne(),r=O.useContext(A9);return io.jsx(pie,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(P8),isPresent:t,safeToRemove:n})}const mie={borderRadius:{...ad,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ad,borderTopRightRadius:ad,borderBottomLeftRadius:ad,borderBottomRightRadius:ad,boxShadow:hie};function gie(e,t,n){const r=xr(e)?e:Pu(e);return r.start(Sx("",r,t,n)),r.animation}const vie=(e,t)=>e.depth-t.depth;class yie{constructor(){this.children=[],this.isDirty=!1}add(t){Xb(this.children,t),this.isDirty=!0}remove(t){Jb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vie),this.isDirty=!1,this.children.forEach(t)}}function bie(e,t){const n=oi.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Wo(r),e(a-t))};return En.setup(r,!0),()=>Wo(r)}const Z8=["TopLeft","TopRight","BottomLeft","BottomRight"],xie=Z8.length,EA=e=>typeof e=="string"?parseFloat(e):e,CA=e=>typeof e=="number"||At.test(e);function Die(e,t,n,r,i,a){i?(e.opacity=Tn(0,n.opacity??1,$ie(r)),e.opacityExit=Tn(t.opacity??1,0,Eie(r))):a&&(e.opacity=Tn(t.opacity??1,n.opacity??1,r));for(let o=0;o<xie;o++){const s=`border${Z8[o]}Radius`;let l=wA(t,s),f=wA(n,s);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||CA(l)===CA(f)?(e[s]=Math.max(Tn(EA(l),EA(f),r),0),(no.test(f)||no.test(l))&&(e[s]+="%")):e[s]=f}(t.rotate||n.rotate)&&(e.rotate=Tn(t.rotate||0,n.rotate||0,r))}function wA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $ie=X8(0,.5,L9),Eie=X8(.5,.95,Ji);function X8(e,t,n){return r=>r<e?0:r>t?1:n(qd(e,t,r))}function AA(e,t){e.min=t.min,e.max=t.max}function Vi(e,t){AA(e.x,t.x),AA(e.y,t.y)}function SA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function TA(e,t,n,r,i){return e-=t,e=Fp(e,1/n,r),i!==void 0&&(e=Fp(e,1/i,r)),e}function Cie(e,t=0,n=1,r=.5,i,a=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Tn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=Tn(a.min,a.max,r);e===a&&(s-=t),e.min=TA(e.min,t,n,s,i),e.max=TA(e.max,t,n,s,i)}function PA(e,t,[n,r,i],a,o){Cie(e,t[n],t[r],t[i],t.scale,a,o)}const wie=["x","scaleX","originX"],Aie=["y","scaleY","originY"];function _A(e,t,n,r){PA(e.x,t,wie,n?n.x:void 0,r?r.x:void 0),PA(e.y,t,Aie,n?n.y:void 0,r?r.y:void 0)}function BA(e){return e.translate===0&&e.scale===1}function J8(e){return BA(e.x)&&BA(e.y)}function FA(e,t){return e.min===t.min&&e.max===t.max}function Sie(e,t){return FA(e.x,t.x)&&FA(e.y,t.y)}function kA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Q8(e,t){return kA(e.x,t.x)&&kA(e.y,t.y)}function MA(e){return Nr(e.x)/Nr(e.y)}function RA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Tie{constructor(){this.members=[]}add(t){Xb(this.members,t),t.scheduleRender()}remove(t){if(Jb(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 Pie(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 uy=["","X","Y","Z"],_ie=1e3;let Bie=0;function ly(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function eM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=V8(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",En,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&eM(r)}function tM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=Bie++,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(Mie),this.nodes.forEach(Lie),this.nodes.forEach(Vie),this.nodes.forEach(Rie)},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 yie)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ex),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=v8(o)&&!wne(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;En.read(()=>{m=window.innerWidth}),e(o,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=bie(g,250),Gh.hasAnimatedSinceResize&&(Gh.hasAnimatedSinceResize=!1,this.nodes.forEach(LA)))})}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()||qie,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),w=!this.targetLayout||!Q8(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={...px($,"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||LA(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(Nie),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&&eM(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(IA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(OA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oie),this.nodes.forEach(Fie),this.nodes.forEach(kie)):this.nodes.forEach(OA),this.clearAllSnapshots();const s=oi.now();br.delta=qo(0,1e3/60,s-br.timestamp),br.timestamp=s,br.isProcessing=!0,X4.update.process(br),X4.preRender.process(br),X4.render.process(br),br.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Iie),this.sharedNodes.forEach(jie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,En.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){En.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=Wn(),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&&!J8(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)),Uie(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:o}=this.options;if(!o)return Wn();const s=o.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(Wie))){const{scroll:h}=this.root;h&&(Pl(s.x,h.offset.x),Pl(s.y,h.offset.y))}return s}removeElementScroll(o){var l;const s=Wn();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),Pl(s.x,m.offset.x),Pl(s.y,m.offset.y))}return s}applyTransform(o,s=!1){const l=Wn();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&&_l(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ou(h.latestValues)&&_l(l,h.latestValues)}return ou(this.latestValues)&&_l(l,this.latestValues),l}removeTransform(o){const s=Wn();Vi(s,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!ou(f.latestValues))continue;t1(f.latestValues)&&f.updateSnapshot();const h=Wn(),m=f.measurePageBox();Vi(h,m),_A(s,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return ou(this.latestValues)&&_A(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=Wn(),this.relativeTargetOrigin=Wn(),Bd(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=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Jre(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=Wn(),this.relativeTargetOrigin=Wn(),Bd(this.relativeTargetOrigin,this.target,b.target),Vi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||t1(this.parent.latestValues)||F8(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;cre(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=Wn());const{target:b}=o;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(SA(this.prevProjectionDelta.x,this.projectionDelta.x),SA(this.prevProjectionDelta.y,this.projectionDelta.y)),_d(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!RA(this.projectionDelta.x,this.prevProjectionDelta.x)||!RA(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=Bl(),this.projectionDelta=Bl(),this.projectionDeltaWithTransform=Bl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,f=l?l.latestValues:{},h={...this.latestValues},m=Bl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const g=Wn(),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(zie));this.animationProgress=0;let E;this.mixTargetDelta=T=>{const P=T/1e3;VA(m.x,o.x,P),VA(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bd(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Kie(this.relativeTarget,this.relativeTargetOrigin,g,P),E&&Sie(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Wn()),Vi(E,this.relativeTarget)),x&&(this.animationValues=h,Die(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=En.update(()=>{Gh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Pu(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(_ie),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&&nM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Wn();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),_l(s,h),_d(this.projectionDeltaWithTransform,this.layoutCorrected,s,h)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Tie),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&&ly("z",o,f,this.animationValues);for(let h=0;h<uy.length;h++)ly(`rotate${uy[h]}`,o,f,this.animationValues),ly(`skew${uy[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=Hh(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=Hh(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=Pie(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 Gd){if(h[$]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:w}=Gd[$],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?Hh(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(IA),this.root.sharedNodes.clear()}}}function Fie(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}):nM(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=Bl();_d(s,r,t.layoutBox);const l=Bl();o?_d(l,e.applyTransform(i,!0),t.measuredBox):_d(l,r,t.layoutBox);const f=!J8(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 $=Wn();Bd($,t.layoutBox,g.layoutBox);const x=Wn();Bd(x,r,b.layoutBox),Q8($,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 Mie(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 Rie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Iie(e){e.clearSnapshot()}function IA(e){e.clearMeasurements()}function OA(e){e.isLayoutDirty=!1}function Oie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function LA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Lie(e){e.resolveTargetDelta()}function Vie(e){e.calcProjection()}function Nie(e){e.resetSkewAndRotation()}function jie(e){e.removeLeadSnapshot()}function VA(e,t,n){e.translate=Tn(t.translate,0,n),e.scale=Tn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function NA(e,t,n,r){e.min=Tn(t.min,n.min,r),e.max=Tn(t.max,n.max,r)}function Kie(e,t,n,r){NA(e.x,t.x,n.x,r),NA(e.y,t.y,n.y,r)}function zie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qie={duration:.45,ease:[.4,0,.1,1]},jA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),KA=jA("applewebkit/")&&!jA("chrome/")?Math.round:Ji;function zA(e){e.min=KA(e.min),e.max=KA(e.max)}function Uie(e){zA(e.x),zA(e.y)}function nM(e,t,n){return e==="position"||e==="preserve-aspect"&&!Xre(MA(t),MA(n),.2)}function Wie(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Hie=tM({attachResizeListener:(e,t)=>Yd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cy={current:void 0},rM=tM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cy.current){const e=new Hie({});e.mount(window),e.setOptions({layoutScroll:!0}),cy.current=e}return cy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gie={pan:{Feature:fie},drag:{Feature:die,ProjectionNode:rM,MeasureLayout:Y8}};function qA(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&&En.postRender(()=>a(t,$f(t)))}let Yie=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=xne(t,(n,r)=>(qA(this.node,r,"Start"),i=>qA(this.node,i,"End"))))}unmount(){}},Zie=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=bf(Yd(this.node.current,"focus",()=>this.onFocus()),Yd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function UA(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&&En.postRender(()=>a(t,$f(t)))}let Xie=class extends _s{mount(){const{current:t}=this.node;t&&(this.unmount=Cne(t,(n,r)=>(UA(this.node,r,"Start"),(i,{success:a})=>UA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const u1=new WeakMap,dy=new WeakMap,Jie=e=>{const t=u1.get(e.target);t&&t(e)},Qie=e=>{e.forEach(Jie)};function eae({root:e,...t}){const n=e||document;dy.has(n)||dy.set(n,{});const r=dy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Qie,{root:e,...t})),r[i]}function tae(e,t,n){const r=eae(t);return u1.set(e,n),r.observe(e),()=>{u1.delete(e),r.unobserve(e)}}const nae={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:nae[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 tae(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 aae={inView:{Feature:rae},tap:{Feature:Xie},focus:{Feature:Zie},hover:{Feature:Yie}},oae={layout:{ProjectionNode:rM,MeasureLayout:Y8}},sae={...Ure,...aae,...Gie,...oae},iM=sre(sae,xre);function aM(e){const t=yf(()=>Pu(e)),{isStatic:n}=O.useContext(yx);if(n){const[,r]=O.useState(e);O.useEffect(()=>t.on("change",r),[])}return t}function oM(e,t){const n=aM(t()),r=()=>n.set(t());return r(),S9(()=>{const i=()=>En.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),Wo(r)}}),n}function uae(e){Td.current=[],e();const t=oM(Td.current,e);return Td.current=void 0,t}function lae(e,t,n,r){if(typeof e=="function")return uae(e);const i=typeof t=="function"?t:Ane(t,n,r);return Array.isArray(e)?WA(e,i):WA([e],([a])=>i(a))}function WA(e,t){const n=yf(()=>[]);return oM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const sM=O.createContext(null);function cae(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=Tn(l.min,l.max,.5);return a===1&&s.layout.max+n>f||a===-1&&s.layout.min+n<f?Bee(e,i,i+a):e}function dae({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const s=yf(()=>iM[t]),l=[],f=O.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(pae)},updateOrder:(m,g,b)=>{if(f.current)return;const $=cae(l,m,g,b);l!==$&&(f.current=!0,r($.map(hae).filter(x=>i.indexOf(x)!==-1)))}};return O.useEffect(()=>{f.current=!1}),io.jsx(s,{...a,ref:o,ignoreStrict:!0,children:io.jsx(sM.Provider,{value:h,children:e})})}const fae=O.forwardRef(dae);function hae(e){return e.value}function pae(e,t){return e.layout.min-t.layout.min}function HA(e,t=0){return xr(e)?e:aM(t)}function mae({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},s){const l=yf(()=>iM[r]),f=O.useContext(sM),h={x:HA(t.x),y:HA(t.y)},m=lae([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=O.forwardRef(mae);var Yh={exports:{}},vae=Yh.exports,GA;function yae(){return GA||(GA=1,function(e,t){(function(n,r){e.exports=r()})(vae,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)}}})}(Yh)),Yh.exports}var bae=yae();const xae=hr(bae),YA=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},uM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?YA(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>YA(i,n,e))}},Dae=(e,t)=>{t.shouldUseNativeValidation&&uM(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($ae(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},$ae=(e,t)=>{const n=ZA(t);return e.some(r=>ZA(r).match(`^${n}\\.\\d+`))};function ZA(e){return e.replace(/\]|\[/g,"")}function Eae(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&&uM({},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:Dae((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]=iP(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 Dd={exports:{}},Cae=Dd.exports,XA;function wae(){return XA||(XA=1,function(e,t){(function(n,r){r(t,de.default)})(Cae,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,Qt=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 Je(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 Qe(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 yn(c,p,v){var D,_,B,U,ge,Q,De,Ce;switch(U=Math.floor(c*6),ge=c*6-U,Q=v*(1-p),De=v*(1-ge*p),Ce=v*(1-(1-ge)*p),U%6){case 0:D=v,_=Ce,B=Q;break;case 1:D=De,_=v,B=Q;break;case 2:D=Q,_=v,B=Ce;break;case 3:D=Q,_=De,B=v;break;case 4:D=Ce,_=Q,B=v;break;case 5:D=v,_=Q,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,Q=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,Q]}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),yn(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),yn(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),yn(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,J,ve=Le.length,Ke,Ie,lt,St;for(J=0;J<ve;J+=1)if(ce=Le[J],"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,J=Le.length;for(ce=0;ce<J;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,J=$e.length;ce<J;){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,J,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,J=0;J<ve;J+=1)Le[$e].ks.k[J].s&&H(Le[$e].ks.k[J].s[0]),Le[$e].ks.k[J].e&&H(Le[$e].ks.k[J].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(J){var ve=J.t.d;J.t.d={k:[{s:ve,t:0}]}}function ce(J){var ve,Ke=J.length;for(ve=0;ve<Ke;ve+=1)J[ve].ty===5&&$e(J[ve])}return function(J){if(ne(Le,J.v)&&(ce(J.layers),J.assets)){var ve,Ke=J.assets.length;for(ve=0;ve<Ke;ve+=1)J.assets[ve].layers&&ce(J.assets[ve].layers)}}}(),me=function(){var Le=[4,7,99];return function($e){if($e.chars&&!ne(Le,$e.v)){var ce,J=$e.chars.length;for(ce=0;ce<J;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(J){var ve=J.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(J){var ve,Ke=J.length;for(ve=0;ve<Ke;ve+=1)J[ve].ty===5&&$e(J[ve])}return function(J){if(ne(Le,J.v)&&(ce(J.layers),J.assets)){var ve,Ke=J.assets.length;for(ve=0;ve<Ke;ve+=1)J.assets[ve].layers&&ce(J.assets[ve].layers)}}}(),nt=function(){var Le=[4,1,9];function $e(J){var ve,Ke=J.length,Ie,lt;for(ve=0;ve<Ke;ve+=1)if(J[ve].ty==="gr")$e(J[ve].it);else if(J[ve].ty==="fl"||J[ve].ty==="st")if(J[ve].c.k&&J[ve].c.k[0].i)for(lt=J[ve].c.k.length,Ie=0;Ie<lt;Ie+=1)J[ve].c.k[Ie].s&&(J[ve].c.k[Ie].s[0]/=255,J[ve].c.k[Ie].s[1]/=255,J[ve].c.k[Ie].s[2]/=255,J[ve].c.k[Ie].s[3]/=255),J[ve].c.k[Ie].e&&(J[ve].c.k[Ie].e[0]/=255,J[ve].c.k[Ie].e[1]/=255,J[ve].c.k[Ie].e[2]/=255,J[ve].c.k[Ie].e[3]/=255);else J[ve].c.k[0]/=255,J[ve].c.k[1]/=255,J[ve].c.k[2]/=255,J[ve].c.k[3]/=255}function ce(J){var ve,Ke=J.length;for(ve=0;ve<Ke;ve+=1)J[ve].ty===4&&$e(J[ve].shapes)}return function(J){if(ne(Le,J.v)&&(ce(J.layers),J.assets)){var ve,Ke=J.assets.length;for(ve=0;ve<Ke;ve+=1)J.assets[ve].layers&&ce(J.assets[ve].layers)}}}(),tt=function(){var Le=[4,4,18];function $e(J){var ve,Ke=J.length,Ie,lt;for(ve=Ke-1;ve>=0;ve-=1)if(J[ve].ty==="sh")if(J[ve].ks.k.i)J[ve].ks.k.c=J[ve].closed;else for(lt=J[ve].ks.k.length,Ie=0;Ie<lt;Ie+=1)J[ve].ks.k[Ie].s&&(J[ve].ks.k[Ie].s[0].c=J[ve].closed),J[ve].ks.k[Ie].e&&(J[ve].ks.k[Ie].e[0].c=J[ve].closed);else J[ve].ty==="gr"&&$e(J[ve].it)}function ce(J){var ve,Ke,Ie=J.length,lt,St,Et,xn;for(Ke=0;Ke<Ie;Ke+=1){if(ve=J[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(xn=Ut[lt].pt.k.length,Et=0;Et<xn;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(J){if(ne(Le,J.v)&&(ce(J.layers),J.assets)){var ve,Ke=J.assets.length;for(ve=0;ve<Ke;ve+=1)J.assets[ve].layers&&ce(J.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 Q(k,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:k,onError:ee},Y}function De(k,ee,Y){ge();var pe=Q(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=Q(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=Q(ee,Y);D.postMessage({type:"complete",animation:k,id:pe})}return{loadAnimation:De,loadData:Ce,completeAnimation:Re}}(),Ac=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 Q(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:Q,setAssetsPath:Ce,setPath:De,loadedImages:ee,loadedFootages:Y,destroy:k,getAsset:Re,createImgData:U,createImageData:B,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function Lu(){}Lu.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 Sc=function(){function c(p){for(var v=p.split(`\r
84
+ `),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}}(),Vu=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={},Nu=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=Vu(),this.imagePreloader=new Ac,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([Lu],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=Sc(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 Je(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 Qe(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 Je(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 Qe(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 Cn=function(){var c={},p=[],v=0,D=0,_=0,B=!0,U=!1;function ge($e){for(var ce=0,J=$e.target;ce<D;)p[ce].animation===J&&(p.splice(ce,1),ce-=1,D-=1,J.isPaused||Re()),ce+=1}function Q($e,ce){if(!$e)return null;for(var J=0;J<D;){if(p[J].elem===$e&&p[J].elem!==null)return p[J].animation;J+=1}var ve=new yt;return k(ve,$e),ve.setData($e,ce),ve}function De(){var $e,ce=p.length,J=[];for($e=0;$e<ce;$e+=1)J.push(p[$e].animation);return J}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 J;for(J=0;J<D;J+=1)p[J].animation.setSpeed($e,ce)}function pe($e,ce){var J;for(J=0;J<D;J+=1)p[J].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,J;for(J=0;J<D;J+=1)p[J].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,J){var ve;for(ve=0;ve<D;ve+=1)p[ve].animation.goToAndStop($e,ce,J)}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,J){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ke,Ie=ve.length;for(Ke=0;Ke<Ie;Ke+=1)J&&ve[Ke].setAttribute("data-bm-type",J),Q(ve[Ke],$e);if(ce&&Ie===0){J||(J="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",J),lt.appendChild(St),Q(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 J;for(J=0;J<D;J+=1)p[J].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=Q,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,Q=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*Q,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+=Q;--me;var nt=(L-ne[me])/(ne[me+1]-ne[me]),tt=ue+nt*Q,Ve=Y(tt,j,H);return Ve>=_?he(L,tt,j,H):Ve===0?tt:pe(L,ue,ue+Q,j,H)}},c}(),ju=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:Q};function ge(){var De;return D?(D-=1,De=B[D]):De=p(),De}function Q(De){D===_&&(B=ju.double(B),_*=2),v&&v(De),B[D]=De,D+=1}return U}}(),Ku=function(){function c(){return{addedLength:0,percents:Ne("float32",Ba()),lengths:Ne("float32",Ba())}}return $r(8,c)}(),zu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var D,_=v.lengths.length;for(D=0;D<_;D+=1)Ku.release(v.lengths[D]);v.lengths.length=0}return $r(8,c,p)}();function Tc(){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=Ku.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=zu.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 Q(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=Q(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=Q(he,Z);W=W>1?1:W;var j=Q(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,J=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]+J*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=Tc(),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,J=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<J){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-J)/(ce-J));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 xn,Ut,cr,Zn,On;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<=J)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var Nn=B(me.s),jn=B(ve),vr=(he-J)/(ce-J);_(L,D(Nn,jn,vr))}else for(H=0;H<ne;H+=1)me.h!==1&&(he>=ce?st=1:he<J?st=0:(me.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?$e=nt.__fnct[H]:(xn=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],cr=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(xn,Ut,cr,Zn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:(xn=me.o.x,Ut=me.o.y,cr=me.i.x,Zn=me.i.y,$e=lo.getBezierEasing(xn,Ut,cr,Zn).get,me.keyframeMetadata=$e),st=$e((he-J)/(ce-J)))),ve=Oe.s||me.e,On=me.h===1?me.s[H]:me.s[H]+(ve[H]-me.s[H])*st,this.propType==="multidimensional"?L[H]=On:L=On}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/Qt,he[1]=ue/Qt,he[2]=me/Qt}function B(he){var W=he[0]*Qt,Z=he[1]*Qt,L=he[2]*Qt,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 Q(){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=Q,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=Q,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=Q,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=Q,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,Q=U._length;for(ge=0;ge<Q;ge+=1)Yn.release(U.shapes[ge]);U._length=0,p===v&&(D=ju.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,J,ve,Ke;ce&&(J=ct[Le],ve=ct[Le+1],!(ve.t-this.offsetTime>W));)Le<$e-1?Le+=1:ce=!1;if(Ke=this.keyframesMetadata[Le]||{},ue=J.h===1,j=Le,!ue){if(W>=ve.t-this.offsetTime)Ve=1;else if(W<J.t-this.offsetTime)Ve=0;else{var Ie;Ke.__fnct?Ie=Ke.__fnct:(Ie=lo.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,Ke.__fnct=Ie),Ve=Ie((W-(J.t-this.offsetTime))/(ve.t-this.offsetTime-(J.t-this.offsetTime)))}ne=ve.s?ve.s[0]:J.e[0]}H=J.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 Q(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=U,ge.prototype.setVValue=B,ge.prototype.addEffect=Q;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=Q;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,Qt,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 J=st*Math.cos($e),ve=st*Math.sin($e),Ke=J===0&&ve===0?0:ve/Math.sqrt(J*J+ve*ve),Ie=J===0&&ve===0?0:-J/Math.sqrt(J*J+ve*ve);J+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(J,ve,J-Ke*Le*ct*ce,ve-Ie*Le*ct*ce,J+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}();/*!
85
+ Transformation Matrix v2.0
86
+ (c) Epistemex 2014-2015
87
+ www.epistemex.com
88
+ By Ken Fyrstenberg
89
+ Contributions by leeoniya.
90
+ License: MIT, header required.
91
+ */var Mn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,D=Math.round;function _(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function B(ce){if(ce===0)return this;var J=c(ce),ve=p(ce);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function U(ce){if(ce===0)return this;var J=c(ce),ve=p(ce);return this._t(1,0,0,0,0,J,-ve,0,0,ve,J,0,0,0,0,1)}function ge(ce){if(ce===0)return this;var J=c(ce),ve=p(ce);return this._t(J,0,ve,0,0,1,0,0,-ve,0,J,0,0,0,0,1)}function Q(ce){if(ce===0)return this;var J=c(ce),ve=p(ce);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function De(ce,J){return this._t(1,J,ce,1,0,0)}function Ce(ce,J){return this.shear(v(ce),v(J))}function Re(ce,J){var ve=c(J),Ke=p(J);return this._t(ve,Ke,0,0,-Ke,ve,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ce),1,0,0,0,0,1,0,0,0,0,1)._t(ve,-Ke,0,0,Ke,ve,0,0,0,0,1,0,0,0,0,1)}function k(ce,J,ve){return!ve&&ve!==0&&(ve=1),ce===1&&J===1&&ve===1?this:this._t(ce,0,0,0,0,J,0,0,0,0,ve,0,0,0,0,1)}function ee(ce,J,ve,Ke,Ie,lt,St,Et,xn,Ut,cr,Zn,On,Nn,jn,vr){return this.props[0]=ce,this.props[1]=J,this.props[2]=ve,this.props[3]=Ke,this.props[4]=Ie,this.props[5]=lt,this.props[6]=St,this.props[7]=Et,this.props[8]=xn,this.props[9]=Ut,this.props[10]=cr,this.props[11]=Zn,this.props[12]=On,this.props[13]=Nn,this.props[14]=jn,this.props[15]=vr,this}function Y(ce,J,ve){return ve=ve||0,ce!==0||J!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,J,ve,1):this}function pe(ce,J,ve,Ke,Ie,lt,St,Et,xn,Ut,cr,Zn,On,Nn,jn,vr){var dt=this.props;if(ce===1&&J===0&&ve===0&&Ke===0&&Ie===0&&lt===1&&St===0&&Et===0&&xn===0&&Ut===0&&cr===1&&Zn===0)return dt[12]=dt[12]*ce+dt[15]*On,dt[13]=dt[13]*lt+dt[15]*Nn,dt[14]=dt[14]*cr+dt[15]*jn,dt[15]*=vr,this._identityCalculated=!1,this;var ln=dt[0],Zr=dt[1],Fi=dt[2],sa=dt[3],mi=dt[4],ua=dt[5],la=dt[6],Yt=dt[7],Dn=dt[8],ja=dt[9],gi=dt[10],ca=dt[11],vi=dt[12],da=dt[13],Ka=dt[14],is=dt[15];return dt[0]=ln*ce+Zr*Ie+Fi*xn+sa*On,dt[1]=ln*J+Zr*lt+Fi*Ut+sa*Nn,dt[2]=ln*ve+Zr*St+Fi*cr+sa*jn,dt[3]=ln*Ke+Zr*Et+Fi*Zn+sa*vr,dt[4]=mi*ce+ua*Ie+la*xn+Yt*On,dt[5]=mi*J+ua*lt+la*Ut+Yt*Nn,dt[6]=mi*ve+ua*St+la*cr+Yt*jn,dt[7]=mi*Ke+ua*Et+la*Zn+Yt*vr,dt[8]=Dn*ce+ja*Ie+gi*xn+ca*On,dt[9]=Dn*J+ja*lt+gi*Ut+ca*Nn,dt[10]=Dn*ve+ja*St+gi*cr+ca*jn,dt[11]=Dn*Ke+ja*Et+gi*Zn+ca*vr,dt[12]=vi*ce+da*Ie+Ka*xn+is*On,dt[13]=vi*J+da*lt+Ka*Ut+is*Nn,dt[14]=vi*ve+da*St+Ka*cr+is*jn,dt[15]=vi*Ke+da*Et+Ka*Zn+is*vr,this._identityCalculated=!1,this}function he(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function W(ce){for(var J=0;J<16;){if(ce.props[J]!==this.props[J])return!1;J+=1}return!0}function Z(ce){var J;for(J=0;J<16;J+=1)ce.props[J]=this.props[J];return ce}function L(ce){var J;for(J=0;J<16;J+=1)this.props[J]=ce[J]}function j(ce,J,ve){return{x:ce*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],y:ce*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],z:ce*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}}function H(ce,J,ve){return ce*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12]}function ne(ce,J,ve){return ce*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13]}function ue(ce,J,ve){return ce*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}function me(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],J=this.props[5]/ce,ve=-this.props[1]/ce,Ke=-this.props[4]/ce,Ie=this.props[0]/ce,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,St=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Et=new Mn;return Et.props[0]=J,Et.props[1]=ve,Et.props[4]=Ke,Et.props[5]=Ie,Et.props[12]=lt,Et.props[13]=St,Et}function Oe(ce){var J=this.getInverseMatrix();return J.applyToPointArray(ce[0],ce[1],ce[2]||0)}function nt(ce){var J,ve=ce.length,Ke=[];for(J=0;J<ve;J+=1)Ke[J]=Oe(ce[J]);return Ke}function tt(ce,J,ve){var Ke=Ne("float32",6);if(this.isIdentity())Ke[0]=ce[0],Ke[1]=ce[1],Ke[2]=J[0],Ke[3]=J[1],Ke[4]=ve[0],Ke[5]=ve[1];else{var Ie=this.props[0],lt=this.props[1],St=this.props[4],Et=this.props[5],xn=this.props[12],Ut=this.props[13];Ke[0]=ce[0]*Ie+ce[1]*St+xn,Ke[1]=ce[0]*lt+ce[1]*Et+Ut,Ke[2]=J[0]*Ie+J[1]*St+xn,Ke[3]=J[0]*lt+J[1]*Et+Ut,Ke[4]=ve[0]*Ie+ve[1]*St+xn,Ke[5]=ve[0]*lt+ve[1]*Et+Ut}return Ke}function Ve(ce,J,ve){var Ke;return this.isIdentity()?Ke=[ce,J,ve]:Ke=[ce*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],ce*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],ce*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]],Ke}function st(ce,J){if(this.isIdentity())return ce+","+J;var ve=this.props;return Math.round((ce*ve[0]+J*ve[4]+ve[12])*100)/100+","+Math.round((ce*ve[1]+J*ve[5]+ve[13])*100)/100}function ct(){for(var ce=0,J=this.props,ve="matrix3d(",Ke=1e4;ce<16;)ve+=D(J[ce]*Ke)/Ke,ve+=ce===15?")":",",ce+=1;return ve}function Le(ce){var J=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?D(ce*J)/J:ce}function $e(){var ce=this.props,J=Le(ce[0]),ve=Le(ce[1]),Ke=Le(ce[4]),Ie=Le(ce[5]),lt=Le(ce[12]),St=Le(ce[13]);return"matrix("+J+","+ve+","+Ke+","+Ie+","+lt+","+St+")"}return function(){this.reset=_,this.rotate=B,this.rotateX=U,this.rotateY=ge,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Re,this.shear=De,this.scale=k,this.setTransform=ee,this.translate=Y,this.transform=pe,this.applyToPoint=j,this.applyToX=H,this.applyToY=ne,this.applyToZ=ue,this.applyToPointArray=Ve,this.applyToTriplePoints=tt,this.applyToPointStringified=st,this.toCSS=ct,this.to2dCSS=$e,this.clone=Z,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Oe,this.getInverseMatrix=me,this._t=this.transform,this.isIdentity=he,this._identity=!0,this._identityCalculated=!1,this.props=Ne("float32",16),this.reset()}}();function Jo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jo=function(v){return typeof v}:Jo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Jo(c)}var jt={};function Pc(c){le(c)}function qu(){Cn.searchAnimations()}function _c(c){qt(c)}function Ms(c){Bs(c)}function co(c){return Cn.loadAnimation(c)}function Uu(c){if(typeof c=="string")switch(c){case"high":Br(200);break;default:case"medium":Br(50);break;case"low":Br(10);break}else!isNaN(c)&&c>1&&Br(c)}function Rs(){return typeof navigator<"u"}function Bc(c,p){c==="expressions"&&Hr(p)}function Fc(c){switch(c){case"propertyFactory":return at;case"shapePropertyFactory":return fi;case"matrix":return Mn;default:return null}}jt.play=Cn.play,jt.pause=Cn.pause,jt.setLocationHref=Pc,jt.togglePause=Cn.togglePause,jt.setSpeed=Cn.setSpeed,jt.setDirection=Cn.setDirection,jt.stop=Cn.stop,jt.searchAnimations=qu,jt.registerAnimation=Cn.registerAnimation,jt.loadAnimation=co,jt.setSubframeRendering=_c,jt.resize=Cn.resize,jt.goToAndStop=Cn.goToAndStop,jt.destroy=Cn.destroy,jt.setQuality=Uu,jt.inBrowser=Rs,jt.installPlugin=Bc,jt.freeze=Cn.freeze,jt.unfreeze=Cn.unfreeze,jt.setVolume=Cn.setVolume,jt.mute=Cn.mute,jt.unmute=Cn.unmute,jt.getRegisteredAnimations=Cn.getRegisteredAnimations,jt.useWebWorker=M,jt.setIDPrefix=Ms,jt.__getFactory=Fc,jt.version="5.10.2";function kc(){document.readyState==="complete"&&(clearInterval(Gu),qu())}function Wu(c){for(var p=Is.split("&"),v=0;v<p.length;v+=1){var D=p[v].split("=");if(decodeURIComponent(D[0])==c)return decodeURIComponent(D[1])}return null}var Is="";{var Os=document.getElementsByTagName("script"),fo=Os.length-1,Hu=Os[fo]||{src:""};Is=Hu.src?Hu.src.replace(/^[^\?]+\??/,""):"",Wu("renderer")}var Gu=setInterval(kc,100);try{Jo(G)!=="object"&&(window.bodymovin=jt)}catch{}var Fr=function(){var c={},p={};c.registerModifier=v,c.getModifier=D;function v(_,B){p[_]||(p[_]=B)}function D(_,B,U){return new p[_](B,U)}return c}();function mr(){}mr.prototype.initModifierProperties=function(){},mr.prototype.addShapeToModifier=function(){},mr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Fa.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},mr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=fe,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},mr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Be([dn],mr);function kr(){}Be([mr],kr),kr.prototype.initModifierProperties=function(c,p){this.s=at.getProp(c,p.s,0,.01,this),this.e=at.getProp(c,p.e,0,.01,this),this.o=at.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},kr.prototype.addShapeToModifier=function(c){c.pathsData=[]},kr.prototype.calculateShapeEdges=function(c,p,v,D,_){var B=[];p<=1?B.push({s:c,e:p}):c>=1?B.push({s:c-1,e:p-1}):(B.push({s:c,e:1}),B.push({s:0,e:p-1}));var U=[],ge,Q=B.length,De;for(ge=0;ge<Q;ge+=1)if(De=B[ge],!(De.e*_<D||De.s*_>D+v)){var Ce,Re;De.s*_<=D?Ce=0:Ce=(De.s*_-D)/v,De.e*_>=D+v?Re=1:Re=(De.e*_-D)/v,U.push([Ce,Re])}return U.length||U.push([0,0]),U},kr.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)zu.release(c[p]);return c.length=0,c},kr.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var D=this.o.v%360/360;if(D<0&&(D+=1),this.s.v>1?p=1+D:this.s.v<0?p=0+D:p=this.s.v+D,this.e.v>1?v=1+D:this.e.v<0?v=0+D:v=this.e.v+D,p>v){var _=p;p=v,v=_}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var B,U,ge=this.shapes.length,Q,De,Ce,Re,k,ee=0;if(v===p)for(U=0;U<ge;U+=1)this.shapes[U].localShapeCollection.releaseShapes(),this.shapes[U].shape._mdf=!0,this.shapes[U].shape.paths=this.shapes[U].localShapeCollection,this._mdf&&(this.shapes[U].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(U=0;U<ge;U+=1)this.shapes[U].pathsData.length=0,this.shapes[U].shape._mdf=!0}else{var Y=[],pe,he;for(U=0;U<ge;U+=1)if(pe=this.shapes[U],!pe.shape._mdf&&!this._mdf&&!c&&this.m!==2)pe.shape.paths=pe.localShapeCollection;else{if(B=pe.shape.paths,De=B._length,k=0,!pe.shape._mdf&&pe.pathsData.length)k=pe.totalShapeLength;else{for(Ce=this.releasePathsData(pe.pathsData),Q=0;Q<De;Q+=1)Re=Gr.getSegmentsLength(B.shapes[Q]),Ce.push(Re),k+=Re.totalLength;pe.totalShapeLength=k,pe.pathsData=Ce}ee+=k,pe.shape._mdf=!0}var W=p,Z=v,L=0,j;for(U=ge-1;U>=0;U-=1)if(pe=this.shapes[U],pe.shape._mdf){for(he=pe.localShapeCollection,he.releaseShapes(),this.m===2&&ge>1?(j=this.calculateShapeEdges(p,v,pe.totalShapeLength,L,ee),L+=pe.totalShapeLength):j=[[W,Z]],De=j.length,Q=0;Q<De;Q+=1){W=j[Q][0],Z=j[Q][1],Y.length=0,Z<=1?Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength*Z}):W>=1?Y.push({s:pe.totalShapeLength*(W-1),e:pe.totalShapeLength*(Z-1)}):(Y.push({s:pe.totalShapeLength*W,e:pe.totalShapeLength}),Y.push({s:0,e:pe.totalShapeLength*(Z-1)}));var H=this.addShapes(pe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var ne=pe.shape.paths.shapes[pe.shape.paths._length-1];if(ne.c){var ue=H.pop();this.addPaths(H,he),H=this.addShapes(pe,Y[1],ue)}else this.addPaths(H,he),H=this.addShapes(pe,Y[1])}this.addPaths(H,he)}}pe.shape.paths=he}}},kr.prototype.addPaths=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)p.addShape(c[v])},kr.prototype.addSegment=function(c,p,v,D,_,B,U){_.setXYAt(p[0],p[1],"o",B),_.setXYAt(v[0],v[1],"i",B+1),U&&_.setXYAt(c[0],c[1],"v",B),_.setXYAt(D[0],D[1],"v",B+1)},kr.prototype.addSegmentFromArray=function(c,p,v,D){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),D&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},kr.prototype.addShapes=function(c,p,v){var D=c.pathsData,_=c.shape.paths.shapes,B,U=c.shape.paths._length,ge,Q,De=0,Ce,Re,k,ee,Y=[],pe,he=!0;for(v?(Re=v._length,pe=v._length):(v=Yn.newElement(),Re=0,pe=0),Y.push(v),B=0;B<U;B+=1){for(k=D[B].lengths,v.c=_[B].c,Q=_[B].c?k.length:k.length+1,ge=1;ge<Q;ge+=1)if(Ce=k[ge-1],De+Ce.addedLength<p.s)De+=Ce.addedLength,v.c=!1;else if(De>p.e){v.c=!1;break}else p.s<=De&&p.e>=De+Ce.addedLength?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[ge],_[B].v[ge],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[ge],_[B].o[ge-1],_[B].i[ge],(p.s-De)/Ce.addedLength,(p.e-De)/Ce.addedLength,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1),De+=Ce.addedLength,Re+=1;if(_[B].c&&k.length){if(Ce=k[ge-1],De<=p.e){var W=k[ge-1].addedLength;p.s<=De&&p.e>=De+W?(this.addSegment(_[B].v[ge-1],_[B].o[ge-1],_[B].i[0],_[B].v[0],v,Re,he),he=!1):(ee=Gr.getNewSegment(_[B].v[ge-1],_[B].v[0],_[B].o[ge-1],_[B].i[0],(p.s-De)/W,(p.e-De)/W,k[ge-1]),this.addSegmentFromArray(ee,v,Re,he),he=!1,v.c=!1)}else v.c=!1;De+=Ce.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[pe][0],v.v[pe][1],"i",pe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),De>p.e)break;B<U-1&&(v=Yn.newElement(),he=!0,Y.push(v),Re=0)}return Y};function ka(){}Be([mr],ka),ka.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},ka.prototype.processPath=function(c,p){var v=p/100,D=[0,0],_=c._length,B=0;for(B=0;B<_;B+=1)D[0]+=c.v[B][0],D[1]+=c.v[B][1];D[0]/=_,D[1]/=_;var U=Yn.newElement();U.c=c.c;var ge,Q,De,Ce,Re,k;for(B=0;B<_;B+=1)ge=c.v[B][0]+(D[0]-c.v[B][0])*v,Q=c.v[B][1]+(D[1]-c.v[B][1])*v,De=c.o[B][0]+(D[0]-c.o[B][0])*-v,Ce=c.o[B][1]+(D[1]-c.o[B][1])*-v,Re=c.i[B][0]+(D[0]-c.i[B][0])*-v,k=c.i[B][1]+(D[1]-c.i[B][1])*-v,U.setTripleAt(ge,Q,De,Ce,Re,k,B);return U},ka.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v;if(U!==0){var ge,Q;for(v=0;v<D;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)Q.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Qo=function(){var c=[0,0];function p(Q){var De=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||De,this.a&&Q.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Q.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Q.skewFromAxis(-this.sk.v,this.sa.v),this.r?Q.rotate(-this.r.v):Q.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Q.translate(this.px.v,this.py.v,-this.pz.v):Q.translate(this.px.v,this.py.v,0):Q.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(Q){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Q){var De;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Ce,Re;if(De=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/De,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/De,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/De,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/De,0)):(Ce=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/De,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Re=[];var k=this.px,ee=this.py;k._caching.lastFrame+k.offsetTime<=k.keyframes[0].t?(Ce[0]=k.getValueAtTime((k.keyframes[0].t+.01)/De,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/De,0),Re[0]=k.getValueAtTime(k.keyframes[0].t/De,0),Re[1]=ee.getValueAtTime(ee.keyframes[0].t/De,0)):k._caching.lastFrame+k.offsetTime>=k.keyframes[k.keyframes.length-1].t?(Ce[0]=k.getValueAtTime(k.keyframes[k.keyframes.length-1].t/De,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/De,0),Re[0]=k.getValueAtTime((k.keyframes[k.keyframes.length-1].t-.01)/De,0),Re[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/De,0)):(Ce=[k.pv,ee.pv],Re[0]=k.getValueAtTime((k._caching.lastFrame+k.offsetTime-.01)/De,k.offsetTime),Re[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/De,ee.offsetTime))}else Re=c,Ce=Re;this.v.rotate(-Math.atan2(Ce[1]-Re[1],Ce[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function D(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function _(){}function B(Q){this._addDynamicProperty(Q),this.elem.addDynamicProperty(Q),this._isDirty=!0}function U(Q,De,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=De,this.v=new Mn,this.pre=new Mn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),De.p&&De.p.s?(this.px=at.getProp(Q,De.p.x,0,0,this),this.py=at.getProp(Q,De.p.y,0,0,this),De.p.z&&(this.pz=at.getProp(Q,De.p.z,0,0,this))):this.p=at.getProp(Q,De.p||{k:[0,0,0]},1,0,this),De.rx){if(this.rx=at.getProp(Q,De.rx,0,Qt,this),this.ry=at.getProp(Q,De.ry,0,Qt,this),this.rz=at.getProp(Q,De.rz,0,Qt,this),De.or.k[0].ti){var Re,k=De.or.k.length;for(Re=0;Re<k;Re+=1)De.or.k[Re].to=null,De.or.k[Re].ti=null}this.or=at.getProp(Q,De.or,1,Qt,this),this.or.sh=!0}else this.r=at.getProp(Q,De.r||{k:0},0,Qt,this);De.sk&&(this.sk=at.getProp(Q,De.sk,0,Qt,this),this.sa=at.getProp(Q,De.sa,0,Qt,this)),this.a=at.getProp(Q,De.a||{k:[0,0,0]},1,0,this),this.s=at.getProp(Q,De.s||{k:[100,100,100]},1,.01,this),De.o?this.o=at.getProp(Q,De.o,0,.01,Q):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}U.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:D,autoOrient:_},Be([dn],U),U.prototype.addDynamicProperty=B,U.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function ge(Q,De,Ce){return new U(Q,De,Ce)}return{getTransformProperty:ge}}();function gr(){}Be([mr],gr),gr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=at.getProp(c,p.c,0,null,this),this.o=at.getProp(c,p.o,0,null,this),this.tr=Qo.getTransformProperty(c,p.tr,this),this.so=at.getProp(c,p.tr.so,0,.01,this),this.eo=at.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Mn,this.rMatrix=new Mn,this.sMatrix=new Mn,this.tMatrix=new Mn,this.matrix=new Mn},gr.prototype.applyTransforms=function(c,p,v,D,_,B){var U=B?-1:1,ge=D.s.v[0]+(1-D.s.v[0])*(1-_),Q=D.s.v[1]+(1-D.s.v[1])*(1-_);c.translate(D.p.v[0]*U*_,D.p.v[1]*U*_,D.p.v[2]),p.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),p.rotate(-D.r.v*U*_),p.translate(D.a.v[0],D.a.v[1],D.a.v[2]),v.translate(-D.a.v[0],-D.a.v[1],D.a.v[2]),v.scale(B?1/ge:ge,B?1/Q:Q),v.translate(D.a.v[0],D.a.v[1],D.a.v[2])},gr.prototype.init=function(c,p,v,D){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=D,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},gr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},gr.prototype.changeGroupRender=function(c,p){var v,D=c.length;for(v=0;v<D;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},gr.prototype.processShapes=function(c){var p,v,D,_,B,U=!1;if(this._mdf||c){var ge=Math.ceil(this.c.v);if(this._groups.length<ge){for(;this._groups.length<ge;){var Q={it:this.cloneElements(this._elements),ty:"gr"};Q.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Q),this._groups.splice(0,0,Q),this._currentCopies+=1}this.elem.reloadShapes(),U=!0}B=0;var De;for(D=0;D<=this._groups.length-1;D+=1){if(De=B<ge,this._groups[D]._render=De,this.changeGroupRender(this._groups[D].it,De),!De){var Ce=this.elemsData[D].it,Re=Ce[Ce.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}B+=1}this._currentCopies=ge;var k=this.o.v,ee=k%1,Y=k>0?Math.floor(k):Math.ceil(k),pe=this.pMatrix.props,he=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(k>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(k<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}D=this.data.m===1?0:this._currentCopies-1,_=this.data.m===1?1:-1,B=this._currentCopies;for(var L,j;B;){if(p=this.elemsData[D].it,v=p[p.length-1].transform.mProps.v.props,j=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(D/(this._currentCopies-1)),Z!==0){for((D!==0&&_===1||D!==this._currentCopies-1&&_===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),this.matrix.transform(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),L=0;L<j;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<j;L+=1)v[L]=this.matrix.props[L];Z+=1,B-=1,D+=_}}else for(B=this._currentCopies,D=0,_=1;B;)p=this.elemsData[D].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,B-=1,D+=_;return U},gr.prototype.addShape=function(){};function ho(){}Be([mr],ho),ho.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=at.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ho.prototype.processPath=function(c,p){var v=Yn.newElement();v.c=c.c;var D,_=c._length,B,U,ge,Q,De,Ce,Re=0,k,ee,Y,pe,he,W;for(D=0;D<_;D+=1)B=c.v[D],ge=c.o[D],U=c.i[D],B[0]===ge[0]&&B[1]===ge[1]&&B[0]===U[0]&&B[1]===U[1]?(D===0||D===_-1)&&!c.c?(v.setTripleAt(B[0],B[1],ge[0],ge[1],U[0],U[1],Re),Re+=1):(D===0?Q=c.v[_-1]:Q=c.v[D-1],De=Math.sqrt(Math.pow(B[0]-Q[0],2)+Math.pow(B[1]-Q[1],2)),Ce=De?Math.min(De/2,p)/De:0,he=B[0]+(Q[0]-B[0])*Ce,k=he,W=B[1]-(B[1]-Q[1])*Ce,ee=W,Y=k-(k-B[0])*xe,pe=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1,D===_-1?Q=c.v[0]:Q=c.v[D+1],De=Math.sqrt(Math.pow(B[0]-Q[0],2)+Math.pow(B[1]-Q[1],2)),Ce=De?Math.min(De/2,p)/De:0,Y=B[0]+(Q[0]-B[0])*Ce,k=Y,pe=B[1]+(Q[1]-B[1])*Ce,ee=pe,he=k-(k-B[0])*xe,W=ee-(ee-B[1])*xe,v.setTripleAt(k,ee,Y,pe,he,W,Re),Re+=1):(v.setTripleAt(c.v[D][0],c.v[D][1],c.o[D][0],c.o[D][1],c.i[D][0],c.i[D][1],Re),Re+=1);return v},ho.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.rd.v;if(U!==0){var ge,Q;for(v=0;v<D;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,B=ge.shape.paths._length,_=0;_<B;_+=1)Q.addShape(this.processPath(p[_],U));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function po(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Si(c){return Math.abs(c)<=1e-5}function hi(c,p,v){return c*(1-v)+p*v}function ar(c,p,v){return[hi(c[0],p[0],v),hi(c[1],p[1],v)]}function Ti(c,p,v){if(c===0)return[];var D=p*p-4*c*v;if(D<0)return[];var _=-p/(2*c);if(D===0)return[_];var B=Math.sqrt(D)/(2*c);return[_-B,_+B]}function Ls(c,p,v,D){return[-c+3*p-3*v+D,3*c-6*p+3*v,-3*c+3*p,c]}function Yu(c){return new pn(c,c,c,c,!1)}function pn(c,p,v,D,_){_&&ia(c,p)&&(p=ar(c,D,1/3)),_&&ia(v,D)&&(v=ar(c,D,2/3));var B=Ls(c[0],p[0],v[0],D[0]),U=Ls(c[1],p[1],v[1],D[1]);this.a=[B[0],U[0]],this.b=[B[1],U[1]],this.c=[B[2],U[2]],this.d=[B[3],U[3]],this.points=[c,p,v,D]}pn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},pn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},pn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},pn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},pn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Si(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var D=Math.sqrt(v);return Si(D)?D>0&&D<1?[p]:[]:[p-D,p+D].filter(function(_){return _>0&&_<1})},pn.prototype.split=function(c){if(c<=0)return[Yu(this.points[0]),this];if(c>=1)return[this,Yu(this.points[this.points.length-1])];var p=ar(this.points[0],this.points[1],c),v=ar(this.points[1],this.points[2],c),D=ar(this.points[2],this.points[3],c),_=ar(p,v,c),B=ar(v,D,c),U=ar(_,B,c);return[new pn(this.points[0],p,_,U,!0),new pn(U,B,D,this.points[3],!0)]};function Vs(c,p){var v=c.points[0][p],D=c.points[c.points.length-1][p];if(v>D){var _=D;D=v,v=_}for(var B=Ti(3*c.a[p],2*c.b[p],c.c[p]),U=0;U<B.length;U+=1)if(B[U]>0&&B[U]<1){var ge=c.point(B[U])[p];ge<v?v=ge:ge>D&&(D=ge)}return{min:v,max:D}}pn.prototype.bounds=function(){return{x:Vs(this,0),y:Vs(this,1)}},pn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function mo(c,p,v){var D=c.boundingBox();return{cx:D.cx,cy:D.cy,width:D.width,height:D.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Ns(c){var p=c.bez.split(.5);return[mo(p[0],c.t1,c.t),mo(p[1],c.t,c.t2)]}function Zu(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Mr(c,p,v,D,_,B){if(Zu(c,p)){if(v>=B||c.width<=D&&c.height<=D&&p.width<=D&&p.height<=D){_.push([c.t,p.t]);return}var U=Ns(c),ge=Ns(p);Mr(U[0],ge[0],v+1,D,_,B),Mr(U[0],ge[1],v+1,D,_,B),Mr(U[1],ge[0],v+1,D,_,B),Mr(U[1],ge[1],v+1,D,_,B)}}pn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var D=[];return Mr(mo(this,0,1),mo(c,0,1),0,p,D,v),D},pn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new pn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},pn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new pn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function js(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Ma(c,p,v,D){var _=[c[0],c[1],1],B=[p[0],p[1],1],U=[v[0],v[1],1],ge=[D[0],D[1],1],Q=js(js(_,B),js(U,ge));return Si(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function Ra(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function go(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function ia(c,p){return po(c[0],p[0])&&po(c[1],p[1])}function vo(){}Be([mr],vo),vo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=at.getProp(c,p.s,0,null,this),this.frequency=at.getProp(c,p.r,0,null,this),this.pointsType=at.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function es(c,p,v,D,_,B,U){var ge=v-Math.PI/2,Q=v+Math.PI/2,De=p[0]+Math.cos(v)*D*_,Ce=p[1]-Math.sin(v)*D*_;c.setTripleAt(De,Ce,De+Math.cos(ge)*B,Ce-Math.sin(ge)*B,De+Math.cos(Q)*U,Ce-Math.sin(Q)*U,c.length())}function Xu(c,p){var v=[p[0]-c[0],p[1]-c[1]],D=-Math.PI*.5,_=[Math.cos(D)*v[0]-Math.sin(D)*v[1],Math.sin(D)*v[0]+Math.cos(D)*v[1]];return _}function Mc(c,p){var v=p===0?c.length()-1:p-1,D=(p+1)%c.length(),_=c.v[v],B=c.v[D],U=Xu(_,B);return Math.atan2(0,1)-Math.atan2(U[1],U[0])}function yo(c,p,v,D,_,B,U){var ge=Mc(p,v),Q=p.v[v%p._length],De=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Re=B===2?Math.sqrt(Math.pow(Q[0]-De[0],2)+Math.pow(Q[1]-De[1],2)):0,k=B===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;es(c,p.v[v%p._length],ge,U,D,k/((_+1)*2),Re/((_+1)*2))}function Rc(c,p,v,D,_,B){for(var U=0;U<D;U+=1){var ge=(U+1)/(D+1),Q=_===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,De=p.normalAngle(ge),Ce=p.point(ge);es(c,Ce,De,B,v,Q/((D+1)*2),Q/((D+1)*2)),B=-B}return B}vo.prototype.processPath=function(c,p,v,D){var _=c._length,B=Yn.newElement();if(B.c=c.c,c.c||(_-=1),_===0)return B;var U=-1,ge=pn.shapeSegment(c,0);yo(B,c,0,p,v,D,U);for(var Q=0;Q<_;Q+=1)U=Rc(B,ge,p,v,D,-U),Q===_-1&&!c.c?ge=null:ge=pn.shapeSegment(c,(Q+1)%_),yo(B,c,Q+1,p,v,D,U);return B},vo.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amplitude.v,ge=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,ge,Q));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function bo(c,p,v){var D=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ra(c,D,v),Ra(p,D,v)]}function Gt(c,p){var v,D,_,B,U,ge,Q;Q=bo(c.points[0],c.points[1],p),v=Q[0],D=Q[1],Q=bo(c.points[1],c.points[2],p),_=Q[0],B=Q[1],Q=bo(c.points[2],c.points[3],p),U=Q[0],ge=Q[1];var De=Ma(v,D,_,B);De===null&&(De=D);var Ce=Ma(U,ge,_,B);return Ce===null&&(Ce=U),new pn(v,De,Ce,ge)}function en(c,p,v,D,_){var B=p.points[3],U=v.points[0];if(D===3||ia(B,U))return B;if(D===2){var ge=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,De=Ma(B,Ra(B,ge+Math.PI/2,100),U,Ra(U,ge+Math.PI/2,100)),Ce=De?go(De,B):go(B,U)/2,Re=Ra(B,ge,2*Ce*xe);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=Ra(U,Q,2*Ce*xe),c.setTripleAt(U[0],U[1],U[0],U[1],Re[0],Re[1],c.length()),U}var k=ia(B,p.points[2])?p.points[0]:p.points[2],ee=ia(U,v.points[1])?v.points[3]:v.points[1],Y=Ma(k,B,U,ee);return Y&&go(Y,B)<_?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):B}function ie(c,p){var v=c.intersections(p);return v.length&&po(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),D=p.slice(),_=ie(c[c.length-1],p[0]);return _&&(v[c.length-1]=c[c.length-1].split(_[0])[0],D[0]=p[0].split(_[1])[1]),c.length>1&&p.length>1&&(_=ie(c[0],p[p.length-1]),_)?[[c[0].split(_[0])[0]],[p[p.length-1].split(_[1])[1]]]:[v,D]}function We(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),D,_,B,U;if(v.length===0)return[Gt(c,p)];if(v.length===1||po(v[1],1))return B=c.split(v[0]),D=B[0],_=B[1],[Gt(D,p),Gt(_,p)];B=c.split(v[0]),D=B[0];var ge=(v[1]-v[0])/(1-v[0]);return B=B[1].split(ge),U=B[0],_=B[1],[Gt(D,p),Gt(U,p),Gt(_,p)]}function bn(){}Be([mr],bn),bn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=at.getProp(c,p.a,0,null,this),this.miterLimit=at.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},bn.prototype.processPath=function(c,p,v,D){var _=Yn.newElement();_.c=c.c;var B=c.length();c.c||(B-=1);var U,ge,Q,De=[];for(U=0;U<B;U+=1)Q=pn.shapeSegment(c,U),De.push(pt(Q,p));if(!c.c)for(U=B-1;U>=0;U-=1)Q=pn.shapeSegmentInverted(c,U),De.push(pt(Q,p));De=We(De);var Ce=null,Re=null;for(U=0;U<De.length;U+=1){var k=De[U];for(Re&&(Ce=en(_,Re,k[0],v,D)),Re=k[k.length-1],ge=0;ge<k.length;ge+=1)Q=k[ge],Ce&&ia(Q.points[0],Ce)?_.setXYAt(Q.points[1][0],Q.points[1][1],"o",_.length()-1):_.setTripleAt(Q.points[0][0],Q.points[0][1],Q.points[1][0],Q.points[1][1],Q.points[0][0],Q.points[0][1],_.length()),_.setTripleAt(Q.points[3][0],Q.points[3][1],Q.points[3][0],Q.points[3][1],Q.points[2][0],Q.points[2][1],_.length()),Ce=Q.points[3]}return De.length&&en(_,Re,De[0][0],v,D),_},bn.prototype.processShapes=function(c){var p,v,D=this.shapes.length,_,B,U=this.amount.v,ge=this.miterLimit.v,Q=this.lineJoin;if(U!==0){var De,Ce;for(v=0;v<D;v+=1){if(De=this.shapes[v],Ce=De.localShapeCollection,!(!De.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),De.shape._mdf=!0,p=De.shape.paths.shapes,B=De.shape.paths._length,_=0;_<B;_+=1)Ce.addShape(this.processPath(p[_],U,Q,ge));De.shape.paths=De.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function rr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",D="normal",_=p.length,B,U=0;U<_;U+=1)switch(B=p[U].toLowerCase(),B){case"italic":D="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:D,weight:c.fWeight||v}}var or=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var D=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],_=[65039,8205];function B(j){var H=j.split(","),ne,ue=H.length,me=[];for(ne=0;ne<ue;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&me.push(H[ne]);return me.join(",")}function U(j,H){var ne=_e("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var ue=_e("span");ue.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(ue),document.body.appendChild(ne);var me=ue.offsetWidth;return ue.style.fontFamily=B(j)+", "+H,{node:ue,w:me,parent:ne}}function ge(){var j,H=this.fonts.length,ne,ue,me=H;for(j=0;j<H;j+=1)this.fonts[j].loaded?me-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(ne=this.fonts[j].monoCase.node,ue=this.fonts[j].monoCase.w,ne.offsetWidth!==ue?(me-=1,this.fonts[j].loaded=!0):(ne=this.fonts[j].sansCase.node,ue=this.fonts[j].sansCase.w,ne.offsetWidth!==ue&&(me-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));me!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Q(j,H){var ne=document.body&&H?"svg":"canvas",ue,me=rr(j);if(ne==="svg"){var Oe=bt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",j.fFamily),Oe.setAttribute("font-style",me.style),Oe.setAttribute("font-weight",me.weight),Oe.textContent="1",j.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",j.fClass)):Oe.style.fontFamily=j.fFamily,H.appendChild(Oe),ue=Oe}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=me.style+" "+me.weight+" 100px "+j.fFamily,ue=nt}function tt(Ve){return ne==="svg"?(ue.textContent=Ve,ue.getComputedTextLength()):ue.measureText(Ve).width}return{measureText:tt}}function De(j,H){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function($e){$e.helper=Q($e),$e.cache={}}),this.fonts=j.list;return}var ne=j.list,ue,me=ne.length,Oe=me;for(ue=0;ue<me;ue+=1){var nt=!0,tt,Ve;if(ne[ue].loaded=!1,ne[ue].monoCase=U(ne[ue].fFamily,"monospace"),ne[ue].sansCase=U(ne[ue].fFamily,"sans-serif"),!ne[ue].fPath)ne[ue].loaded=!0,Oe-=1;else if(ne[ue].fOrigin==="p"||ne[ue].origin===3){if(tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[ue].fFamily+'"], style[f-origin="3"][f-family="'+ne[ue].fFamily+'"]'),tt.length>0&&(nt=!1),nt){var st=_e("style");st.setAttribute("f-forigin",ne[ue].fOrigin),st.setAttribute("f-origin",ne[ue].origin),st.setAttribute("f-family",ne[ue].fFamily),st.type="text/css",st.innerText="@font-face {font-family: "+ne[ue].fFamily+"; font-style: normal; src: url('"+ne[ue].fPath+"');}",H.appendChild(st)}}else if(ne[ue].fOrigin==="g"||ne[ue].origin===1){for(tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ve=0;Ve<tt.length;Ve+=1)tt[Ve].href.indexOf(ne[ue].fPath)!==-1&&(nt=!1);if(nt){var ct=_e("link");ct.setAttribute("f-forigin",ne[ue].fOrigin),ct.setAttribute("f-origin",ne[ue].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[ue].fPath,document.body.appendChild(ct)}}else if(ne[ue].fOrigin==="t"||ne[ue].origin===2){for(tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ve=0;Ve<tt.length;Ve+=1)ne[ue].fPath===tt[Ve].src&&(nt=!1);if(nt){var Le=_e("link");Le.setAttribute("f-forigin",ne[ue].fOrigin),Le.setAttribute("f-origin",ne[ue].origin),Le.setAttribute("rel","stylesheet"),Le.setAttribute("href",ne[ue].fPath),H.appendChild(Le)}}ne[ue].helper=Q(ne[ue],H),ne[ue].cache={},this.fonts.push(ne[ue])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(j){if(j){this.chars||(this.chars=[]);var H,ne=j.length,ue,me=this.chars.length,Oe;for(H=0;H<ne;H+=1){for(ue=0,Oe=!1;ue<me;)this.chars[ue].style===j[H].style&&this.chars[ue].fFamily===j[H].fFamily&&this.chars[ue].ch===j[H].ch&&(Oe=!0),ue+=1;Oe||(this.chars.push(j[H]),me+=1)}}}function Re(j,H,ne){for(var ue=0,me=this.chars.length;ue<me;){if(this.chars[ue].ch===j&&this.chars[ue].style===H&&this.chars[ue].fFamily===ne)return this.chars[ue];ue+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,H,ne)),p}function k(j,H,ne){var ue=this.getFontByName(H),me=j.charCodeAt(0);if(!ue.cache[me+1]){var Oe=ue.helper;if(j===" "){var nt=Oe.measureText("|"+j+"|"),tt=Oe.measureText("||");ue.cache[me+1]=(nt-tt)/100}else ue.cache[me+1]=Oe.measureText(j)/100}return ue.cache[me+1]*ne}function ee(j){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===j)return this.fonts[H];H+=1}return this.fonts[0]}function Y(j,H){var ne=j.toString(16)+H.toString(16);return D.indexOf(ne)!==-1}function pe(j,H){return H?j===_[0]&&H===_[1]:j===_[1]}function he(j){return v.indexOf(j)!==-1}function W(){this.isLoaded=!0}var Z=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Z.isModifier=Y,Z.isZeroWidthJoiner=pe,Z.isCombinedCharacter=he;var L={addChars:Ce,addFonts:De,getCharData:Re,getFontByName:ee,measureText:k,checkLoadedFonts:ge,setIsLoaded:W};return Z.prototype=L,Z}();function Vn(){}Vn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var wn=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Pi(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function _i(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Ks(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function ts(c,p,v){this.p=at.getProp(p,c.v,1,0,v)}function sr(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function xo(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function Rf(c,p,v){this.p=at.getProp(p,c.v,0,0,v)}function If(){this.p={}}function Ic(c,p){var v=c.ef||[];this.effectElements=[];var D,_=v.length,B;for(D=0;D<_;D+=1)B=new ns(v[D],p),this.effectElements.push(B)}function ns(c,p){this.init(c,p)}Be([dn],ns),ns.prototype.getValue=ns.prototype.iterateDynamicProperties,ns.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,D=this.data.ef.length,_,B=this.data.ef;for(v=0;v<D;v+=1){switch(_=null,B[v].ty){case 0:_=new Pi(B[v],p,this);break;case 1:_=new _i(B[v],p,this);break;case 2:_=new Ks(B[v],p,this);break;case 3:_=new ts(B[v],p,this);break;case 4:case 7:_=new Rf(B[v],p,this);break;case 10:_=new sr(B[v],p,this);break;case 11:_=new xo(B[v],p,this);break;case 5:_=new Ic(B[v],p);break;default:_=new If(B[v]);break}_&&this.effectElements.push(_)}};function aa(){}aa.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=wn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,D){this.globalData=v,this.comp=D,this.data=p,this.layerId=Dt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ic(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Rn(){}Rn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var D,_=this.dynamicProperties.length;for(D=0;D<_;D+=1)(v||this._isParent&&this.dynamicProperties[D].propType==="transform")&&(this.dynamicProperties[D].getValue(),this.dynamicProperties[D]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ia(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ia.prototype.prepareFrame=function(){},Be([Vn,aa,Rn],Ia),Ia.prototype.getBaseElement=function(){return null},Ia.prototype.renderFrame=function(){},Ia.prototype.destroy=function(){},Ia.prototype.initExpressions=function(){},Ia.prototype.getFootageData=function(){return this.footageData};function fn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var D=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(D),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=at.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}fn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Be([Vn,aa,Rn],fn),fn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},fn.prototype.show=function(){},fn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},fn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},fn.prototype.resume=function(){this._canPlay=!0},fn.prototype.setRate=function(c){this.audio.rate(c)},fn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},fn.prototype.getBaseElement=function(){return null},fn.prototype.destroy=function(){},fn.prototype.sourceRectAtTime=function(){},fn.prototype.initExpressions=function(){};function ur(){}ur.prototype.checkLayers=function(c){var p,v=this.layers.length,D;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(D=this.layers[p],D.ip-D.st<=c-this.layers[p].st&&D.op-D.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},ur.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},ur.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ur.prototype.createAudio=function(c){return new fn(c,this.globalData,this)},ur.prototype.createFootage=function(c){return new Ia(c,this.globalData,this)},ur.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},ur.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,D,_=this.layers.length;for(p=0;p<v;p+=1)for(D=0;D<_;){if(this.layers[D].id===c[p].id){this.layers[D]=c[p];break}D+=1}},ur.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},ur.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ur.prototype.buildElementParenting=function(c,p,v){for(var D=this.elements,_=this.layers,B=0,U=_.length;B<U;)_[B].ind==p&&(!D[B]||D[B]===!0?(this.buildItem(B),this.addPendingElement(c)):(v.push(D[B]),D[B].setAsParent(),_[B].parent!==void 0?this.buildElementParenting(c,_[B].parent,v):c.setHierarchy(v))),B+=1},ur.prototype.addPendingElement=function(c){this.pendingElements.push(c)},ur.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var D=this.createComp(c[p]);D.initExpressions(),this.globalData.projectInterface.registerComposition(D)}},ur.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},ur.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var D,_=this.elements.length;for(D=0;D<_;D+=1)if(this.elements[D].data.nm===p){v=this.elements[D];break}}return c.length===0?v:v.getElementByPath(c)},ur.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new or,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function Do(){}Do.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Qo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Mn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,D=0,_=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;D<_;){if(this.hierarchy[D].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}D+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),D=0;D<_;D+=1)p=this.hierarchy[D].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var D=!0,_=this.comp;D;)_.finalTransform?(_.data.hasMask&&v.splice(0,0,_.finalTransform),_=_.comp):D=!1;var B,U=v.length,ge;for(B=0;B<U;B+=1)ge=v[B].mat.applyToPointArray(0,0,0),p=[p[0]-ge[0],p[1]-ge[1],0];return p},mHelper:new Mn};function Er(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var D=this.globalData.defs,_,B=this.masksProperties?this.masksProperties.length:0;this.viewData=qe(B),this.solidPath="";var U,ge=this.masksProperties,Q=0,De=[],Ce,Re,k=Dt(),ee,Y,pe,he,W="clipPath",Z="clip-path";for(_=0;_<B;_+=1)if((ge[_].mode!=="a"&&ge[_].mode!=="n"||ge[_].inv||ge[_].o.k!==100||ge[_].o.x)&&(W="mask",Z="mask"),(ge[_].mode==="s"||ge[_].mode==="i")&&Q===0?(ee=bt("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),De.push(ee)):ee=null,U=bt("path"),ge[_].mode==="n")this.viewData[_]={op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),elem:U,lastPath:""},D.appendChild(U);else{Q+=1,U.setAttribute("fill",ge[_].mode==="s"?"#000000":"#ffffff"),U.setAttribute("clip-rule","nonzero");var L;if(ge[_].x.k!==0?(W="mask",Z="mask",he=at.getProp(this.element,ge[_].x,0,null,this.element),L=Dt(),Y=bt("filter"),Y.setAttribute("id",L),pe=bt("feMorphology"),pe.setAttribute("operator","erode"),pe.setAttribute("in","SourceGraphic"),pe.setAttribute("radius","0"),Y.appendChild(pe),D.appendChild(Y),U.setAttribute("stroke",ge[_].mode==="s"?"#000000":"#ffffff")):(pe=null,he=null),this.storedData[_]={elem:U,x:he,expan:pe,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},ge[_].mode==="i"){Re=De.length;var j=bt("g");for(Ce=0;Ce<Re;Ce+=1)j.appendChild(De[Ce]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",k+"_"+Q),H.appendChild(U),D.appendChild(H),j.setAttribute("mask","url("+Se()+"#"+k+"_"+Q+")"),De.length=0,De.push(j)}else De.push(U);ge[_].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[_]={elem:U,lastPath:"",op:at.getProp(this.element,ge[_].o,0,.01,this.element),prop:fi.getShapeProp(this.element,ge[_],3),invRect:ee},this.viewData[_].prop.k||this.drawPath(ge[_],this.viewData[_].prop.v,this.viewData[_])}for(this.maskElement=bt(W),B=De.length,_=0;_<B;_+=1)this.maskElement.appendChild(De[_]);Q>0&&(this.maskElement.setAttribute("id",k),this.element.maskedElement.setAttribute(Z,"url("+Se()+"#"+k+")"),D.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Er.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Er.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,D=this.masksProperties.length;for(v=0;v<D;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var _=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Se()+"#"+this.storedData[v].filterId+")")),_.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Er.prototype.getMaskelement=function(){return this.maskElement},Er.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Er.prototype.drawPath=function(c,p,v){var D=" M"+p.v[0][0]+","+p.v[0][1],_,B;for(B=p._length,_=1;_<B;_+=1)D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[_][0]+","+p.i[_][1]+" "+p.v[_][0]+","+p.v[_][1];if(p.c&&B>1&&(D+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==D){var U="";v.elem&&(p.c&&(U=c.inv?this.solidPath+D:D),v.elem.setAttribute("d",U)),v.lastPath=D}},Er.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Oa=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(D,_){var B=bt("filter");return B.setAttribute("id",D),_!==!0&&(B.setAttribute("filterUnits","objectBoundingBox"),B.setAttribute("x","0%"),B.setAttribute("y","0%"),B.setAttribute("width","100%"),B.setAttribute("height","100%")),B}function v(){var D=bt("feColorMatrix");return D.setAttribute("type","matrix"),D.setAttribute("color-interpolation-filters","sRGB"),D.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),D}return c}(),Ju=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),un={},oa="filter_result_";function Qu(c){var p,v="SourceGraphic",D=c.data.ef?c.data.ef.length:0,_=Dt(),B=Oa.createFilter(_,!0),U=0;this.filters=[];var ge;for(p=0;p<D;p+=1){ge=null;var Q=c.data.ef[p].ty;if(un[Q]){var De=un[Q].effect;ge=new De(B,c.effectsManager.effectElements[p],c,oa+U,v),v=oa+U,un[Q].countsAsEffect&&(U+=1)}ge&&this.filters.push(ge)}U&&(c.globalData.defs.appendChild(B),c.layerElement.setAttribute("filter","url("+Se()+"#"+_+")")),this.filters.length&&c.addRenderableComponent(this)}Qu.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function zs(){}zs.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var D=bt("clipPath"),_=bt("path");_.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var B=Dt();if(D.setAttribute("id",B),D.appendChild(_),this.globalData.defs.appendChild(D),this.checkMasks()){var U=bt("g");U.setAttribute("clip-path","url("+Se()+"#"+B+")"),U.appendChild(this.layerElement),this.transformedElement=U,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Se()+"#"+B+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Er(this.data,this,this.globalData),this.renderableEffectsManager=new Qu(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,D,_,B,U;if(p===1||p===3){var ge=bt("mask");ge.setAttribute("id",v),ge.setAttribute("mask-type",p===3?"luminance":"alpha"),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ge.appendChild(B),this.globalData.defs.appendChild(ge),!Ju.maskType&&p===1&&(ge.setAttribute("mask-type","luminance"),D=Dt(),_=Oa.createFilter(D),this.globalData.defs.appendChild(_),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),U.appendChild(B),ge.appendChild(U),U.setAttribute("filter","url("+Se()+"#"+D+")"))}else if(p===2){var Q=bt("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var De=bt("g");Q.appendChild(De),D=Dt(),_=Oa.createFilter(D);var Ce=bt("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),_.appendChild(Ce);var Re=bt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Re),this.globalData.defs.appendChild(_);var k=bt("rect");k.setAttribute("width",this.comp.data.w),k.setAttribute("height",this.comp.data.h),k.setAttribute("x","0"),k.setAttribute("y","0"),k.setAttribute("fill","#ffffff"),k.setAttribute("opacity","0"),De.setAttribute("filter","url("+Se()+"#"+D+")"),De.appendChild(k),B=bt("use"),B.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),De.appendChild(B),Ju.maskType||(Q.setAttribute("mask-type","luminance"),_.appendChild(Oa.createAlphaToLuminanceFilter()),U=bt("g"),De.appendChild(k),U.appendChild(this.layerElement),De.appendChild(U)),this.globalData.defs.appendChild(Q)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Se()+"#"+p+")")}};function La(){}La.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function qs(){}(function(){var c={initElement:function(v,D,_){this.initFrame(),this.initBaseData(v,D,_),this.initTransform(v,D,_),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Be([Vn,Ge(c)],qs)})();function Us(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Be([aa,Do,zs,La,Rn,qs],Us),Us.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Us.prototype.sourceRectAtTime=function(){return this.sourceRect};function Km(c,p){this.elem=c,this.pos=p}function Oc(){}Oc.prototype={addShapeToModifiers:function(p){var v,D=this.shapeModifiers.length;for(v=0;v<D;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,D=this.shapeModifiers.length;v<D;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var D;for(p=v-1;p>=0&&(D=this.shapeModifiers[p].processShapes(this._isFirstFrame),!D);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,D=0,_=v.length;D<_;){if(v[D].elem===p)return v[D].pos;D+=1}return 0},addProcessedElement:function(p,v){for(var D=this.processedElements,_=D.length;_;)if(_-=1,D[_].elem===p){D[_].pos=v;return}D.push(new Km(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ws={1:"butt",2:"round",3:"square"},$o={1:"miter",2:"round",3:"bevel"};function Of(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var D=0,_=c.length;D<_;){if(c[D].mProps.dynamicProperties.length){this._isAnimated=!0;break}D+=1}}Of.prototype.setAsAnimated=function(){this._isAnimated=!0};function Lc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=bt("path"),this.msElem=null}Lc.prototype.reset=function(){this.d="",this._mdf=!1};function Hs(c,p,v,D){this.elem=c,this.frameId=-1,this.dataProps=qe(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Ne("float32",p.length?p.length-1:0),this.dashoffset=Ne("float32",1),this.initDynamicPropertyContainer(D);var _,B=p.length||0,U;for(_=0;_<B;_+=1)U=at.getProp(c,p[_].v,0,0,this),this.k=U.k||this.k,this.dataProps[_]={n:p[_].n,p:U};this.k||this.getValue(!0),this._isAnimated=this.k}Hs.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Be([dn],Hs);function el(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.c=at.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Be([dn],el);function tl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=at.getProp(c,p.o,0,.01,this),this.c=at.getProp(c,p.c,1,255,this),this.style=v}Be([dn],tl);function Vc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Be([dn],Vc);function Gs(c,p,v){this.data=p,this.c=Ne("uint8c",p.p*4);var D=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=Ne("float32",D),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=D,this.initDynamicPropertyContainer(v),this.prop=at.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Gs.prototype.comparePoints=function(c,p){for(var v=0,D=this.o.length/2,_;v<D;){if(_=Math.abs(c[v*4]-c[p*4+v*2]),_>.01)return!1;v+=1}return!0},Gs.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Gs.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,D,_;for(p=0;p<v;p+=1)D=p%4===0?100:255,_=Math.round(this.prop.v[p]*D),this.c[p]!==_&&(this.c[p]=_,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)D=p%2===0?100:1,_=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==_&&(this.o[p-this.data.p*4]=_,this._omdf=!c);this._mdf=!c}},Be([dn],Gs);function Va(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Va.prototype.initGradientData=function(c,p,v){this.o=at.getProp(c,p.o,0,.01,this),this.s=at.getProp(c,p.s,1,null,this),this.e=at.getProp(c,p.e,1,null,this),this.h=at.getProp(c,p.h||{k:0},0,.01,this),this.a=at.getProp(c,p.a||{k:0},0,Qt,this),this.g=new Gs(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Va.prototype.setGradientData=function(c,p){var v=Dt(),D=bt(p.t===1?"linearGradient":"radialGradient");D.setAttribute("id",v),D.setAttribute("spreadMethod","pad"),D.setAttribute("gradientUnits","userSpaceOnUse");var _=[],B,U,ge;for(ge=p.g.p*4,U=0;U<ge;U+=4)B=bt("stop"),D.appendChild(B),_.push(B);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Se()+"#"+v+")"),this.gf=D,this.cst=_},Va.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,D,_,B=bt("mask"),U=bt("path");B.appendChild(U);var ge=Dt(),Q=Dt();B.setAttribute("id",Q);var De=bt(c.t===1?"linearGradient":"radialGradient");De.setAttribute("id",ge),De.setAttribute("spreadMethod","pad"),De.setAttribute("gradientUnits","userSpaceOnUse"),_=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for(D=c.g.p*4;D<_;D+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),De.appendChild(v),Ce.push(v);U.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Se()+"#"+ge+")"),c.ty==="gs"&&(U.setAttribute("stroke-linecap",Ws[c.lc||2]),U.setAttribute("stroke-linejoin",$o[c.lj||2]),c.lj===1&&U.setAttribute("stroke-miterlimit",c.ml)),this.of=De,this.ms=B,this.ost=Ce,this.maskId=Q,p.msElem=U}},Be([dn],Va);function nl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=at.getProp(c,p.w,0,null,this),this.d=new Hs(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Be([Va,dn],nl);function zm(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function Lf(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Cr=function(p,v,D,_){if(v===0)return"";var B=p.o,U=p.i,ge=p.v,Q,De=" M"+_.applyToPointStringified(ge[0][0],ge[0][1]);for(Q=1;Q<v;Q+=1)De+=" C"+_.applyToPointStringified(B[Q-1][0],B[Q-1][1])+" "+_.applyToPointStringified(U[Q][0],U[Q][1])+" "+_.applyToPointStringified(ge[Q][0],ge[Q][1]);return D&&v&&(De+=" C"+_.applyToPointStringified(B[Q-1][0],B[Q-1][1])+" "+_.applyToPointStringified(U[0][0],U[0][1])+" "+_.applyToPointStringified(ge[0][0],ge[0][1]),De+="z"),De},Nc=function(){var c=new Mn,p=new Mn,v={createRenderFunction:D};function D(Re){switch(Re.ty){case"fl":return ge;case"gf":return De;case"gs":return Q;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return U;case"tr":return _;case"no":return B;default:return null}}function _(Re,k,ee){(ee||k.transform.op._mdf)&&k.transform.container.setAttribute("opacity",k.transform.op.v),(ee||k.transform.mProps._mdf)&&k.transform.container.setAttribute("transform",k.transform.mProps.v.to2dCSS())}function B(){}function U(Re,k,ee){var Y,pe,he,W,Z,L,j=k.styles.length,H=k.lvl,ne,ue,me,Oe,nt;for(L=0;L<j;L+=1){if(W=k.sh._mdf||ee,k.styles[L].lvl<H){for(ue=p.reset(),Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;!W&&Oe>0;)W=k.transformers[nt].mProps._mdf||W,Oe-=1,nt-=1;if(W)for(Oe=H-k.styles[L].lvl,nt=k.transformers.length-1;Oe>0;)me=k.transformers[nt].mProps.v.props,ue.transform(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],me[8],me[9],me[10],me[11],me[12],me[13],me[14],me[15]),Oe-=1,nt-=1}else ue=c;if(ne=k.sh.paths,pe=ne._length,W){for(he="",Y=0;Y<pe;Y+=1)Z=ne.shapes[Y],Z&&Z._length&&(he+=Cr(Z,Z._length,Z.c,ue));k.caches[L]=he}else he=k.caches[L];k.styles[L].d+=Re.hd===!0?"":he,k.styles[L]._mdf=W||k.styles[L]._mdf}}function ge(Re,k,ee){var Y=k.style;(k.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",k.o.v)}function Q(Re,k,ee){De(Re,k,ee),Ce(Re,k,ee)}function De(Re,k,ee){var Y=k.gf,pe=k.g._hasOpacity,he=k.s.v,W=k.e.v;if(k.o._mdf||ee){var Z=Re.ty==="gf"?"fill-opacity":"stroke-opacity";k.style.pElem.setAttribute(Z,k.o.v)}if(k.s._mdf||ee){var L=Re.t===1?"x1":"cx",j=L==="x1"?"y1":"cy";Y.setAttribute(L,he[0]),Y.setAttribute(j,he[1]),pe&&!k.g._collapsable&&(k.of.setAttribute(L,he[0]),k.of.setAttribute(j,he[1]))}var H,ne,ue,me;if(k.g._cmdf||ee){H=k.cst;var Oe=k.g.c;for(ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],me.setAttribute("offset",Oe[ne*4]+"%"),me.setAttribute("stop-color","rgb("+Oe[ne*4+1]+","+Oe[ne*4+2]+","+Oe[ne*4+3]+")")}if(pe&&(k.g._omdf||ee)){var nt=k.g.o;for(k.g._collapsable?H=k.cst:H=k.ost,ue=H.length,ne=0;ne<ue;ne+=1)me=H[ne],k.g._collapsable||me.setAttribute("offset",nt[ne*2]+"%"),me.setAttribute("stop-opacity",nt[ne*2+1])}if(Re.t===1)(k.e._mdf||ee)&&(Y.setAttribute("x2",W[0]),Y.setAttribute("y2",W[1]),pe&&!k.g._collapsable&&(k.of.setAttribute("x2",W[0]),k.of.setAttribute("y2",W[1])));else{var tt;if((k.s._mdf||k.e._mdf||ee)&&(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)),Y.setAttribute("r",tt),pe&&!k.g._collapsable&&k.of.setAttribute("r",tt)),k.e._mdf||k.h._mdf||k.a._mdf||ee){tt||(tt=Math.sqrt(Math.pow(he[0]-W[0],2)+Math.pow(he[1]-W[1],2)));var Ve=Math.atan2(W[1]-he[1],W[0]-he[0]),st=k.h.v;st>=1?st=.99:st<=-1&&(st=-.99);var ct=tt*st,Le=Math.cos(Ve+k.a.v)*ct+he[0],$e=Math.sin(Ve+k.a.v)*ct+he[1];Y.setAttribute("fx",Le),Y.setAttribute("fy",$e),pe&&!k.g._collapsable&&(k.of.setAttribute("fx",Le),k.of.setAttribute("fy",$e))}}}function Ce(Re,k,ee){var Y=k.style,pe=k.d;pe&&(pe._mdf||ee)&&pe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",pe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",pe.dashoffset[0])),k.c&&(k.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+xt(k.c.v[0])+","+xt(k.c.v[1])+","+xt(k.c.v[2])+")"),(k.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",k.o.v),(k.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",k.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",k.w.v))}return v}();function mn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Be([aa,Do,zs,Oc,La,Rn,qs],mn),mn.prototype.initSecondaryElement=function(){},mn.prototype.identityMatrix=new Mn,mn.prototype.buildExpressionInterface=function(){},mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},mn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,D,_=this.stylesList.length,B,U=[],ge=!1;for(D=0;D<_;D+=1){for(B=this.stylesList[D],ge=!1,U.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(B)!==-1&&(U.push(v),ge=v._isAnimated||ge);U.length>1&&ge&&this.setShapesAsAnimated(U)}},mn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},mn.prototype.createStyleElement=function(c,p){var v,D=new Lc(c,p),_=D.pElem;if(c.ty==="st")v=new el(this,c,D);else if(c.ty==="fl")v=new tl(this,c,D);else if(c.ty==="gf"||c.ty==="gs"){var B=c.ty==="gf"?Va:nl;v=new B(this,c,D),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),_.setAttribute("mask","url("+Se()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Vc(this,c,D));return(c.ty==="st"||c.ty==="gs")&&(_.setAttribute("stroke-linecap",Ws[c.lc||2]),_.setAttribute("stroke-linejoin",$o[c.lj||2]),_.setAttribute("fill-opacity","0"),c.lj===1&&_.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&_.setAttribute("fill-rule","evenodd"),c.ln&&_.setAttribute("id",c.ln),c.cl&&_.setAttribute("class",c.cl),c.bm&&(_.style["mix-blend-mode"]=wn(c.bm)),this.stylesList.push(D),this.addToAnimatedContents(c,v),v},mn.prototype.createGroupElement=function(c){var p=new zm;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=wn(c.bm)),p},mn.prototype.createTransformElement=function(c,p){var v=Qo.getTransformProperty(this,c,this),D=new Lf(v,v.o,p);return this.addToAnimatedContents(c,D),D},mn.prototype.createShapeElement=function(c,p,v){var D=4;c.ty==="rc"?D=5:c.ty==="el"?D=6:c.ty==="sr"&&(D=7);var _=fi.getShapeProp(this,c,D,this),B=new Of(p,v,_);return this.shapes.push(B),this.addShapeToModifiers(B),this.addToAnimatedContents(c,B),B},mn.prototype.addToAnimatedContents=function(c,p){for(var v=0,D=this.animatedContents.length;v<D;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Nc.createRenderFunction(c),element:p,data:c})},mn.prototype.setElementStyles=function(c){var p=c.styles,v,D=this.stylesList.length;for(v=0;v<D;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},mn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},mn.prototype.searchShapes=function(c,p,v,D,_,B,U){var ge=[].concat(B),Q,De=c.length-1,Ce,Re,k=[],ee=[],Y,pe,he;for(Q=De;Q>=0;Q-=1){if(he=this.searchProcessedElement(c[Q]),he?p[Q]=v[he-1]:c[Q]._render=U,c[Q].ty==="fl"||c[Q].ty==="st"||c[Q].ty==="gf"||c[Q].ty==="gs"||c[Q].ty==="no")he?p[Q].style.closed=!1:p[Q]=this.createStyleElement(c[Q],_),c[Q]._render&&p[Q].style.pElem.parentNode!==D&&D.appendChild(p[Q].style.pElem),k.push(p[Q].style);else if(c[Q].ty==="gr"){if(!he)p[Q]=this.createGroupElement(c[Q]);else for(Re=p[Q].it.length,Ce=0;Ce<Re;Ce+=1)p[Q].prevViewData[Ce]=p[Q].it[Ce];this.searchShapes(c[Q].it,p[Q].it,p[Q].prevViewData,p[Q].gr,_+1,ge,U),c[Q]._render&&p[Q].gr.parentNode!==D&&D.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(he||(p[Q]=this.createTransformElement(c[Q],D)),Y=p[Q].transform,ge.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(he||(p[Q]=this.createShapeElement(c[Q],ge,_)),this.setElementStyles(p[Q])):c[Q].ty==="tm"||c[Q].ty==="rd"||c[Q].ty==="ms"||c[Q].ty==="pb"||c[Q].ty==="zz"||c[Q].ty==="op"?(he?(pe=p[Q],pe.closed=!1):(pe=Fr.getModifier(c[Q].ty),pe.init(this,c[Q]),p[Q]=pe,this.shapeModifiers.push(pe)),ee.push(pe)):c[Q].ty==="rp"&&(he?(pe=p[Q],pe.closed=!0):(pe=Fr.getModifier(c[Q].ty),p[Q]=pe,pe.init(this,c,Q,p),this.shapeModifiers.push(pe),U=!1),ee.push(pe));this.addProcessedElement(c[Q],Q+1)}for(De=k.length,Q=0;Q<De;Q+=1)k[Q].closed=!0;for(De=ee.length,Q=0;Q<De;Q+=1)ee[Q].closed=!0},mn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},mn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function rl(c,p,v,D,_,B){this.o=c,this.sw=p,this.sc=v,this.fc=D,this.m=_,this.p=B,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!D,m:!0,p:!0}}rl.prototype.update=function(c,p,v,D,_,B){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var U=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,U=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,U=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,U=!0),this.fc!==D&&(this.fc=D,this._mdf.fc=!0,U=!0),this.m!==_&&(this.m=_,this._mdf.m=!0,U=!0),B.length&&(this.p[0]!==B[0]||this.p[1]!==B[1]||this.p[4]!==B[4]||this.p[5]!==B[5]||this.p[12]!==B[12]||this.p[13]!==B[13])&&(this.p=B,this._mdf.p=!0,U=!0),U};function lr(c,p){this._frameId=fe,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}lr.prototype.defaultBoxWidth=[0,0],lr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},lr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},lr.prototype.searchProperty=function(){return this.searchKeyframes()},lr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},lr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},lr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var D,_=this.effectsSequence.length,B=c||this.data.d.k[this.keysIndex].s;for(D=0;D<_;D+=1)v!==this.keysIndex?B=this.effectsSequence[D](B,B.t):B=this.effectsSequence[D](this.currentData,B.t);p!==B&&this.setCurrentData(B),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},lr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,D=c.length;v<=D-1&&!(v===D-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},lr.prototype.buildFinalText=function(c){for(var p=[],v=0,D=c.length,_,B,U=!1;v<D;)_=c.charCodeAt(v),or.isCombinedCharacter(_)?p[p.length-1]+=c.charAt(v):_>=55296&&_<=56319?(B=c.charCodeAt(v+1),B>=56320&&B<=57343?(U||or.isModifier(_,B)?(p[p.length-1]+=c.substr(v,2),U=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):_>56319?(B=c.charCodeAt(v+1),or.isZeroWidthJoiner(_,B)?(U=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):or.isZeroWidthJoiner(_)?(p[p.length-1]+=c.charAt(v),U=!0):p.push(c.charAt(v)),v+=1;return p},lr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,D=[],_,B,U,ge=0,Q,De=v.m.g,Ce=0,Re=0,k=0,ee=[],Y=0,pe=0,he,W,Z=p.getFontByName(c.f),L,j=0,H=rr(Z);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),B=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,ue;if(c.sz)for(var me=!0,Oe=c.sz[0],nt=c.sz[1],tt,Ve;me;){Ve=this.buildFinalText(c.t),tt=0,Y=0,B=Ve.length,ne=c.tr/1e3*c.finalSize;var st=-1;for(_=0;_<B;_+=1)ue=Ve[_].charCodeAt(0),U=!1,Ve[_]===" "?st=_:(ue===13||ue===3)&&(Y=0,U=!0,tt+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ve[_],Z.fStyle,Z.fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(Ve[_],c.f,c.finalSize),Y+j>Oe&&Ve[_]!==" "?(st===-1?B+=1:_=st,tt+=c.finalLineHeight||c.finalSize*1.2,Ve.splice(_,st===_?1:0,"\r"),st=-1,Y=0):(Y+=j,Y+=ne);tt+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&nt<tt?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ve,B=c.finalText.length,me=!1)}Y=-ne,j=0;var ct=0,Le;for(_=0;_<B;_+=1)if(U=!1,Le=c.finalText[_],ue=Le.charCodeAt(0),ue===13||ue===3?(ct=0,ee.push(Y),pe=Y>pe?Y:pe,Y=-2*ne,Q="",U=!0,k+=1):Q=Le,p.chars?(L=p.getCharData(Le,Z.fStyle,p.getFontByName(c.f).fFamily),j=U?0:L.w*c.finalSize/100):j=p.measureText(Q,c.f,c.finalSize),Le===" "?ct+=j+ne:(Y+=j+ne+ct,ct=0),D.push({l:j,an:j,add:Ce,n:U,anIndexes:[],val:Q,line:k,animatorJustifyOffset:0}),De==2){if(Ce+=j,Q===""||Q===" "||_===B-1){for((Q===""||Q===" ")&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;ge+=1,Ce=0}}else if(De==3){if(Ce+=j,Q===""||_===B-1){for(Q===""&&(Ce-=j);Re<=_;)D[Re].an=Ce,D[Re].ind=ge,D[Re].extra=j,Re+=1;Ce=0,ge+=1}}else D[ge].ind=ge,D[ge].extra=0,ge+=1;if(c.l=D,pe=Y>pe?Y:pe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=pe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var $e=v.a,ce,J;W=$e.length;var ve,Ke,Ie=[];for(he=0;he<W;he+=1){for(ce=$e[he],ce.a.sc&&(c.strokeColorAnim=!0),ce.a.sw&&(c.strokeWidthAnim=!0),(ce.a.fc||ce.a.fh||ce.a.fs||ce.a.fb)&&(c.fillColorAnim=!0),Ke=0,ve=ce.s.b,_=0;_<B;_+=1)J=D[_],J.anIndexes[he]=Ke,(ve==1&&J.val!==""||ve==2&&J.val!==""&&J.val!==" "||ve==3&&(J.n||J.val==" "||_==B-1)||ve==4&&(J.n||_==B-1))&&(ce.s.rn===1&&Ie.push(Ke),Ke+=1);v.a[he].s.totalChars=Ke;var lt=-1,St;if(ce.s.rn===1)for(_=0;_<B;_+=1)J=D[_],lt!=J.anIndexes[he]&&(lt=J.anIndexes[he],St=Ie.splice(Math.floor(Math.random()*Ie.length),1)[0]),J.anIndexes[he]=St}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},lr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},lr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},lr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},lr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var qm=function(){var c=Math.max,p=Math.min,v=Math.floor;function D(B,U){this._currentTextLength=-1,this.k=!1,this.data=U,this.elem=B,this.comp=B.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(B),this.s=at.getProp(B,U.s||{k:0},0,0,this),"e"in U?this.e=at.getProp(B,U.e,0,0,this):this.e={v:100},this.o=at.getProp(B,U.o||{k:0},0,0,this),this.xe=at.getProp(B,U.xe||{k:0},0,0,this),this.ne=at.getProp(B,U.ne||{k:0},0,0,this),this.sm=at.getProp(B,U.sm||{k:100},0,0,this),this.a=at.getProp(B,U.a,0,.01,this),this.dynamicProperties.length||this.getValue()}D.prototype={getMult:function(U){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ge=0,Q=0,De=1,Ce=1;this.ne.v>0?ge=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?De=1-this.xe.v/100:Ce=1+this.xe.v/100;var Re=lo.getBezierEasing(ge,Q,De,Ce).get,k=0,ee=this.finalS,Y=this.finalE,pe=this.data.sh;if(pe===2)Y===ee?k=U>=Y?1:0:k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===3)Y===ee?k=U>=Y?0:1:k=1-c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k=Re(k);else if(pe===4)Y===ee?k=0:(k=c(0,p(.5/(Y-ee)+(U-ee)/(Y-ee),1)),k<.5?k*=2:k=1-2*(k-.5)),k=Re(k);else if(pe===5){if(Y===ee)k=0;else{var he=Y-ee;U=p(c(0,U+.5-ee),Y-ee);var W=-he/2+U,Z=he/2;k=Math.sqrt(1-W*W/(Z*Z))}k=Re(k)}else pe===6?(Y===ee?k=0:(U=p(c(0,U+.5-ee),Y-ee),k=(1+Math.cos(Math.PI+Math.PI*2*U/(Y-ee)))/2),k=Re(k)):(U>=v(ee)&&(U-ee<0?k=c(0,p(p(Y,1)-(ee-U),1)):k=c(0,p(Y-U,1))),k=Re(k));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var j=.5-L*.5;k<j?k=0:(k=(k-j)/L,k>1&&(k=1))}return k*this.a.v},getValue:function(U){this.iterateDynamicProperties(),this._mdf=U||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,U&&this.data.r===2&&(this.e.v=this._currentTextLength);var ge=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/ge,De=this.s.v/ge+Q,Ce=this.e.v/ge+Q;if(De>Ce){var Re=De;De=Ce,Ce=Re}this.finalS=De,this.finalE=Ce}},Be([dn],D);function _(B,U,ge){return new D(B,U)}return{getTextSelectorProp:_}}();function Um(c,p,v){var D={propType:!1},_=at.getProp,B=p.a;this.a={r:B.r?_(c,B.r,0,Qt,v):D,rx:B.rx?_(c,B.rx,0,Qt,v):D,ry:B.ry?_(c,B.ry,0,Qt,v):D,sk:B.sk?_(c,B.sk,0,Qt,v):D,sa:B.sa?_(c,B.sa,0,Qt,v):D,s:B.s?_(c,B.s,1,.01,v):D,a:B.a?_(c,B.a,1,0,v):D,o:B.o?_(c,B.o,0,.01,v):D,p:B.p?_(c,B.p,1,0,v):D,sw:B.sw?_(c,B.sw,0,0,v):D,sc:B.sc?_(c,B.sc,1,0,v):D,fc:B.fc?_(c,B.fc,1,0,v):D,fh:B.fh?_(c,B.fh,0,0,v):D,fs:B.fs?_(c,B.fs,0,.01,v):D,fb:B.fb?_(c,B.fb,0,.01,v):D,t:B.t?_(c,B.t,0,0,v):D},this.s=qm.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Eo(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=qe(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Eo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,D=at.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new Um(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:D(this._elem,this._textData.p.a,0,0,this),f:D(this._elem,this._textData.p.f,0,0,this),l:D(this._elem,this._textData.p.l,0,0,this),r:D(this._elem,this._textData.p.r,0,0,this),p:D(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=D(this._elem,this._textData.m.a,1,0,this)},Eo.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,D=this._animatorsData,_=this._textData,B=this.mHelper,U=this._renderType,ge=this.renderedLetters.length,Q,De,Ce,Re,k=c.l,ee,Y,pe,he,W,Z,L,j,H,ne,ue,me,Oe,nt,tt;if(this._hasMaskedPath){if(tt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ve=tt.v;this._pathData.r.v&&(Ve=Ve.reverse()),ee={tLength:0,segments:[]},Re=Ve._length-1;var st;for(me=0,Ce=0;Ce<Re;Ce+=1)st=Gr.buildBezierData(Ve.v[Ce],Ve.v[Ce+1],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[Ce+1][0]-Ve.v[Ce+1][0],Ve.i[Ce+1][1]-Ve.v[Ce+1][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength;Ce=Re,tt.v.c&&(st=Gr.buildBezierData(Ve.v[Ce],Ve.v[0],[Ve.o[Ce][0]-Ve.v[Ce][0],Ve.o[Ce][1]-Ve.v[Ce][1]],[Ve.i[0][0]-Ve.v[0][0],Ve.i[0][1]-Ve.v[0][1]]),ee.tLength+=st.segmentLength,ee.segments.push(st),me+=st.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,L=0,Z=1,he=0,W=!0,ne=ee.segments,Y<0&&tt.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),L=ne.length-1,H=ne[L].points,Z=H.length-1;Y<0;)Y+=H[Z].partialLength,Z-=1,Z<0&&(L-=1,H=ne[L].points,Z=H.length-1);H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength}Re=k.length,Q=0,De=0;var ct=c.finalSize*1.2*.714,Le=!0,$e,ce,J,ve,Ke;ve=D.length;var Ie,lt=-1,St,Et,xn,Ut=Y,cr=L,Zn=Z,On=-1,Nn,jn,vr,dt,ln,Zr,Fi,sa,mi="",ua=this.defaultPropsArray,la;if(c.j===2||c.j===1){var Yt=0,Dn=0,ja=c.j===2?-.5:-1,gi=0,ca=!0;for(Ce=0;Ce<Re;Ce+=1)if(k[Ce].n){for(Yt&&(Yt+=Dn);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1;Yt=0,ca=!0}else{for(J=0;J<ve;J+=1)$e=D[J].a,$e.t.propType&&(ca&&c.j===2&&(Dn+=$e.t.v*ja),ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),Ie.length?Yt+=$e.t.v*Ie[0]*ja:Yt+=$e.t.v*Ie*ja);ca=!1}for(Yt&&(Yt+=Dn);gi<Ce;)k[gi].animatorJustifyOffset=Yt,gi+=1}for(Ce=0;Ce<Re;Ce+=1){if(B.reset(),Nn=1,k[Ce].n)Q=0,De+=c.yOffset,De+=Le?1:0,Y=Ut,Le=!1,this._hasMaskedPath&&(L=cr,Z=Zn,H=ne[L].points,j=H[Z-1],pe=H[Z],ue=pe.partialLength,he=0),mi="",sa="",Zr="",la="",ua=this.defaultPropsArray;else{if(this._hasMaskedPath){if(On!==k[Ce].line){switch(c.j){case 1:Y+=me-c.lineWidths[k[Ce].line];break;case 2:Y+=(me-c.lineWidths[k[Ce].line])/2;break}On=k[Ce].line}lt!==k[Ce].ind&&(k[lt]&&(Y+=k[lt].extra),Y+=k[Ce].an/2,lt=k[Ce].ind),Y+=v[0]*k[Ce].an*.005;var vi=0;for(J=0;J<ve;J+=1)$e=D[J].a,$e.p.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),Ie.length?vi+=$e.p.v[0]*Ie[0]:vi+=$e.p.v[0]*Ie),$e.a.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),Ie.length?vi+=$e.a.v[0]*Ie[0]:vi+=$e.a.v[0]*Ie);for(W=!0,this._pathData.a.v&&(Y=k[0].an*.5+(me-this._pathData.f.v-k[0].an*.5-k[k.length-1].an*.5)*lt/(Re-1),Y+=this._pathData.f.v);W;)he+ue>=Y+vi||!H?(Oe=(Y+vi-he)/pe.partialLength,Et=j.point[0]+(pe.point[0]-j.point[0])*Oe,xn=j.point[1]+(pe.point[1]-j.point[1])*Oe,B.translate(-v[0]*k[Ce].an*.005,-(v[1]*ct)*.01),W=!1):H&&(he+=pe.partialLength,Z+=1,Z>=H.length&&(Z=0,L+=1,ne[L]?H=ne[L].points:tt.v.c?(Z=0,L=0,H=ne[L].points):(he-=pe.partialLength,H=null)),H&&(j=pe,pe=H[Z],ue=pe.partialLength));St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0)}else St=k[Ce].an/2-k[Ce].add,B.translate(-St,0,0),B.translate(-v[0]*k[Ce].an*.005,-v[1]*ct*.01,0);for(J=0;J<ve;J+=1)$e=D[J].a,$e.t.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?Ie.length?Y+=$e.t.v*Ie[0]:Y+=$e.t.v*Ie:Ie.length?Q+=$e.t.v*Ie[0]:Q+=$e.t.v*Ie));for(c.strokeWidthAnim&&(vr=c.sw||0),c.strokeColorAnim&&(c.sc?jn=[c.sc[0],c.sc[1],c.sc[2]]:jn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<ve;J+=1)$e=D[J].a,$e.a.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),Ie.length?B.translate(-$e.a.v[0]*Ie[0],-$e.a.v[1]*Ie[1],$e.a.v[2]*Ie[2]):B.translate(-$e.a.v[0]*Ie,-$e.a.v[1]*Ie,$e.a.v[2]*Ie));for(J=0;J<ve;J+=1)$e=D[J].a,$e.s.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),Ie.length?B.scale(1+($e.s.v[0]-1)*Ie[0],1+($e.s.v[1]-1)*Ie[1],1):B.scale(1+($e.s.v[0]-1)*Ie,1+($e.s.v[1]-1)*Ie,1));for(J=0;J<ve;J+=1){if($e=D[J].a,ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),$e.sk.propType&&(Ie.length?B.skewFromAxis(-$e.sk.v*Ie[0],$e.sa.v*Ie[1]):B.skewFromAxis(-$e.sk.v*Ie,$e.sa.v*Ie)),$e.r.propType&&(Ie.length?B.rotateZ(-$e.r.v*Ie[2]):B.rotateZ(-$e.r.v*Ie)),$e.ry.propType&&(Ie.length?B.rotateY($e.ry.v*Ie[1]):B.rotateY($e.ry.v*Ie)),$e.rx.propType&&(Ie.length?B.rotateX($e.rx.v*Ie[0]):B.rotateX($e.rx.v*Ie)),$e.o.propType&&(Ie.length?Nn+=($e.o.v*Ie[0]-Nn)*Ie[0]:Nn+=($e.o.v*Ie-Nn)*Ie),c.strokeWidthAnim&&$e.sw.propType&&(Ie.length?vr+=$e.sw.v*Ie[0]:vr+=$e.sw.v*Ie),c.strokeColorAnim&&$e.sc.propType)for(ln=0;ln<3;ln+=1)Ie.length?jn[ln]+=($e.sc.v[ln]-jn[ln])*Ie[0]:jn[ln]+=($e.sc.v[ln]-jn[ln])*Ie;if(c.fillColorAnim&&c.fc){if($e.fc.propType)for(ln=0;ln<3;ln+=1)Ie.length?dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie[0]:dt[ln]+=($e.fc.v[ln]-dt[ln])*Ie;$e.fh.propType&&(Ie.length?dt=It(dt,$e.fh.v*Ie[0]):dt=It(dt,$e.fh.v*Ie)),$e.fs.propType&&(Ie.length?dt=zt(dt,$e.fs.v*Ie[0]):dt=zt(dt,$e.fs.v*Ie)),$e.fb.propType&&(Ie.length?dt=Pt(dt,$e.fb.v*Ie[0]):dt=Pt(dt,$e.fb.v*Ie))}}for(J=0;J<ve;J+=1)$e=D[J].a,$e.p.propType&&(ce=D[J].s,Ie=ce.getMult(k[Ce].anIndexes[J],_.a[J].s.totalChars),this._hasMaskedPath?Ie.length?B.translate(0,$e.p.v[1]*Ie[0],-$e.p.v[2]*Ie[1]):B.translate(0,$e.p.v[1]*Ie,-$e.p.v[2]*Ie):Ie.length?B.translate($e.p.v[0]*Ie[0],$e.p.v[1]*Ie[1],-$e.p.v[2]*Ie[2]):B.translate($e.p.v[0]*Ie,$e.p.v[1]*Ie,-$e.p.v[2]*Ie));if(c.strokeWidthAnim&&(Zr=vr<0?0:vr),c.strokeColorAnim&&(Fi="rgb("+Math.round(jn[0]*255)+","+Math.round(jn[1]*255)+","+Math.round(jn[2]*255)+")"),c.fillColorAnim&&c.fc&&(sa="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(B.translate(0,-c.ls),B.translate(0,v[1]*ct*.01+De,0),this._pathData.p.v){nt=(pe.point[1]-j.point[1])/(pe.point[0]-j.point[0]);var da=Math.atan(nt)*180/Math.PI;pe.point[0]<j.point[0]&&(da+=180),B.rotate(-da*Math.PI/180)}B.translate(Et,xn,0),Y-=v[0]*k[Ce].an*.005,k[Ce+1]&&lt!==k[Ce+1].ind&&(Y+=k[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(B.translate(Q,De,0),c.ps&&B.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line]),0,0);break;case 2:B.translate(k[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[k[Ce].line])/2,0,0);break}B.translate(0,-c.ls),B.translate(St,0,0),B.translate(v[0]*k[Ce].an*.005,v[1]*ct*.01,0),Q+=k[Ce].l+c.tr*.001*c.finalSize}U==="html"?mi=B.toCSS():U==="svg"?mi=B.to2dCSS():ua=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],la=Nn}ge<=Ce?(Ke=new rl(la,Zr,Fi,sa,mi,ua),this.renderedLetters.push(Ke),ge+=1,this.lettersChangedFlag=!0):(Ke=this.renderedLetters[Ce],this.lettersChangedFlag=Ke.update(la,Zr,Fi,sa,mi,ua)||this.lettersChangedFlag)}}},Eo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Eo.prototype.mHelper=new Mn,Eo.prototype.defaultPropsArray=[],Be([dn],Eo);function pi(){}pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new lr(this,c.t,this.dynamicProperties),this.textAnimator=new Eo(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},pi.prototype.createPathShape=function(c,p){var v,D=p.length,_,B="";for(v=0;v<D;v+=1)p[v].ty==="sh"&&(_=p[v].ks.k,B+=Cr(_,_.i.length,!0,c));return B},pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,D,_){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(D,_,0)},pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},pi.prototype.emptyProp=new rl,pi.prototype.destroy=function(){};var Wm={shapes:[]};function wr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Be([aa,Do,zs,La,Rn,qs,pi],wr),wr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},wr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,D=[],_="";p<v;)c[p]==="\r"||c[p]===""?(D.push(_),_=""):_+=c[p],p+=1;return D.push(_),D},wr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var D=v.it[v.it.length-1];D.s&&(D.s.k[0]=p,D.s.k[1]=p)}}return c},wr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=qe(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var D=this.globalData.fontManager.getFontByName(v.f);if(D.fClass)this.layerElement.setAttribute("class",D.fClass);else{this.layerElement.setAttribute("font-family",D.fFamily);var _=v.fWeight,B=v.fStyle;this.layerElement.setAttribute("font-style",B),this.layerElement.setAttribute("font-weight",_)}this.layerElement.setAttribute("aria-label",v.t);var U=v.l||[],ge=!!this.globalData.fontManager.chars;p=U.length;var Q,De=this.mHelper,Ce="",Re=this.data.singleShape,k=0,ee=0,Y=!0,pe=v.tr*.001*v.finalSize;if(Re&&!ge&&!v.sz){var he=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}he.setAttribute("text-anchor",W),he.setAttribute("letter-spacing",pe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)Q=this.textSpans[c].span||bt("tspan"),Q.textContent=Z[c],Q.setAttribute("x",0),Q.setAttribute("y",ee),Q.style.display="inherit",he.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(he)}else{var L=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!ge||!Re||c===0){if(Q=L>c?this.textSpans[c].span:bt(ge?"g":"text"),L<=c){if(Q.setAttribute("stroke-linecap","butt"),Q.setAttribute("stroke-linejoin","round"),Q.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=Q,ge){var H=bt("g");Q.appendChild(H),this.textSpans[c].childSpan=H}this.textSpans[c].span=Q,this.layerElement.appendChild(Q)}Q.style.display="inherit"}if(De.reset(),Re&&(U[c].n&&(k=-pe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,De,U[c].line,k,ee),k+=U[c].l||0,k+=pe),ge){j=this.globalData.fontManager.getCharData(v.finalText[c],D.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(j.t===1)ne=new Yr(j.data,this.globalData,this);else{var ue=Wm;j.data&&j.data.shapes&&(ue=this.buildShapeData(j.data,v.finalSize)),ne=new mn(ue,this.globalData,this)}if(this.textSpans[c].glyph){var me=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(me.layerElement),me.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&Q.setAttribute("transform","translate("+De.props[12]+","+De.props[13]+")"),Q.textContent=U[c].val,Q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&Q&&Q.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},wr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},wr.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},wr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,D=this.textProperty.currentData.l;p=D.length;var _,B,U;for(c=0;c<p;c+=1)D[c].n||(_=v[c],B=this.textSpans[c].span,U=this.textSpans[c].glyph,U&&U.renderFrame(),_._mdf.m&&B.setAttribute("transform",_.m),_._mdf.o&&B.setAttribute("opacity",_.o),_._mdf.sw&&B.setAttribute("stroke-width",_.sw),_._mdf.sc&&B.setAttribute("stroke",_.sc),_._mdf.fc&&B.setAttribute("fill",_.fc))}};function jc(c,p,v){this.initElement(c,p,v)}Be([Us],jc),jc.prototype.createContent=function(){var c=bt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Na(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Na.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Na.prototype.renderFrame=function(){},Na.prototype.getBaseElement=function(){return null},Na.prototype.destroy=function(){},Na.prototype.sourceRectAtTime=function(){},Na.prototype.hide=function(){},Be([aa,Do,La,Rn],Na);function In(){}Be([ur],In),In.prototype.createNull=function(c){return new Na(c,this.globalData,this)},In.prototype.createShape=function(c){return new mn(c,this.globalData,this)},In.prototype.createText=function(c){return new wr(c,this.globalData,this)},In.prototype.createImage=function(c){return new Us(c,this.globalData,this)},In.prototype.createSolid=function(c){return new jc(c,this.globalData,this)},In.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=bt("clipPath"),D=bt("rect");D.setAttribute("width",c.w),D.setAttribute("height",c.h),D.setAttribute("x",0),D.setAttribute("y",0);var _=Dt();v.setAttribute("id",_),v.appendChild(D),this.layerElement.setAttribute("clip-path","url("+Se()+"#"+_+")"),p.appendChild(v),this.layers=c.layers,this.elements=qe(c.layers.length)},In.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},In.prototype.updateContainerSize=function(){},In.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},In.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,li()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var D="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(D===-1)return;if(!this.elements[D]||this.elements[D]===!0)this.buildItem(D),this.addPendingElement(v);else{var _=p[D],B=_.getMatte(this.layers[c].tt);v.setMatte(B)}}}},In.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var D="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,_=this.elements[D],B=_.getMatte(this.layers[p].tt);c.setMatte(B);break}p+=1}}},In.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},In.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var D=0,_;D<p;)this.elements[D]&&this.elements[D]!==!0&&this.elements[D].getBaseElement()&&(_=this.elements[D].getBaseElement()),D+=1;_?this.layerElement.insertBefore(v,_):this.layerElement.appendChild(v)}},In.prototype.hide=function(){this.layerElement.style.display="none"},In.prototype.show=function(){this.layerElement.style.display="block"};function Bi(){}Be([aa,Do,La,Rn,qs],Bi),Bi.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Bi.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,D=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=D-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Bi.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Bi.prototype.setElements=function(c){this.elements=c},Bi.prototype.getElements=function(){return this.elements},Bi.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Bi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Yr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?qe(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?at.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Be([In,Bi,zs],Yr),Yr.prototype.createComp=function(c){return new Yr(c,this.globalData,this)};function rs(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var D=bt("title"),_=Dt();D.setAttribute("id",_),D.textContent=p.title,this.svgElement.appendChild(D),v+=_}if(p&&p.description){var B=bt("desc"),U=Dt();B.setAttribute("id",U),B.textContent=p.description,this.svgElement.appendChild(B),v+=" "+U}v&&this.svgElement.setAttribute("aria-labelledby",v);var ge=bt("defs");this.svgElement.appendChild(ge);var Q=bt("g");this.svgElement.appendChild(Q),this.layerElement=Q,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ge,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Be([In],rs),rs.prototype.createComp=function(c){return new Yr(c,this.globalData,this)},Nu("svg",rs),Fr.registerModifier("tm",kr),Fr.registerModifier("pb",ka),Fr.registerModifier("rp",gr),Fr.registerModifier("rd",ho),Fr.registerModifier("zz",vo),Fr.registerModifier("op",bn),jt})})(s,s.exports);var l=s.exports;function f(z,G){var V=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(V!=null){var R,K,fe,M,oe=[],le=!0,Se=!1;try{if(fe=(V=V.call(z)).next,G!==0)for(;!(le=(R=fe.call(V)).done)&&(oe.push(R.value),oe.length!==G);le=!0);}catch(_e){Se=!0,K=_e}finally{try{if(!le&&V.return!=null&&(M=V.return(),Object(M)!==M))return}finally{if(Se)throw K}}return oe}}function h(z,G){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(z);G&&(R=R.filter(function(K){return Object.getOwnPropertyDescriptor(z,K).enumerable})),V.push.apply(V,R)}return V}function m(z){for(var G=1;G<arguments.length;G++){var V=arguments[G]!=null?arguments[G]:{};G%2?h(Object(V),!0).forEach(function(R){g(z,R,V[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(V)):h(Object(V)).forEach(function(R){Object.defineProperty(z,R,Object.getOwnPropertyDescriptor(V,R))})}return z}function g(z,G,V){return G=P(G),G in z?Object.defineProperty(z,G,{value:V,enumerable:!0,configurable:!0,writable:!0}):z[G]=V,z}function b(z,G){if(z==null)return{};var V={},R=Object.keys(z),K,fe;for(fe=0;fe<R.length;fe++)K=R[fe],!(G.indexOf(K)>=0)&&(V[K]=z[K]);return V}function $(z,G){if(z==null)return{};var V=b(z,G),R,K;if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(z);for(K=0;K<fe.length;K++)R=fe[K],!(G.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(z,R)&&(V[R]=z[R])}return V}function x(z,G){return A(z)||f(z,G)||w(z,G)||E()}function A(z){if(Array.isArray(z))return z}function w(z,G){if(z){if(typeof z=="string")return C(z,G);var V=Object.prototype.toString.call(z).slice(8,-1);if(V==="Object"&&z.constructor&&(V=z.constructor.name),V==="Map"||V==="Set")return Array.from(z);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return C(z,G)}}function C(z,G){(G==null||G>z.length)&&(G=z.length);for(var V=0,R=new Array(G);V<G;V++)R[V]=z[V];return R}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(z,G){if(typeof z!="object"||z===null)return z;var V=z[Symbol.toPrimitive];if(V!==void 0){var R=V.call(z,G);if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(z)}function P(z){var G=T(z,"string");return typeof G=="symbol"?G:String(G)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],q=function(G,V){var R=G.animationData,K=G.loop,fe=G.autoplay,M=G.initialSegment,oe=G.onComplete,le=G.onLoopComplete,Se=G.onEnterFrame,_e=G.onSegmentStart,Be=G.onConfigReady,Ge=G.onDataReady,Xe=G.onDataFailed,Ne=G.onLoadedImages,qe=G.onDOMLoaded,ke=G.onDestroy;G.lottieRef,G.renderer,G.name,G.assetsPath,G.rendererSettings;var je=$(G,F),Te=r.useState(!1),Ye=x(Te,2),ht=Ye[0],Ht=Ye[1],xt=r.useRef(),_t=r.useRef(null),Wr=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.play()},Qt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.stop()},xe=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.pause()},Ae=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSpeed(Pt)},Fe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Je=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},et=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setDirection(Pt)},Qe=function(Pt,It){var qt;(qt=xt.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=xt.current)===null||It===void 0||It.setSubframe(Pt)},kt=function(Pt){var It;return(It=xt.current)===null||It===void 0?void 0:It.getDuration(Pt)},Dt=function(){var Pt;(Pt=xt.current)===null||Pt===void 0||Pt.destroy(),xt.current=void 0},yn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=xt.current)===null||It===void 0||It.destroy();var qt=m(m(m({},G),Pt),{},{container:_t.current});return xt.current=l.loadAnimation(qt),Ht(!!xt.current),function(){var pr;(pr=xt.current)===null||pr===void 0||pr.destroy(),xt.current=void 0}}};r.useEffect(function(){var zt=yn();return function(){return zt==null?void 0:zt()}},[R,K]),r.useEffect(function(){xt.current&&(xt.current.autoplay=!!fe)},[fe]),r.useEffect(function(){if(xt.current){if(!M){xt.current.resetSegments(!0);return}!Array.isArray(M)||!M.length||((xt.current.currentRawFrame<M[0]||xt.current.currentRawFrame>M[1])&&(xt.current.currentRawFrame=M[0]),xt.current.setSegment(M[0],M[1]))}},[M]),r.useEffect(function(){var zt=[{name:"complete",handler:oe},{name:"loopComplete",handler:le},{name:"enterFrame",handler:Se},{name:"segmentStart",handler:_e},{name:"config_ready",handler:Be},{name:"data_ready",handler:Ge},{name:"data_failed",handler:Xe},{name:"loaded_images",handler:Ne},{name:"DOMLoaded",handler:qe},{name:"destroy",handler:ke}],Pt=zt.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var pr;return(pr=xt.current)===null||pr===void 0||pr.addEventListener(qt.name,qt.handler),function(){var Hr;(Hr=xt.current)===null||Hr===void 0||Hr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[oe,le,Se,_e,Be,Ge,Xe,Ne,qe,ke]);var Dr=a.default.createElement("div",m({style:V,ref:_t},je));return{View:Dr,play:Wr,stop:Qt,pause:xe,setSpeed:Ae,goToAndStop:Je,goToAndPlay:Fe,setDirection:et,playSegments:Qe,setSubframe:gt,getDuration:kt,destroy:Dt,animationContainerRef:_t,animationLoaded:ht,animationItem:xt.current}};function te(z){var G=z.getBoundingClientRect(),V=G.top,R=G.height,K=window.innerHeight-V,fe=window.innerHeight+R;return K/fe}function se(z,G,V){var R=z.getBoundingClientRect(),K=R.top,fe=R.left,M=R.width,oe=R.height,le=(G-fe)/M,Se=(V-K)/oe;return{x:le,y:Se}}var ae=function(G){var V=G.wrapperRef,R=G.animationItem,K=G.mode,fe=G.actions;r.useEffect(function(){var M=V.current;if(!(!M||!R||!fe.length)){R.stop();var oe=function(){var _e=null,Be=function(){var Xe=te(M),Ne=fe.find(function(ke){var je=ke.visibility;return je&&Xe>=je[0]&&Xe<=je[1]});if(Ne){if(Ne.type==="seek"&&Ne.visibility&&Ne.frames.length===2){var qe=Ne.frames[0]+Math.ceil((Xe-Ne.visibility[0])/(Ne.visibility[1]-Ne.visibility[0])*Ne.frames[1]);//! goToAndStop must be relative to the start of the current segment
93
+ R.goToAndStop(qe-R.firstFrame-1,!0)}Ne.type==="loop"&&(_e===null||_e!==Ne.frames||R.isPaused)&&(R.playSegments(Ne.frames,!0),_e=Ne.frames),Ne.type==="play"&&R.isPaused&&(R.resetSegments(!0),R.play()),Ne.type==="stop"&&R.goToAndStop(Ne.frames[0]-R.firstFrame-1,!0)}};return document.addEventListener("scroll",Be),function(){document.removeEventListener("scroll",Be)}},le=function(){var _e=function(Ne,qe){var ke=Ne,je=qe;if(ke!==-1&&je!==-1){var Te=se(M,ke,je);ke=Te.x,je=Te.y}var Ye=fe.find(function(xt){var _t=xt.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?ke>=_t.x[0]&&ke<=_t.x[1]&&je>=_t.y[0]&&je<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?ke===_t.x&&je===_t.y:!1});if(Ye){if(Ye.type==="seek"&&Ye.position&&Array.isArray(Ye.position.x)&&Array.isArray(Ye.position.y)&&Ye.frames.length===2){var ht=(ke-Ye.position.x[0])/(Ye.position.x[1]-Ye.position.x[0]),Ht=(je-Ye.position.y[0])/(Ye.position.y[1]-Ye.position.y[0]);R.playSegments(Ye.frames,!0),R.goToAndStop(Math.ceil((ht+Ht)/2*(Ye.frames[1]-Ye.frames[0])),!0)}Ye.type==="loop"&&R.playSegments(Ye.frames,!0),Ye.type==="play"&&(R.isPaused&&R.resetSegments(!1),R.playSegments(Ye.frames)),Ye.type==="stop"&&R.goToAndStop(Ye.frames[0],!0)}},Be=function(Ne){_e(Ne.clientX,Ne.clientY)},Ge=function(){_e(-1,-1)};return M.addEventListener("mousemove",Be),M.addEventListener("mouseout",Ge),function(){M.removeEventListener("mousemove",Be),M.removeEventListener("mouseout",Ge)}};switch(K){case"scroll":return oe();case"cursor":return le()}}},[K,R])},I=function(G){var V=G.actions,R=G.mode,K=G.lottieObj,fe=K.animationItem,M=K.View,oe=K.animationContainerRef;return ae({actions:V,animationItem:fe,mode:R,wrapperRef:oe}),M},Ee=["style","interactivity"],be=function(G){var V,R,K,fe=G.style,M=G.interactivity,oe=$(G,Ee),le=q(oe,fe),Se=le.View,_e=le.play,Be=le.stop,Ge=le.pause,Xe=le.setSpeed,Ne=le.goToAndStop,qe=le.goToAndPlay,ke=le.setDirection,je=le.playSegments,Te=le.setSubframe,Ye=le.getDuration,ht=le.destroy,Ht=le.animationContainerRef,xt=le.animationLoaded,_t=le.animationItem;return r.useEffect(function(){G.lottieRef&&(G.lottieRef.current={play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndPlay:qe,goToAndStop:Ne,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t})},[(V=G.lottieRef)===null||V===void 0?void 0:V.current]),I({lottieObj:{View:Se,play:_e,stop:Be,pause:Ge,setSpeed:Xe,goToAndStop:Ne,goToAndPlay:qe,setDirection:ke,playSegments:je,setSubframe:Te,getDuration:Ye,destroy:ht,animationContainerRef:Ht,animationLoaded:xt,animationItem:_t},actions:(R=M==null?void 0:M.actions)!==null&&R!==void 0?R:[],mode:(K=M==null?void 0:M.mode)!==null&&K!==void 0?K:"scroll"})};n.LottiePlayer=l,n.default=be,n.useLottie=q,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Dd,Dd.exports)),Dd.exports}var Aae=wae();const Sae=hr(Aae);var fy,JA;function Tae(){if(JA)return fy;JA=1;var e=Math.floor,t=Math.random;function n(r,i){return r+e(t()*(i-r+1))}return fy=n,fy}var hy,QA;function Pae(){if(QA)return hy;QA=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return hy=t,hy}var py,eS;function _ae(){if(eS)return py;eS=1;var e=Pae(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return py=n,py}var my,tS;function Bae(){if(tS)return my;tS=1;var e=_ae(),t=Mu(),n=qp(),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 my=l,my}var gy,nS;function Fae(){if(nS)return gy;nS=1;var e=Bae(),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 gy=r,gy}var vy,rS;function kae(){if(rS)return vy;rS=1;var e=Tae(),t=FT(),n=Fae(),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 vy=o,vy}var Mae=kae();const Rae=hr(Mae),Iae=O.createContext({});function Oae(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tx=typeof window<"u",Lae=Tx?O.useLayoutEffect:O.useEffect,lM=O.createContext(null),cM=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Vae(e){return typeof e=="object"&&e!==null}function dM(e){return Vae(e)&&"offsetHeight"in e}const Th=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nae(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 Ho={},jae=40;function fM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Th.reduce((E,T)=>(E[T]=Nae(a),E),{}),{setup:s,read:l,resolveKeyframes:f,preUpdate:h,update:m,preRender:g,render:b,postRender:$}=o,x=()=>{const E=Ho.useManualTiming?i.timestamp:performance.now();n=!1,Ho.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(E-i.timestamp,jae),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:Th.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<Th.length;T++)o[Th[T]].cancel(E)},state:i,steps:o}}const vc=e=>e,{schedule:wa,cancel:l1,state:kp}=fM(typeof requestAnimationFrame<"u"?requestAnimationFrame:vc,!0),Px=O.createContext({strict:!1}),iS={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"]},tc={};for(const e in iS)tc[e]={isEnabled:t=>iS[e].some(n=>!!t[n])};function aS(e){for(const t in e)tc[t]={...tc[t],...e[t]}}function Kae({children:e,features:t,strict:n=!1}){const[,r]=O.useState(!yy(t)),i=O.useRef(void 0);if(!yy(t)){const{renderer:a,...o}=t;i.current=a,aS(o)}return O.useEffect(()=>{yy(t)&&t().then(({renderer:a,...o})=>{aS(o),i.current=a,r(!0)})},[]),io.jsx(Px.Provider,{value:{renderer:i.current,strict:n},children:e})}function yy(e){return typeof e=="function"}const zae=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 Mp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zae.has(e)}let hM=e=>!Mp(e);function qae(e){e&&(hM=t=>t.startsWith("on")?!Mp(t):e(t))}try{qae(require("@emotion/is-prop-valid").default)}catch{}function Uae(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(hM(i)||n===!0&&Mp(i)||!t&&!Mp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const oS=new Set;function _x(e,t,n){e||oS.has(t)||(console.warn(t),oS.add(t))}function Wae(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&_x(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Rm=O.createContext({});function Im(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zd(e){return typeof e=="string"||Array.isArray(e)}const Bx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fx=["initial",...Bx];function Om(e){return Im(e.animate)||Fx.some(t=>Zd(e[t]))}function pM(e){return!!(Om(e)||e.variants)}function Hae(e,t){if(Om(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 Gae(e){const{initial:t,animate:n}=Hae(e,O.useContext(Rm));return O.useMemo(()=>({initial:t,animate:n}),[sS(t),sS(n)])}function sS(e){return Array.isArray(e)?e.join(" "):e}const Yae=Symbol.for("motionComponentSymbol");function mM(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Zae(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mM(n)&&(n.current=r))},[t])}const kx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xae="framerAppearId",gM="data-"+kx(Xae),Jae=O.createContext({}),{schedule:Qae}=fM(queueMicrotask,!1);function eoe(e,t,n,r,i){var x,A;const{visualElement:a}=O.useContext(Rm),o=O.useContext(Px),s=O.useContext(lM),l=O.useContext(cM).reducedMotion,f=O.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=O.useContext(Jae);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&toe(f.current,n,i,m);const g=O.useRef(!1);O.useInsertionEffect(()=>{h&&g.current&&h.update(n,s)});const b=n[gM],$=O.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return Lae(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Qae.render(h.render),$.current&&h.animationState&&h.animationState.animateChanges())}),O.useEffect(()=>{h&&(!$.current&&h.animationState&&h.animationState.animateChanges(),$.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),$.current=!1))}),h}function toe(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:vM(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&mM(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:f})}function vM(e){if(e)return e.options.allowProjection!==!1?e.projection:vM(e.parent)}let Ef=()=>{},_u=()=>{};process.env.NODE_ENV!=="production"&&(Ef=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},_u=(e,t)=>{if(!e)throw new Error(t)});function noe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function a(s,l){let f;const h={...O.useContext(cM),...s,layoutId:roe(s)},{isStatic:m}=h,g=Gae(s),b=r(s,m);if(!m&&Tx){ioe(h,e);const $=aoe(h);f=$.MeasureLayout,g.visualElement=eoe(i,b,h,t,$.ProjectionNode)}return io.jsxs(Rm.Provider,{value:g,children:[f&&g.visualElement?io.jsx(f,{visualElement:g.visualElement,...h}):null,n(i,s,Zae(b,g.visualElement,l),b,m,g.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=O.forwardRef(a);return o[Yae]=i,o}function roe({layoutId:e}){const t=O.useContext(Iae).id;return t&&e!==void 0?t+"-"+e:e}function ioe(e,t){O.useContext(Px).strict,process.env.NODE_ENV}function aoe(e){const{drag:t,layout:n}=tc;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}}const yM=e=>t=>typeof t=="string"&&t.startsWith(e),bM=yM("--"),ooe=yM("var(--"),Mx=e=>ooe(e)?soe.test(e.split("/*")[0].trim()):!1,soe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,uoe={},yc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bc=new Set(yc);function xM(e,{layout:t,layoutId:n}){return bc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!uoe[e]||e==="opacity")}const DM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bu=(e,t,n)=>n>t?t:n<e?e:n,xc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Xd={...xc,transform:e=>Bu(0,1,e)},Ph={...xc,default:1},uS={...xc,transform:Math.round},Cf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ps=Cf("deg"),ql=Cf("%"),Tt=Cf("px"),loe=Cf("vh"),coe=Cf("vw"),lS={...ql,parse:e=>ql.parse(e)/100,transform:e=>ql.transform(e*100)},doe={rotate:ps,rotateX:ps,rotateY:ps,rotateZ:ps,scale:Ph,scaleX:Ph,scaleY:Ph,scaleZ:Ph,skew:ps,skewX:ps,skewY:ps,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:Xd,originX:lS,originY:lS,originZ:Tt},Rx={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...doe,zIndex:uS,fillOpacity:Xd,strokeOpacity:Xd,numOctaves:uS},foe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},hoe=yc.length;function poe(e,t,n){let r="",i=!0;for(let a=0;a<hoe;a++){const o=yc[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=DM(s,Rx[o]);if(!l){i=!1;const h=foe[o]||o;r+=`${h}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ix(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(bc.has(l)){o=!0;continue}else if(bM(l)){i[l]=f;continue}else{const h=DM(f,Rx[l]);l.startsWith("origin")?(s=!0,a[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=poe(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 Ox=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),jr=e=>!!(e&&e.getVelocity);function $M(e,t,n){for(const r in t)!jr(t[r])&&!xM(r,n)&&(e[r]=t[r])}function moe({transformTemplate:e},t){return O.useMemo(()=>{const n=Ox();return Ix(n,t,e),Object.assign({},n.vars,n.style)},[t])}function goe(e,t){const n=e.style||{},r={};return $M(r,n,e),Object.assign(r,moe(e,t)),r}function voe(e,t){const n={},r=goe(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 yoe={offset:"stroke-dashoffset",array:"stroke-dasharray"},boe={offset:"strokeDashoffset",array:"strokeDasharray"};function xoe(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?yoe:boe;e[a.offset]=Tt.transform(-r);const o=Tt.transform(t),s=Tt.transform(n);e[a.array]=`${o} ${s}`}function EM(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,f,h){if(Ix(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&&xoe(m,i,a,o,!1)}const CM=()=>({...Ox(),attrs:{}}),wM=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Doe(e,t,n,r){const i=O.useMemo(()=>{const a=CM();return EM(a,t,wM(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};$M(a,e.style,e),i.style={...a,...i.style}}return i}const $oe=["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 Lx(e){return typeof e!="string"||e.includes("-")?!1:!!($oe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Eoe(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(Lx(n)?Doe:voe)(r,a,o,n),f=Uae(r,typeof n=="string",e),h=n!==O.Fragment?{...f,...l,ref:i}:{},{children:m}=r,g=O.useMemo(()=>jr(m)?m.get():m,[m]);return O.createElement(n,{...h,children:g})}}function cS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Vx(e,t,n,r){if(typeof t=="function"){const[i,a]=cS(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]=cS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Coe(e){return jr(e)?e.get():e}function woe({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Aoe(n,r,i,e),renderState:t()}}const AM=e=>(t,n)=>{const r=O.useContext(Rm),i=O.useContext(lM),a=()=>woe(e,t,r,i);return n?a():Oae(a)};function Aoe(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Coe(a[g]);let{initial:o,animate:s}=e;const l=Om(e),f=pM(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"&&!Im(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Vx(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}function Nx(e,t,n){var a;const{style:r}=e,i={};for(const o in r)(jr(r[o])||t.style&&jr(t.style[o])||xM(o,e)||((a=n==null?void 0:n.getValue(o))==null?void 0:a.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Soe={useVisualState:AM({scrapeMotionValuesFromProps:Nx,createRenderState:Ox})};function SM(e,t,n){const r=Nx(e,t,n);for(const i in e)if(jr(e[i])||jr(t[i])){const a=yc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const Toe={useVisualState:AM({scrapeMotionValuesFromProps:SM,createRenderState:CM})};function Poe(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Lx(r)?Toe:Soe,preloadedFeatures:e,useRender:Eoe(i),createVisualElement:t,Component:r};return noe(o)}}const _oe=Poe(),Boe=Wae(_oe);function Jd(e,t,n){const r=e.getProps();return Vx(r,t,n!==void 0?n:r.custom,e)}const c1=e=>Array.isArray(e);let Zh;function Foe(){Zh=void 0}const Yi={now:()=>(Zh===void 0&&Yi.set(kp.isProcessing||Ho.useManualTiming?kp.timestamp:performance.now()),Zh),set:e=>{Zh=e,queueMicrotask(Foe)}};function koe(e,t){e.indexOf(t)===-1&&e.push(t)}function Moe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class TM{constructor(){this.subscriptions=[]}add(t){return koe(this.subscriptions,t),()=>Moe(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}}function PM(e,t){return t?e*(1e3/t):0}const dS=30,Roe=e=>!isNaN(parseFloat(e));class Ioe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var o,s;const a=Yi.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((s=this.events.renderRequest)==null||s.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Roe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&_x(!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 TM);const r=this.events[t].add(n);return t==="change"?()=>{r(),wa.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dS);return PM(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 Rp(e,t){return new Ioe(e,t)}function Ooe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rp(n))}function Loe(e){return c1(e)?e[e.length-1]||0:e}function Voe(e,t){const n=Jd(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const s=Loe(a[o]);Ooe(e,o,s)}}function Noe(e){return!!(jr(e)&&e.add)}function joe(e,t){const n=e.getValue("willChange");if(Noe(n))return n.add(t);if(!n&&Ho.WillChange){const r=new Ho.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Koe(e){return e.props[gM]}const zoe=e=>e!==null;function qoe(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(zoe),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Uoe={type:"spring",stiffness:500,damping:25,restSpeed:10},Woe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Hoe={type:"keyframes",duration:.8},Goe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yoe=(e,{keyframes:t})=>t.length>2?Hoe:bc.has(e)?e.startsWith("scale")?Woe(t[1]):Uoe:Goe;function Zoe({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}function _M(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ro=e=>e*1e3,Ko=e=>e/1e3,Fd=e=>Math.round(e*1e5)/1e5,jx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Xoe(e){return e==null}const Joe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kx=(e,t)=>n=>!!(typeof n=="string"&&Joe.test(n)&&n.startsWith(e)||t&&!Xoe(n)&&Object.prototype.hasOwnProperty.call(n,t)),BM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,s]=r.match(jx);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},Qoe=e=>Bu(0,255,e),by={...xc,transform:e=>Math.round(Qoe(e))},mu={test:Kx("rgb","red"),parse:BM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+by.transform(e)+", "+by.transform(t)+", "+by.transform(n)+", "+Fd(Xd.transform(r))+")"};function ese(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 d1={test:Kx("#"),parse:ese,transform:mu.transform},Fl={test:Kx("hsl","hue"),parse:BM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ql.transform(Fd(t))+", "+ql.transform(Fd(n))+", "+Fd(Xd.transform(r))+")"},Sr={test:e=>mu.test(e)||d1.test(e)||Fl.test(e),parse:e=>mu.test(e)?mu.parse(e):Fl.test(e)?Fl.parse(e):d1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mu.transform(e):Fl.transform(e)},tse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(jx))==null?void 0:t.length)||0)+(((n=e.match(tse))==null?void 0:n.length)||0)>0}const FM="number",kM="color",rse="var",ise="var(",fS="${}",ase=/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 Qd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(ase,l=>(Sr.test(l)?(r.color.push(a),i.push(kM),n.push(Sr.parse(l))):l.startsWith(ise)?(r.var.push(a),i.push(rse),n.push(l)):(r.number.push(a),i.push(FM),n.push(parseFloat(l))),++a,fS)).split(fS);return{values:n,split:s,indexes:r,types:i}}function MM(e){return Qd(e).values}function RM(e){const{split:t,types:n}=Qd(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===FM?a+=Fd(i[o]):s===kM?a+=Sr.transform(i[o]):a+=i[o]}return a}}const ose=e=>typeof e=="number"?0:e;function sse(e){const t=MM(e);return RM(e)(t.map(ose))}const Dc={test:nse,parse:MM,createTransformer:RM,getAnimatableNone:sse};function xy(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 use({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=xy(l,s,e+1/3),a=xy(l,s,e),o=xy(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ip(e,t){return n=>n>0?t:e}const Lm=(e,t,n)=>e+(t-e)*n,Dy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lse=[d1,mu,Fl],cse=e=>lse.find(t=>t.test(e));function hS(e){const t=cse(e);if(Ef(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Fl&&(n=use(n)),n}const pS=(e,t)=>{const n=hS(e),r=hS(t);if(!n||!r)return Ip(e,t);const i={...n};return a=>(i.red=Dy(n.red,r.red,a),i.green=Dy(n.green,r.green,a),i.blue=Dy(n.blue,r.blue,a),i.alpha=Lm(n.alpha,r.alpha,a),mu.transform(i))},f1=new Set(["none","hidden"]);function dse(e,t){return f1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const fse=(e,t)=>n=>t(e(n)),Vm=(...e)=>e.reduce(fse);function hse(e,t){return n=>Lm(e,t,n)}function zx(e){return typeof e=="number"?hse:typeof e=="string"?Mx(e)?Ip:Sr.test(e)?pS:gse:Array.isArray(e)?IM:typeof e=="object"?Sr.test(e)?pS:pse:Ip}function IM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>zx(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function pse(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zx(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function mse(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 gse=(e,t)=>{const n=Dc.createTransformer(t),r=Qd(e),i=Qd(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?f1.has(e)&&!i.values.length||f1.has(t)&&!r.values.length?dse(e,t):Vm(IM(mse(r,i),i.values),n):(Ef(!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.`),Ip(e,t))};function OM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Lm(e,t,n):zx(e)(e,t)}const vse=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wa.update(t,n),stop:()=>l1(t),now:()=>kp.isProcessing?kp.timestamp:Yi.now()}},LM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(a/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Op=2e4;function qx(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Op;)t+=n,r=e.next(t);return t>=Op?1/0:t}function yse(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(qx(r),Op);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Ko(i)}}const bse=5;function VM(e,t,n){const r=Math.max(t-bse,0);return PM(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},$y=.001;function xse({duration:e=Bn.duration,bounce:t=Bn.bounce,velocity:n=Bn.velocity,mass:r=Bn.mass}){let i,a;Ef(e<=ro(Bn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Bu(Bn.minDamping,Bn.maxDamping,o),e=Bu(Bn.minDuration,Bn.maxDuration,Ko(e)),o<1?(i=f=>{const h=f*o,m=h*e,g=h-n,b=h1(f,o),$=Math.exp(-m);return $y-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=h1(Math.pow(f,2),o);return(-i(f)+$y>0?-1:1)*((g-b)*$)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-$y+h*m},a=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const s=5/e,l=$se(i,a,s);if(e=ro(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 Dse=12;function $se(e,t,n){let r=n;for(let i=1;i<Dse;i++)r=r-e(r)/t(r);return r}function h1(e,t){return e*Math.sqrt(1-t*t)}const Ese=["duration","bounce"],Cse=["stiffness","damping","mass"];function mS(e,t){return t.some(n=>e[n]!==void 0)}function wse(e){let t={velocity:Bn.velocity,stiffness:Bn.stiffness,damping:Bn.damping,mass:Bn.mass,isResolvedFromDuration:!1,...e};if(!mS(e,Cse)&&mS(e,Ese))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Bu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bn.mass,stiffness:i,damping:a}}else{const n=xse(e);t={...t,...n,mass:Bn.mass},t.isResolvedFromDuration=!0}return t}function Lp(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}=wse({...n,velocity:-Ko(n.velocity||0)}),$=g||0,x=f/(2*Math.sqrt(l*h)),A=o-a,w=Ko(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=h1(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?ro($):VM(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(qx(T),Op),F=LM(q=>T.next(P*q).value,P,30);return P+"ms "+F},toTransition:()=>{}};return T}Lp.applyToOptions=e=>{const t=yse(e,100,Lp);return e.ease=t.ease,e.duration=ro(t.duration),e.type="keyframes",e};function p1({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=Lp({keyframes:[g.value,$(g.value)],velocity:VM(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)}}}const NM=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function Ase(e,t,n){const r=[],i=n||Ho.mix||OM,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]||vc:t;s=Vm(l,s)}r.push(s)}return r}function Sse(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(_u(a===t.length,"Both input and output ranges must be the same 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=Ase(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=NM(e[m],e[m+1],h);return s[m](g)};return n?h=>f(Bu(e[0],e[a-1],h)):f}function Tse(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=NM(0,t,r);e.push(Lm(n,1,i))}}function Pse(e){const t=[0];return Tse(t,e.length-1),t}function _se(e,t){return e.map(n=>n*t)}const jM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Bse=1e-7,Fse=12;function kse(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=jM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Bse&&++s<Fse);return o}function wf(e,t,n,r){if(e===t&&n===r)return vc;const i=a=>kse(a,0,1,e,n);return a=>a===0||a===1?a:jM(i(a),t,r)}const Mse=wf(.42,0,1,1),Rse=wf(0,0,.58,1),KM=wf(.42,0,.58,1),Ise=e=>Array.isArray(e)&&typeof e[0]!="number",zM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qM=e=>t=>1-e(1-t),UM=wf(.33,1.53,.69,.99),Ux=qM(UM),WM=zM(Ux),HM=e=>(e*=2)<1?.5*Ux(e):.5*(2-Math.pow(2,-10*(e-1))),Wx=e=>1-Math.sin(Math.acos(e)),Ose=qM(Wx),GM=zM(Wx),YM=e=>Array.isArray(e)&&typeof e[0]=="number",gS={linear:vc,easeIn:Mse,easeInOut:KM,easeOut:Rse,circIn:Wx,circInOut:GM,circOut:Ose,backIn:Ux,backInOut:WM,backOut:UM,anticipate:HM},Lse=e=>typeof e=="string",vS=e=>{if(YM(e)){_u(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return wf(t,n,r,i)}else if(Lse(e))return _u(gS[e]!==void 0,`Invalid easing type '${e}'`),gS[e];return e};function Vse(e,t){return e.map(()=>t||KM).splice(0,e.length-1)}function kl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ise(r)?r.map(vS):vS(r),a={done:!1,value:t[0]},o=_se(n&&n.length===t.length?n:Pse(t),e),s=Sse(o,t,{ease:Array.isArray(i)?i:Vse(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const Nse=e=>e!==null;function Hx(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Nse),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||r===void 0?a[s]:r}const jse={decay:p1,inertia:p1,tween:kl,keyframes:kl,spring:Lp};function ZM(e){typeof e.type=="string"&&(e.type=jse[e.type])}class Gx{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 Kse=e=>e/100;class Yx extends Gx{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!==Yi.now()&&this.tick(Yi.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;ZM(t);const{type:n=kl,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=n||kl;process.env.NODE_ENV!=="production"&&l!==kl&&_u(s.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),l!==kl&&typeof s[0]!="number"&&(this.mixKeyframes=Vm(Kse,OM(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=qx(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=Bu(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&&$!==p1&&(P.value=Hx(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 Ko(this.calculatedDuration)}get time(){return Ko(this.currentTime)}set time(t){var n;t=ro(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(Yi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ko(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=vse,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(Yi.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 zse(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gu=e=>e*180/Math.PI,m1=e=>{const t=gu(Math.atan2(e[1],e[0]));return g1(t)},qse={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:m1,rotateZ:m1,skewX:e=>gu(Math.atan(e[1])),skewY:e=>gu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},g1=e=>(e=e%360,e<0&&(e+=360),e),yS=m1,bS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Use={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bS,scaleY:xS,scale:e=>(bS(e)+xS(e))/2,rotateX:e=>g1(gu(Math.atan2(e[6],e[5]))),rotateY:e=>g1(gu(Math.atan2(-e[2],e[0]))),rotateZ:yS,rotate:yS,skewX:e=>gu(Math.atan(e[4])),skewY:e=>gu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function v1(e){return e.includes("scale")?1:0}function y1(e,t){if(!e||e==="none")return v1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Use,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=qse,i=s}if(!i)return v1(t);const a=r[t],o=i[1].split(",").map(Hse);return typeof a=="function"?a(o):o[a]}const Wse=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return y1(n,t)};function Hse(e){return parseFloat(e.trim())}const DS=e=>e===xc||e===Tt,Gse=new Set(["x","y","z"]),Yse=yc.filter(e=>!Gse.has(e));function Zse(e){const t=[];return Yse.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Du={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})=>y1(t,"x"),y:(e,{transform:t})=>y1(t,"y")};Du.translateX=Du.x;Du.translateY=Du.y;const $u=new Set;let b1=!1,x1=!1,D1=!1;function XM(){if(x1){const e=Array.from($u).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Zse(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)})}x1=!1,b1=!1,$u.forEach(e=>e.complete(D1)),$u.clear()}function JM(){$u.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(x1=!0)})}function Xse(){D1=!0,JM(),XM(),D1=!1}class Zx{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?($u.add(this),b1||(b1=!0,wa.read(JM),wa.resolveKeyframes(XM))):(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])}zse(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),$u.delete(this)}cancel(){this.state==="scheduled"&&($u.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jse=e=>e.startsWith("--");function Qse(e,t,n){Jse(t)?e.style.setProperty(t,n):e.style[t]=n}function Xx(e){let t;return()=>(t===void 0&&(t=e()),t)}const eue=Xx(()=>window.ScrollTimeline!==void 0),tue={};function nue(e,t){const n=Xx(e);return()=>tue[t]??n()}const QM=nue(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),$d=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,$S={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$d([0,.65,.55,1]),circOut:$d([.55,0,1,.45]),backIn:$d([.31,.01,.66,-.59]),backOut:$d([.33,1.53,.69,.99])};function eR(e,t){if(e)return typeof e=="function"?QM()?LM(e,t):"ease-out":YM(e)?$d(e):Array.isArray(e)?e.map(n=>eR(n,t)||$S.easeOut):$S[e]}function rue(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=eR(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 tR(e){return typeof e=="function"&&"applyToOptions"in e}function iue({type:e,...t}){return tR(e)&&QM()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class aue extends Gx{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,_u(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const f=iue(t);this.animation=rue(n,r,i,f,a),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=Hx(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(h):Qse(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 Ko(Number(t))}get time(){return Ko(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ro(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&&eue()?(this.animation.timeline=t,vc):n(this)}}const nR={anticipate:HM,backInOut:WM,circInOut:GM};function oue(e){return e in nR}function sue(e){typeof e.ease=="string"&&oue(e.ease)&&(e.ease=nR[e.ease])}const ES=10;class uue extends aue{constructor(t){sue(t),ZM(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 Yx({...o,autoplay:!1}),l=ro(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-ES).value,s.sample(l).value,ES),s.stop()}}const CS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dc.test(e)||e==="0")&&!e.startsWith("url("));function lue(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 cue(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=CS(i,t),s=CS(a,t);return Ef(o===s,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!s?!1:lue(e)||(n==="spring"||tR(n))&&r}const due=new Set(["opacity","clipPath","filter","transform"]),fue=Xx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hue(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!dM((f=t==null?void 0:t.owner)==null?void 0:f.current))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return fue()&&n&&due.has(n)&&(n!=="transform"||!l)&&!s&&!r&&i!=="mirror"&&a!==0&&o!=="inertia"}const pue=40;class mue extends Gx{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=Yi.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)||Zx;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=Yi.now(),cue(t,a,o,s)||((Ho.instantAnimations||!l)&&(h==null||h(Hx(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>pue?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!f&&hue(g)?new uue({...g,element:g.motionValue.owner.current}):new Yx(g);b.finished.then(()=>this.notifyFinished()).catch(vc),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(),Xse()),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 gue=(e,t,n,r={},i,a)=>o=>{const s=_M(r,e)||{},l=s.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ro(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};Zoe(s)||Object.assign(h,Yoe(e,h)),h.duration&&(h.duration=ro(h.duration)),h.repeatDelay&&(h.repeatDelay=ro(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(Ho.instantAnimations||Ho.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const g=qoe(h.keyframes,s);if(g!==void 0){wa.update(()=>{h.onUpdate(g),h.onComplete()});return}}return s.isSync?new Yx(h):new mue(h)},rR=new Set(["width","height","top","left","right","bottom",...yc]);function vue({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iR(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&&vue(f,h))continue;const b={delay:n,..._M(a||{},h)},$=m.get();if($!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===$&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const w=Koe(e);if(w){const C=window.MotionHandoffAnimation(w,h,wa);C!==null&&(b.startTime=C,x=!0)}}joe(e,h),m.start(gue(h,m,g,e.shouldReduceMotion&&rR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&l.push(A)}return o&&Promise.all(l).then(()=>{wa.update(()=>{o&&Voe(e,o)})}),l}function $1(e,t,n={}){var l;const r=Jd(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(iR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return yue(e,t,h+f,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 yue(e,t,n=0,r=0,i=1,a){const o=[],s=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>s-f*r;return Array.from(e.variantChildren).sort(bue).forEach((f,h)=>{f.notify("AnimationStart",t),o.push($1(f,t,{...a,delay:n+l(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function bue(e,t){return e.sortNodePosition(t)}function xue(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>$1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=$1(e,t,n);else{const i=typeof t=="function"?Jd(e,t,n.custom):t;r=Promise.all(iR(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function aR(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 Due=Fx.length;function oR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Due;n++){const r=Fx[n],i=e.props[r];(Zd(i)||i===!1)&&(t[r]=i)}return t}const $ue=[...Bx].reverse(),Eue=Bx.length;function Cue(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xue(e,n,r)))}function wue(e){let t=Cue(e),n=wS(),r=!0;const i=l=>(f,h)=>{var g;const m=Jd(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=oR(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<Eue;A++){const w=$ue[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||Im(E)||typeof E=="boolean")continue;const q=Aue(C.prevProp,E);let te=q||w===l&&C.isActive&&!F&&T||A>$&&T,se=!1;const ae=Array.isArray(E)?E:[E];let I=ae.reduce(i(w),{});P===!1&&(I={});const{prevResolvedValues:Ee={}}=C,be={...Ee,...I},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=I[R],fe=Ee[R];if(b.hasOwnProperty(R))continue;let M=!1;c1(K)&&c1(fe)?M=!aR(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=I,C.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(te=!1),te&&(!(F&&q)||se)&&m.push(...ae.map(R=>({animation:R,options:{type:w}})))}if(g.size){const A={};if(typeof f.initial!="boolean"){const w=Jd(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=wS(),r=!0}}}function Aue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aR(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wS(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class $c{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Sue extends $c{constructor(t){super(t),t.animationState||(t.animationState=wue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Im(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)}}let Tue=0;class Pue extends $c{constructor(){super(...arguments),this.id=Tue++}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 _ue={animation:{Feature:Sue},exit:{Feature:Pue}};function AS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Bue=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function sR(e){return{point:{x:e.pageX,y:e.pageY}}}function Fue({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function kue(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}}const SS=()=>({min:0,max:0}),uR=()=>({x:SS(),y:SS()});function Mue(e,t){return Fue(kue(e.getBoundingClientRect(),t))}const Rue={y:!1};function Iue(){return Rue.y}function Oue(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)}function lR(e,t){const n=Oue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function TS(e){return!(e.pointerType==="touch"||Iue())}function Lue(e,t,n={}){const[r,i,a]=lR(e,n),o=s=>{if(!TS(s))return;const{target:l}=s,f=t(l,s);if(typeof f!="function"||!l)return;const h=m=>{TS(m)&&(f(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(s=>{s.addEventListener("pointerenter",o,i)}),a}function PS(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&&wa.postRender(()=>a(t,sR(t)))}class Vue extends $c{mount(){const{current:t}=this.node;t&&(this.unmount=Lue(t,(n,r)=>(PS(this.node,r,"Start"),i=>PS(this.node,i,"End"))))}unmount(){}}class Nue extends $c{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=Vm(AS(this.node.current,"focus",()=>this.onFocus()),AS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const cR=(e,t)=>t?e===t?!0:cR(e,t.parentElement):!1,jue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Kue(e){return jue.has(e.tagName)||e.tabIndex!==-1}const Xh=new WeakSet;function _S(e){return t=>{t.key==="Enter"&&e(t)}}function Ey(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_S(()=>{if(Xh.has(n))return;Ey(n,"down");const i=_S(()=>{Ey(n,"up")}),a=()=>Ey(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 BS(e){return Bue(e)&&!0}function que(e,t,n={}){const[r,i,a]=lR(e,n),o=s=>{const l=s.currentTarget;if(!BS(s))return;Xh.add(l);const f=t(l,s),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Xh.has(l)&&Xh.delete(l),BS(b)&&typeof f=="function"&&f(b,{success:$})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||cR(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),dM(s)&&(s.addEventListener("focus",f=>zue(f,i)),!Kue(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function FS(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&&wa.postRender(()=>a(t,sR(t)))}class Uue extends $c{mount(){const{current:t}=this.node;t&&(this.unmount=que(t,(n,r)=>(FS(this.node,r,"Start"),(i,{success:a})=>FS(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const E1=new WeakMap,Cy=new WeakMap,Wue=e=>{const t=E1.get(e.target);t&&t(e)},Hue=e=>{e.forEach(Wue)};function Gue({root:e,...t}){const n=e||document;Cy.has(n)||Cy.set(n,{});const r=Cy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Hue,{root:e,...t})),r[i]}function Yue(e,t,n){const r=Gue(t);return E1.set(e,n),r.observe(e),()=>{E1.delete(e),r.unobserve(e)}}const Zue={some:0,all:1};class Xue extends $c{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:Zue[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 Yue(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(Jue(t,n))&&this.startObserver()}unmount(){}}function Jue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Que={inView:{Feature:Xue},tap:{Feature:Uue},focus:{Feature:Nue},hover:{Feature:Vue}},C1={current:null},dR={current:!1};function ele(){if(dR.current=!0,!!Tx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C1.current=e.matches;e.addListener(t),t()}else C1.current=!1}const tle=new WeakMap;function nle(e,t,n){for(const r in t){const i=t[r],a=n[r];if(jr(i))e.addValue(r,i);else if(jr(a))e.addValue(r,Rp(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,Rp(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const fR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hR=e=>/^0[^.\s]+$/u.test(e),rle={test:e=>e==="auto",parse:e=>e},pR=e=>t=>t.test(e),mR=[xc,Tt,ql,ps,coe,loe,rle],kS=e=>mR.find(pR(e)),ile=[...mR,Sr,Dc],ale=e=>ile.find(pR(e)),ole=new Set(["brightness","contrast","saturate","opacity"]);function sle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(jx)||[];if(!r)return e;const i=n.replace(r,"");let a=ole.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const ule=/\b([a-z-]*)\(.*?\)/gu,w1={...Dc,getAnimatableNone:e=>{const t=e.match(ule);return t?t.map(sle).join(" "):e}},lle={...Rx,color:Sr,backgroundColor:Sr,outlineColor:Sr,fill:Sr,stroke:Sr,borderColor:Sr,borderTopColor:Sr,borderRightColor:Sr,borderBottomColor:Sr,borderLeftColor:Sr,filter:w1,WebkitFilter:w1},gR=e=>lle[e];function vR(e,t){let n=gR(e);return n!==w1&&(n=Dc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const MS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cle{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=Zx,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=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wa.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=Om(n),this.isVariantNode=pM(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&&jr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,tle.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((n,r)=>this.bindToMotionValue(r,n)),dR.current||ele(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C1.current,process.env.NODE_ENV!=="production"&&_x(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),l1(this.notifyUpdate),l1(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=bc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wa.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),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 tc){const n=tc[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):uR()}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<MS.length;r++){const i=MS[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=nle(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=Rp(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"&&(fR(r)||hR(r))?r=parseFloat(r):!ale(r)&&Dc.test(n)&&(r=vR(t,n)),this.setBaseTarget(t,jr(r)?r.get():r)),jr(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=Vx(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&&!jr(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 TM),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const dle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fle(e){const t=dle.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const hle=4;function yR(e,t,n=1){_u(n<=hle,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=fle(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return fR(o)?parseFloat(o):o}return Mx(i)?yR(i,t,n+1):i}function ple(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hR(e):!0}const mle=new Set(["auto","none","0"]);function gle(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!mle.has(a)&&Qd(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=vR(n,i)}class vle extends Zx{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(),Mx(f))){const h=yR(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!rR.has(r)||t.length!==2)return;const[i,a]=t,o=kS(i),s=kS(a);if(o!==s)if(DS(o)&&DS(s))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Du[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ple(t[i]))&&r.push(i);r.length&&gle(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=Du[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]=Du[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()}}class bR extends cle{constructor(){super(...arguments),this.KeyframeResolver=vle}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;jr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}function yle(e){return window.getComputedStyle(e)}class ble extends bR{constructor(){super(...arguments),this.type="html",this.renderInstance=xR}readValueFromInstance(t,n){var r;if(bc.has(n))return(r=this.projection)!=null&&r.isProjecting?v1(n):Wse(t,n);{const i=yle(t),a=(bM(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Mue(t,n)}build(t,n,r){Ix(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nx(t,n,r)}}const DR=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 xle(e,t,n,r){xR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(DR.has(i)?i:kx(i),t.attrs[i])}class Dle extends bR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=uR}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bc.has(n)){const r=gR(n);return r&&r.default||0}return n=DR.has(n)?n:kx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return SM(t,n,r)}build(t,n,r){EM(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){xle(t,n,r,i)}mount(t){this.isSVGTag=wM(t.tagName),super.mount(t)}}const $le=(e,t)=>Lx(e)?new Dle(t):new ble(t,{allowProjection:e!==O.Fragment}),Ele={renderer:$le,..._ue,...Que},Cle=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),$R=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),wle=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),Ale=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),Sle=(e,t)=>{t=t||Ale(e);let n=t,r=t;$R(t)&&(n=t.map(a=>a.label),r=t.map(a=>a.key));const i=e.map(a=>r.map(o=>Tle(o,a)));return[n,...i]},Tle=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,a,o){const s=r[i];if(s==null)o.splice(1);else return s},t);return n===void 0?e in t?t[e]:"":n},Ple=e=>typeof e>"u"||e===null?"":e,ER=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Ple(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
94
+ `),_le=(e,t,n,r)=>ER(t?[t,...e]:e,n,r),Ble=(e,t,n,r)=>ER(Sle(e,t),n,r),Fle=(e,t,n,r)=>t?`${t.join(n)}
95
+ ${e}`:e.replace(/"/g,'""'),CR=(e,t,n,r)=>{if($R(e))return Ble(e,t,n,r);if(wle(e))return _le(e,t,n,r);if(typeof e=="string")return Fle(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},wR=(e,t,n,r,i)=>{const a=CR(e,n,r,i),o=Cle()?"application/csv":"text/csv",s=new Blob([t?"\uFEFF":"",a],{type:o}),l=`data:${o};charset=utf-8,${t?"\uFEFF":""}${a}`,f=window.URL||window.webkitURL;return typeof f.createObjectURL>"u"?l:f.createObjectURL(s)};var _h={exports:{}},Bh={exports:{}},on={};/** @license React v16.13.1
96
+ * react-is.production.min.js
97
+ *
98
+ * Copyright (c) Facebook, Inc. and its affiliates.
99
+ *
100
+ * This source code is licensed under the MIT license found in the
101
+ * LICENSE file in the root directory of this source tree.
102
+ */var RS;function kle(){if(RS)return on;RS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var F=P.$$typeof;switch(F){case t:switch(P=P.type,P){case l:case f:case r:case a:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case s:case h:case $:case b:case o:return P;default:return F}}case n:return F}}}function T(P){return E(P)===f}return on.AsyncMode=l,on.ConcurrentMode=f,on.ContextConsumer=s,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=a,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(P){return T(P)||E(P)===l},on.isConcurrentMode=T,on.isContextConsumer=function(P){return E(P)===s},on.isContextProvider=function(P){return E(P)===o},on.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},on.isForwardRef=function(P){return E(P)===h},on.isFragment=function(P){return E(P)===r},on.isLazy=function(P){return E(P)===$},on.isMemo=function(P){return E(P)===b},on.isPortal=function(P){return E(P)===n},on.isProfiler=function(P){return E(P)===a},on.isStrictMode=function(P){return E(P)===i},on.isSuspense=function(P){return E(P)===m},on.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===f||P===a||P===i||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===$||P.$$typeof===b||P.$$typeof===o||P.$$typeof===s||P.$$typeof===h||P.$$typeof===A||P.$$typeof===w||P.$$typeof===C||P.$$typeof===x)},on.typeOf=E,on}var sn={};/** @license React v16.13.1
103
+ * react-is.development.js
104
+ *
105
+ * Copyright (c) Facebook, Inc. and its affiliates.
106
+ *
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE file in the root directory of this source tree.
109
+ */var IS;function Mle(){return IS||(IS=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(Te){return typeof Te=="string"||typeof Te=="function"||Te===r||Te===f||Te===a||Te===i||Te===m||Te===g||typeof Te=="object"&&Te!==null&&(Te.$$typeof===$||Te.$$typeof===b||Te.$$typeof===o||Te.$$typeof===s||Te.$$typeof===h||Te.$$typeof===A||Te.$$typeof===w||Te.$$typeof===C||Te.$$typeof===x)}function T(Te){if(typeof Te=="object"&&Te!==null){var Ye=Te.$$typeof;switch(Ye){case t:var ht=Te.type;switch(ht){case l:case f:case r:case a:case i:case m:return ht;default:var Ht=ht&&ht.$$typeof;switch(Ht){case s:case h:case $:case b:case o:return Ht;default:return Ye}}case n:return Ye}}}var P=l,F=f,q=s,te=o,se=t,ae=h,I=r,Ee=$,be=b,z=n,G=a,V=i,R=m,K=!1;function fe(Te){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(Te)||T(Te)===l}function M(Te){return T(Te)===f}function oe(Te){return T(Te)===s}function le(Te){return T(Te)===o}function Se(Te){return typeof Te=="object"&&Te!==null&&Te.$$typeof===t}function _e(Te){return T(Te)===h}function Be(Te){return T(Te)===r}function Ge(Te){return T(Te)===$}function Xe(Te){return T(Te)===b}function Ne(Te){return T(Te)===n}function qe(Te){return T(Te)===a}function ke(Te){return T(Te)===i}function je(Te){return T(Te)===m}sn.AsyncMode=P,sn.ConcurrentMode=F,sn.ContextConsumer=q,sn.ContextProvider=te,sn.Element=se,sn.ForwardRef=ae,sn.Fragment=I,sn.Lazy=Ee,sn.Memo=be,sn.Portal=z,sn.Profiler=G,sn.StrictMode=V,sn.Suspense=R,sn.isAsyncMode=fe,sn.isConcurrentMode=M,sn.isContextConsumer=oe,sn.isContextProvider=le,sn.isElement=Se,sn.isForwardRef=_e,sn.isFragment=Be,sn.isLazy=Ge,sn.isMemo=Xe,sn.isPortal=Ne,sn.isProfiler=qe,sn.isStrictMode=ke,sn.isSuspense=je,sn.isValidElementType=E,sn.typeOf=T}()),sn}var OS;function AR(){return OS||(OS=1,process.env.NODE_ENV==="production"?Bh.exports=kle():Bh.exports=Mle()),Bh.exports}/*
110
+ object-assign
111
+ (c) Sindre Sorhus
112
+ @license MIT
113
+ */var wy,LS;function Rle(){if(LS)return wy;LS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(h){f[h]=h}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wy=i()?Object.assign:function(a,o){for(var s,l=r(a),f,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var m in s)t.call(s,m)&&(l[m]=s[m]);if(e){f=e(s);for(var g=0;g<f.length;g++)n.call(s,f[g])&&(l[f[g]]=s[f[g]])}}return l},wy}var Ay,VS;function Jx(){if(VS)return Ay;VS=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ay=e,Ay}var Sy,NS;function SR(){return NS||(NS=1,Sy=Function.call.bind(Object.prototype.hasOwnProperty)),Sy}var Ty,jS;function Ile(){if(jS)return Ty;jS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jx(),n={},r=SR();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,f){if(process.env.NODE_ENV!=="production"){for(var h in a)if(r(a,h)){var m;try{if(typeof a[h]!="function"){var g=Error((l||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=a[h](o,h,l,s,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=f?f():"";e("Failed "+s+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ty=i,Ty}var Py,KS;function Ole(){if(KS)return Py;KS=1;var e=AR(),t=Rle(),n=Jx(),r=SR(),i=Ile(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Py=function(s,l){var f=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var oe=M&&(f&&M[f]||M[h]);if(typeof oe=="function")return oe}var g="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:E,element:T(),elementType:P(),instanceOf:F,node:ae(),objectOf:te,oneOf:q,oneOfType:se,shape:Ee,exact:be};function $(M,oe){return M===oe?M!==0||1/M===1/oe:M!==M&&oe!==oe}function x(M,oe){this.message=M,this.data=oe&&typeof oe=="object"?oe:{},this.stack=""}x.prototype=Error.prototype;function A(M){if(process.env.NODE_ENV!=="production")var oe={},le=0;function Se(Be,Ge,Xe,Ne,qe,ke,je){if(Ne=Ne||g,ke=ke||Xe,je!==n){if(l){var Te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Te.name="Invariant Violation",Te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=Ne+":"+Xe;!oe[Ye]&&le<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ke+"` prop on `"+Ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),oe[Ye]=!0,le++)}}return Ge[Xe]==null?Be?Ge[Xe]===null?new x("The "+qe+" `"+ke+"` is marked as required "+("in `"+Ne+"`, but its value is `null`.")):new x("The "+qe+" `"+ke+"` is marked as required in "+("`"+Ne+"`, but its value is `undefined`.")):null:M(Ge,Xe,Ne,qe,ke)}var _e=Se.bind(null,!1);return _e.isRequired=Se.bind(null,!0),_e}function w(M){function oe(le,Se,_e,Be,Ge,Xe){var Ne=le[Se],qe=V(Ne);if(qe!==M){var ke=R(Ne);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+ke+"` supplied to `"+_e+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return A(oe)}function C(){return A(o)}function E(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside arrayOf.");var Xe=le[Se];if(!Array.isArray(Xe)){var Ne=V(Xe);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an array."))}for(var qe=0;qe<Xe.length;qe++){var ke=M(Xe,qe,_e,Be,Ge+"["+qe+"]",n);if(ke instanceof Error)return ke}return null}return A(oe)}function T(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!s(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement."))}return null}return A(M)}function P(){function M(oe,le,Se,_e,Be){var Ge=oe[le];if(!e.isValidElementType(Ge)){var Xe=V(Ge);return new x("Invalid "+_e+" `"+Be+"` of type "+("`"+Xe+"` supplied to `"+Se+"`, expected a single ReactElement type."))}return null}return A(M)}function F(M){function oe(le,Se,_e,Be,Ge){if(!(le[Se]instanceof M)){var Xe=M.name||g,Ne=fe(le[Se]);return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected ")+("instance of `"+Xe+"`."))}return null}return A(oe)}function q(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function oe(le,Se,_e,Be,Ge){for(var Xe=le[Se],Ne=0;Ne<M.length;Ne++)if($(Xe,M[Ne]))return null;var qe=JSON.stringify(M,function(je,Te){var Ye=R(Te);return Ye==="symbol"?String(Te):Te});return new x("Invalid "+Be+" `"+Ge+"` of value `"+String(Xe)+"` "+("supplied to `"+_e+"`, expected one of "+qe+"."))}return A(oe)}function te(M){function oe(le,Se,_e,Be,Ge){if(typeof M!="function")return new x("Property `"+Ge+"` of component `"+_e+"` has invalid PropType notation inside objectOf.");var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type "+("`"+Ne+"` supplied to `"+_e+"`, expected an object."));for(var qe in Xe)if(r(Xe,qe)){var ke=M(Xe,qe,_e,Be,Ge+"."+qe,n);if(ke instanceof Error)return ke}return null}return A(oe)}function se(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var oe=0;oe<M.length;oe++){var le=M[oe];if(typeof le!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(le)+" at index "+oe+"."),o}function Se(_e,Be,Ge,Xe,Ne){for(var qe=[],ke=0;ke<M.length;ke++){var je=M[ke],Te=je(_e,Be,Ge,Xe,Ne,n);if(Te==null)return null;Te.data&&r(Te.data,"expectedType")&&qe.push(Te.data.expectedType)}var Ye=qe.length>0?", expected one of type ["+qe.join(", ")+"]":"";return new x("Invalid "+Xe+" `"+Ne+"` supplied to "+("`"+Ge+"`"+Ye+"."))}return A(Se)}function ae(){function M(oe,le,Se,_e,Be){return z(oe[le])?null:new x("Invalid "+_e+" `"+Be+"` supplied to "+("`"+Se+"`, expected a ReactNode."))}return A(M)}function I(M,oe,le,Se,_e){return new x((M||"React class")+": "+oe+" type `"+le+"."+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_e+"`.")}function Ee(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));for(var qe in M){var ke=M[qe];if(typeof ke!="function")return I(_e,Be,Ge,qe,R(ke));var je=ke(Xe,qe,_e,Be,Ge+"."+qe,n);if(je)return je}return null}return A(oe)}function be(M){function oe(le,Se,_e,Be,Ge){var Xe=le[Se],Ne=V(Xe);if(Ne!=="object")return new x("Invalid "+Be+" `"+Ge+"` of type `"+Ne+"` "+("supplied to `"+_e+"`, expected `object`."));var qe=t({},le[Se],M);for(var ke in qe){var je=M[ke];if(r(M,ke)&&typeof je!="function")return I(_e,Be,Ge,ke,R(je));if(!je)return new x("Invalid "+Be+" `"+Ge+"` key `"+ke+"` supplied to `"+_e+"`.\nBad object: "+JSON.stringify(le[Se],null," ")+`
114
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var Te=je(Xe,ke,_e,Be,Ge+"."+ke,n);if(Te)return Te}return null}return A(oe)}function z(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(z);if(M===null||s(M))return!0;var oe=m(M);if(oe){var le=oe.call(M),Se;if(oe!==M.entries){for(;!(Se=le.next()).done;)if(!z(Se.value))return!1}else for(;!(Se=le.next()).done;){var _e=Se.value;if(_e&&!z(_e[1]))return!1}}else return!1;return!0;default:return!1}}function G(M,oe){return M==="symbol"?!0:oe?oe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&oe instanceof Symbol:!1}function V(M){var oe=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":G(oe,M)?"symbol":oe}function R(M){if(typeof M>"u"||M===null)return""+M;var oe=V(M);if(oe==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return oe}function K(M){var oe=R(M);switch(oe){case"array":case"object":return"an "+oe;case"boolean":case"date":case"regexp":return"a "+oe;default:return oe}}function fe(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Py}var _y,zS;function Lle(){if(zS)return _y;zS=1;var e=Jx();function t(){}function n(){}return n.resetWarningCache=t,_y=function(){function r(o,s,l,f,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},_y}var qS;function Vle(){if(qS)return _h.exports;if(qS=1,process.env.NODE_ENV!=="production"){var e=AR(),t=!0;_h.exports=Ole()(e.isElement,t)}else _h.exports=Lle()();return _h.exports}var $i=Vle();const rt=hr($i),TR={data:$i.oneOfType([$i.string,$i.array,$i.func]).isRequired,headers:$i.array,target:$i.string,separator:$i.string,filename:$i.string,uFEFF:$i.bool,onClick:$i.func,asyncOnClick:$i.bool,enclosingCharacter:$i.string},PR={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Nle={target:"_blank"};class US extends de.default.Component{constructor(t){super(t),this.state={}}buildURI(){return wR(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:a,target:o,specs:s,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,a,n,r,i),o,s,l)}getWindow(){return this.state.page}render(){return null}}Xn(US,"defaultProps",Object.assign(PR,Nle)),Xn(US,"propTypes",TR);var kh;let jle=(kh=class extends de.default.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return wR(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:a,filename:o,enclosingCharacter:s,uFEFF:l}=this.props,f=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",CR(f,i,a,s)]);return window.navigator.msSaveBlob(h,o),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:a,children:o,onClick:s,asyncOnClick:l,enclosingCharacter:f,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,a,n,r,f);return io.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:o})}},Xn(kh,"defaultProps",PR),Xn(kh,"propTypes",TR),kh);const Kle=jle;var By,WS;function zle(){if(WS)return By;WS=1;function e(t){return t==null}return By=e,By}var qle=zle();const Ule=hr(qle);/**
115
+ * react-table
116
+ *
117
+ * Copyright (c) TanStack
118
+ *
119
+ * This source code is licensed under the MIT license found in the
120
+ * LICENSE.md file in the root directory of this source tree.
121
+ *
122
+ * @license MIT
123
+ */function Wle(e,t){return e?Hle(e)?de.createElement(e,t):e:null}function Hle(e){return Gle(e)||typeof e=="function"||Yle(e)}function Gle(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Yle(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var Fy,HS;function Zle(){if(HS)return Fy;HS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return Fy=e,Fy}var ky,GS;function Xle(){if(GS)return ky;GS=1;var e=Mu(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}}();return ky=n,ky}var My,YS;function Jle(){if(YS)return My;YS=1;var e=ET(),t=e(Object.getPrototypeOf,Object);return My=t,My}var Ry,ZS;function Qle(){if(ZS)return Ry;ZS=1;var e=Zle(),t=Xle(),n=BT(),r=_T(),i=Jle(),a=Aa(),o=nm(),s=J1(),l=Mu(),f=rm();function h(m,g,b){var $=a(m),x=$||o(m)||f(m);if(g=r(g,4),b==null){var A=m&&m.constructor;x?b=$?new A:[]:l(m)?b=s(A)?t(i(m)):{}:b={}}return(x?e:n)(m,function(w,C,E){return g(b,w,C,E)}),b}return Ry=h,Ry}var ece=Qle();const tce=hr(ece);function _R(e){return t=>typeof t===e}var nce=_R("function"),rce=e=>e===null,XS=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",JS=e=>!ice(e)&&!rce(e)&&(nce(e)||typeof e=="object"),ice=_R("undefined");function ace(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Kr(e[r],t[r]))return!1;return!0}function oce(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function sce(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Kr(n[1],t.get(n[0])))return!1;return!0}function uce(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Kr(e,t){if(e===t)return!0;if(e&&JS(e)&&t&&JS(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ace(e,t);if(e instanceof Map&&t instanceof Map)return sce(e,t);if(e instanceof Set&&t instanceof Set)return uce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return oce(e,t);if(XS(e)&&XS(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Kr(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var lce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],cce=["bigint","boolean","null","number","string","symbol","undefined"];function Nm(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(dce(t))return t}function Pa(e){return t=>Nm(t)===e}function dce(e){return lce.includes(e)}function Ec(e){return t=>typeof t===e}function fce(e){return cce.includes(e)}var hce=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Nm(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Nm(e)==="AsyncGeneratorFunction";ut.asyncFunction=Pa("AsyncFunction");ut.bigint=Ec("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Pa("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&hce.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Pa("Error");ut.function=Ec("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Pa("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Pa("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Ec("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Pa("Function");ut.plainObject=e=>{if(Nm(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||fce(typeof e);ut.promise=Pa("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Pa("RegExp");ut.set=Pa("Set");ut.string=Ec("string");ut.symbol=Ec("symbol");ut.undefined=Ec("undefined");ut.weakMap=Pa("WeakMap");ut.weakSet=Pa("WeakSet");var ft=ut;function pce(...e){return e.every(t=>ft.string(t)||ft.array(t)||ft.plainObject(t))}function mce(e,t,n){return BR(e,t)?[e,t].every(ft.array)?!e.some(r6(n))&&t.some(r6(n)):[e,t].every(ft.plainObject)?!Object.entries(e).some(n6(n))&&Object.entries(t).some(n6(n)):t===n:!1}function QS(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,s=Ja(e,i),l=Ja(t,i);let f=[s,l].every(ft.number)&&(o==="increased"?s<l:s>l);return ft.undefined(r)||(f=f&&l===r),ft.undefined(a)||(f=f&&s===a),f}function e6(e,t,n){const{key:r,type:i,value:a}=n,o=Ja(e,r),s=Ja(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ft.nullOrUndefined(a)){if(ft.defined(l)){if(ft.array(l)||ft.plainObject(l))return mce(l,f,a)}else return Kr(f,a);return!1}return[o,s].every(ft.array)?!f.every(Qx(l)):[o,s].every(ft.plainObject)?gce(Object.keys(l),Object.keys(f)):![o,s].every(h=>ft.primitive(h)&&ft.defined(h))&&(i==="added"?!ft.defined(o)&&ft.defined(s):ft.defined(o)&&!ft.defined(s))}function t6(e,t,{key:n}={}){let r=Ja(e,n),i=Ja(t,n);if(!BR(r,i))throw new TypeError("Inputs have different types");if(!pce(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ft.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function n6(e){return([t,n])=>ft.array(e)?Kr(e,n)||e.some(r=>Kr(r,n)||ft.array(n)&&Qx(n)(r)):ft.plainObject(e)&&e[t]?!!e[t]&&Kr(e[t],n):Kr(e,n)}function gce(e,t){return t.some(n=>!e.includes(n))}function r6(e){return t=>ft.array(e)?e.some(n=>Kr(n,t)||ft.array(t)&&Qx(t)(n)):Kr(e,t)}function od(e,t){return ft.array(e)?e.some(n=>Kr(n,t)):Kr(e,t)}function Qx(e){return t=>e.some(n=>Kr(n,t))}function BR(...e){return e.every(ft.array)||e.every(ft.number)||e.every(ft.plainObject)||e.every(ft.string)}function Ja(e,t){return ft.plainObject(e)||ft.array(e)?ft.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ft.number(t)?e[t]:e:e}function Vp(e,t){if([e,t].some(ft.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ft.plainObject(h)||ft.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return e6(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Ja(e,h),$=Ja(t,h),x=ft.defined(m),A=ft.defined(g);if(x||A){const w=A?od(g,b):!od(m,b),C=od(m,$);return w&&C}return[b,$].every(ft.array)||[b,$].every(ft.plainObject)?!Kr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ft.defined(h))return!1;try{const b=Ja(e,h),$=Ja(t,h),x=ft.defined(g);return od(m,b)&&(x?od(g,$):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return QS(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=t6(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=t6(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ft.defined(h))return!1;try{return QS(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return e6(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var Iy,i6;function vce(){if(i6)return Iy;i6=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Iy={left:i("scrollLeft"),top:i("scrollTop")};function i(s){return function(f,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=f[s],x=m.ease||a,A=isNaN(m.duration)?350:+m.duration,w=!1;return $===h?g(e,f[s]):requestAnimationFrame(E),C;function C(){w=!0}function E(T){if(w)return g(t,f[s]);var P=r(),F=n(1,(P-b)/A),q=x(F);f[s]=q*(h-$)+$,F<1?requestAnimationFrame(E):requestAnimationFrame(function(){g(null,f[s])})}}}function a(s){return .5*(1-Math.cos(Math.PI*s))}function o(){}return Iy}var yce=vce();const bce=hr(yce);var Jh={exports:{}},xce=Jh.exports,a6;function Dce(){return a6||(a6=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(xce,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Jh)),Jh.exports}var $ce=Dce();const FR=hr($ce);var Oy,o6;function Ece(){if(o6)return Oy;o6=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Oy=n,Oy}var Cce=Ece();const s6=hr(Cce);var Ly,u6;function wce(){if(u6)return Ly;u6=1;var e=function(C){return t(C)&&!n(C)};function t(w){return!!w&&typeof w=="object"}function n(w){var C=Object.prototype.toString.call(w);return C==="[object RegExp]"||C==="[object Date]"||a(w)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(w){return w.$$typeof===i}function o(w){return Array.isArray(w)?[]:{}}function s(w,C){return C.clone!==!1&&C.isMergeableObject(w)?x(o(w),w,C):w}function l(w,C,E){return w.concat(C).map(function(T){return s(T,E)})}function f(w,C){if(!C.customMerge)return x;var E=C.customMerge(w);return typeof E=="function"?E:x}function h(w){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(w).filter(function(C){return Object.propertyIsEnumerable.call(w,C)}):[]}function m(w){return Object.keys(w).concat(h(w))}function g(w,C){try{return C in w}catch{return!1}}function b(w,C){return g(w,C)&&!(Object.hasOwnProperty.call(w,C)&&Object.propertyIsEnumerable.call(w,C))}function $(w,C,E){var T={};return E.isMergeableObject(w)&&m(w).forEach(function(P){T[P]=s(w[P],E)}),m(C).forEach(function(P){b(w,P)||(g(w,P)&&E.isMergeableObject(C[P])?T[P]=f(P,E)(w[P],C[P],E):T[P]=s(C[P],E))}),T}function x(w,C,E){E=E||{},E.arrayMerge=E.arrayMerge||l,E.isMergeableObject=E.isMergeableObject||e,E.cloneUnlessOtherwiseSpecified=s;var T=Array.isArray(C),P=Array.isArray(w),F=T===P;return F?T?E.arrayMerge(w,C,E):$(w,C,E):s(C,E)}x.all=function(C,E){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(T,P){return x(T,P,E)},{})};var A=x;return Ly=A,Ly}var Ace=wce();const xa=hr(Ace);/**!
124
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
125
+ * @version 1.16.1
126
+ * @license
127
+ * Copyright (c) 2016 Federico Zivolo and contributors
128
+ *
129
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
130
+ * of this software and associated documentation files (the "Software"), to deal
131
+ * in the Software without restriction, including without limitation the rights
132
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
133
+ * copies of the Software, and to permit persons to whom the Software is
134
+ * furnished to do so, subject to the following conditions:
135
+ *
136
+ * The above copyright notice and this permission notice shall be included in all
137
+ * copies or substantial portions of the Software.
138
+ *
139
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
140
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
141
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
142
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
143
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
144
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
145
+ * SOFTWARE.
146
+ */var Af=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Sce=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Af&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Tce(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Pce(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Sce))}}var _ce=Af&&window.Promise,Bce=_ce?Tce:Pce;function kR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ou(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function eD(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Sf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ou(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Sf(eD(e))}function MR(e){return e&&e.referenceNode?e.referenceNode:e}var l6=Af&&!!(window.MSInputMethodContext&&document.documentMode),c6=Af&&/MSIE 10/.test(navigator.userAgent);function Cc(e){return e===11?l6:e===10?c6:l6||c6}function nc(e){if(!e)return document.documentElement;for(var t=Cc(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&Ou(n,"position")==="static"?nc(n):n}function Fce(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||nc(e.firstElementChild)===e}function A1(e){return e.parentNode!==null?A1(e.parentNode):e}function Np(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Fce(o)?o:nc(o);var s=A1(e);return s.host?Np(s.host,t):Np(e,A1(t).host)}function rc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function kce(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=rc(t,"top"),i=rc(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function d6(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function f6(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Cc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function RR(e){var t=e.body,n=e.documentElement,r=Cc(10)&&getComputedStyle(n);return{height:f6("Height",t,n,r),width:f6("Width",t,n,r)}}var Mce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Rce=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ic=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Zi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function As(e){return Zi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function S1(e){var t={};try{if(Cc(10)){t=e.getBoundingClientRect();var n=rc(e,"top"),r=rc(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?RR(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,s=a.height||e.clientHeight||i.height,l=e.offsetWidth-o,f=e.offsetHeight-s;if(l||f){var h=Ou(e);l-=d6(h,"x"),f-=d6(h,"y"),i.width-=l,i.height-=f}return As(i)}function tD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Cc(10),i=t.nodeName==="HTML",a=S1(e),o=S1(t),s=Sf(e),l=Ou(t),f=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=As({top:a.top-o.top-f,left:a.left-o.left-h,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=f-g,m.bottom-=f-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(s):t===s&&s.nodeName!=="BODY")&&(m=kce(m,t)),m}function Ice(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=tD(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:rc(n),s=t?0:rc(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return As(l)}function IR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ou(e,"position")==="fixed")return!0;var n=eD(e);return n?IR(n):!1}function OR(e){if(!e||!e.parentElement||Cc())return document.documentElement;for(var t=e.parentElement;t&&Ou(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function nD(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?OR(e):Np(e,MR(t));if(r==="viewport")a=Ice(o,i);else{var s=void 0;r==="scrollParent"?(s=Sf(eD(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):r==="window"?s=e.ownerDocument.documentElement:s=r;var l=tD(s,o,i);if(s.nodeName==="HTML"&&!IR(o)){var f=RR(e.ownerDocument),h=f.height,m=f.width;a.top+=l.top-l.marginTop,a.bottom=h+l.top,a.left+=l.left-l.marginLeft,a.right=m+l.left}else a=l}n=n||0;var g=typeof n=="number";return a.left+=g?n:n.left||0,a.top+=g?n:n.top||0,a.right-=g?n:n.right||0,a.bottom-=g?n:n.bottom||0,a}function Oce(e){var t=e.width,n=e.height;return t*n}function LR(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=nD(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(g){return Zi({key:g},s[g],{area:Oce(s[g])})}).sort(function(g,b){return b.area-g.area}),f=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=f.length>0?f[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function VR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?OR(t):Np(t,MR(n));return tD(n,i,r)}function NR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function jp(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function jR(e,t,n){n=n.split("-")[0];var r=NR(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[f]:i[s]=t[jp(s)],i}function Tf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Lce(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Tf(e,function(i){return i[t]===n});return e.indexOf(r)}function KR(e,t,n){var r=n===void 0?e:e.slice(0,Lce(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&kR(a)&&(t.offsets.popper=As(t.offsets.popper),t.offsets.reference=As(t.offsets.reference),t=a(t,i))}),t}function Vce(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=VR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=LR(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=jR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=KR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function zR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function rD(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function Nce(){return this.state.isDestroyed=!0,zR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[rD("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function qR(e){var t=e.ownerDocument;return t?t.defaultView:window}function UR(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||UR(Sf(a.parentNode),t,n,r),r.push(a)}function jce(e,t,n,r){n.updateBound=r,qR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Sf(e);return UR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Kce(){this.state.eventsEnabled||(this.state=jce(this.reference,this.options,this.state,this.scheduleUpdate))}function zce(e,t){return qR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function qce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=zce(this.reference,this.state))}function iD(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function T1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&iD(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Uce(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Wce(e){return T1(e.instance.popper,e.styles),Uce(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&T1(e.arrowElement,e.arrowStyles),e}function Hce(e,t,n,r,i){var a=VR(i,t,e,n.positionFixed),o=LR(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),T1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Gce(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(w){return w},l=a(i.width),f=a(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===f%2,b=l%2===1&&f%2===1,$=t?h||m||g?a:o:s,x=t?a:s;return{left:$(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:$(r.right)}}var Yce=Af&&/Firefox/i.test(navigator.userAgent);function Zce(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=Tf(e.instance.modifiers,function(E){return E.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,s=nc(e.instance.popper),l=S1(s),f={position:i.position},h=Gce(e,window.devicePixelRatio<2||!Yce),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=rD("transform"),$=void 0,x=void 0;if(m==="bottom"?s.nodeName==="HTML"?x=-s.clientHeight+h.bottom:x=-l.height+h.bottom:x=h.top,g==="right"?s.nodeName==="HTML"?$=-s.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)f[b]="translate3d("+$+"px, "+x+"px, 0)",f[m]=0,f[g]=0,f.willChange="transform";else{var A=m==="bottom"?-1:1,w=g==="right"?-1:1;f[m]=x*A,f[g]=$*w,f.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Zi({},C,e.attributes),e.styles=Zi({},f,e.styles),e.arrowStyles=Zi({},e.offsets.arrow,e.arrowStyles),e}function WR(e,t,n){var r=Tf(e,function(s){var l=s.name;return l===t}),i=!!r&&e.some(function(s){return s.name===n&&s.enabled&&s.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function Xce(e,t){var n;if(!WR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=NR(r)[f];s[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(s[b]-$)),s[m]+$>o[b]&&(e.offsets.popper[m]+=s[m]+$-o[b]),e.offsets.popper=As(e.offsets.popper);var x=s[m]+s[f]/2-$/2,A=Ou(e.instance.popper),w=parseFloat(A["margin"+h]),C=parseFloat(A["border"+h+"Width"]),E=x-e.offsets.popper[m]-w-C;return E=Math.max(Math.min(o[f]-$,E),0),e.arrowElement=r,e.offsets.arrow=(n={},ic(n,m,Math.round(E)),ic(n,g,""),n),e}function Jce(e){return e==="end"?"start":e==="start"?"end":e}var HR=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Vy=HR.slice(3);function h6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Vy.indexOf(e),r=Vy.slice(n+1).concat(Vy.slice(0,n));return t?r.reverse():r}var Ny={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Qce(e,t){if(zR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=nD(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=jp(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Ny.FLIP:o=[r,i];break;case Ny.CLOCKWISE:o=h6(r);break;case Ny.COUNTERCLOCKWISE:o=h6(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=jp(r);var f=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(f.right)>m(h.left)||r==="right"&&m(f.left)<m(h.right)||r==="top"&&m(f.bottom)>m(h.top)||r==="bottom"&&m(f.top)<m(h.bottom),b=m(f.left)<m(n.left),$=m(f.right)>m(n.right),x=m(f.top)<m(n.top),A=m(f.bottom)>m(n.bottom),w=r==="left"&&b||r==="right"&&$||r==="top"&&x||r==="bottom"&&A,C=["top","bottom"].indexOf(r)!==-1,E=!!t.flipVariations&&(C&&a==="start"&&b||C&&a==="end"&&$||!C&&a==="start"&&x||!C&&a==="end"&&A),T=!!t.flipVariationsByContent&&(C&&a==="start"&&$||C&&a==="end"&&b||!C&&a==="start"&&A||!C&&a==="end"&&x),P=E||T;(g||w||P)&&(e.flipped=!0,(g||w)&&(r=o[l+1]),P&&(a=Jce(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Zi({},e.offsets.popper,jR(e.instance.popper,e.offsets.reference,e.placement)),e=KR(e.instance.modifiers,e,"flip"))}),e}function ede(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",f=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[f]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function tde(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=As(s);return l[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function nde(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),s=o.indexOf(Tf(o,function(h){return h.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return f=f.map(function(h,m){var g=(m===1?!a:a)?"height":"width",b=!1;return h.reduce(function($,x){return $[$.length-1]===""&&["+","-"].indexOf(x)!==-1?($[$.length-1]=x,b=!0,$):b?($[$.length-1]+=x,b=!1,$):$.concat(x)},[]).map(function($){return tde($,g,t,n)})}),f.forEach(function(h,m){h.forEach(function(g,b){iD(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function rde(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return iD(+n)?l=[+n,0]:l=nde(n,a,o,s),s==="left"?(a.top+=l[0],a.left-=l[1]):s==="right"?(a.top+=l[0],a.left+=l[1]):s==="top"?(a.left+=l[0],a.top-=l[1]):s==="bottom"&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function ide(e,t){var n=t.boundariesElement||nc(e.instance.popper);e.instance.reference===n&&(n=nc(n));var r=rD("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=nD(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var f=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),ic({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",x=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),ic({},$,x)}};return f.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Zi({},h,m[b](g))}),e.offsets.popper=h,e}function ade(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",f=s?"width":"height",h={start:ic({},l,a[l]),end:ic({},l,a[l]+a[f]-o[f])};e.offsets.popper=Zi({},o,h[r])}return e}function ode(e){if(!WR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Tf(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function sde(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=jp(t),e.offsets.popper=As(i),e}var ude={shift:{order:100,enabled:!0,fn:ade},offset:{order:200,enabled:!0,fn:rde,offset:0},preventOverflow:{order:300,enabled:!0,fn:ide,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ede},arrow:{order:500,enabled:!0,fn:Xce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Qce,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:sde},hide:{order:800,enabled:!0,fn:ode},computeStyle:{order:850,enabled:!0,fn:Zce,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Wce,onLoad:Hce,gpuAcceleration:void 0}},lde={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ude},ef=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Mce(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Bce(this.update.bind(this)),this.options=Zi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Zi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Zi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Zi({name:o},r.options.modifiers[o])}).sort(function(o,s){return o.order-s.order}),this.modifiers.forEach(function(o){o.enabled&&kR(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Rce(e,[{key:"update",value:function(){return Vce.call(this)}},{key:"destroy",value:function(){return Nce.call(this)}},{key:"enableEventListeners",value:function(){return Kce.call(this)}},{key:"disableEventListeners",value:function(){return qce.call(this)}}]),e}();ef.Utils=(typeof window<"u"?window:global).PopperUtils;ef.placements=HR;ef.Defaults=lde;var cde=["innerHTML","ownerDocument","style","attributes","nodeValue"],dde=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],fde=["bigint","boolean","null","number","string","symbol","undefined"];function jm(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(hde(t))return t}function _a(e){return function(t){return jm(t)===e}}function hde(e){return dde.includes(e)}function wc(e){return function(t){return typeof t===e}}function pde(e){return fde.includes(e)}function ze(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ze.array(e))return"Array";if(ze.plainFunction(e))return"Function";var t=jm(e);return t||"Object"}ze.array=Array.isArray;ze.arrayOf=function(e,t){return!ze.array(e)&&!ze.function(t)?!1:e.every(function(n){return t(n)})};ze.asyncGeneratorFunction=function(e){return jm(e)==="AsyncGeneratorFunction"};ze.asyncFunction=_a("AsyncFunction");ze.bigint=wc("bigint");ze.boolean=function(e){return e===!0||e===!1};ze.date=_a("Date");ze.defined=function(e){return!ze.undefined(e)};ze.domElement=function(e){return ze.object(e)&&!ze.plainObject(e)&&e.nodeType===1&&ze.string(e.nodeName)&&cde.every(function(t){return t in e})};ze.empty=function(e){return ze.string(e)&&e.length===0||ze.array(e)&&e.length===0||ze.object(e)&&!ze.map(e)&&!ze.set(e)&&Object.keys(e).length===0||ze.set(e)&&e.size===0||ze.map(e)&&e.size===0};ze.error=_a("Error");ze.function=wc("function");ze.generator=function(e){return ze.iterable(e)&&ze.function(e.next)&&ze.function(e.throw)};ze.generatorFunction=_a("GeneratorFunction");ze.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ze.iterable=function(e){return!ze.nullOrUndefined(e)&&ze.function(e[Symbol.iterator])};ze.map=_a("Map");ze.nan=function(e){return Number.isNaN(e)};ze.null=function(e){return e===null};ze.nullOrUndefined=function(e){return ze.null(e)||ze.undefined(e)};ze.number=function(e){return wc("number")(e)&&!ze.nan(e)};ze.numericString=function(e){return ze.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ze.object=function(e){return!ze.nullOrUndefined(e)&&(ze.function(e)||typeof e=="object")};ze.oneOf=function(e,t){return ze.array(e)?e.indexOf(t)>-1:!1};ze.plainFunction=_a("Function");ze.plainObject=function(e){if(jm(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ze.primitive=function(e){return ze.null(e)||pde(typeof e)};ze.promise=_a("Promise");ze.propertyOf=function(e,t,n){if(!ze.object(e)||!t)return!1;var r=e[t];return ze.function(n)?n(r):ze.defined(r)};ze.regexp=_a("RegExp");ze.set=_a("Set");ze.string=wc("string");ze.symbol=wc("symbol");ze.undefined=wc("undefined");ze.weakMap=_a("WeakMap");ze.weakSet=_a("WeakSet");function GR(e){return function(t){return typeof t===e}}var mde=GR("function"),gde=function(e){return e===null},p6=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},m6=function(e){return!vde(e)&&!gde(e)&&(mde(e)||typeof e=="object")},vde=GR("undefined"),P1=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function yde(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}function bde(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function xde(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var o=P1(e.entries()),s=o.next();!s.done;s=o.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var f=P1(e.entries()),h=f.next();!h.done;h=f.next()){var l=h.value;if(!si(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return!0}function Dde(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=P1(e.entries()),a=i.next();!a.done;a=i.next()){var o=a.value;if(!t.has(o[0]))return!1}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function si(e,t){if(e===t)return!0;if(e&&m6(e)&&t&&m6(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return yde(e,t);if(e instanceof Map&&t instanceof Map)return xde(e,t);if(e instanceof Set&&t instanceof Set)return Dde(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return bde(e,t);if(p6(e)&&p6(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!si(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function $de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ze.string(n)||ze.array(n)||ze.plainObject(n)})}function Ede(e,t,n){return YR(e,t)?[e,t].every(ze.array)?!e.some(x6(n))&&t.some(x6(n)):[e,t].every(ze.plainObject)?!Object.entries(e).some(b6(n))&&Object.entries(t).some(b6(n)):t===n:!1}function g6(e,t,n){var r=n.actual,i=n.key,a=n.previous,o=n.type,s=Qa(e,i),l=Qa(t,i),f=[s,l].every(ze.number)&&(o==="increased"?s<l:s>l);return ze.undefined(r)||(f=f&&l===r),ze.undefined(a)||(f=f&&s===a),f}function v6(e,t,n){var r=n.key,i=n.type,a=n.value,o=Qa(e,r),s=Qa(t,r),l=i==="added"?o:s,f=i==="added"?s:o;if(!ze.nullOrUndefined(a)){if(ze.defined(l)){if(ze.array(l)||ze.plainObject(l))return Ede(l,f,a)}else return si(f,a);return!1}return[o,s].every(ze.array)?!f.every(aD(l)):[o,s].every(ze.plainObject)?Cde(Object.keys(l),Object.keys(f)):![o,s].every(function(h){return ze.primitive(h)&&ze.defined(h)})&&(i==="added"?!ze.defined(o)&&ze.defined(s):ze.defined(o)&&!ze.defined(s))}function y6(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Qa(e,i),o=Qa(t,i);if(!YR(a,o))throw new TypeError("Inputs have different types");if(!$de(a,o))throw new TypeError("Inputs don't have length");return[a,o].every(ze.plainObject)&&(a=Object.keys(a),o=Object.keys(o)),[a,o]}function b6(e){return function(t){var n=t[0],r=t[1];return ze.array(e)?si(e,r)||e.some(function(i){return si(i,r)||ze.array(r)&&aD(r)(i)}):ze.plainObject(e)&&e[n]?!!e[n]&&si(e[n],r):si(e,r)}}function Cde(e,t){return t.some(function(n){return!e.includes(n)})}function x6(e){return function(t){return ze.array(e)?e.some(function(n){return si(n,t)||ze.array(t)&&aD(t)(n)}):si(e,t)}}function sd(e,t){return ze.array(e)?e.some(function(n){return si(n,t)}):si(e,t)}function aD(e){return function(t){return e.some(function(n){return si(n,t)})}}function YR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ze.array)||e.every(ze.number)||e.every(ze.plainObject)||e.every(ze.string)}function Qa(e,t){if(ze.plainObject(e)||ze.array(e)){if(ze.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ze.number(t)?e[t]:e}return e}function wde(e,t){if([e,t].some(ze.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return ze.plainObject(m)||ze.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return v6(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Qa(e,m),x=Qa(t,m),A=ze.defined(g),w=ze.defined(b);if(A||w){var C=w?sd(b,$):!sd(g,$),E=sd(g,x);return C&&E}return[$,x].every(ze.array)||[$,x].every(ze.plainObject)?!si($,x):$!==x}catch{return!1}},i=function(m,g,b){if(!ze.defined(m))return!1;try{var $=Qa(e,m),x=Qa(t,m),A=ze.defined(b);return sd(g,$)&&(A?sd(b,x):!A)}catch{return!1}},a=function(m,g){return ze.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!ze.defined(m))return!1;try{return g6(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},s=function(m){try{var g=y6(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=y6(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},f=function(m,g,b){if(!ze.defined(m))return!1;try{return g6(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return v6(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:o,emptied:s,filled:l,increased:f,removed:h}}function D6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D6(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ade(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XR(r.key),r)}}function _f(e,t,n){return t&&Ade(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tr(e,t,n){return t=XR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bf(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_1(e,t)}function Kp(e){return Kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kp(e)}function _1(e,t){return _1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_1(e,t)}function Sde(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tde(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ZR(e,t){if(e==null)return{};var n=Tde(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pde(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mo(e)}function Ff(e){var t=Sde();return function(){var r=Kp(e),i;if(t){var a=Kp(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Pde(this,i)}}function _de(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XR(e){var t=_de(e,"string");return typeof t=="symbol"?t:String(t)}var Bde={flip:{padding:20},preventOverflow:{padding:10}},Fde="The typeValidator argument must be a function with the signature function(props, propName, componentName).",kde="The error message is optional, but must be a string if provided.";function Mde(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Rde(e,t){return Object.hasOwnProperty.call(e,t)}function Ide(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Ode(e,t){if(typeof e!="function")throw new TypeError(Fde);if(t&&typeof t!="string")throw new TypeError(kde)}function $6(e,t,n){return Ode(e,n),function(r,i,a){for(var o=arguments.length,s=new Array(o>3?o-3:0),l=3;l<o;l++)s[l-3]=arguments[l];return Mde(t,r,i,a)?Rde(r,i)?e.apply(void 0,[r,i,a].concat(s)):Ide(r,i,a):e.apply(void 0,[r,i,a].concat(s))}}var Zt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},ud=No.default.createPortal!==void 0;function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Fh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,o=a===void 0?!1:a,s=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){ze.plainObject(l)&&l.key?s.apply(console,[l.key,l.value]):s.apply(console,[l])}):s.apply(console,[n]),console.groupEnd())}function Lde(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Vde(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Nde(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Vde(e,t,i)},Lde(e,t,i,r)}function E6(){}var JR=function(e){Bf(n,e);var t=Ff(n);function n(){return Pf(this,n),t.apply(this,arguments)}return _f(n,[{key:"componentDidMount",value:function(){Ga()&&(this.node||this.appendNode(),ud||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ga()&&(ud||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ga()||!this.node||(ud||No.default.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,a=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ga())return null;var i=this.props,a=i.children,o=i.setRef;if(this.node||this.appendNode(),ud)return No.default.createPortal(a,this.node);var s=No.default.unstable_renderSubtreeIntoContainer(this,a.length>1?de.default.createElement("div",null,a):a[0],this.node);return o(s),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,o=i.placement,s=i.target;return a?this.renderPortal():s||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return ud?this.renderReact16():null}}]),n}(de.default.Component);Tr(JR,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var QR=function(e){Bf(n,e);var t=Ff(n);function n(){return Pf(this,n),t.apply(this,arguments)}return _f(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,o=i.styles,s=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=s):a.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=s):a.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):a.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,a=i.placement,o=i.setArrowRef,s=i.styles,l=s.arrow,f=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,x={display:h,position:b},A,w=$,C=m;return a.startsWith("top")?(A="0,0 ".concat(w/2,",").concat(C," ").concat(w,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):a.startsWith("bottom")?(A="".concat(w,",").concat(C," ").concat(w/2,",0 0,").concat(C),x.top=0,x.marginLeft=g,x.marginRight=g):a.startsWith("left")?(C=$,w=m,A="0,0 ".concat(w,",").concat(C/2," 0,").concat(C),x.right=0,x.marginTop=g,x.marginBottom=g):a.startsWith("right")&&(C=$,w=m,A="".concat(w,",").concat(C," ").concat(w,",0 0,").concat(C/2),x.left=0,x.marginTop=g,x.marginBottom=g),de.default.createElement("div",{className:"__floater__arrow",style:this.parentStyle},de.default.createElement("span",{ref:o,style:x},de.default.createElement("svg",{width:w,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},de.default.createElement("polygon",{points:A,fill:f}))))}}]),n}(de.default.Component);Tr(QR,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var jde=["color","height","width"];function eI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,o=ZR(n,jde);return de.default.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},de.default.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},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:r}))))}eI.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function tI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,o=e.showCloseButton,s=e.title,l=e.styles,f={content:de.default.isValidElement(t)?t:de.default.createElement("div",{className:"__floater__content",style:l.content},t)};return s&&(f.title=de.default.isValidElement(s)?s:de.default.createElement("div",{className:"__floater__title",style:l.title},s)),n&&(f.footer=de.default.isValidElement(n)?n:de.default.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||a)&&!ze.boolean(i)&&(f.close=de.default.createElement(eI,{styles:l.close,handleClick:r})),de.default.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}tI.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var nI=function(e){Bf(n,e);var t=Ff(n);function n(){return Pf(this,n),t.apply(this,arguments)}return _f(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,o=i.component,s=i.placement,l=i.hideArrow,f=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,x=h.floaterOpening,A=h.floaterWithAnimation,w=h.floaterWithComponent,C={};return l||(s.startsWith("top")?C.padding="0 0 ".concat(m,"px"):s.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):s.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):s.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Zt.OPENING,Zt.OPEN].indexOf(f)!==-1&&(C=Sn(Sn({},C),x)),f===Zt.CLOSING&&(C=Sn(Sn({},C),$)),f===Zt.OPEN&&!a&&(C=Sn(Sn({},C),A)),s==="center"&&(C=Sn(Sn({},C),b)),o&&(C=Sn(Sn({},C),w)),Sn(Sn({},g),C)}},{key:"render",value:function(){var i=this.props,a=i.component,o=i.handleClick,s=i.hideArrow,l=i.setFloaterRef,f=i.status,h={},m=["__floater"];return a?de.default.isValidElement(a)?h.content=de.default.cloneElement(a,{closeFn:o}):h.content=a({closeFn:o}):h.content=de.default.createElement(tI,this.props),f===Zt.OPEN&&m.push("__floater__open"),s||(h.arrow=de.default.createElement(QR,this.props)),de.default.createElement("div",{ref:l,className:m.join(" "),style:this.style},de.default.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(de.default.Component);Tr(nI,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var rI=function(e){Bf(n,e);var t=Ff(n);function n(){return Pf(this,n),t.apply(this,arguments)}return _f(n,[{key:"render",value:function(){var i=this.props,a=i.children,o=i.handleClick,s=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(a)if(de.default.Children.count(a)===1)if(!de.default.isValidElement(a))b=de.default.createElement("span",null,a);else{var $=ze.function(a.type)?"innerRef":"ref";b=de.default.cloneElement(de.default.Children.only(a),Tr({},$,f))}else b=a;return b?de.default.createElement("span",{ref:h,style:Sn(Sn({},g),m),onClick:o,onMouseEnter:s,onMouseLeave:l},b):null}}]),n}(de.default.Component);Tr(rI,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Kde={zIndex:100};function zde(e){var t=xa(Kde,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var qde=["arrow","flip","offset"],Ude=["position","top","right","bottom","left"],oD=function(e){Bf(n,e);var t=Ff(n);function n(r){var i;return Pf(this,n),i=t.call(this,r),Tr(Mo(i),"setArrowRef",function(a){i.arrowRef=a}),Tr(Mo(i),"setChildRef",function(a){i.childRef=a}),Tr(Mo(i),"setFloaterRef",function(a){i.floaterRef=a}),Tr(Mo(i),"setWrapperRef",function(a){i.wrapperRef=a}),Tr(Mo(i),"handleTransitionEnd",function(){var a=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===Zt.OPENING?Zt.OPEN:Zt.IDLE},function(){var s=i.state.status;o(s===Zt.OPEN?"open":"close",i.props)})}),Tr(Mo(i),"handleClick",function(){var a=i.props,o=a.event,s=a.open;if(!ze.boolean(s)){var l=i.state,f=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Fh({title:"click",data:[{event:o,status:h===Zt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Tr(Mo(i),"handleMouseEnter",function(){var a=i.props,o=a.event,s=a.open;if(!(ze.boolean(s)||jy())){var l=i.state.status;i.event==="hover"&&l===Zt.IDLE&&(Fh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Tr(Mo(i),"handleMouseLeave",function(){var a=i.props,o=a.event,s=a.eventDelay,l=a.open;if(!(ze.boolean(l)||jy())){var f=i.state,h=f.status,m=f.positionWrapper;i.event==="hover"&&(Fh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),s?[Zt.OPENING,Zt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},s*1e3)):i.toggle(Zt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Zt.INIT,statusWrapper:Zt.INIT},i._isMounted=!1,i.hasMounted=!1,Ga()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return _f(n,[{key:"componentDidMount",value:function(){if(Ga()){var i=this.state.positionWrapper,a=this.props,o=a.children,s=a.open,l=a.target;this._isMounted=!0,Fh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:ze.boolean(s),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&ze.boolean(s)}}},{key:"componentDidUpdate",value:function(i,a){if(Ga()){var o=this.props,s=o.autoOpen,l=o.open,f=o.target,h=o.wrapperOptions,m=wde(a,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;ze.boolean(l)&&($=l?Zt.OPENING:Zt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==f)&&this.changeWrapperPosition(this.props),b("status",Zt.IDLE)&&l?this.toggle(Zt.OPEN):g("status",Zt.INIT,Zt.IDLE)&&s&&this.toggle(Zt.OPEN),this.popper&&b("status",Zt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Zt.OPENING)||b("status",Zt.CLOSING))&&Nde(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ga()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,s=this.props,l=s.disableFlip,f=s.getPopper,h=s.hideArrow,m=s.offset,g=s.placement,b=s.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Zt.IDLE});else if(a&&this.floaterRef){var x=this.options,A=x.arrow,w=x.flip,C=x.offset,E=ZR(x,qde);new ef(a,this.floaterRef,{placement:g,modifiers:Sn({arrow:Sn({enabled:!h,element:this.arrowRef},A),flip:Sn({enabled:!l,behavior:$},w),offset:Sn({offset:"0, ".concat(m,"px")},C)},E),onCreate:function(F){var q;if(i.popper=F,!((q=i.floaterRef)!==null&&q!==void 0&&q.isConnected)){i.setState({needsUpdate:!0});return}f(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Zt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var q=i.state.currentPlacement;i._isMounted&&F.placement!==q&&i.setState({currentPlacement:F.placement})}})}if(o){var T=ze.undefined(b.offset)?0:b.offset;new ef(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Zt.IDLE}),f(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,o=a===Zt.OPEN?Zt.CLOSING:Zt.OPENING;ze.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ga()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,o=i.event;return o==="hover"&&jy()&&!a?"click":o}},{key:"options",get:function(){var i=this.props.options;return xa(Bde,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,o=a.status,s=a.positionWrapper,l=a.statusWrapper,f=this.props.styles,h=xa(zde(f),f);if(s){var m;[Zt.IDLE].indexOf(o)===-1||[Zt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Sn(Sn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Sn(Sn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},s||(Ude.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Sn(Sn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Ga())return null;var i=this.props.target;return i?ze.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,o=i.positionWrapper,s=i.status,l=this.props,f=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,x=l.id,A=l.open,w=l.showCloseButton,C=l.style,E=l.target,T=l.title,P=de.default.createElement(rI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},f),F={};return o?F.wrapperInPortal=P:F.wrapperAsChildren=P,de.default.createElement("span",null,de.default.createElement(JR,{hasChildren:!!f,id:x,placement:a,setRef:this.setFloaterRef,target:E,zIndex:this.styles.options.zIndex},de.default.createElement(nI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||a==="center",open:A,placement:a,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:w,status:s,styles:this.styles,title:T}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(de.default.Component);Tr(oD,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:$6(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:$6(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});Tr(oD,"defaultProps",{autoOpen:!1,callback:E6,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:E6,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Wde=Object.defineProperty,Hde=(e,t,n)=>t in e?Wde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>Hde(e,typeof t!="symbol"?t+"":t,n),rn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ui={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function vs(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function iI(e){return e?e.getBoundingClientRect():null}function Gde(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((a,o)=>a-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Vo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Yde(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function tf(e,t,n){if(!e)return vu();const r=FR(e);if(r){if(r.isSameNode(vu()))return n?document:vu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",vu()}return r}function kf(e,t){if(!e)return!1;const n=tf(e,t);return n?!n.isSameNode(vu()):!1}function Zde(e){return e.offsetParent!==document.body}function ac(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Yde(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?ac(e.parentNode,t):!1}function Xde(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function Jde(e,t,n){var r,i,a;const o=iI(e),s=tf(e,n),l=kf(e,n),f=ac(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&f){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(a=s==null?void 0:s.scrollTop)!=null?a:0;m=g-b}else s instanceof HTMLElement&&(h=s.scrollTop,!l&&!ac(e)&&(m+=h),s.isSameNode(vu())||(m+=vu().scrollTop));return Math.floor(m-t)}function Qde(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=FR(e))!=null?r:{};let o=e.getBoundingClientRect().top+a;i&&(kf(e,n)||Zde(e))&&(o-=i);const s=Math.floor(o-t);return s<0?0:s}function vu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function efe(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:o}=r,s=e>o?e-o:o-e;bce.top(r,e,{duration:s<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?a(l):i())})}var ld=nf.createPortal!==void 0;function aI(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Qh(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ya(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=s6(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(O.isValidElement(e)&&!Object.values(e.props).length&&Qh(e.type)==="function"){const o=e.type({});a=Ya(o,t)}else a=s6(n);return a}function tfe(e,t){return!ft.plainObject(e)||!ft.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function nfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,o,s)=>a+a+o+o+s+s),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function C6(e){return e.disableBeacon||e.placement==="center"}function w6(){return!["chrome","safari","firefox","opera"].includes(aI())}function Ss({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(a=>{ft.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function rfe(e){return Object.keys(e)}function oI(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function ife(e,...t){if(!ft.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function B1(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(Qh(e)==="string")return r(e);if(!O.isValidElement(e))return e;const{children:i}=e.props;if(Qh(i)==="string"&&i.includes("{step}"))return O.cloneElement(e,{children:r(i)});if(Array.isArray(i))return O.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):B1(a,t,n))});if(Qh(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return B1(a,t,n)}return e}function afe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:o}=e;return!a.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!ac(o))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var ofe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},sI={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},sfe={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:sI,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},ufe={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},lfe={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},cd={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},A6={borderRadius:4,position:"absolute"};function cfe(e,t){var n,r,i,a,o;const{floaterProps:s,styles:l}=e,f=xa((n=t.floaterProps)!=null?n:{},s??{}),h=xa(l??{},(r=t.styles)!=null?r:{}),m=xa(lfe,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},x={beacon:{...cd,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${nfe(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...cd,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...cd,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...cd,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...cd,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...A6,backgroundColor:"gray"},spotlightLegacy:{...A6,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(a=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return xa(x,h)}function dfe(e){return ife(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function yl(e,t){var n,r,i,a,o,s;const l=t??{},f=xa.all([sfe,dfe(e),l],{isMergeableObject:ft.plainObject}),h=cfe(e,f),m=kf(Vo(f.target),f.disableScrollParentFix),g=xa.all([ofe,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return g.offset=f.offset,g.styles=xa((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(a=e.spotlightPadding)!=null?a:f.spotlightPadding)!=null?o:0,f.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=f.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...f,locale:xa.all([sI,(s=e.locale)!=null?s:{},f.locale||{}]),floaterProps:g,styles:oI(h,"floaterStyles")}}function uI(e,t=!1){return ft.plainObject(e)?e.target?!0:(Ss({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Ss({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function S6(e,t=!1){return ft.array(e)?e.every(n=>uI(n,t)):(Ss({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var lI={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:Nt.IDLE},T6=rfe(oI(lI,"controlled","size")),ffe=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:o}=this.getState(),s={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!a&&i.length&&(s.status=Nt.RUNNING),this.setState(s)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:o}=this.getState();if(a||o!==Nt.RUNNING)return;const s=this.getSteps()[i];this.setState({...this.getNextState({action:rn.GO,index:i}),status:s?o:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState(this.getNextState({action:rn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Nt.RUNNING&&this.setState({...this.getNextState({action:rn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:rn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:rn.SKIP,lifecycle:Ft.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:o}=this.getState();this.setState({...this.getNextState({action:rn.START,index:ft.number(i)?i:a},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:rn.STOP,index:a+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var a,o;if(!tfe(i,T6))throw new Error(`State is not valid. Valid keys: ${T6.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:rn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:rn.INIT,controlled:ft.number(n),continuous:t,index:ft.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...lI}}getNextState(e,t=!1){var n,r,i,a,o;const{action:s,controlled:l,index:f,size:h,status:m}=this.getState(),g=ft.number(e.index)?e.index:f,b=l&&!t?f:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:s,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:h,status:b===h?Nt.FINISHED:(o=e.status)!=null?o:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:a,origin:o=null,size:s,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",o),this.store.set("size",s),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function hfe(e){return new ffe(e)}function pfe({styles:e}){return de.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var mfe=pfe,gfe=class extends de.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:o}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,f=s>=a&&s<=a+n,m=l>=r&&l<=r+o&&f;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Vo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else ac(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Vo(r);this.scrollParent=tf(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&kf(i,!0)&&Ss({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:a}=this.props,{changed:o}=Vp(e,this.props);if(o("target")||o("disableScrollParentFix")){const s=Vo(a);this.scrollParent=tf(s??document.body,n,!0)}o("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:s}=this.state;s||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return w6()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Gde(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:o=0,styles:s,target:l}=this.props,f=Vo(l),h=iI(f),m=ac(f),g=Jde(f,o,i);return{...w6()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:a?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:a}=this;if(r())return null;let o=n!=="center"&&e&&de.createElement(mfe,{styles:a});if(aI()==="safari"){const{mixBlendMode:s,zIndex:l,...f}=i;o=de.createElement("div",{style:{...f}},o),delete i.backgroundColor}return de.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},vfe=class extends de.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;vs()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),ld||this.renderReact15())}componentDidUpdate(){vs()&&(ld||this.renderReact15())}componentWillUnmount(){!vs()||!this.node||(ld||No.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!vs())return;const{children:e}=this.props;this.node&&No.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!vs()||!ld)return null;const{children:e}=this.props;return this.node?No.createPortal(e,this.node):null}render(){return ld?this.renderReact16():null}},yfe=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},bfe=class extends de.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
147
+ @keyframes joyride-beacon-inner {
148
+ 20% {
149
+ opacity: 0.9;
150
+ }
151
+
152
+ 90% {
153
+ opacity: 0.7;
154
+ }
155
+ }
156
+
157
+ @keyframes joyride-beacon-outer {
158
+ 0% {
159
+ transform: scale(1);
160
+ }
161
+
162
+ 45% {
163
+ opacity: 0.7;
164
+ transform: scale(0.75);
165
+ }
166
+
167
+ 100% {
168
+ opacity: 0.9;
169
+ transform: scale(1);
170
+ }
171
+ }
172
+ `)),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 xfe({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 Dfe=xfe;function $fe(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(Dfe,{"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 Efe=$fe,Cfe=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=B1(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(Efe,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return f}},wfe=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(Cfe,{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}=Vp(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&&Xde(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:C6(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 yfe(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 C6(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!uI(o)||!ft.domElement(s)?null:de.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},de.createElement(oD,{...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(bfe,{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})))}},cI=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;yl(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=hfe({...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;S6(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}=Vp(e,this.props),{changed:C,changedFrom:E}=Vp(t,this.state),T=yl(this.props,f[i]),P=!Kr(m,f),F=ft.number(l)&&w("stepIndex"),q=Vo(T.target);if(P&&(S6(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=yl(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=yl(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=yl(this.props,f[t]),m=Vo(h.target),g=afe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=kf(m,a),$=tf(m,a);let x=Math.floor(Qde(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&&efe(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=yl(this.props,s[e]);f.step=de.createElement(wfe,{...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(vfe,{id:"react-joyride-portal"},de.createElement(gfe,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return de.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};mt(cI,"defaultProps",ufe);var Afe=cI,Ky,P6;function Sfe(){if(P6)return Ky;P6=1;var e=CT(),t=wT(),n=tb(),r=Aa(),i=im(),a=nm(),o=$T(),s=rm(),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 Ky=g,Ky}var Tfe=Sfe();const Pfe=hr(Tfe),sD=Ffe();function Hn(e,...t){if(!sD)return;const n=Bfe(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}function _fe(e,...t){sD&&console.warn(e,...t)}function Bfe(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 Ffe(){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 kfe={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 Mf(e){return`[nuqs] ${kfe[e]}
173
+ See https://nuqs.dev/NUQS-${e}`}const oc=O.createContext({useAdapter(){throw new Error(Mf(404))}});oc.displayName="NuqsAdapterContext";sD&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==oc&&console.error(Mf(303)),window.__NuqsAdapterContext=oc);function Mfe(e){const t=O.useContext(oc);if(!("useAdapter"in t))throw new Error(Mf(404));return t.useAdapter(e)}const Rfe=()=>O.useContext(oc).defaultOptions,Ife=()=>O.useContext(oc).processUrlSearchParams;function Ofe(){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 Lfe(e){return{method:"throttle",timeMs:e}}const kd=Lfe(Ofe());function Vfe(e){return e===null||Array.isArray(e)&&e.length===0}function Nfe(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 dI(){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 F1(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 k1(){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 jfe(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 M1(){return new URLSearchParams(location.search)}var fI=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),Hn("[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=M1}){var t;return((t=this.resolvers)==null?void 0:t.promise)??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=M1,rateLimitFactor:t=1,...n},r){if(this.controller??(this.controller=new AbortController),!Number.isFinite(this.timeMs))return Hn("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=k1();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 F1(()=>{const o=performance.now()-this.lastFlushedAt,s=this.timeMs,l=t*Math.max(0,s-o);Hn("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",l,s,t),l===0?i():F1(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 Hn("[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(Hn("[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(),Hn("[nuqs gtq] Flushing queue %O with options %O",a,o);for(const[l,f]of a)f===null?i.delete(l):i=Nfe(f,l,i);t&&(i=t(i));try{return jfe(s,()=>{n(i,o)}),[i,null]}catch(l){return console.error(Mf(429),a.map(([f])=>f).join(),l),[i,l]}}};const ep=new fI;function Kfe(e,t,n){const r=O.useCallback(()=>{const o=Object.fromEntries(e.map(s=>[s,n(s)]));return[JSON.stringify(o),o]},[e.join(","),n]),i=O.useRef(null);i.current===null&&(i.current=r());const a=O.useCallback(o=>{const s=e.map(l=>t(l,o));return()=>s.forEach(l=>l())},[e.join(","),t]);return O.useSyncExternalStore(a,()=>{const[o,s]=r();return i.current[0]===o?i.current[1]:(i.current=[o,s],s)},()=>i.current[1])}var zfe=class{constructor(e){Xn(this,"callback");Xn(this,"resolvers",k1());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,F1(()=>{const n=this.resolvers;try{Hn("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);Hn("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=k1(),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}},qfe=class{constructor(e=new fI){Xn(this,"throttleQueue");Xn(this,"queues",new Map);Xn(this,"queuedQuerySync",dI());this.throttleQueue=e}useQueuedQueries(e){return Kfe(e,(t,n)=>this.queuedQuerySync.on(t,n),t=>this.getQueuedQuery(t))}push(e,t,n){if(!Number.isFinite(t)){const a=n.getSearchParamsSnapshot??M1;return Promise.resolve(a())}const r=e.key;if(!this.queues.has(r)){Hn("[nuqs dqc] Creating debounce queue for `%s`",r);const a=new zfe(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&&(Hn("[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)}Hn("[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?(Hn("[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())Hn("[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 zy=new qfe(ep);function Ufe(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 hI(e,t,n){try{return e(t)}catch(r){return _fe("[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),hI(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 Wfe=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 uD(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:uD});Xo({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:uD});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:uD});const qy=dI(),Hfe={};function pI(e,t={}){const n=O.useId(),r=Rfe(),i=Ife(),{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=Hfe}=t,b=Object.keys(e).join(","),$=O.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,g[te]??te])),[b,JSON.stringify(g)]),x=Mfe(Object.values($)),A=x.searchParams,w=O.useRef({}),C=O.useMemo(()=>Object.fromEntries(Object.keys(e).map(te=>[te,e[te].defaultValue??null])),[Object.values(e).map(({defaultValue:te})=>te).join(",")]),E=zy.useQueuedQueries(Object.values($)),[T,P]=O.useState(()=>{const te=A??new URLSearchParams;return Uy(e,g,te,E).state}),F=O.useRef(T);if(Hn("[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}=Uy(e,g,A,E,w.current,F.current);se&&(Hn("[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,I])=>{const Ee=e[ae];return[I,(Ee==null?void 0:Ee.type)==="multi"?A==null?void 0:A.getAll(I):(A==null?void 0:A.get(I))??null]}))}O.useEffect(()=>{const{state:te,hasChanged:se}=Uy(e,g,A,E,w.current,F.current);se&&(Hn("[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)]),O.useEffect(()=>{const te=Object.keys(e).reduce((se,ae)=>(se[ae]=({state:I,query:Ee})=>{P(be=>{const{defaultValue:z}=e[ae],G=$[ae],V=I??z??null,R=be[ae]??z??null;return Object.is(R,V)?(Hn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",n,b,G,I,z,F.current),be):(F.current={...F.current,[ae]:V},w.current[G]=Ee,Hn("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",n,b,G,I,z,F.current),F.current)})},se),{});for(const se of Object.keys(e)){const ae=$[se];Hn("[nuq+ %s `%s`] Subscribing to sync for `%s`",n,ae,b),qy.on(ae,te[se])}return()=>{for(const se of Object.keys(e)){const ae=$[se];Hn("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",n,ae,b),qy.off(ae,te[se])}}},[b,$]);const q=O.useCallback((te,se={})=>{var R,K,fe,M,oe,le;const ae=Object.fromEntries(Object.keys(e).map(Se=>[Se,null])),I=typeof te=="function"?te(_6(F.current,C))??ae:te??ae;Hn("[nuq+ %s `%s`] setState: %O",n,b,I);let Ee,be=0,z=!1;const G=[];for(let[Se,_e]of Object.entries(I)){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);qy.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(Mf(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=zy.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(zy.abort(Ge)),ep.push(Ne,qe),z=!0}}const V=G.reduce((Se,_e)=>_e(Se),z?ep.flush(x,i):ep.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[O.useMemo(()=>_6(T,C),[T,C]),q]}function Uy(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&&Ufe(i[m]??b,$)?(l[f]=a[f]??null,l):(o=!0,l[f]=(Vfe($)?null:hI(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 _6(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function Gfe(e,t={}){const{parse:n,type:r,serialize:i,eq:a,defaultValue:o,...s}=t,[{[e]:l},f]=pI({[e]:{parse:n??(m=>m),type:r,serialize:i,eq:a,defaultValue:o}},s),h=O.useCallback((m,g={})=>f(b=>({[e]:typeof m=="function"?m(b[e]):m}),g),[e,f]);return[l,h]}exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=Mk;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=OP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ff;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=jP;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=er;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=eQ;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=WF;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=_r;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=tJ;exports.$293f70390ea03370$export$497855f14858aa34=GJ;exports.$32489daedd52963e$export$1315d136e6f7581=oQ;exports.$337b884510726a0d$export$c6fdb837b070b4ff=_J;exports.$36a0ac60f04457c5$export$136073280381448e=UX;exports.$3c0fc76039f1c516$export$60e84778edff6d26=D9;exports.$40df3f8667284809$export$d55e7ee900f34e93=cQ;exports.$46a4342aab3d8076$export$87e0539f600c24e5=KX;exports.$47b897dc8cdb026b$export$8d15029008292ae=aJ;exports.$5c06e4929e123553$export$ccdee5eaf73cf661=AQ;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=rJ;exports.$6057a3d2a53a12fd$export$42df105a73306d51=nQ;exports.$64244302c3013299$export$dd0bbc9b26defe37=fX;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=AX;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=lQ;exports.$93c38a5e28be6249$export$e50a61c1de9f574=UQ;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=jX;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=SQ;exports.$a916eb452884faea$export$b7a616150fdb9f44=wX;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=kQ;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=VQ;exports.$bb77f239b46e8c72$export$3274cf84b703fff=p7;exports.$bcca50147b47f54d$export$56b2c08e277f365=iJ;exports.$c132121280ec012d$export$50eacbbf140a3141=NJ;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=KJ;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=JJ;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=zX;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=WQ;exports.$f2f8a6077418541e$export$542a6fd13ac93354=PJ;exports.$fae977aafc393c5c$export$588937bcd60ade55=jZ;exports.$fae977aafc393c5c$export$6b862160d295c8e=NZ;exports.ACTIONS=rn;exports.AdvancedImage=yq;exports.CSVLink=Kle;exports.Cloudinary=hU;exports.Controller=bG;exports.EVENTS=Ui;exports.FormProvider=vG;exports.LazyMotion=Kae;exports.Lottie=Sae;exports.M=va;exports.ReorderGroup=fae;exports.ReorderItem=gae;exports.STATUS=Nt;exports._=VW;exports._$1=Iu;exports.autoUpdate=zH;exports.capitalize=$K;exports.components_default=Afe;exports.dayjs=JQ;exports.dayjs_minExports=$9;exports.domAnimation=Ele;exports.ee=w9;exports.flexRender=Wle;exports.flip=JH;exports.isEmpty=Pfe;exports.isEqual=YQ;exports.isNil=Ule;exports.isNumber=tee;exports.isUndefined=Tee;exports.lazyload=dq;exports.localizedFormat=xae;exports.lodashExports=kT;exports.m=Boe;exports.o=Eae;exports.offset=ZH;exports.parseAsString=Wfe;exports.placeholder=mq;exports.prismExports=_ee;exports.q=Gb;exports.random=Rae;exports.shift=XH;exports.some=IW;exports.transform=tce;exports.useController=rP;exports.useFieldArray=MG;exports.useFloating=cG;exports.useFloating$1=HT;exports.useFocus=dG;exports.useForm=RG;exports.useFormContext=sf;exports.useHover=uG;exports.useInteractions=fG;exports.useQueryState=Gfe;exports.useQueryStates=pI;exports.useRole=pG;exports.useVirtualizer=HG;exports.useWatch=nP;