@fluidattacks/design 3.8.10 → 3.8.12-pr

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 (155) 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/alert/index.js +1 -1
  5. package/dist/components/avatar/index.d.ts +5 -0
  6. package/dist/components/avatar/index.js +1 -0
  7. package/dist/components/avatar/index.stories.d.ts +9 -0
  8. package/dist/components/avatar/styles.d.ts +3 -0
  9. package/dist/components/avatar/types.d.ts +15 -0
  10. package/dist/components/button/index.js +1 -1
  11. package/dist/components/card/card-header/index.js +1 -1
  12. package/dist/components/card/card-with-image/index.js +1 -1
  13. package/dist/components/card/card-with-input/index.js +1 -1
  14. package/dist/components/card/card-with-options/index.d.ts +1 -1
  15. package/dist/components/card/card-with-options/index.js +1 -1
  16. package/dist/components/card/card-with-options/types.d.ts +2 -0
  17. package/dist/components/card/card-with-selector/index.js +1 -1
  18. package/dist/components/card/card-with-switch/index.js +1 -1
  19. package/dist/components/card/index.js +1 -1
  20. package/dist/components/carousel/index.js +1 -1
  21. package/dist/components/checkbox/index.js +1 -1
  22. package/dist/components/cloud-image/index.js +1 -1
  23. package/dist/components/code-snippet/index.js +1 -1
  24. package/dist/components/code-snippet/location-code/index.js +1 -1
  25. package/dist/components/colors/index.js +1 -1
  26. package/dist/components/confirm-dialog/index.js +1 -1
  27. package/dist/components/container/index.js +1 -1
  28. package/dist/components/content-card/category-tag/index.js +1 -1
  29. package/dist/components/content-card/event-date/index.js +1 -1
  30. package/dist/components/content-card/index.js +1 -1
  31. package/dist/components/content-card-carousel/index.js +1 -1
  32. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  33. package/dist/components/divider/index.js +1 -1
  34. package/dist/components/empty-state/empty-button/index.js +1 -1
  35. package/dist/components/empty-state/index.js +1 -1
  36. package/dist/components/file-preview/index.js +1 -1
  37. package/dist/components/form/index.js +1 -1
  38. package/dist/components/grid-container/index.js +1 -1
  39. package/dist/components/group-selector/index.js +1 -1
  40. package/dist/components/group-selector/option-container/index.js +1 -1
  41. package/dist/components/icon/index.js +1 -1
  42. package/dist/components/icon-button/index.js +1 -1
  43. package/dist/components/indicator-card/index.js +1 -1
  44. package/dist/components/info-sidebar/index.js +1 -1
  45. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  46. package/dist/components/inputs/fields/combobox/index.js +1 -1
  47. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  48. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  49. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  50. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  51. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  52. package/dist/components/inputs/fields/date/index.js +1 -1
  53. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  54. package/dist/components/inputs/fields/date-range/index.js +1 -1
  55. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  56. package/dist/components/inputs/fields/date-time/index.js +1 -1
  57. package/dist/components/inputs/fields/editable/index.js +1 -1
  58. package/dist/components/inputs/fields/input/index.js +1 -1
  59. package/dist/components/inputs/fields/input-file/index.js +1 -1
  60. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  61. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  62. package/dist/components/inputs/fields/number/index.js +1 -1
  63. package/dist/components/inputs/fields/number-range/index.js +1 -1
  64. package/dist/components/inputs/fields/phone/index.js +1 -1
  65. package/dist/components/inputs/fields/text-area/index.js +1 -1
  66. package/dist/components/inputs/index.js +1 -1
  67. package/dist/components/inputs/label/index.js +1 -1
  68. package/dist/components/inputs/outline-container/index.js +1 -1
  69. package/dist/components/inputs/utils/action-button/index.js +1 -1
  70. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  71. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  72. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  73. package/dist/components/inputs/utils/dialog/index.js +1 -1
  74. package/dist/components/inputs/utils/number-field/index.js +1 -1
  75. package/dist/components/inputs/utils/popover/index.js +1 -1
  76. package/dist/components/interactive-card/icon/index.js +1 -1
  77. package/dist/components/interactive-card/index.js +1 -1
  78. package/dist/components/language-selector/index.js +1 -1
  79. package/dist/components/language-selector/item-list/index.js +1 -1
  80. package/dist/components/layout/categories/buttons/index.js +1 -1
  81. package/dist/components/layout/categories/column/index.js +1 -1
  82. package/dist/components/layout/categories/gap/index.js +1 -1
  83. package/dist/components/layout/categories/row/index.js +1 -1
  84. package/dist/components/layout/index.js +1 -1
  85. package/dist/components/link/index.js +1 -1
  86. package/dist/components/list-item/index.js +1 -1
  87. package/dist/components/little-flag/index.js +1 -1
  88. package/dist/components/loading/index.js +1 -1
  89. package/dist/components/logo/index.js +1 -1
  90. package/dist/components/logo-carousel/index.js +1 -1
  91. package/dist/components/menu/index.js +1 -1
  92. package/dist/components/message-banner/index.js +1 -1
  93. package/dist/components/modal/columns-modal/index.js +1 -1
  94. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  95. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  96. package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
  97. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  98. package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
  99. package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
  100. package/dist/components/modal/footer/index.js +1 -1
  101. package/dist/components/modal/header/index.js +1 -1
  102. package/dist/components/modal/index.js +1 -1
  103. package/dist/components/modal/modal-confirm/index.js +1 -1
  104. package/dist/components/notification/index.js +1 -1
  105. package/dist/components/notification-sign/index.js +1 -1
  106. package/dist/components/number-input/index.js +1 -1
  107. package/dist/components/oauth-selector/index.js +1 -1
  108. package/dist/components/oauth-selector/option-container/index.js +1 -1
  109. package/dist/components/plan-card/index.js +1 -1
  110. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  111. package/dist/components/pop-up/description/index.js +1 -1
  112. package/dist/components/pop-up/index.js +1 -1
  113. package/dist/components/premium-feature/index.js +1 -1
  114. package/dist/components/priority-score/index.js +1 -1
  115. package/dist/components/progress/index.js +1 -1
  116. package/dist/components/progress-bar/index.js +1 -1
  117. package/dist/components/radio-button/index.js +1 -1
  118. package/dist/components/scroll-button/index.js +1 -1
  119. package/dist/components/search/index.js +1 -1
  120. package/dist/components/search-bar/index.js +1 -1
  121. package/dist/components/search-bar/item-searching/index.js +1 -1
  122. package/dist/components/severity-badge/index.js +1 -1
  123. package/dist/components/severity-overview/badge/index.js +1 -1
  124. package/dist/components/severity-overview/index.js +1 -1
  125. package/dist/components/show-on-hover/index.js +1 -1
  126. package/dist/components/slide-out-menu/index.js +1 -1
  127. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  128. package/dist/components/slider/index.js +1 -1
  129. package/dist/components/slider/thumb/index.js +1 -1
  130. package/dist/components/step-lapse/index.js +1 -1
  131. package/dist/components/table-button/index.js +1 -1
  132. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  133. package/dist/components/tabs/index.js +1 -1
  134. package/dist/components/tabs/tab/index.js +1 -1
  135. package/dist/components/tag/index.js +1 -1
  136. package/dist/components/timeline/card/index.js +1 -1
  137. package/dist/components/timeline/index.js +1 -1
  138. package/dist/components/toggle/index.js +1 -1
  139. package/dist/components/toggle-buttons/index.js +1 -1
  140. package/dist/components/tooltip/index.js +1 -1
  141. package/dist/components/tour/index.js +1 -1
  142. package/dist/components/typography/heading/index.js +1 -1
  143. package/dist/components/typography/index.js +1 -1
  144. package/dist/components/typography/span/index.js +1 -1
  145. package/dist/components/typography/text/index.js +1 -1
  146. package/dist/components/web-form/index.js +1 -1
  147. package/dist/{components-BN5SnXhp.mjs → components-BdfZ568j.mjs} +1960 -1813
  148. package/dist/{components-DdA5GVFG.js → components-BkVGLtTl.js} +277 -197
  149. package/dist/hooks/index.js +1 -1
  150. package/dist/hooks/use-columns-modal.d.ts +1 -0
  151. package/dist/index.js +1 -1
  152. package/dist/vendor-BiCYkoh5.js +223 -0
  153. package/dist/{vendor-BPuY1wZ5.mjs → vendor-Cl-gDlvC.mjs} +15477 -14057
  154. package/package.json +4 -4
  155. package/dist/vendor-Du4Zm0P4.js +0 -223
@@ -1,223 +0,0 @@
1
- "use strict";require('./assets/vendor.css');const $=require("react"),sa=require("react-dom"),Co=require("react/jsx-runtime");function PE(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 qe=PE($),wf=PE(sa);var Xn=function(){return Xn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xn.apply(this,arguments)};function ts(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function oB(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var aB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sB=oB(function(e){return aB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt="-ms-",Zl="-moz-",St="-webkit-",RE="comm",Bh="rule",zv="decl",uB="@import",_E="@keyframes",lB="@layer",OE=Math.abs,Wv=String.fromCharCode,ay=Object.assign;function cB(e,t){return An(e,0)^45?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}function ME(e){return e.trim()}function yo(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function Df(e,t,n){return e.indexOf(t,n)}function An(e,t){return e.charCodeAt(t)|0}function yu(e,t,n){return e.slice(t,n)}function ki(e){return e.length}function FE(e){return e.length}function Vl(e,t){return t.push(e),e}function dB(e,t){return e.map(t).join("")}function v3(e,t){return e.filter(function(n){return!yo(n,t)})}var Ih=1,vu=1,kE=0,si=0,yn=0,Nu="";function Lh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ih,column:vu,length:a,return:"",siblings:u}}function Yo(e,t){return ay(Lh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Us(e){for(;e.root;)e=Yo(e.root,{children:[e]});Vl(e,e.siblings)}function fB(){return yn}function hB(){return yn=si>0?An(Nu,--si):0,vu--,yn===10&&(vu=1,Ih--),yn}function $i(){return yn=si<kE?An(Nu,si++):0,vu++,yn===10&&(vu=1,Ih++),yn}function Za(){return An(Nu,si)}function Ef(){return si}function Vh(e,t){return yu(Nu,e,t)}function sy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pB(e){return Ih=vu=1,kE=ki(Nu=e),si=0,[]}function mB(e){return Nu="",e}function Lm(e){return ME(Vh(si-1,uy(e===91?e+2:e===40?e+1:e)))}function gB(e){for(;(yn=Za())&&yn<33;)$i();return sy(e)>2||sy(yn)>3?"":" "}function yB(e,t){for(;--t&&$i()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return Vh(e,Ef()+(t<6&&Za()==32&&$i()==32))}function uy(e){for(;$i();)switch(yn){case e:return si;case 34:case 39:e!==34&&e!==39&&uy(yn);break;case 40:e===41&&uy(e);break;case 92:$i();break}return si}function vB(e,t){for(;$i()&&e+yn!==57;)if(e+yn===84&&Za()===47)break;return"/*"+Vh(t,si-1)+"*"+Wv(e===47?e:$i())}function bB(e){for(;!sy(Za());)$i();return Vh(e,si)}function $B(e){return mB(Cf("",null,null,null,[""],e=pB(e),0,[0],e))}function Cf(e,t,n,r,i,o,a,u,c){for(var d=0,f=0,h=a,m=0,g=0,y=0,x=1,C=1,b=1,v=0,D="",T=i,E=o,A=r,M=D;C;)switch(y=v,v=$i()){case 40:if(y!=108&&An(M,h-1)==58){Df(M+=at(Lm(v),"&","&\f"),"&\f",OE(d?u[d-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:M+=Lm(v);break;case 9:case 10:case 13:case 32:M+=gB(y);break;case 92:M+=yB(Ef()-1,7);continue;case 47:switch(Za()){case 42:case 47:Vl(xB(vB($i(),Ef()),t,n,c),c);break;default:M+="/"}break;case 123*x:u[d++]=ki(M)*b;case 125*x:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+f:b==-1&&(M=at(M,/\f/g,"")),g>0&&ki(M)-h&&Vl(g>32?$3(M+";",r,n,h-1,c):$3(at(M," ","")+";",r,n,h-2,c),c);break;case 59:M+=";";default:if(Vl(A=b3(M,t,n,d,f,i,u,D,T=[],E=[],h,o),o),v===123)if(f===0)Cf(M,t,A,A,T,o,h,u,E);else switch(m===99&&An(M,3)===110?100:m){case 100:case 108:case 109:case 115:Cf(e,A,A,r&&Vl(b3(e,A,A,0,0,i,u,D,i,T=[],h,E),E),i,E,h,u,r?T:E);break;default:Cf(M,A,A,A,[""],E,0,u,E)}}d=f=g=0,x=b=1,D=M="",h=a;break;case 58:h=1+ki(M),g=y;default:if(x<1){if(v==123)--x;else if(v==125&&x++==0&&hB()==125)continue}switch(M+=Wv(v),v*x){case 38:b=f>0?1:(M+="\f",-1);break;case 44:u[d++]=(ki(M)-1)*b,b=1;break;case 64:Za()===45&&(M+=Lm($i())),m=Za(),f=h=ki(D=M+=bB(Ef())),v++;break;case 45:y===45&&ki(M)==2&&(x=0)}}return o}function b3(e,t,n,r,i,o,a,u,c,d,f,h){for(var m=i-1,g=i===0?o:[""],y=FE(g),x=0,C=0,b=0;x<r;++x)for(var v=0,D=yu(e,m+1,m=OE(C=a[x])),T=e;v<y;++v)(T=ME(C>0?g[v]+" "+D:at(D,/&\f/g,g[v])))&&(c[b++]=T);return Lh(e,t,n,i===0?Bh:u,c,d,f,h)}function xB(e,t,n,r){return Lh(e,t,n,RE,Wv(fB()),yu(e,2,-2),0,r)}function $3(e,t,n,r,i){return Lh(e,t,n,zv,yu(e,0,r),yu(e,r+1,-1),r,i)}function BE(e,t,n){switch(cB(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return Zl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Zl+e+zt+e+e;case 5936:switch(An(e,t+11)){case 114:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+zt+e+e;case 6165:return St+e+zt+"flex-"+e+e;case 5187:return St+e+at(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+zt+"flex-$1$2")+e;case 5443:return St+e+zt+"flex-item-"+at(e,/flex-|-self/g,"")+(yo(e,/flex-|baseline/)?"":zt+"grid-row-"+at(e,/flex-|-self/g,""))+e;case 4675:return St+e+zt+"flex-line-pack"+at(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+zt+at(e,"shrink","negative")+e;case 5292:return St+e+zt+at(e,"basis","preferred-size")+e;case 6060:return St+"box-"+at(e,"-grow","")+St+e+zt+at(e,"grow","positive")+e;case 4554:return St+at(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!yo(e,/flex-|baseline/))return zt+"grid-column-align"+yu(e,t)+e;break;case 2592:case 3360:return zt+at(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,yo(r.props,/grid-\w+-end/)})?~Df(e+(n=n[t].value),"span",0)?e:zt+at(e,"-start","")+e+zt+"grid-row-span:"+(~Df(n,"span",0)?yo(n,/\d+/):+yo(n,/\d+/)-+yo(e,/\d+/))+";":zt+at(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return yo(r.props,/grid-\w+-start/)})?e:zt+at(at(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ki(e)-1-t>6)switch(An(e,t+1)){case 109:if(An(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Zl+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Df(e,"stretch",0)?BE(at(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return at(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,c,d){return zt+i+":"+o+d+(a?zt+i+"-span:"+(u?c:+c-+o)+d:"")+e});case 4949:if(An(e,t+6)===121)return at(e,":",":"+St)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return at(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(An(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+zt+"$2box$3")+e;case 100:return at(e,":",":"+zt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return at(e,"scroll-","scroll-snap-")+e}return e}function Uf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function wB(e,t,n,r){switch(e.type){case lB:if(e.children.length)break;case uB:case zv:return e.return=e.return||e.value;case RE:return"";case _E:return e.return=e.value+"{"+Uf(e.children,r)+"}";case Bh:if(!ki(e.value=e.props.join(",")))return""}return ki(n=Uf(e.children,r))?e.return=e.value+"{"+n+"}":""}function DB(e){var t=FE(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function EB(e){return function(t){t.root||(t=t.return)&&e(t)}}function CB(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zv:e.return=BE(e.value,e.length,n);return;case _E:return Uf([Yo(e,{value:at(e.value,"@","@"+St)})],r);case Bh:if(e.length)return dB(n=e.props,function(i){switch(yo(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Us(Yo(e,{props:[at(i,/:(read-\w+)/,":"+Zl+"$1")]})),Us(Yo(e,{props:[i]})),ay(e,{props:v3(n,r)});break;case"::placeholder":Us(Yo(e,{props:[at(i,/:(plac\w+)/,":"+St+"input-$1")]})),Us(Yo(e,{props:[at(i,/:(plac\w+)/,":"+Zl+"$1")]})),Us(Yo(e,{props:[at(i,/:(plac\w+)/,zt+"input-$1")]})),Us(Yo(e,{props:[i]})),ay(e,{props:v3(n,r)});break}return""})}}var SB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ns=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",IE="active",LE="data-styled-version",Nh="6.1.14",Hv=`/*!sc*/
2
- `,zf=typeof window<"u"&&"HTMLElement"in window,TB=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),x3=/invalid hook call/i,Jd=new Set,AB=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(a){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];x3.test(a)?(o=!1,Jd.delete(r)):i.apply(void 0,ts([a],u,!1))},$.useRef(),o&&!Jd.has(r)&&(console.warn(r),Jd.add(r))}catch(a){x3.test(a.message)&&Jd.delete(r)}finally{console.error=i}}},jh=Object.freeze([]),bu=Object.freeze({});function PB(e,t,n){return n===void 0&&(n=bu),e.theme!==n.theme&&e.theme||t||n.theme}var ly=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),RB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_B=/(^-|-$)/g;function w3(e){return e.replace(RB,"-").replace(_B,"")}var OB=/(a)(d)/gi,Xd=52,D3=function(e){return String.fromCharCode(e+(e>25?39:97))};function cy(e){var t,n="";for(t=Math.abs(e);t>Xd;t=t/Xd|0)n=D3(t%Xd)+n;return(D3(t%Xd)+n).replace(OB,"$1-$2")}var Vm,VE=5381,Va=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},NE=function(e){return Va(VE,e)};function jE(e){return cy(NE(e)>>>0)}function KE(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Nm(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var UE=typeof Symbol=="function"&&Symbol.for,zE=UE?Symbol.for("react.memo"):60115,MB=UE?Symbol.for("react.forward_ref"):60112,FB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},WE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BB=((Vm={})[MB]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vm[zE]=WE,Vm);function E3(e){return("type"in(t=e)&&t.type.$$typeof)===zE?WE:"$$typeof"in e?BB[e.$$typeof]:FB;var t}var IB=Object.defineProperty,LB=Object.getOwnPropertyNames,C3=Object.getOwnPropertySymbols,VB=Object.getOwnPropertyDescriptor,NB=Object.getPrototypeOf,S3=Object.prototype;function HE(e,t,n){if(typeof t!="string"){if(S3){var r=NB(t);r&&r!==S3&&HE(e,r,n)}var i=LB(t);C3&&(i=i.concat(C3(t)));for(var o=E3(e),a=E3(t),u=0;u<i.length;++u){var c=i[u];if(!(c in kB||n&&n[c]||a&&c in a||o&&c in o)){var d=VB(t,c);try{IB(e,c,d)}catch{}}}}return e}function rs(e){return typeof e=="function"}function Gv(e){return typeof e=="object"&&"styledComponentId"in e}function Ka(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dy(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $u(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fy(e,t,n){if(n===void 0&&(n=!1),!n&&!$u(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=fy(e[r],t[r]);else if($u(t))for(var r in t)e[r]=fy(e[r],t[r]);return e}function qv(e,t){Object.defineProperty(e,"toString",{value:t})}var jB=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
5
-
6
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
7
-
8
- - Are you trying to reuse it across renders?
9
- - Are you accidentally calling collectStyles twice?
10
-
11
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
12
-
13
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
14
-
15
- - Does this error occur on the client and is your target falsy?
16
- - Does this error occur on the server and is the sheet falsy?
17
-
18
- `,5:`The clone method cannot be used on the client!
19
-
20
- - Are you running in a client-like environment on the server?
21
- - Are you trying to run SSR on the client?
22
-
23
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
24
-
25
- - Are you using a custom target that isn't mounted?
26
- - Does your document not have a valid head element?
27
- - Have you accidentally removed a style tag manually?
28
-
29
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
30
-
31
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
32
-
33
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
34
-
35
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
36
-
37
- `,14:`ThemeProvider: "theme" prop is required.
38
-
39
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
40
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
41
- as for instance in your render method then you may be running into this limitation.
42
-
43
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
44
- Has styled-components' style tag been unmounted or altered by another script?
45
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function KB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function Hi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(KB.apply(void 0,ts([jB[e]],t,!1)).trim())}var UB=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw Hi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var u=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(u,n[a])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Hv);return n},e}(),zB=1<<30,Sf=new Map,Wf=new Map,Tf=1,Qd=function(e){if(Sf.has(e))return Sf.get(e);for(;Wf.has(Tf);)Tf++;var t=Tf++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>zB))throw Hi(16,"".concat(t));return Sf.set(e,t),Wf.set(t,e),t},WB=function(e,t){Tf=t+1,Sf.set(e,t),Wf.set(t,e)},HB="style[".concat(ns,"][").concat(LE,'="').concat(Nh,'"]'),GB=new RegExp("^".concat(ns,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),qB=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},YB=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Hv),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var c=u.match(GB);if(c){var d=0|parseInt(c[1],10),f=c[2];d!==0&&(WB(f,d),qB(e,f,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},T3=function(e){for(var t=document.querySelectorAll(HB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ns)!==IE&&(YB(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ZB(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var GE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var c=Array.from(u.querySelectorAll("style[".concat(ns,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(ns,IE),r.setAttribute(LE,Nh);var a=ZB();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},JB=function(){function e(t){this.element=GE(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Hi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),XB=function(){function e(t){this.element=GE(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),QB=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),A3=zf,eI={isServer:!zf,useCSSOMInjection:!TB},qE=function(){function e(t,n,r){t===void 0&&(t=bu),n===void 0&&(n={});var i=this;this.options=Xn(Xn({},eI),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&zf&&A3&&(A3=!1,T3(this)),qv(this,function(){return function(o){for(var a=o.getTag(),u=a.length,c="",d=function(h){var m=function(b){return Wf.get(b)}(h);if(m===void 0)return"continue";var g=o.names.get(m),y=a.getGroup(h);if(g===void 0||!g.size||y.length===0)return"continue";var x="".concat(ns,".g").concat(h,'[id="').concat(m,'"]'),C="";g!==void 0&&g.forEach(function(b){b.length>0&&(C+="".concat(b,","))}),c+="".concat(y).concat(x,'{content:"').concat(C,'"}').concat(Hv)},f=0;f<u;f++)d(f);return c}(i)})}return e.registerId=function(t){return Qd(t)},e.prototype.rehydrate=function(){!this.server&&zf&&T3(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Xn(Xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new QB(i):r?new JB(i):new XB(i)}(this.options),new UB(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Qd(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Qd(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Qd(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),tI=/&/g,nI=/^\s*\/\/.*$/gm;function YE(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=YE(n.children,t)),n})}function rI(e){var t,n,r,i=bu,o=i.options,a=o===void 0?bu:o,u=i.plugins,c=u===void 0?jh:u,d=function(m,g,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===Bh&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(tI,n).replace(r,d))}),a.prefix&&f.push(CB),f.push(wB);var h=function(m,g,y,x){g===void 0&&(g=""),y===void 0&&(y=""),x===void 0&&(x="&"),t=x,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(nI,""),b=$B(y||g?"".concat(y," ").concat(g," { ").concat(C," }"):C);a.namespace&&(b=YE(b,a.namespace));var v=[];return Uf(b,DB(f.concat(EB(function(D){return v.push(D)})))),v};return h.hash=c.length?c.reduce(function(m,g){return g.name||Hi(15),Va(m,g.name)},VE).toString():"",h}var iI=new qE,hy=rI(),ZE=$.createContext({shouldForwardProp:void 0,styleSheet:iI,stylis:hy});ZE.Consumer;$.createContext(void 0);function P3(){return $.useContext(ZE)}var py=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=hy);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,qv(this,function(){throw Hi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hy),this.name+t.hash},e}(),oI=function(e){return e>="A"&&e<="Z"};function R3(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;oI(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var JE=function(e){return e==null||e===!1||e===""},XE=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!JE(o)&&(Array.isArray(o)&&o.isCss||rs(o)?r.push("".concat(R3(i),":"),o,";"):$u(o)?r.push.apply(r,ts(ts(["".concat(i," {")],XE(o),!1),["}"],!1)):r.push("".concat(R3(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in SB||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ja(e,t,n,r){if(JE(e))return[];if(Gv(e))return[".".concat(e.styledComponentId)];if(rs(e)){if(!rs(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof py||$u(i)||i===null||console.error("".concat(KE(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ja(i,t,n,r)}var o;return e instanceof py?n?(e.inject(n,r),[e.getName(r)]):[e]:$u(e)?XE(e):Array.isArray(e)?Array.prototype.concat.apply(jh,e.map(function(a){return Ja(a,t,n,r)})):[e.toString()]}function aI(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(rs(n)&&!Gv(n))return!1}return!0}var sI=NE(Nh),uI=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&aI(t),this.componentId=n,this.baseHash=Va(sI,n),this.baseStyle=r,qE.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Ka(i,this.staticRulesId);else{var o=dy(Ja(this.rules,t,n,r)),a=cy(Va(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var u=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,u)}i=Ka(i,a),this.staticRulesId=a}else{for(var c=Va(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=Va(c,h));else if(h){var m=dy(Ja(h,t,n,r));c=Va(c,m+f),d+=m}}if(d){var g=cy(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Ka(i,g)}}return i},e}(),uc=$.createContext(void 0);uc.Consumer;function lI(){var e=$.useContext(uc);if(!e)throw Hi(18);return e}function cI(e){var t=$.useContext(uc),n=$.useMemo(function(){return function(r,i){if(!r)throw Hi(14);if(rs(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Hi(7);return o}if(Array.isArray(r)||typeof r!="object")throw Hi(8);return i?Xn(Xn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?$.createElement(uc.Provider,{value:n},e.children):null}var jm={},_3=new Set;function dI(e,t,n){var r=Gv(e),i=e,o=!Nm(e),a=t.attrs,u=a===void 0?jh:a,c=t.componentId,d=c===void 0?function(T,E){var A=typeof T!="string"?"sc":w3(T);jm[A]=(jm[A]||0)+1;var M="".concat(A,"-").concat(jE(Nh+A+jm[A]));return E?"".concat(E,"-").concat(M):M}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(T){return Nm(T)?"styled.".concat(T):"Styled(".concat(KE(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(w3(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var x=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;y=function(T,E){return x(T,E)&&C(T,E)}}else y=x}var b=new uI(n,m,r?i.componentStyle:void 0);function v(T,E){return function(A,M,S){var z=A.attrs,K=A.componentStyle,L=A.defaultProps,X=A.foldedComponentIds,_=A.styledComponentId,I=A.target,W=$.useContext(uc),k=P3(),V=A.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&$.useDebugValue(_);var R=PB(M,W,L)||bu,G=function($e,De,Ee){for(var Y,he=Xn(Xn({},De),{className:void 0,theme:Ee}),ye=0;ye<$e.length;ye+=1){var fe=rs(Y=$e[ye])?Y(he):Y;for(var ae in fe)he[ae]=ae==="className"?Ka(he[ae],fe[ae]):ae==="style"?Xn(Xn({},he[ae]),fe[ae]):fe[ae]}return De.className&&(he.className=Ka(he.className,De.className)),he}(z,M,R),U=G.as||I,N={};for(var ne in G)G[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&G.theme===R||(ne==="forwardedAs"?N.as=G.forwardedAs:V&&!V(ne,U)||(N[ne]=G[ne],V||process.env.NODE_ENV!=="development"||sB(ne)||_3.has(ne)||!ly.has(U)||(_3.add(ne),console.warn('styled-components: it looks like an unknown prop "'.concat(ne,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ie=function($e,De){var Ee=P3(),Y=$e.generateAndInjectStyles(De,Ee.styleSheet,Ee.stylis);return process.env.NODE_ENV!=="production"&&$.useDebugValue(Y),Y}(K,G);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(ie);var le=Ka(X,_);return ie&&(le+=" "+ie),G.className&&(le+=" "+G.className),N[Nm(U)&&!ly.has(U)?"class":"className"]=le,S&&(N.ref=S),$.createElement(U,N)}(D,T,E)}v.displayName=h;var D=$.forwardRef(v);return D.attrs=g,D.componentStyle=b,D.displayName=h,D.shouldForwardProp=y,D.foldedComponentIds=r?Ka(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=m,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?function(E){for(var A=[],M=1;M<arguments.length;M++)A[M-1]=arguments[M];for(var S=0,z=A;S<z.length;S++)fy(E,z[S],!0);return E}({},i.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(AB(h,m),D.warnTooManyClasses=function(T,E){var A={},M=!1;return function(S){if(!M&&(A[S]=!0,Object.keys(A).length>=200)){var z=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(z,`.
46
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
47
- Example:
48
- const Component = styled.div.attrs(props => ({
49
- style: {
50
- background: props.background,
51
- },
52
- }))\`width: 100%;\`
53
-
54
- <Component />`),M=!0,A={}}}}(h,m)),qv(D,function(){return".".concat(D.styledComponentId)}),o&&HE(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function O3(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var M3=function(e){return Object.assign(e,{isCss:!0})};function Yv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(rs(e)||$u(e))return M3(Ja(O3(jh,ts([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ja(r):M3(Ja(O3(r,t)))}function my(e,t,n){if(n===void 0&&(n=bu),!t)throw Hi(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Yv.apply(void 0,ts([i],o,!1)))};return r.attrs=function(i){return my(e,t,Xn(Xn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return my(e,t,Xn(Xn({},n),i))},r}var QE=function(e){return my(dI,e)},eC=QE;ly.forEach(function(e){eC[e]=QE(e)});function fI(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=dy(Yv.apply(void 0,ts([e],t,!1))),i=jE(r);return new py(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
55
- Perhaps you're looking to import 'styled-components/native'?
56
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ef="__sc-".concat(ns,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ef]||(window[ef]=0),window[ef]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
57
-
58
- See https://s-c.sh/2BAXzed for more info.`),window[ef]+=1);const xu=Math.min,Xa=Math.max,Hf=Math.round,tf=Math.floor,Gi=e=>({x:e,y:e}),hI={left:"right",right:"left",bottom:"top",top:"bottom"},pI={start:"end",end:"start"};function gy(e,t,n){return Xa(e,xu(t,n))}function Rc(e,t){return typeof e=="function"?e(t):e}function is(e){return e.split("-")[0]}function _c(e){return e.split("-")[1]}function tC(e){return e==="x"?"y":"x"}function Zv(e){return e==="y"?"height":"width"}function wu(e){return["top","bottom"].includes(is(e))?"y":"x"}function Jv(e){return tC(wu(e))}function mI(e,t,n){n===void 0&&(n=!1);const r=_c(e),i=Jv(e),o=Zv(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Gf(a)),[a,Gf(a)]}function gI(e){const t=Gf(e);return[yy(e),t,yy(t)]}function yy(e){return e.replace(/start|end/g,t=>pI[t])}function yI(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function vI(e,t,n,r){const i=_c(e);let o=yI(is(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(yy)))),o}function Gf(e){return e.replace(/left|right|bottom|top/g,t=>hI[t])}function bI(e){return{top:0,right:0,bottom:0,left:0,...e}}function nC(e){return typeof e!="number"?bI(e):{top:e,right:e,bottom:e,left:e}}function qf(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 F3(e,t,n){let{reference:r,floating:i}=e;const o=wu(t),a=Jv(t),u=Zv(a),c=is(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(_c(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const $I=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=F3(d,r,c),m=r,g={},y=0;for(let x=0;x<u.length;x++){const{name:C,fn:b}=u[x],{x:v,y:D,data:T,reset:E}=await b({x:f,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=v??f,h=D??h,g={...g,[C]:{...g[C],...T}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=F3(d,m,c)),x=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:g}};async function rC(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Rc(t,e),y=nC(g),C=u[m?h==="floating"?"reference":"floating":h],b=qf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:f,strategy:c})),v=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),T=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},E=qf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:D,strategy:c}):v);return{top:(b.top-E.top+y.top)/T.y,bottom:(E.bottom-b.bottom+y.bottom)/T.y,left:(b.left-E.left+y.left)/T.x,right:(E.right-b.right+y.right)/T.x}}const xI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=Rc(e,t)||{};if(d==null)return{};const h=nC(f),m={x:n,y:r},g=Jv(i),y=Zv(g),x=await a.getDimensions(d),C=g==="y",b=C?"top":"left",v=C?"bottom":"right",D=C?"clientHeight":"clientWidth",T=o.reference[y]+o.reference[g]-m[g]-o.floating[y],E=m[g]-o.reference[g],A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let M=A?A[D]:0;(!M||!await(a.isElement==null?void 0:a.isElement(A)))&&(M=u.floating[D]||o.floating[y]);const S=T/2-E/2,z=M/2-x[y]/2-1,K=xu(h[b],z),L=xu(h[v],z),X=K,_=M-x[y]-L,I=M/2-x[y]/2+S,W=gy(X,I,_),k=!c.arrow&&_c(i)!=null&&I!==W&&o.reference[y]/2-(I<X?K:L)-x[y]/2<0,V=k?I<X?I-X:I-_:0;return{[g]:m[g]+V,data:{[g]:W,centerOffset:I-W-V,...k&&{alignmentOffset:V}},reset:k}}}),wI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...C}=Rc(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=is(i),v=wu(u),D=is(u)===u,T=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=m||(D||!x?[Gf(u)]:gI(u)),A=y!=="none";!m&&A&&E.push(...vI(u,x,y,T));const M=[u,...E],S=await rC(t,C),z=[];let K=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&z.push(S[b]),h){const I=mI(i,a,T);z.push(S[I[0]],S[I[1]])}if(K=[...K,{placement:i,overflows:z}],!z.every(I=>I<=0)){var L,X;const I=(((L=o.flip)==null?void 0:L.index)||0)+1,W=M[I];if(W)return{data:{index:I,overflows:K},reset:{placement:W}};let k=(X=K.filter(V=>V.overflows[0]<=0).sort((V,R)=>V.overflows[1]-R.overflows[1])[0])==null?void 0:X.placement;if(!k)switch(g){case"bestFit":{var _;const V=(_=K.filter(R=>{if(A){const G=wu(R.placement);return G===v||G==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(G=>G>0).reduce((G,U)=>G+U,0)]).sort((R,G)=>R[1]-G[1])[0])==null?void 0:_[0];V&&(k=V);break}case"initialPlacement":k=u;break}if(i!==k)return{reset:{placement:k}}}return{}}}};async function DI(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=is(n),u=_c(n),c=wu(n)==="y",d=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=Rc(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof y=="number"&&(g=u==="end"?y*-1:y),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const EI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:u}=t,c=await DI(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},CI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x:b,y:v}=C;return{x:b,y:v}}},...c}=Rc(e,t),d={x:n,y:r},f=await rC(t,c),h=wu(is(i)),m=tC(h);let g=d[m],y=d[h];if(o){const C=m==="y"?"top":"left",b=m==="y"?"bottom":"right",v=g+f[C],D=g-f[b];g=gy(v,g,D)}if(a){const C=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=y+f[C],D=y-f[b];y=gy(v,y,D)}const x=u.fn({...t,[m]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[m]:o,[h]:a}}}}}};function Kh(){return typeof window<"u"}function ju(e){return iC(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qi(e){var t;return(t=(iC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function iC(e){return Kh()?e instanceof Node||e instanceof Mr(e).Node:!1}function xi(e){return Kh()?e instanceof Element||e instanceof Mr(e).Element:!1}function Ji(e){return Kh()?e instanceof HTMLElement||e instanceof Mr(e).HTMLElement:!1}function k3(e){return!Kh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot}function Oc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function SI(e){return["table","td","th"].includes(ju(e))}function Uh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xv(e){const t=Qv(),n=xi(e)?wi(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TI(e){let t=da(e);for(;Ji(t)&&!Du(t);){if(Xv(t))return t;if(Uh(t))return null;t=da(t)}return null}function Qv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Du(e){return["html","body","#document"].includes(ju(e))}function wi(e){return Mr(e).getComputedStyle(e)}function zh(e){return xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(ju(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k3(e)&&e.host||Qi(e);return k3(t)?t.host:t}function oC(e){const t=da(e);return Du(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&Oc(t)?t:oC(t)}function lc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=oC(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Mr(i);if(o){const u=vy(a);return t.concat(a,a.visualViewport||[],Oc(i)?i:[],u&&n?lc(u):[])}return t.concat(i,lc(i,[],n))}function vy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aC(e){const t=wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=Hf(n)!==o||Hf(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function eb(e){return xi(e)?e:e.contextElement}function lu(e){const t=eb(e);if(!Ji(t))return Gi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=aC(t);let a=(o?Hf(n.width):n.width)/r,u=(o?Hf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const AI=Gi(0);function sC(e){const t=Mr(e);return!Qv()||!t.visualViewport?AI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function PI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mr(e)?!1:t}function os(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=eb(e);let a=Gi(1);t&&(r?xi(r)&&(a=lu(r)):a=lu(e));const u=PI(o,n,r)?sC(o):Gi(0);let c=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const m=Mr(o),g=r&&xi(r)?Mr(r):r;let y=m,x=vy(y);for(;x&&r&&g!==y;){const C=lu(x),b=x.getBoundingClientRect(),v=wi(x),D=b.left+(x.clientLeft+parseFloat(v.paddingLeft))*C.x,T=b.top+(x.clientTop+parseFloat(v.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,h*=C.y,c+=D,d+=T,y=Mr(x),x=vy(y)}}return qf({width:f,height:h,x:c,y:d})}function tb(e,t){const n=zh(e).scrollLeft;return t?t.left+n:os(Qi(e)).left+n}function uC(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:tb(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function RI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Qi(r),u=t?Uh(t.floating):!1;if(r===a||u&&o)return n;let c={scrollLeft:0,scrollTop:0},d=Gi(1);const f=Gi(0),h=Ji(r);if((h||!h&&!o)&&((ju(r)!=="body"||Oc(a))&&(c=zh(r)),Ji(r))){const g=os(r);d=lu(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=a&&!h&&!o?uC(a,c,!0):Gi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function _I(e){return Array.from(e.getClientRects())}function OI(e){const t=Qi(e),n=zh(e),r=e.ownerDocument.body,i=Xa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tb(e);const u=-n.scrollTop;return wi(r).direction==="rtl"&&(a+=Xa(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function MI(e,t){const n=Mr(e),r=Qi(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;const d=Qv();(!d||d&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u,y:c}}function FI(e,t){const n=os(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ji(e)?lu(e):Gi(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:u,x:c,y:d}}function B3(e,t,n){let r;if(t==="viewport")r=MI(e,n);else if(t==="document")r=OI(Qi(e));else if(xi(t))r=FI(t,n);else{const i=sC(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qf(r)}function lC(e,t){const n=da(e);return n===t||!xi(n)||Du(n)?!1:wi(n).position==="fixed"||lC(n,t)}function kI(e,t){const n=t.get(e);if(n)return n;let r=lc(e,[],!1).filter(u=>xi(u)&&ju(u)!=="body"),i=null;const o=wi(e).position==="fixed";let a=o?da(e):e;for(;xi(a)&&!Du(a);){const u=wi(a),c=Xv(a);!c&&u.position==="fixed"&&(i=null),(o?!c&&!i:!c&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Oc(a)&&!c&&lC(e,a))?r=r.filter(f=>f!==a):i=u,a=da(a)}return t.set(e,r),r}function BI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Uh(t)?[]:kI(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((d,f)=>{const h=B3(t,f,i);return d.top=Xa(h.top,d.top),d.right=xu(h.right,d.right),d.bottom=xu(h.bottom,d.bottom),d.left=Xa(h.left,d.left),d},B3(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function II(e){const{width:t,height:n}=aC(e);return{width:t,height:n}}function LI(e,t,n){const r=Ji(t),i=Qi(t),o=n==="fixed",a=os(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const c=Gi(0);if(r||!r&&!o)if((ju(t)!=="body"||Oc(i))&&(u=zh(t)),r){const m=os(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else i&&(c.x=tb(i));const d=i&&!r&&!o?uC(i,u):Gi(0),f=a.left+u.scrollLeft-c.x-d.x,h=a.top+u.scrollTop-c.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Km(e){return wi(e).position==="static"}function I3(e,t){if(!Ji(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qi(e)===n&&(n=n.ownerDocument.body),n}function cC(e,t){const n=Mr(e);if(Uh(e))return n;if(!Ji(e)){let i=da(e);for(;i&&!Du(i);){if(xi(i)&&!Km(i))return i;i=da(i)}return n}let r=I3(e,t);for(;r&&SI(r)&&Km(r);)r=I3(r,t);return r&&Du(r)&&Km(r)&&!Xv(r)?n:r||TI(e)||n}const VI=async function(e){const t=this.getOffsetParent||cC,n=this.getDimensions,r=await n(e.floating);return{reference:LI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NI(e){return wi(e).direction==="rtl"}const jI={convertOffsetParentRelativeRectToViewportRelativeRect:RI,getDocumentElement:Qi,getClippingRect:BI,getOffsetParent:cC,getElementRects:VI,getClientRects:_I,getDimensions:II,getScale:lu,isElement:xi,isRTL:NI};function dC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KI(e,t){let n=null,r;const i=Qi(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const y=tf(h),x=tf(i.clientWidth-(f+m)),C=tf(i.clientHeight-(h+g)),b=tf(f),D={rootMargin:-y+"px "+-x+"px "+-C+"px "+-b+"px",threshold:Xa(0,xu(1,c))||1};let T=!0;function E(A){const M=A[0].intersectionRatio;if(M!==c){if(!T)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!dC(d,e.getBoundingClientRect())&&a(),T=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return a(!0),o}function fC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=eb(e),f=i||o?[...d?lc(d):[],...lc(t)]:[];f.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const h=d&&u?KI(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(b=>{let[v]=b;v&&v.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var D;(D=g)==null||D.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let y,x=c?os(e):null;c&&C();function C(){const b=os(e);x&&!dC(x,b)&&n(),x=b,y=requestAnimationFrame(C)}return n(),()=>{var b;f.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),h==null||h(),(b=g)==null||b.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const hC=EI,UI=CI,pC=wI,zI=xI,by=(e,t,n)=>{const r=new Map,i={platform:jI,...n},o={...i.platform,_c:r};return $I(e,t,{...i,platform:o})};var Af=typeof document<"u"?$.useLayoutEffect:$.useEffect;function Yf(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(!Yf(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 o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Yf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function mC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L3(e,t){const n=mC(e);return Math.round(t*n)/n}function Um(e){const t=qe.useRef(e);return Af(()=>{t.current=e}),t}function WI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=qe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=qe.useState(r);Yf(m,r)||g(r);const[y,x]=qe.useState(null),[C,b]=qe.useState(null),v=qe.useCallback(R=>{R!==A.current&&(A.current=R,x(R))},[]),D=qe.useCallback(R=>{R!==M.current&&(M.current=R,b(R))},[]),T=o||y,E=a||C,A=qe.useRef(null),M=qe.useRef(null),S=qe.useRef(f),z=c!=null,K=Um(c),L=Um(i),X=Um(d),_=qe.useCallback(()=>{if(!A.current||!M.current)return;const R={placement:t,strategy:n,middleware:m};L.current&&(R.platform=L.current),by(A.current,M.current,R).then(G=>{const U={...G,isPositioned:X.current!==!1};I.current&&!Yf(S.current,U)&&(S.current=U,wf.flushSync(()=>{h(U)}))})},[m,t,n,L,X]);Af(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[d]);const I=qe.useRef(!1);Af(()=>(I.current=!0,()=>{I.current=!1}),[]),Af(()=>{if(T&&(A.current=T),E&&(M.current=E),T&&E){if(K.current)return K.current(T,E,_);_()}},[T,E,_,K,z]);const W=qe.useMemo(()=>({reference:A,floating:M,setReference:v,setFloating:D}),[v,D]),k=qe.useMemo(()=>({reference:T,floating:E}),[T,E]),V=qe.useMemo(()=>{const R={position:n,left:0,top:0};if(!k.floating)return R;const G=L3(k.floating,f.x),U=L3(k.floating,f.y);return u?{...R,transform:"translate("+G+"px, "+U+"px)",...mC(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:U}},[n,u,k.floating,f.x,f.y]);return qe.useMemo(()=>({...f,update:_,refs:W,elements:k,floatingStyles:V}),[f,_,W,k,V])}const HI=(e,t)=>({...hC(e),options:[e,t]}),GI=(e,t)=>({...pC(e),options:[e,t]});var Nl={exports:{}};/**
59
- * @license
60
- * Lodash <https://lodash.com/>
61
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
62
- * Released under MIT license <https://lodash.com/license>
63
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
64
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
65
- */var qI=Nl.exports,V3;function YI(){return V3||(V3=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,y=1,x=2,C=1,b=2,v=4,D=8,T=16,E=32,A=64,M=128,S=256,z=512,K=30,L="...",X=800,_=16,I=1,W=2,k=3,V=1/0,R=9007199254740991,G=17976931348623157e292,U=NaN,N=4294967295,ne=N-1,ie=N>>>1,le=[["ary",M],["bind",C],["bindKey",b],["curry",D],["curryRight",T],["flip",z],["partial",E],["partialRight",A],["rearg",S]],$e="[object Arguments]",De="[object Array]",Ee="[object AsyncFunction]",Y="[object Boolean]",he="[object Date]",ye="[object DOMException]",fe="[object Error]",ae="[object Function]",Fe="[object GeneratorFunction]",et="[object Map]",dt="[object Number]",Dn="[object Null]",yt="[object Object]",q="[object Promise]",Z="[object Proxy]",re="[object RegExp]",pe="[object Set]",Ce="[object String]",we="[object Symbol]",Re="[object Undefined]",Ve="[object WeakMap]",mt="[object WeakSet]",ut="[object ArrayBuffer]",_t="[object DataView]",Pn="[object Float32Array]",Rn="[object Float64Array]",Yt="[object Int8Array]",Ln="[object Int16Array]",tn="[object Int32Array]",vt="[object Uint8Array]",Vn="[object Uint8ClampedArray]",Sr="[object Uint16Array]",_n="[object Uint32Array]",er=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,Ir=RegExp(Nn.source),Vt=RegExp(En.source),Cn=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(je.source),Ft=/^\s+/,rn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wt=/[()=,{}\[\]\/\s]/,li=/\\(\\)?/g,ba=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hr=/\w*$/,Mo=/^[-+]0x[0-9a-f]+$/i,Fo=/^0b[01]+$/i,ko=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Bo=/['\n\r\u2028\u2029\\]/g,Lr="\\ud800-\\udfff",tl="\\u0300-\\u036f",$s="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",Io=tl+$s+nl,Ai="\\u2700-\\u27bf",$a="a-z\\xdf-\\xf6\\xf8-\\xff",xa="\\xac\\xb1\\xd7\\xf7",xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ws="\\u2000-\\u206f",rl=" \\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",Ds="A-Z\\xc0-\\xd6\\xd8-\\xde",wa="\\ufe0e\\ufe0f",Es=xa+xs+ws+rl,to="['’]",il="["+Lr+"]",Cs="["+Es+"]",Lo="["+Io+"]",Ss="\\d+",F="["+Ai+"]",Q="["+$a+"]",ue="[^"+Lr+Es+Ss+Ai+$a+Ds+"]",be="\\ud83c[\\udffb-\\udfff]",_e="(?:"+Lo+"|"+be+")",it="[^"+Lr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+Ds+"]",Wt="\\u200d",Mn="(?:"+Q+"|"+ue+")",Fn="(?:"+Ot+"|"+ue+")",Vr="(?:"+to+"(?:d|ll|m|re|s|t|ve))?",rr="(?:"+to+"(?:D|LL|M|RE|S|T|VE))?",Ts=_e+"?",Da="["+wa+"]?",Ea="(?:"+Wt+"(?:"+[it,Ke,ze].join("|")+")"+Da+Ts+")*",no="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ol=Da+Ts+Ea,_p="(?:"+[F,Ke,ze].join("|")+")"+ol,al="(?:"+[it+Lo+"?",Lo,Ke,ze,il].join("|")+")",cd=RegExp(to,"g"),Op=RegExp(Lo,"g"),sl=RegExp(be+"(?="+be+")|"+al+ol,"g"),dd=RegExp([Ot+"?"+Q+"+"+Vr+"(?="+[Cs,Ot,"$"].join("|")+")",Fn+"+"+rr+"(?="+[Cs,Ot+Mn,"$"].join("|")+")",Ot+"?"+Mn+"+"+Vr,Ot+"+"+rr,Rp,no,Ss,_p].join("|"),"g"),Mp=RegExp("["+Wt+Lr+Io+wa+"]"),As=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fp=["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"],ul=-1,Bt={};Bt[Pn]=Bt[Rn]=Bt[Yt]=Bt[Ln]=Bt[tn]=Bt[vt]=Bt[Vn]=Bt[Sr]=Bt[_n]=!0,Bt[$e]=Bt[De]=Bt[ut]=Bt[Y]=Bt[_t]=Bt[he]=Bt[fe]=Bt[ae]=Bt[et]=Bt[dt]=Bt[yt]=Bt[re]=Bt[pe]=Bt[Ce]=Bt[Ve]=!1;var Mt={};Mt[$e]=Mt[De]=Mt[ut]=Mt[_t]=Mt[Y]=Mt[he]=Mt[Pn]=Mt[Rn]=Mt[Yt]=Mt[Ln]=Mt[tn]=Mt[et]=Mt[dt]=Mt[yt]=Mt[re]=Mt[pe]=Mt[Ce]=Mt[we]=Mt[vt]=Mt[Vn]=Mt[Sr]=Mt[_n]=!0,Mt[fe]=Mt[ae]=Mt[Ve]=!1;var j={À:"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"},oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,Un=parseInt,Nr=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi,zn=typeof self=="object"&&self&&self.Object===Object&&self,mn=Nr||zn||Function("return this")(),Pi=t&&!t.nodeType&&t,Ri=Pi&&!0&&e&&!e.nodeType&&e,ll=Ri&&Ri.exports===Pi,Ps=ll&&Nr.process,Wn=function(){try{var ee=Ri&&Ri.require&&Ri.require("util").types;return ee||Ps&&Ps.binding&&Ps.binding("util")}catch{}}(),Ca=Wn&&Wn.isArrayBuffer,p1=Wn&&Wn.isDate,m1=Wn&&Wn.isMap,g1=Wn&&Wn.isRegExp,y1=Wn&&Wn.isSet,v1=Wn&&Wn.isTypedArray;function Tr(ee,de,se){switch(se.length){case 0:return ee.call(de);case 1:return ee.call(de,se[0]);case 2:return ee.call(de,se[0],se[1]);case 3:return ee.call(de,se[0],se[1],se[2])}return ee.apply(de,se)}function A_(ee,de,se,Me){for(var Je=-1,bt=ee==null?0:ee.length;++Je<bt;){var bn=ee[Je];de(Me,bn,se(bn),ee)}return Me}function jr(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me&&de(ee[se],se,ee)!==!1;);return ee}function P_(ee,de){for(var se=ee==null?0:ee.length;se--&&de(ee[se],se,ee)!==!1;);return ee}function b1(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me;)if(!de(ee[se],se,ee))return!1;return!0}function Vo(ee,de){for(var se=-1,Me=ee==null?0:ee.length,Je=0,bt=[];++se<Me;){var bn=ee[se];de(bn,se,ee)&&(bt[Je++]=bn)}return bt}function fd(ee,de){var se=ee==null?0:ee.length;return!!se&&Rs(ee,de,0)>-1}function kp(ee,de,se){for(var Me=-1,Je=ee==null?0:ee.length;++Me<Je;)if(se(de,ee[Me]))return!0;return!1}function Ht(ee,de){for(var se=-1,Me=ee==null?0:ee.length,Je=Array(Me);++se<Me;)Je[se]=de(ee[se],se,ee);return Je}function No(ee,de){for(var se=-1,Me=de.length,Je=ee.length;++se<Me;)ee[Je+se]=de[se];return ee}function Bp(ee,de,se,Me){var Je=-1,bt=ee==null?0:ee.length;for(Me&&bt&&(se=ee[++Je]);++Je<bt;)se=de(se,ee[Je],Je,ee);return se}function R_(ee,de,se,Me){var Je=ee==null?0:ee.length;for(Me&&Je&&(se=ee[--Je]);Je--;)se=de(se,ee[Je],Je,ee);return se}function Ip(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me;)if(de(ee[se],se,ee))return!0;return!1}var __=Lp("length");function O_(ee){return ee.split("")}function M_(ee){return ee.match(kt)||[]}function $1(ee,de,se){var Me;return se(ee,function(Je,bt,bn){if(de(Je,bt,bn))return Me=bt,!1}),Me}function hd(ee,de,se,Me){for(var Je=ee.length,bt=se+(Me?1:-1);Me?bt--:++bt<Je;)if(de(ee[bt],bt,ee))return bt;return-1}function Rs(ee,de,se){return de===de?W_(ee,de,se):hd(ee,x1,se)}function F_(ee,de,se,Me){for(var Je=se-1,bt=ee.length;++Je<bt;)if(Me(ee[Je],de))return Je;return-1}function x1(ee){return ee!==ee}function w1(ee,de){var se=ee==null?0:ee.length;return se?Np(ee,de)/se:U}function Lp(ee){return function(de){return de==null?n:de[ee]}}function Vp(ee){return function(de){return ee==null?n:ee[de]}}function D1(ee,de,se,Me,Je){return Je(ee,function(bt,bn,It){se=Me?(Me=!1,bt):de(se,bt,bn,It)}),se}function k_(ee,de){var se=ee.length;for(ee.sort(de);se--;)ee[se]=ee[se].value;return ee}function Np(ee,de){for(var se,Me=-1,Je=ee.length;++Me<Je;){var bt=de(ee[Me]);bt!==n&&(se=se===n?bt:se+bt)}return se}function jp(ee,de){for(var se=-1,Me=Array(ee);++se<ee;)Me[se]=de(se);return Me}function B_(ee,de){return Ht(de,function(se){return[se,ee[se]]})}function E1(ee){return ee&&ee.slice(0,A1(ee)+1).replace(Ft,"")}function Ar(ee){return function(de){return ee(de)}}function Kp(ee,de){return Ht(de,function(se){return ee[se]})}function cl(ee,de){return ee.has(de)}function C1(ee,de){for(var se=-1,Me=ee.length;++se<Me&&Rs(de,ee[se],0)>-1;);return se}function S1(ee,de){for(var se=ee.length;se--&&Rs(de,ee[se],0)>-1;);return se}function I_(ee,de){for(var se=ee.length,Me=0;se--;)ee[se]===de&&++Me;return Me}var L_=Vp(j),V_=Vp(oe);function N_(ee){return"\\"+Ie[ee]}function j_(ee,de){return ee==null?n:ee[de]}function _s(ee){return Mp.test(ee)}function K_(ee){return As.test(ee)}function U_(ee){for(var de,se=[];!(de=ee.next()).done;)se.push(de.value);return se}function Up(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me,Je){se[++de]=[Je,Me]}),se}function T1(ee,de){return function(se){return ee(de(se))}}function jo(ee,de){for(var se=-1,Me=ee.length,Je=0,bt=[];++se<Me;){var bn=ee[se];(bn===de||bn===f)&&(ee[se]=f,bt[Je++]=se)}return bt}function pd(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me){se[++de]=Me}),se}function z_(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me){se[++de]=[Me,Me]}),se}function W_(ee,de,se){for(var Me=se-1,Je=ee.length;++Me<Je;)if(ee[Me]===de)return Me;return-1}function H_(ee,de,se){for(var Me=se+1;Me--;)if(ee[Me]===de)return Me;return Me}function Os(ee){return _s(ee)?q_(ee):__(ee)}function ci(ee){return _s(ee)?Y_(ee):O_(ee)}function A1(ee){for(var de=ee.length;de--&&rn.test(ee.charAt(de)););return de}var G_=Vp(ve);function q_(ee){for(var de=sl.lastIndex=0;sl.test(ee);)++de;return de}function Y_(ee){return ee.match(sl)||[]}function Z_(ee){return ee.match(dd)||[]}var J_=function ee(de){de=de==null?mn:Ms.defaults(mn.Object(),de,Ms.pick(mn,Fp));var se=de.Array,Me=de.Date,Je=de.Error,bt=de.Function,bn=de.Math,It=de.Object,zp=de.RegExp,X_=de.String,Kr=de.TypeError,md=se.prototype,Q_=bt.prototype,Fs=It.prototype,gd=de["__core-js_shared__"],yd=Q_.toString,At=Fs.hasOwnProperty,eO=0,P1=function(){var s=/[^.]+$/.exec(gd&&gd.keys&&gd.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),vd=Fs.toString,tO=yd.call(It),nO=mn._,rO=zp("^"+yd.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bd=ll?de.Buffer:n,Ko=de.Symbol,$d=de.Uint8Array,R1=bd?bd.allocUnsafe:n,xd=T1(It.getPrototypeOf,It),_1=It.create,O1=Fs.propertyIsEnumerable,wd=md.splice,M1=Ko?Ko.isConcatSpreadable:n,dl=Ko?Ko.iterator:n,Sa=Ko?Ko.toStringTag:n,Dd=function(){try{var s=_a(It,"defineProperty");return s({},"",{}),s}catch{}}(),iO=de.clearTimeout!==mn.clearTimeout&&de.clearTimeout,oO=Me&&Me.now!==mn.Date.now&&Me.now,aO=de.setTimeout!==mn.setTimeout&&de.setTimeout,Ed=bn.ceil,Cd=bn.floor,Wp=It.getOwnPropertySymbols,sO=bd?bd.isBuffer:n,F1=de.isFinite,uO=md.join,lO=T1(It.keys,It),$n=bn.max,Hn=bn.min,cO=Me.now,dO=de.parseInt,k1=bn.random,fO=md.reverse,Hp=_a(de,"DataView"),fl=_a(de,"Map"),Gp=_a(de,"Promise"),ks=_a(de,"Set"),hl=_a(de,"WeakMap"),pl=_a(It,"create"),Sd=hl&&new hl,Bs={},hO=Oa(Hp),pO=Oa(fl),mO=Oa(Gp),gO=Oa(ks),yO=Oa(hl),Td=Ko?Ko.prototype:n,ml=Td?Td.valueOf:n,B1=Td?Td.toString:n;function O(s){if(on(s)&&!Xe(s)&&!(s instanceof ft)){if(s instanceof Ur)return s;if(At.call(s,"__wrapped__"))return I4(s)}return new Ur(s)}var Is=function(){function s(){}return function(l){if(!Zt(l))return{};if(_1)return _1(l);s.prototype=l;var p=new s;return s.prototype=n,p}}();function Ad(){}function Ur(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}O.templateSettings={escape:Cn,evaluate:Ne,interpolate:tt,variable:"",imports:{_:O}},O.prototype=Ad.prototype,O.prototype.constructor=O,Ur.prototype=Is(Ad.prototype),Ur.prototype.constructor=Ur;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function vO(){var s=new ft(this.__wrapped__);return s.__actions__=mr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=mr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=mr(this.__views__),s}function bO(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $O(){var s=this.__wrapped__.value(),l=this.__dir__,p=Xe(s),w=l<0,P=p?s.length:0,B=OM(0,P,this.__views__),H=B.start,J=B.end,te=J-H,me=w?J:H-1,ge=this.__iteratees__,xe=ge.length,Pe=0,Le=Hn(te,this.__takeCount__);if(!p||!w&&P==te&&Le==te)return a4(s,this.__actions__);var We=[];e:for(;te--&&Pe<Le;){me+=l;for(var ot=-1,He=s[me];++ot<xe;){var lt=ge[ot],ht=lt.iteratee,_r=lt.type,ar=ht(He);if(_r==W)He=ar;else if(!ar){if(_r==I)continue e;break e}}We[Pe++]=He}return We}ft.prototype=Is(Ad.prototype),ft.prototype.constructor=ft;function Ta(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function xO(){this.__data__=pl?pl(null):{},this.size=0}function wO(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function DO(s){var l=this.__data__;if(pl){var p=l[s];return p===c?n:p}return At.call(l,s)?l[s]:n}function EO(s){var l=this.__data__;return pl?l[s]!==n:At.call(l,s)}function CO(s,l){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=pl&&l===n?c:l,this}Ta.prototype.clear=xO,Ta.prototype.delete=wO,Ta.prototype.get=DO,Ta.prototype.has=EO,Ta.prototype.set=CO;function ro(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function SO(){this.__data__=[],this.size=0}function TO(s){var l=this.__data__,p=Pd(l,s);if(p<0)return!1;var w=l.length-1;return p==w?l.pop():wd.call(l,p,1),--this.size,!0}function AO(s){var l=this.__data__,p=Pd(l,s);return p<0?n:l[p][1]}function PO(s){return Pd(this.__data__,s)>-1}function RO(s,l){var p=this.__data__,w=Pd(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}ro.prototype.clear=SO,ro.prototype.delete=TO,ro.prototype.get=AO,ro.prototype.has=PO,ro.prototype.set=RO;function io(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function _O(){this.size=0,this.__data__={hash:new Ta,map:new(fl||ro),string:new Ta}}function OO(s){var l=jd(this,s).delete(s);return this.size-=l?1:0,l}function MO(s){return jd(this,s).get(s)}function FO(s){return jd(this,s).has(s)}function kO(s,l){var p=jd(this,s),w=p.size;return p.set(s,l),this.size+=p.size==w?0:1,this}io.prototype.clear=_O,io.prototype.delete=OO,io.prototype.get=MO,io.prototype.has=FO,io.prototype.set=kO;function Aa(s){var l=-1,p=s==null?0:s.length;for(this.__data__=new io;++l<p;)this.add(s[l])}function BO(s){return this.__data__.set(s,c),this}function IO(s){return this.__data__.has(s)}Aa.prototype.add=Aa.prototype.push=BO,Aa.prototype.has=IO;function di(s){var l=this.__data__=new ro(s);this.size=l.size}function LO(){this.__data__=new ro,this.size=0}function VO(s){var l=this.__data__,p=l.delete(s);return this.size=l.size,p}function NO(s){return this.__data__.get(s)}function jO(s){return this.__data__.has(s)}function KO(s,l){var p=this.__data__;if(p instanceof ro){var w=p.__data__;if(!fl||w.length<i-1)return w.push([s,l]),this.size=++p.size,this;p=this.__data__=new io(w)}return p.set(s,l),this.size=p.size,this}di.prototype.clear=LO,di.prototype.delete=VO,di.prototype.get=NO,di.prototype.has=jO,di.prototype.set=KO;function I1(s,l){var p=Xe(s),w=!p&&Ma(s),P=!p&&!w&&Go(s),B=!p&&!w&&!P&&js(s),H=p||w||P||B,J=H?jp(s.length,X_):[],te=J.length;for(var me in s)(l||At.call(s,me))&&!(H&&(me=="length"||P&&(me=="offset"||me=="parent")||B&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||uo(me,te)))&&J.push(me);return J}function L1(s){var l=s.length;return l?s[im(0,l-1)]:n}function UO(s,l){return Kd(mr(s),Pa(l,0,s.length))}function zO(s){return Kd(mr(s))}function qp(s,l,p){(p!==n&&!fi(s[l],p)||p===n&&!(l in s))&&oo(s,l,p)}function gl(s,l,p){var w=s[l];(!(At.call(s,l)&&fi(w,p))||p===n&&!(l in s))&&oo(s,l,p)}function Pd(s,l){for(var p=s.length;p--;)if(fi(s[p][0],l))return p;return-1}function WO(s,l,p,w){return Uo(s,function(P,B,H){l(w,P,p(P),H)}),w}function V1(s,l){return s&&Oi(l,Sn(l),s)}function HO(s,l){return s&&Oi(l,yr(l),s)}function oo(s,l,p){l=="__proto__"&&Dd?Dd(s,l,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[l]=p}function Yp(s,l){for(var p=-1,w=l.length,P=se(w),B=s==null;++p<w;)P[p]=B?n:Pm(s,l[p]);return P}function Pa(s,l,p){return s===s&&(p!==n&&(s=s<=p?s:p),l!==n&&(s=s>=l?s:l)),s}function zr(s,l,p,w,P,B){var H,J=l&h,te=l&m,me=l&g;if(p&&(H=P?p(s,w,P,B):p(s)),H!==n)return H;if(!Zt(s))return s;var ge=Xe(s);if(ge){if(H=FM(s),!J)return mr(s,H)}else{var xe=Gn(s),Pe=xe==ae||xe==Fe;if(Go(s))return l4(s,J);if(xe==yt||xe==$e||Pe&&!P){if(H=te||Pe?{}:A4(s),!J)return te?DM(s,HO(H,s)):wM(s,V1(H,s))}else{if(!Mt[xe])return P?s:{};H=kM(s,xe,J)}}B||(B=new di);var Le=B.get(s);if(Le)return Le;B.set(s,H),r3(s)?s.forEach(function(He){H.add(zr(He,l,p,He,s,B))}):t3(s)&&s.forEach(function(He,lt){H.set(lt,zr(He,l,p,lt,s,B))});var We=me?te?mm:pm:te?yr:Sn,ot=ge?n:We(s);return jr(ot||s,function(He,lt){ot&&(lt=He,He=s[lt]),gl(H,lt,zr(He,l,p,lt,s,B))}),H}function GO(s){var l=Sn(s);return function(p){return N1(p,s,l)}}function N1(s,l,p){var w=p.length;if(s==null)return!w;for(s=It(s);w--;){var P=p[w],B=l[P],H=s[P];if(H===n&&!(P in s)||!B(H))return!1}return!0}function j1(s,l,p){if(typeof s!="function")throw new Kr(a);return Dl(function(){s.apply(n,p)},l)}function yl(s,l,p,w){var P=-1,B=fd,H=!0,J=s.length,te=[],me=l.length;if(!J)return te;p&&(l=Ht(l,Ar(p))),w?(B=kp,H=!1):l.length>=i&&(B=cl,H=!1,l=new Aa(l));e:for(;++P<J;){var ge=s[P],xe=p==null?ge:p(ge);if(ge=w||ge!==0?ge:0,H&&xe===xe){for(var Pe=me;Pe--;)if(l[Pe]===xe)continue e;te.push(ge)}else B(l,xe,w)||te.push(ge)}return te}var Uo=p4(_i),K1=p4(Jp,!0);function qO(s,l){var p=!0;return Uo(s,function(w,P,B){return p=!!l(w,P,B),p}),p}function Rd(s,l,p){for(var w=-1,P=s.length;++w<P;){var B=s[w],H=l(B);if(H!=null&&(J===n?H===H&&!Rr(H):p(H,J)))var J=H,te=B}return te}function YO(s,l,p,w){var P=s.length;for(p=nt(p),p<0&&(p=-p>P?0:P+p),w=w===n||w>P?P:nt(w),w<0&&(w+=P),w=p>w?0:o3(w);p<w;)s[p++]=l;return s}function U1(s,l){var p=[];return Uo(s,function(w,P,B){l(w,P,B)&&p.push(w)}),p}function kn(s,l,p,w,P){var B=-1,H=s.length;for(p||(p=IM),P||(P=[]);++B<H;){var J=s[B];l>0&&p(J)?l>1?kn(J,l-1,p,w,P):No(P,J):w||(P[P.length]=J)}return P}var Zp=m4(),z1=m4(!0);function _i(s,l){return s&&Zp(s,l,Sn)}function Jp(s,l){return s&&z1(s,l,Sn)}function _d(s,l){return Vo(l,function(p){return lo(s[p])})}function Ra(s,l){l=Wo(l,s);for(var p=0,w=l.length;s!=null&&p<w;)s=s[Mi(l[p++])];return p&&p==w?s:n}function W1(s,l,p){var w=l(s);return Xe(s)?w:No(w,p(s))}function ir(s){return s==null?s===n?Re:Dn:Sa&&Sa in It(s)?_M(s):zM(s)}function Xp(s,l){return s>l}function ZO(s,l){return s!=null&&At.call(s,l)}function JO(s,l){return s!=null&&l in It(s)}function XO(s,l,p){return s>=Hn(l,p)&&s<$n(l,p)}function Qp(s,l,p){for(var w=p?kp:fd,P=s[0].length,B=s.length,H=B,J=se(B),te=1/0,me=[];H--;){var ge=s[H];H&&l&&(ge=Ht(ge,Ar(l))),te=Hn(ge.length,te),J[H]=!p&&(l||P>=120&&ge.length>=120)?new Aa(H&&ge):n}ge=s[0];var xe=-1,Pe=J[0];e:for(;++xe<P&&me.length<te;){var Le=ge[xe],We=l?l(Le):Le;if(Le=p||Le!==0?Le:0,!(Pe?cl(Pe,We):w(me,We,p))){for(H=B;--H;){var ot=J[H];if(!(ot?cl(ot,We):w(s[H],We,p)))continue e}Pe&&Pe.push(We),me.push(Le)}}return me}function QO(s,l,p,w){return _i(s,function(P,B,H){l(w,p(P),B,H)}),w}function vl(s,l,p){l=Wo(l,s),s=O4(s,l);var w=s==null?s:s[Mi(Hr(l))];return w==null?n:Tr(w,s,p)}function H1(s){return on(s)&&ir(s)==$e}function eM(s){return on(s)&&ir(s)==ut}function tM(s){return on(s)&&ir(s)==he}function bl(s,l,p,w,P){return s===l?!0:s==null||l==null||!on(s)&&!on(l)?s!==s&&l!==l:nM(s,l,p,w,bl,P)}function nM(s,l,p,w,P,B){var H=Xe(s),J=Xe(l),te=H?De:Gn(s),me=J?De:Gn(l);te=te==$e?yt:te,me=me==$e?yt:me;var ge=te==yt,xe=me==yt,Pe=te==me;if(Pe&&Go(s)){if(!Go(l))return!1;H=!0,ge=!1}if(Pe&&!ge)return B||(B=new di),H||js(s)?C4(s,l,p,w,P,B):PM(s,l,te,p,w,P,B);if(!(p&y)){var Le=ge&&At.call(s,"__wrapped__"),We=xe&&At.call(l,"__wrapped__");if(Le||We){var ot=Le?s.value():s,He=We?l.value():l;return B||(B=new di),P(ot,He,p,w,B)}}return Pe?(B||(B=new di),RM(s,l,p,w,P,B)):!1}function rM(s){return on(s)&&Gn(s)==et}function em(s,l,p,w){var P=p.length,B=P,H=!w;if(s==null)return!B;for(s=It(s);P--;){var J=p[P];if(H&&J[2]?J[1]!==s[J[0]]:!(J[0]in s))return!1}for(;++P<B;){J=p[P];var te=J[0],me=s[te],ge=J[1];if(H&&J[2]){if(me===n&&!(te in s))return!1}else{var xe=new di;if(w)var Pe=w(me,ge,te,s,l,xe);if(!(Pe===n?bl(ge,me,y|x,w,xe):Pe))return!1}}return!0}function G1(s){if(!Zt(s)||VM(s))return!1;var l=lo(s)?rO:ko;return l.test(Oa(s))}function iM(s){return on(s)&&ir(s)==re}function oM(s){return on(s)&&Gn(s)==pe}function aM(s){return on(s)&&qd(s.length)&&!!Bt[ir(s)]}function q1(s){return typeof s=="function"?s:s==null?vr:typeof s=="object"?Xe(s)?J1(s[0],s[1]):Z1(s):g3(s)}function tm(s){if(!wl(s))return lO(s);var l=[];for(var p in It(s))At.call(s,p)&&p!="constructor"&&l.push(p);return l}function sM(s){if(!Zt(s))return UM(s);var l=wl(s),p=[];for(var w in s)w=="constructor"&&(l||!At.call(s,w))||p.push(w);return p}function nm(s,l){return s<l}function Y1(s,l){var p=-1,w=gr(s)?se(s.length):[];return Uo(s,function(P,B,H){w[++p]=l(P,B,H)}),w}function Z1(s){var l=ym(s);return l.length==1&&l[0][2]?R4(l[0][0],l[0][1]):function(p){return p===s||em(p,s,l)}}function J1(s,l){return bm(s)&&P4(l)?R4(Mi(s),l):function(p){var w=Pm(p,s);return w===n&&w===l?Rm(p,s):bl(l,w,y|x)}}function Od(s,l,p,w,P){s!==l&&Zp(l,function(B,H){if(P||(P=new di),Zt(B))uM(s,l,H,p,Od,w,P);else{var J=w?w(xm(s,H),B,H+"",s,l,P):n;J===n&&(J=B),qp(s,H,J)}},yr)}function uM(s,l,p,w,P,B,H){var J=xm(s,p),te=xm(l,p),me=H.get(te);if(me){qp(s,p,me);return}var ge=B?B(J,te,p+"",s,l,H):n,xe=ge===n;if(xe){var Pe=Xe(te),Le=!Pe&&Go(te),We=!Pe&&!Le&&js(te);ge=te,Pe||Le||We?Xe(J)?ge=J:sn(J)?ge=mr(J):Le?(xe=!1,ge=l4(te,!0)):We?(xe=!1,ge=c4(te,!0)):ge=[]:El(te)||Ma(te)?(ge=J,Ma(J)?ge=a3(J):(!Zt(J)||lo(J))&&(ge=A4(te))):xe=!1}xe&&(H.set(te,ge),P(ge,te,w,B,H),H.delete(te)),qp(s,p,ge)}function X1(s,l){var p=s.length;if(p)return l+=l<0?p:0,uo(l,p)?s[l]:n}function Q1(s,l,p){l.length?l=Ht(l,function(B){return Xe(B)?function(H){return Ra(H,B.length===1?B[0]:B)}:B}):l=[vr];var w=-1;l=Ht(l,Ar(Ue()));var P=Y1(s,function(B,H,J){var te=Ht(l,function(me){return me(B)});return{criteria:te,index:++w,value:B}});return k_(P,function(B,H){return xM(B,H,p)})}function lM(s,l){return e4(s,l,function(p,w){return Rm(s,w)})}function e4(s,l,p){for(var w=-1,P=l.length,B={};++w<P;){var H=l[w],J=Ra(s,H);p(J,H)&&$l(B,Wo(H,s),J)}return B}function cM(s){return function(l){return Ra(l,s)}}function rm(s,l,p,w){var P=w?F_:Rs,B=-1,H=l.length,J=s;for(s===l&&(l=mr(l)),p&&(J=Ht(s,Ar(p)));++B<H;)for(var te=0,me=l[B],ge=p?p(me):me;(te=P(J,ge,te,w))>-1;)J!==s&&wd.call(J,te,1),wd.call(s,te,1);return s}function t4(s,l){for(var p=s?l.length:0,w=p-1;p--;){var P=l[p];if(p==w||P!==B){var B=P;uo(P)?wd.call(s,P,1):sm(s,P)}}return s}function im(s,l){return s+Cd(k1()*(l-s+1))}function dM(s,l,p,w){for(var P=-1,B=$n(Ed((l-s)/(p||1)),0),H=se(B);B--;)H[w?B:++P]=s,s+=p;return H}function om(s,l){var p="";if(!s||l<1||l>R)return p;do l%2&&(p+=s),l=Cd(l/2),l&&(s+=s);while(l);return p}function st(s,l){return wm(_4(s,l,vr),s+"")}function fM(s){return L1(Ks(s))}function hM(s,l){var p=Ks(s);return Kd(p,Pa(l,0,p.length))}function $l(s,l,p,w){if(!Zt(s))return s;l=Wo(l,s);for(var P=-1,B=l.length,H=B-1,J=s;J!=null&&++P<B;){var te=Mi(l[P]),me=p;if(te==="__proto__"||te==="constructor"||te==="prototype")return s;if(P!=H){var ge=J[te];me=w?w(ge,te,J):n,me===n&&(me=Zt(ge)?ge:uo(l[P+1])?[]:{})}gl(J,te,me),J=J[te]}return s}var n4=Sd?function(s,l){return Sd.set(s,l),s}:vr,pM=Dd?function(s,l){return Dd(s,"toString",{configurable:!0,enumerable:!1,value:Om(l),writable:!0})}:vr;function mM(s){return Kd(Ks(s))}function Wr(s,l,p){var w=-1,P=s.length;l<0&&(l=-l>P?0:P+l),p=p>P?P:p,p<0&&(p+=P),P=l>p?0:p-l>>>0,l>>>=0;for(var B=se(P);++w<P;)B[w]=s[w+l];return B}function gM(s,l){var p;return Uo(s,function(w,P,B){return p=l(w,P,B),!p}),!!p}function Md(s,l,p){var w=0,P=s==null?w:s.length;if(typeof l=="number"&&l===l&&P<=ie){for(;w<P;){var B=w+P>>>1,H=s[B];H!==null&&!Rr(H)&&(p?H<=l:H<l)?w=B+1:P=B}return P}return am(s,l,vr,p)}function am(s,l,p,w){var P=0,B=s==null?0:s.length;if(B===0)return 0;l=p(l);for(var H=l!==l,J=l===null,te=Rr(l),me=l===n;P<B;){var ge=Cd((P+B)/2),xe=p(s[ge]),Pe=xe!==n,Le=xe===null,We=xe===xe,ot=Rr(xe);if(H)var He=w||We;else me?He=We&&(w||Pe):J?He=We&&Pe&&(w||!Le):te?He=We&&Pe&&!Le&&(w||!ot):Le||ot?He=!1:He=w?xe<=l:xe<l;He?P=ge+1:B=ge}return Hn(B,ne)}function r4(s,l){for(var p=-1,w=s.length,P=0,B=[];++p<w;){var H=s[p],J=l?l(H):H;if(!p||!fi(J,te)){var te=J;B[P++]=H===0?0:H}}return B}function i4(s){return typeof s=="number"?s:Rr(s)?U:+s}function Pr(s){if(typeof s=="string")return s;if(Xe(s))return Ht(s,Pr)+"";if(Rr(s))return B1?B1.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function zo(s,l,p){var w=-1,P=fd,B=s.length,H=!0,J=[],te=J;if(p)H=!1,P=kp;else if(B>=i){var me=l?null:TM(s);if(me)return pd(me);H=!1,P=cl,te=new Aa}else te=l?[]:J;e:for(;++w<B;){var ge=s[w],xe=l?l(ge):ge;if(ge=p||ge!==0?ge:0,H&&xe===xe){for(var Pe=te.length;Pe--;)if(te[Pe]===xe)continue e;l&&te.push(xe),J.push(ge)}else P(te,xe,p)||(te!==J&&te.push(xe),J.push(ge))}return J}function sm(s,l){return l=Wo(l,s),s=O4(s,l),s==null||delete s[Mi(Hr(l))]}function o4(s,l,p,w){return $l(s,l,p(Ra(s,l)),w)}function Fd(s,l,p,w){for(var P=s.length,B=w?P:-1;(w?B--:++B<P)&&l(s[B],B,s););return p?Wr(s,w?0:B,w?B+1:P):Wr(s,w?B+1:0,w?P:B)}function a4(s,l){var p=s;return p instanceof ft&&(p=p.value()),Bp(l,function(w,P){return P.func.apply(P.thisArg,No([w],P.args))},p)}function um(s,l,p){var w=s.length;if(w<2)return w?zo(s[0]):[];for(var P=-1,B=se(w);++P<w;)for(var H=s[P],J=-1;++J<w;)J!=P&&(B[P]=yl(B[P]||H,s[J],l,p));return zo(kn(B,1),l,p)}function s4(s,l,p){for(var w=-1,P=s.length,B=l.length,H={};++w<P;){var J=w<B?l[w]:n;p(H,s[w],J)}return H}function lm(s){return sn(s)?s:[]}function cm(s){return typeof s=="function"?s:vr}function Wo(s,l){return Xe(s)?s:bm(s,l)?[s]:B4(Dt(s))}var yM=st;function Ho(s,l,p){var w=s.length;return p=p===n?w:p,!l&&p>=w?s:Wr(s,l,p)}var u4=iO||function(s){return mn.clearTimeout(s)};function l4(s,l){if(l)return s.slice();var p=s.length,w=R1?R1(p):new s.constructor(p);return s.copy(w),w}function dm(s){var l=new s.constructor(s.byteLength);return new $d(l).set(new $d(s)),l}function vM(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function bM(s){var l=new s.constructor(s.source,hr.exec(s));return l.lastIndex=s.lastIndex,l}function $M(s){return ml?It(ml.call(s)):{}}function c4(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function d4(s,l){if(s!==l){var p=s!==n,w=s===null,P=s===s,B=Rr(s),H=l!==n,J=l===null,te=l===l,me=Rr(l);if(!J&&!me&&!B&&s>l||B&&H&&te&&!J&&!me||w&&H&&te||!p&&te||!P)return 1;if(!w&&!B&&!me&&s<l||me&&p&&P&&!w&&!B||J&&p&&P||!H&&P||!te)return-1}return 0}function xM(s,l,p){for(var w=-1,P=s.criteria,B=l.criteria,H=P.length,J=p.length;++w<H;){var te=d4(P[w],B[w]);if(te){if(w>=J)return te;var me=p[w];return te*(me=="desc"?-1:1)}}return s.index-l.index}function f4(s,l,p,w){for(var P=-1,B=s.length,H=p.length,J=-1,te=l.length,me=$n(B-H,0),ge=se(te+me),xe=!w;++J<te;)ge[J]=l[J];for(;++P<H;)(xe||P<B)&&(ge[p[P]]=s[P]);for(;me--;)ge[J++]=s[P++];return ge}function h4(s,l,p,w){for(var P=-1,B=s.length,H=-1,J=p.length,te=-1,me=l.length,ge=$n(B-J,0),xe=se(ge+me),Pe=!w;++P<ge;)xe[P]=s[P];for(var Le=P;++te<me;)xe[Le+te]=l[te];for(;++H<J;)(Pe||P<B)&&(xe[Le+p[H]]=s[P++]);return xe}function mr(s,l){var p=-1,w=s.length;for(l||(l=se(w));++p<w;)l[p]=s[p];return l}function Oi(s,l,p,w){var P=!p;p||(p={});for(var B=-1,H=l.length;++B<H;){var J=l[B],te=w?w(p[J],s[J],J,p,s):n;te===n&&(te=s[J]),P?oo(p,J,te):gl(p,J,te)}return p}function wM(s,l){return Oi(s,vm(s),l)}function DM(s,l){return Oi(s,S4(s),l)}function kd(s,l){return function(p,w){var P=Xe(p)?A_:WO,B=l?l():{};return P(p,s,Ue(w,2),B)}}function Ls(s){return st(function(l,p){var w=-1,P=p.length,B=P>1?p[P-1]:n,H=P>2?p[2]:n;for(B=s.length>3&&typeof B=="function"?(P--,B):n,H&&or(p[0],p[1],H)&&(B=P<3?n:B,P=1),l=It(l);++w<P;){var J=p[w];J&&s(l,J,w,B)}return l})}function p4(s,l){return function(p,w){if(p==null)return p;if(!gr(p))return s(p,w);for(var P=p.length,B=l?P:-1,H=It(p);(l?B--:++B<P)&&w(H[B],B,H)!==!1;);return p}}function m4(s){return function(l,p,w){for(var P=-1,B=It(l),H=w(l),J=H.length;J--;){var te=H[s?J:++P];if(p(B[te],te,B)===!1)break}return l}}function EM(s,l,p){var w=l&C,P=xl(s);function B(){var H=this&&this!==mn&&this instanceof B?P:s;return H.apply(w?p:this,arguments)}return B}function g4(s){return function(l){l=Dt(l);var p=_s(l)?ci(l):n,w=p?p[0]:l.charAt(0),P=p?Ho(p,1).join(""):l.slice(1);return w[s]()+P}}function Vs(s){return function(l){return Bp(p3(h3(l).replace(cd,"")),s,"")}}function xl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var p=Is(s.prototype),w=s.apply(p,l);return Zt(w)?w:p}}function CM(s,l,p){var w=xl(s);function P(){for(var B=arguments.length,H=se(B),J=B,te=Ns(P);J--;)H[J]=arguments[J];var me=B<3&&H[0]!==te&&H[B-1]!==te?[]:jo(H,te);if(B-=me.length,B<p)return x4(s,l,Bd,P.placeholder,n,H,me,n,n,p-B);var ge=this&&this!==mn&&this instanceof P?w:s;return Tr(ge,this,H)}return P}function y4(s){return function(l,p,w){var P=It(l);if(!gr(l)){var B=Ue(p,3);l=Sn(l),p=function(J){return B(P[J],J,P)}}var H=s(l,p,w);return H>-1?P[B?l[H]:H]:n}}function v4(s){return so(function(l){var p=l.length,w=p,P=Ur.prototype.thru;for(s&&l.reverse();w--;){var B=l[w];if(typeof B!="function")throw new Kr(a);if(P&&!H&&Nd(B)=="wrapper")var H=new Ur([],!0)}for(w=H?w:p;++w<p;){B=l[w];var J=Nd(B),te=J=="wrapper"?gm(B):n;te&&$m(te[0])&&te[1]==(M|D|E|S)&&!te[4].length&&te[9]==1?H=H[Nd(te[0])].apply(H,te[3]):H=B.length==1&&$m(B)?H[J]():H.thru(B)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&Xe(ge))return H.plant(ge).value();for(var xe=0,Pe=p?l[xe].apply(this,me):ge;++xe<p;)Pe=l[xe].call(this,Pe);return Pe}})}function Bd(s,l,p,w,P,B,H,J,te,me){var ge=l&M,xe=l&C,Pe=l&b,Le=l&(D|T),We=l&z,ot=Pe?n:xl(s);function He(){for(var lt=arguments.length,ht=se(lt),_r=lt;_r--;)ht[_r]=arguments[_r];if(Le)var ar=Ns(He),Or=I_(ht,ar);if(w&&(ht=f4(ht,w,P,Le)),B&&(ht=h4(ht,B,H,Le)),lt-=Or,Le&&lt<me){var un=jo(ht,ar);return x4(s,l,Bd,He.placeholder,p,ht,un,J,te,me-lt)}var hi=xe?p:this,fo=Pe?hi[s]:s;return lt=ht.length,J?ht=WM(ht,J):We&&lt>1&&ht.reverse(),ge&&te<lt&&(ht.length=te),this&&this!==mn&&this instanceof He&&(fo=ot||xl(fo)),fo.apply(hi,ht)}return He}function b4(s,l){return function(p,w){return QO(p,s,l(w),{})}}function Id(s,l){return function(p,w){var P;if(p===n&&w===n)return l;if(p!==n&&(P=p),w!==n){if(P===n)return w;typeof p=="string"||typeof w=="string"?(p=Pr(p),w=Pr(w)):(p=i4(p),w=i4(w)),P=s(p,w)}return P}}function fm(s){return so(function(l){return l=Ht(l,Ar(Ue())),st(function(p){var w=this;return s(l,function(P){return Tr(P,w,p)})})})}function Ld(s,l){l=l===n?" ":Pr(l);var p=l.length;if(p<2)return p?om(l,s):l;var w=om(l,Ed(s/Os(l)));return _s(l)?Ho(ci(w),0,s).join(""):w.slice(0,s)}function SM(s,l,p,w){var P=l&C,B=xl(s);function H(){for(var J=-1,te=arguments.length,me=-1,ge=w.length,xe=se(ge+te),Pe=this&&this!==mn&&this instanceof H?B:s;++me<ge;)xe[me]=w[me];for(;te--;)xe[me++]=arguments[++J];return Tr(Pe,P?p:this,xe)}return H}function $4(s){return function(l,p,w){return w&&typeof w!="number"&&or(l,p,w)&&(p=w=n),l=co(l),p===n?(p=l,l=0):p=co(p),w=w===n?l<p?1:-1:co(w),dM(l,p,w,s)}}function Vd(s){return function(l,p){return typeof l=="string"&&typeof p=="string"||(l=Gr(l),p=Gr(p)),s(l,p)}}function x4(s,l,p,w,P,B,H,J,te,me){var ge=l&D,xe=ge?H:n,Pe=ge?n:H,Le=ge?B:n,We=ge?n:B;l|=ge?E:A,l&=~(ge?A:E),l&v||(l&=-4);var ot=[s,l,P,Le,xe,We,Pe,J,te,me],He=p.apply(n,ot);return $m(s)&&M4(He,ot),He.placeholder=w,F4(He,s,l)}function hm(s){var l=bn[s];return function(p,w){if(p=Gr(p),w=w==null?0:Hn(nt(w),292),w&&F1(p)){var P=(Dt(p)+"e").split("e"),B=l(P[0]+"e"+(+P[1]+w));return P=(Dt(B)+"e").split("e"),+(P[0]+"e"+(+P[1]-w))}return l(p)}}var TM=ks&&1/pd(new ks([,-0]))[1]==V?function(s){return new ks(s)}:km;function w4(s){return function(l){var p=Gn(l);return p==et?Up(l):p==pe?z_(l):B_(l,s(l))}}function ao(s,l,p,w,P,B,H,J){var te=l&b;if(!te&&typeof s!="function")throw new Kr(a);var me=w?w.length:0;if(me||(l&=-97,w=P=n),H=H===n?H:$n(nt(H),0),J=J===n?J:nt(J),me-=P?P.length:0,l&A){var ge=w,xe=P;w=P=n}var Pe=te?n:gm(s),Le=[s,l,p,w,P,ge,xe,B,H,J];if(Pe&&KM(Le,Pe),s=Le[0],l=Le[1],p=Le[2],w=Le[3],P=Le[4],J=Le[9]=Le[9]===n?te?0:s.length:$n(Le[9]-me,0),!J&&l&(D|T)&&(l&=-25),!l||l==C)var We=EM(s,l,p);else l==D||l==T?We=CM(s,l,J):(l==E||l==(C|E))&&!P.length?We=SM(s,l,p,w):We=Bd.apply(n,Le);var ot=Pe?n4:M4;return F4(ot(We,Le),s,l)}function D4(s,l,p,w){return s===n||fi(s,Fs[p])&&!At.call(w,p)?l:s}function E4(s,l,p,w,P,B){return Zt(s)&&Zt(l)&&(B.set(l,s),Od(s,l,n,E4,B),B.delete(l)),s}function AM(s){return El(s)?n:s}function C4(s,l,p,w,P,B){var H=p&y,J=s.length,te=l.length;if(J!=te&&!(H&&te>J))return!1;var me=B.get(s),ge=B.get(l);if(me&&ge)return me==l&&ge==s;var xe=-1,Pe=!0,Le=p&x?new Aa:n;for(B.set(s,l),B.set(l,s);++xe<J;){var We=s[xe],ot=l[xe];if(w)var He=H?w(ot,We,xe,l,s,B):w(We,ot,xe,s,l,B);if(He!==n){if(He)continue;Pe=!1;break}if(Le){if(!Ip(l,function(lt,ht){if(!cl(Le,ht)&&(We===lt||P(We,lt,p,w,B)))return Le.push(ht)})){Pe=!1;break}}else if(!(We===ot||P(We,ot,p,w,B))){Pe=!1;break}}return B.delete(s),B.delete(l),Pe}function PM(s,l,p,w,P,B,H){switch(p){case _t:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case ut:return!(s.byteLength!=l.byteLength||!B(new $d(s),new $d(l)));case Y:case he:case dt:return fi(+s,+l);case fe:return s.name==l.name&&s.message==l.message;case re:case Ce:return s==l+"";case et:var J=Up;case pe:var te=w&y;if(J||(J=pd),s.size!=l.size&&!te)return!1;var me=H.get(s);if(me)return me==l;w|=x,H.set(s,l);var ge=C4(J(s),J(l),w,P,B,H);return H.delete(s),ge;case we:if(ml)return ml.call(s)==ml.call(l)}return!1}function RM(s,l,p,w,P,B){var H=p&y,J=pm(s),te=J.length,me=pm(l),ge=me.length;if(te!=ge&&!H)return!1;for(var xe=te;xe--;){var Pe=J[xe];if(!(H?Pe in l:At.call(l,Pe)))return!1}var Le=B.get(s),We=B.get(l);if(Le&&We)return Le==l&&We==s;var ot=!0;B.set(s,l),B.set(l,s);for(var He=H;++xe<te;){Pe=J[xe];var lt=s[Pe],ht=l[Pe];if(w)var _r=H?w(ht,lt,Pe,l,s,B):w(lt,ht,Pe,s,l,B);if(!(_r===n?lt===ht||P(lt,ht,p,w,B):_r)){ot=!1;break}He||(He=Pe=="constructor")}if(ot&&!He){var ar=s.constructor,Or=l.constructor;ar!=Or&&"constructor"in s&&"constructor"in l&&!(typeof ar=="function"&&ar instanceof ar&&typeof Or=="function"&&Or instanceof Or)&&(ot=!1)}return B.delete(s),B.delete(l),ot}function so(s){return wm(_4(s,n,N4),s+"")}function pm(s){return W1(s,Sn,vm)}function mm(s){return W1(s,yr,S4)}var gm=Sd?function(s){return Sd.get(s)}:km;function Nd(s){for(var l=s.name+"",p=Bs[l],w=At.call(Bs,l)?p.length:0;w--;){var P=p[w],B=P.func;if(B==null||B==s)return P.name}return l}function Ns(s){var l=At.call(O,"placeholder")?O:s;return l.placeholder}function Ue(){var s=O.iteratee||Mm;return s=s===Mm?q1:s,arguments.length?s(arguments[0],arguments[1]):s}function jd(s,l){var p=s.__data__;return LM(l)?p[typeof l=="string"?"string":"hash"]:p.map}function ym(s){for(var l=Sn(s),p=l.length;p--;){var w=l[p],P=s[w];l[p]=[w,P,P4(P)]}return l}function _a(s,l){var p=j_(s,l);return G1(p)?p:n}function _M(s){var l=At.call(s,Sa),p=s[Sa];try{s[Sa]=n;var w=!0}catch{}var P=vd.call(s);return w&&(l?s[Sa]=p:delete s[Sa]),P}var vm=Wp?function(s){return s==null?[]:(s=It(s),Vo(Wp(s),function(l){return O1.call(s,l)}))}:Bm,S4=Wp?function(s){for(var l=[];s;)No(l,vm(s)),s=xd(s);return l}:Bm,Gn=ir;(Hp&&Gn(new Hp(new ArrayBuffer(1)))!=_t||fl&&Gn(new fl)!=et||Gp&&Gn(Gp.resolve())!=q||ks&&Gn(new ks)!=pe||hl&&Gn(new hl)!=Ve)&&(Gn=function(s){var l=ir(s),p=l==yt?s.constructor:n,w=p?Oa(p):"";if(w)switch(w){case hO:return _t;case pO:return et;case mO:return q;case gO:return pe;case yO:return Ve}return l});function OM(s,l,p){for(var w=-1,P=p.length;++w<P;){var B=p[w],H=B.size;switch(B.type){case"drop":s+=H;break;case"dropRight":l-=H;break;case"take":l=Hn(l,s+H);break;case"takeRight":s=$n(s,l-H);break}}return{start:s,end:l}}function MM(s){var l=s.match(Ut);return l?l[1].split(an):[]}function T4(s,l,p){l=Wo(l,s);for(var w=-1,P=l.length,B=!1;++w<P;){var H=Mi(l[w]);if(!(B=s!=null&&p(s,H)))break;s=s[H]}return B||++w!=P?B:(P=s==null?0:s.length,!!P&&qd(P)&&uo(H,P)&&(Xe(s)||Ma(s)))}function FM(s){var l=s.length,p=new s.constructor(l);return l&&typeof s[0]=="string"&&At.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function A4(s){return typeof s.constructor=="function"&&!wl(s)?Is(xd(s)):{}}function kM(s,l,p){var w=s.constructor;switch(l){case ut:return dm(s);case Y:case he:return new w(+s);case _t:return vM(s,p);case Pn:case Rn:case Yt:case Ln:case tn:case vt:case Vn:case Sr:case _n:return c4(s,p);case et:return new w;case dt:case Ce:return new w(s);case re:return bM(s);case pe:return new w;case we:return $M(s)}}function BM(s,l){var p=l.length;if(!p)return s;var w=p-1;return l[w]=(p>1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(jn,`{
66
- /* [wrapped with `+l+`] */
67
- `)}function IM(s){return Xe(s)||Ma(s)||!!(M1&&s&&s[M1])}function uo(s,l){var p=typeof s;return l=l??R,!!l&&(p=="number"||p!="symbol"&&nr.test(s))&&s>-1&&s%1==0&&s<l}function or(s,l,p){if(!Zt(p))return!1;var w=typeof l;return(w=="number"?gr(p)&&uo(l,p.length):w=="string"&&l in p)?fi(p[l],s):!1}function bm(s,l){if(Xe(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Rr(s)?!0:fr.test(s)||!nn.test(s)||l!=null&&s in It(l)}function LM(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function $m(s){var l=Nd(s),p=O[l];if(typeof p!="function"||!(l in ft.prototype))return!1;if(s===p)return!0;var w=gm(p);return!!w&&s===w[0]}function VM(s){return!!P1&&P1 in s}var NM=gd?lo:Im;function wl(s){var l=s&&s.constructor,p=typeof l=="function"&&l.prototype||Fs;return s===p}function P4(s){return s===s&&!Zt(s)}function R4(s,l){return function(p){return p==null?!1:p[s]===l&&(l!==n||s in It(p))}}function jM(s){var l=Hd(s,function(w){return p.size===d&&p.clear(),w}),p=l.cache;return l}function KM(s,l){var p=s[1],w=l[1],P=p|w,B=P<(C|b|M),H=w==M&&p==D||w==M&&p==S&&s[7].length<=l[8]||w==(M|S)&&l[7].length<=l[8]&&p==D;if(!(B||H))return s;w&C&&(s[2]=l[2],P|=p&C?0:v);var J=l[3];if(J){var te=s[3];s[3]=te?f4(te,J,l[4]):J,s[4]=te?jo(s[3],f):l[4]}return J=l[5],J&&(te=s[5],s[5]=te?h4(te,J,l[6]):J,s[6]=te?jo(s[5],f):l[6]),J=l[7],J&&(s[7]=J),w&M&&(s[8]=s[8]==null?l[8]:Hn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=P,s}function UM(s){var l=[];if(s!=null)for(var p in It(s))l.push(p);return l}function zM(s){return vd.call(s)}function _4(s,l,p){return l=$n(l===n?s.length-1:l,0),function(){for(var w=arguments,P=-1,B=$n(w.length-l,0),H=se(B);++P<B;)H[P]=w[l+P];P=-1;for(var J=se(l+1);++P<l;)J[P]=w[P];return J[l]=p(H),Tr(s,this,J)}}function O4(s,l){return l.length<2?s:Ra(s,Wr(l,0,-1))}function WM(s,l){for(var p=s.length,w=Hn(l.length,p),P=mr(s);w--;){var B=l[w];s[w]=uo(B,p)?P[B]:n}return s}function xm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var M4=k4(n4),Dl=aO||function(s,l){return mn.setTimeout(s,l)},wm=k4(pM);function F4(s,l,p){var w=l+"";return wm(s,BM(w,HM(MM(w),p)))}function k4(s){var l=0,p=0;return function(){var w=cO(),P=_-(w-p);if(p=w,P>0){if(++l>=X)return arguments[0]}else l=0;return s.apply(n,arguments)}}function Kd(s,l){var p=-1,w=s.length,P=w-1;for(l=l===n?w:l;++p<l;){var B=im(p,P),H=s[B];s[B]=s[p],s[p]=H}return s.length=l,s}var B4=jM(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Te,function(p,w,P,B){l.push(P?B.replace(li,"$1"):w||p)}),l});function Mi(s){if(typeof s=="string"||Rr(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Oa(s){if(s!=null){try{return yd.call(s)}catch{}try{return s+""}catch{}}return""}function HM(s,l){return jr(le,function(p){var w="_."+p[0];l&p[1]&&!fd(s,w)&&s.push(w)}),s.sort()}function I4(s){if(s instanceof ft)return s.clone();var l=new Ur(s.__wrapped__,s.__chain__);return l.__actions__=mr(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function GM(s,l,p){(p?or(s,l,p):l===n)?l=1:l=$n(nt(l),0);var w=s==null?0:s.length;if(!w||l<1)return[];for(var P=0,B=0,H=se(Ed(w/l));P<w;)H[B++]=Wr(s,P,P+=l);return H}function qM(s){for(var l=-1,p=s==null?0:s.length,w=0,P=[];++l<p;){var B=s[l];B&&(P[w++]=B)}return P}function YM(){var s=arguments.length;if(!s)return[];for(var l=se(s-1),p=arguments[0],w=s;w--;)l[w-1]=arguments[w];return No(Xe(p)?mr(p):[p],kn(l,1))}var ZM=st(function(s,l){return sn(s)?yl(s,kn(l,1,sn,!0)):[]}),JM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),Ue(p,2)):[]}),XM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),n,p):[]});function QM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),Wr(s,l<0?0:l,w)):[]}function e9(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,0,l<0?0:l)):[]}function t9(s,l){return s&&s.length?Fd(s,Ue(l,3),!0,!0):[]}function n9(s,l){return s&&s.length?Fd(s,Ue(l,3),!0):[]}function r9(s,l,p,w){var P=s==null?0:s.length;return P?(p&&typeof p!="number"&&or(s,l,p)&&(p=0,w=P),YO(s,l,p,w)):[]}function L4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var P=p==null?0:nt(p);return P<0&&(P=$n(w+P,0)),hd(s,Ue(l,3),P)}function V4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var P=w-1;return p!==n&&(P=nt(p),P=p<0?$n(w+P,0):Hn(P,w-1)),hd(s,Ue(l,3),P,!0)}function N4(s){var l=s==null?0:s.length;return l?kn(s,1):[]}function i9(s){var l=s==null?0:s.length;return l?kn(s,V):[]}function o9(s,l){var p=s==null?0:s.length;return p?(l=l===n?1:nt(l),kn(s,l)):[]}function a9(s){for(var l=-1,p=s==null?0:s.length,w={};++l<p;){var P=s[l];w[P[0]]=P[1]}return w}function j4(s){return s&&s.length?s[0]:n}function s9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var P=p==null?0:nt(p);return P<0&&(P=$n(w+P,0)),Rs(s,l,P)}function u9(s){var l=s==null?0:s.length;return l?Wr(s,0,-1):[]}var l9=st(function(s){var l=Ht(s,lm);return l.length&&l[0]===s[0]?Qp(l):[]}),c9=st(function(s){var l=Hr(s),p=Ht(s,lm);return l===Hr(p)?l=n:p.pop(),p.length&&p[0]===s[0]?Qp(p,Ue(l,2)):[]}),d9=st(function(s){var l=Hr(s),p=Ht(s,lm);return l=typeof l=="function"?l:n,l&&p.pop(),p.length&&p[0]===s[0]?Qp(p,n,l):[]});function f9(s,l){return s==null?"":uO.call(s,l)}function Hr(s){var l=s==null?0:s.length;return l?s[l-1]:n}function h9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var P=w;return p!==n&&(P=nt(p),P=P<0?$n(w+P,0):Hn(P,w-1)),l===l?H_(s,l,P):hd(s,x1,P,!0)}function p9(s,l){return s&&s.length?X1(s,nt(l)):n}var m9=st(K4);function K4(s,l){return s&&s.length&&l&&l.length?rm(s,l):s}function g9(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,Ue(p,2)):s}function y9(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,n,p):s}var v9=so(function(s,l){var p=s==null?0:s.length,w=Yp(s,l);return t4(s,Ht(l,function(P){return uo(P,p)?+P:P}).sort(d4)),w});function b9(s,l){var p=[];if(!(s&&s.length))return p;var w=-1,P=[],B=s.length;for(l=Ue(l,3);++w<B;){var H=s[w];l(H,w,s)&&(p.push(H),P.push(w))}return t4(s,P),p}function Dm(s){return s==null?s:fO.call(s)}function $9(s,l,p){var w=s==null?0:s.length;return w?(p&&typeof p!="number"&&or(s,l,p)?(l=0,p=w):(l=l==null?0:nt(l),p=p===n?w:nt(p)),Wr(s,l,p)):[]}function x9(s,l){return Md(s,l)}function w9(s,l,p){return am(s,l,Ue(p,2))}function D9(s,l){var p=s==null?0:s.length;if(p){var w=Md(s,l);if(w<p&&fi(s[w],l))return w}return-1}function E9(s,l){return Md(s,l,!0)}function C9(s,l,p){return am(s,l,Ue(p,2),!0)}function S9(s,l){var p=s==null?0:s.length;if(p){var w=Md(s,l,!0)-1;if(fi(s[w],l))return w}return-1}function T9(s){return s&&s.length?r4(s):[]}function A9(s,l){return s&&s.length?r4(s,Ue(l,2)):[]}function P9(s){var l=s==null?0:s.length;return l?Wr(s,1,l):[]}function R9(s,l,p){return s&&s.length?(l=p||l===n?1:nt(l),Wr(s,0,l<0?0:l)):[]}function _9(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,l<0?0:l,w)):[]}function O9(s,l){return s&&s.length?Fd(s,Ue(l,3),!1,!0):[]}function M9(s,l){return s&&s.length?Fd(s,Ue(l,3)):[]}var F9=st(function(s){return zo(kn(s,1,sn,!0))}),k9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),zo(kn(s,1,sn,!0),Ue(l,2))}),B9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,zo(kn(s,1,sn,!0),n,l)});function I9(s){return s&&s.length?zo(s):[]}function L9(s,l){return s&&s.length?zo(s,Ue(l,2)):[]}function V9(s,l){return l=typeof l=="function"?l:n,s&&s.length?zo(s,n,l):[]}function Em(s){if(!(s&&s.length))return[];var l=0;return s=Vo(s,function(p){if(sn(p))return l=$n(p.length,l),!0}),jp(l,function(p){return Ht(s,Lp(p))})}function U4(s,l){if(!(s&&s.length))return[];var p=Em(s);return l==null?p:Ht(p,function(w){return Tr(l,n,w)})}var N9=st(function(s,l){return sn(s)?yl(s,l):[]}),j9=st(function(s){return um(Vo(s,sn))}),K9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),um(Vo(s,sn),Ue(l,2))}),U9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,um(Vo(s,sn),n,l)}),z9=st(Em);function W9(s,l){return s4(s||[],l||[],gl)}function H9(s,l){return s4(s||[],l||[],$l)}var G9=st(function(s){var l=s.length,p=l>1?s[l-1]:n;return p=typeof p=="function"?(s.pop(),p):n,U4(s,p)});function z4(s){var l=O(s);return l.__chain__=!0,l}function q9(s,l){return l(s),s}function Ud(s,l){return l(s)}var Y9=so(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,P=function(B){return Yp(B,s)};return l>1||this.__actions__.length||!(w instanceof ft)||!uo(p)?this.thru(P):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:Ud,args:[P],thisArg:n}),new Ur(w,this.__chain__).thru(function(B){return l&&!B.length&&B.push(n),B}))});function Z9(){return z4(this)}function J9(){return new Ur(this.value(),this.__chain__)}function X9(){this.__values__===n&&(this.__values__=i3(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function Q9(){return this}function eF(s){for(var l,p=this;p instanceof Ad;){var w=I4(p);w.__index__=0,w.__values__=n,l?P.__wrapped__=w:l=w;var P=w;p=p.__wrapped__}return P.__wrapped__=s,l}function tF(){var s=this.__wrapped__;if(s instanceof ft){var l=s;return this.__actions__.length&&(l=new ft(this)),l=l.reverse(),l.__actions__.push({func:Ud,args:[Dm],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Dm)}function nF(){return a4(this.__wrapped__,this.__actions__)}var rF=kd(function(s,l,p){At.call(s,p)?++s[p]:oo(s,p,1)});function iF(s,l,p){var w=Xe(s)?b1:qO;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}function oF(s,l){var p=Xe(s)?Vo:U1;return p(s,Ue(l,3))}var aF=y4(L4),sF=y4(V4);function uF(s,l){return kn(zd(s,l),1)}function lF(s,l){return kn(zd(s,l),V)}function cF(s,l,p){return p=p===n?1:nt(p),kn(zd(s,l),p)}function W4(s,l){var p=Xe(s)?jr:Uo;return p(s,Ue(l,3))}function H4(s,l){var p=Xe(s)?P_:K1;return p(s,Ue(l,3))}var dF=kd(function(s,l,p){At.call(s,p)?s[p].push(l):oo(s,p,[l])});function fF(s,l,p,w){s=gr(s)?s:Ks(s),p=p&&!w?nt(p):0;var P=s.length;return p<0&&(p=$n(P+p,0)),Yd(s)?p<=P&&s.indexOf(l,p)>-1:!!P&&Rs(s,l,p)>-1}var hF=st(function(s,l,p){var w=-1,P=typeof l=="function",B=gr(s)?se(s.length):[];return Uo(s,function(H){B[++w]=P?Tr(l,H,p):vl(H,l,p)}),B}),pF=kd(function(s,l,p){oo(s,p,l)});function zd(s,l){var p=Xe(s)?Ht:Y1;return p(s,Ue(l,3))}function mF(s,l,p,w){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),p=w?n:p,Xe(p)||(p=p==null?[]:[p]),Q1(s,l,p))}var gF=kd(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function yF(s,l,p){var w=Xe(s)?Bp:D1,P=arguments.length<3;return w(s,Ue(l,4),p,P,Uo)}function vF(s,l,p){var w=Xe(s)?R_:D1,P=arguments.length<3;return w(s,Ue(l,4),p,P,K1)}function bF(s,l){var p=Xe(s)?Vo:U1;return p(s,Gd(Ue(l,3)))}function $F(s){var l=Xe(s)?L1:fM;return l(s)}function xF(s,l,p){(p?or(s,l,p):l===n)?l=1:l=nt(l);var w=Xe(s)?UO:hM;return w(s,l)}function wF(s){var l=Xe(s)?zO:mM;return l(s)}function DF(s){if(s==null)return 0;if(gr(s))return Yd(s)?Os(s):s.length;var l=Gn(s);return l==et||l==pe?s.size:tm(s).length}function EF(s,l,p){var w=Xe(s)?Ip:gM;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}var CF=st(function(s,l){if(s==null)return[];var p=l.length;return p>1&&or(s,l[0],l[1])?l=[]:p>2&&or(l[0],l[1],l[2])&&(l=[l[0]]),Q1(s,kn(l,1),[])}),Wd=oO||function(){return mn.Date.now()};function SF(s,l){if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){if(--s<1)return l.apply(this,arguments)}}function G4(s,l,p){return l=p?n:l,l=s&&l==null?s.length:l,ao(s,M,n,n,n,n,l)}function q4(s,l){var p;if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=n),p}}var Cm=st(function(s,l,p){var w=C;if(p.length){var P=jo(p,Ns(Cm));w|=E}return ao(s,w,l,p,P)}),Y4=st(function(s,l,p){var w=C|b;if(p.length){var P=jo(p,Ns(Y4));w|=E}return ao(l,w,s,p,P)});function Z4(s,l,p){l=p?n:l;var w=ao(s,D,n,n,n,n,n,l);return w.placeholder=Z4.placeholder,w}function J4(s,l,p){l=p?n:l;var w=ao(s,T,n,n,n,n,n,l);return w.placeholder=J4.placeholder,w}function X4(s,l,p){var w,P,B,H,J,te,me=0,ge=!1,xe=!1,Pe=!0;if(typeof s!="function")throw new Kr(a);l=Gr(l)||0,Zt(p)&&(ge=!!p.leading,xe="maxWait"in p,B=xe?$n(Gr(p.maxWait)||0,l):B,Pe="trailing"in p?!!p.trailing:Pe);function Le(un){var hi=w,fo=P;return w=P=n,me=un,H=s.apply(fo,hi),H}function We(un){return me=un,J=Dl(lt,l),ge?Le(un):H}function ot(un){var hi=un-te,fo=un-me,y3=l-hi;return xe?Hn(y3,B-fo):y3}function He(un){var hi=un-te,fo=un-me;return te===n||hi>=l||hi<0||xe&&fo>=B}function lt(){var un=Wd();if(He(un))return ht(un);J=Dl(lt,ot(un))}function ht(un){return J=n,Pe&&w?Le(un):(w=P=n,H)}function _r(){J!==n&&u4(J),me=0,w=te=P=J=n}function ar(){return J===n?H:ht(Wd())}function Or(){var un=Wd(),hi=He(un);if(w=arguments,P=this,te=un,hi){if(J===n)return We(te);if(xe)return u4(J),J=Dl(lt,l),Le(te)}return J===n&&(J=Dl(lt,l)),H}return Or.cancel=_r,Or.flush=ar,Or}var TF=st(function(s,l){return j1(s,1,l)}),AF=st(function(s,l,p){return j1(s,Gr(l)||0,p)});function PF(s){return ao(s,z)}function Hd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Kr(a);var p=function(){var w=arguments,P=l?l.apply(this,w):w[0],B=p.cache;if(B.has(P))return B.get(P);var H=s.apply(this,w);return p.cache=B.set(P,H)||B,H};return p.cache=new(Hd.Cache||io),p}Hd.Cache=io;function Gd(s){if(typeof s!="function")throw new Kr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function RF(s){return q4(2,s)}var _F=yM(function(s,l){l=l.length==1&&Xe(l[0])?Ht(l[0],Ar(Ue())):Ht(kn(l,1),Ar(Ue()));var p=l.length;return st(function(w){for(var P=-1,B=Hn(w.length,p);++P<B;)w[P]=l[P].call(this,w[P]);return Tr(s,this,w)})}),Sm=st(function(s,l){var p=jo(l,Ns(Sm));return ao(s,E,n,l,p)}),Q4=st(function(s,l){var p=jo(l,Ns(Q4));return ao(s,A,n,l,p)}),OF=so(function(s,l){return ao(s,S,n,n,n,l)});function MF(s,l){if(typeof s!="function")throw new Kr(a);return l=l===n?l:nt(l),st(s,l)}function FF(s,l){if(typeof s!="function")throw new Kr(a);return l=l==null?0:$n(nt(l),0),st(function(p){var w=p[l],P=Ho(p,0,l);return w&&No(P,w),Tr(s,this,P)})}function kF(s,l,p){var w=!0,P=!0;if(typeof s!="function")throw new Kr(a);return Zt(p)&&(w="leading"in p?!!p.leading:w,P="trailing"in p?!!p.trailing:P),X4(s,l,{leading:w,maxWait:l,trailing:P})}function BF(s){return G4(s,1)}function IF(s,l){return Sm(cm(l),s)}function LF(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function VF(s){return zr(s,g)}function NF(s,l){return l=typeof l=="function"?l:n,zr(s,g,l)}function jF(s){return zr(s,h|g)}function KF(s,l){return l=typeof l=="function"?l:n,zr(s,h|g,l)}function UF(s,l){return l==null||N1(s,l,Sn(l))}function fi(s,l){return s===l||s!==s&&l!==l}var zF=Vd(Xp),WF=Vd(function(s,l){return s>=l}),Ma=H1(function(){return arguments}())?H1:function(s){return on(s)&&At.call(s,"callee")&&!O1.call(s,"callee")},Xe=se.isArray,HF=Ca?Ar(Ca):eM;function gr(s){return s!=null&&qd(s.length)&&!lo(s)}function sn(s){return on(s)&&gr(s)}function GF(s){return s===!0||s===!1||on(s)&&ir(s)==Y}var Go=sO||Im,qF=p1?Ar(p1):tM;function YF(s){return on(s)&&s.nodeType===1&&!El(s)}function ZF(s){if(s==null)return!0;if(gr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||Go(s)||js(s)||Ma(s)))return!s.length;var l=Gn(s);if(l==et||l==pe)return!s.size;if(wl(s))return!tm(s).length;for(var p in s)if(At.call(s,p))return!1;return!0}function JF(s,l){return bl(s,l)}function XF(s,l,p){p=typeof p=="function"?p:n;var w=p?p(s,l):n;return w===n?bl(s,l,n,p):!!w}function Tm(s){if(!on(s))return!1;var l=ir(s);return l==fe||l==ye||typeof s.message=="string"&&typeof s.name=="string"&&!El(s)}function QF(s){return typeof s=="number"&&F1(s)}function lo(s){if(!Zt(s))return!1;var l=ir(s);return l==ae||l==Fe||l==Ee||l==Z}function e3(s){return typeof s=="number"&&s==nt(s)}function qd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=R}function Zt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function on(s){return s!=null&&typeof s=="object"}var t3=m1?Ar(m1):rM;function e8(s,l){return s===l||em(s,l,ym(l))}function t8(s,l,p){return p=typeof p=="function"?p:n,em(s,l,ym(l),p)}function n8(s){return n3(s)&&s!=+s}function r8(s){if(NM(s))throw new Je(o);return G1(s)}function i8(s){return s===null}function o8(s){return s==null}function n3(s){return typeof s=="number"||on(s)&&ir(s)==dt}function El(s){if(!on(s)||ir(s)!=yt)return!1;var l=xd(s);if(l===null)return!0;var p=At.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&yd.call(p)==tO}var Am=g1?Ar(g1):iM;function a8(s){return e3(s)&&s>=-9007199254740991&&s<=R}var r3=y1?Ar(y1):oM;function Yd(s){return typeof s=="string"||!Xe(s)&&on(s)&&ir(s)==Ce}function Rr(s){return typeof s=="symbol"||on(s)&&ir(s)==we}var js=v1?Ar(v1):aM;function s8(s){return s===n}function u8(s){return on(s)&&Gn(s)==Ve}function l8(s){return on(s)&&ir(s)==mt}var c8=Vd(nm),d8=Vd(function(s,l){return s<=l});function i3(s){if(!s)return[];if(gr(s))return Yd(s)?ci(s):mr(s);if(dl&&s[dl])return U_(s[dl]());var l=Gn(s),p=l==et?Up:l==pe?pd:Ks;return p(s)}function co(s){if(!s)return s===0?s:0;if(s=Gr(s),s===V||s===-1/0){var l=s<0?-1:1;return l*G}return s===s?s:0}function nt(s){var l=co(s),p=l%1;return l===l?p?l-p:l:0}function o3(s){return s?Pa(nt(s),0,N):0}function Gr(s){if(typeof s=="number")return s;if(Rr(s))return U;if(Zt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Zt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=E1(s);var p=Fo.test(s);return p||gt.test(s)?Un(s.slice(2),p?2:8):Mo.test(s)?U:+s}function a3(s){return Oi(s,yr(s))}function f8(s){return s?Pa(nt(s),-9007199254740991,R):s===0?s:0}function Dt(s){return s==null?"":Pr(s)}var h8=Ls(function(s,l){if(wl(l)||gr(l)){Oi(l,Sn(l),s);return}for(var p in l)At.call(l,p)&&gl(s,p,l[p])}),s3=Ls(function(s,l){Oi(l,yr(l),s)}),Zd=Ls(function(s,l,p,w){Oi(l,yr(l),s,w)}),p8=Ls(function(s,l,p,w){Oi(l,Sn(l),s,w)}),m8=so(Yp);function g8(s,l){var p=Is(s);return l==null?p:V1(p,l)}var y8=st(function(s,l){s=It(s);var p=-1,w=l.length,P=w>2?l[2]:n;for(P&&or(l[0],l[1],P)&&(w=1);++p<w;)for(var B=l[p],H=yr(B),J=-1,te=H.length;++J<te;){var me=H[J],ge=s[me];(ge===n||fi(ge,Fs[me])&&!At.call(s,me))&&(s[me]=B[me])}return s}),v8=st(function(s){return s.push(n,E4),Tr(u3,n,s)});function b8(s,l){return $1(s,Ue(l,3),_i)}function $8(s,l){return $1(s,Ue(l,3),Jp)}function x8(s,l){return s==null?s:Zp(s,Ue(l,3),yr)}function w8(s,l){return s==null?s:z1(s,Ue(l,3),yr)}function D8(s,l){return s&&_i(s,Ue(l,3))}function E8(s,l){return s&&Jp(s,Ue(l,3))}function C8(s){return s==null?[]:_d(s,Sn(s))}function S8(s){return s==null?[]:_d(s,yr(s))}function Pm(s,l,p){var w=s==null?n:Ra(s,l);return w===n?p:w}function T8(s,l){return s!=null&&T4(s,l,ZO)}function Rm(s,l){return s!=null&&T4(s,l,JO)}var A8=b4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=vd.call(l)),s[l]=p},Om(vr)),P8=b4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=vd.call(l)),At.call(s,l)?s[l].push(p):s[l]=[p]},Ue),R8=st(vl);function Sn(s){return gr(s)?I1(s):tm(s)}function yr(s){return gr(s)?I1(s,!0):sM(s)}function _8(s,l){var p={};return l=Ue(l,3),_i(s,function(w,P,B){oo(p,l(w,P,B),w)}),p}function O8(s,l){var p={};return l=Ue(l,3),_i(s,function(w,P,B){oo(p,P,l(w,P,B))}),p}var M8=Ls(function(s,l,p){Od(s,l,p)}),u3=Ls(function(s,l,p,w){Od(s,l,p,w)}),F8=so(function(s,l){var p={};if(s==null)return p;var w=!1;l=Ht(l,function(B){return B=Wo(B,s),w||(w=B.length>1),B}),Oi(s,mm(s),p),w&&(p=zr(p,h|m|g,AM));for(var P=l.length;P--;)sm(p,l[P]);return p});function k8(s,l){return l3(s,Gd(Ue(l)))}var B8=so(function(s,l){return s==null?{}:lM(s,l)});function l3(s,l){if(s==null)return{};var p=Ht(mm(s),function(w){return[w]});return l=Ue(l),e4(s,p,function(w,P){return l(w,P[0])})}function I8(s,l,p){l=Wo(l,s);var w=-1,P=l.length;for(P||(P=1,s=n);++w<P;){var B=s==null?n:s[Mi(l[w])];B===n&&(w=P,B=p),s=lo(B)?B.call(s):B}return s}function L8(s,l,p){return s==null?s:$l(s,l,p)}function V8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:$l(s,l,p,w)}var c3=w4(Sn),d3=w4(yr);function N8(s,l,p){var w=Xe(s),P=w||Go(s)||js(s);if(l=Ue(l,4),p==null){var B=s&&s.constructor;P?p=w?new B:[]:Zt(s)?p=lo(B)?Is(xd(s)):{}:p={}}return(P?jr:_i)(s,function(H,J,te){return l(p,H,J,te)}),p}function j8(s,l){return s==null?!0:sm(s,l)}function K8(s,l,p){return s==null?s:o4(s,l,cm(p))}function U8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:o4(s,l,cm(p),w)}function Ks(s){return s==null?[]:Kp(s,Sn(s))}function z8(s){return s==null?[]:Kp(s,yr(s))}function W8(s,l,p){return p===n&&(p=l,l=n),p!==n&&(p=Gr(p),p=p===p?p:0),l!==n&&(l=Gr(l),l=l===l?l:0),Pa(Gr(s),l,p)}function H8(s,l,p){return l=co(l),p===n?(p=l,l=0):p=co(p),s=Gr(s),XO(s,l,p)}function G8(s,l,p){if(p&&typeof p!="boolean"&&or(s,l,p)&&(l=p=n),p===n&&(typeof l=="boolean"?(p=l,l=n):typeof s=="boolean"&&(p=s,s=n)),s===n&&l===n?(s=0,l=1):(s=co(s),l===n?(l=s,s=0):l=co(l)),s>l){var w=s;s=l,l=w}if(p||s%1||l%1){var P=k1();return Hn(s+P*(l-s+vn("1e-"+((P+"").length-1))),l)}return im(s,l)}var q8=Vs(function(s,l,p){return l=l.toLowerCase(),s+(p?f3(l):l)});function f3(s){return _m(Dt(s).toLowerCase())}function h3(s){return s=Dt(s),s&&s.replace(pr,L_).replace(Op,"")}function Y8(s,l,p){s=Dt(s),l=Pr(l);var w=s.length;p=p===n?w:Pa(nt(p),0,w);var P=p;return p-=l.length,p>=0&&s.slice(p,P)==l}function Z8(s){return s=Dt(s),s&&Vt.test(s)?s.replace(En,V_):s}function J8(s){return s=Dt(s),s&&Ye.test(s)?s.replace(je,"\\$&"):s}var X8=Vs(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),Q8=Vs(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),ek=g4("toLowerCase");function tk(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;if(!l||w>=l)return s;var P=(l-w)/2;return Ld(Cd(P),p)+s+Ld(Ed(P),p)}function nk(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;return l&&w<l?s+Ld(l-w,p):s}function rk(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;return l&&w<l?Ld(l-w,p)+s:s}function ik(s,l,p){return p||l==null?l=0:l&&(l=+l),dO(Dt(s).replace(Ft,""),l||0)}function ok(s,l,p){return(p?or(s,l,p):l===n)?l=1:l=nt(l),om(Dt(s),l)}function ak(){var s=arguments,l=Dt(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var sk=Vs(function(s,l,p){return s+(p?"_":"")+l.toLowerCase()});function uk(s,l,p){return p&&typeof p!="number"&&or(s,l,p)&&(l=p=n),p=p===n?N:p>>>0,p?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Am(l))&&(l=Pr(l),!l&&_s(s))?Ho(ci(s),0,p):s.split(l,p)):[]}var lk=Vs(function(s,l,p){return s+(p?" ":"")+_m(l)});function ck(s,l,p){return s=Dt(s),p=p==null?0:Pa(nt(p),0,s.length),l=Pr(l),s.slice(p,p+l.length)==l}function dk(s,l,p){var w=O.templateSettings;p&&or(s,l,p)&&(l=n),s=Dt(s),l=Zd({},l,w,D4);var P=Zd({},l.imports,w.imports,D4),B=Sn(P),H=Kp(P,B),J,te,me=0,ge=l.interpolate||Kn,xe="__p += '",Pe=zp((l.escape||Kn).source+"|"+ge.source+"|"+(ge===tt?ba:Kn).source+"|"+(l.evaluate||Kn).source+"|$","g"),Le="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ul+"]")+`
68
- `;s.replace(Pe,function(He,lt,ht,_r,ar,Or){return ht||(ht=_r),xe+=s.slice(me,Or).replace(Bo,N_),lt&&(J=!0,xe+=`' +
69
- __e(`+lt+`) +
70
- '`),ar&&(te=!0,xe+=`';
71
- `+ar+`;
72
- __p += '`),ht&&(xe+=`' +
73
- ((__t = (`+ht+`)) == null ? '' : __t) +
74
- '`),me=Or+He.length,He}),xe+=`';
75
- `;var We=At.call(l,"variable")&&l.variable;if(!We)xe=`with (obj) {
76
- `+xe+`
77
- }
78
- `;else if(wt.test(We))throw new Je(u);xe=(te?xe.replace(er,""):xe).replace(On,"$1").replace(tr,"$1;"),xe="function("+(We||"obj")+`) {
79
- `+(We?"":`obj || (obj = {});
80
- `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
81
- function print() { __p += __j.call(arguments, '') }
82
- `:`;
83
- `)+xe+`return __p
84
- }`;var ot=m3(function(){return bt(B,Le+"return "+xe).apply(n,H)});if(ot.source=xe,Tm(ot))throw ot;return ot}function fk(s){return Dt(s).toLowerCase()}function hk(s){return Dt(s).toUpperCase()}function pk(s,l,p){if(s=Dt(s),s&&(p||l===n))return E1(s);if(!s||!(l=Pr(l)))return s;var w=ci(s),P=ci(l),B=C1(w,P),H=S1(w,P)+1;return Ho(w,B,H).join("")}function mk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.slice(0,A1(s)+1);if(!s||!(l=Pr(l)))return s;var w=ci(s),P=S1(w,ci(l))+1;return Ho(w,0,P).join("")}function gk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.replace(Ft,"");if(!s||!(l=Pr(l)))return s;var w=ci(s),P=C1(w,ci(l));return Ho(w,P).join("")}function yk(s,l){var p=K,w=L;if(Zt(l)){var P="separator"in l?l.separator:P;p="length"in l?nt(l.length):p,w="omission"in l?Pr(l.omission):w}s=Dt(s);var B=s.length;if(_s(s)){var H=ci(s);B=H.length}if(p>=B)return s;var J=p-Os(w);if(J<1)return w;var te=H?Ho(H,0,J).join(""):s.slice(0,J);if(P===n)return te+w;if(H&&(J+=te.length-J),Am(P)){if(s.slice(J).search(P)){var me,ge=te;for(P.global||(P=zp(P.source,Dt(hr.exec(P))+"g")),P.lastIndex=0;me=P.exec(ge);)var xe=me.index;te=te.slice(0,xe===n?J:xe)}}else if(s.indexOf(Pr(P),J)!=J){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+w}function vk(s){return s=Dt(s),s&&Ir.test(s)?s.replace(Nn,G_):s}var bk=Vs(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),_m=g4("toUpperCase");function p3(s,l,p){return s=Dt(s),l=p?n:l,l===n?K_(s)?Z_(s):M_(s):s.match(l)||[]}var m3=st(function(s,l){try{return Tr(s,n,l)}catch(p){return Tm(p)?p:new Je(p)}}),$k=so(function(s,l){return jr(l,function(p){p=Mi(p),oo(s,p,Cm(s[p],s))}),s});function xk(s){var l=s==null?0:s.length,p=Ue();return s=l?Ht(s,function(w){if(typeof w[1]!="function")throw new Kr(a);return[p(w[0]),w[1]]}):[],st(function(w){for(var P=-1;++P<l;){var B=s[P];if(Tr(B[0],this,w))return Tr(B[1],this,w)}})}function wk(s){return GO(zr(s,h))}function Om(s){return function(){return s}}function Dk(s,l){return s==null||s!==s?l:s}var Ek=v4(),Ck=v4(!0);function vr(s){return s}function Mm(s){return q1(typeof s=="function"?s:zr(s,h))}function Sk(s){return Z1(zr(s,h))}function Tk(s,l){return J1(s,zr(l,h))}var Ak=st(function(s,l){return function(p){return vl(p,s,l)}}),Pk=st(function(s,l){return function(p){return vl(s,p,l)}});function Fm(s,l,p){var w=Sn(l),P=_d(l,w);p==null&&!(Zt(l)&&(P.length||!w.length))&&(p=l,l=s,s=this,P=_d(l,Sn(l)));var B=!(Zt(p)&&"chain"in p)||!!p.chain,H=lo(s);return jr(P,function(J){var te=l[J];s[J]=te,H&&(s.prototype[J]=function(){var me=this.__chain__;if(B||me){var ge=s(this.__wrapped__),xe=ge.__actions__=mr(this.__actions__);return xe.push({func:te,args:arguments,thisArg:s}),ge.__chain__=me,ge}return te.apply(s,No([this.value()],arguments))})}),s}function Rk(){return mn._===this&&(mn._=nO),this}function km(){}function _k(s){return s=nt(s),st(function(l){return X1(l,s)})}var Ok=fm(Ht),Mk=fm(b1),Fk=fm(Ip);function g3(s){return bm(s)?Lp(Mi(s)):cM(s)}function kk(s){return function(l){return s==null?n:Ra(s,l)}}var Bk=$4(),Ik=$4(!0);function Bm(){return[]}function Im(){return!1}function Lk(){return{}}function Vk(){return""}function Nk(){return!0}function jk(s,l){if(s=nt(s),s<1||s>R)return[];var p=N,w=Hn(s,N);l=Ue(l),s-=N;for(var P=jp(w,l);++p<s;)l(p);return P}function Kk(s){return Xe(s)?Ht(s,Mi):Rr(s)?[s]:mr(B4(Dt(s)))}function Uk(s){var l=++eO;return Dt(s)+l}var zk=Id(function(s,l){return s+l},0),Wk=hm("ceil"),Hk=Id(function(s,l){return s/l},1),Gk=hm("floor");function qk(s){return s&&s.length?Rd(s,vr,Xp):n}function Yk(s,l){return s&&s.length?Rd(s,Ue(l,2),Xp):n}function Zk(s){return w1(s,vr)}function Jk(s,l){return w1(s,Ue(l,2))}function Xk(s){return s&&s.length?Rd(s,vr,nm):n}function Qk(s,l){return s&&s.length?Rd(s,Ue(l,2),nm):n}var eB=Id(function(s,l){return s*l},1),tB=hm("round"),nB=Id(function(s,l){return s-l},0);function rB(s){return s&&s.length?Np(s,vr):0}function iB(s,l){return s&&s.length?Np(s,Ue(l,2)):0}return O.after=SF,O.ary=G4,O.assign=h8,O.assignIn=s3,O.assignInWith=Zd,O.assignWith=p8,O.at=m8,O.before=q4,O.bind=Cm,O.bindAll=$k,O.bindKey=Y4,O.castArray=LF,O.chain=z4,O.chunk=GM,O.compact=qM,O.concat=YM,O.cond=xk,O.conforms=wk,O.constant=Om,O.countBy=rF,O.create=g8,O.curry=Z4,O.curryRight=J4,O.debounce=X4,O.defaults=y8,O.defaultsDeep=v8,O.defer=TF,O.delay=AF,O.difference=ZM,O.differenceBy=JM,O.differenceWith=XM,O.drop=QM,O.dropRight=e9,O.dropRightWhile=t9,O.dropWhile=n9,O.fill=r9,O.filter=oF,O.flatMap=uF,O.flatMapDeep=lF,O.flatMapDepth=cF,O.flatten=N4,O.flattenDeep=i9,O.flattenDepth=o9,O.flip=PF,O.flow=Ek,O.flowRight=Ck,O.fromPairs=a9,O.functions=C8,O.functionsIn=S8,O.groupBy=dF,O.initial=u9,O.intersection=l9,O.intersectionBy=c9,O.intersectionWith=d9,O.invert=A8,O.invertBy=P8,O.invokeMap=hF,O.iteratee=Mm,O.keyBy=pF,O.keys=Sn,O.keysIn=yr,O.map=zd,O.mapKeys=_8,O.mapValues=O8,O.matches=Sk,O.matchesProperty=Tk,O.memoize=Hd,O.merge=M8,O.mergeWith=u3,O.method=Ak,O.methodOf=Pk,O.mixin=Fm,O.negate=Gd,O.nthArg=_k,O.omit=F8,O.omitBy=k8,O.once=RF,O.orderBy=mF,O.over=Ok,O.overArgs=_F,O.overEvery=Mk,O.overSome=Fk,O.partial=Sm,O.partialRight=Q4,O.partition=gF,O.pick=B8,O.pickBy=l3,O.property=g3,O.propertyOf=kk,O.pull=m9,O.pullAll=K4,O.pullAllBy=g9,O.pullAllWith=y9,O.pullAt=v9,O.range=Bk,O.rangeRight=Ik,O.rearg=OF,O.reject=bF,O.remove=b9,O.rest=MF,O.reverse=Dm,O.sampleSize=xF,O.set=L8,O.setWith=V8,O.shuffle=wF,O.slice=$9,O.sortBy=CF,O.sortedUniq=T9,O.sortedUniqBy=A9,O.split=uk,O.spread=FF,O.tail=P9,O.take=R9,O.takeRight=_9,O.takeRightWhile=O9,O.takeWhile=M9,O.tap=q9,O.throttle=kF,O.thru=Ud,O.toArray=i3,O.toPairs=c3,O.toPairsIn=d3,O.toPath=Kk,O.toPlainObject=a3,O.transform=N8,O.unary=BF,O.union=F9,O.unionBy=k9,O.unionWith=B9,O.uniq=I9,O.uniqBy=L9,O.uniqWith=V9,O.unset=j8,O.unzip=Em,O.unzipWith=U4,O.update=K8,O.updateWith=U8,O.values=Ks,O.valuesIn=z8,O.without=N9,O.words=p3,O.wrap=IF,O.xor=j9,O.xorBy=K9,O.xorWith=U9,O.zip=z9,O.zipObject=W9,O.zipObjectDeep=H9,O.zipWith=G9,O.entries=c3,O.entriesIn=d3,O.extend=s3,O.extendWith=Zd,Fm(O,O),O.add=zk,O.attempt=m3,O.camelCase=q8,O.capitalize=f3,O.ceil=Wk,O.clamp=W8,O.clone=VF,O.cloneDeep=jF,O.cloneDeepWith=KF,O.cloneWith=NF,O.conformsTo=UF,O.deburr=h3,O.defaultTo=Dk,O.divide=Hk,O.endsWith=Y8,O.eq=fi,O.escape=Z8,O.escapeRegExp=J8,O.every=iF,O.find=aF,O.findIndex=L4,O.findKey=b8,O.findLast=sF,O.findLastIndex=V4,O.findLastKey=$8,O.floor=Gk,O.forEach=W4,O.forEachRight=H4,O.forIn=x8,O.forInRight=w8,O.forOwn=D8,O.forOwnRight=E8,O.get=Pm,O.gt=zF,O.gte=WF,O.has=T8,O.hasIn=Rm,O.head=j4,O.identity=vr,O.includes=fF,O.indexOf=s9,O.inRange=H8,O.invoke=R8,O.isArguments=Ma,O.isArray=Xe,O.isArrayBuffer=HF,O.isArrayLike=gr,O.isArrayLikeObject=sn,O.isBoolean=GF,O.isBuffer=Go,O.isDate=qF,O.isElement=YF,O.isEmpty=ZF,O.isEqual=JF,O.isEqualWith=XF,O.isError=Tm,O.isFinite=QF,O.isFunction=lo,O.isInteger=e3,O.isLength=qd,O.isMap=t3,O.isMatch=e8,O.isMatchWith=t8,O.isNaN=n8,O.isNative=r8,O.isNil=o8,O.isNull=i8,O.isNumber=n3,O.isObject=Zt,O.isObjectLike=on,O.isPlainObject=El,O.isRegExp=Am,O.isSafeInteger=a8,O.isSet=r3,O.isString=Yd,O.isSymbol=Rr,O.isTypedArray=js,O.isUndefined=s8,O.isWeakMap=u8,O.isWeakSet=l8,O.join=f9,O.kebabCase=X8,O.last=Hr,O.lastIndexOf=h9,O.lowerCase=Q8,O.lowerFirst=ek,O.lt=c8,O.lte=d8,O.max=qk,O.maxBy=Yk,O.mean=Zk,O.meanBy=Jk,O.min=Xk,O.minBy=Qk,O.stubArray=Bm,O.stubFalse=Im,O.stubObject=Lk,O.stubString=Vk,O.stubTrue=Nk,O.multiply=eB,O.nth=p9,O.noConflict=Rk,O.noop=km,O.now=Wd,O.pad=tk,O.padEnd=nk,O.padStart=rk,O.parseInt=ik,O.random=G8,O.reduce=yF,O.reduceRight=vF,O.repeat=ok,O.replace=ak,O.result=I8,O.round=tB,O.runInContext=ee,O.sample=$F,O.size=DF,O.snakeCase=sk,O.some=EF,O.sortedIndex=x9,O.sortedIndexBy=w9,O.sortedIndexOf=D9,O.sortedLastIndex=E9,O.sortedLastIndexBy=C9,O.sortedLastIndexOf=S9,O.startCase=lk,O.startsWith=ck,O.subtract=nB,O.sum=rB,O.sumBy=iB,O.template=dk,O.times=jk,O.toFinite=co,O.toInteger=nt,O.toLength=o3,O.toLower=fk,O.toNumber=Gr,O.toSafeInteger=f8,O.toString=Dt,O.toUpper=hk,O.trim=pk,O.trimEnd=mk,O.trimStart=gk,O.truncate=yk,O.unescape=vk,O.uniqueId=Uk,O.upperCase=bk,O.upperFirst=_m,O.each=W4,O.eachRight=H4,O.first=j4,Fm(O,function(){var s={};return _i(O,function(l,p){At.call(O.prototype,p)||(s[p]=l)}),s}(),{chain:!1}),O.VERSION=r,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){O[s].placeholder=O}),jr(["drop","take"],function(s,l){ft.prototype[s]=function(p){p=p===n?1:$n(nt(p),0);var w=this.__filtered__&&!l?new ft(this):this.clone();return w.__filtered__?w.__takeCount__=Hn(p,w.__takeCount__):w.__views__.push({size:Hn(p,N),type:s+(w.__dir__<0?"Right":"")}),w},ft.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),jr(["filter","map","takeWhile"],function(s,l){var p=l+1,w=p==I||p==k;ft.prototype[s]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:Ue(P,3),type:p}),B.__filtered__=B.__filtered__||w,B}}),jr(["head","last"],function(s,l){var p="take"+(l?"Right":"");ft.prototype[s]=function(){return this[p](1).value()[0]}}),jr(["initial","tail"],function(s,l){var p="drop"+(l?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[p](1)}}),ft.prototype.compact=function(){return this.filter(vr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=st(function(s,l){return typeof s=="function"?new ft(this):this.map(function(p){return vl(p,s,l)})}),ft.prototype.reject=function(s){return this.filter(Gd(Ue(s)))},ft.prototype.slice=function(s,l){s=nt(s);var p=this;return p.__filtered__&&(s>0||l<0)?new ft(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==n&&(l=nt(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(N)},_i(ft.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),P=O[w?"take"+(l=="last"?"Right":""):l],B=w||/^find/.test(l);P&&(O.prototype[l]=function(){var H=this.__wrapped__,J=w?[1]:arguments,te=H instanceof ft,me=J[0],ge=te||Xe(H),xe=function(lt){var ht=P.apply(O,No([lt],J));return w&&Pe?ht[0]:ht};ge&&p&&typeof me=="function"&&me.length!=1&&(te=ge=!1);var Pe=this.__chain__,Le=!!this.__actions__.length,We=B&&!Pe,ot=te&&!Le;if(!B&&ge){H=ot?H:new ft(this);var He=s.apply(H,J);return He.__actions__.push({func:Ud,args:[xe],thisArg:n}),new Ur(He,Pe)}return We&&ot?s.apply(this,J):(He=this.thru(xe),We?w?He.value()[0]:He.value():He)})}),jr(["pop","push","shift","sort","splice","unshift"],function(s){var l=md[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);O.prototype[s]=function(){var P=arguments;if(w&&!this.__chain__){var B=this.value();return l.apply(Xe(B)?B:[],P)}return this[p](function(H){return l.apply(Xe(H)?H:[],P)})}}),_i(ft.prototype,function(s,l){var p=O[l];if(p){var w=p.name+"";At.call(Bs,w)||(Bs[w]=[]),Bs[w].push({name:l,func:p})}}),Bs[Bd(n,b).name]=[{name:"wrapper",func:n}],ft.prototype.clone=vO,ft.prototype.reverse=bO,ft.prototype.value=$O,O.prototype.at=Y9,O.prototype.chain=Z9,O.prototype.commit=J9,O.prototype.next=X9,O.prototype.plant=eF,O.prototype.reverse=tF,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=nF,O.prototype.first=O.prototype.head,dl&&(O.prototype[dl]=Q9),O},Ms=J_();Ri?((Ri.exports=Ms)._=Ms,Pi._=Ms):mn._=Ms}).call(qI)}(Nl,Nl.exports)),Nl.exports}var gC=YI();const ZI=Po(gC);var zm={exports:{}};/*!
85
- Copyright (c) 2018 Jed Watson.
86
- Licensed under the MIT License (MIT), see
87
- http://jedwatson.github.io/classnames
88
- */var N3;function JI(){return N3||(N3=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zm)),zm.exports}var XI=JI();const $y=Po(XI);/*
89
- * React Tooltip
90
- * {@link https://github.com/ReactTooltip/react-tooltip}
91
- * @copyright ReactTooltip Team
92
- * @license MIT
93
- */const QI="react-tooltip-core-styles",eL="react-tooltip-base-styles",j3={core:!1,base:!1};function K3({css:e,id:t=eL,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||j3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=QI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),j3[n]=!0}const U3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[hC(Number(i)),pC({fallbackAxisSideDirection:"start"}),UI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(zI({element:n,padding:5})),by(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,y;const x={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:b}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(y={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&y!==void 0?y:"bottom",D=u&&{borderBottom:u,borderRight:u};let T=0;if(u){const E=`${u}`.match(/(\d+)px/);T=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:x,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:b!=null?`${b}px`:"",right:"",bottom:"",...D,[v]:`-${4+T}px`},place:h}})):by(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},z3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),W3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},H3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",xy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>xy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!H3(e)||!H3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>xy(e[i],t[i]))},tL=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},G3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(tL(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},nL=typeof window<"u"?$.useLayoutEffect:$.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},rL="DEFAULT_TOOLTIP_ID",iL={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},oL=$.createContext({getTooltipData:()=>iL});function yC(e=rL){return $.useContext(oL).getTooltipData(e)}var zs={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Wm={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const aL=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:y=0,delayHide:x=0,float:C=!1,hidden:b=!1,noArrow:v=!1,clickable:D=!1,closeOnEsc:T=!1,closeOnScroll:E=!1,closeOnResize:A=!1,openEvents:M,closeEvents:S,globalCloseEvents:z,imperativeModeOnly:K,style:L,position:X,afterShow:_,afterHide:I,disableTooltip:W,content:k,contentWrapperRef:V,isOpen:R,defaultIsOpen:G=!1,setIsOpen:U,activeAnchor:N,setActiveAnchor:ne,border:ie,opacity:le,arrowColor:$e,role:De="tooltip"})=>{var Ee;const Y=$.useRef(null),he=$.useRef(null),ye=$.useRef(null),fe=$.useRef(null),ae=$.useRef(null),[Fe,et]=$.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=$.useState(!1),[yt,q]=$.useState(!1),[Z,re]=$.useState(null),pe=$.useRef(!1),Ce=$.useRef(null),{anchorRefs:we,setActiveAnchor:Re}=yC(t),Ve=$.useRef(!1),[mt,ut]=$.useState([]),_t=$.useRef(!1),Pn=f||d.includes("click"),Rn=Pn||(M==null?void 0:M.click)||(M==null?void 0:M.dblclick)||(M==null?void 0:M.mousedown),Yt=M?{...M}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!M&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=z?{...z}:{escape:T||!1,scroll:E||!1,resize:A||!1,clickOutsideAnchor:Rn||!1};K&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),nL(()=>(_t.current=!0,()=>{_t.current=!1}),[]);const vt=Te=>{_t.current&&(Te&&q(!0),setTimeout(()=>{_t.current&&(U==null||U(Te),R===void 0&&Dn(Te))},10))};$.useEffect(()=>{if(R===void 0)return()=>null;R&&q(!0);const Te=setTimeout(()=>{Dn(R)},10);return()=>{clearTimeout(Te)}},[R]),$.useEffect(()=>{if(dt!==pe.current)if(qr(ae),pe.current=dt,dt)_==null||_();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ae.current=setTimeout(()=>{q(!1),re(null),I==null||I()},Te+25)}},[dt]);const Vn=Te=>{et(je=>xy(je,Te)?je:Te)},Sr=(Te=y)=>{qr(ye),yt?vt(!0):ye.current=setTimeout(()=>{vt(!0)},Te)},_n=(Te=x)=>{qr(fe),fe.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return ne(null),void Re({current:null});y?Sr():vt(!0),ne(Ye),Re({current:Ye}),qr(fe)},On=()=>{D?_n(x||100):x?_n():vt(!1),qr(ye)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};U3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:Y.current,tooltipArrowReference:he.current,strategy:h,middlewares:m,border:ie}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=Y.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(ye)))},Ir=W3(er,50),Vt=W3(On,50),Cn=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=$.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:X;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):N!=null&&N.isConnected&&U3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:N,tooltipReference:Y.current,tooltipArrowReference:he.current,strategy:h,middlewares:m,border:ie}).then(Ft=>{_t.current&&Vn(Ft)})},[dt,N,k,L,u,Z==null?void 0:Z.place,c,h,X,Z==null?void 0:Z.position,C]);$.useEffect(()=>{var Te,je;const Ye=new Set(we);mt.forEach(gt=>{W!=null&&W(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(W!=null&&W(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=G3(N),Ut=G3(Y.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Ut==null||Ut.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):N&&Y.current&&(an=fC(N,Y.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===N||er(gt)},ba=gt=>{dt&&(gt==null?void 0:gt.target)===N&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Mo=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Mo.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Mo.includes(gt)&&wt.push({event:gt,listener:ba}))}),C&&wt.push({event:"pointermove",listener:Nn});const Fo=()=>{Ve.current=!0},ko=()=>{Ve.current=!1,On()};return D&&!Rn&&((Te=Y.current)===null||Te===void 0||Te.addEventListener("mouseenter",Fo),(je=Y.current)===null||je===void 0||je.addEventListener("mouseleave",ko)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Ut==null||Ut.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!Rn&&((gt=Y.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Fo),(nr=Y.current)===null||nr===void 0||nr.removeEventListener("mouseleave",ko)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(Bo=>{var Lr;(Lr=Bo.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[N,tt,yt,we,mt,M,S,z,Pn,y,x]),$.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Ut=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Ut.push(an.target)),an.type==="childList"){if(N){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Ut.push(...kt.filter(wt=>wt.matches(Ye))),Ut.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,N))&&(q(!1),vt(!1),ne(null),qr(ye),qr(fe),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Ut.length)&&ut(an=>[...an.filter(kt=>!Ut.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,N]),$.useEffect(()=>{tt()},[tt]),$.useEffect(()=>{if(!(V!=null&&V.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(V.current),()=>{Te.disconnect()}},[k,V==null?void 0:V.current]),$.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];N&&Ye.includes(N)||ne((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,N]),$.useEffect(()=>(G&&vt(!0),()=>{qr(ye),qr(fe)}),[]),$.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),$.useEffect(()=>{ye.current&&(qr(ye),Sr(y))},[y]);const nn=(Ee=Z==null?void 0:Z.content)!==null&&Ee!==void 0?Ee:k,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return $.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}re(Te??null),Te!=null&&Te.delay?Sr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?_n(Te.delay):vt(!1)},activeAnchor:N,place:Fe.place,isOpen:!!(yt&&!b&&nn&&fr)})),yt&&!b&&nn?$.createElement(g,{id:t,role:De,className:$y("react-tooltip",zs.tooltip,Wm.tooltip,Wm[i],n,`react-tooltip__place-${Fe.place}`,zs[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&zs.fixed,D&&zs.clickable),onTransitionEnd:Te=>{qr(ae),dt||Te.propertyName!=="opacity"||(q(!1),re(null),I==null||I())},style:{...L,...Fe.tooltipStyles,opacity:le!==void 0&&fr?le:void 0},ref:Y},nn,$.createElement(g,{className:$y("react-tooltip-arrow",zs.arrow,Wm.arrow,r,v&&zs.noArrow),style:{...Fe.tooltipArrowStyles,background:$e?`linear-gradient(to right bottom, transparent 50%, ${$e} 50%)`:void 0},ref:he})):null},sL=({content:e})=>$.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),uL=$.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:y=!1,positionStrategy:x="absolute",middlewares:C,delayShow:b=0,delayHide:v=0,float:D=!1,hidden:T=!1,noArrow:E=!1,clickable:A=!1,closeOnEsc:M=!1,closeOnScroll:S=!1,closeOnResize:z=!1,openEvents:K,closeEvents:L,globalCloseEvents:X,imperativeModeOnly:_=!1,style:I,position:W,isOpen:k,defaultIsOpen:V=!1,disableStyleInjection:R=!1,border:G,opacity:U,arrowColor:N,setIsOpen:ne,afterShow:ie,afterHide:le,disableTooltip:$e,role:De="tooltip"},Ee)=>{const[Y,he]=$.useState(r),[ye,fe]=$.useState(i),[ae,Fe]=$.useState(d),[et,dt]=$.useState(c),[Dn,yt]=$.useState(f),[q,Z]=$.useState(b),[re,pe]=$.useState(v),[Ce,we]=$.useState(D),[Re,Ve]=$.useState(T),[mt,ut]=$.useState(h),[_t,Pn]=$.useState(g),[Rn,Yt]=$.useState(x),[Ln,tn]=$.useState(null),[vt,Vn]=$.useState(null),Sr=$.useRef(R),{anchorRefs:_n,activeAnchor:er}=yC(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Vt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{he(Ne??r)},html:Ne=>{fe(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:x)},"delay-show":Ne=>{Z(Ne===null?b:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?v:Number(Ne))},float:Ne=>{we(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?T:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};$.useEffect(()=>{he(r)},[r]),$.useEffect(()=>{fe(i)},[i]),$.useEffect(()=>{Fe(d)},[d]),$.useEffect(()=>{dt(c)},[c]),$.useEffect(()=>{yt(f)},[f]),$.useEffect(()=>{Z(b)},[b]),$.useEffect(()=>{pe(v)},[v]),$.useEffect(()=>{we(D)},[D]),$.useEffect(()=>{Ve(T)},[T]),$.useEffect(()=>{Yt(x)},[x]),$.useEffect(()=>{Sr.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[R]),$.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:R==="core",disableBase:R}}))},[]),$.useEffect(()=>{var Vt;const Cn=new Set(_n);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[_n,er,vt,t,n]),$.useEffect(()=>{I!=null&&I.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),G&&!z3("border",`${G}`)&&console.warn(`[react-tooltip] "${G}" is not a valid \`border\`.`),I!=null&&I.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),U&&!z3("opacity",`${U}`)&&console.warn(`[react-tooltip] "${U}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=$.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||Y||null,activeAnchor:vt});Nn=Vt?$.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Vt):null}else Y&&(Nn=Y);ye&&(Nn=$.createElement(sL,{content:ye}));const Ir={forwardRef:Ee,id:e,anchorId:t,anchorSelect:n,className:$y(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:En,place:ae,variant:et,offset:Dn,wrapper:mt,events:_t,openOnClick:y,positionStrategy:Rn,middlewares:C,delayShow:q,delayHide:re,float:Ce,hidden:Re,noArrow:E,clickable:A,closeOnEsc:M,closeOnScroll:S,closeOnResize:z,openEvents:K,closeEvents:L,globalCloseEvents:X,imperativeModeOnly:_,style:I,position:W,isOpen:k,defaultIsOpen:V,border:G,opacity:U,arrowColor:N,setIsOpen:ne,afterShow:ie,afterHide:le,disableTooltip:$e,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:De};return $.createElement(aL,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||K3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||K3({css:`
94
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var Mc=e=>e.type==="checkbox",Ua=e=>e instanceof Date,sr=e=>e==null;const vC=e=>typeof e=="object";var hn=e=>!sr(e)&&!Array.isArray(e)&&vC(e)&&!Ua(e),bC=e=>hn(e)&&e.target?Mc(e.target)?e.target.checked:e.target.value:e,lL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$C=(e,t)=>e.has(lL(t)),cL=e=>{const t=e.constructor&&e.constructor.prototype;return hn(t)&&t.hasOwnProperty("isPrototypeOf")},nb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(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(e instanceof Set)t=new Set(e);else if(!(nb&&(e instanceof Blob||r))&&(n||hn(e)))if(t=n?[]:{},!n&&!cL(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var Wh=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!hn(e))return n;const r=Wh(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",rb=e=>/^\w*$/.test(e),xC=e=>Wh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=rb(t)?[t]:xC(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=hn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const Zf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ho={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wC=$.createContext(null),Hh=()=>$.useContext(wC),dL=e=>{const{children:t,...n}=e;return $.createElement(wC.Provider,{value:n},t)};var DC=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>hn(e)&&!Object.keys(e).length,EC=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},Jl=e=>Array.isArray(e)?e:[e],CC=(e,t,n)=>!e||!t||e===t||Jl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ib(e){const t=$.useRef(e);t.current=e,$.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function fL(e){const t=Hh(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=$.useState(n._formState),c=$.useRef(!0),d=$.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=$.useRef(i);return f.current=i,ib({disabled:r,next:h=>c.current&&CC(f.current,h.name,o)&&EC(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),$.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),$.useMemo(()=>DC(a,n,d.current,!1),[a,n])}var Ni=e=>typeof e=="string",SC=(e,t,n,r,i)=>Ni(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function TC(e){const t=Hh(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=$.useRef(r);u.current=r,ib({disabled:o,subject:n._subjects.values,next:f=>{CC(u.current,f.name,a)&&d(br(SC(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=$.useState(n._getWatch(r,i));return $.useEffect(()=>n._removeUnmounted()),c}function hL(e){const t=Hh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=$C(i._names.array,n),u=TC({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=fL({control:i,name:n,exact:!0}),d=$.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=$.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=$.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:bC(m),name:n},type:Zf.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:Zf.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:y=>m.setCustomValidity(y),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return $.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(y,x)=>{const C=Ae(i._fields,y);C&&C._f&&(C._f.mount=x)};if(g(n,!0),m){const y=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,y),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,y)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),$.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),$.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}const pL=e=>e.render(hL(e));var AC=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},q3=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),Y3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Xl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Xl(u,t))break}else if(hn(u)&&Xl(u,t))break}}};var mL=(e,t,n)=>{const r=Jl(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},ob=e=>e.type==="file",Li=e=>typeof e=="function",Jf=e=>{if(!nb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Pf=e=>Ni(e),ab=e=>e.type==="radio",Xf=e=>e instanceof RegExp;const Z3={value:!1,isValid:!1},J3={value:!0,isValid:!0};var PC=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&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?J3:{value:e[0].value,isValid:!0}:J3:Z3}return Z3};const X3={isValid:!1,value:null};var RC=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,X3):X3;function Q3(e,t,n="validate"){if(Pf(e)||Array.isArray(e)&&e.every(Pf)||ti(e)&&!e)return{type:n,message:Pf(e)?e:"",ref:t}}var Ws=e=>hn(e)&&!Xf(e)?e:{value:e,message:""},e$=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:y,name:x,valueAsNumber:C,mount:b}=e._f,v=Ae(n,x);if(!b||t.has(x))return{};const D=u?u[0]:a,T=X=>{i&&D.reportValidity&&(D.setCustomValidity(ti(X)?"":X||""),D.reportValidity())},E={},A=ab(a),M=Mc(a),S=A||M,z=(C||ob(a))&&dn(a.value)&&dn(v)||Jf(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,K=AC.bind(null,x,r,E),L=(X,_,I,W=ho.maxLength,k=ho.minLength)=>{const V=X?_:I;E[x]={type:X?W:k,message:V,ref:a,...K(X?W:k,V)}};if(o?!Array.isArray(v)||!v.length:c&&(!S&&(z||sr(v))||ti(v)&&!v||M&&!PC(u).isValid||A&&!RC(u).isValid)){const{value:X,message:_}=Pf(c)?{value:!!c,message:c}:Ws(c);if(X&&(E[x]={type:ho.required,message:_,ref:D,...K(ho.required,_)},!r))return T(_),E}if(!z&&(!sr(h)||!sr(m))){let X,_;const I=Ws(m),W=Ws(h);if(!sr(v)&&!isNaN(v)){const k=a.valueAsNumber||v&&+v;sr(I.value)||(X=k>I.value),sr(W.value)||(_=k<W.value)}else{const k=a.valueAsDate||new Date(v),V=U=>new Date(new Date().toDateString()+" "+U),R=a.type=="time",G=a.type=="week";Ni(I.value)&&v&&(X=R?V(v)>V(I.value):G?v>I.value:k>new Date(I.value)),Ni(W.value)&&v&&(_=R?V(v)<V(W.value):G?v<W.value:k<new Date(W.value))}if((X||_)&&(L(!!X,I.message,W.message,ho.max,ho.min),!r))return T(E[x].message),E}if((d||f)&&!z&&(Ni(v)||o&&Array.isArray(v))){const X=Ws(d),_=Ws(f),I=!sr(X.value)&&v.length>+X.value,W=!sr(_.value)&&v.length<+_.value;if((I||W)&&(L(I,X.message,_.message),!r))return T(E[x].message),E}if(g&&!z&&Ni(v)){const{value:X,message:_}=Ws(g);if(Xf(X)&&!v.match(X)&&(E[x]={type:ho.pattern,message:_,ref:a,...K(ho.pattern,_)},!r))return T(_),E}if(y){if(Li(y)){const X=await y(v,n),_=Q3(X,D);if(_&&(E[x]={..._,...K(ho.validate,_.message)},!r))return T(_.message),E}else if(hn(y)){let X={};for(const _ in y){if(!$r(X)&&!r)break;const I=Q3(await y[_](v,n),D,_);I&&(X={...I,...K(_,I.message)},T(I.message),r&&(E[x]=X))}if(!$r(X)&&(E[x]={ref:D,...X},!r))return E}}return T(!0),E};function gL(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function yL(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function xn(e,t){const n=Array.isArray(t)?t:rb(t)?[t]:xC(t),r=n.length===1?e:gL(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(hn(r)&&$r(r)||Array.isArray(r)&&yL(r))&&xn(e,n.slice(0,-1)),e}var Hm=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},wy=e=>sr(e)||!vC(e);function ta(e,t){if(wy(e)||wy(t))return e===t;if(Ua(e)&&Ua(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(Ua(o)&&Ua(a)||hn(o)&&hn(a)||Array.isArray(o)&&Array.isArray(a)?!ta(o,a):o!==a)return!1}}return!0}var _C=e=>e.type==="select-multiple",vL=e=>ab(e)||Mc(e),Gm=e=>Jf(e)&&e.isConnected,OC=e=>{for(const t in e)if(Li(e[t]))return!0;return!1};function Qf(e,t={}){const n=Array.isArray(e);if(hn(e)||n)for(const r in e)Array.isArray(e[r])||hn(e[r])&&!OC(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Qf(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function MC(e,t,n){const r=Array.isArray(e);if(hn(e)||r)for(const i in e)Array.isArray(e[i])||hn(e[i])&&!OC(e[i])?dn(t)||wy(n[i])?n[i]=Array.isArray(e[i])?Qf(e[i],[]):{...Qf(e[i])}:MC(e[i],sr(t)?{}:t[i],n[i]):n[i]=!ta(e[i],t[i]);return n}var Cl=(e,t)=>MC(e,t,Qf(t)),FC=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ni(e)?new Date(e):r?r(e):e;function qm(e){const t=e.ref;return ob(t)?t.files:ab(t)?RC(e.refs).value:_C(t)?[...t.selectedOptions].map(({value:n})=>n):Mc(t)?PC(e.refs).value:FC(dn(t.value)?e.ref.value:t.value,e)}var bL=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Sl=e=>dn(e)?e:Xf(e)?e.source:hn(e)?Xf(e.value)?e.value.source:e.value:e;const t$="AsyncFunction";var $L=e=>!!e&&!!e.validate&&!!(Li(e.validate)&&e.validate.constructor.name===t$||hn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===t$)),xL=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function n$(e,t,n){const r=Ae(e,n);if(r||rb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var wL=(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,DL=(e,t)=>!Wh(Ae(e,t)).length&&xn(e,t);const EL={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function CL(e={}){let t={...EL,...e},n={submitCount:0,isDirty:!1,isLoading:Li(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=hn(t.defaultValues)||hn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Hm(),array:Hm(),state:Hm()},m=q3(t.mode),g=q3(t.reValidateMode),y=t.criteriaMode===yi.all,x=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await K(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},b=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(re=>{re&&(Z?Tt(n.validatingFields,re,Z):xn(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},v=(q,Z=[],re,pe,Ce=!0,we=!0)=>{if(pe&&re&&!t.disabled){if(a.action=!0,we&&Array.isArray(Ae(r,q))){const Re=re(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,Re)}if(we&&Array.isArray(Ae(n.errors,q))){const Re=re(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,Re),DL(n.errors,q)}if(f.touchedFields&&we&&Array.isArray(Ae(n.touchedFields,q))){const Re=re(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,Re)}f.dirtyFields&&(n.dirtyFields=Cl(i,o)),h.state.next({name:q,isDirty:X(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},T=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,re,pe)=>{const Ce=Ae(r,q);if(Ce){const we=Ae(o,q,dn(re)?Ae(i,q):re);dn(we)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?we:qm(Ce._f)):W(q,we),a.mount&&C()}},A=(q,Z,re,pe,Ce)=>{let we=!1,Re=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!re||pe){f.isDirty&&(Re=n.isDirty,n.isDirty=Ve.isDirty=X(),we=Re!==Ve.isDirty);const ut=mt||ta(Ae(i,q),Z);Re=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?xn(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,we=we||f.dirtyFields&&Re!==!ut}if(re){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,re),Ve.touchedFields=n.touchedFields,we=we||f.touchedFields&&ut!==re)}we&&Ce&&h.state.next(Ve)}return we?Ve:{}},M=(q,Z,re,pe)=>{const Ce=Ae(n.errors,q),we=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&re?(c=x(()=>D(q,re)),c(t.delayError)):(clearTimeout(d),c=null,re?Tt(n.errors,q,re):xn(n.errors,q)),(re?!ta(Ce,re):Ce)||!$r(pe)||we){const Re={...pe,...we&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,...Re},h.state.next(Re)}},S=async q=>{b(q,!0);const Z=await t.resolver(o,t.context,bL(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(q),Z},z=async q=>{const{errors:Z}=await S(q);if(q)for(const re of q){const pe=Ae(Z,re);pe?Tt(n.errors,re,pe):xn(n.errors,re)}else n.errors=Z;return Z},K=async(q,Z,re={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:we,...Re}=Ce;if(we){const Ve=u.array.has(we.name),mt=Ce._f&&$L(Ce._f);mt&&f.validatingFields&&b([pe],!0);const ut=await e$(Ce,u.disabled,o,y,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&b([pe]),ut[we.name]&&(re.valid=!1,Z))break;!Z&&(Ae(ut,we.name)?Ve?mL(n.errors,ut,we.name):Tt(n.errors,we.name,ut[we.name]):xn(n.errors,we.name))}!$r(Re)&&await K(Re,Z,re)}}return re.valid},L=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(re=>!Gm(re)):!Gm(Z._f.ref))&&De(q)}u.unMount=new Set},X=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!ta(N(),i)),_=(q,Z,re)=>SC(q,u,{...a.mount?o:dn(Z)?i:Ni(q)?{[q]:Z}:Z},re,Z),I=q=>Wh(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),W=(q,Z,re={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const we=pe._f;we&&(!we.disabled&&Tt(o,q,FC(Z,we)),Ce=Jf(we.ref)&&sr(Z)?"":Z,_C(we.ref)?[...we.ref.options].forEach(Re=>Re.selected=Ce.includes(Re.value)):we.refs?Mc(we.ref)?we.refs.length>1?we.refs.forEach(Re=>(!Re.defaultChecked||!Re.disabled)&&(Re.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===Re.value):Ce===Re.value)):we.refs[0]&&(we.refs[0].checked=!!Ce):we.refs.forEach(Re=>Re.checked=Re.value===Ce):ob(we.ref)?we.ref.value="":(we.ref.value=Ce,we.ref.type||h.values.next({name:q,values:{...o}})))}(re.shouldDirty||re.shouldTouch)&&A(q,Ce,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&U(q)},k=(q,Z,re)=>{for(const pe in Z){const Ce=Z[pe],we=`${q}.${pe}`,Re=Ae(r,we);(u.array.has(q)||hn(Ce)||Re&&!Re._f)&&!Ua(Ce)?k(we,Ce,re):W(we,Ce,re)}},V=(q,Z,re={})=>{const pe=Ae(r,q),Ce=u.array.has(q),we=br(Z);Tt(o,q,we),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&re.shouldDirty&&h.state.next({name:q,dirtyFields:Cl(i,o),isDirty:X(q,we)})):pe&&!pe._f&&!sr(we)?k(q,we,re):W(q,we,re),Y3(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},R=async q=>{a.mount=!0;const Z=q.target;let re=Z.name,pe=!0;const Ce=Ae(r,re),we=()=>Z.type?qm(Ce._f):bC(q),Re=Ve=>{pe=Number.isNaN(Ve)||Ua(Ve)&&isNaN(Ve.getTime())||ta(Ve,Ae(o,re,Ve))};if(Ce){let Ve,mt;const ut=we(),_t=q.type===Zf.BLUR||q.type===Zf.FOCUS_OUT,Pn=!xL(Ce._f)&&!t.resolver&&!Ae(n.errors,re)&&!Ce._f.deps||wL(_t,Ae(n.touchedFields,re),n.isSubmitted,g,m),Rn=Y3(re,u,_t);Tt(o,re,ut),_t?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=A(re,ut,_t,!1),Ln=!$r(Yt)||Rn;if(!_t&&h.values.next({name:re,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&_t?C():_t||C()),Ln&&h.state.next({name:re,...Rn?{}:Yt});if(!_t&&Rn&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([re]);if(Re(ut),pe){const vt=n$(n.errors,r,re),Vn=n$(tn,r,vt.name||re);Ve=Vn.error,re=Vn.name,mt=$r(tn)}}else b([re],!0),Ve=(await e$(Ce,u.disabled,o,y,t.shouldUseNativeValidation))[re],b([re]),Re(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await K(r,!0)));pe&&(Ce._f.deps&&U(Ce._f.deps),M(re,mt,Ve,Yt))}},G=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},U=async(q,Z={})=>{let re,pe;const Ce=Jl(q);if(t.resolver){const we=await z(dn(q)?q:Ce);re=$r(we),pe=q?!Ce.some(Re=>Ae(we,Re)):re}else q?(pe=(await Promise.all(Ce.map(async we=>{const Re=Ae(r,we);return await K(Re&&Re._f?{[we]:Re}:Re)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=re=await K(r);return h.state.next({...!Ni(q)||f.isValid&&re!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:re}:{},errors:n.errors}),Z.shouldFocus&&!pe&&Xl(r,G,q?Ce:u.mount),pe},N=q=>{const Z={...a.mount?o:i};return dn(q)?Z:Ni(q)?Ae(Z,q):q.map(re=>Ae(Z,re))},ne=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),ie=q=>{q&&Jl(q).forEach(Z=>xn(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},le=(q,Z,re)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:we,message:Re,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&pe&&pe.focus&&pe.focus()},$e=(q,Z)=>Li(q)?h.values.subscribe({next:re=>q(_(void 0,Z),re)}):_(q,Z,!0),De=(q,Z={})=>{for(const re of q?Jl(q):u.mount)u.mount.delete(re),u.array.delete(re),Z.keepValue||(xn(r,re),xn(o,re)),!Z.keepError&&xn(n.errors,re),!Z.keepDirty&&xn(n.dirtyFields,re),!Z.keepTouched&&xn(n.touchedFields,re),!Z.keepIsValidating&&xn(n.validatingFields,re),!t.shouldUnregister&&!Z.keepDefaultValue&&xn(i,re);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:X()}:{}}),!Z.keepIsValid&&C()},Ee=({disabled:q,name:Z,field:re,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),A(Z,qm(re?re._f:Ae(pe,Z)._f),!1,!1,!0))},Y=(q,Z={})=>{let re=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),re?Ee({field:re,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Sl(Z.min),max:Sl(Z.max),minLength:Sl(Z.minLength),maxLength:Sl(Z.maxLength),pattern:Sl(Z.pattern)}:{},name:q,onChange:R,onBlur:R,ref:Ce=>{if(Ce){Y(q,Z),re=Ae(r,q);const we=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,Re=vL(we),Ve=re._f.refs||[];if(Re?Ve.find(mt=>mt===we):we===re._f.ref)return;Tt(r,q,{_f:{...re._f,...Re?{refs:[...Ve.filter(Gm),we,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:we.type,name:q}}:{ref:we}}}),E(q,!1,void 0,we)}else re=Ae(r,q,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!($C(u.array,q)&&a.action)&&u.unMount.add(q)}}},he=()=>t.shouldFocusError&&Xl(r,G,u.mount),ye=q=>{ti(q)&&(h.state.next({disabled:q}),Xl(r,(Z,re)=>{const pe=Ae(r,re);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},fe=(q,Z)=>async re=>{let pe;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Ce=br(o);if(u.disabled.size)for(const we of u.disabled)Tt(Ce,we,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:we,values:Re}=await S();n.errors=we,Ce=Re}else await K(r);if(xn(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,re)}catch(we){pe=we}}else Z&&await Z({...n.errors},re),he(),setTimeout(he);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},ae=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?V(q,br(Ae(i,q))):(V(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||xn(n.touchedFields,q),Z.keepDirty||(xn(n.dirtyFields,q),n.isDirty=Z.defaultValue?X(q,br(Ae(i,q))):X()),Z.keepError||(xn(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const re=q?br(q):i,pe=br(re),Ce=$r(q),we=Ce?i:pe;if(Z.keepDefaultValues||(i=re),!Z.keepValues){if(Z.keepDirtyValues){const Re=new Set([...u.mount,...Object.keys(Cl(i,o))]);for(const Ve of Array.from(Re))Ae(n.dirtyFields,Ve)?Tt(we,Ve,Ae(o,Ve)):V(Ve,Ae(we,Ve))}else{if(nb&&dn(q))for(const Re of u.mount){const Ve=Ae(r,Re);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(Jf(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(we),h.array.next({values:{...we}}),h.values.next({values:{...we}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!ta(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Cl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Cl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Li(q)?q(o):q,Z);return{control:{register:Y,unregister:De,getFieldState:ne,handleSubmit:fe,setError:le,_executeSchema:S,_getWatch:_,_getDirty:X,_updateValid:C,_removeUnmounted:L,_updateFieldArray:v,_updateDisabledField:Ee,_getFieldArray:I,_reset:Fe,_resetDefaultValues:()=>Li(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:ye,_subjects:h,_proxyFormState:f,_setErrors:T,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:U,register:Y,handleSubmit:fe,watch:$e,setValue:V,getValues:N,reset:et,resetField:ae,clearErrors:ie,unregister:De,setError:le,setFocus:(q,Z={})=>{const re=Ae(r,q),pe=re&&re._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Li(Ce.select)&&Ce.select())}},getFieldState:ne}}function SL(e={}){const t=$.useRef(void 0),n=$.useRef(void 0),[r,i]=$.useState({isDirty:!1,isValidating:!1,isLoading:Li(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Li(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...CL(e),formState:r});const o=t.current.control;return o._options=e,ib({subject:o._subjects.state,next:a=>{EC(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),$.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),$.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),$.useEffect(()=>{e.values&&!ta(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),$.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),$.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),$.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=DC(r,o),t.current}const Lt=typeof document<"u"?$.useLayoutEffect:()=>{};function fn(e){const t=$.useRef(null);return Lt(()=>{t.current=e},[e]),$.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function TL(e){let[t,n]=$.useState(e),r=$.useRef(null),i=fn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});Lt(()=>{r.current&&i()});let o=fn(a=>{r.current=a(t),i()});return[t,o]}const eh={prefix:String(Math.round(Math.random()*1e10)),current:0},kC=$.createContext(eh),AL=$.createContext(!1);let PL=!!(typeof window<"u"&&window.document&&window.document.createElement),Ym=new WeakMap;function RL(e=!1){let t=$.useContext(kC),n=$.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=$.__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(o){let a=Ym.get(o);a==null?Ym.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Ym.delete(o))}n.current=++t.current}return n.current}function _L(e){let t=$.useContext(kC);t===eh&&!PL&&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=RL(!!e),r=t===eh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function OL(e){let t=$.useId(),[n]=$.useState(sb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${eh.prefix}`;return e||`${r}-${t}`}const ML=typeof $.useId=="function"?OL:_L;function FL(){return!1}function kL(){return!0}function BL(e){return()=>{}}function sb(){return typeof $.useSyncExternalStore=="function"?$.useSyncExternalStore(BL,FL,kL):$.useContext(AL)}let IL=!!(typeof window<"u"&&window.document&&window.document.createElement),Qo=new Map;function Er(e){let[t,n]=$.useState(e),r=$.useRef(null),i=ML(t),o=$.useCallback(a=>{r.current=a},[]);return IL&&(Qo.has(i)&&!Qo.get(i).includes(o)?Qo.set(i,[...Qo.get(i),o]):Qo.set(i,[o])),Lt(()=>{let a=i;return()=>{Qo.delete(a)}},[i]),$.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function LL(e,t){if(e===t)return e;let n=Qo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Qo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Er(),[n,r]=TL(t),i=$.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Lt(i,[t,i,...e]),n}function as(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const jt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},fa=e=>e&&"window"in e&&e.window===e?e:jt(e).defaultView||window;function BC(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=BC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function VL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=BC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=as(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=VL(o,a):i==="id"&&o&&a?t.id=LL(o,a):t[i]=a!==void 0?a:o}}return t}const NL=new Set(["id"]),jL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),KL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),UL=/^(data-.*)$/;function Ro(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(NL.has(a)||n&&jL.has(a)||r&&KL.has(a)||i!=null&&i.has(a)||UL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(zL())e.focus({preventScroll:!0});else{let t=WL(e);e.focus(),HL(t)}}let nf=null;function zL(){if(nf==null){nf=!1;try{document.createElement("div").focus({get preventScroll(){return nf=!0,!0}})}catch{}}return nf}function WL(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 HL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Gh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function ub(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 _o(e){let t=null;return()=>(t==null&&(t=e()),t)}const So=_o(function(){return ub(/^Mac/i)}),GL=_o(function(){return ub(/^iPhone/i)}),IC=_o(function(){return ub(/^iPad/i)||So()&&navigator.maxTouchPoints>1}),Fc=_o(function(){return GL()||IC()}),Rf=_o(function(){return So()||Fc()}),lb=_o(function(){return Gh(/AppleWebKit/i)&&!LC()}),LC=_o(function(){return Gh(/Chrome/i)}),cb=_o(function(){return Gh(/Android/i)}),qL=_o(function(){return Gh(/Firefox/i)}),YL=$.createContext({isNative:!0,open:JL,useHref:e=>e});function qh(){return $.useContext(YL)}function ss(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;qL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(So()?o=!0:a=!0);let d=lb()&&So()&&!IC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});ss.isOpening=n,vi(e),e.dispatchEvent(d),ss.isOpening=!1}ss.isOpening=!1;function ZL(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 JL(e,t){ZL(e,n=>ss(n,t))}function XL(e){let t=qh();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 Ys=new Map,Dy=new Set;function r$(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);i||(i=new Set,Ys.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=Ys.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ys.delete(r.target)),Ys.size===0)){for(let o of Dy)o();Dy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?r$():document.addEventListener("DOMContentLoaded",r$));function VC(e){requestAnimationFrame(()=>{Ys.size===0?e():Dy.add(e)})}function Ku(){let e=$.useRef(new Map),t=$.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,c,u)},[]),n=$.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=$.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return $.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Cu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Er(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 i$(e,t){const n=$.useRef(!0),r=$.useRef(null);$.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),$.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function o$(e,t){const n=$.useRef(!0),r=$.useRef(null);Lt(()=>(n.current=!0,()=>{n.current=!1}),[]),Lt(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function QL(){return typeof window.ResizeObserver<"u"}function a$(e){const{ref:t,box:n,onResize:r}=e;$.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(QL()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function NC(e,t){Lt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function cc(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 Yh(e,t){let n=e;for(cc(n,t)&&(n=n.parentElement);n&&!cc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function eV(e,t){const n=[];for(;e&&e!==document.documentElement;)cc(e,t)&&n.push(e),e=e.parentElement;return n}let tV=0;const Zm=new Map;function kc(e){let[t,n]=$.useState();return Lt(()=>{if(!e)return;let r=Zm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${tV++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Zm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Zm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ji(e,t,n,r){let i=fn(n),o=n==null;$.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function jC(e,t){let n=s$(e,t,"left"),r=s$(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:h,scrollPaddingBottom:m,scrollPaddingLeft:g}=getComputedStyle(e),y=a+parseInt(d,10),x=u+parseInt(c,10),C=y+e.clientWidth,b=x+e.clientHeight,v=parseInt(f,10)||0,D=parseInt(m,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=a+E?a=n-parseInt(d,10)-E:n+i>C-T&&(a+=n+i-C+T),r<=x+v?u=r-parseInt(c,10)-v:r+o>b-D&&(u+=r+o-b+D),e.scrollLeft=a,e.scrollTop=u}function s$(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 th(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=eV(e);for(let d of c)jC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Ey(e){return e.mozInputSource===0&&e.isTrusted?!0:cb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function nV(e){return!cb()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function KC(e,t){let n=$.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function db(e,t,n){let r=$.useRef(t),i=fn(()=>{n&&n(r.current)});$.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}const rV="react-aria-clear-focus",iV="react-aria-focus",UC="react-aria-update-activedescendant";function Zs(e){return So()?e.metaKey:e.ctrlKey}function Fr(e,t,n){let[r,i]=$.useState(e||t),o=$.useRef(e!==void 0),a=e!==void 0;$.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=$.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let x=d(a?u:g,...y);return h(x,...f),a?g:x})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Su(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function rf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Tl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=rf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(rf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(rf((n-t)/r,r))*r),o=rf(o,r),o}let Xs="default",Cy="",_f=new WeakMap;function Sy(e){if(Fc()){if(Xs==="default"){const t=jt(e);Cy=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(_f.set(e,e.style.userSelect),e.style.userSelect="none")}function jl(e){if(Fc()){if(Xs!=="disabled")return;Xs="restoring",setTimeout(()=>{VC(()=>{if(Xs==="restoring"){const t=jt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Cy||""),Cy="",Xs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_f.has(e)){let t=_f.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_f.delete(e)}}const fb=$.createContext({register:()=>{}});fb.displayName="PressResponderContext";function oV(e,t){return t.get?t.get.call(e):t.value}function zC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function aV(e,t){var n=zC(e,t,"get");return oV(e,n)}function sV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bc(e,t,n){sV(e,t),t.set(e,n)}function uV(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 u$(e,t,n){var r=zC(e,t,"set");return uV(e,r,n),n}function lV(e){let t=$.useContext(fb);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return NC(t,e.ref),e}var of=new WeakMap;class af{continuePropagation(){u$(this,of,!1)}get shouldStopPropagation(){return aV(this,of)}constructor(t,n,r,i){Bc(this,of,{writable:!0,value:void 0}),u$(this,of,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.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=c,this.y=d}}const l$=Symbol("linkClicked");function Ic(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=lV(e),[g,y]=$.useState(!1),x=$.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:b}=Ku(),v=fn((S,z)=>{let K=x.current;if(a||K.didFirePressStart)return!1;let L=!0;if(K.isTriggeringEvent=!0,r){let X=new af("pressstart",z,S);r(X),L=X.shouldStopPropagation}return n&&n(!0),K.isTriggeringEvent=!1,K.didFirePressStart=!0,y(!0),L}),D=fn((S,z,K=!0)=>{let L=x.current;if(!L.didFirePressStart)return!1;L.ignoreClickAfterPress=!0,L.didFirePressStart=!1,L.isTriggeringEvent=!0;let X=!0;if(i){let _=new af("pressend",z,S);i(_),X=_.shouldStopPropagation}if(n&&n(!1),y(!1),t&&K&&!a){let _=new af("press",z,S);t(_),X&&(X=_.shouldStopPropagation)}return L.isTriggeringEvent=!1,X}),T=fn((S,z)=>{let K=x.current;if(a)return!1;if(o){K.isTriggeringEvent=!0;let L=new af("pressup",z,S);return o(L),K.isTriggeringEvent=!1,L.shouldStopPropagation}return!0}),E=fn(S=>{let z=x.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&D(po(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,b(),f||jl(z.target))}),A=fn(S=>{d&&E(S)}),M=$.useMemo(()=>{let S=x.current,z={onKeyDown(L){if(Jm(L.nativeEvent,L.currentTarget)&&L.currentTarget.contains(L.target)){var X;d$(L.target,L.key)&&L.preventDefault();let _=!0;if(!S.isPressed&&!L.repeat){S.target=L.currentTarget,S.isPressed=!0,_=v(L,"keyboard");let I=L.currentTarget,W=k=>{Jm(k,I)&&!k.repeat&&I.contains(k.target)&&S.target&&T(po(S.target,k),"keyboard")};C(jt(L.currentTarget),"keyup",as(W,K),!0)}_&&L.stopPropagation(),L.metaKey&&So()&&((X=S.metaKeyEvents)===null||X===void 0||X.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(L){if(!(L&&!L.currentTarget.contains(L.target))&&L&&L.button===0&&!S.isTriggeringEvent&&!ss.isOpening){let X=!0;if(a&&L.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Ey(L.nativeEvent))){!a&&!c&&vi(L.currentTarget);let _=v(L,"virtual"),I=T(L,"virtual"),W=D(L,"virtual");X=_&&I&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,X&&L.stopPropagation()}}},K=L=>{var X;if(S.isPressed&&S.target&&Jm(L,S.target)){var _;d$(L.target,L.key)&&L.preventDefault();let W=L.target;D(po(S.target,L),"keyboard",S.target.contains(W)),b(),L.key!=="Enter"&&hb(S.target)&&S.target.contains(W)&&!L[l$]&&(L[l$]=!0,ss(S.target,L,!1)),S.isPressed=!1,(_=S.metaKeyEvents)===null||_===void 0||_.delete(L.key)}else if(L.key==="Meta"&&(!((X=S.metaKeyEvents)===null||X===void 0)&&X.size)){var I;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let k of W.values())(I=S.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",k))}};if(typeof PointerEvent<"u"){z.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(nV(I.nativeEvent)){S.pointerType="virtual";return}Qm(I.currentTarget)&&I.preventDefault(),S.pointerType=I.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=I.pointerId,S.target=I.currentTarget,!a&&!c&&vi(I.currentTarget),f||Sy(S.target),W=v(I,S.pointerType);let k=I.target;"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),C(jt(I.currentTarget),"pointerup",L,!1),C(jt(I.currentTarget),"pointercancel",_,!1)}W&&I.stopPropagation()},z.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Qm(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},z.onPointerUp=I=>{!I.currentTarget.contains(I.target)||S.pointerType==="virtual"||I.button===0&&T(I,S.pointerType||I.pointerType)},z.onPointerEnter=I=>{I.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(po(S.target,I),S.pointerType))},z.onPointerLeave=I=>{I.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(po(S.target,I),S.pointerType,!1),A(I))};let L=I=>{I.pointerId===S.activePointerId&&S.isPressed&&I.button===0&&S.target&&(S.target.contains(I.target)&&S.pointerType!=null?D(po(S.target,I),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(po(S.target,I),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,b(),f||jl(S.target),"ontouchend"in S.target&&I.pointerType!=="mouse"&&C(S.target,"touchend",X,{once:!0}))},X=I=>{WC(I.currentTarget)&&I.preventDefault()},_=I=>{E(I)};z.onDragStart=I=>{I.currentTarget.contains(I.target)&&E(I)}}else{z.onMouseDown=_=>{if(_.button!==0||!_.currentTarget.contains(_.target))return;if(Qm(_.currentTarget)&&_.preventDefault(),S.ignoreEmulatedMouseEvents){_.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=_.currentTarget,S.pointerType=Ey(_.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(_.currentTarget),v(_,S.pointerType)&&_.stopPropagation(),C(jt(_.currentTarget),"mouseup",L,!1)},z.onMouseEnter=_=>{if(!_.currentTarget.contains(_.target))return;let I=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,I=v(_,S.pointerType)),I&&_.stopPropagation()},z.onMouseLeave=_=>{if(!_.currentTarget.contains(_.target))return;let I=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,I=D(_,S.pointerType,!1),A(_)),I&&_.stopPropagation()},z.onMouseUp=_=>{_.currentTarget.contains(_.target)&&!S.ignoreEmulatedMouseEvents&&_.button===0&&T(_,S.pointerType||"mouse")};let L=_=>{if(_.button===0){if(S.isPressed=!1,b(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Xm(_,S.target)&&S.pointerType!=null?D(po(S.target,_),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(po(S.target,_),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=_=>{if(!_.currentTarget.contains(_.target))return;let I=cV(_.nativeEvent);if(!I)return;S.activePointerId=I.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=_.currentTarget,S.pointerType="touch",!a&&!c&&vi(_.currentTarget),f||Sy(S.target),v(qo(S.target,_),S.pointerType)&&_.stopPropagation(),C(fa(_.currentTarget),"scroll",X,!0)},z.onTouchMove=_=>{if(!_.currentTarget.contains(_.target))return;if(!S.isPressed){_.stopPropagation();return}let I=c$(_.nativeEvent,S.activePointerId),W=!0;I&&Xm(I,_.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(qo(S.target,_),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(qo(S.target,_),S.pointerType,!1),A(qo(S.target,_))),W&&_.stopPropagation()},z.onTouchEnd=_=>{if(!_.currentTarget.contains(_.target))return;if(!S.isPressed){_.stopPropagation();return}let I=c$(_.nativeEvent,S.activePointerId),W=!0;I&&Xm(I,_.currentTarget)&&S.pointerType!=null?(T(qo(S.target,_),S.pointerType),W=D(qo(S.target,_),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=D(qo(S.target,_),S.pointerType,!1)),W&&_.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&jl(S.target),b()},z.onTouchCancel=_=>{_.currentTarget.contains(_.target)&&(_.stopPropagation(),S.isPressed&&E(qo(S.target,_)))};let X=_=>{S.isPressed&&_.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=_=>{_.currentTarget.contains(_.target)&&E(_)}}return z},[C,a,c,b,f,E,A,D,v,T]);return $.useEffect(()=>()=>{var S;f||jl((S=x.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,M)}}function hb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Jm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof fa(i).HTMLInputElement&&!HC(i,n)||i instanceof fa(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&hb(i))&&n!=="Enter")}function cV(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function c$(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 qo(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 po(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 dV(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 fV(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Xm(e,t){let n=t.getBoundingClientRect(),r=dV(e);return fV(n,r)}function Qm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function WC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!hb(e)}function d$(e,t){return e instanceof HTMLInputElement?!HC(e,t):WC(e)}const hV=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function HC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":hV.has(e.type)}function pV({children:e}){let t=$.useMemo(()=>({register:()=>{}}),[]);return $.createElement(fb.Provider,{value:t},e)}class mV{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function GC(e){let t=$.useRef({isFocused:!1,observer:null});Lt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=fn(r=>{e==null||e(r)});return $.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,o=a=>{t.current.isFocused=!1,i.disabled&&n(new mV("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function gV(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=$.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=GC(o),u=$.useCallback(c=>{const d=jt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let hs=null,yV=new Set,Ql=new Map,us=!1,Ty=!1;function Zh(e,t){for(let n of yV)n(e,t)}function vV(e){return!(e.metaKey||!So()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nh(e){us=!0,vV(e)&&(hs="keyboard",Zh("keyboard",e))}function ni(e){hs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(us=!0,Zh("pointer",e))}function qC(e){Ey(e)&&(us=!0,hs="virtual")}function YC(e){e.target===window||e.target===document||(!us&&!Ty&&(hs="virtual",Zh("virtual",e)),us=!1,Ty=!1)}function ZC(){us=!1,Ty=!0}function f$(e){if(typeof window>"u"||Ql.get(fa(e)))return;const t=fa(e),n=jt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){us=!0,r.apply(this,arguments)},n.addEventListener("keydown",nh,!0),n.addEventListener("keyup",nh,!0),n.addEventListener("click",qC,!0),t.addEventListener("focus",YC,!0),t.addEventListener("blur",ZC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{JC(e)},{once:!0}),Ql.set(t,{focus:r})}const JC=(e,t)=>{const n=fa(e),r=jt(e);t&&r.removeEventListener("DOMContentLoaded",t),Ql.has(n)&&(n.HTMLElement.prototype.focus=Ql.get(n).focus,r.removeEventListener("keydown",nh,!0),r.removeEventListener("keyup",nh,!0),r.removeEventListener("click",qC,!0),n.removeEventListener("focus",YC,!0),n.removeEventListener("blur",ZC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Ql.delete(n))};function bV(e){const t=jt(e);let n;return t.readyState!=="loading"?f$(e):(n=()=>{f$(e)},t.addEventListener("DOMContentLoaded",n)),()=>JC(e,n)}typeof document<"u"&&bV();function h$(){return hs!=="pointer"}function dc(){return hs}function XC(e){hs=e,Zh(e,null)}function Uu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=$.useRef({isFocusWithin:!1}),a=$.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=GC(a),c=$.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let rh=!1,eg=0;function Ay(){rh=!0,setTimeout(()=>{rh=!1},50)}function p$(e){e.pointerType==="touch"&&Ay()}function $V(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",p$):document.addEventListener("touchend",Ay),eg++,()=>{eg--,!(eg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",p$):document.removeEventListener("touchend",Ay))}}function xV(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=$.useState(!1),u=$.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;$.useEffect($V,[]);let{hoverProps:c,triggerHoverEnd:d}=$.useMemo(()=>{let f=(g,y)=>{if(u.pointerType=y,i||y==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let x=g.currentTarget;u.target=x,t&&t({type:"hoverstart",target:x,pointerType:y}),n&&n(!0),a(!0)},h=(g,y)=>{if(u.pointerType="",u.target=null,y==="touch"||!u.isHovered)return;u.isHovered=!1;let x=g.currentTarget;r&&r({type:"hoverend",target:x,pointerType:y}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{rh&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!rh&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return $.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function wV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=$.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=fn(c=>{n&&sf(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=fn(c=>{n&&n(c)});$.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=jt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&sf(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function sf(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&&!t.current.contains(e.target)}function m$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?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 QC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:m$(e.onKeyDown),onKeyUp:m$(e.onKeyUp)}}}function eS(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=$.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Ku(),u=fn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=fn((f,h)=>{jl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:$.useMemo(()=>{let f={},h=()=>{Sy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=b=>{if(b.button===0){var v,D,T,E;u(b,"mouse",b.pageX-((T=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&T!==void 0?T:0),b.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{b.button===0&&(c(b,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",y,!1))};f.onMouseDown=b=>{b.button===0&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",y,!1))};let x=b=>{let v=[...b.changedTouches].findIndex(({identifier:M})=>M===i.current.id);if(v>=0){var D,T;let{pageX:M,pageY:S}=b.changedTouches[v];var E,A;u(b,"touch",M-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((A=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:M,pageY:S}}},C=b=>{[...b.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(b,"touch"),i.current.id=null,a(window,"touchmove",x),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=b=>{if(b.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:D,identifier:T}=b.changedTouches[0];h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:v,pageY:D},i.current.id=T,o(window,"touchmove",x,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=x=>{if(x.pointerId===i.current.id){var C,b;let T=x.pointerType||"mouse";var v,D;u(x,T,x.pageX-((v=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&v!==void 0?v:0),x.pageY-((D=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},y=x=>{if(x.pointerId===i.current.id){let C=x.pointerType||"mouse";c(x,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",y,!1),a(window,"pointercancel",y,!1)}};f.onPointerDown=x=>{x.button===0&&i.current.id==null&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",y,!1),o(window,"pointercancel",y,!1))}}let m=(g,y,x)=>{h(),u(g,"keyboard",y,x),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const DV=500;function tS(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=DV,accessibilityDescription:a}=e;const u=$.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:f}=Ic({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=y=>{y.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=kc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function ls(e){const t=jt(e);if(dc()==="virtual"){let n=t.activeElement;VC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function EV(e){const t=fa(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:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function CV(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 nS(e,t){return e.nodeName!=="#comment"&&EV(e)&&CV(e,t)&&(!e.parentElement||nS(e.parentElement,e))}const g$=$.createContext(null),Py="react-aria-focus-scope-restore";let Nt=null;function SV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=$.useRef(null),a=$.useRef(null),u=$.useRef([]),{parentNode:c}=$.useContext(g$)||{},d=$.useMemo(()=>new _y({scopeRef:u}),[u]);Lt(()=>{let m=c||gn.root;if(gn.getTreeNode(m.scopeRef)&&Nt&&!ih(Nt,m.scopeRef)){let g=gn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),gn.addNode(d)},[d,c]),Lt(()=>{let m=gn.getTreeNode(u);m&&(m.contain=!!n)},[n]),Lt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],x=C=>C.stopPropagation();for(;g&&g!==a.current;)y.push(g),g.addEventListener(Py,x),g=g.nextSibling;return u.current=y,()=>{for(let C of y)C.removeEventListener(Py,x)}},[t]),MV(u,r,n),RV(u,n),FV(u,r,n),OV(u,i),$.useEffect(()=>{const m=jt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let y of gn.traverse())y.scopeRef&&ui(m,y.scopeRef.current)&&(g=y);g===gn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),Lt(()=>()=>{var m,g,y;let x=(y=(g=gn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(u===Nt||ih(u,Nt))&&(!x||gn.getTreeNode(x))&&(Nt=x),gn.removeTreeNode(u)},[u]);let f=$.useMemo(()=>TV(u),[]),h=$.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return $.createElement(g$.Provider,{value:h},$.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,$.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function TV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||jt(n[0]).activeElement,c=n[0].previousElementSibling,d=za(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||jt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=za(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=za(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=za(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const pb=["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"])'],AV=pb.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";pb.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const PV=pb.join(':not([hidden]):not([tabindex="-1"]),');function za(e){return e[0].parentElement}function Kl(e){let t=gn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function RV(e,t){let n=$.useRef(void 0),r=$.useRef(void 0);Lt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=jt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Kl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=za(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let y=d.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,y=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),y&&xr(y,!0)},u=d=>{(!Nt||ih(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Kl(e)&&!ra(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Ry(Nt.current):Kl(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=dc();if(!((f==="virtual"||f===null)&&cb()&&LC())&&o.activeElement&&Kl(e)&&!ra(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var m;n.current=d.target,(m=n.current)===null||m===void 0||m.focus()}else Nt.current&&Ry(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),Lt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function rS(e){return ra(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ra(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of gn.traverse(gn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function _V(e){return ra(e,Nt)}function ih(e,t){var n;let r=(n=gn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{ls(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function iS(e,t=!0){let n=e[0].previousElementSibling,r=za(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=za(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Ry(e,t=!0){xr(iS(e,t))}function OV(e,t){const n=$.useRef(t);$.useEffect(()=>{if(n.current){Nt=e;const r=jt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Ry(e.current)}n.current=!1},[e])}function MV(e,t,n){Lt(()=>{if(t||n)return;let r=e.current;const i=jt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:rS(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function y$(e){let t=gn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function FV(e,t,n){const r=$.useRef(typeof document<"u"?jt(e.current?e.current[0]:void 0).activeElement:null);Lt(()=>{let i=e.current;const o=jt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||ih(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),Lt(()=>{const i=jt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kl(e)||a.isComposing)return;let u=i.activeElement;if(!ra(u,e)||!y$(e))return;let c=gn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!ra(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(ra(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):rS(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),Lt(()=>{const i=jt(e.current?e.current[0]:void 0);if(!t)return;let o=gn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=gn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&ra(i.activeElement,e)||i.activeElement===i.body&&y$(e))){let d=gn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){v$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&gn.getTreeNode(f.scopeRef)){let h=iS(f.scopeRef.current,!0);v$(h);return}f=f.parent}}})}}}},[e,t])}function v$(e){e.dispatchEvent(new CustomEvent(Py,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?PV:AV,i=jt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&nS(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Jh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||jt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||jt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=tg(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=tg(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=tg(a);return u&&xr(u,!0),u??null}}}function tg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class mb{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 o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.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 o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),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 mb;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 _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{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 gn=new mb,kV=$.createContext(null);function BV(e){let t=$.useContext(kV)||{};NC(t,e);let{ref:n,...r}=t;return r}function gb(e,t){let{focusProps:n}=gV(e),{keyboardProps:r}=QC(e),i=xt(n,r),o=BV(t),a=e.isDisabled?{}:o,u=$.useRef(e.autoFocus);return $.useEffect(()=>{u.current&&t.current&&ls(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const IV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),LV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function VV(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 IV.has(n.script)}let t=e.split("-")[0];return LV.has(t)}const NV=Symbol.for("react-aria.i18n.locale");function oS(){let e=typeof window<"u"&&window[NV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:VV(e)?"rtl":"ltr"}}let Oy=oS(),Ul=new Set;function b$(){Oy=oS();for(let e of Ul)e(Oy)}function jV(){let e=sb(),[t,n]=$.useState(Oy);return $.useEffect(()=>(Ul.size===0&&window.addEventListener("languagechange",b$),Ul.add(n),()=>{Ul.delete(n),Ul.size===0&&window.removeEventListener("languagechange",b$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const KV=$.createContext(null);function Qn(){let e=jV();return $.useContext(KV)||e}const UV=Symbol.for("react-aria.i18n.locale"),zV=Symbol.for("react-aria.i18n.strings");let Hs;class ya{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=WV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[UV];if(Hs===void 0){let i=window[zV];if(!i)return null;Hs={};for(let o in i)Hs[o]=new ya({[n]:i[o]},n)}let r=Hs==null?void 0:Hs[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 WV(e,t,n="en-US"){if(t[e])return t[e];let r=HV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function HV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const $$=new Map,x$=new Map;class aS{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 o=this.locale+":"+r,a=$$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),$$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=x$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),x$.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 w$=new WeakMap;function GV(e){let t=w$.get(e);return t||(t=new ya(e),w$.set(e,t)),t}function sS(e,t){return t&&ya.getGlobalDictionaryForPackage(t)||GV(e)}function eo(e,t){let{locale:n}=Qn(),r=sS(e,t);return $.useMemo(()=>new aS(n,r),[n,r])}function cu(e,t){return e-t*Math.floor(e/t)}const uS=1721426;function Wa(e,t,n,r){t=Lc(e,t);let i=t-1,o=-2;return n<=2?o=0:ia(t)&&(o=-1),uS-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function ia(e){return e%4===0&&(e%100!==0||e%400===0)}function Lc(e,t){return e==="BC"?1-t:t}function Xh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const qV={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 dr{fromJulianDay(t){let n=t,r=n-uS,i=Math.floor(r/146097),o=cu(r,146097),a=Math.floor(o/36524),u=cu(o,36524),c=Math.floor(u/1461),d=cu(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Xh(h),y=n-Wa(m,g,1,1),x=2;n<Wa(m,g,3,1)?x=0:ia(g)&&(x=1);let C=Math.floor(((y+x)*12+373)/367),b=n-Wa(m,g,C,1)+1;return new pn(m,g,C,b)}toJulianDay(t){return Wa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return qV[ia(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ia(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 YV={"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 wn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function My(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function lS(e,t){return wn(e,Qh(t))}const ZV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function yb(e,t,n){let r=e.calendar.toJulianDay(e),i=n?ZV[n]:nN(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function cS(e){return bo(Date.now(),e)}function Qh(e){return cr(cS(e))}function dS(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function fS(e,t){return D$(e)-D$(t)}function D$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let ng=null;function Vc(){return ng==null&&(ng=new Intl.DateTimeFormat().resolvedOptions().timeZone),ng}function Nc(e){return e.subtract({days:e.day-1})}function Fy(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function JV(e){return Nc(e.subtract({months:e.month-1}))}function XV(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function QV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function fc(e,t,n){let r=yb(e,t,n);return e.subtract({days:r})}function eN(e,t,n){return fc(e,t,n).add({days:6})}const E$=new Map;function tN(e){if(Intl.Locale){let n=E$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&E$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function nN(e){let t=tN(e);return t&&YV[t]||0}function rN(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((yb(Nc(e),t,n)+r)/7)}function vb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function bb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tu(e){e=Qt(e,new dr);let t=Lc(e.era,e.year);return hS(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function hS(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function ky(e,t){if(t==="UTC")return 0;if(e>0&&t===Vc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=pS(e,t);return hS(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const C$=new Map;function pS(e,t){let n=C$.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"}),C$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.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 S$=864e5;function iN(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>oN(e,t,o))}function oN(e,t,n){let r=pS(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 vo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Tu(r);if(t===Vc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=Lc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Tu(r),o=ky(i-S$,t),a=ky(i+S$,t),u=iN(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function mS(e,t,n="compatible"){return new Date(vo(e,t,n))}function bo(e,t){let n=ky(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new mc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new pn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new pc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function T$(e){return new jc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)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,cs(r),r}function gS(e,t,n){if(e instanceof mc)return e.timeZone===t?e:sN(e,t);let r=vo(e,t,n);return bo(r,t)}function aN(e){let t=Tu(e)-e.offset;return new Date(t)}function sN(e,t){let n=Tu(e)-e.offset;return Qt(bo(n,t),e.calendar)}const Al=36e5;function ep(e,t){let n=e.copy(),r="hour"in n?$S(n,t):0;By(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Iy(n),yS(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,uN(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 o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function By(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Iy(e){for(;e.month<1;)By(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,By(e,1)}function uN(e){for(;e.day<1;)e.month--,Iy(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Iy(e)}function yS(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 cs(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),yS(e)}function $b(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function vS(e,t){return ep(e,$b(t))}function xb(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),cs(n),n}function hc(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),bS(n),n}function lN(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=uf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=uf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=uf(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=uf(e.hour,24),t}function bS(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 uf(e,t){let n=e%t;return n<0&&(n+=t),n}function $S(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,lN(e)}function xS(e,t){let n=e.copy();return $S(n,t),n}function cN(e,t){return xS(e,$b(t))}function wb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=$o(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],cs(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=$o(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=$o(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=$o(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),cs(i),i}function Db(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=$o(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=$o(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=$o(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=$o(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function $o(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function wS(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=ep(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=vo(i,e.timeZone)}else n=Tu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=bo(n,e.timeZone);return Qt(r,e.calendar)}function dN(e,t){return wS(e,$b(t))}function fN(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let y=e.hour>=12;i=y?12:0,o=y?23:11}let a=Di(e),u=Qt(hc(a,{hour:i}),new dr),c=[vo(u,e.timeZone,"earlier"),vo(u,e.timeZone,"later")].filter(y=>bo(y,e.timeZone).day===u.day)[0],d=Qt(hc(a,{hour:o}),new dr),f=[vo(d,e.timeZone,"earlier"),vo(d,e.timeZone,"later")].filter(y=>bo(y,e.timeZone).day===d.day).pop(),h=Tu(e)-e.offset,m=Math.floor(h/Al),g=h%Al;return h=$o(m,n,Math.floor(c/Al),Math.floor(f/Al),r==null?void 0:r.round)*Al+g,Qt(bo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Db(e,t,n,r);case"era":case"year":case"month":case"day":{let i=wb(Di(e),t,n,r),o=vo(i,e.timeZone);return Qt(bo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function hN(e,t,n){let r=Di(e),i=hc(xb(r,t),t);if(i.compare(r)===0)return e;let o=vo(i,e.timeZone,n);return Qt(bo(o,e.timeZone),e.calendar)}const pN=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,mN=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function gN(e){let t=e.match(pN);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new pn(Fi(t[1],0,9999),Fi(t[2],1,12),1);return n.day=Fi(t[3],0,n.calendar.getDaysInMonth(n)),n}function yN(e){let t=e.match(mN);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Fi(t[1],-9999,9999),r=n<1?"BC":"AD",i=new pc(r,n<1?-n+1:n,Fi(t[2],1,12),1,t[4]?Fi(t[4],0,23):0,t[5]?Fi(t[5],0,59):0,t[6]?Fi(t[6],0,59):0,t[7]?Fi(t[7],0,1/0)*1e3:0);return i.day=Fi(t[3],0,i.calendar.getDaysInMonth(i)),i}function Fi(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 DS(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 ES(e){let t=Qt(e,new dr),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 CS(e){return`${ES(e)}T${DS(e)}`}function vN(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function bN(e){return`${CS(e)}${vN(e.offset)}[${e.timeZone}]`}function Eb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var $N=new WeakMap;class pn{copy(){return this.era?new pn(this.calendar,this.era,this.year,this.month,this.day):new pn(this.calendar,this.year,this.month,this.day)}add(t){return ep(this,t)}subtract(t){return vS(this,t)}set(t){return xb(this,t)}cycle(t,n,r){return wb(this,t,n,r)}toDate(t){return mS(this,t)}toString(){return ES(this)}compare(t){return dS(this,t)}constructor(...t){Bc(this,$N,{writable:!0,value:void 0});let[n,r,i,o,a]=Eb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,cs(this)}}var xN=new WeakMap;class jc{copy(){return new jc(this.hour,this.minute,this.second,this.millisecond)}add(t){return xS(this,t)}subtract(t){return cN(this,t)}set(t){return hc(this,t)}cycle(t,n,r){return Db(this,t,n,r)}toString(){return DS(this)}compare(t){return fS(this,t)}constructor(t=0,n=0,r=0,i=0){Bc(this,xN,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,bS(this)}}var wN=new WeakMap;class pc{copy(){return this.era?new pc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new pc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ep(this,t)}subtract(t){return vS(this,t)}set(t){return xb(hc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return wb(this,t,n,r);default:return Db(this,t,n,r)}}toDate(t,n){return mS(this,t,n)}toString(){return CS(this)}compare(t){let n=dS(this,t);return n===0?fS(this,Di(t)):n}constructor(...t){Bc(this,wN,{writable:!0,value:void 0});let[n,r,i,o,a]=Eb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}var DN=new WeakMap;class mc{copy(){return this.era?new mc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new mc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return wS(this,t)}subtract(t){return dN(this,t)}set(t,n){return hN(this,t,n)}cycle(t,n,r){return fN(this,t,n,r)}toDate(){return aN(this)}toString(){return bN(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-gS(t,this.timeZone).toDate().getTime()}constructor(...t){Bc(this,DN,{writable:!0,value:void 0});let[n,r,i,o,a]=Eb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}const du=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],EN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Of=[1867,1911,1925,1988,2018],ea=["meiji","taisho","showa","heisei","reiwa"];function A$(e){const t=du.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?du.length-1:t===0?0:t-1}function rg(e){let t=Of[ea.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new pn(e.year+t,e.month,e.day)}class CN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=A$(n);return new pn(this,ea[r],n.year-Of[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(rg(t))}balanceDate(t){let n=rg(t),r=A$(n);ea[r]!==t.era&&(t.era=ea[r],t.year=n.year-Of[r]),this.constrainDate(t)}constrainDate(t){let n=ea.indexOf(t.era),r=EN[n];if(r!=null){let[i,o,a]=r,u=i-Of[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=du[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return ea}getYearsInEra(t){let n=ea.indexOf(t.era),r=du[n],i=du[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(rg(t))}getMinimumMonthInYear(t){let n=P$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=P$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function P$(e){if(e.year===1){let t=ea.indexOf(e.era);return du[t]}}const SS=-543;class SN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Lc(n.era,n.year);return new pn(this,r-SS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(R$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(R$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function R$(e){let[t,n]=Xh(e.year+SS);return new pn(t,n,e.month,e.day)}const oh=1911;function TS(e){return e.era==="minguo"?e.year+oh:1-e.year+oh}function _$(e){let t=e-oh;return t>0?["minguo",t]:["before_minguo",1-t]}class TN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Lc(n.era,n.year),[i,o]=_$(r);return new pn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(O$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=_$(TS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(O$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-oh}constructor(...t){super(...t),this.identifier="roc"}}function O$(e){let[t,n]=Xh(TS(e));return new pn(t,n,e.month,e.day)}const M$=1948320,F$=[0,31,62,93,124,155,186,216,246,276,306,336];class AN{fromJulianDay(t){let n=t-M$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-F$[a]+1;return new pn(this,r,a+1,u)}toJulianDay(t){let n=M$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=F$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||cu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ig=78,k$=80;class PN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-ig,i=t-Wa(n.era,n.year,1,1),o;i<k$?(r--,o=ia(n.year-1)?31:30,i+=o+155+90+10):(o=ia(n.year)?31:30,i-=k$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new pn(this,r,a,u)}toJulianDay(t){let n=t.year+ig,[r,i]=Xh(n),o,a;return ia(i)?(o=31,a=Wa(r,i,3,21)):(o=30,a=Wa(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&ia(t.year+ig)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ah=1948440,B$=1948439,ei=1300,Gs=1600,RN=460322;function sh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function AS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+sh(t,r,1,1)))/29.5)+1),o=n-sh(t,r,i,1)+1;return new pn(e,r,i,o)}function I$(e){return(14+11*e)%30<11}class Cb{fromJulianDay(t){return AS(this,ah,t)}toJulianDay(t){return sh(ah,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&I$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return I$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class _N extends Cb{fromJulianDay(t){return AS(this,B$,t)}toJulianDay(t){return sh(B$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const ON="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ly,fu;function Mf(e){return RN+fu[e-ei]}function zl(e,t){let n=e-ei,r=1<<11-(t-1);return Ly[n]&r?30:29}function L$(e,t){let n=Mf(e);for(let r=1;r<t;r++)n+=zl(e,r);return n}function V$(e){return fu[e+1-ei]-fu[e-ei]}class MN extends Cb{fromJulianDay(t){let n=t-ah,r=Mf(ei),i=Mf(Gs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Mf(o)+1;let c=V$(o);if(u===c){a=12;break}else if(u<c){let d=zl(o,a);for(a=1;u>d;)u-=d,a++,d=zl(o,a);break}}return new pn(this,o,a,n-L$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Gs?super.toJulianDay(t):ah+L$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Gs?super.getDaysInMonth(t):zl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Gs?super.getDaysInYear(t):V$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ly||(Ly=new Uint16Array(Uint8Array.from(atob(ON),t=>t.charCodeAt(0)).buffer)),!fu){fu=new Uint32Array(Gs-ei+1);let t=0;for(let n=ei;n<=Gs;n++){fu[n-ei]=t;for(let r=1;r<=12;r++)t+=zl(n,r)}}}}const N$=347997,PS=1080,RS=24*PS,FN=29,kN=12*PS+793,BN=FN*RS+kN;function Na(e){return cu(e*7+1,19)<7}function Ff(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return cu(3*(r+1),7)<3&&(r+=1),r}function IN(e){let t=Ff(e-1),n=Ff(e);return Ff(e+1)-n===356?2:n-t===382?1:0}function ec(e){return Ff(e)+IN(e)}function _S(e){return ec(e+1)-ec(e)}function LN(e){let t=_S(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function lf(e,t){if(t>=6&&!Na(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=LN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Na(e)?30:0:30}class VN{fromJulianDay(t){let n=t-N$,r=n*RS/BN,i=Math.floor((19*r+234)/235)+1,o=ec(i),a=Math.floor(n-o);for(;a<1;)i--,o=ec(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=lf(i,u),u++;u--,c-=lf(i,u);let d=a-c;return new pn(this,i,u,d)}toJulianDay(t){let n=ec(t.year);for(let r=1;r<t.month;r++)n+=lf(t.year,r);return n+t.day+N$}getDaysInMonth(t){return lf(t.year,t.month)}getMonthsInYear(t){return Na(t.year)?13:12}getDaysInYear(t){return _S(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Na(n.year)&&!Na(t.year)&&n.month>6?t.month--:!Na(n.year)&&Na(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Vy=1723856,j$=1824665,Ny=5500;function uh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function Sb(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-uh(e,n,1,1))/30),i=t+1-uh(e,n,r,1);return[n,r,i]}function OS(e){return Math.floor(e%4/3)}function MS(e,t){return t%13!==0?30:OS(e)+5}class Tb{fromJulianDay(t){let[n,r,i]=Sb(Vy,t),o="AM";return n<=0&&(o="AA",n+=Ny),new pn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ny),uh(Vy,n,t.month,t.day)}getDaysInMonth(t){return MS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+OS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class NN extends Tb{fromJulianDay(t){let[n,r,i]=Sb(Vy,t);return n+=Ny,new pn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class jN extends Tb{fromJulianDay(t){let[n,r,i]=Sb(j$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new pn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),uh(j$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),MS(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 KN(e){switch(e){case"buddhist":return new SN;case"ethiopic":return new Tb;case"ethioaa":return new NN;case"coptic":return new jN;case"hebrew":return new VN;case"indian":return new PN;case"islamic-civil":return new Cb;case"islamic-tbla":return new _N;case"islamic-umalqura":return new MN;case"japanese":return new CN;case"persian":return new AN;case"roc":return new TN;case"gregory":default:return new dr}}let og=new Map;class ii{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(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return WN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=HN(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=FS(t,n),this.options=n}}const UN={true:{ja:"h11"},false:{}};function FS(e,t={}){if(typeof t.hour12=="boolean"&&zN()){t={...t};let i=UN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(og.has(n))return og.get(n);let r=new Intl.DateTimeFormat(e,t);return og.set(n,r),r}let ag=null;function zN(){return ag==null&&(ag=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ag}let sg=null;function WN(){return sg==null&&(sg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),sg}function HN(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=FS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.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 Ki(e){e=KC(e??{},GN);let{locale:t}=Qn();return $.useMemo(()=>new ii(t,e),[t,e])}function GN(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 ug=new Map,jy=!1;try{jy=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let lh=!1;try{lh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const kS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class BS{format(t){let n="";if(!jy&&this.options.signDisplay!=null?n=YN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!lh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=kS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.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(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!jy&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!lh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=qN(t,n),this.options=n}}function qN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!lh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=kS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(ug.has(i))return ug.get(i);let o=new Intl.NumberFormat(e,t);return ug.set(i,o),o}function YN(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),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const ZN=new RegExp("^.*\\(.*\\).*$"),JN=["latn","arab","hanidec","deva","beng"];class IS{parse(t){return lg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return lg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return lg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const K$=new Map;function lg(e,t,n){let r=U$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of JN)if(i!==r.options.numberingSystem){let o=U$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function U$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=K$.get(n);return r||(r=new XN(e,t),K$.set(n,r)),r}class XN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=cf(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 a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new IS(this.locale,a).parse(new BS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&ZN.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=cf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=cf(t,"."," ")),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=cf(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,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=ej(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 z$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),QN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function ej(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=QN.map(K=>c.formatToParts(K));var m;let g=(m=(i=d.find(K=>K.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",y=(o=f.find(K=>K.type==="plusSign"))===null||o===void 0?void 0:o.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(K=>K.type==="decimal"))===null||a===void 0?void 0:a.value,b=(u=d.find(K=>K.type==="group"))===null||u===void 0?void 0:u.value,v=d.filter(K=>!z$.has(K.type)).map(K=>W$(K.value)),D=h.flatMap(K=>K.filter(L=>!z$.has(L.type)).map(L=>W$(L.value))),T=[...new Set([...v,...D])].sort((K,L)=>L.length-K.length),E=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),M=new Map(A.map((K,L)=>[K,L])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:y,decimal:C,group:b,literals:E,numeral:S,index:K=>String(M.get(K))}}function cf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function W$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tj(e={}){let{locale:t}=Qn();return $.useMemo(()=>new BS(t,e),[t,e])}let cg=new Map;function LS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(cg.has(n))return cg.get(n);let r=new Intl.Collator(t,e);return cg.set(n,r),r}function VS(e){let t=LS({usage:"search",...e}),n=$.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=$.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=$.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return $.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function nj(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:y,type:x="button"}=e,C;n==="button"?C={type:x,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g: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"?y:void 0};let{pressProps:b,isPressed:v}=Ic({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=gb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let T=xt(D,b,Ro(e,{labelable:!0}));return{isPressed:v,buttonProps:xt(C,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var NS={};NS={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 jS={};jS={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 KS={};KS={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 US={};US={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 zS={};zS={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 WS={};WS={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 HS={};HS={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 GS={};GS={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 qS={};qS={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 YS={};YS={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 ZS={};ZS={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 JS={};JS={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 XS={};XS={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 QS={};QS={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 e5={};e5={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 t5={};t5={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 n5={};n5={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 r5={};r5={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 i5={};i5={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 o5={};o5={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 a5={};a5={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 s5={};s5={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 u5={};u5={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 l5={};l5={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 c5={};c5={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 d5={};d5={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 f5={};f5={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 h5={};h5={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 p5={};p5={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 m5={};m5={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 g5={};g5={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 y5={};y5={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 v5={};v5={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 b5={};b5={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 Kc={};Kc={"ar-AE":NS,"bg-BG":jS,"cs-CZ":KS,"da-DK":US,"de-DE":zS,"el-GR":WS,"en-US":HS,"es-ES":GS,"et-EE":qS,"fi-FI":YS,"fr-FR":ZS,"he-IL":JS,"hr-HR":XS,"hu-HU":QS,"it-IT":e5,"ja-JP":t5,"ko-KR":n5,"lt-LT":r5,"lv-LV":i5,"nb-NO":o5,"nl-NL":a5,"pl-PL":s5,"pt-BR":u5,"pt-PT":l5,"ro-RO":c5,"ru-RU":d5,"sk-SK":f5,"sl-SI":h5,"sr-SP":p5,"sv-SE":m5,"tr-TR":g5,"uk-UA":y5,"zh-CN":v5,"zh-TW":b5};function $5(e){return e&&e.__esModule?e.default:e}const Ab=new WeakMap;function gc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function rj(e){let t=eo($5(Kc),"@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 o=Ki({weekday:"long",month:"long",year:"numeric",day:"numeric",era:gc(n)||gc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return $.useMemo(()=>{if(!a&&n&&r)if(wn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Uy(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function Ky(e,t,n,r){let i=eo($5(Kc),"@react-aria/calendar"),o=gc(e)||gc(t),a=Ki({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Ki({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return $.useMemo(()=>{if(wn(e,Nc(e))){if(wn(t,Fy(e)))return a.format(e.toDate(n));if(wn(t,Fy(t)))return r?Uy(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Uy(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Uy(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const x5=7e3;let Xr=null;function hu(e,t="assertive",n=x5){Xr?Xr.announce(e,t,n):(Xr=new oj,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function ij(e){Xr&&Xr.clear(e)}class oj{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=x5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.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 aj(e){return e&&e.__esModule?e.default:e}function w5(e,t){let n=eo(aj(Kc),"@react-aria/calendar"),r=Ro(e),i=Ky(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Ky(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);i$(()=>{t.isFocused||hu(o)},[o]);let a=rj(t);i$(()=>{a&&hu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);Ab.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=$.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=$.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let y=Cu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,y,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function sj(e,t){return w5(e,t)}function uj(e,t,n){let r=w5(e,t),i=$.useRef(!1),o=$.useRef(typeof window<"u"?window:null);return ji(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),ji(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ji(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function lj(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:o}=Qn(),a=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},u=Ky(n,r,t.timeZone,!0),{ariaLabel:c,ariaLabelledBy:d}=Ab.get(t),f=Cu({"aria-label":[c,u].filter(Boolean).join(", "),"aria-labelledby":d}),h=Ki({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:m}=Qn(),g=$.useMemo(()=>{let y=fc(Qh(t.timeZone),m,i);return[...new Array(7).keys()].map(x=>{let b=y.add({days:x}).toDate(t.timeZone);return h.format(b)})},[m,t.timeZone,h,i]);return{gridProps:xt(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:g}}function cj(e){return e&&e.__esModule?e.default:e}function dj(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=Ab.get(t),u=eo(cj(Kc),"@react-aria/calendar"),c=Ki({weekday:"long",day:"numeric",month:"long",year:"numeric",era:gc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&wn(t.value,r));g&&(d=!0),r=KC(r,My);let y=$.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=lS(r,t.timeZone),C=$.useMemo(()=>{let L="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(wn(r,t.value.start)||wn(r,t.value.end))&&(L=a+", "),L+=c.format(y),x?L=u.format(d?"todayDateSelected":"todayDate",{date:L}):d&&(L=u.format("dateSelected",{date:L})),t.minValue&&wn(r,t.minValue)?L+=", "+u.format("minimumDate"):t.maxValue&&wn(r,t.maxValue)&&(L+=", "+u.format("maximumDate")),L},[c,y,u,d,x,r,t,a]),b="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?b=u.format("finishRangeSelectionPrompt"):b=u.format("startRangeSelectionPrompt"));let v=kc(b),D=$.useRef(!1),T=$.useRef(!1),E=$.useRef(void 0),{pressProps:A,isPressed:M}=Ic({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(L){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(L.pointerType==="mouse"||L.pointerType==="touch")){if(t.highlightedRange&&!g){if(wn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(wn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let X=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};L.pointerType==="touch"?E.current=setTimeout(X,200):X()}},onPressEnd(){T.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(L){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(L.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let X=r.add({days:1});t.isInvalid(X)&&(X=r.subtract({days:1})),t.isInvalid(X)||t.setFocusedDate(X)}else L.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=wn(r,t.focusedDate)?0:-1),$.useEffect(()=>{f&&n.current&&(vi(n.current),dc()!=="pointer"&&document.activeElement===n.current&&th(n.current,{containingElement:Yh(n.current)}))},[f,n]);let z=Ki({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),K=$.useMemo(()=>z.formatToParts(y).find(L=>L.type==="day").value,[z,y]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(L){"highlightDate"in t&&(L.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(L){"releasePointerCapture"in L.target&&L.target.releasePointerCapture(L.pointerId)},onContextMenu(L){L.preventDefault()}}),isPressed:M,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:K}}const tp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},D5={...tp,customError:!0,valid:!1},ja={isInvalid:!1,validationDetails:tp,validationErrors:[]},fj=$.createContext({}),Au="__formValidationState"+Date.now();function Uc(e){if(e[Au]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Au];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return hj(e)}function hj(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:D5}:null,d=$.useMemo(()=>{if(!a||i==null)return null;let K=pj(a,i);return H$(K)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=$.useContext(fj),h=$.useMemo(()=>r?Array.isArray(r)?r.flatMap(K=>zy(f[K])):zy(f[r]):[],[f,r]),[m,g]=$.useState(f),[y,x]=$.useState(!1);f!==m&&(g(f),x(!1));let C=$.useMemo(()=>H$(y?[]:h),[y,h]),b=$.useRef(ja),[v,D]=$.useState(ja),T=$.useRef(ja),E=()=>{if(!A)return;M(!1);let K=d||o||b.current;dg(K,T.current)||(T.current=K,D(K))},[A,M]=$.useState(!1);return $.useEffect(E),{realtimeValidation:c||C||d||o||ja,displayValidation:u==="native"?c||C||v:c||C||d||o||v,updateValidation(K){u==="aria"&&!dg(v,K)?D(K):b.current=K},resetValidation(){let K=ja;dg(K,T.current)||(T.current=K,D(K)),u==="native"&&M(!1),x(!0)},commitValidation(){u==="native"&&M(!0),x(!0)}}}function zy(e){return e?Array.isArray(e)?e:[e]:[]}function pj(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return zy(n)}return[]}function H$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:D5}:null}function dg(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 ch(...e){let t=new Set,n=!1,r={...tp};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function E5(e,t,n){let{validationBehavior:r,focus:i}=e;Lt(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(gj(n.current))}});let o=fn(()=>{t.resetValidation()}),a=fn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&yj(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),XC("keyboard")}c.preventDefault()}),u=fn(()=>{t.commitValidation()});$.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function mj(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 gj(e){return{isInvalid:!e.validity.valid,validationDetails:mj(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function yj(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function np(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Er(t);let a=Er(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function rp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=np(e),u=Eu([!!t,!!n,r,i]),c=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const vj=0,bj=100,$j=1;function xj(e){const{isDisabled:t=!1,minValue:n=vj,maxValue:r=bj,numberFormatter:i,step:o=$j,orientation:a="horizontal"}=e;let u=$.useMemo(()=>{let N=(r-n)/10;return N=Tl(N,0,N+o,o),Math.max(N,o)},[o,r,n]),c=$.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let le=ie===0?n:N[ie-1],$e=ie===N.length-1?r:N[ie+1];return Tl(ne,le,$e,o)}),[n,r,o]),d=$.useMemo(()=>c(q$(e.value)),[e.value]),f=$.useMemo(()=>{var N;return c((N=q$(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=Y$(e.value,e.defaultValue,e.onChange),m=Y$(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=Fr(d,f,h),[x,C]=$.useState(new Array(g.length).fill(!1)),b=$.useRef(new Array(g.length).fill(!0)),[v,D]=$.useState(void 0),T=$.useRef(g),E=$.useRef(x);let A=N=>{T.current=N,y(N)},M=N=>{E.current=N,C(N)};function S(N){return(N-n)/(r-n)}function z(N){return N===0?n:g[N-1]}function K(N){return N===g.length-1?r:g[N+1]}function L(N){return b.current[N]}function X(N,ne){b.current[N]=ne}function _(N,ne){if(t||!L(N))return;const ie=z(N),le=K(N);ne=Tl(ne,ie,le,o);let $e=G$(T.current,N,ne);A($e)}function I(N,ne){if(t||!L(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=G$(E.current,N,ne),M(E.current),ie&&!E.current.some(Boolean)&&m(T.current)}function W(N){return i.format(N)}function k(N,ne){_(N,R(ne))}function V(N){return Math.round((N-n)/o)*o+n}function R(N){const ne=N*(r-n)+n;return Su(V(ne),n,r)}function G(N,ne=1){let ie=Math.max(ne,o);_(N,Tl(g[N]+ie,n,r,o))}function U(N,ne=1){let ie=Math.max(ne,o);_(N,Tl(g[N]-ie,n,r,o))}return{values:g,getThumbValue:N=>g[N],setThumbValue:_,setThumbPercent:k,isThumbDragging:N=>x[N],setThumbDragging:I,focusedThumb:v,setFocusedThumb:D,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:z,getThumbMaxValue:K,getPercentValue:R,isThumbEditable:L,setThumbEditable:X,incrementThumb:G,decrementThumb:U,step:o,pageSize:u,orientation:a,isDisabled:t}}function G$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function q$(e){if(e!=null)return Array.isArray(e)?e:[e]}function Y$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const Z$={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 wj(e={}){let{style:t,isFocusable:n}=e,[r,i]=$.useState(!1),{focusWithinProps:o}=Uu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=$.useMemo(()=>r?t:t?{...Z$,...t}:Z$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function Dj(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=wj(e);return $.createElement(n,xt(o,a),t)}const Pb=new WeakMap;function Wy(e,t){let n=Pb.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function Ej(e,t,n){let{labelProps:r,fieldProps:i}=np(e),o=e.orientation==="vertical";var a;Pb.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const f=$.useRef(null),h=u==="rtl",m=$.useRef(null),{moveProps:g}=eS({onMoveStart(){m.current=null},onMove({deltaX:b,deltaY:v}){if(!n.current)return;let{height:D,width:T}=n.current.getBoundingClientRect(),E=o?D:T;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let A=o?v:b;if((o||h)&&(A=-A),m.current+=A,f.current!=null&&n.current){const M=Su(m.current/E,0,1);t.setThumbPercent(f.current,M)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let y=$.useRef(void 0),x=(b,v,D,T)=>{if(n.current&&!e.isDisabled&&t.values.every((E,A)=>!t.isThumbDragging(A))){let{height:E,width:A,top:M,left:S}=n.current.getBoundingClientRect(),z=o?E:A,_=((o?T:D)-(o?M:S))/z;(u==="rtl"||o)&&(_=1-_);let I=t.getPercentValue(_),W,k=t.values.findIndex(V=>I-V<0);if(k===0)W=k;else if(k===-1)W=t.values.length-1;else{let V=t.values[k-1],R=t.values[k];Math.abs(V-I)<Math.abs(R-I)?W=k-1:W=k}W>=0&&t.isThumbEditable(W)?(b.preventDefault(),f.current=W,t.setFocusedThumb(W),y.current=v,t.setThumbDragging(f.current,!0),t.setThumbValue(W,I),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=b=>{var v,D;((D=b.pointerId)!==null&&D!==void 0?D:(v=b.changedTouches)===null||v===void 0?void 0:v[0].identifier)===y.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var b;(b=document.getElementById(Wy(t,0)))===null||b===void 0||b.focus(),XC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(b){b.button!==0||b.altKey||b.ctrlKey||b.metaKey||x(b,void 0,b.clientX,b.clientY)},onPointerDown(b){b.pointerType==="mouse"&&(b.button!==0||b.altKey||b.ctrlKey||b.metaKey)||x(b,b.pointerId,b.clientX,b.clientY)},onTouchStart(b){x(b,b.changedTouches[0].identifier,b.changedTouches[0].clientX,b.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((b,v)=>Wy(t,v)).join(" "),"aria-live":"off"}}}function Cj(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:y}=Ku(),x=Pb.get(t);var C;const{labelProps:b,fieldProps:v}=np({...e,id:Wy(t,n),"aria-labelledby":`${x.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],T=$.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;$.useEffect(()=>{E&&T()},[E,T]);let A=m==="rtl",M=$.useRef(null),{keyboardProps:S}=QC({onKeyDown(k){let{getThumbMaxValue:V,getThumbMinValue:R,decrementThumb:G,incrementThumb:U,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(k.key)){k.continuePropagation();return}switch(k.preventDefault(),ne(n,!0),k.key){case"PageUp":U(n,ie);break;case"PageDown":G(n,ie);break;case"Home":N(n,R(n));break;case"End":N(n,V(n));break}ne(n,!1)}}),{moveProps:z}=eS({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:k,deltaY:V,pointerType:R,shiftKey:G}){const{getThumbPercent:U,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:le,pageSize:$e}=t;if(!a.current)return;let{width:De,height:Ee}=a.current.getBoundingClientRect(),Y=h?Ee:De;if(M.current==null&&(M.current=U(n)*Y),R==="keyboard")k>0&&A||k<0&&!A||V>0?ne(n,G?$e:le):ie(n,G?$e:le);else{let he=h?V:k;(h||A)&&(he=-he),M.current+=he,N(n,Su(M.current/Y,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:K}=gb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let L=$.useRef(void 0),X=k=>{T(),L.current=k,t.setThumbDragging(n,!0),g(window,"mouseup",_,!1),g(window,"touchend",_,!1),g(window,"pointerup",_,!1)},_=k=>{var V,R;((R=k.pointerId)!==null&&R!==void 0?R:(V=k.changedTouches)===null||V===void 0?void 0:V[0].identifier)===L.current&&(T(),t.setThumbDragging(n,!1),y(window,"mouseup",_,!1),y(window,"touchend",_,!1),y(window,"pointerup",_,!1))},I=t.getThumbPercent(n);(h||m==="rtl")&&(I=1-I);let W=f?{}:xt(S,z,{onMouseDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||X()},onPointerDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||X(k.pointerId)},onTouchStart:k=>{X(k.changedTouches[0].identifier)}});return db(u,D,k=>{t.setThumbValue(n,k)}),{inputProps:xt(K,v,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:k=>{t.setThumbValue(n,parseFloat(k.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function Sj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=gb(e,t),h=Uc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:y}=h.displayValidation,{labelProps:x,fieldProps:C,descriptionProps:b,errorMessageProps:v}=rp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Ro(e,{labelable:!0});const T={type:a,pattern:e.pattern};return db(t,c,d),E5(e,h,t),$.useEffect(()=>{if(t.current instanceof fa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,inputProps:xt(D,n==="input"?T:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||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:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,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,...f,...C}),descriptionProps:b,errorMessageProps:v,isInvalid:m,validationErrors:g,validationDetails:y}}var C5={};C5={Empty:"فارغ"};var S5={};S5={Empty:"Изпразни"};var T5={};T5={Empty:"Prázdné"};var A5={};A5={Empty:"Tom"};var P5={};P5={Empty:"Leer"};var R5={};R5={Empty:"Άδειο"};var _5={};_5={Empty:"Empty"};var O5={};O5={Empty:"Vacío"};var M5={};M5={Empty:"Tühjenda"};var F5={};F5={Empty:"Tyhjä"};var k5={};k5={Empty:"Vide"};var B5={};B5={Empty:"ריק"};var I5={};I5={Empty:"Prazno"};var L5={};L5={Empty:"Üres"};var V5={};V5={Empty:"Vuoto"};var N5={};N5={Empty:"空"};var j5={};j5={Empty:"비어 있음"};var K5={};K5={Empty:"Tuščias"};var U5={};U5={Empty:"Tukšs"};var z5={};z5={Empty:"Tom"};var W5={};W5={Empty:"Leeg"};var H5={};H5={Empty:"Pusty"};var G5={};G5={Empty:"Vazio"};var q5={};q5={Empty:"Vazio"};var Y5={};Y5={Empty:"Gol"};var Z5={};Z5={Empty:"Не заполнено"};var J5={};J5={Empty:"Prázdne"};var X5={};X5={Empty:"Prazen"};var Q5={};Q5={Empty:"Prazno"};var e2={};e2={Empty:"Tomt"};var t2={};t2={Empty:"Boş"};var n2={};n2={Empty:"Пусто"};var r2={};r2={Empty:"空"};var i2={};i2={Empty:"空白"};var o2={};o2={"ar-AE":C5,"bg-BG":S5,"cs-CZ":T5,"da-DK":A5,"de-DE":P5,"el-GR":R5,"en-US":_5,"es-ES":O5,"et-EE":M5,"fi-FI":F5,"fr-FR":k5,"he-IL":B5,"hr-HR":I5,"hu-HU":L5,"it-IT":V5,"ja-JP":N5,"ko-KR":j5,"lt-LT":K5,"lv-LV":U5,"nb-NO":z5,"nl-NL":W5,"pl-PL":H5,"pt-BR":G5,"pt-PT":q5,"ro-RO":Y5,"ru-RU":Z5,"sk-SK":J5,"sl-SI":X5,"sr-SP":Q5,"sv-SE":e2,"tr-TR":t2,"uk-UA":n2,"zh-CN":r2,"zh-TW":i2};function Tj(e){return e&&e.__esModule?e.default:e}function Aj(e){const t=$.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:y}=e;const x=eo(Tj(o2),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);$.useEffect(()=>()=>C(),[]);let b=L=>{if(!(L.ctrlKey||L.metaKey||L.shiftKey||L.altKey||u))switch(L.key){case"PageUp":if(f){L.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(L.preventDefault(),d==null||d());break;case"PageDown":if(m){L.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(L.preventDefault(),h==null||h());break;case"Home":g&&(L.preventDefault(),g==null||g());break;case"End":y&&(L.preventDefault(),y==null||y());break}},v=$.useRef(!1),D=()=>{v.current=!0},T=()=>{v.current=!1},E=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");$.useEffect(()=>{v.current&&(ij("assertive"),hu(E,"assertive"))},[E]);const A=fn(L=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&A(60)},L)}),M=fn(L=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&M(60)},L)});let S=L=>{L.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:K}=Ku();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:b,onFocus:D,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),z(window,"contextmenu",S)},onPressEnd:()=>{C(),K()},onFocus:D,onBlur:T},decrementButtonProps:{onPressStart:()=>{M(400),z(window,"contextmenu",S)},onPressEnd:()=>{C(),K()},onFocus:D,onBlur:T}}}var a2={};a2={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 s2={};s2={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 u2={};u2={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 l2={};l2={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 c2={};c2={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 d2={};d2={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 f2={};f2={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 h2={};h2={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 p2={};p2={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 m2={};m2={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 g2={};g2={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 y2={};y2={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 v2={};v2={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 b2={};b2={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 $2={};$2={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 x2={};x2={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 w2={};w2={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 D2={};D2={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 E2={};E2={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 C2={};C2={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 S2={};S2={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 T2={};T2={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 A2={};A2={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 P2={};P2={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 R2={};R2={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 _2={};_2={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 O2={};O2={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 M2={};M2={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 F2={};F2={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 k2={};k2={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 B2={};B2={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 I2={};I2={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 L2={};L2={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 V2={};V2={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 N2={};N2={"ar-AE":a2,"bg-BG":s2,"cs-CZ":u2,"da-DK":l2,"de-DE":c2,"el-GR":d2,"en-US":f2,"es-ES":h2,"et-EE":p2,"fi-FI":m2,"fr-FR":g2,"he-IL":y2,"hr-HR":v2,"hu-HU":b2,"it-IT":$2,"ja-JP":x2,"ko-KR":w2,"lt-LT":D2,"lv-LV":E2,"nb-NO":C2,"nl-NL":S2,"pl-PL":T2,"pt-BR":A2,"pt-PT":P2,"ro-RO":R2,"ru-RU":_2,"sk-SK":O2,"sl-SI":M2,"sr-SP":F2,"sv-SE":k2,"tr-TR":B2,"uk-UA":I2,"zh-CN":L2,"zh-TW":V2};const Ui={top:"top",bottom:"top",left:"left",right:"left"},dh={top:"bottom",bottom:"top",left:"right",right:"left"},Pj={top:"left",left:"top"},Hy={top:"height",left:"width"},j2={width:"totalWidth",height:"totalHeight"},df={};let Tn=typeof document<"u"?window.visualViewport:null;function J$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=y.scrollTop||e.scrollTop,u.left=y.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=pu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(lb()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function Rj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function X$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Hy[e]],f=r.scroll[Ui[e]]+o,h=d+r.scroll[Ui[e]]-o,m=t-c+a[e]-r[Ui[e]],g=t-c+n+a[e]-r[Ui[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function _j(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 Q$(e){if(df[e])return df[e];let[t,n]=e.split(" "),r=Ui[t]||"right",i=Pj[r];Ui[n]||(n="center");let o=Hy[r],a=Hy[i];return df[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},df[e]}function fg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:y,crossSize:x}=r,C={};var b;C[g]=(b=e[g])!==null&&b!==void 0?b:0;var v,D,T,E;h==="center"?C[g]+=(((v=e[x])!==null&&v!==void 0?v:0)-((D=n[x])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((T=e[x])!==null&&T!==void 0?T:0)-((E=n[x])!==null&&E!==void 0?E:0)),C[g]+=o;const A=e[g]-n[x]+c+d,M=e[g]+e[x]-c-d;if(C[g]=Su(C[g],A,M),f===m){const S=u?a[y]:t[j2[y]];C[dh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[y]+i);return C}function Oj(e,t,n,r,i,o,a,u){const c=r?n.height:t[j2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,y,x,C;let b=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-(((x=i.top)!==null&&x!==void 0?x:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,b)}function ex(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[dh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[dh[u]]-i)}function Mj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,y,x){let C=Q$(e),{size:b,crossAxis:v,crossSize:D,placement:T,crossPlacement:E}=C,A=fg(t,u,n,C,f,h,d,m,y,x),M=f,S=ex(u,d,t,i,o+f,C);if(a&&r[b]>S){let le=Q$(`${dh[T]} ${E}`),$e=fg(t,u,n,le,f,h,d,m,y,x);ex(u,d,t,i,o+f,le)>S&&(C=le,A=$e,M=f)}let z="bottom";C.axis==="top"?C.placement==="top"?z="top":C.placement==="bottom"&&(z="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?z="bottom":C.crossPlacement==="bottom"&&(z="top"));let K=X$(v,A[v],n[D],u,c,o,d);A[v]+=K;let L=Oj(A,u,d,m,i,o,n.height,z);g&&g<L&&(L=g),n.height=Math.min(n.height,L),A=fg(t,u,n,C,M,h,d,m,y,x),K=X$(v,A[v],n[D],u,c,o,d),A[v]+=K;let X={},_=t[v]+.5*t[D]-A[v]-i[Ui[v]];const I=y/2+x;var W,k,V,R;const G=Ui[v]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((k=i.right)!==null&&k!==void 0?k:0):((V=i.top)!==null&&V!==void 0?V:0)+((R=i.bottom)!==null&&R!==void 0?R:0),U=n[D]-G-y/2-x,N=t[v]+y/2-(A[v]+i[Ui[v]]),ne=t[v]+t[D]-y/2-(A[v]+i[Ui[v]]),ie=Su(_,N,ne);return X[v]=Su(ie,I,U),{position:A,maxHeight:L,arrowOffsetLeft:X.left,arrowOffsetTop:X.top,placement:C.placement}}function Fj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?kj(r):document.documentElement,y=g===document.documentElement;const x=window.getComputedStyle(g).position;let C=!!x&&x!=="static",b=y?pu(n):tx(n,g);if(!y){let{marginTop:X,marginLeft:_}=window.getComputedStyle(n);b.top+=parseInt(X,10)||0,b.left+=parseInt(_,10)||0}let v=pu(r),D=_j(r);var T,E;v.width+=((T=D.left)!==null&&T!==void 0?T:0)+((E=D.right)!==null&&E!==void 0?E:0);var A,M;v.height+=((A=D.top)!==null&&A!==void 0?A:0)+((M=D.bottom)!==null&&M!==void 0?M:0);let S=Rj(i),z=J$(u),K=J$(g),L=u.tagName==="BODY"?pu(g):tx(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(K.scroll.top=0,K.scroll.left=0),Mj(t,b,v,S,D,o,a,z,K,L,c,d,C,f,h,m)}function pu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function tx(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=pu(e);let i=pu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function kj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!nx(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!nx(t);)t=t.parentElement;return t||document.documentElement}function nx(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 K2=new WeakMap;function Bj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;$.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||K2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function Ij(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:y,maxHeight:x,arrowBoundaryOffset:C=0}=e,[b,v]=$.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,x,C,n],T=$.useRef(ln==null?void 0:ln.scale);$.useEffect(()=>{g&&(T.current=ln==null?void 0:ln.scale)},[g]);let E=$.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==T.current)return;let K=null;if(o.current&&o.current.contains(document.activeElement)){var L;let R=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),G=o.current.getBoundingClientRect();var X;if(K={type:"top",offset:((X=R==null?void 0:R.top)!==null&&X!==void 0?X:0)-G.top},K.offset>G.height/2){K.type="bottom";var _;K.offset=((_=R==null?void 0:R.bottom)!==null&&_!==void 0?_:0)-G.bottom}}let I=i.current;if(!x&&i.current){var W;I.style.top="0px",I.style.bottom="";var k;I.style.maxHeight=((k=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&k!==void 0?k:window.innerHeight)+"px"}let V=Fj({placement:Vj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:x,arrowSize:n,arrowBoundaryOffset:C});if(V.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(V.position).forEach(R=>I.style[R]=V.position[R]+"px"),I.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"",K&&document.activeElement&&o.current){let R=document.activeElement.getBoundingClientRect(),G=o.current.getBoundingClientRect(),U=R[K.type]-G[K.type];o.current.scrollTop+=U-K.offset}v(V)}},D);Lt(E,D),Lj(E),a$({ref:i,onResize:E}),a$({ref:r,onResize:E});let A=$.useRef(!1);Lt(()=>{let K,L=()=>{A.current=!0,clearTimeout(K),K=setTimeout(()=>{A.current=!1},500),E()},X=()=>{A.current&&L()};return ln==null||ln.addEventListener("resize",L),ln==null||ln.addEventListener("scroll",X),()=>{ln==null||ln.removeEventListener("resize",L),ln==null||ln.removeEventListener("scroll",X)}},[E]);let M=$.useCallback(()=>{A.current||y==null||y()},[y,A]);Bj({triggerRef:r,isOpen:g,onClose:y&&M});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...b==null?void 0:b.position,maxHeight:(S=b==null?void 0:b.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=b==null?void 0:b.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:E}}function Lj(e){Lt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Vj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const mo=[];function Nj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;$.useEffect(()=>(i&&mo.push(t),()=>{let y=mo.indexOf(t);y>=0&&mo.splice(y,1)}),[i,t]);let c=()=>{mo[mo.length-1]===t&&n&&n()},d=y=>{(!u||u(y.target))&&mo[mo.length-1]===t&&(y.stopPropagation(),y.preventDefault())},f=y=>{(!u||u(y.target))&&(mo[mo.length-1]===t&&(y.stopPropagation(),y.preventDefault()),c())},h=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),c())};wV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Uu({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||_V(y.relatedTarget)||(!u||u(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function jj(e,t,n){let{type:r}=e,{isOpen:i}=t;$.useEffect(()=>{n&&n.current&&K2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Er();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const hg=typeof document<"u"&&window.visualViewport,Kj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ff=0,pg;function Uj(e={}){let{isDisabled:t}=e;Lt(()=>{if(!t)return ff++,ff===1&&(Fc()?pg=Wj():pg=zj()),()=>{ff--,ff===0&&pg()}},[t])}function zj(){return as(Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"))}function Wj(){let e,t,n=d=>{e=Yh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qs(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},o=d=>{let f=d.target;Hj(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",hg&&(hg.height<window.innerHeight?requestAnimationFrame(()=>{rx(f)}):hg.addEventListener("resize",()=>rx(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=as(Pl(window,"scroll",d),Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=as(Pl(document,"touchstart",n,{passive:!1,capture:!0}),Pl(document,"touchmove",r,{passive:!1,capture:!0}),Pl(document,"touchend",i,{passive:!1,capture:!0}),Pl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function Qs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Pl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function rx(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Yh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function Hj(e){return e instanceof HTMLInputElement&&!Kj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Rl=new WeakMap,Yr=[];function U2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Rl.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Rl.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Rl.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Rl.delete(c)):Rl.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function Gj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=Nj({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=Ij({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return Uj({isDisabled:i||!t.isOpen}),Lt(()=>{if(t.isOpen&&!i&&r.current)return U2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const qj=$.createContext({});function Yj(){var e;return(e=$.useContext(qj))!==null&&e!==void 0?e:{}}const z2=$.createContext(null);function Zj(e){let t=sb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=$.useState(!1),a=$.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Yj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=$.createElement(SV,{restoreFocus:!0,contain:i&&!r},c)),c=$.createElement(z2.Provider,{value:a},$.createElement(pV,null,c)),sa.createPortal(c,n)}function Jj(){let e=$.useContext(z2),t=e==null?void 0:e.setContain;Lt(()=>{t==null||t(!0)},[t])}const ip=new WeakMap;function Xj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function W2(e,t){let n=ip.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Xj(t)}`}function Gy(e){return Rf()?e.altKey:e.ctrlKey}const Qj=1e3;function eK(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=$.useRef({search:"",timeout:void 0}).current,o=a=>{let u=tK(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Qj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function tK(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function H2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:y="action"}=e,{direction:x}=Qn(),C=qh(),b=_=>{var I;if(_.altKey&&_.key==="Tab"&&_.preventDefault(),!(!((I=r.current)===null||I===void 0)&&I.contains(_.target)))return;const W=(Y,he)=>{if(Y!=null){if(t.isLink(Y)&&y==="selection"&&c&&!Gy(_)){var ye;sa.flushSync(()=>{t.setFocusedKey(Y,he)});let fe=(ye=g.current)===null||ye===void 0?void 0:ye.querySelector(`[data-key="${CSS.escape(Y.toString())}"]`),ae=t.getItemProps(Y);fe&&C.open(fe,_,ae.href,ae.routerOptions);return}if(t.setFocusedKey(Y,he),t.isLink(Y)&&y==="override")return;_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):c&&!Gy(_)&&t.replaceSelection(Y)}};switch(_.key){case"ArrowDown":if(n.getKeyBelow){var k,V,R;let Y=t.focusedKey!=null?(k=n.getKeyBelow)===null||k===void 0?void 0:k.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);Y==null&&o&&(Y=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n,t.focusedKey)),Y!=null&&(_.preventDefault(),W(Y))}break;case"ArrowUp":if(n.getKeyAbove){var G,U,N;let Y=t.focusedKey!=null?(G=n.getKeyAbove)===null||G===void 0?void 0:G.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n);Y==null&&o&&(Y=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),Y!=null&&(_.preventDefault(),W(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,le;let Y=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;Y==null&&o&&(Y=x==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(le=n.getLastKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Y!=null&&(_.preventDefault(),W(Y,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var $e,De,Ee;let Y=t.focusedKey!=null?($e=n.getKeyRightOf)===null||$e===void 0?void 0:$e.call(n,t.focusedKey):null;Y==null&&o&&(Y=x==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ee=n.getFirstKey)===null||Ee===void 0?void 0:Ee.call(n,t.focusedKey)),Y!=null&&(_.preventDefault(),W(Y,x==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let Y=n.getFirstKey(t.focusedKey,Zs(_));t.setFocusedKey(Y),Y!=null&&(Zs(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):c&&t.replaceSelection(Y))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&_.shiftKey)return;_.preventDefault();let Y=n.getLastKey(t.focusedKey,Zs(_));t.setFocusedKey(Y),Y!=null&&(Zs(_)&&_.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):c&&t.replaceSelection(Y))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Y=n.getKeyPageBelow(t.focusedKey);Y!=null&&(_.preventDefault(),W(Y))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Y=n.getKeyPageAbove(t.focusedKey);Y!=null&&(_.preventDefault(),W(Y))}break;case"a":Zs(_)&&t.selectionMode==="multiple"&&u!==!0&&(_.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(_.stopPropagation(),_.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(_.shiftKey)r.current.focus();else{let Y=wr(r.current,{tabbable:!0}),he,ye;do ye=Y.lastChild(),ye&&(he=ye);while(ye);he&&!he.contains(document.activeElement)&&vi(he)}break}}},v=$.useRef({top:0,left:0});ji(g,"scroll",m?void 0:()=>{var _,I,W,k;v.current={top:(W=(_=g.current)===null||_===void 0?void 0:_.scrollTop)!==null&&W!==void 0?W:0,left:(k=(I=g.current)===null||I===void 0?void 0:I.scrollLeft)!==null&&k!==void 0?k:0}});let D=_=>{if(t.isFocused){_.currentTarget.contains(_.target)||t.setFocused(!1);return}if(_.currentTarget.contains(_.target)){if(t.setFocused(!0),t.focusedKey==null){var I,W;let R=U=>{U!=null&&(t.setFocusedKey(U),c&&t.replaceSelection(U))},G=_.relatedTarget;var k,V;G&&_.currentTarget.compareDocumentPosition(G)&Node.DOCUMENT_POSITION_FOLLOWING?R((k=t.lastSelectedKey)!==null&&k!==void 0?k:(I=n.getLastKey)===null||I===void 0?void 0:I.call(n)):R((V=t.firstSelectedKey)!==null&&V!==void 0?V:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!m&&g.current&&(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&g.current){let R=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);R&&(R.contains(document.activeElement)||vi(R),dc()==="keyboard"&&th(R,{containingElement:r.current}))}}},T=_=>{_.currentTarget.contains(_.relatedTarget)||t.setFocused(!1)},E=$.useRef(!1);ji(r,iV,f?_=>{let{detail:I}=_;_.stopPropagation(),t.setFocused(!0),(I==null?void 0:I.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=fn(()=>{var _,I;let W=(I=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&I!==void 0?I:null;if(W==null){var k;(k=r.current)===null||k===void 0||k.dispatchEvent(new CustomEvent(UC,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});o$(()=>{E.current&&A()},[t.collection,A]);let M=fn(()=>{t.collection.size>0&&(E.current=!1)});o$(()=>{M()},[t.focusedKey,M]),ji(r,rV,f?_=>{_.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=$.useRef(i);$.useEffect(()=>{if(S.current){var _,I;let V=null;var W;i==="first"&&(V=(W=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n))!==null&&W!==void 0?W:null);var k;i==="last"&&(V=(k=(I=n.getLastKey)===null||I===void 0?void 0:I.call(n))!==null&&k!==void 0?k:null);let R=t.selectedKeys;if(R.size){for(let G of R)if(t.canSelectItem(G)){V=G;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!f&&r.current&&ls(r.current)}},[]);let z=$.useRef(t.focusedKey);$.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||S.current)&&g.current&&r.current){let _=dc(),I=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!I)return;(_==="keyboard"||S.current)&&(jC(g.current,I),_!=="virtual"&&th(I,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&z.current!=null&&r.current&&ls(r.current),z.current=t.focusedKey,S.current=!1}),ji(r,"react-aria-focus-scope-restore",_=>{_.preventDefault(),t.setFocused(!0)});let K={onKeyDown:b,onFocus:D,onBlur:T,onMouseDown(_){g.current===_.target&&_.preventDefault()}},{typeSelectProps:L}=eK({keyboardDelegate:n,selectionManager:t});d||(K=xt(L,K));let X;return f?X=-1:X=t.focusedKey==null?0:-1,{collectionProps:{...K,tabIndex:X}}}function nK(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:u,isDisabled:c,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:h="action"}=e,m=qh();t=Er(t);let g=R=>{if(R.pointerType==="keyboard"&&Gy(R))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let G=n.getItemProps(r);m.open(i.current,R,G.href,G.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):R&&R.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||R&&(Zs(R)||R.pointerType==="touch"||R.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};$.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!a)u?u():document.activeElement!==i.current&&i.current&&ls(i.current);else{var G;let U=new CustomEvent(UC,{cancelable:!0,bubbles:!0});(G=i.current)===null||G===void 0||G.dispatchEvent(U)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),c=c||n.isDisabled(r);let y={};!a&&!c?y={tabIndex:r===n.focusedKey?0:-1,onFocus(R){R.target===i.current&&n.setFocusedKey(r)}}:c&&(y.onMouseDown=R=>{R.preventDefault()});let x=n.isLink(r)&&h==="override",C=n.isLink(r)&&h!=="selection"&&h!=="none",b=!c&&n.canSelectItem(r)&&!x,v=(d||C)&&!c,D=v&&(n.selectionBehavior==="replace"?!b:!b||n.isEmpty),T=v&&b&&n.selectionBehavior==="replace",E=D||T,A=$.useRef(null),M=E&&b,S=$.useRef(!1),z=$.useRef(!1),K=R=>{if(d&&d(),C&&i.current){let G=n.getItemProps(r);m.open(i.current,R,G.href,G.routerOptions)}},L={};o?(L.onPressStart=R=>{A.current=R.pointerType,S.current=M,R.pointerType==="keyboard"&&(!E||ox())&&g(R)},f?(L.onPressUp=D?void 0:R=>{R.pointerType==="mouse"&&b&&g(R)},L.onPress=D?K:R=>{R.pointerType!=="keyboard"&&R.pointerType!=="mouse"&&b&&g(R)}):L.onPress=R=>{if(D||T&&R.pointerType!=="mouse"){if(R.pointerType==="keyboard"&&!ix())return;K(R)}else R.pointerType!=="keyboard"&&b&&g(R)}):(L.onPressStart=R=>{A.current=R.pointerType,S.current=M,z.current=D,b&&(R.pointerType==="mouse"&&!D||R.pointerType==="keyboard"&&(!v||ox()))&&g(R)},L.onPress=R=>{(R.pointerType==="touch"||R.pointerType==="pen"||R.pointerType==="virtual"||R.pointerType==="keyboard"&&E&&ix()||R.pointerType==="mouse"&&z.current)&&(E?K(R):b&&g(R))}),y["data-key"]=r,L.preventFocusOnPress=a;let{pressProps:X,isPressed:_}=Ic(L),I=T?R=>{A.current==="mouse"&&(R.stopPropagation(),R.preventDefault(),K(R))}:void 0,{longPressProps:W}=tS({isDisabled:!M,onLongPress(R){R.pointerType==="touch"&&(g(R),n.setSelectionBehavior("toggle"))}}),k=R=>{A.current==="touch"&&S.current&&R.preventDefault()},V=n.isLink(r)?R=>{ss.isOpening||R.preventDefault()}:void 0;return{itemProps:xt(y,b||D?X:{},M?W:{},{onDoubleClick:I,onDragStartCapture:k,onClick:V,id:t}),isPressed:_,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:c,allowsSelection:b,hasAction:E}}function ix(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ox(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class ax{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.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,o;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.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class G2{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,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&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&&!cc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&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&&!cc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&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 o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,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 ax(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 ax(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function rK(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=LS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=$.useMemo(()=>o||new G2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=H2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function iK(e,t,n){let r=Ro(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=rK({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Uu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Er(e.id);ip.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=np({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function q2(e){return null}q2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&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:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:oK(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];$.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function oK(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&$.Children.count(e.children)>0)}let aK=q2;class sK{build(t,n){return this.context=n,sx(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if($.isValidElement(n)&&n.type===$.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 o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];$.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if($.isValidElement(t.element)&&t.element.type===$.Fragment){let C=[];$.Children.forEach(t.element.props.children,v=>{C.push(v)});var o;let b=(o=t.index)!==null&&o!==void 0?o:0;for(const v of C)yield*this.getFullNode({element:v,index:b++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if($.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let T=a.type;throw new Error(`Unknown element <${T}> in collection.`)}let b=C.getCollectionNode(a.props,this.context);var u;let v=(u=t.index)!==null&&u!==void 0?u:0,D=b.next();for(;!D.done&&D.value;){let T=D.value;t.index=v;var c;let E=(c=T.key)!==null&&c!==void 0?c:null;E==null&&(E=T.element?null:this.getKey(a,t,n,r));let M=[...this.getFullNode({...T,key:E,index:v,wrapper:uK(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${a.key}`:a.key,i)];for(let S of M){var d,f;S.value=(f=(d=T.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${mg(S.type)}> in <${mg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${mg(t.type)}> is supported.`);v++,yield S}D=b.next(M)}return}if(t.key==null||t.type==null)return;let m=this;var g,y;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:sx(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${x.key}${b.key}`);let v=m.getFullNode({...b,index:C},m.getChildState(n,b),x.key,x);for(let D of v)C++,yield D}})};yield x}constructor(){this.cache=new WeakMap}}function sx(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 uK(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function mg(e){return e[0].toUpperCase()+e.slice(1)}function lK(e,t,n){let r=$.useMemo(()=>new sK,[]),{children:i,items:o,collection:a}=e;return $.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function op(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function cK(e){return dK(e)}function dK(e,t){for(let n of e)return n}function gg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...ux(e,t),t],i=[...ux(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function ux(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 lx=new WeakMap;function Y2(e){let t=lx.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(op(o,e)):n++};return r(e),lx.set(e,n),n}function fK(e,t,n){var r,i;let{key:o}=e,a=ip.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let y=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var x;let C=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x:a==null?void 0:a.shouldUseVirtualFocus;var b;let v=(b=e.isVirtualized)!==null&&b!==void 0?b:a==null?void 0:a.isVirtualized,D=Eu(),T=Eu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};So()&&lb()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=T);let A=t.collection.getItem(o);if(v){let V=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(V)?void 0:V+1,E["aria-setsize"]=Y2(t.collection)}let M=a!=null&&a.onAction?()=>{var V;return a==null||(V=a.onAction)===null||V===void 0?void 0:V.call(a,o)}:void 0,S=W2(t,o),{itemProps:z,isPressed:K,isFocused:L,hasAction:X,allowsSelection:_}=nK({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&y,isVirtualized:v,shouldUseVirtualFocus:C,isDisabled:c,onAction:M||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?as(A==null||(i=A.props)===null||i===void 0?void 0:i.onAction,M):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:S}),{hoverProps:I}=xV({isDisabled:c||!y,onHoverStart(){h$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Ro(A==null?void 0:A.props);delete W.id;let k=XL(A==null?void 0:A.props);return{optionProps:{...E,...xt(W,z,I,k),id:S},labelProps:{id:D},descriptionProps:{id:T},isFocused:L,isFocusVisible:L&&h$(),isSelected:f,isDisabled:c,isPressed:K,allowsSelection:_,hasAction:X}}var Z2={};Z2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var J2={};J2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var X2={};X2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Q2={};Q2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var eT={};eT={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var tT={};tT={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var nT={};nT={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var rT={};rT={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var iT={};iT={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var oT={};oT={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var aT={};aT={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var sT={};sT={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var uT={};uT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var lT={};lT={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var cT={};cT={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var dT={};dT={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var fT={};fT={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var hT={};hT={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var pT={};pT={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var mT={};mT={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var gT={};gT={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var yT={};yT={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var vT={};vT={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var bT={};bT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var $T={};$T={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var xT={};xT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var wT={};wT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var DT={};DT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var ET={};ET={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var CT={};CT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ST={};ST={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var TT={};TT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var AT={};AT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var PT={};PT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var RT={};RT={"ar-AE":Z2,"bg-BG":J2,"cs-CZ":X2,"da-DK":Q2,"de-DE":eT,"el-GR":tT,"en-US":nT,"es-ES":rT,"et-EE":iT,"fi-FI":oT,"fr-FR":aT,"he-IL":sT,"hr-HR":uT,"hu-HU":lT,"it-IT":cT,"ja-JP":dT,"ko-KR":fT,"lt-LT":hT,"lv-LV":pT,"nb-NO":mT,"nl-NL":gT,"pl-PL":yT,"pt-BR":vT,"pt-PT":bT,"ro-RO":$T,"ru-RU":xT,"sk-SK":wT,"sl-SI":DT,"sr-SP":ET,"sv-SE":CT,"tr-TR":ST,"uk-UA":TT,"zh-CN":AT,"zh-TW":PT};function hK(e){return e&&e.__esModule?e.default:e}function pK(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Er(),{triggerProps:u,overlayProps:c}=jj({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=eo(hK(RT),"@react-aria/menu"),{longPressProps:h}=tS({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function mK(e){return e&&e.__esModule?e.default:e}function gK(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=$.useRef(null);n=n??h;let m=eo(mK(N2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:y}=pK({type:"listbox",isDisabled:f||d},t,n);ip.set(t,{id:y.id});let{collection:x}=t,{disabledKeys:C}=t.selectionManager,b=$.useMemo(()=>a||new G2({collection:x,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,x,C,o]),{collectionProps:v}=H2({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=qh(),T=fe=>{if(!fe.nativeEvent.isComposing)switch(fe.key){case"Enter":case"Tab":if(t.isOpen&&fe.key==="Enter"&&fe.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ae=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(fe.key==="Enter"&&ae instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(ae,fe,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&fe.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}},E=fe=>{var ae;let Fe=(n==null?void 0:n.current)&&n.current===fe.relatedTarget,et=(ae=r.current)===null||ae===void 0?void 0:ae.contains(fe.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(fe),t.setFocused(!1))},A=fe=>{t.isFocused||(e.onFocus&&e.onFocus(fe),t.setFocused(!0))},{isInvalid:M,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:K,inputProps:L,descriptionProps:X,errorMessageProps:_}=Sj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:as(t.isOpen&&v.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[Au]:t},i),I=fe=>{if(fe.pointerType==="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(null,"manual")}},W=fe=>{if(fe.pointerType!=="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(fe.pointerType==="keyboard"||fe.pointerType==="virtual"?"first":null,"manual")}},k=Cu({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||K.id}),V=Cu({id:y.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||K.id}),R=$.useRef(0),G=fe=>{if(f||d)return;if(fe.timeStamp-R.current<500){var ae;fe.preventDefault(),(ae=i.current)===null||ae===void 0||ae.focus();return}let Fe=fe.target.getBoundingClientRect(),et=fe.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;fe.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),R.current=fe.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var N;let ne=(N=U==null?void 0:U.parentKey)!==null&&N!==void 0?N:null;var ie;let le=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,$e=$.useRef(ne),De=$.useRef(le);$.useEffect(()=>{if(Rf()&&U!=null&&le!=null&&le!==De.current){let ae=t.selectionManager.isSelected(le),Fe=ne!=null?t.collection.getItem(ne):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var fe;let dt=m.format("focusAnnouncement",{isGroupChange:(fe=Fe&&ne!==$e.current)!==null&&fe!==void 0?fe:!1,groupTitle:et,groupCount:Fe?[...op(Fe,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:ae});hu(dt)}$e.current=ne,De.current=le});let Ee=Y2(t.collection),Y=$.useRef(Ee),he=$.useRef(t.isOpen);$.useEffect(()=>{let fe=t.isOpen!==he.current&&(t.selectionManager.focusedKey==null||Rf());if(t.isOpen&&(fe||Ee!==Y.current)){let ae=m.format("countAnnouncement",{optionCount:Ee});hu(ae)}Y.current=Ee,he.current=t.isOpen});let ye=$.useRef(t.selectedKey);return $.useEffect(()=>{if(Rf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ye.current){let fe=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ae=m.format("selectedAnnouncement",{optionText:fe});hu(ae)}ye.current=t.selectedKey}),$.useEffect(()=>{if(t.isOpen)return U2([i.current,r.current].filter(fe=>fe!=null))},[t.isOpen,i,r]),{labelProps:K,buttonProps:{...g,...k,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:I,onPressStart:W,isDisabled:f||d},inputProps:xt(L,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?W2(t,U.key):void 0,onTouchEnd:G,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(y,V,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:X,errorMessageProps:_,isInvalid:M,validationErrors:S,validationDetails:z}}var _T={};_T={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 OT={};OT={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 MT={};MT={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 FT={};FT={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 kT={};kT={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:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var BT={};BT={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 IT={};IT={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 LT={};LT={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 VT={};VT={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 NT={};NT={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 jT={};jT={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 KT={};KT={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 UT={};UT={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 zT={};zT={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 WT={};WT={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 HT={};HT={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 GT={};GT={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 qT={};qT={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 YT={};YT={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 ZT={};ZT={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 JT={};JT={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 XT={};XT={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 QT={};QT={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 eA={};eA={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 tA={};tA={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 nA={};nA={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 rA={};rA={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 iA={};iA={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 oA={};oA={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 aA={};aA={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 sA={};sA={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 uA={};uA={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 lA={};lA={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 cA={};cA={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 zc={};zc={"ar-AE":_T,"bg-BG":OT,"cs-CZ":MT,"da-DK":FT,"de-DE":kT,"el-GR":BT,"en-US":IT,"es-ES":LT,"et-EE":VT,"fi-FI":NT,"fr-FR":jT,"he-IL":KT,"hr-HR":UT,"hu-HU":zT,"it-IT":WT,"ja-JP":HT,"ko-KR":GT,"lt-LT":qT,"lv-LV":YT,"nb-NO":ZT,"nl-NL":JT,"pl-PL":XT,"pt-BR":QT,"pt-PT":eA,"ro-RO":tA,"ru-RU":nA,"sk-SK":rA,"sl-SI":iA,"sr-SP":oA,"sv-SE":aA,"tr-TR":sA,"uk-UA":uA,"zh-CN":lA,"zh-TW":cA};function Rb(e,t,n){let{direction:r}=Qn(),i=$.useMemo(()=>Jh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Ic({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function yK(e){return e&&e.__esModule?e.default:e}const dA=new WeakMap,tc="__role_"+Date.now(),fA="__focusManager_"+Date.now();function hA(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=rp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=$.useRef(null),{focusWithinProps:m}=Uu({...e,onFocusWithin(K){var L;h.current=t.value,(L=e.onFocus)===null||L===void 0||L.call(e,K)},onBlurWithin:K=>{var L;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(L=e.onBlur)===null||L===void 0||L.call(e,K)},onFocusWithinChange:e.onFocusChange}),g=eo(yK(zc),"@react-aria/datepicker"),y=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(y,{[x]:t.formatValue({month:"long"})}):"",b=kc(C),v=e[tc]==="presentation"?c["aria-describedby"]:[b["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[fA],T=$.useMemo(()=>D||Jh(n),[D,n]),E=Rb(t,n,e[tc]==="presentation");dA.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:T});let A=$.useRef(e.autoFocus),M;e[tc]==="presentation"?M={role:"presentation"}:M=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),$.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),db(e.inputRef,t.value,t.setValue),E5({...e,focus(){T.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let z=Ro(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:xt(z,M,E,m,{onKeyDown(K){e.onKeyDown&&e.onKeyDown(K)},onKeyUp(K){e.onKeyUp&&e.onKeyUp(K)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function vK(e,t,n){var r;let i=hA(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function bK(e){return e&&e.__esModule?e.default:e}function $K(e,t,n){let r=Er(),i=Er(),o=Er(),a=eo(bK(zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=rp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),y=Rb(t,n),x=h["aria-labelledby"]||h.id,{locale:C}=Qn(),b=t.formatValue(C,{month:"long"}),v=b?a.format("selectedDateDescription",{date:b}):"",D=kc(v),T=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Ro(e),A=$.useMemo(()=>Jh(n),[n]),{focusWithinProps:M}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,y,h,D,M,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:o,[tc]:"presentation","aria-describedby":T,value:t.value,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,[Au]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.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(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function xK(e){return e&&e.__esModule?e.default:e}function wK(){let{locale:e}=Qn(),t=sS(xK(zc),"@react-aria/datepicker");return $.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new DK(e,t)}},[e,t])}class DK{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function EK(e,t,n){let r=$.useRef(""),{locale:i}=Qn(),o=wK(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=dA.get(t),f=e.isPlaceholder?"":e.text,h=$.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Ki({month:"long",timeZone:h.timeZone}),g=Ki({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let R=m.format(t.dateValue);f=R!==f?`${f} – ${R}`:R}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:y}=Aj({value:e.value,textValue:f,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)}}),x=$.useMemo(()=>new IS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),x.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let R=e.text.slice(0,-1),G=x.parse(R);R=G===0?"":R,R.length===0||G===0?t.clearSegment(e.type):t.setSegment(e.type,G),r.current=R}else e.type==="dayPeriod"&&t.clearSegment(e.type)},b=R=>{if(R.key==="a"&&(So()?R.metaKey:R.ctrlKey)&&R.preventDefault(),!(R.ctrlKey||R.metaKey||R.shiftKey||R.altKey))switch(R.key){case"Backspace":case"Delete":R.preventDefault(),R.stopPropagation(),C();break}},{startsWith:v}=VS({sensitivity:"base"}),D=Ki({hour:"numeric",hour12:!0}),T=$.useMemo(()=>{let R=new Date;return R.setHours(0),D.formatToParts(R).find(G=>G.type==="dayPeriod").value},[D]),E=$.useMemo(()=>{let R=new Date;return R.setHours(12),D.formatToParts(R).find(G=>G.type==="dayPeriod").value},[D]),A=Ki({year:"numeric",era:"narrow",timeZone:"UTC"}),M=$.useMemo(()=>{if(e.type!=="era")return[];let R=Qt(new pn(1,1,1),t.calendar),G=t.calendar.getEras().map(N=>{let ne=R.set({year:1,month:1,day:1,era:N}).toDate("UTC"),le=A.formatToParts(ne).find($e=>$e.type==="era").value;return{era:N,formatted:le}}),U=CK(G.map(N=>N.formatted));if(U)for(let N of G)N.formatted=N.formatted.slice(U);return G},[A,t.calendar,e.type]),S=R=>{if(t.isDisabled||t.isReadOnly)return;let G=r.current+R;switch(e.type){case"dayPeriod":if(v(T,R))t.setSegment("dayPeriod",0);else if(v(E,R))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let U=M.find(N=>v(N.formatted,R));U&&(t.setSegment("era",U.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!x.isValidPartialNumber(G))return;let U=x.parse(G),N=U,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":U>11&&(N=x.parse(R));break;case"h12":ne=!1,U>12&&(N=x.parse(R));break}e.value!==void 0&&e.value>=12&&U>1&&(U+=12)}else e.maxValue!==void 0&&U>e.maxValue&&(N=x.parse(R));if(isNaN(U))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||G.length>=String(e.maxValue).length)?(r.current="",ie&&d.focusNext()):r.current=G;break}}},z=()=>{r.current="",n.current&&th(n.current,{containingElement:Yh(n.current)});let R=window.getSelection();R==null||R.collapse(n.current)},K=$.useRef(typeof document<"u"?document:null);ji(K,"selectionchange",()=>{var R;let G=window.getSelection();G!=null&&G.anchorNode&&(!((R=n.current)===null||R===void 0)&&R.contains(G==null?void 0:G.anchorNode))&&G.collapse(n.current)});let L=$.useRef("");ji(n,"beforeinput",R=>{if(n.current)switch(R.preventDefault(),R.inputType){case"deleteContentBackward":case"deleteContentForward":x.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":L.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:R.data!=null&&S(R.data);break}}),ji(n,"input",R=>{let{inputType:G,data:U}=R;switch(G){case"insertCompositionText":n.current&&(n.current.textContent=L.current),U!=null&&(v(T,U)||v(E,U))&&S(U);break}}),Lt(()=>{let R=n.current;return()=>{document.activeElement===R&&(d.focusPrevious()||d.focusNext())}},[n,d]);let X=Fc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},_=$.useMemo(()=>t.segments.find(R=>R.isEditable),[t.segments]);e!==_&&!t.isInvalid&&(c=void 0);let I=Er(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,k=e.type==="literal"?"":o.of(e.type),V=Cu({"aria-label":`${k}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(y,V,{id:I,...X,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:W,suppressContentEditableWarning:W,spellCheck:W?"false":void 0,autoCorrect:W?"off":void 0,[parseInt($.version,10)>=17?"enterKeyHint":"enterkeyhint"]:W?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!W?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:b,onFocus:z,style:{caretColor:"transparent"},onPointerDown(R){R.stopPropagation()},onMouseDown(R){R.stopPropagation()}})}}function CK(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 SK(e){return e&&e.__esModule?e.default:e}function TK(e,t,n){var r,i,o;let a=eo(SK(zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=rp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),y=h["aria-labelledby"]||h.id,{locale:x}=Qn(),C=t.formatValue(x,{month:"long"}),b=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",v=kc(b),D={"aria-label":a.format("startDate"),"aria-labelledby":y},T={"aria-label":a.format("endDate"),"aria-labelledby":y},E=Er(),A=Er(),M=Rb(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=$.useMemo(()=>Jh(n,{accept:V=>V.id!==E}),[n,E]),K={[fA]:z,[tc]:"presentation","aria-describedby":S,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},L=Ro(e),{focusWithinProps:X}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),_=$.useRef(ja),I=$.useRef(ja);var W,k;return{groupProps:xt(L,M,h,v,X,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(V){t.isOpen||e.onKeyDown&&e.onKeyDown(V)},onKeyUp(V){t.isOpen||e.onKeyUp&&e.onKeyUp(V)}}),labelProps:{...f,onClick:()=>{z.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${y}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${y}`},startFieldProps:{...D,...K,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:V=>t.setDateTime("start",V),autoFocus:e.autoFocus,name:e.startName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){_.current=V,t.updateValidation(ch(V,I.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...K,value:(k=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&k!==void 0?k:null,onChange:V=>t.setDateTime("end",V),name:e.endName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){I.current=V,t.updateValidation(ch(_.current,V))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.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(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function AK(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=$.useRef(!1);return $.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ls(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Jj(),{dialogProps:{...Ro(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function Ha(e,t,n,r,i){let o=e;return t.years?o=JV(e):t.months?o=Nc(e):t.weeks&&(o=fc(e,n)),yc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function yc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=bb(t,Ha(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=vb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function Zo(e,t,n){if(t){let r=bb(e,cr(t));r&&(e=r)}if(n){let r=vb(e,cr(n));r&&(e=r)}return e}function pA(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 mA(e){let t=$.useMemo(()=>new ii(e.locale),[e.locale]),n=$.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible",firstDayOfWeek:h}=e,m=$.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[y,x]=Fr(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),C=$.useMemo(()=>y?Qt(cr(y),m):null,[y,m]),b=$.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),v=$.useMemo(()=>e.focusedValue?Zo(Qt(cr(e.focusedValue),m),a,u):void 0,[e.focusedValue,m,a,u]),D=$.useMemo(()=>Zo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),m):C||Qt(Qh(b),m),a,u),[e.defaultFocusedValue,C,b,m,a,u]),[T,E]=Fr(v,D,e.onFocusChange),[A,M]=$.useState(()=>{switch(c){case"start":return Ha(T,o,r,a,u);case"end":return Yy(T,o,r,a,u);case"center":default:return qy(T,o,r,a,u)}}),[S,z]=$.useState(e.autoFocus||!1),K=$.useMemo(()=>{let N={...o};return N.days?N.days--:N.days=-1,A.add(N)},[A,o]),[L,X]=$.useState(m.identifier);if(m.identifier!==L){let N=Qt(T,m);M(qy(N,o,r,a,u)),E(N),X(m.identifier)}mu(T,a,u)?E(Zo(T,a,u)):T.compare(A)<0?M(Yy(T,o,r,a,u)):T.compare(K)>0&&M(Ha(T,o,r,a,u));function _(N){N=Zo(N,a,u),E(N)}function I(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){x(null);return}if(ne=Zo(ne,a,u),ne=pA(ne,A,d),!ne)return;ne=Qt(ne,(y==null?void 0:y.calendar)||new dr),y&&"hour"in y?x(y.set(ne)):x(ne)}}let W=$.useMemo(()=>C?d&&d(C)?!0:mu(C,a,u):!1,[C,d,a,u]),k=e.isInvalid||e.validationState==="invalid"||W,V=k?"invalid":null,R=$.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var G,U;return{isDisabled:(G=e.isDisabled)!==null&&G!==void 0?G:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:C,setValue:I,visibleRange:{start:A,end:K},minValue:a,maxValue:u,focusedDate:T,timeZone:b,validationState:V,isValueInvalid:k,setFocusedDate(N){_(N),z(!0)},focusNextDay(){_(T.add({days:1}))},focusPreviousDay(){_(T.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&_(T.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&_(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(R);E(Zo(T.add(R),a,u)),M(Ha(yc(T,N,R,r,a,u),R,r))},focusPreviousPage(){let N=A.subtract(R);E(Zo(T.subtract(R),a,u)),M(Ha(yc(T,N,R,r,a,u),R,r))},focusSectionStart(){o.days?_(A):o.weeks?_(fc(T,r)):(o.months||o.years)&&_(Nc(T))},focusSectionEnd(){o.days?_(K):o.weeks?_(eN(T,r)):(o.months||o.years)&&_(Fy(T))},focusNextSection(N){if(!N&&!o.days){_(T.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?_(T.add({months:1})):(o.months||o.years)&&_(T.add({years:1}))},focusPreviousSection(N){if(!N&&!o.days){_(T.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?_(T.subtract({months:1})):(o.months||o.years)&&_(T.subtract({years:1}))},selectFocusedDate(){d&&d(T)||I(T)},selectDate(N){I(N)},isFocused:S,setFocused:z,isInvalid(N){return mu(N,a,u)},isSelected(N){return C!=null&&wn(N,C)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&wn(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(K)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return wn(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=K.add({days:1});return wn(N,K)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),le=[];ie=fc(ie,r,h);let $e=yb(ie,r,h);for(let De=0;De<$e;De++)le.push(null);for(;le.length<7;){le.push(ie);let De=ie.add({days:1});if(wn(ie,De))break;ie=De}for(;le.length<7;)le.push(null);return le}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function PK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=$.useState(null),y="center";if(f&&f.start&&f.end){let R=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(R)>0&&(y="start")}let x=$.useRef(null),[C,b]=$.useState(null),v=$.useMemo(()=>bb(u,C==null?void 0:C.start),[u,C]),D=$.useMemo(()=>vb(c,C==null?void 0:C.end),[c,C]),T=mA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:v,maxValue:D,selectionAlignment:y}),E=V=>{if(V&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const R=dx(V,T,-1),G=dx(V,T,1);x.current={start:R,end:G},b(x.current)}else x.current=null,b(null)},[A,M]=$.useState(T.visibleRange);(!My(T.visibleRange.start,A.start)||!My(T.visibleRange.end,A.end))&&(E(m),M(T.visibleRange));let S=V=>{V?(g(V),E(V)):(g(null),E(null))},z=m?vg(m,T.focusedDate):f&&vg(f.start,f.end),K=V=>{if(e.isReadOnly)return;const R=Zo(V,v,D),G=pA(R,T.visibleRange.start,e.isDateUnavailable);if(G)if(!m)S(G);else{let U=vg(m,G);U&&h({start:cx(U.start,f==null?void 0:f.start),end:cx(U.end,f==null?void 0:f.end)}),S(null)}},[L,X]=$.useState(!1),{isDateUnavailable:_}=e,I=$.useMemo(()=>!f||m?!1:_&&(_(f.start)||_(f.end))?!0:mu(f.start,u,c)||mu(f.end,u,c),[_,f,m,u,c]),W=e.isInvalid||e.validationState==="invalid"||I;return{...T,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:z,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){K(T.focusedDate)},selectDate:K,highlightDate(V){m&&T.setFocusedDate(V)},isSelected(V){return!!(z&&V.compare(z.start)>=0&&V.compare(z.end)<=0&&!T.isCellDisabled(V)&&!T.isCellUnavailable(V))},isInvalid(V){var R,G;return T.isInvalid(V)||mu(V,(R=x.current)===null||R===void 0?void 0:R.start,(G=x.current)===null||G===void 0?void 0:G.end)},isDragging:L,setDragging:X}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function cx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function dx(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 Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.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=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function RK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function _K(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=$.useRef(!1),[,u]=$.useState(!1),c=$.useRef(null),d=$.useRef(null),[,f]=$.useState(null),h=$.useMemo(()=>fx(e.selectedKeys),[e.selectedKeys]),m=$.useMemo(()=>fx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,y]=Fr(h,m,e.onSelectionChange),x=$.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,b]=$.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let v=$.useRef(i);return $.useEffect(()=>{i!==v.current&&(b(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,T="first"){c.current=D,d.current=T,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!RK(D,g))&&y(D)},disabledKeys:x,disabledBehavior:o}}function fx(e,t){return e?e==="all"?"all":new mi(e):t}class OK{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&&gg(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&&gg(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 mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?gg(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=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}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 mi(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 mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;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 a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=cK(op(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o: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 mi)}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}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 MK(e){let{filter:t,layoutDelegate:n}=e,r=_K(e),i=$.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=$.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=$.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=lK(e,o,a),c=$.useMemo(()=>new OK(u,r,{layoutDelegate:n}),[u,r,n]);const d=$.useRef(null);return $.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const b=d.current.getItem(r.focusedKey),v=[...d.current.getKeys()].map(S=>{const z=d.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const z=u.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var f,h;const T=((f=v==null?void 0:v.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,y;let E=Math.min(T>1?Math.max(((m=b==null?void 0:b.index)!==null&&m!==void 0?m:0)-T+1,0):(g=b==null?void 0:b.index)!==null&&g!==void 0?g:0,((y=D==null?void 0:D.length)!==null&&y!==void 0?y:0)-1),A=null,M=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){A=D[E];break}if(E<D.length-1&&!M)E++;else{M=!0;var x,C;E>((x=b==null?void 0:b.index)!==null&&x!==void 0?x:0)&&(E=(C=b==null?void 0:b.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(A?A.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function FK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=$.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=MK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=$.useCallback(()=>{n(!0)},[n]),i=$.useCallback(()=>{n(!1)},[n]),o=$.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function kK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=$.useState(!1),[d,f]=$.useState(!1),[h,m]=$.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===b&&(le(),N())};var y;let{collection:x,selectionManager:C,selectedKey:b,setSelectedKey:v,selectedItem:D,disabledKeys:T}=FK({...e,onSelectionChange:g,items:(y=e.items)!==null&&y!==void 0?y:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,M;b==null?E="":E=(M=(A=x.getItem(b))===null||A===void 0?void 0:A.textValue)!==null&&M!==void 0?M:""}let[S,z]=Fr(e.inputValue,E,e.onInputChange),K=x,L=$.useMemo(()=>e.items!=null||!n?x:BK(x,S,n),[x,S,n,e.items]),[X,_]=$.useState(L),I=$.useRef("focus"),k=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?I.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),V=(Z=null,re)=>{let pe=re==="manual"||re==="focus"&&r==="focus";(i||L.size>0||pe&&K.size>0||e.items)&&(pe&&!k.isOpen&&e.items===void 0&&c(!0),I.current=re,m(Z),k.open())},R=(Z=null,re)=>{let pe=re==="manual"||re==="focus"&&r==="focus";!(i||L.size>0||pe&&K.size>0||e.items)&&!k.isOpen||(pe&&!k.isOpen&&e.items===void 0&&c(!0),k.isOpen||(I.current=re),U(Z))},G=$.useCallback(()=>{_(u?K:L)},[u,K,L]),U=$.useCallback((Z=null)=>{k.isOpen&&G(),m(Z),k.toggle()},[k,G]),N=$.useCallback(()=>{k.isOpen&&(G(),k.close())},[k,G]),[ne,ie]=$.useState(S),le=()=>{var Z,re;let pe=b!=null&&(re=(Z=x.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";ie(pe),z(pe)};var $e,De;let Ee=$.useRef((De=($e=e.selectedKey)!==null&&$e!==void 0?$e:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var Y;let he=$.useRef(b!=null&&(Y=(t=x.getItem(b))===null||t===void 0?void 0:t.textValue)!==null&&Y!==void 0?Y:"");$.useEffect(()=>{var Z;d&&(L.size>0||i)&&!k.isOpen&&S!==ne&&r!=="manual"&&V(null,"input"),!u&&!i&&k.isOpen&&L.size===0&&N(),b!=null&&b!==Ee.current&&N(),S!==ne&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),b!==Ee.current&&(e.inputValue===void 0||e.selectedKey===void 0)?le():ne!==S&&ie(S);var re;let pe=b!=null&&(re=(Z=x.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";!d&&b!=null&&e.inputValue===void 0&&b===Ee.current&&he.current!==pe&&(ie(pe),z(pe)),Ee.current=b,he.current=pe});let ye=Uc({...e,value:$.useMemo(()=>({inputValue:S,selectedKey:b}),[S,b])}),fe=()=>{o&&b==null?ae():Fe()},ae=()=>{Ee.current=null,v(null),N()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,re;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,b);var pe;let Ce=b!=null&&(pe=(re=x.getItem(b))===null||re===void 0?void 0:re.textValue)!==null&&pe!==void 0?pe:"";ie(Ce),N()}else le(),N()};const et=()=>{if(o){var Z,re;const pe=b!=null&&(re=(Z=x.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";S===pe?Fe():ae()}else Fe()};let dt=()=>{k.isOpen&&C.focusedKey!=null?b===C.focusedKey?Fe():v(C.focusedKey):et()},Dn=$.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&V(null,"focus")):(a&&et(),S!==Dn.current&&ye.commitValidation()),f(Z)},q=$.useMemo(()=>k.isOpen?u?K:L:X,[k.isOpen,K,L,u,X]);return{...ye,...k,focusStrategy:h,toggle:R,open:V,close:et,selectionManager:C,selectedKey:b,setSelectedKey:v,disabledKeys:T,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:z,commit:dt,revert:fe}}function BK(e,t,n){return new Zy(gA(e,e,t,n))}function gA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=gA(e,op(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var yA={};yA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var vA={};vA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var bA={};bA={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 $A={};$A={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 xA={};xA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum 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 wA={};wA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var DA={};DA={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 EA={};EA={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 CA={};CA={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 SA={};SA={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 TA={};TA={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 AA={};AA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var PA={};PA={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 RA={};RA={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 _A={};_A={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 OA={};OA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var MA={};MA={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var FA={};FA={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 kA={};kA={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 BA={};BA={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 IA={};IA={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 LA={};LA={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 VA={};VA={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 NA={};NA={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 jA={};jA={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 KA={};KA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var UA={};UA={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 zA={};zA={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 WA={};WA={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 HA={};HA={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 GA={};GA={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 qA={};qA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var YA={};YA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var ZA={};ZA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var JA={};JA={"ar-AE":yA,"bg-BG":vA,"cs-CZ":bA,"da-DK":$A,"de-DE":xA,"el-GR":wA,"en-US":DA,"es-ES":EA,"et-EE":CA,"fi-FI":SA,"fr-FR":TA,"he-IL":AA,"hr-HR":PA,"hu-HU":RA,"it-IT":_A,"ja-JP":OA,"ko-KR":MA,"lt-LT":FA,"lv-LV":kA,"nb-NO":BA,"nl-NL":IA,"pl-PL":LA,"pt-BR":VA,"pt-PT":NA,"ro-RO":jA,"ru-RU":KA,"sk-SK":UA,"sl-SI":zA,"sr-SP":WA,"sv-SE":HA,"tr-TR":GA,"uk-UA":qA,"zh-CN":YA,"zh-TW":ZA};function IK(e){return e&&e.__esModule?e.default:e}const XA=new ya(IK(JA));function QA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function fh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=QA(),h=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||XA,m=new aS(f,h),g=new ii(f,wo({},i)),y=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(y))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(y))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function LK(e,t,n,r,i){var o;let a=fh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=fh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=ch(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||XA;d=ch(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",QA())],validationDetails:{...tp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const VK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},NK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function wo(e,t){e={...t.shouldForceLeadingZeros?NK:VK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function eu(e){return e&&"hour"in e?e:new jc}function eP(e,t){if(e===null)return null;if(e)return Qt(e,t)}function _l(e,t,n,r){if(e)return eP(e,n);let i=Qt(cS(r??Vc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Ob(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,o]=$.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function jK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Ob(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=$.useState(null),[g,y]=$.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let x=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=$.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:x}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,x]),{minValue:b,maxValue:v,isDateUnavailable:D}=e,T=$.useMemo(()=>fh(n,b,v,D,C),[n,b,v,D,C]),E=Uc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null),S=(L,X)=>{r("timeZone"in X?X.set(cr(L)):Di(L,X)),m(null),y(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:L=>{let X=typeof f=="function"?f():f;c?g||X?S(L,g||eu(e.defaultValue||e.placeholderValue)):m(L):(r(L),E.commitValidation()),X&&t.setOpen(!1)},setTimeValue:L=>{h&&L?S(h,L):y(L)},granularity:o,hasTime:c,...t,setOpen(L){!L&&!n&&h&&c&&S(h,g||eu(e.defaultValue||e.placeholderValue)),t.setOpen(L)},validationState:M,isInvalid:A,formatValue(L,X){if(!u)return"";let _=wo(X,C);return new ii(L,_).format(u)},getDateFormatter(L,X){let _={...C,...X},I=wo({},_);return new ii(L,I)}}}const KK=new ya({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"},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 UK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?KK.getStringForLocale(e,n):"––"}const hf={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},hx={year:5,month:2,day:7,hour:2,minute:15,second:15},zK={dayperiod:"dayPeriod"};function tP(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Ob(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let y=$.useMemo(()=>new ii(t),[t]),x=$.useMemo(()=>n(y.resolvedOptions().calendar),[n,y]);var C;let[b,v]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=$.useMemo(()=>{var Y;return(Y=eP(b,x))!==null&&Y!==void 0?Y:null},[b,x]),[T,E]=$.useState(()=>_l(e.placeholderValue,h,x,m)),A=D||T,M=x.identifier==="gregory"&&A.era==="BC",S=$.useMemo(()=>{var Y;return{granularity:h,maxGranularity:(Y=e.maxGranularity)!==null&&Y!==void 0?Y:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,M]),z=$.useMemo(()=>wo({},S),[S]),K=$.useMemo(()=>new ii(t,z),[t,z]),L=$.useMemo(()=>K.resolvedOptions(),[K]),X=$.useMemo(()=>K.formatToParts(new Date).filter(Y=>hf[Y.type]).reduce((Y,he)=>(Y[he.type]=!0,Y),{}),[K]),[_,I]=$.useState(()=>e.value||e.defaultValue?{...X}:{}),W=$.useRef(null),k=$.useRef(x.identifier);$.useEffect(()=>{x.identifier!==k.current&&(k.current=x.identifier,E(Y=>Object.keys(_).length>0?Qt(Y,x):_l(e.placeholderValue,h,x,m)))},[x,h,_,m,e.placeholderValue]),b&&Object.keys(_).length<Object.keys(X).length&&(_={...X},I(_)),b==null&&Object.keys(_).length===Object.keys(X).length&&(_={},I(_),E(_l(e.placeholderValue,h,x,m)));let V=D&&Object.keys(_).length>=Object.keys(X).length?D:T,R=Y=>{if(e.isDisabled||e.isReadOnly)return;let he=Object.keys(_),ye=Object.keys(X);Y==null?(v(null),E(_l(e.placeholderValue,h,x,m)),I({})):he.length>=ye.length||he.length===ye.length-1&&X.dayPeriod&&!_.dayPeriod&&W.current!=="dayPeriod"?(Y=Qt(Y,(f==null?void 0:f.calendar)||new dr),v(Y)):E(Y),W.current=null},G=$.useMemo(()=>V.toDate(g),[V,g]),U=$.useMemo(()=>K.formatToParts(G).map(Y=>{let he=hf[Y.type];Y.type==="era"&&x.getEras().length===1&&(he=!1);let ye=hf[Y.type]&&!_[Y.type],fe=hf[Y.type]?UK(Y.type,Y.value,t):null;return{type:zK[Y.type]||Y.type,text:ye?fe:Y.value,...WK(V,Y.type,L),isPlaceholder:ye,placeholder:fe,isEditable:he}}),[G,_,K,L,V,x,t]);X.era&&_.year&&!_.era?(_.era=!0,I({..._})):!X.era&&_.era&&(delete _.era,I({..._}));let N=Y=>{_[Y]=!0,Y==="year"&&X.era&&(_.era=!0),I({..._})},ne=(Y,he)=>{if(_[Y])R(HK(V,Y,he,L));else{N(Y);let ye=Object.keys(_),fe=Object.keys(X);(ye.length>=fe.length||ye.length===fe.length-1&&X.dayPeriod&&!_.dayPeriod)&&R(V)}},ie=$.useMemo(()=>fh(b,u,c,d,S),[b,u,c,d,S]),le=Uc({...e,value:b,builtinValidation:ie}),$e=le.displayValidation.isInvalid,De=e.validationState||($e?"invalid":null);var Ee;return{...le,value:D,dateValue:G,calendar:x,setValue:R,segments:U,dateFormatter:K,validationState:De,isInvalid:$e,granularity:h,maxGranularity:(Ee=e.maxGranularity)!==null&&Ee!==void 0?Ee:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(Y){ne(Y,1)},decrement(Y){ne(Y,-1)},incrementPage(Y){ne(Y,hx[Y]||1)},decrementPage(Y){ne(Y,-(hx[Y]||1))},setSegment(Y,he){N(Y),R(GK(V,Y,he,L))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Y=Object.keys(_),he=Object.keys(X);Y.length===he.length-1&&X.dayPeriod&&!_.dayPeriod&&(_={...X},I(_),R(V.copy()))},clearSegment(Y){delete _[Y],W.current=Y,I({..._});let he=_l(e.placeholderValue,h,x,m),ye=V;if(Y==="dayPeriod"&&"hour"in V&&"hour"in he){let fe=V.hour>=12,ae=he.hour>=12;fe&&!ae?ye=V.set({hour:V.hour-12}):!fe&&ae&&(ye=V.set({hour:V.hour+12}))}else Y in V&&(ye=V.set({[Y]:he[Y]}));v(null),R(ye)},formatValue(Y){if(!D)return"";let he=wo(Y,S);return new ii(t,he).format(G)},getDateFormatter(Y,he){let ye={...S,...he},fe=wo({},ye);return new ii(Y,fe)}}}function WK(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:XV(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:QV(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 HK(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,o=i>=12;return e.set({hour:o?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 GK(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,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function qK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=$.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=k=>{u(k||{start:null,end:null}),Fa(k)?o(k):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Ob(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var y;let x=(y=e.shouldCloseOnSelect)!==null&&y!==void 0?y:!0,[C,b]=$.useState(null),[v,D]=$.useState(null);c&&Fa(c)&&(C=c,"hour"in c.start&&(v=c));let T=(k,V)=>{d({start:"timeZone"in V.start?V.start.set(cr(k.start)):Di(k.start,V.start),end:"timeZone"in V.end?V.end.set(cr(k.end)):Di(k.end,V.end)}),b(null),D(null),_.commitValidation()},E=k=>{let V=typeof x=="function"?x():x;g?Fa(k)&&(v!=null&&v.start)&&(v!=null&&v.end)?T(k,{start:(v==null?void 0:v.start)||eu(e.placeholderValue),end:(v==null?void 0:v.end)||eu(e.placeholderValue)}):b(k):Fa(k)?(d(k),_.commitValidation()):b(k),V&&r.setOpen(!1)},A=k=>{Fa(C)&&Fa(k)?T(C,k):D(k)},M=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=$.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:M}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,M]),{minValue:z,maxValue:K,isDateUnavailable:L}=e,X=$.useMemo(()=>LK(c,z,K,L,S),[c,z,K,L,S]),_=Uc({...e,value:i,name:$.useMemo(()=>[e.startName,e.endName].filter(k=>k!=null),[e.startName,e.endName]),builtinValidation:X}),I=_.displayValidation.isInvalid,W=e.validationState||(I?"invalid":null);return{..._,value:c,setValue:d,dateRange:C,timeRange:v,granularity:h,hasTime:g,setDate(k,V){var R,G;E(k==="start"?{start:V,end:(R=C==null?void 0:C.end)!==null&&R!==void 0?R:null}:{start:(G=C==null?void 0:C.start)!==null&&G!==void 0?G:null,end:V})},setTime(k,V){var R,G;A(k==="start"?{start:V,end:(R=v==null?void 0:v.end)!==null&&R!==void 0?R:null}:{start:(G=v==null?void 0:v.start)!==null&&G!==void 0?G:null,end:V})},setDateTime(k,V){var R,G;d(k==="start"?{start:V,end:(R=c==null?void 0:c.end)!==null&&R!==void 0?R:null}:{start:(G=c==null?void 0:c.start)!==null&&G!==void 0?G:null,end:V})},setDateRange:E,setTimeRange:A,...r,setOpen(k){!k&&!(c!=null&&c.start&&(c!=null&&c.end))&&Fa(C)&&g&&T(C,{start:(v==null?void 0:v.start)||eu(e.placeholderValue),end:(v==null?void 0:v.end)||eu(e.placeholderValue)}),r.setOpen(k)},validationState:W,isInvalid:I,formatValue(k,V){if(!c||!c.start||!c.end)return null;let R="timeZone"in c.start?c.start.timeZone:void 0,G=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),U="timeZone"in c.end?c.end.timeZone:void 0,N=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),ne=wo(V,{granularity:G,timeZone:R,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),ie=c.start.toDate(R||"UTC"),le=c.end.toDate(U||"UTC"),$e=new ii(k,ne),De;if(R===U&&G===N&&c.start.compare(c.end)!==0){try{let Ee=$e.formatRangeToParts(ie,le),Y=-1;for(let fe=0;fe<Ee.length;fe++){let ae=Ee[fe];if(ae.source==="shared"&&ae.type==="literal")Y=fe;else if(ae.source==="endRange")break}let he="",ye="";for(let fe=0;fe<Ee.length;fe++)fe<Y?he+=Ee[fe].value:fe>Y&&(ye+=Ee[fe].value);return{start:he,end:ye}}catch{}De=$e}else{let Ee=wo(V,{granularity:N,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new ii(k,Ee)}return{start:$e.format(ie),end:De.format(le)}},getDateFormatter(k,V){let R={...S,...V},G=wo({},R);return new ii(k,G)}}}function Fa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function YK(e){let{placeholderValue:t=new jc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=$.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?gS(Ol(t),D||h):Ol(t)},[t,d,h]),g=$.useMemo(()=>Ol(n,f),[n,f]),y=$.useMemo(()=>Ol(r,f),[r,f]),x=$.useMemo(()=>u&&"day"in u?T$(u):u,[u]),C=$.useMemo(()=>u==null?null:Ol(u),[u]);return{...tP({...e,value:C,defaultValue:void 0,minValue:g,maxValue:y,onChange:D=>{c(f||h?D:D&&T$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:$.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:x}}function Ol(e,t=Qh(Vc())){return e?"day"in e?e:Di(t,e):null}var kf={exports:{}},ZK=kf.exports,px;function JK(){return px||(px=1,function(e,t){(function(n,r){e.exports=r()})(ZK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",y="date",x="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,v={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(I){var W=["th","st","nd","rd"],k=I%100;return"["+I+(W[(k-20)%10]||W[k]||W[0])+"]"}},D=function(I,W,k){var V=String(I);return!V||V.length>=W?I:""+Array(W+1-V.length).join(k)+I},T={s:D,z:function(I){var W=-I.utcOffset(),k=Math.abs(W),V=Math.floor(k/60),R=k%60;return(W<=0?"+":"-")+D(V,2,"0")+":"+D(R,2,"0")},m:function I(W,k){if(W.date()<k.date())return-I(k,W);var V=12*(k.year()-W.year())+(k.month()-W.month()),R=W.clone().add(V,h),G=k-R<0,U=W.clone().add(V+(G?-1:1),h);return+(-(V+(k-R)/(G?R-U:U-R))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:g,w:f,d,D:y,h:c,m:u,s:a,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",A={};A[E]=v;var M="$isDayjsObject",S=function(I){return I instanceof X||!(!I||!I[M])},z=function I(W,k,V){var R;if(!W)return E;if(typeof W=="string"){var G=W.toLowerCase();A[G]&&(R=G),k&&(A[G]=k,R=G);var U=W.split("-");if(!R&&U.length>1)return I(U[0])}else{var N=W.name;A[N]=W,R=N}return!V&&R&&(E=R),R||!V&&E},K=function(I,W){if(S(I))return I.clone();var k=typeof W=="object"?W:{};return k.date=I,k.args=arguments,new X(k)},L=T;L.l=z,L.i=S,L.w=function(I,W){return K(I,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var X=function(){function I(k){this.$L=z(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[M]=!0}var W=I.prototype;return W.parse=function(k){this.$d=function(V){var R=V.date,G=V.utc;if(R===null)return new Date(NaN);if(L.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var U=R.match(C);if(U){var N=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return G?new Date(Date.UTC(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)):new Date(U[1],N,U[3]||1,U[4]||0,U[5]||0,U[6]||0,ne)}}return new Date(R)}(k),this.init()},W.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},W.$utils=function(){return L},W.isValid=function(){return this.$d.toString()!==x},W.isSame=function(k,V){var R=K(k);return this.startOf(V)<=R&&R<=this.endOf(V)},W.isAfter=function(k,V){return K(k)<this.startOf(V)},W.isBefore=function(k,V){return this.endOf(V)<K(k)},W.$g=function(k,V,R){return L.u(k)?this[V]:this.set(R,k)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(k,V){var R=this,G=!!L.u(V)||V,U=L.p(k),N=function(he,ye){var fe=L.w(R.$u?Date.UTC(R.$y,ye,he):new Date(R.$y,ye,he),R);return G?fe:fe.endOf(d)},ne=function(he,ye){return L.w(R.toDate()[he].apply(R.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ye)),R)},ie=this.$W,le=this.$M,$e=this.$D,De="set"+(this.$u?"UTC":"");switch(U){case g:return G?N(1,0):N(31,11);case h:return G?N(1,le):N(0,le+1);case f:var Ee=this.$locale().weekStart||0,Y=(ie<Ee?ie+7:ie)-Ee;return N(G?$e-Y:$e+(6-Y),le);case d:case y:return ne(De+"Hours",0);case c:return ne(De+"Minutes",1);case u:return ne(De+"Seconds",2);case a:return ne(De+"Milliseconds",3);default:return this.clone()}},W.endOf=function(k){return this.startOf(k,!1)},W.$set=function(k,V){var R,G=L.p(k),U="set"+(this.$u?"UTC":""),N=(R={},R[d]=U+"Date",R[y]=U+"Date",R[h]=U+"Month",R[g]=U+"FullYear",R[c]=U+"Hours",R[u]=U+"Minutes",R[a]=U+"Seconds",R[o]=U+"Milliseconds",R)[G],ne=G===d?this.$D+(V-this.$W):V;if(G===h||G===g){var ie=this.clone().set(y,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(k,V){return this.clone().$set(k,V)},W.get=function(k){return this[L.p(k)]()},W.add=function(k,V){var R,G=this;k=Number(k);var U=L.p(V),N=function(le){var $e=K(G);return L.w($e.date($e.date()+Math.round(le*k)),G)};if(U===h)return this.set(h,this.$M+k);if(U===g)return this.set(g,this.$y+k);if(U===d)return N(1);if(U===f)return N(7);var ne=(R={},R[u]=r,R[c]=i,R[a]=n,R)[U]||1,ie=this.$d.getTime()+k*ne;return L.w(ie,this)},W.subtract=function(k,V){return this.add(-1*k,V)},W.format=function(k){var V=this,R=this.$locale();if(!this.isValid())return R.invalidDate||x;var G=k||"YYYY-MM-DDTHH:mm:ssZ",U=L.z(this),N=this.$H,ne=this.$m,ie=this.$M,le=R.weekdays,$e=R.months,De=R.meridiem,Ee=function(ye,fe,ae,Fe){return ye&&(ye[fe]||ye(V,G))||ae[fe].slice(0,Fe)},Y=function(ye){return L.s(N%12||12,ye,"0")},he=De||function(ye,fe,ae){var Fe=ye<12?"AM":"PM";return ae?Fe.toLowerCase():Fe};return G.replace(b,function(ye,fe){return fe||function(ae){switch(ae){case"YY":return String(V.$y).slice(-2);case"YYYY":return L.s(V.$y,4,"0");case"M":return ie+1;case"MM":return L.s(ie+1,2,"0");case"MMM":return Ee(R.monthsShort,ie,$e,3);case"MMMM":return Ee($e,ie);case"D":return V.$D;case"DD":return L.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return Ee(R.weekdaysMin,V.$W,le,2);case"ddd":return Ee(R.weekdaysShort,V.$W,le,3);case"dddd":return le[V.$W];case"H":return String(N);case"HH":return L.s(N,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return he(N,ne,!0);case"A":return he(N,ne,!1);case"m":return String(ne);case"mm":return L.s(ne,2,"0");case"s":return String(V.$s);case"ss":return L.s(V.$s,2,"0");case"SSS":return L.s(V.$ms,3,"0");case"Z":return U}return null}(ye)||U.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(k,V,R){var G,U=this,N=L.p(V),ne=K(k),ie=(ne.utcOffset()-this.utcOffset())*r,le=this-ne,$e=function(){return L.m(U,ne)};switch(N){case g:G=$e()/12;break;case h:G=$e();break;case m:G=$e()/3;break;case f:G=(le-ie)/6048e5;break;case d:G=(le-ie)/864e5;break;case c:G=le/i;break;case u:G=le/r;break;case a:G=le/n;break;default:G=le}return R?G:L.a(G)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(k,V){if(!k)return this.$L;var R=this.clone(),G=z(k,V,!0);return G&&(R.$L=G),R},W.clone=function(){return L.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},I}(),_=X.prototype;return K.prototype=_,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",y]].forEach(function(I){_[I[1]]=function(W){return this.$g(W,I[0],I[1])}}),K.extend=function(I,W){return I.$i||(I(W,X,K),I.$i=!0),K},K.locale=z,K.isDayjs=S,K.unix=function(I){return K(1e3*I)},K.en=A[E],K.Ls=A,K.p={},K})}(kf)),kf.exports}var XK=JK();const QK=Po(XK);var ps=[["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"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["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"],["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"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["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"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],eU="react-international-phone-",nP=(...e)=>e.filter(t=>!!t).join(" ").trim(),tU=(...e)=>nP(...e).split(" ").map(t=>`${eU}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>nP(tU(...e),...t),nU=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Js=e=>e?/^\d+$/.test(e):!1,ap=e=>e.replace(/\D/g,""),rU=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},iU=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),oU=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=ap(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=nU({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},aU=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Js(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Js(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Js(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Js(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Js(n[c])&&c<n.length;)c+=1;return c},Bf=({phone:e,prefix:t})=>e?`${t}${ap(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?mU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(g==null?void 0:g.country)??t,x=oU(m,{prefix:o,mask:hU({phone:m,country:y,defaultMask:d,disableFormatting:h}),maskChar:rP,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:y;return{phone:Bf({phone:c?`${C.dialCode}${x}`:x,prefix:o}),inputValue:x,country:C}}var sU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},uU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,y=sU(g),x=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",b=(m==null?void 0:m.data)||void 0,v=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Bf({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Js(b)&&v!==i)return{inputValue:r,phone:Bf({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((b==null?void 0:b.length)??0),country:t};if(a&&!v.startsWith(`${i}${t.dialCode}`)&&!x){let S=v?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Bf({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:T,inputValue:E,country:A}=Jy({value:v,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),M=aU({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:y});return{phone:T,inputValue:E,cursorPosition:M,country:A}},lU=(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},cU=()=>{let e=$.useRef(),t=$.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}}},dU={size:20,overrideLastItemDebounceMS:-1};function fU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...dU,...t},[o,a]=$.useState(e),[u,c]=$.useState([o]),[d,f]=$.useState(0),h=cU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&lU(m,o)||m===o)return;let y=r>0,x=h.check(),C=y&&x!==void 0?x>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(b=>[...b.slice(0,d),m]);else{let b=u.length>=n;c(v=>[...v.slice(b?1:0,d+1),m]),b||f(v=>v+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var rP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ps,preferredCountries:[]},iP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let y={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},x=$.useRef(null),C=g||x,b=I=>{Promise.resolve().then(()=>{var W;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((W=C.current)==null||W.setSelectionRange(I,I))})},[{phone:v,inputValue:D,country:T},E,A,M]=fU(()=>{let I=tu({value:e,field:"iso2",countries:n});I||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=I||tu({value:"us",field:"iso2",countries:n}),{phone:k,inputValue:V,country:R}=Jy({value:t,country:W,insertDialCodeOnEmpty:!c,...y});return b(V.length),{phone:k,inputValue:V,country:R.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:I,phone:W,country:k})=>{if(!m)return;let V=S(k);m({phone:W,inputValue:I,country:V})}}),S=$.useCallback(I=>tu({value:I,field:"iso2",countries:n}),[n]),z=$.useMemo(()=>S(T),[T,S]);$.useEffect(()=>{let I=C.current;if(!I)return;let W=k=>{if(!k.key)return;let V=k.ctrlKey,R=k.metaKey,G=k.shiftKey;if(k.key.toLowerCase()==="z"){if(iU()){if(!R)return}else if(!V)return;G?M():A()}};return I.addEventListener("keydown",W),()=>{I.removeEventListener("keydown",W)}},[C,A,M]);let K=I=>{I.preventDefault();let{phone:W,inputValue:k,country:V,cursorPosition:R}=uU(I,{country:z,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...y});return E({inputValue:k,phone:W,country:V.iso2}),b(R),t},L=(I,W={focusOnInput:!1})=>{let k=tu({value:I,field:"iso2",countries:n});if(!k){console.error(`[react-international-phone]: can not find a country with "${I}" iso2 code`);return}let V=f?"":`${r}${k.dialCode}${o}`;E({inputValue:V,phone:`${r}${k.dialCode}`,country:k.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var R;(R=C.current)==null||R.focus()})},[X,_]=$.useState(!1);return $.useEffect(()=>{if(!X){_(!0),t!==v&&(m==null||m({inputValue:D,phone:v,country:z}));return}if(t===v)return;let{phone:I,inputValue:W,country:k}=Jy({value:t,country:z,insertDialCodeOnEmpty:!c,...y});E({phone:I,inputValue:W,country:k.iso2})},[t]),{phone:v,inputValue:D,country:z,setCountry:L,handlePhoneValueChange:K,inputRef:C}},hU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${rP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(ap(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},pU=e=>`Field "${e}" is not supported`,tu=({field:e,value:t,countries:n=ps})=>{if(["priority"].includes(e))throw new Error(pU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},mU=({phone:e,countries:t=ps,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ap(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let y of h)if(g.startsWith(y))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=tu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},gU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},yU="abcdefghijklmnopqrstuvwxyz",vU="1f1e6",mx=yU.split("").reduce((e,t,n)=>({...e,[t]:gU(vU,n)}),{}),bU=e=>[mx[e[0]],mx[e[1]]].join("-"),Mb=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return $.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=bU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return $.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},$U=1e3,xU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ps,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=$.useRef(null),f=$.useRef(),h=$.useMemo(()=>{if(!i||!i.length)return r;let A=[],M=[...r];for(let S of i){let z=M.findIndex(K=>gi(K).iso2===S);if(z!==-1){let K=M.splice(z,1)[0];A.push(K)}}return A.concat(M)},[r,i]),m=$.useRef({updatedAt:void 0,value:""}),g=A=>{let M=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>$U;m.current={value:M?A:`${m.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(z=>gi(z).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},y=$.useCallback(A=>h.findIndex(M=>gi(M).iso2===A),[h]),[x,C]=$.useState(y(n)),b=()=>{f.current!==n&&C(y(n))},v=$.useCallback(A=>{C(y(A.iso2)),a==null||a(A)},[a,y]),D=A=>{let M=h.length-1,S=z=>A==="prev"?z-1:A==="next"?z+1:A==="last"?M:0;C(z=>{let K=S(z);return K<0?0:K>M?M:K})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let M=gi(h[x]);v(M);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),D("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),D("next");return}if(A.key==="PageUp"){A.preventDefault(),D("first");return}if(A.key==="PageDown"){A.preventDefault(),D("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=$.useCallback(()=>{if(!d.current||x===void 0)return;let A=gi(h[x]).iso2;if(A===f.current)return;let M=d.current.querySelector(`[data-country="${A}"]`);M&&(rU(d.current,M),f.current=A)},[x,h]);return $.useEffect(()=>{E()},[x,E]),$.useEffect(()=>{d.current&&(e?d.current.focus():b())},[e]),$.useEffect(()=>{b()},[n]),$.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[x]).iso2}-option`},h.map((A,M)=>{let S=gi(A),z=S.iso2===n,K=M===x,L=i.includes(S.iso2),X=M===i.length-1,_=o==null?void 0:o.find(I=>I.iso2===S.iso2);return $.createElement($.Fragment,{key:S.iso2},$.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":z,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",L&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",K&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(S),style:c.listItemStyle,title:S.name},$.createElement(Mb,{iso2:S.iso2,src:_==null?void 0:_.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),$.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),$.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),X?$.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},wU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ps,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=$.useState(!1),h=$.useMemo(()=>{if(e)return tu({value:e,field:"iso2",countries:i})},[i,e]),m=$.useRef(null),g=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),f(!0))},y=()=>{var b;let x={title:h==null?void 0:h.name,onClick:()=>f(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=$.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},$.createElement(Mb,{iso2:e,src:(b=a==null?void 0:a.find(v=>v.iso2===e))==null?void 0:b.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&$.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:x}):$.createElement("button",{...x,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return $.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},y(),$.createElement(xU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:x=>{f(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},DU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>$.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);$.forwardRef(({value:e,onChange:t,countries:n=ps,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:y,placeholder:x,disabled:C,name:b,onFocus:v,onBlur:D,required:T,autoFocus:E,...A},M)=>{let{phone:S,inputValue:z,inputRef:K,country:L,setCountry:X,handlePhoneValueChange:_}=iP({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),I=A.disableDialCodeAndPrefix&&o&&(L==null?void 0:L.dialCode);return $.useImperativeHandle(M,()=>K.current?Object.assign(K.current,{setCountry:X,state:{phone:S,inputValue:z,country:L}}):null,[K,X,S,z,L]),$.createElement("div",{ref:M,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},$.createElement(wU,{onSelect:W=>X(W.iso2,{focusOnInput:!a}),flags:u,selectedCountry:L.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),I&&$.createElement(DU,{dialCode:L.dialCode,prefix:A.prefix??"+",disabled:C,...g}),$.createElement("input",{onChange:_,value:z,type:"tel",ref:K,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:x,disabled:C,style:f,name:b,onFocus:v,onBlur:D,autoFocus:E,required:T,...y}))});var oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",x="[object Promise]",C="[object RegExp]",b="[object Set]",v="[object String]",D="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",K="[object Int16Array]",L="[object Int32Array]",X="[object Uint8Array]",_="[object Uint8ClampedArray]",I="[object Uint16Array]",W="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,R=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,U={};U[o]=U[a]=U[E]=U[A]=U[u]=U[c]=U[M]=U[S]=U[z]=U[K]=U[L]=U[m]=U[g]=U[y]=U[C]=U[b]=U[v]=U[D]=U[X]=U[_]=U[I]=U[W]=!0,U[d]=U[f]=U[T]=!1;var N=typeof oa=="object"&&oa&&oa.Object===Object&&oa,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),le=t&&!t.nodeType&&t,$e=le&&!0&&e&&!e.nodeType&&e,De=$e&&$e.exports===le;function Ee(j,oe){return j.set(oe[0],oe[1]),j}function Y(j,oe){return j.add(oe),j}function he(j,oe){for(var ve=-1,Ie=j?j.length:0;++ve<Ie&&oe(j[ve],ve,j)!==!1;);return j}function ye(j,oe){for(var ve=-1,Ie=oe.length,vn=j.length;++ve<Ie;)j[vn+ve]=oe[ve];return j}function fe(j,oe,ve,Ie){for(var vn=-1,Un=j?j.length:0;++vn<Un;)ve=oe(ve,j[vn],vn,j);return ve}function ae(j,oe){for(var ve=-1,Ie=Array(j);++ve<j;)Ie[ve]=oe(ve);return Ie}function Fe(j,oe){return j==null?void 0:j[oe]}function et(j){var oe=!1;if(j!=null&&typeof j.toString!="function")try{oe=!!(j+"")}catch{}return oe}function dt(j){var oe=-1,ve=Array(j.size);return j.forEach(function(Ie,vn){ve[++oe]=[vn,Ie]}),ve}function Dn(j,oe){return function(ve){return j(oe(ve))}}function yt(j){var oe=-1,ve=Array(j.size);return j.forEach(function(Ie){ve[++oe]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,re=Object.prototype,pe=ie["__core-js_shared__"],Ce=function(){var j=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""}(),we=Z.toString,Re=re.hasOwnProperty,Ve=re.toString,mt=RegExp("^"+we.call(Re).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,_t=ie.Symbol,Pn=ie.Uint8Array,Rn=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=re.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Sr=Dn(Object.keys,Object),_n=ze(ie,"DataView"),er=ze(ie,"Map"),On=ze(ie,"Promise"),tr=ze(ie,"Set"),Nn=ze(ie,"WeakMap"),En=ze(Object,"create"),Ir=no(_n),Vt=no(er),Cn=no(On),Ne=no(tr),tt=no(Nn),nn=_t?_t.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(j){var oe=-1,ve=j?j.length:0;for(this.clear();++oe<ve;){var Ie=j[oe];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(j){return this.has(j)&&delete this.__data__[j]}function Ft(j){var oe=this.__data__;if(En){var ve=oe[j];return ve===r?void 0:ve}return Re.call(oe,j)?oe[j]:void 0}function rn(j){var oe=this.__data__;return En?oe[j]!==void 0:Re.call(oe,j)}function jn(j,oe){var ve=this.__data__;return ve[j]=En&&oe===void 0?r:oe,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Ut(j){var oe=-1,ve=j?j.length:0;for(this.clear();++oe<ve;){var Ie=j[oe];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(j){var oe=this.__data__,ve=Ai(oe,j);if(ve<0)return!1;var Ie=oe.length-1;return ve==Ie?oe.pop():tn.call(oe,ve,1),!0}function wt(j){var oe=this.__data__,ve=Ai(oe,j);return ve<0?void 0:oe[ve][1]}function li(j){return Ai(this.__data__,j)>-1}function ba(j,oe){var ve=this.__data__,Ie=Ai(ve,j);return Ie<0?ve.push([j,oe]):ve[Ie][1]=oe,this}Ut.prototype.clear=an,Ut.prototype.delete=kt,Ut.prototype.get=wt,Ut.prototype.has=li,Ut.prototype.set=ba;function hr(j){var oe=-1,ve=j?j.length:0;for(this.clear();++oe<ve;){var Ie=j[oe];this.set(Ie[0],Ie[1])}}function Mo(){this.__data__={hash:new Te,map:new(er||Ut),string:new Te}}function Fo(j){return Ke(this,j).delete(j)}function ko(j){return Ke(this,j).get(j)}function gt(j){return Ke(this,j).has(j)}function nr(j,oe){return Ke(this,j).set(j,oe),this}hr.prototype.clear=Mo,hr.prototype.delete=Fo,hr.prototype.get=ko,hr.prototype.has=gt,hr.prototype.set=nr;function pr(j){this.__data__=new Ut(j)}function Kn(){this.__data__=new Ut}function Bo(j){return this.__data__.delete(j)}function Lr(j){return this.__data__.get(j)}function tl(j){return this.__data__.has(j)}function $s(j,oe){var ve=this.__data__;if(ve instanceof Ut){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([j,oe]),this;ve=this.__data__=new hr(Ie)}return ve.set(j,oe),this}pr.prototype.clear=Kn,pr.prototype.delete=Bo,pr.prototype.get=Lr,pr.prototype.has=tl,pr.prototype.set=$s;function nl(j,oe){var ve=al(j)||_p(j)?ae(j.length,String):[],Ie=ve.length,vn=!!Ie;for(var Un in j)Re.call(j,Un)&&!(vn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Io(j,oe,ve){var Ie=j[oe];(!(Re.call(j,oe)&&ol(Ie,ve))||ve===void 0&&!(oe in j))&&(j[oe]=ve)}function Ai(j,oe){for(var ve=j.length;ve--;)if(ol(j[ve][0],oe))return ve;return-1}function $a(j,oe){return j&&be(oe,ul(oe),j)}function xa(j,oe,ve,Ie,vn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(j,vn,Un,Nr):Ie(j)),zn!==void 0)return zn;if(!As(j))return j;var mn=al(j);if(mn){if(zn=Mn(j),!oe)return ue(j,zn)}else{var Pi=Wt(j),Ri=Pi==f||Pi==h;if(sl(j))return Es(j,oe);if(Pi==y||Pi==o||Ri&&!Un){if(et(j))return Un?j:{};if(zn=Fn(Ri?{}:j),!oe)return _e(j,$a(zn,j))}else{if(!U[Pi])return Un?j:{};zn=Vr(j,Pi,xa,oe)}}Nr||(Nr=new pr);var ll=Nr.get(j);if(ll)return ll;if(Nr.set(j,zn),!mn)var Ps=ve?it(j):ul(j);return he(Ps||j,function(Wn,Ca){Ps&&(Ca=Wn,Wn=j[Ca]),Io(zn,Ca,xa(Wn,oe,ve,Ie,Ca,j,Nr))}),zn}function xs(j){return As(j)?Yt(j):{}}function ws(j,oe,ve){var Ie=oe(j);return al(j)?Ie:ye(Ie,ve(j))}function rl(j){return Ve.call(j)}function Ds(j){if(!As(j)||Da(j))return!1;var oe=dd(j)||et(j)?mt:R;return oe.test(no(j))}function wa(j){if(!Ea(j))return Sr(j);var oe=[];for(var ve in Object(j))Re.call(j,ve)&&ve!="constructor"&&oe.push(ve);return oe}function Es(j,oe){if(oe)return j.slice();var ve=new j.constructor(j.length);return j.copy(ve),ve}function to(j){var oe=new j.constructor(j.byteLength);return new Pn(oe).set(new Pn(j)),oe}function il(j,oe){var ve=oe?to(j.buffer):j.buffer;return new j.constructor(ve,j.byteOffset,j.byteLength)}function Cs(j,oe,ve){var Ie=oe?ve(dt(j),!0):dt(j);return fe(Ie,Ee,new j.constructor)}function Lo(j){var oe=new j.constructor(j.source,V.exec(j));return oe.lastIndex=j.lastIndex,oe}function Ss(j,oe,ve){var Ie=oe?ve(yt(j),!0):yt(j);return fe(Ie,Y,new j.constructor)}function F(j){return fr?Object(fr.call(j)):{}}function Q(j,oe){var ve=oe?to(j.buffer):j.buffer;return new j.constructor(ve,j.byteOffset,j.length)}function ue(j,oe){var ve=-1,Ie=j.length;for(oe||(oe=Array(Ie));++ve<Ie;)oe[ve]=j[ve];return oe}function be(j,oe,ve,Ie){ve||(ve={});for(var vn=-1,Un=oe.length;++vn<Un;){var Nr=oe[vn],zn=void 0;Io(ve,Nr,zn===void 0?j[Nr]:zn)}return ve}function _e(j,oe){return be(j,Ot(j),oe)}function it(j){return ws(j,ul,Ot)}function Ke(j,oe){var ve=j.__data__;return Ts(oe)?ve[typeof oe=="string"?"string":"hash"]:ve.map}function ze(j,oe){var ve=Fe(j,oe);return Ds(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=rl;(_n&&Wt(new _n(new ArrayBuffer(1)))!=A||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=x||tr&&Wt(new tr)!=b||Nn&&Wt(new Nn)!=T)&&(Wt=function(j){var oe=Ve.call(j),ve=oe==y?j.constructor:void 0,Ie=ve?no(ve):void 0;if(Ie)switch(Ie){case Ir:return A;case Vt:return m;case Cn:return x;case Ne:return b;case tt:return T}return oe});function Mn(j){var oe=j.length,ve=j.constructor(oe);return oe&&typeof j[0]=="string"&&Re.call(j,"index")&&(ve.index=j.index,ve.input=j.input),ve}function Fn(j){return typeof j.constructor=="function"&&!Ea(j)?xs(Rn(j)):{}}function Vr(j,oe,ve,Ie){var vn=j.constructor;switch(oe){case E:return to(j);case u:case c:return new vn(+j);case A:return il(j,Ie);case M:case S:case z:case K:case L:case X:case _:case I:case W:return Q(j,Ie);case m:return Cs(j,Ie,ve);case g:case v:return new vn(j);case C:return Lo(j);case b:return Ss(j,Ie,ve);case D:return F(j)}}function rr(j,oe){return oe=oe??i,!!oe&&(typeof j=="number"||G.test(j))&&j>-1&&j%1==0&&j<oe}function Ts(j){var oe=typeof j;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?j!=="__proto__":j===null}function Da(j){return!!Ce&&Ce in j}function Ea(j){var oe=j&&j.constructor,ve=typeof oe=="function"&&oe.prototype||re;return j===ve}function no(j){if(j!=null){try{return we.call(j)}catch{}try{return j+""}catch{}}return""}function Rp(j){return xa(j,!0,!0)}function ol(j,oe){return j===oe||j!==j&&oe!==oe}function _p(j){return Op(j)&&Re.call(j,"callee")&&(!Ln.call(j,"callee")||Ve.call(j)==o)}var al=Array.isArray;function cd(j){return j!=null&&Mp(j.length)&&!dd(j)}function Op(j){return Fp(j)&&cd(j)}var sl=Vn||Mt;function dd(j){var oe=As(j)?Ve.call(j):"";return oe==f||oe==h}function Mp(j){return typeof j=="number"&&j>-1&&j%1==0&&j<=i}function As(j){var oe=typeof j;return!!j&&(oe=="object"||oe=="function")}function Fp(j){return!!j&&typeof j=="object"}function ul(j){return cd(j)?nl(j):wa(j)}function Bt(){return[]}function Mt(){return!1}e.exports=Rp})(Xy,Xy.exports);var aa=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function EU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function CU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function hh(e,t,n,r,i){return EU(this,void 0,void 0,function(){var o,a;return CU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},SU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=aa(n);hh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=aa(t);hh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=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}},TU=class extends Error{constructor(t="Unsupported"){super(t)}};function Fb(e){return new TU(e)}function AU(){return this._qualifierModel||{error:Fb(`unsupported qualifier ${this.constructor.name}`)}}let PU=class{constructor(){this._qualifierModel={}}toJson(){return AU.apply(this)}},rt=class extends PU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,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}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function RU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function _U(){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:Fb(`unsupported action ${this.constructor.name}`)}}let OU=class{constructor(){this._actionModel={}}toJson(){return _U.apply(this)}},Ei=class extends OU{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(),RU(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 ai(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 ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class kb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class sp extends kb{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 sp;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 MU(){return new sp}function oP(){return new kb("faces")}function FU(){return new kb("ocr_text")}class kU extends Ei{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(oP()),r&&r.regionType==="ocr_text"&&i.region(FU()),r&&r.regionType==="custom"&&i.region(sp.fromJson(r)),i}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const aP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},BU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},sP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},uP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},IU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},lP={444:"CHROMA_444",420:"CHROMA_420"},LU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},VU=ms(lP);ms(LU);const NU=ms(aP),jU=ms(BU),cP=ms(sP);ms(uP);ms(IU);class dP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=cP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=sP[n]||n;return new this(o,r||i)}}class KU extends dP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=cP[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 up(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class UU extends Ei{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 en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class zU extends KU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class WU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class HU extends zU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(up(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class GU extends Ei{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(oP()),n&&n.regionType==="custom"&&i.region(MU()),i}}function qU(e){return new kU(e)}function YU(){return new dP("grayscale")}function gx(e){return new HU("colorize",e)}function ZU(){return new UU}function JU(){return new WU}function XU(e){return new GU(e)}let QU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(up(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},yx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Fb(`unsupported action ${this.constructor.name}`)}}};function ez(e){const t=e;return"error"in t&&!!t.error}function tz(){return new ai("ignore_aspect_ratio")}function nz(){return new ai("lossy")}function rz(){return new ai("preserve_transparency")}function iz(e){return new ai("progressive",e)}function oz(){return new ai("region_relative")}function az(){return new ai("relative")}let Bb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},fP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Bb?i=n.getValue():i=n,this._actionModel.actionType=jU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},sz=class extends ai{constructor(t){super("progressive",t)}},tv=class extends fP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(nz()),this}progressive(t){return t instanceof sz?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(iz(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(rz()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},lp=class hP{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 yx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hP?this.actions=this.actions.concat(t.actions):this.actions.push(new yx(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 tv("q",t)),this}format(t){return this.addAction(new tv("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 QU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(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(ez(r))return r;t.push(r)}return{actions:t}}};function vx(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 uz extends en{}class lz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=NU[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 uz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=vx(t),this.addQualifier(new rt("ar",vx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(az())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(oz())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=aP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?tz():a),i&&f.relative(),o&&f.regionRelative(),f}}class Ib extends rt{constructor(t){super("g",new en(t))}}class pP extends Ib{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class mP extends Ib{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class gP extends Ib{constructor(t){super(t)}}function cz(e){return new gP(e)}function yP(...e){const t=[...e];return new mP(t)}function vP(){return new pP}class Pu extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function dz(){return new Pu("ocr_text")}function fz(e){return e&&`${e}`.split(":")[0]==="auto"}function hz(e){const t=Lb(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Lb(e){return`${e}`.replace("g_","")}function pz(e){return{compass:Lb(e),gravityType:"direction"}}function mz(e){return Lb(e)==="ocr_text"}function gz(){return{gravityType:"ocr"}}function yz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function vz(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 bP(e){let t;const n=e==="auto"?new pP: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(vz)}}function bz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=vP().autoFocus(...o);i.fallbackGravity=bP(a)}return i}function $z(e){const n=e.split(":").map(r=>new Pu(r));return new mP(n)}function xz(e){return hz(e)?pz(e):mz(e)?gz():fz(e)||yz(e)?bP(e):bz(typeof e=="string"?$z(e):e)}class Vb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Pu?t:new Pu(t);return new Vb(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 $P extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function wz(e){return e.gravityType==="direction"}function Dz(e){return e.gravityType==="ocr"}function Ez(e){return e.gravityType==="auto"}function Cz(e){const{object:t,weight:n,avoid:r}=e,i=new Vb(new Pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function xP(e){const n=(e.autoFocus||[]).map(Cz);return vP().autoFocus(...n)}function Sz(e){const t=(e.focusOnObjects||[]).map(r=>new Pu(r)),n=yP(...t);if(e.fallbackGravity){const r=xP(e.fallbackGravity);n.fallbackGravity(r)}return n}function Tz(e){return wz(e)?new gP(new $P(e.compass)):Dz(e)?yP(dz()):Ez(e)?xP(e):Sz(e)}class Nb extends lz{gravity(t){this._actionModel.gravity=xz(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(Tz(t.gravity)),n}}class Wc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const wP=100,Az=0;class Pz extends Wc{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}`:`:${wP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var DP=Pz;class jb extends Wc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>up(n)),this}}class EP extends jb{toString(){return`
95
- b_auto:border
96
- ${this._contrast?"_contrast":""}
97
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
98
- `.replace(/\s+/g,"")}}class CP extends jb{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class SP extends CP{toString(){return`
99
- b_auto:border_gradient
100
- ${this._contrast?"_contrast":""}
101
- ${this._gradientColors?`:${this._gradientColors}`:""}
102
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
103
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
104
- `.replace(/\s+/g,"")}}class TP extends CP{toString(){return`
105
- b_auto:predominant_gradient
106
- ${this._contrast?"_contrast":""}
107
- ${this._gradientColors?`:${this._gradientColors}`:""}
108
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
109
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
110
- `.replace(/\s+/g,"")}}class AP extends jb{toString(){return`
111
- b_auto:predominant
112
- ${this._contrast?"_contrast":""}
113
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
114
- `.replace(/\s+/g,"")}}class PP extends Wc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function RP(e){return`${e}`.replace("b_","")}function Rz(){return{backgroundType:"auto"}}function _z(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 Kb(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({},Kb(e)),{backgroundType:"border"})}function _P(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Kb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Mz(e){return Object.assign(Object.assign({},_P(e)),{backgroundType:"borderGradient"})}function Fz(e){return{backgroundType:"color",color:RP(e)}}function kz(e){return Object.assign(Object.assign({},Kb(e)),{backgroundType:"predominant"})}function Bz(e){return Object.assign(Object.assign({},_P(e)),{backgroundType:"predominantGradient"})}function Iz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function Lz(e){return RP(e)==="auto"?Rz():e instanceof DP?_z(e):e instanceof EP?Oz(e):e instanceof SP?Mz(e):e instanceof AP?kz(e):e instanceof TP?Bz(e):e instanceof PP?Iz(e):Fz(e)}function Vz(){return new Bb("svg")}function Ub(){return new Bb("auto")}function OP(){return new EP}function MP(){return new Wc("auto")}function FP(){return new SP}function kP(){return new TP}function BP(){return new AP}function IP(e){return new Wc(up(e))}function Nz(){return new DP}function LP(){return new PP}const VP={auto:MP,border:OP,borderGradient:FP,predominantGradient:kP,predominant:BP,color:IP,blurred:Nz,generativeFill:LP};function jz(e){const{brightness:t,intensity:n}=e,r=VP.blurred();return r.brightness(t??Az),r.intensity(n??wP),r}function bx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function $x(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function Kz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Uz(e){const{backgroundType:t}=e;switch(t){case"auto":return MP();case"blurred":return jz(e);case"border":return $x(OP(),e);case"borderGradient":return bx(FP(),e);case"predominant":return $x(BP(),e);case"predominantGradient":return bx(kP(),e);case"generativeFill":return Kz(LP(),e);default:return IP(e.color)}}class zz extends Nb{background(t){return this._actionModel.background=Lz(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(Uz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Wz extends Nb{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 Hz extends Nb{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 Gz(e,t){return new Wz("crop",e,t)}function qz(e,t){return new Hz("fill",e,t)}function Yz(e,t){return new zz("pad",e,t)}class Zz extends fP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=lP[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=uP[n]||n,a=new this(o);if(r){const u=VU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function cp(e){return new tv("f",e)}function dp(e){return new Zz(e)}function Jz(){return new $P("north_east")}gx(70).color("black"),gx(40).color("white"),YU(),JU();var Xz=new lp().effect(ZU()).delivery(dp("auto")).delivery(cp(Vz())),Qz=new lp().effect(XU()).delivery(dp("auto")).delivery(cp(Ub())),eW=new lp().effect(qU(2e3)).delivery(dp("auto")).delivery(cp(Ub())),tW=new lp().resize(Yz("iw_div_2").aspectRatio(1).background(VP.auto())).resize(Gz(1,1).gravity(cz(Jz()))).resize(qz().height("ih").width("iw")).delivery(dp("auto")).delivery(cp(Ub())),xx={vectorize:Xz,pixelate:Qz,blur:eW,"predominant-color":tW},wx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Dx={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Ex="?_a=",nW=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=Dx,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=aa(n);hh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,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(o){r.appendSourceTag(aa(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(aa(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(Ex),d=c[1]?"".concat(Ex).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(Dx[n]||n),this.videoElement.appendChild(o)},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=aa(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 o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);hh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),rW=typeof oa=="object"&&oa&&oa.Object===Object&&oa,iW=typeof self=="object"&&self&&self.Object===Object&&self;rW||iW||Function("return this")();function zb(){return typeof window<"u"}function oW(e){return e instanceof HTMLImageElement}function aW(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return sW.bind(null,r,o)}function sW(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),zb()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=lW(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function uW(){return window&&"IntersectionObserver"in window}function lW(e,t,n,r){try{if(!uW())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function cW(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return dW.bind(null,r)}function dW(e,t,n,r,i,o){xx[e]||(e="vectorize");var a=xx[e].actions,u=aa(n);if(a.forEach(function(d){u.addAction(d)}),!zb())return n.transformation=u.transformation,!0;if(oW(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=ev(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=wx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=wx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function fW(e,t,n){var r=aa(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function ph(e){e.cleanupCallbacks.forEach(function(t){t()})}var nv=function(e,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nv(e,t)};function NP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vc=function(){return vc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vc.apply(this,arguments)};function jP(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 bc={exports:{}},Rt={};/*
115
- object-assign
116
- (c) Sindre Sorhus
117
- @license MIT
118
- */var Cx=Object.getOwnPropertySymbols,hW=Object.prototype.hasOwnProperty,pW=Object.prototype.propertyIsEnumerable;function mW(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gW(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var KP=gW()?Object.assign:function(e,t){for(var n,r=mW(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)hW.call(n,a)&&(r[a]=n[a]);if(Cx){i=Cx(n);for(var u=0;u<i.length;u++)pW.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
119
- * react.production.min.js
120
- *
121
- * Copyright (c) Facebook, Inc. and its affiliates.
122
- *
123
- * This source code is licensed under the MIT license found in the
124
- * LICENSE file in the root directory of this source tree.
125
- */var Wb=KP,Ci=typeof Symbol=="function"&&Symbol.for,Hc=Ci?Symbol.for("react.element"):60103,yW=Ci?Symbol.for("react.portal"):60106,vW=Ci?Symbol.for("react.fragment"):60107,bW=Ci?Symbol.for("react.strict_mode"):60108,$W=Ci?Symbol.for("react.profiler"):60114,xW=Ci?Symbol.for("react.provider"):60109,wW=Ci?Symbol.for("react.context"):60110,DW=Ci?Symbol.for("react.forward_ref"):60112,EW=Ci?Symbol.for("react.suspense"):60113,CW=Ci?Symbol.for("react.memo"):60115,SW=Ci?Symbol.for("react.lazy"):60116,Sx=typeof Symbol=="function"&&Symbol.iterator;function Gc(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var UP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zP={};function zu(e,t,n){this.props=e,this.context=t,this.refs=zP,this.updater=n||UP}zu.prototype.isReactComponent={};zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Gc(85));this.updater.enqueueSetState(this,e,t,"setState")};zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function WP(){}WP.prototype=zu.prototype;function Hb(e,t,n){this.props=e,this.context=t,this.refs=zP,this.updater=n||UP}var Gb=Hb.prototype=new WP;Gb.constructor=Hb;Wb(Gb,zu.prototype);Gb.isPureReactComponent=!0;var qb={current:null},HP=Object.prototype.hasOwnProperty,GP={key:!0,ref:!0,__self:!0,__source:!0};function qP(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)HP.call(t,r)&&!GP.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Hc,type:e,key:o,ref:a,props:i,_owner:qb.current}}function TW(e,t){return{$$typeof:Hc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hc}function AW(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var YP=/\/+/g,mh=[];function ZP(e,t,n,r){if(mh.length){var i=mh.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function JP(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>mh.length&&mh.push(e)}function rv(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hc:case yW:o=!0}}if(o)return n(r,e,t===""?"."+bg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+bg(i,a);o+=rv(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=Sx&&e[Sx]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+bg(i,a++),o+=rv(i,u,n,r);else if(i==="object")throw n=""+e,Error(Gc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function iv(e,t,n){return e==null?0:rv(e,"",t,n)}function bg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?AW(e.key):t.toString(36)}function PW(e,t){e.func.call(e.context,t,e.count++)}function RW(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ov(e,r,n,function(o){return o}):e!=null&&(Yb(e)&&(e=TW(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(YP,"$&/")+"/")+n)),r.push(e))}function ov(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(YP,"$&/")+"/"),t=ZP(t,o,r,i),iv(e,RW,t),JP(t)}var XP={current:null};function Oo(){var e=XP.current;if(e===null)throw Error(Gc(321));return e}var _W={ReactCurrentDispatcher:XP,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:qb,IsSomeRendererActing:{current:!1},assign:Wb};Rt.Children={map:function(e,t,n){if(e==null)return e;var r=[];return ov(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=ZP(null,null,t,n),iv(e,PW,t),JP(t)},count:function(e){return iv(e,function(){return null},null)},toArray:function(e){var t=[];return ov(e,t,null,function(n){return n}),t},only:function(e){if(!Yb(e))throw Error(Gc(143));return e}};Rt.Component=zu;Rt.Fragment=vW;Rt.Profiler=$W;Rt.PureComponent=Hb;Rt.StrictMode=bW;Rt.Suspense=EW;Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_W;Rt.cloneElement=function(e,t,n){if(e==null)throw Error(Gc(267,e));var r=Wb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=qb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)HP.call(t,c)&&!GP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:Hc,type:e.type,key:i,ref:o,props:r,_owner:a}};Rt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:wW,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:xW,_context:e},e.Consumer=e};Rt.createElement=qP;Rt.createFactory=function(e){var t=qP.bind(null,e);return t.type=e,t};Rt.createRef=function(){return{current:null}};Rt.forwardRef=function(e){return{$$typeof:DW,render:e}};Rt.isValidElement=Yb;Rt.lazy=function(e){return{$$typeof:SW,_ctor:e,_status:-1,_result:null}};Rt.memo=function(e,t){return{$$typeof:CW,type:e,compare:t===void 0?null:t}};Rt.useCallback=function(e,t){return Oo().useCallback(e,t)};Rt.useContext=function(e,t){return Oo().useContext(e,t)};Rt.useDebugValue=function(){};Rt.useEffect=function(e,t){return Oo().useEffect(e,t)};Rt.useImperativeHandle=function(e,t,n){return Oo().useImperativeHandle(e,t,n)};Rt.useLayoutEffect=function(e,t){return Oo().useLayoutEffect(e,t)};Rt.useMemo=function(e,t){return Oo().useMemo(e,t)};Rt.useReducer=function(e,t,n){return Oo().useReducer(e,t,n)};Rt.useRef=function(e){return Oo().useRef(e)};Rt.useState=function(e){return Oo().useState(e)};Rt.version="16.14.0";var Pt={},OW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MW=OW,FW=Function.call.bind(Object.prototype.hasOwnProperty),av=function(){};if(process.env.NODE_ENV!=="production"){var kW=MW,sv={},BW=FW;av=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function QP(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(BW(e,o)){var a;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,r,n,null,kW)}catch(d){a=d}if(a&&!(a instanceof Error)&&av((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in sv)){sv[a.message]=!0;var c=i?i():"";av("Failed "+n+" type: "+a.message+(c??""))}}}}QP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(sv={})};var IW=QP;/** @license React v16.14.0
126
- * react.development.js
127
- *
128
- * Copyright (c) Facebook, Inc. and its affiliates.
129
- *
130
- * This source code is licensed under the MIT license found in the
131
- * LICENSE file in the root directory of this source tree.
132
- */process.env.NODE_ENV!=="production"&&function(){var e=KP,t=IW,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,x=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,T=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function M(F){if(F===null||typeof F!="object")return null;var Q=E&&F[E]||F[A];return typeof Q=="function"?Q:null}var S={current:null},z={suspense:null},K={current:null},L=/^(.*)[\\\/]/;function X(F,Q,ue){var be="";if(Q){var _e=Q.fileName,it=_e.replace(L,"");if(/^index\./.test(it)){var Ke=_e.match(L);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(L,"");it=Ot+"/"+it}}}be=" (at "+it+":"+Q.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
133
- in `+(F||"Unknown")+be}var _=1;function I(F){return F._status===_?F._result:null}function W(F,Q,ue){var be=Q.displayName||Q.name||"";return F.displayName||(be!==""?ue+"("+be+")":ue)}function k(F){if(F==null)return null;if(typeof F.tag=="number"&&ie("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof F=="function")return F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if(typeof F=="object")switch(F.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return W(F,F.render,"ForwardRef");case x:return k(F.type);case b:return k(F.render);case C:{var Q=F,ue=I(Q);if(ue)return k(ue);break}}return null}var V={},R=null;function G(F){R=F}V.getCurrentStack=null,V.getStackAddendum=function(){var F="";if(R){var Q=k(R.type),ue=R._owner;F+=X(Q,R._source,ue&&k(ue.type))}var be=V.getCurrentStack;return be&&(F+=be()||""),F};var U={current:!1},N={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:z,ReactCurrentOwner:K,IsSomeRendererActing:U,assign:e};e(N,{ReactDebugCurrentFrame:V,ReactComponentTreeHook:{}});function ne(F){{for(var Q=arguments.length,ue=new Array(Q>1?Q-1:0),be=1;be<Q;be++)ue[be-1]=arguments[be];le("warn",F,ue)}}function ie(F){{for(var Q=arguments.length,ue=new Array(Q>1?Q-1:0),be=1;be<Q;be++)ue[be-1]=arguments[be];le("error",F,ue)}}function le(F,Q,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
134
- in`)===0;if(!be){var _e=N.ReactDebugCurrentFrame,it=_e.getStackAddendum();it!==""&&(Q+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+Q),Function.prototype.apply.call(console[F],console,Ke);try{var ze=0,Ot="Warning: "+Q.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var $e={};function De(F,Q){{var ue=F.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",_e=be+"."+Q;if($e[_e])return;ie("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Q,be),$e[_e]=!0}}var Ee={isMounted:function(F){return!1},enqueueForceUpdate:function(F,Q,ue){De(F,"forceUpdate")},enqueueReplaceState:function(F,Q,ue,be){De(F,"replaceState")},enqueueSetState:function(F,Q,ue,be){De(F,"setState")}},Y={};Object.freeze(Y);function he(F,Q,ue){this.props=F,this.context=Q,this.refs=Y,this.updater=ue||Ee}he.prototype.isReactComponent={},he.prototype.setState=function(F,Q){if(!(typeof F=="object"||typeof F=="function"||F==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,Q,"setState")},he.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};{var ye={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},fe=function(F,Q){Object.defineProperty(he.prototype,F,{get:function(){ne("%s(...) is deprecated in plain JavaScript React classes. %s",Q[0],Q[1])}})};for(var ae in ye)ye.hasOwnProperty(ae)&&fe(ae,ye[ae])}function Fe(){}Fe.prototype=he.prototype;function et(F,Q,ue){this.props=F,this.context=Q,this.refs=Y,this.updater=ue||Ee}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,he.prototype),dt.isPureReactComponent=!0;function Dn(){var F={current:null};return Object.seal(F),F}var yt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Z,re,pe;pe={};function Ce(F){if(yt.call(F,"ref")){var Q=Object.getOwnPropertyDescriptor(F,"ref").get;if(Q&&Q.isReactWarning)return!1}return F.ref!==void 0}function we(F){if(yt.call(F,"key")){var Q=Object.getOwnPropertyDescriptor(F,"key").get;if(Q&&Q.isReactWarning)return!1}return F.key!==void 0}function Re(F,Q){var ue=function(){Z||(Z=!0,ie("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Q))};ue.isReactWarning=!0,Object.defineProperty(F,"key",{get:ue,configurable:!0})}function Ve(F,Q){var ue=function(){re||(re=!0,ie("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Q))};ue.isReactWarning=!0,Object.defineProperty(F,"ref",{get:ue,configurable:!0})}function mt(F){if(typeof F.ref=="string"&&K.current&&F.__self&&K.current.stateNode!==F.__self){var Q=k(K.current.type);pe[Q]||(ie('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',k(K.current.type),F.ref),pe[Q]=!0)}}var ut=function(F,Q,ue,be,_e,it,Ke){var ze={$$typeof:i,type:F,key:Q,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function _t(F,Q,ue){var be,_e={},it=null,Ke=null,ze=null,Ot=null;if(Q!=null){Ce(Q)&&(Ke=Q.ref,mt(Q)),we(Q)&&(it=""+Q.key),ze=Q.__self===void 0?null:Q.__self,Ot=Q.__source===void 0?null:Q.__source;for(be in Q)yt.call(Q,be)&&!q.hasOwnProperty(be)&&(_e[be]=Q[be])}var Wt=arguments.length-2;if(Wt===1)_e.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),_e.children=Mn}if(F&&F.defaultProps){var Vr=F.defaultProps;for(be in Vr)_e[be]===void 0&&(_e[be]=Vr[be])}if(it||Ke){var rr=typeof F=="function"?F.displayName||F.name||"Unknown":F;it&&Re(_e,rr),Ke&&Ve(_e,rr)}return ut(F,it,Ke,ze,Ot,K.current,_e)}function Pn(F,Q){var ue=ut(F.type,Q,F.ref,F._self,F._source,F._owner,F.props);return ue}function Rn(F,Q,ue){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var be,_e=e({},F.props),it=F.key,Ke=F.ref,ze=F._self,Ot=F._source,Wt=F._owner;if(Q!=null){Ce(Q)&&(Ke=Q.ref,Wt=K.current),we(Q)&&(it=""+Q.key);var Mn;F.type&&F.type.defaultProps&&(Mn=F.type.defaultProps);for(be in Q)yt.call(Q,be)&&!q.hasOwnProperty(be)&&(Q[be]===void 0&&Mn!==void 0?_e[be]=Mn[be]:_e[be]=Q[be])}var Fn=arguments.length-2;if(Fn===1)_e.children=ue;else if(Fn>1){for(var Vr=Array(Fn),rr=0;rr<Fn;rr++)Vr[rr]=arguments[rr+2];_e.children=Vr}return ut(F.type,it,Ke,ze,Ot,Wt,_e)}function Yt(F){return typeof F=="object"&&F!==null&&F.$$typeof===i}var Ln=".",tn=":";function vt(F){var Q=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+F).replace(Q,function(_e){return ue[_e]});return"$"+be}var Vn=!1,Sr=/\/+/g;function _n(F){return(""+F).replace(Sr,"$&/")}var er=10,On=[];function tr(F,Q,ue,be){if(On.length){var _e=On.pop();return _e.result=F,_e.keyPrefix=Q,_e.func=ue,_e.context=be,_e.count=0,_e}else return{result:F,keyPrefix:Q,func:ue,context:be,count:0}}function Nn(F){F.result=null,F.keyPrefix=null,F.func=null,F.context=null,F.count=0,On.length<er&&On.push(F)}function En(F,Q,ue,be){var _e=typeof F;(_e==="undefined"||_e==="boolean")&&(F=null);var it=!1;if(F===null)it=!0;else switch(_e){case"string":case"number":it=!0;break;case"object":switch(F.$$typeof){case i:case o:it=!0}}if(it)return ue(be,F,Q===""?Ln+Vt(F,0):Q),1;var Ke,ze,Ot=0,Wt=Q===""?Ln:Q+tn;if(Array.isArray(F))for(var Mn=0;Mn<F.length;Mn++)Ke=F[Mn],ze=Wt+Vt(Ke,Mn),Ot+=En(Ke,ze,ue,be);else{var Fn=M(F);if(typeof Fn=="function"){Fn===F.entries&&(Vn||ne("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Vn=!0);for(var Vr=Fn.call(F),rr,Ts=0;!(rr=Vr.next()).done;)Ke=rr.value,ze=Wt+Vt(Ke,Ts++),Ot+=En(Ke,ze,ue,be)}else if(_e==="object"){var Da="";Da=" If you meant to render a collection of children, use an array instead."+V.getStackAddendum();var Ea=""+F;throw Error("Objects are not valid as a React child (found: "+(Ea==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Ea)+")."+Da)}}return Ot}function Ir(F,Q,ue){return F==null?0:En(F,"",Q,ue)}function Vt(F,Q){return typeof F=="object"&&F!==null&&F.key!=null?vt(F.key):Q.toString(36)}function Cn(F,Q,ue){var be=F.func,_e=F.context;be.call(_e,Q,F.count++)}function Ne(F,Q,ue){if(F==null)return F;var be=tr(null,null,Q,ue);Ir(F,Cn,be),Nn(be)}function tt(F,Q,ue){var be=F.result,_e=F.keyPrefix,it=F.func,Ke=F.context,ze=it.call(Ke,Q,F.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,_e+(ze.key&&(!Q||Q.key!==ze.key)?_n(ze.key)+"/":"")+ue)),be.push(ze))}function nn(F,Q,ue,be,_e){var it="";ue!=null&&(it=_n(ue)+"/");var Ke=tr(Q,it,be,_e);Ir(F,tt,Ke),Nn(Ke)}function fr(F,Q,ue){if(F==null)return F;var be=[];return nn(F,be,null,Q,ue),be}function Te(F){return Ir(F,function(){return null},null)}function je(F){var Q=[];return nn(F,Q,null,function(ue){return ue}),Q}function Ye(F){if(!Yt(F))throw Error("React.Children.only expected to receive a single React element child.");return F}function Ft(F,Q){Q===void 0?Q=null:Q!==null&&typeof Q!="function"&&ie("createContext: Expected the optional second argument to be a function. Instead received: %s",Q);var ue={$$typeof:f,_calculateChangedBits:Q,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,_e=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return _e||(_e=!0,ie("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,ie("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(F){var Q={$$typeof:C,_ctor:F,_status:-1,_result:null};{var ue,be;Object.defineProperties(Q,{defaultProps:{configurable:!0,get:function(){return ue},set:function(_e){ie("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=_e,Object.defineProperty(Q,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(_e){ie("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=_e,Object.defineProperty(Q,"propTypes",{enumerable:!0})}}})}return Q}function jn(F){return F!=null&&F.$$typeof===x?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof F!="function"?ie("forwardRef requires a render function but was given %s.",F===null?"null":typeof F):F.length!==0&&F.length!==2&&ie("forwardRef render functions accept exactly two parameters: props and ref. %s",F.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),F!=null&&(F.defaultProps!=null||F.propTypes!=null)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:F}}function Ut(F){return typeof F=="string"||typeof F=="function"||F===a||F===h||F===c||F===u||F===g||F===y||typeof F=="object"&&F!==null&&(F.$$typeof===C||F.$$typeof===x||F.$$typeof===d||F.$$typeof===f||F.$$typeof===m||F.$$typeof===v||F.$$typeof===D||F.$$typeof===T||F.$$typeof===b)}function an(F,Q){return Ut(F)||ie("memo: The first argument must be a component. Instead received: %s",F===null?"null":typeof F),{$$typeof:x,type:F,compare:Q===void 0?null:Q}}function kt(){var F=S.current;if(F===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
135
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
136
- 2. You might be breaking the Rules of Hooks
137
- 3. You might have more than one copy of React in the same app
138
- See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return F}function wt(F,Q){var ue=kt();if(Q!==void 0&&ie("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Q,typeof Q=="number"&&Array.isArray(arguments[2])?`
139
-
140
- Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),F._context!==void 0){var be=F._context;be.Consumer===F?ie("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===F&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return ue.useContext(F,Q)}function li(F){var Q=kt();return Q.useState(F)}function ba(F,Q,ue){var be=kt();return be.useReducer(F,Q,ue)}function hr(F){var Q=kt();return Q.useRef(F)}function Mo(F,Q){var ue=kt();return ue.useEffect(F,Q)}function Fo(F,Q){var ue=kt();return ue.useLayoutEffect(F,Q)}function ko(F,Q){var ue=kt();return ue.useCallback(F,Q)}function gt(F,Q){var ue=kt();return ue.useMemo(F,Q)}function nr(F,Q,ue){var be=kt();return be.useImperativeHandle(F,Q,ue)}function pr(F,Q){{var ue=kt();return ue.useDebugValue(F,Q)}}var Kn;Kn=!1;function Bo(){if(K.current){var F=k(K.current.type);if(F)return`
141
-
142
- Check the render method of \``+F+"`."}return""}function Lr(F){if(F!==void 0){var Q=F.fileName.replace(/^.*[\\\/]/,""),ue=F.lineNumber;return`
143
-
144
- Check your code at `+Q+":"+ue+"."}return""}function tl(F){return F!=null?Lr(F.__source):""}var $s={};function nl(F){var Q=Bo();if(!Q){var ue=typeof F=="string"?F:F.displayName||F.name;ue&&(Q=`
145
-
146
- Check the top-level render call using <`+ue+">.")}return Q}function Io(F,Q){if(!(!F._store||F._store.validated||F.key!=null)){F._store.validated=!0;var ue=nl(Q);if(!$s[ue]){$s[ue]=!0;var be="";F&&F._owner&&F._owner!==K.current&&(be=" It was passed a child from "+k(F._owner.type)+"."),G(F),ie('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),G(null)}}}function Ai(F,Q){if(typeof F=="object"){if(Array.isArray(F))for(var ue=0;ue<F.length;ue++){var be=F[ue];Yt(be)&&Io(be,Q)}else if(Yt(F))F._store&&(F._store.validated=!0);else if(F){var _e=M(F);if(typeof _e=="function"&&_e!==F.entries)for(var it=_e.call(F),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&Io(Ke.value,Q)}}}function $a(F){{var Q=F.type;if(Q==null||typeof Q=="string")return;var ue=k(Q),be;if(typeof Q=="function")be=Q.propTypes;else if(typeof Q=="object"&&(Q.$$typeof===m||Q.$$typeof===x))be=Q.propTypes;else return;be?(G(F),t(be,F.props,"prop",ue,V.getStackAddendum),G(null)):Q.PropTypes!==void 0&&!Kn&&(Kn=!0,ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof Q.getDefaultProps=="function"&&!Q.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(F){{G(F);for(var Q=Object.keys(F.props),ue=0;ue<Q.length;ue++){var be=Q[ue];if(be!=="children"&&be!=="key"){ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}F.ref!==null&&ie("Invalid attribute `ref` supplied to `React.Fragment`."),G(null)}}function xs(F,Q,ue){var be=Ut(F);if(!be){var _e="";(F===void 0||typeof F=="object"&&F!==null&&Object.keys(F).length===0)&&(_e+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=tl(Q);it?_e+=it:_e+=Bo();var Ke;F===null?Ke="null":Array.isArray(F)?Ke="array":F!==void 0&&F.$$typeof===i?(Ke="<"+(k(F.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof F,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,_e)}var ze=_t.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],F);return F===a?xa(ze):$a(ze),ze}var ws=!1;function rl(F){var Q=xs.bind(null,F);return Q.type=F,ws||(ws=!0,ne("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Q,"type",{enumerable:!1,get:function(){return ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:F}),F}}),Q}function Ds(F,Q,ue){for(var be=Rn.apply(this,arguments),_e=2;_e<arguments.length;_e++)Ai(arguments[_e],be.type);return $a(be),be}try{var wa=Object.freeze({}),Es=new Map([[wa,null]]),to=new Set([wa]);Es.set(0,0),to.add(0)}catch{}var il=xs,Cs=Ds,Lo=rl,Ss={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Ss,Pt.Component=he,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,Pt.cloneElement=Cs,Pt.createContext=Ft,Pt.createElement=il,Pt.createFactory=Lo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=ko,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Mo,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Fo,Pt.useMemo=gt,Pt.useReducer=ba,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?bc.exports=Rt:bc.exports=Pt;var nu=bc.exports,$g={sdkSemver:"1.13.1",techVersion:nu.version,sdkCode:"J"},LW=function(e){NP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=nu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new SU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=jP(n,["cldImg","plugins"]);if(zb())return nu.createElement("img",vc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=fW(this.props.plugins,this.props.cldImg,$g);return nu.createElement("img",vc({},r,{src:i}))},t}(nu.Component),VW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){NP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=bc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new nW(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(){ph(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ph(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return VW.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=jP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return nu.createElement("video",vc({},r,{ref:this.attachRef}))},t})(bc.exports.Component);function NW(e){return!(typeof e!="object"||e instanceof Array)}class jW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return NW(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 Tx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Zb extends jW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Tx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Tx);return new Zb(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 $c{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 KW extends Error{constructor(t="Unsupported"){super(t)}}function Jb(e){return new KW(e)}function UW(){return this._qualifierModel||{error:Jb(`unsupported qualifier ${this.constructor.name}`)}}class zW{constructor(){this._qualifierModel={}}toJson(){return UW.apply(this)}}class fp extends zW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof $c?this.qualifierValue=n:(this.qualifierValue=new $c,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 ua extends fp{constructor(t,n){let r;n?r=new $c([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function WW(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function HW(){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:Jb(`unsupported action ${this.constructor.name}`)}}class GW{constructor(){this._actionModel={}}toJson(){return HW.apply(this)}}class Xb extends GW{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(),WW(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 ua(r)):this.qualifiers.set(n,new fp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ua(t)):t instanceof ua&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function qW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class YW extends Xb{constructor(t){super(),this._actionModel={},this.addQualifier(new fp("b",new $c(qW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Ax{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Jb(`unsupported action ${this.constructor.name}`)}}}function ZW(e){const t=e;return"error"in t&&!!t.error}function JW(){return new ua("lossy")}function XW(){return new ua("preserve_transparency")}function QW(e){return new ua("progressive",e)}class eH extends $c{constructor(t){super(t),this.val=t}getValue(){return this.val}}function gs(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const tH={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},nH={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},rH={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},iH={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},oH={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aH={444:"CHROMA_444",420:"CHROMA_420"},sH={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};gs(aH);gs(sH);gs(tH);const uH=gs(nH);gs(rH);gs(iH);gs(oH);class lH extends Xb{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof eH?i=n.getValue():i=n,this._actionModel.actionType=uH[t],this._actionModel[r]=i,this.addQualifier(new fp(t,n))}}class cH extends ua{constructor(t){super("progressive",t)}}class gh extends lH{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(JW()),this}progressive(t){return t instanceof cH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(QW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(XW()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class hp{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 Ax(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hp?this.actions=this.actions.concat(t.actions):this.actions.push(new Ax(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 gh("q",t)),this}format(t){return this.addAction(new gh("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 YW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Xb;let r=t;return typeof t=="string"&&(r=new ua(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(ZW(r))return r;t.push(r)}return{actions:t}}}class dH extends hp{}class fH extends hp{}function hH(e){return e.match(/^https?:\//)}function pH(e){return e.indexOf("/")<0}function mH(e){return e.match(/^v[0-9]+/)}function gH(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function yH(e){return e||"image"}function vH(e){return e||"upload"}function bH(e,t,n){const r=n!==!1;return t?`v${t}`:mH(e)||hH(e)||pH(e)?"":r?"v1":""}function Qb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=$H(i,r/i.length)),i.slice(0,r)+String(e))}function $H(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const xH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yh={};let Px=0;xH.split("").forEach(e=>{let t=Px.toString(2);t=Qb(t,6,"0"),yh[t]=e,Px++});function wH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function DH(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 Qb(t,2,"0")}).join(".")}function Rx(e){let t="";const r=e.split(".").length*6,i=wH(e),o=DH(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=Qb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=yh[c]}),t}function EH(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"),t}const CH="1.21.0";function SH(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return yh[o]+yh[a]}function TH(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function AH(e){const t={techVersion:TH(),sdkCode:"T",sdkSemver:CH.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 _x(e){const t=AH(e),n=EH(t);try{const r=PH(n.techVersion),i=Rx(n.sdkSemver),o=Rx(r),a=SH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function PH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Ox={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class RH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Zb(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=yH(this.assetType),n=vH(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Ox[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Ox).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=gH(this.cloudName,this.urlConfig),i=t?t.toString():"",o=bH(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",_x(n)),d=f.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 d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${_x(n)}`);return d?`${u}?${d}`:u}}}class e6 extends RH{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 gh("q",t)),this}format(t){return this.addAction(new gh("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 _H extends e6{constructor(t,n,r){super(t,n,r,new dH)}}class OH extends e6{constructor(t,n,r){super(t,n,r,new fH),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class MH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new _H(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new OH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Mx;function FH(){return Mx||(Mx=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
147
- * Prism: Lightweight, robust, elegant syntax highlighting
148
- *
149
- * @license MIT <https://opensource.org/licenses/MIT>
150
- * @author Lea Verou <https://lea.verou.me>
151
- * @namespace
152
- * @public
153
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(D){return D instanceof c?new c(D.type,v(D.content),D.alias):Array.isArray(D)?D.map(v):D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(D,T){T=T||{};var E,A;switch(u.util.type(D)){case"Object":if(A=u.util.objId(D),T[A])return T[A];E={},T[A]=E;for(var M in D)D.hasOwnProperty(M)&&(E[M]=v(D[M],T));return E;case"Array":return A=u.util.objId(D),T[A]?T[A]:(E=[],T[A]=E,D.forEach(function(S,z){E[z]=v(S,T)}),E);default:return D}},getLanguage:function(v){for(;v;){var D=i.exec(v.className);if(D)return D[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,D){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(v){var D=document.getElementsByTagName("script");for(var T in D)if(D[T].src==v)return D[T]}return null}},isActive:function(v,D,T){for(var E="no-"+D;v;){var A=v.classList;if(A.contains(D))return!0;if(A.contains(E))return!1;v=v.parentElement}return!!T}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,D){var T=u.util.clone(u.languages[v]);for(var E in D)T[E]=D[E];return T},insertBefore:function(v,D,T,E){E=E||u.languages;var A=E[v],M={};for(var S in A)if(A.hasOwnProperty(S)){if(S==D)for(var z in T)T.hasOwnProperty(z)&&(M[z]=T[z]);T.hasOwnProperty(S)||(M[S]=A[S])}var K=E[v];return E[v]=M,u.languages.DFS(u.languages,function(L,X){X===K&&L!=v&&(this[L]=M)}),M},DFS:function v(D,T,E,A){A=A||{};var M=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){T.call(D,S,D[S],E||S);var z=D[S],K=u.util.type(z);K==="Object"&&!A[M(z)]?(A[M(z)]=!0,v(z,T,null,A)):K==="Array"&&!A[M(z)]&&(A[M(z)]=!0,v(z,T,S,A))}}},plugins:{},highlightAll:function(v,D){u.highlightAllUnder(document,v,D)},highlightAllUnder:function(v,D,T){var E={callback:T,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var A=0,M;M=E.elements[A++];)u.highlightElement(M,D===!0,E.callback)},highlightElement:function(v,D,T){var E=u.util.getLanguage(v),A=u.languages[E];u.util.setLanguage(v,E);var M=v.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(M,E);var S=v.textContent,z={element:v,language:E,grammar:A,code:S};function K(X){z.highlightedCode=X,u.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,u.hooks.run("after-highlight",z),u.hooks.run("complete",z),T&&T.call(z.element)}if(u.hooks.run("before-sanity-check",z),M=z.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!z.code){u.hooks.run("complete",z),T&&T.call(z.element);return}if(u.hooks.run("before-highlight",z),!z.grammar){K(u.util.encode(z.code));return}if(D&&r.Worker){var L=new Worker(u.filename);L.onmessage=function(X){K(X.data)},L.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else K(u.highlight(z.code,z.grammar,z.language))},highlight:function(v,D,T){var E={code:v,grammar:D,language:T};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(v,D){var T=D.rest;if(T){for(var E in T)D[E]=T[E];delete D.rest}var A=new h;return m(A,A.head,v),f(v,A,D,A.head,0),y(A)},hooks:{all:{},add:function(v,D){var T=u.hooks.all;T[v]=T[v]||[],T[v].push(D)},run:function(v,D){var T=u.hooks.all[v];if(!(!T||!T.length))for(var E=0,A;A=T[E++];)A(D)}},Token:c};r.Prism=u;function c(v,D,T,E){this.type=v,this.content=D,this.alias=T,this.length=(E||"").length|0}c.stringify=function v(D,T){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(K){E+=v(K,T)}),E}var A={type:D.type,content:v(D.content,T),tag:"span",classes:["token",D.type],attributes:{},language:T},M=D.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(A.classes,M):A.classes.push(M)),u.hooks.run("wrap",A);var S="";for(var z in A.attributes)S+=" "+z+'="'+(A.attributes[z]||"").replace(/"/g,"&quot;")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+S+">"+A.content+"</"+A.tag+">"};function d(v,D,T,E){v.lastIndex=D;var A=v.exec(T);if(A&&E&&A[1]){var M=A[1].length;A.index+=M,A[0]=A[0].slice(M)}return A}function f(v,D,T,E,A,M){for(var S in T)if(!(!T.hasOwnProperty(S)||!T[S])){var z=T[S];z=Array.isArray(z)?z:[z];for(var K=0;K<z.length;++K){if(M&&M.cause==S+","+K)return;var L=z[K],X=L.inside,_=!!L.lookbehind,I=!!L.greedy,W=L.alias;if(I&&!L.pattern.global){var k=L.pattern.toString().match(/[imsuy]*$/)[0];L.pattern=RegExp(L.pattern.source,k+"g")}for(var V=L.pattern||L,R=E.next,G=A;R!==D.tail&&!(M&&G>=M.reach);G+=R.value.length,R=R.next){var U=R.value;if(D.length>v.length)return;if(!(U instanceof c)){var N=1,ne;if(I){if(ne=d(V,G,v,_),!ne||ne.index>=v.length)break;var De=ne.index,ie=ne.index+ne[0].length,le=G;for(le+=R.value.length;De>=le;)R=R.next,le+=R.value.length;if(le-=R.value.length,G=le,R.value instanceof c)continue;for(var $e=R;$e!==D.tail&&(le<ie||typeof $e.value=="string");$e=$e.next)N++,le+=$e.value.length;N--,U=v.slice(G,le),ne.index-=G}else if(ne=d(V,0,U,_),!ne)continue;var De=ne.index,Ee=ne[0],Y=U.slice(0,De),he=U.slice(De+Ee.length),ye=G+U.length;M&&ye>M.reach&&(M.reach=ye);var fe=R.prev;Y&&(fe=m(D,fe,Y),G+=Y.length),g(D,fe,N);var ae=new c(S,X?u.tokenize(Ee,X):Ee,W,Ee);if(R=m(D,fe,ae),he&&m(D,R,he),N>1){var Fe={cause:S+","+K,reach:ye};f(v,D,T,R.prev,G,Fe),M&&Fe.reach>M.reach&&(M.reach=Fe.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},D={value:null,prev:v,next:null};v.next=D,this.head=v,this.tail=D,this.length=0}function m(v,D,T){var E=D.next,A={value:T,prev:D,next:E};return D.next=A,E.prev=A,v.length++,A}function g(v,D,T){for(var E=D.next,A=0;A<T&&E!==v.tail;A++)E=E.next;D.next=E,E.prev=D,v.length-=A}function y(v){for(var D=[],T=v.head.next;T!==v.tail;)D.push(T.value),T=T.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(v){var D=JSON.parse(v.data),T=D.language,E=D.code,A=D.immediateClose;r.postMessage(u.highlight(E,u.languages[T],T)),A&&r.close()},!1)),u;var x=u.util.currentScript();x&&(u.filename=x.src,x.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var b=document.readyState;b==="loading"||b==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Vi<"u"&&(Vi.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,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),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 o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.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,C){return"✖ Error "+x+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m(x,C,b){var v=new XMLHttpRequest;v.open("GET",x,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?C(v.responseText):v.status>=400?b(i(v.status,v.statusText)):b(o))},v.send(null)}function g(x){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(C){var b=Number(C[1]),v=C[2],D=C[3];return v?D?[b,Number(D)]:[b,void 0]:[b,b]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+h}),n.hooks.add("before-sanity-check",function(x){var C=x.element;if(C.matches(h)){x.code="",C.setAttribute(u,c);var b=C.appendChild(document.createElement("CODE"));b.textContent=r;var v=C.getAttribute("data-src"),D=x.language;if(D==="none"){var T=(/\.(\w+)$/.exec(v)||[,"none"])[1];D=a[T]||T}n.util.setLanguage(b,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(v,function(A){C.setAttribute(u,d);var M=g(C.getAttribute("data-range"));if(M){var S=A.split(/\r\n?|\n/g),z=M[0],K=M[1]==null?S.length:M[1];z<0&&(z+=S.length),z=Math.max(0,Math.min(z-1,S.length)),K<0&&(K+=S.length),K=Math.max(0,Math.min(K,S.length)),A=S.slice(z,K).join(`
154
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(z+1))}b.textContent=A,n.highlightElement(b)},function(A){C.setAttribute(u,f),b.textContent=A})}}),n.plugins.fileHighlight={highlight:function(C){for(var b=(C||document).querySelectorAll(h),v=0,D;D=b[v++];)n.highlightElement(D)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var kH=FH();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var y=getComputedStyle(m),x=getComputedStyle(g);function C(b){return+b.substr(0,b.length-2)}return g.offsetTop+C(x.borderTopWidth)+C(x.paddingTop)-C(y.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,y,x){y=typeof y=="string"?y:g.getAttribute("data-line")||"";var C=y.replace(/\s+/g,"").split(",").filter(Boolean),b=+g.getAttribute("data-line-offset")||0,v=a()?parseInt:parseFloat,D=v(getComputedStyle(g).lineHeight),T=Prism.util.isActive(g,e),E=g.querySelector("code"),A=T?g:E||g,M=[],S=E.textContent.match(n),z=S?S.length+1:1,K=!E||A==E?0:u(g,E);C.forEach(function(_){var I=_.split("-"),W=+I[0],k=+I[1]||W;if(k=Math.min(z+b,k),!(k<W)){var V=g.querySelector('.line-highlight[data-range="'+_+'"]')||document.createElement("div");if(M.push(function(){V.setAttribute("aria-hidden","true"),V.setAttribute("data-range",_),V.className=(x||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var R=Prism.plugins.lineNumbers.getLine(g,W),G=Prism.plugins.lineNumbers.getLine(g,k);if(R){var U=R.offsetTop+K+"px";M.push(function(){V.style.top=U})}if(G){var N=G.offsetTop-R.offsetTop+G.offsetHeight+"px";M.push(function(){V.style.height=N})}}else M.push(function(){V.setAttribute("data-start",String(W)),k>W&&V.setAttribute("data-end",String(k)),V.style.top=(W-b-1)*D+K+"px",V.textContent=new Array(k-W+2).join(`
155
- `)});M.push(function(){V.style.width=g.scrollWidth+"px"}),M.push(function(){A.appendChild(V)})}});var L=g.id;if(T&&Prism.util.isActive(g,t)&&L){i(g,t)||M.push(function(){g.classList.add(t)});var X=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(_,I){var W=I+X;_.onclick=function(){var k=L+"."+W;d=!1,location.hash=k,setTimeout(function(){d=!0},1)}})}return function(){M.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(b){b.parentNode.removeChild(b)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var y=m.slice(0,m.lastIndexOf(".")),x=document.getElementById(y);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines(x,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var y=0;r(".line-highlight",g).forEach(function(x){y+=x.textContent.length,x.parentNode.removeChild(x)}),y&&/^(?: \n)+$/.test(m.code.slice(-y))&&(m.code=m.code.slice(0,-y))}}),Prism.hooks.add("complete",function m(g){var y=g.element.parentElement;if(c(y)){clearTimeout(h);var x=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(y,e)&&x&&!C)Prism.hooks.add("line-numbers",m);else{var b=Prism.plugins.lineHighlight.highlightLines(y);b(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const t6=$.createContext({});function qc(e){const t=$.useRef(null);return t.current===null&&(t.current=e()),t.current}const e0=$.createContext(null),t0=$.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function BH(e=!0){const t=$.useContext(e0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=$.useId();$.useEffect(()=>{e&&i(o)},[e]);const a=$.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const n0=typeof window<"u",n6=n0?$.useLayoutEffect:$.useEffect,Cr=e=>e;let Wu=Cr,Xi=Cr;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Xi=(e,t)=>{if(!e)throw new Error(t)});function r0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ru=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qi=e=>e*1e3,Do=e=>e/1e3,IH={skipAnimations:!1,useManualTiming:!1};function LH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],VH=40;function r6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((b,v)=>(b[v]=LH(o),b),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,VH),1),i.timestamp=b,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((b,v)=>{const D=a[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),D.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<pf.length;v++)a[pf[v]].cancel(b)},state:i,steps:a}}const{schedule:Kt,cancel:To,state:Bn,steps:wg}=r6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Cr,!0),i6=$.createContext({strict:!1}),Fx={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"]},_u={};for(const e in Fx)_u[e]={isEnabled:t=>Fx[e].some(n=>!!t[n])};function NH(e){for(const t in e)_u[t]={..._u[t],...e[t]}}const jH=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 vh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jH.has(e)}let o6=e=>!vh(e);function KH(e){e&&(o6=t=>t.startsWith("on")?!vh(t):e(t))}try{KH(require("@emotion/is-prop-valid").default)}catch{}function UH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(o6(i)||n===!0&&vh(i)||!t&&!vh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const kx=new Set;function pp(e,t,n){e||kx.has(t)||(console.warn(t),kx.add(t))}function zH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&pp(!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 mp=$.createContext({});function xc(e){return typeof e=="string"||Array.isArray(e)}function gp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const i0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o0=["initial",...i0];function yp(e){return gp(e.animate)||o0.some(t=>xc(e[t]))}function a6(e){return!!(yp(e)||e.variants)}function WH(e,t){if(yp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xc(n)?n:void 0,animate:xc(r)?r:void 0}}return e.inherit!==!1?t:{}}function HH(e){const{initial:t,animate:n}=WH(e,$.useContext(mp));return $.useMemo(()=>({initial:t,animate:n}),[Bx(t),Bx(n)])}function Bx(e){return Array.isArray(e)?e.join(" "):e}const GH=Symbol.for("motionComponentSymbol");function ru(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qH(e,t,n){return $.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ru(n)&&(n.current=r))},[t])}const a0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),YH="framerAppearId",s6="data-"+a0(YH),{schedule:s0,cancel:Jre}=r6(queueMicrotask,!1),u6=$.createContext({});function ZH(e,t,n,r,i){var o,a;const{visualElement:u}=$.useContext(mp),c=$.useContext(i6),d=$.useContext(e0),f=$.useContext(t0).reducedMotion,h=$.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=$.useContext(u6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&JH(h.current,n,i,g);const y=$.useRef(!1);$.useInsertionEffect(()=>{m&&y.current&&m.update(n,d)});const x=n[s6],C=$.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return n6(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),s0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),$.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),C.current=!1))}),m}function JH(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:l6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&ru(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function l6(e){if(e)return e.options.allowProjection!==!1?e.projection:l6(e.parent)}function XH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&NH(e);function u(d,f){let h;const m={...$.useContext(t0),...d,layoutId:QH(d)},{isStatic:g}=m,y=HH(d),x=r(d,g);if(!g&&n0){eG(m,e);const C=tG(m);h=C.MeasureLayout,y.visualElement=ZH(i,x,m,t,C.ProjectionNode)}return Co.jsxs(mp.Provider,{value:y,children:[h&&y.visualElement?Co.jsx(h,{visualElement:y.visualElement,...m}):null,n(i,d,qH(x,y.visualElement,f),x,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=$.forwardRef(u);return c[GH]=i,c}function QH({layoutId:e}){const t=$.useContext(t6).id;return t&&e!==void 0?t+"-"+e:e}function eG(e,t){const n=$.useContext(i6).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?Wu(!1,r):Xi(!1,r)}}function tG(e){const{drag:t,layout:n}=_u;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 nG=["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 u0(e){return typeof e!="string"||e.includes("-")?!1:!!(nG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ix(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function l0(e,t,n,r){if(typeof t=="function"){const[i,o]=Ix(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ix(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),rG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),iG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function If(e){const t=In(e)?e.get():e;return rG(t)?t.toValue():t}function oG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:aG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const c6=e=>(t,n)=>{const r=$.useContext(mp),i=$.useContext(e0),o=()=>oG(e,t,r,i);return n?o():qc(o)};function aG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=If(o[m]);let{initial:a,animate:u}=e;const c=yp(e),d=a6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!gp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const y=l0(e,m[g]);if(y){const{transitionEnd:x,transition:C,...b}=y;for(const v in b){let D=b[v];if(Array.isArray(D)){const T=f?D.length-1:0;D=D[T]}D!==null&&(i[v]=D)}for(const v in x)i[v]=x[v]}}}return i}const Hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Hu),d6=e=>t=>typeof t=="string"&&t.startsWith(e),f6=d6("--"),sG=d6("var(--"),c0=e=>sG(e)?uG.test(e.split("/*")[0].trim()):!1,uG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,h6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ao=(e,t,n)=>n>t?t:n<e?e:n,Gu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wc={...Gu,transform:e=>Ao(0,1,e)},mf={...Gu,default:1},Yc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jo=Yc("deg"),Yi=Yc("%"),Ge=Yc("px"),lG=Yc("vh"),cG=Yc("vw"),Lx={...Yi,parse:e=>Yi.parse(e)/100,transform:e=>Yi.transform(e*100)},dG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},fG={rotate:Jo,rotateX:Jo,rotateY:Jo,rotateZ:Jo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Jo,skewX:Jo,skewY:Jo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:wc,originX:Lx,originY:Lx,originZ:Ge},Vx={...Gu,transform:Math.round},d0={...dG,...fG,zIndex:Vx,size:Ge,fillOpacity:wc,strokeOpacity:wc,numOctaves:Vx},hG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pG=Hu.length;function mG(e,t,n){let r="",i=!0;for(let o=0;o<pG;o++){const a=Hu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=h6(u,d0[a]);if(!c){i=!1;const f=hG[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function f0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(f6(c)){i[c]=d;continue}else{const f=h6(d,d0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=mG(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}const gG={offset:"stroke-dashoffset",array:"stroke-dasharray"},yG={offset:"strokeDashoffset",array:"strokeDasharray"};function vG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?gG:yG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function Nx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function bG(e,t,n){const r=Nx(t,e.x,e.width),i=Nx(n,e.y,e.height);return`${r} ${i}`}function h0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(f0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:y}=e;m.transform&&(y&&(g.transform=m.transform),delete m.transform),y&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=bG(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&vG(m,a,u,c,!1)}const p0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p6=()=>({...p0(),attrs:{}}),m0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const g6=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 y6(e,t,n,r){m6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(g6.has(i)?i:a0(i),t.attrs[i])}const bh={};function $G(e){Object.assign(bh,e)}function v6(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bh[e]||e==="opacity")}function g0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||v6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function b6(e,t,n){const r=g0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Hu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function xG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const jx=["x","y","width","height","cx","cy","r"],wG={useVisualState:c6({scrapeMotionValuesFromProps:b6,createRenderState:p6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<jx.length;u++){const c=jx[u];e[c]!==t[c]&&(a=!0)}a&&Kt.read(()=>{xG(n,r),Kt.render(()=>{h0(r,i,m0(n.tagName),e.transformTemplate),y6(n,r)})})}})},DG={useVisualState:c6({scrapeMotionValuesFromProps:g0,createRenderState:p0})};function $6(e,t,n){for(const r in t)!In(t[r])&&!v6(r,n)&&(e[r]=t[r])}function EG({transformTemplate:e},t){return $.useMemo(()=>{const n=p0();return f0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function CG(e,t){const n=e.style||{},r={};return $6(r,n,e),Object.assign(r,EG(e,t)),r}function SG(e,t){const n={},r=CG(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}function TG(e,t,n,r){const i=$.useMemo(()=>{const o=p6();return h0(o,t,m0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};$6(o,e.style,e),i.style={...o,...i.style}}return i}function AG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(u0(n)?TG:SG)(r,o,a,n),d=UH(r,typeof n=="string",e),f=n!==$.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=$.useMemo(()=>In(h)?h.get():h,[h]);return $.createElement(n,{...f,children:m})}}function PG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...u0(r)?wG:DG,preloadedFeatures:e,useRender:AG(i),createVisualElement:t,Component:r};return XH(a)}}function x6(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}function vp(e,t,n){const r=e.getProps();return l0(r,t,n!==void 0?n:r.custom,e)}const RG=r0(()=>window.ScrollTimeline!==void 0);class _G{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(RG()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let OG=class extends _G{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function y0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function w6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function v0(e){return typeof e=="function"}function Kx(e,t){e.timeline=t,e.onfinish=null}const b0=e=>Array.isArray(e)&&typeof e[0]=="number",MG={linearEasing:void 0};function FG(e,t){const n=r0(e);return()=>{var r;return(r=MG[t])!==null&&r!==void 0?r:n()}}const $h=FG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ru(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function E6(e){return!!(typeof e=="function"&&$h()||!e||typeof e=="string"&&(e in cv||$h())||b0(e)||Array.isArray(e)&&e.every(E6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function C6(e,t){if(e)return typeof e=="function"&&$h()?D6(e,t):b0(e)?Wl(e):Array.isArray(e)?e.map(n=>C6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function S6(){return pi.x||pi.y}function kG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function T6(e,t){const n=kG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Ux(e){return t=>{t.pointerType==="touch"||S6()||e(t)}}function BG(e,t,n={}){const[r,i,o]=T6(e,n),a=Ux(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Ux(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const A6=(e,t)=>t?e===t?!0:A6(e,t.parentElement):!1,$0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,IG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LG(e){return IG.has(e.tagName)||e.tabIndex!==-1}const Hl=new WeakSet;function zx(e){return t=>{t.key==="Enter"&&e(t)}}function Dg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const VG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zx(()=>{if(Hl.has(n))return;Dg(n,"down");const i=zx(()=>{Dg(n,"up")}),o=()=>Dg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Wx(e){return $0(e)&&!S6()}function NG(e,t,n={}){const[r,i,o]=T6(e,n),a=u=>{const c=u.currentTarget;if(!Wx(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Wx(g)||!Hl.has(c))&&(Hl.delete(c),typeof d=="function"&&d(g,{success:y}))},h=g=>{f(g,n.useGlobalTarget||A6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!LG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>VG(d,i),i)}),o}function jG(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const P6=new Set(["width","height","top","left","right","bottom",...Hu]);let Lf;function KG(){Lf=void 0}const Zi={now:()=>(Lf===void 0&&Zi.set(Bn.isProcessing||IH.useManualTiming?Bn.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(KG)}};function x0(e,t){e.indexOf(t)===-1&&e.push(t)}function w0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function UG([...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,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let D0=class{constructor(){this.subscriptions=[]}add(t){return x0(this.subscriptions,t),()=>w0(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function R6(e,t){return t?e*(1e3/t):0}const Hx=30,zG=e=>!isNaN(parseFloat(e)),nc={current:void 0};let WG=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Zi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Zi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pp(!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 D0);const r=this.events[t].add(n);return t==="change"?()=>{r(),Kt.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()}get(){return nc.current&&nc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Zi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hx)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hx);return R6(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ou(e,t){return new WG(e,t)}function HG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ou(n))}function GG(e,t){const n=vp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=iG(o[a]);HG(e,a,u)}}function qG(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(qG(n))return n.add(t)}function _6(e){return e.props[s6]}const O6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,YG=1e-7,ZG=12;function JG(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=O6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>YG&&++u<ZG);return a}function Zc(e,t,n,r){if(e===t&&n===r)return Cr;const i=o=>JG(o,0,1,e,n);return o=>o===0||o===1?o:O6(i(o),t,r)}const M6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F6=e=>t=>1-e(1-t),k6=Zc(.33,1.53,.69,.99),E0=F6(k6),B6=M6(E0),I6=e=>(e*=2)<1?.5*E0(e):.5*(2-Math.pow(2,-10*(e-1))),C0=e=>1-Math.sin(Math.acos(e)),L6=F6(C0),V6=M6(C0),N6=e=>/^0[^.\s]+$/u.test(e);function XG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||N6(e):!0}const rc=e=>Math.round(e*1e5)/1e5,S0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QG(e){return e==null}const eq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T0=(e,t)=>n=>!!(typeof n=="string"&&eq.test(n)&&n.startsWith(e)||t&&!QG(n)&&Object.prototype.hasOwnProperty.call(n,t)),j6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(S0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},tq=e=>Ao(0,255,e),Eg={...Gu,transform:e=>Math.round(tq(e))},Ga={test:T0("rgb","red"),parse:j6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Eg.transform(e)+", "+Eg.transform(t)+", "+Eg.transform(n)+", "+rc(wc.transform(r))+")"};function nq(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 fv={test:T0("#"),parse:nq,transform:Ga.transform},iu={test:T0("hsl","hue"),parse:j6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yi.transform(rc(t))+", "+Yi.transform(rc(n))+", "+rc(wc.transform(r))+")"},qn={test:e=>Ga.test(e)||fv.test(e)||iu.test(e),parse:e=>Ga.test(e)?Ga.parse(e):iu.test(e)?iu.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):iu.transform(e)},rq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(S0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(rq))===null||n===void 0?void 0:n.length)||0)>0}const K6="number",U6="color",oq="var",aq="var(",Gx="${}",sq=/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 Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(sq,c=>(qn.test(c)?(r.color.push(o),i.push(U6),n.push(qn.parse(c))):c.startsWith(aq)?(r.var.push(o),i.push(oq),n.push(c)):(r.number.push(o),i.push(K6),n.push(parseFloat(c))),++o,Gx)).split(Gx);return{values:n,split:u,indexes:r,types:i}}function z6(e){return Dc(e).values}function W6(e){const{split:t,types:n}=Dc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===K6?o+=rc(i[a]):u===U6?o+=qn.transform(i[a]):o+=i[a]}return o}}const uq=e=>typeof e=="number"?0:e;function lq(e){const t=z6(e);return W6(e)(t.map(uq))}const ha={test:iq,parse:z6,createTransformer:W6,getAnimatableNone:lq},cq=new Set(["brightness","contrast","saturate","opacity"]);function dq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(S0)||[];if(!r)return e;const i=n.replace(r,"");let o=cq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const fq=/\b([a-z-]*)\(.*?\)/gu,hv={...ha,getAnimatableNone:e=>{const t=e.match(fq);return t?t.map(dq).join(" "):e}},hq={...d0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},A0=e=>hq[e];function H6(e,t){let n=A0(e);return n!==hv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pq=new Set(["auto","none","0"]);function mq(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!pq.has(o)&&Dc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=H6(n,i)}const qx=e=>e===Gu||e===Ge,Yx=(e,t)=>parseFloat(e.split(", ")[t]),Zx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Yx(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Yx(o[1],e):0}},gq=new Set(["x","y","z"]),yq=Hu.filter(e=>!gq.has(e));function vq(e){const t=[];return yq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mu={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:Zx(4,13),y:Zx(5,14)};Mu.translateX=Mu.x;Mu.translateY=Mu.y;const Qa=new Set;let pv=!1,mv=!1;function G6(){if(mv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=vq(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function q6(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function bq(){q6(),G6()}let P0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),pv||(pv=!0,Kt.read(q6),Kt.resolveKeyframes(G6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Y6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xq(e){const t=$q.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const wq=4;function Z6(e,t,n=1){Xi(n<=wq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=xq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Y6(a)?parseFloat(a):a}return c0(i)?Z6(i,t,n+1):i}const J6=e=>t=>t.test(e),Dq={test:e=>e==="auto",parse:e=>e},X6=[Gu,Ge,Yi,Jo,cG,lG,Dq],Jx=e=>X6.find(J6(e));let Q6=class extends P0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),c0(d))){const f=Z6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!P6.has(r)||t.length!==2)return;const[i,o]=t,a=Jx(i),u=Jx(o);if(a!==u)if(qx(a)&&qx(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)XG(t[i])&&r.push(i);r.length&&mq(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=Mu[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 t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Mu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const Xx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function Eq(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 Cq(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Xx(i,t),u=Xx(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:Eq(e)||(n==="spring"||v0(n))&&r}const Sq=e=>e!==null;function bp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Sq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Tq=40;let e7=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&bq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Zi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Cq(t,r,i,o))if(a)this.options.duration=0;else{c&&c(bp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const qt=(e,t,n)=>e+(t-e)*n;function Cg(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 Aq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Cg(c,u,e+1/3),o=Cg(c,u,e),a=Cg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function xh(e,t){return n=>n>0?t:e}const Sg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Pq=[fv,Ga,iu],Rq=e=>Pq.find(t=>t.test(e));function Qx(e){const t=Rq(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===iu&&(n=Aq(n)),n}const ew=(e,t)=>{const n=Qx(e),r=Qx(t);if(!n||!r)return xh(e,t);const i={...n};return o=>(i.red=Sg(n.red,r.red,o),i.green=Sg(n.green,r.green,o),i.blue=Sg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},_q=(e,t)=>n=>t(e(n)),Jc=(...e)=>e.reduce(_q),gv=new Set(["none","hidden"]);function Oq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mq(e,t){return n=>qt(e,t,n)}function R0(e){return typeof e=="number"?Mq:typeof e=="string"?c0(e)?xh:qn.test(e)?ew:Bq:Array.isArray(e)?t7:typeof e=="object"?qn.test(e)?ew:Fq:xh}function t7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>R0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Fq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=R0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function kq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const Bq=(e,t)=>{const n=ha.createTransformer(t),r=Dc(e),i=Dc(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?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Oq(e,t):Jc(t7(kq(r,i),i.values),n):(Wu(!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.`),xh(e,t))};function n7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):R0(e)(e,t)}const Iq=5;function r7(e,t,n){const r=Math.max(t-Iq,0);return R6(n-e(r),t-r)}const Jt={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},tw=.001;function Lq({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=qi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Ao(Jt.minDamping,Jt.maxDamping,a),e=Ao(Jt.minDuration,Jt.maxDuration,Do(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),y=Math.exp(-h);return tw-m/g*y},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-h),x=yv(Math.pow(d,2),a);return(-i(d)+tw>0?-1:1)*((m-g)*y)/x}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=Nq(i,o,u);if(e=qi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const Vq=12;function Nq(e,t,n){let r=n;for(let i=1;i<Vq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const jq=["duration","bounce"],Kq=["stiffness","damping","mass"];function nw(e,t){return t.some(n=>e[n]!==void 0)}function Uq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!nw(e,Kq)&&nw(e,jq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ao(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=Lq(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function i7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=Uq({...n,velocity:-Do(n.velocity||0)}),y=m||0,x=d/(2*Math.sqrt(c*f)),C=a-o,b=Do(Math.sqrt(c/f)),v=Math.abs(C)<5;r||(r=v?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=v?Jt.restDelta.granular:Jt.restDelta.default);let D;if(x<1){const E=yv(b,x);D=A=>{const M=Math.exp(-x*b*A);return a-M*((y+x*b*C)/E*Math.sin(E*A)+C*Math.cos(E*A))}}else if(x===1)D=E=>a-Math.exp(-b*E)*(C+(y+b*C)*E);else{const E=b*Math.sqrt(x*x-1);D=A=>{const M=Math.exp(-x*b*A),S=Math.min(E*A,300);return a-M*((y+x*b*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=D(E);if(g)u.done=E>=h;else{let M=0;x<1&&(M=E===0?qi(y):r7(D,E,A));const S=Math.abs(M)<=r,z=Math.abs(a-A)<=i;u.done=S&&z}return u.value=u.done?a:A,u},toString:()=>{const E=Math.min(w6(T),lv),A=D6(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function rw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,y=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let x=n*t;const C=h+x,b=a===void 0?C:a(C);b!==C&&(x=b-h);const v=S=>-x*Math.exp(-S/r),D=S=>b+v(S),T=S=>{const z=v(S),K=D(S);m.done=Math.abs(z)<=d,m.value=m.done?b:K};let E,A;const M=S=>{g(m.value)&&(E=S,A=i7({keyframes:[m.value,y(m.value)],velocity:r7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),m)}}}const zq=Zc(.42,0,1,1),Wq=Zc(0,0,.58,1),o7=Zc(.42,0,.58,1),Hq=e=>Array.isArray(e)&&typeof e[0]!="number",iw={linear:Cr,easeIn:zq,easeInOut:o7,easeOut:Wq,circIn:C0,circInOut:V6,circOut:L6,backIn:E0,backInOut:B6,backOut:k6,anticipate:I6},ow=e=>{if(b0(e)){Xi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zc(t,n,r,i)}else if(typeof e=="string")return Xi(iw[e]!==void 0,`Invalid easing type '${e}'`),iw[e];return e};function Gq(e,t,n){const r=[],i=n||n7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Cr:t;u=Jc(c,u)}r.push(u)}return r}function a7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Xi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Gq(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ru(e[h],e[h+1],f);return u[h](m)};return n?f=>d(Ao(e[0],e[o-1],f)):d}function qq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(qt(n,1,i))}}function Yq(e){const t=[0];return qq(t,e.length-1),t}function Zq(e,t){return e.map(n=>n*t)}function Jq(e,t){return e.map(()=>t||o7).splice(0,e.length-1)}function wh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Hq(r)?r.map(ow):ow(r),o={done:!1,value:t[0]},a=Zq(n&&n.length===t.length?n:Yq(t),e),u=a7(a,t,{ease:Array.isArray(i)?i:Jq(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const Xq=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Kt.update(t,!0),stop:()=>To(t),now:()=>Bn.isProcessing?Bn.timestamp:Zi.now()}},Qq={decay:rw,inertia:rw,tween:wh,keyframes:wh,spring:i7},eY=e=>e/100;let _0=class extends e7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||P0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=v0(n)?n:Qq[n]||wh;let c,d;u!==wh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Xi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Jc(eY,n7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=w6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:y,repeatDelay:x,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>f;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,f)/h;let z=Math.floor(S),K=S%1;!K&&S>=1&&(K=1),K===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(K=1-K,x&&(K-=x/h)):y==="mirror"&&(T=a)),D=Ao(0,1,K)*h}const E=v?{done:!1,value:c[0]}:T.next(D);u&&(E.value=u(E.value));let{done:A}=E;!v&&d!==null&&(A=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=bp(c,this.options,i)),C&&C(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Do(t.calculatedDuration):0}get time(){return Do(this.currentTime)}set time(t){t=qi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Do(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Xq,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const tY=new Set(["opacity","clipPath","filter","transform"]);function nY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=C6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const rY=r0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dh=10,iY=2e4;function oY(e){return v0(e.type)||e.type==="spring"||!E6(e.ease)}function aY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<iY;)r=n.sample(o),i.push(r.value),o+=Dh;return{times:void 0,keyframes:i,duration:o-Dh,ease:"linear"}}const s7={anticipate:I6,backInOut:B6,circInOut:V6};function sY(e){return e in s7}let aw=class extends e7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Q6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:u,name:c,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&$h()&&sY(o)&&(o=s7[o]),oY(this.options)){const{onComplete:h,onUpdate:m,motionValue:g,element:y,...x}=this.options,C=aY(t,x);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,o=C.ease,a="keyframes"}const f=nY(u.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return f.startTime=d??this.calcStartTime(),this.pendingTimeline?(Kx(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;u.set(bp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Do(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Do(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=qi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Cr;const{animation:r}=n;Kx(r,t)}return Cr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,y=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),x=qi(this.time);d.setWithVelocity(y.sample(x-Dh).value,y.sample(x).value,Dh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=n.owner.getProps();return rY()&&r&&tY.has(r)&&!c&&!d&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const uY={type:"spring",stiffness:500,damping:25,restSpeed:10},lY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cY={type:"keyframes",duration:.8},dY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fY=(e,{keyframes:t})=>t.length>2?cY:ys.has(e)?e.startsWith("scale")?lY(t[1]):uY:dY;function hY({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const O0=(e,t,n,r={},i,o)=>a=>{const u=y0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-qi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};hY(u)||(f={...f,...fY(e,f)}),f.duration&&(f.duration=qi(f.duration)),f.repeatDelay&&(f.repeatDelay=qi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=bp(f.keyframes,u);if(m!==void 0)return Kt.update(()=>{f.onUpdate(m),f.onComplete()}),new OG([])}return!o&&aw.supports(f)?new aw(f):new _0(f)};function pY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&pY(f,h))continue;const y={delay:n,...y0(a||{},h)};let x=!1;if(window.MotionHandoffAnimation){const b=_6(e);if(b){const v=window.MotionHandoffAnimation(b,h,Kt);v!==null&&(y.startTime=v,x=!0)}}dv(e,h),m.start(O0(h,m,g,e.shouldReduceMotion&&P6.has(h)?{type:!1}:y,e,x));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Kt.update(()=>{u&&GG(e,u)})}),d}function vv(e,t,n={}){var r;const i=vp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(u7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return mY(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function mY(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(gY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function gY(e,t){return e.sortNodePosition(t)}function yY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?vp(e,t,n.custom):t;r=Promise.all(u7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const vY=o0.length;function l7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?l7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<vY;n++){const r=o0[n],i=e.props[r];(xc(i)||i===!1)&&(t[r]=i)}return t}const bY=[...i0].reverse(),$Y=i0.length;function xY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yY(e,n,r)))}function wY(e){let t=xY(e),n=sw(),r=!0;const i=c=>(d,f)=>{var h;const m=vp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:y,...x}=m;d={...d,...x,...y}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=l7(e.parent)||{},h=[],m=new Set;let g={},y=1/0;for(let C=0;C<$Y;C++){const b=bY[C],v=n[b],D=d[b]!==void 0?d[b]:f[b],T=xc(D),E=b===c?v.isActive:null;E===!1&&(y=C);let A=D===f[b]&&D!==d[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!D&&!v.prevProp||gp(D)||typeof D=="boolean")continue;const M=DY(v.prevProp,D);let S=M||b===c&&v.isActive&&!A&&T||C>y&&T,z=!1;const K=Array.isArray(D)?D:[D];let L=K.reduce(i(b),{});E===!1&&(L={});const{prevResolvedValues:X={}}=v,_={...X,...L},I=V=>{S=!0,m.has(V)&&(z=!0,m.delete(V)),v.needsAnimating[V]=!0;const R=e.getValue(V);R&&(R.liveStyle=!1)};for(const V in _){const R=L[V],G=X[V];if(g.hasOwnProperty(V))continue;let U=!1;uv(R)&&uv(G)?U=!x6(R,G):U=R!==G,U?R!=null?I(V):m.add(V):R!==void 0&&m.has(V)?I(V):v.protectedKeys[V]=!0}v.prevProp=D,v.prevResolvedValues=L,v.isActive&&(g={...g,...L}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...K.map(V=>({animation:V,options:{type:b}})))}if(m.size){const C={};m.forEach(b=>{const v=e.getBaseTarget(b),D=e.getValue(b);D&&(D.liveStyle=!0),C[b]=v??null}),h.push({animation:C})}let x=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=sw(),r=!0}}}function DY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x6(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}let va=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},EY=class extends va{constructor(t){super(t),t.animationState||(t.animationState=wY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gp(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===void 0||t.call(this)}},CY=0,SY=class extends va{constructor(){super(...arguments),this.id=CY++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const TY={animation:{Feature:EY},exit:{Feature:SY}};function Ec(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const AY=e=>t=>$0(t)&&e(t,Xc(t));function ic(e,t,n,r){return Ec(e,t,AY(n),r)}const uw=(e,t)=>Math.abs(e-t);function PY(e,t){const n=uw(e.x,t.x),r=uw(e.y,t.y);return Math.sqrt(n**2+r**2)}class c7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ag(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=PY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:y}=h,{timestamp:x}=Bn;this.history.push({...y,timestamp:x});const{onStart:C,onMove:b}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Tg(m,this.transformPagePoint),Kt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ag(h.type==="pointercancel"?this.lastMoveEventInfo:Tg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!$0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Xc(t),u=Tg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Ag(u,this.history)),this.removeListeners=Jc(ic(this.contextWindow,"pointermove",this.handlePointerMove),ic(this.contextWindow,"pointerup",this.handlePointerUp),ic(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),To(this.updatePoint)}}function Tg(e,t){return t?{point:t(e.point)}:e}function lw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ag({point:e},t){return{point:e,delta:lw(e,d7(t)),offset:lw(e,RY(t)),velocity:_Y(t,.1)}}function RY(e){return e[0]}function d7(e){return e[e.length-1]}function _Y(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=d7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qi(t)));)n--;if(!r)return{x:0,y:0};const o=Do(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const f7=1e-4,OY=1-f7,MY=1+f7,h7=.01,FY=0-h7,kY=0+h7;function kr(e){return e.max-e.min}function BY(e,t,n){return Math.abs(e-t)<=n}function cw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=OY&&e.scale<=MY||isNaN(e.scale))&&(e.scale=1),(e.translate>=FY&&e.translate<=kY||isNaN(e.translate))&&(e.translate=0)}function oc(e,t,n,r){cw(e.x,t.x,n.x,r?r.originX:void 0),cw(e.y,t.y,n.y,r?r.originY:void 0)}function dw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function IY(e,t,n){dw(e.x,t.x,n.x),dw(e.y,t.y,n.y)}function fw(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function ac(e,t,n){fw(e.x,t.x,n.x),fw(e.y,t.y,n.y)}function LY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function hw(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 VY(e,{top:t,left:n,bottom:r,right:i}){return{x:hw(e.x,n,i),y:hw(e.y,t,r)}}function pw(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 NY(e,t){return{x:pw(e.x,t.x),y:pw(e.y,t.y)}}function jY(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=Ru(t.min,t.max-r,e.min):r>i&&(n=Ru(e.min,e.max-i,t.min)),Ao(0,1,n)}function KY(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 bv=.35;function UY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:mw(e,"left","right"),y:mw(e,"top","bottom")}}function mw(e,t,n){return{min:gw(e,t),max:gw(e,n)}}function gw(e,t){return typeof e=="number"?e:e[t]||0}const yw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ou=()=>({x:yw(),y:yw()}),vw=()=>({min:0,max:0}),cn=()=>({x:vw(),y:vw()});function Qr(e){return[e("x"),e("y")]}function p7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function zY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WY(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 Pg(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Pg(e)||!Pg(t)||!Pg(n)}function Ia(e){return $v(e)||m7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m7(e){return bw(e.x)||bw(e.y)}function bw(e){return e&&e!=="0%"}function Eh(e,t,n){const r=e-n,i=t*r;return n+i}function $w(e,t,n,r,i){return i!==void 0&&(e=Eh(e,i,r)),Eh(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=$w(e.min,t,n,r,i),e.max=$w(e.max,t,n,r,i)}function g7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const xw=.999999999999,ww=1.0000000000001;function HY(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&su(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,g7(e,a)),r&&Ia(o.latestValues)&&su(e,o.latestValues))}t.x<ww&&t.x>xw&&(t.x=1),t.y<ww&&t.y>xw&&(t.y=1)}function au(e,t){e.min=e.min+t,e.max=e.max+t}function Dw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function su(e,t){Dw(e.x,t.x,t.scaleX,t.scale,t.originX),Dw(e.y,t.y,t.scaleY,t.scale,t.originY)}function y7(e,t){return p7(WY(e.getBoundingClientRect(),t))}function GY(e,t,n){const r=y7(e,n),{scroll:i}=t;return i&&(au(r.x,i.offset.x),au(r.y,i.offset.y)),r}const v7=({current:e})=>e?e.ownerDocument.defaultView:null,qY=new WeakMap;class YY{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=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Xc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jG(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let b=this.getAxisMotionValue(C).get()||0;if(Yi.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const D=v.layout.layoutBox[C];D&&(b=kr(D)*(parseFloat(b)/100))}}this.originPoint[C]=b}),y&&Kt.postRender(()=>y(f,h)),dv(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=ZY(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),x&&x(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new c7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:v7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Kt.postRender(()=>o(t,n))}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||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=LY(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ru(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=VY(i.layoutBox,n):this.constraints=!1,this.elastic=UY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=KY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ru(t))return!1;const r=t.current;Xi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=GY(r,i.root,this.visualElement.getTransformPagePoint());let a=NY(i.layout.layoutBox,o);if(n){const u=n(zY(a));this.hasMutatedConstraints=!!u,u&&(a=p7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,y)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(O0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?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){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ru(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=jY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;qY.set(this.visualElement,this);const t=this.visualElement.current,n=ic(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ru(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Kt.read(r);const a=Ec(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ZY(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class JY extends va{constructor(t){super(t),this.removeGroupControls=Cr,this.removeListeners=Cr,this.controls=new YY(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Cr}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ew=e=>(t,n)=>{e&&Kt.postRender(()=>e(t,n))};class XY extends va{constructor(){super(...arguments),this.removePointerDownListener=Cr}onPointerDown(t){this.session=new c7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ew(t),onStart:Ew(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Kt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=ic(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 Vf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Cw(e,t.target.x),r=Cw(e,t.target.y);return`${n}% ${r}%`}},QY={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class eZ extends $.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;$G(tZ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Vf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Kt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;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 b7(e){const[t,n]=BH(),r=$.useContext(t6);return Co.jsx(eZ,{...e,layoutGroup:r,switchLayoutGroup:$.useContext(u6),isPresent:t,safeToRemove:n})}const tZ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:QY};function nZ(e,t,n){const r=In(e)?e:Ou(e);return r.start(O0("",r,t,n)),r.animation}function rZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const iZ=(e,t)=>e.depth-t.depth;class oZ{constructor(){this.children=[],this.isDirty=!1}add(t){x0(this.children,t),this.isDirty=!0}remove(t){w0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iZ),this.isDirty=!1,this.children.forEach(t)}}function aZ(e,t){const n=Zi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(To(r),e(o-t))};return Kt.read(r,!0),()=>To(r)}const $7=["TopLeft","TopRight","BottomLeft","BottomRight"],sZ=$7.length,Sw=e=>typeof e=="string"?parseFloat(e):e,Tw=e=>typeof e=="number"||Ge.test(e);function uZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,lZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,cZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<sZ;a++){const u=`border${$7[a]}Radius`;let c=Aw(t,u),d=Aw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Tw(c)===Tw(d)?(e[u]=Math.max(qt(Sw(c),Sw(d),r),0),(Yi.test(d)||Yi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Aw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const lZ=x7(0,.5,L6),cZ=x7(.5,.95,Cr);function x7(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function Pw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Pw(e.x,t.x),Pw(e.y,t.y)}function Rw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _w(e,t,n,r,i){return e-=t,e=Eh(e,1/n,r),i!==void 0&&(e=Eh(e,1/i,r)),e}function dZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Yi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=_w(e.min,t,n,u,i),e.max=_w(e.max,t,n,u,i)}function Ow(e,t,[n,r,i],o,a){dZ(e,t[n],t[r],t[i],t.scale,o,a)}const fZ=["x","scaleX","originX"],hZ=["y","scaleY","originY"];function Mw(e,t,n,r){Ow(e.x,t,fZ,n?n.x:void 0,r?r.x:void 0),Ow(e.y,t,hZ,n?n.y:void 0,r?r.y:void 0)}function Fw(e){return e.translate===0&&e.scale===1}function w7(e){return Fw(e.x)&&Fw(e.y)}function kw(e,t){return e.min===t.min&&e.max===t.max}function pZ(e,t){return kw(e.x,t.x)&&kw(e.y,t.y)}function Bw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D7(e,t){return Bw(e.x,t.x)&&Bw(e.y,t.y)}function Iw(e){return kr(e.x)/kr(e.y)}function Lw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class mZ{constructor(){this.members=[]}add(t){x0(this.members,t),t.scheduleRender()}remove(t){if(w0(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 gZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:y}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gl=typeof window<"u"&&window.MotionDebug!==void 0,Rg=["","X","Y","Z"],yZ={visibility:"hidden"},Vw=1e3;let vZ=0;function _g(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function E7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Kt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&E7(r)}function C7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=vZ++,this.animationId=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,Gl&&(La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0),this.nodes.forEach(xZ),this.nodes.forEach(SZ),this.nodes.forEach(TZ),this.nodes.forEach(wZ),Gl&&window.MotionDebug.record(La)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new oZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new D0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=rZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=aZ(m,250),Vf.hasAnimatedSinceResize&&(Vf.hasAnimatedSinceResize=!1,this.nodes.forEach(jw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||f.getDefaultTransition()||OZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:b}=f.getProps(),v=!this.targetLayout||!D7(this.targetLayout,y)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const T={...y0(x,"layout"),onPlay:C,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else m||jw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,To(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(AZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&E7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nw);return}this.isUpdating||this.nodes.forEach(EZ),this.isUpdating=!1,this.nodes.forEach(CZ),this.nodes.forEach(bZ),this.nodes.forEach($Z),this.clearAllSnapshots();const u=Zi.now();Bn.delta=Ao(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,wg.update.process(Bn),wg.preRender.process(Bn),wg.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,s0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(DZ),this.sharedNodes.forEach(PZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!w7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ia(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),MZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(FZ))){const{scroll:f}=this.root;f&&(au(c.x,f.offset.x),au(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),au(c.x,h.offset.x),au(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&su(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ia(f.latestValues)&&su(c,f.latestValues)}return Ia(this.latestValues)&&su(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ia(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),Mw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ia(this.latestValues)&&Mw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),IY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),g7(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gl&&La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||m7(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 a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)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;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;HY(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:y}=u;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Rw(this.prevProjectionDelta.x,this.projectionDelta.x),Rw(this.prevProjectionDelta.y,this.projectionDelta.y)),oc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Lw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Lw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Gl&&La.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ou(),this.projectionDelta=ou(),this.projectionDeltaWithTransform=ou()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=ou();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,y=this.layout?this.layout.source:void 0,x=g!==y,C=this.getStack(),b=!C||C.members.length<=1,v=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(_Z));this.animationProgress=0;let D;this.mixTargetDelta=T=>{const E=T/1e3;Kw(h.x,a.x,E),Kw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),RZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&pZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),x&&(this.animationValues=f,uZ(f,d,this.latestValues,E,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(To(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kt.update(()=>{Vf.hasAnimatedSinceResize=!0,this.currentAnimation=nZ(0,Vw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&S7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),su(u,f),oc(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new mZ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&_g("z",a,d,this.animationValues);for(let f=0;f<Rg.length;f++)_g(`rotate${Rg[f]}`,a,d,this.animationValues),_g(`skew${Rg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return yZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=If(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=If(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ia(this.latestValues)&&(x.transform=f?f({},""):"none",this.hasProjected=!1),x}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=gZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in bh){if(m[x]===void 0)continue;const{correct:C,applyTo:b}=bh[x],v=d.transform==="none"?m[x]:C(m[x],h);if(b){const D=b.length;for(let T=0;T<D;T++)d[b[T]]=v}else d[x]=v}return this.options.layoutId&&(d.pointerEvents=h===this?If(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Nw),this.root.sharedNodes.clear()}}}function bZ(e){e.updateLayout()}function $Z(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):S7(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=ou();oc(u,r,n.layoutBox);const c=ou();a?oc(c,e.applyTransform(i,!0),n.measuredBox):oc(c,r,n.layoutBox);const d=!w7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const y=cn();ac(y,n.layoutBox,m.layoutBox);const x=cn();ac(x,r,g.layoutBox),D7(y,x)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function xZ(e){Gl&&La.totalNodes++,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 wZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DZ(e){e.clearSnapshot()}function Nw(e){e.clearMeasurements()}function EZ(e){e.isLayoutDirty=!1}function CZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SZ(e){e.resolveTargetDelta()}function TZ(e){e.calcProjection()}function AZ(e){e.resetSkewAndRotation()}function PZ(e){e.removeLeadSnapshot()}function Kw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function RZ(e,t,n,r){Uw(e.x,t.x,n.x,r),Uw(e.y,t.y,n.y,r)}function _Z(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OZ={duration:.45,ease:[.4,0,.1,1]},zw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ww=zw("applewebkit/")&&!zw("chrome/")?Math.round:Cr;function Hw(e){e.min=Ww(e.min),e.max=Ww(e.max)}function MZ(e){Hw(e.x),Hw(e.y)}function S7(e,t,n){return e==="position"||e==="preserve-aspect"&&!BY(Iw(t),Iw(n),.2)}function FZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const kZ=C7({attachResizeListener:(e,t)=>Ec(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Og={current:void 0},T7=C7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Og.current){const e=new kZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Og.current=e}return Og.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),BZ={pan:{Feature:XY},drag:{Feature:JY,ProjectionNode:T7,MeasureLayout:b7}};function Gw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Kt.postRender(()=>o(t,Xc(t)))}let IZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=BG(t,n=>(Gw(this.node,n,"Start"),r=>Gw(this.node,r,"End"))))}unmount(){}},LZ=class extends va{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=Jc(Ec(this.node.current,"focus",()=>this.onFocus()),Ec(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function qw(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Kt.postRender(()=>o(t,Xc(t)))}let VZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=NG(t,n=>(qw(this.node,n,"Start"),(r,{success:i})=>qw(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,Mg=new WeakMap,NZ=e=>{const t=wv.get(e.target);t&&t(e)},jZ=e=>{e.forEach(NZ)};function KZ({root:e,...t}){const n=e||document;Mg.has(n)||Mg.set(n,{});const r=Mg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jZ,{root:e,...t})),r[i]}function UZ(e,t,n){const r=KZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const zZ={some:0,all:1};let WZ=class extends va{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:zZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return UZ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HZ(t,n))&&this.startObserver()}unmount(){}};function HZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const GZ={inView:{Feature:WZ},tap:{Feature:VZ},focus:{Feature:LZ},hover:{Feature:IZ}},qZ={layout:{ProjectionNode:T7,MeasureLayout:b7}},Dv={current:null},A7={current:!1};function YZ(){if(A7.current=!0,!!n0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const ZZ=[...X6,qn,ha],JZ=e=>ZZ.find(J6(e)),Yw=new WeakMap;function XZ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(In(o))e.addValue(r,Ou(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ou(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Zw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let QZ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=P0,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=Zi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Kt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=yp(n),this.isVariantNode=a6(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 y=m[g];c[g]!==void 0&&In(y)&&y.set(c[g],!1)}}mount(t){this.current=t,Yw.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)),A7.current||YZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&pp(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(){Yw.delete(this.current),this.projection&&this.projection.unmount(),To(this.notifyUpdate),To(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=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Kt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 _u){const n=_u[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}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<Zw.length;r++){const i=Zw[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=XZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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=Ou(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Y6(i)||N6(i))?i=parseFloat(i):!JZ(i)&&ha.test(n)&&(i=H6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=l0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new D0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},P7=class extends QZ{constructor(){super(...arguments),this.KeyframeResolver=Q6}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;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function eJ(e){return window.getComputedStyle(e)}let tJ=class extends P7{constructor(){super(...arguments),this.type="html",this.renderInstance=m6}readValueFromInstance(t,n){if(ys.has(n)){const r=A0(n);return r&&r.default||0}else{const r=eJ(t),i=(f6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return y7(t,n)}build(t,n,r){f0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return g0(t,n,r)}},nJ=class extends P7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=A0(n);return r&&r.default||0}return n=g6.has(n)?n:a0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b6(t,n,r)}build(t,n,r){h0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){y6(t,n,r,i)}mount(t){this.isSVGTag=m0(t.tagName),super.mount(t)}};const rJ=(e,t)=>u0(e)?new nJ(t):new tJ(t,{allowProjection:e!==$.Fragment}),iJ=PG({...TY,...GZ,...BZ,...qZ},rJ),R7=zH(iJ);function _7(e){const t=qc(()=>Ou(e)),{isStatic:n}=$.useContext(t0);if(n){const[,r]=$.useState(e);$.useEffect(()=>t.on("change",r),[])}return t}function O7(e,t){const n=_7(t()),r=()=>n.set(t());return r(),n6(()=>{const i=()=>Kt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),To(r)}}),n}const oJ=e=>e&&typeof e=="object"&&e.mix,aJ=e=>oJ(e)?e.mix:void 0;function sJ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=a7(i,o,{mixer:aJ(o[0]),...a});return t?u(r):u}function uJ(e){nc.current=[],e();const t=O7(nc.current,e);return nc.current=void 0,t}function lJ(e,t,n,r){if(typeof e=="function")return uJ(e);const i=typeof t=="function"?t:sJ(t,n,r);return Array.isArray(e)?Jw(e,i):Jw([e],([o])=>i(o))}function Jw(e,t){const n=qc(()=>[]);return O7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const M7=$.createContext(null);function cJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?UG(e,i,i+o):e}function dJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=qc(()=>R7[t]),c=[],d=$.useRef(!1);Xi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(y=>h===y.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(pJ)},updateOrder:(h,m,g)=>{if(d.current)return;const y=cJ(c,h,m,g);c!==y&&(d.current=!0,r(y.map(hJ).filter(x=>i.indexOf(x)!==-1)))}};return $.useEffect(()=>{d.current=!1}),Co.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Co.jsx(M7.Provider,{value:f,children:e})})}const fJ=$.forwardRef(dJ);function hJ(e){return e.value}function pJ(e,t){return e.layout.min-t.layout.min}function Xw(e,t=0){return In(e)?e:_7(t)}function mJ({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=qc(()=>R7[r]),d=$.useContext(M7),f={x:Xw(t.x),y:Xw(t.y)},h=lJ([f.x,f.y],([x,C])=>x||C?1:"unset");Xi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:y}=d;return Co.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:(x,C)=>{const{velocity:b}=C;b[m]&&y(n,f[m].get(),b[m]),i&&i(x,C)},onLayoutMeasure:x=>g(n,x),ref:u,ignoreStrict:!0,children:e})}const gJ=$.forwardRef(mJ),Qw=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},F7=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Qw(r.ref,n,e):r.refs&&r.refs.forEach(i=>Qw(i,n,e))}},yJ=(e,t)=>{t.shouldUseNativeValidation&&F7(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(vJ(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},vJ=(e,t)=>e.some(n=>n.startsWith(t+"."));function bJ(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(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(d){return o.shouldUseNativeValidation&&F7({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:yJ((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=AC(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var Fg,eD;function $J(){if(eD)return Fg;eD=1;var e=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi;return Fg=e,Fg}var kg,tD;function xJ(){if(tD)return kg;tD=1;var e=$J(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return kg=n,kg}var Bg,nD;function k7(){if(nD)return Bg;nD=1;var e=xJ(),t=e.Symbol;return Bg=t,Bg}var Ig,rD;function wJ(){if(rD)return Ig;rD=1;var e=k7(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Ig=o,Ig}var Lg,iD;function DJ(){if(iD)return Lg;iD=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Lg=n,Lg}var Vg,oD;function EJ(){if(oD)return Vg;oD=1;var e=k7(),t=wJ(),n=DJ(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Vg=a,Vg}var Ng,aD;function CJ(){if(aD)return Ng;aD=1;function e(t){return t!=null&&typeof t=="object"}return Ng=e,Ng}var jg,sD;function SJ(){if(sD)return jg;sD=1;var e=EJ(),t=CJ(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return jg=r,jg}var TJ=SJ();const AJ=Po(TJ),uD=new Set;function $p(e,t,n){e||uD.has(t)||(console.warn(t),uD.add(t))}function PJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$p(!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))})}function xp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function B7(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}function Cc(e){return typeof e=="string"||Array.isArray(e)}function lD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function M0(e,t,n,r){if(typeof t=="function"){const[i,o]=lD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=lD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function wp(e,t,n){const r=e.getProps();return M0(r,t,n!==void 0?n:r.custom,e)}const F0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],k0=["initial",...F0],Qc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Qc),Eo=e=>e*1e3,la=e=>e/1e3,RJ={type:"spring",stiffness:500,damping:25,restSpeed:10},_J=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),OJ={type:"keyframes",duration:.8},MJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FJ=(e,{keyframes:t})=>t.length>2?OJ:vs.has(e)?e.startsWith("scale")?_J(t[1]):RJ:MJ;function I7(e,t){return e?e[t]||e.default||e:void 0}const kJ={skipAnimations:!1,useManualTiming:!1},BJ=e=>e!==null;function Dp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(BJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const pa=e=>e;let qu=pa,ds=pa;process.env.NODE_ENV!=="production"&&(qu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ds=(e,t)=>{if(!e)throw new Error(t)});function IJ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const yf=["read","resolveKeyframes","update","preRender","render","postRender"],LJ=40;function L7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=yf.reduce((b,v)=>(b[v]=IJ(o),b),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,LJ),1),i.timestamp=b,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:yf.reduce((b,v)=>{const D=a[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),D.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<yf.length;v++)a[yf[v]].cancel(b)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Ch,steps:vie}=L7(typeof requestAnimationFrame<"u"?requestAnimationFrame:pa,!0),V7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VJ=1e-7,NJ=12;function jJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=V7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>VJ&&++u<NJ);return a}function ed(e,t,n,r){if(e===t&&n===r)return pa;const i=o=>jJ(o,0,1,e,n);return o=>o===0||o===1?o:V7(i(o),t,r)}const N7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j7=e=>t=>1-e(1-t),K7=ed(.33,1.53,.69,.99),B0=j7(K7),U7=N7(B0),z7=e=>(e*=2)<1?.5*B0(e):.5*(2-Math.pow(2,-10*(e-1))),I0=e=>1-Math.sin(Math.acos(e)),KJ=j7(I0),W7=N7(I0),H7=e=>/^0[^.\s]+$/u.test(e);function UJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||H7(e):!0}const G7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),q7=e=>t=>typeof t=="string"&&t.startsWith(e),Y7=q7("--"),zJ=q7("var(--"),L0=e=>zJ(e)?WJ.test(e.split("/*")[0].trim()):!1,WJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,HJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function GJ(e){const t=HJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const qJ=4;function Z7(e,t,n=1){ds(n<=qJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=GJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return G7(a)?parseFloat(a):a}return L0(i)?Z7(i,t,n+1):i}const fs=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...Yu,transform:e=>fs(0,1,e)},vf={...Yu,default:1},td=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xo=td("deg"),gu=td("%"),Ze=td("px"),YJ=td("vh"),ZJ=td("vw"),cD={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},JJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),dD=e=>e===Yu||e===Ze,fD=(e,t)=>parseFloat(e.split(", ")[t]),hD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return fD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?fD(o[1],e):0}},XJ=new Set(["x","y","z"]),QJ=Qc.filter(e=>!XJ.has(e));function eX(e){const t=[];return QJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={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:hD(4,13),y:hD(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const J7=e=>t=>t.test(e),tX={test:e=>e==="auto",parse:e=>e},X7=[Yu,Ze,gu,Xo,ZJ,YJ,tX],pD=e=>X7.find(J7(e)),es=new Set;let Sv=!1,Tv=!1;function Q7(){if(Tv){const e=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=eX(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,es.forEach(e=>e.complete()),es.clear()}function eR(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function nX(){eR(),Q7()}class V0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Sv||(Sv=!0,Br.read(eR),Br.resolveKeyframes(Q7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sc=e=>Math.round(e*1e5)/1e5,N0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rX(e){return e==null}const iX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,j0=(e,t)=>n=>!!(typeof n=="string"&&iX.test(n)&&n.startsWith(e)||t&&!rX(n)&&Object.prototype.hasOwnProperty.call(n,t)),tR=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(N0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},oX=e=>fs(0,255,e),Kg={...Yu,transform:e=>Math.round(oX(e))},qa={test:j0("rgb","red"),parse:tR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+sc(Sc.transform(r))+")"};function aX(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 Av={test:j0("#"),parse:aX,transform:qa.transform},uu={test:j0("hsl","hue"),parse:tR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(sc(t))+", "+gu.transform(sc(n))+", "+sc(Sc.transform(r))+")"},Yn={test:e=>qa.test(e)||Av.test(e)||uu.test(e),parse:e=>qa.test(e)?qa.parse(e):uu.test(e)?uu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qa.transform(e):uu.transform(e)},sX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(N0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sX))===null||n===void 0?void 0:n.length)||0)>0}const nR="number",rR="color",lX="var",cX="var(",mD="${}",dX=/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 Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(dX,c=>(Yn.test(c)?(r.color.push(o),i.push(rR),n.push(Yn.parse(c))):c.startsWith(cX)?(r.var.push(o),i.push(lX),n.push(c)):(r.number.push(o),i.push(nR),n.push(parseFloat(c))),++o,mD)).split(mD);return{values:n,split:u,indexes:r,types:i}}function iR(e){return Tc(e).values}function oR(e){const{split:t,types:n}=Tc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===nR?o+=sc(i[a]):u===rR?o+=Yn.transform(i[a]):o+=i[a]}return o}}const fX=e=>typeof e=="number"?0:e;function hX(e){const t=iR(e);return oR(e)(t.map(fX))}const Zu={test:uX,parse:iR,createTransformer:oR,getAnimatableNone:hX},pX=new Set(["brightness","contrast","saturate","opacity"]);function mX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(N0)||[];if(!r)return e;const i=n.replace(r,"");let o=pX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const gX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Zu,getAnimatableNone:e=>{const t=e.match(gX);return t?t.map(mX).join(" "):e}},yX={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},vX={rotate:Xo,rotateX:Xo,rotateY:Xo,rotateZ:Xo,scale:vf,scaleX:vf,scaleY:vf,scaleZ:vf,skew:Xo,skewX:Xo,skewY:Xo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Sc,originX:cD,originY:cD,originZ:Ze},gD={...Yu,transform:Math.round},K0={...yX,...vX,zIndex:gD,size:Ze,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:gD},bX={...K0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},U0=e=>bX[e];function aR(e,t){let n=U0(e);return n!==Pv&&(n=Zu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $X=new Set(["auto","none","0"]);function xX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!$X.has(o)&&Tc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=aR(n,i)}class sR extends V0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),L0(d))){const f=Z7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!JJ.has(r)||t.length!==2)return;const[i,o]=t,a=pD(i),u=pD(o);if(a!==u)if(dD(a)&&dD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)UJ(t[i])&&r.push(i);r.length&&xX(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=Fu[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 t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function z0(e){return typeof e=="function"}let Nf;function wX(){Nf=void 0}const ca={now:()=>(Nf===void 0&&ca.set(Ch.isProcessing||kJ.useManualTiming?Ch.timestamp:performance.now()),Nf),set:e=>{Nf=e,queueMicrotask(wX)}},yD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zu.test(e)||e==="0")&&!e.startsWith("url("));function DX(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 EX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=yD(i,t),u=yD(o,t);return qu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:DX(e)||(n==="spring"||z0(n))&&r}const CX=40;class uR{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ca.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>CX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&nX(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ca.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!EX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Dp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const W0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},lR=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(W0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function cR(e,t){return t?e*(1e3/t):0}const SX=5;function dR(e,t,n){const r=Math.max(t-SX,0);return cR(n-e(r),t-r)}const Xt={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},vD=.001;function TX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;qu(e<=Eo(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=fs(Xt.minDamping,Xt.maxDamping,a),e=fs(Xt.minDuration,Xt.maxDuration,la(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Rv(d,a),y=Math.exp(-h);return vD-m/g*y},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-h),x=Rv(Math.pow(d,2),a);return(-i(d)+vD>0?-1:1)*((m-g)*y)/x}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=PX(i,o,u);if(e=Eo(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const AX=12;function PX(e,t,n){let r=n;for(let i=1;i<AX;i++)r=r-e(r)/t(r);return r}function Rv(e,t){return e*Math.sqrt(1-t*t)}const _v=2e4;function fR(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<_v;)t+=n,r=e.next(t);return t>=_v?1/0:t}const RX=["duration","bounce"],_X=["stiffness","damping","mass"];function bD(e,t){return t.some(n=>e[n]!==void 0)}function OX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!bD(e,_X)&&bD(e,RX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*fs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=TX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function hR(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=OX({...n,velocity:-la(n.velocity||0)}),y=m||0,x=d/(2*Math.sqrt(c*f)),C=a-o,b=la(Math.sqrt(c/f)),v=Math.abs(C)<5;r||(r=v?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=v?Xt.restDelta.granular:Xt.restDelta.default);let D;if(x<1){const E=Rv(b,x);D=A=>{const M=Math.exp(-x*b*A);return a-M*((y+x*b*C)/E*Math.sin(E*A)+C*Math.cos(E*A))}}else if(x===1)D=E=>a-Math.exp(-b*E)*(C+(y+b*C)*E);else{const E=b*Math.sqrt(x*x-1);D=A=>{const M=Math.exp(-x*b*A),S=Math.min(E*A,300);return a-M*((y+x*b*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=D(E);if(g)u.done=E>=h;else{let M=0;x<1&&(M=E===0?Eo(y):dR(D,E,A));const S=Math.abs(M)<=r,z=Math.abs(a-A)<=i;u.done=S&&z}return u.value=u.done?a:A,u},toString:()=>{const E=Math.min(fR(T),_v),A=lR(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function $D({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,y=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let x=n*t;const C=h+x,b=a===void 0?C:a(C);b!==C&&(x=b-h);const v=S=>-x*Math.exp(-S/r),D=S=>b+v(S),T=S=>{const z=v(S),K=D(S);m.done=Math.abs(z)<=d,m.value=m.done?b:K};let E,A;const M=S=>{g(m.value)&&(E=S,A=hR({keyframes:[m.value,y(m.value)],velocity:dR(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),m)}}}const MX=ed(.42,0,1,1),FX=ed(0,0,.58,1),pR=ed(.42,0,.58,1),kX=e=>Array.isArray(e)&&typeof e[0]!="number",H0=e=>Array.isArray(e)&&typeof e[0]=="number",xD={linear:pa,easeIn:MX,easeInOut:pR,easeOut:FX,circIn:I0,circInOut:W7,circOut:KJ,backIn:B0,backInOut:U7,backOut:K7,anticipate:z7},wD=e=>{if(H0(e)){ds(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ed(t,n,r,i)}else if(typeof e=="string")return ds(xD[e]!==void 0,`Invalid easing type '${e}'`),xD[e];return e},BX=(e,t)=>n=>t(e(n)),Ep=(...e)=>e.reduce(BX),Cp=(e,t,n)=>e+(t-e)*n;function Ug(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 IX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Sh(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},LX=[Av,qa,uu],VX=e=>LX.find(t=>t.test(e));function DD(e){const t=VX(e);if(qu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===uu&&(n=IX(n)),n}const ED=(e,t)=>{const n=DD(e),r=DD(t);if(!n||!r)return Sh(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Cp(n.alpha,r.alpha,o),qa.transform(i))},Ov=new Set(["none","hidden"]);function NX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jX(e,t){return n=>Cp(e,t,n)}function G0(e){return typeof e=="number"?jX:typeof e=="string"?L0(e)?Sh:Yn.test(e)?ED:zX:Array.isArray(e)?mR:typeof e=="object"?Yn.test(e)?ED:KX:Sh}function mR(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>G0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function KX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=G0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function UX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const zX=(e,t)=>{const n=Zu.createTransformer(t),r=Tc(e),i=Tc(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?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?NX(e,t):Ep(mR(UX(r,i),i.values),n):(qu(!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.`),Sh(e,t))};function gR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Cp(e,t,n):G0(e)(e,t)}function WX(e,t,n){const r=[],i=n||gR,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||pa:t;u=Ep(c,u)}r.push(u)}return r}function HX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ds(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=WX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=W0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(fs(e[0],e[o-1],d)):c}function GX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=W0(0,t,r);e.push(Cp(n,1,i))}}function qX(e){const t=[0];return GX(t,e.length-1),t}function YX(e,t){return e.map(n=>n*t)}function ZX(e,t){return e.map(()=>t||pR).splice(0,e.length-1)}function Th({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kX(r)?r.map(wD):wD(r),o={done:!1,value:t[0]},a=YX(n&&n.length===t.length?n:qX(t),e),u=HX(a,t,{ease:Array.isArray(i)?i:ZX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const JX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Ch.isProcessing?Ch.timestamp:ca.now()}},XX={decay:$D,inertia:$D,tween:Th,keyframes:Th,spring:hR},QX=e=>e/100;class q0 extends uR{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||V0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=z0(n)?n:XX[n]||Th;let c,d;u!==Th&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&ds(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Ep(QX,gR(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=fR(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:y,repeatDelay:x,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>f;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,f)/h;let z=Math.floor(S),K=S%1;!K&&S>=1&&(K=1),K===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(K=1-K,x&&(K-=x/h)):y==="mirror"&&(T=a)),D=fs(0,1,K)*h}const E=v?{done:!1,value:c[0]}:T.next(D);u&&(E.value=u(E.value));let{done:A}=E;!v&&d!==null&&(A=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Dp(c,this.options,i)),C&&C(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?la(t.calculatedDuration):0}get time(){return la(this.currentTime)}set time(t){t=Eo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=la(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=JX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const eQ=new Set(["opacity","clipPath","filter","transform"]);function Y0(e){let t;return()=>(t===void 0&&(t=e()),t)}const tQ={linearEasing:void 0};function nQ(e,t){const n=Y0(e);return()=>{var r;return(r=tQ[t])!==null&&r!==void 0?r:n()}}const Ah=nQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function yR(e){return!!(typeof e=="function"&&Ah()||!e||typeof e=="string"&&(e in Mv||Ah())||H0(e)||Array.isArray(e)&&e.every(yR))}const ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ql([0,.65,.55,1]),circOut:ql([.55,0,1,.45]),backIn:ql([.31,.01,.66,-.59]),backOut:ql([.33,1.53,.69,.99])};function vR(e,t){if(e)return typeof e=="function"&&Ah()?lR(e,t):H0(e)?ql(e):Array.isArray(e)?e.map(n=>vR(n,t)||Mv.easeOut):Mv[e]}function rQ(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=vR(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function CD(e,t){e.timeline=t,e.onfinish=null}const iQ=Y0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,oQ=2e4;function aQ(e){return z0(e.type)||e.type==="spring"||!yR(e.ease)}function sQ(e,t){const n=new q0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<oQ;)r=n.sample(o),i.push(r.value),o+=Ph;return{times:void 0,keyframes:i,duration:o-Ph,ease:"linear"}}const bR={anticipate:z7,backInOut:U7,circInOut:W7};function uQ(e){return e in bR}class SD extends uR{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new sR(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ah()&&uQ(a)&&(a=bR[a]),aQ(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:x,...C}=this.options,b=sQ(t,C);t=b.keyframes,t.length===1&&(t[1]=t[0]),i=b.duration,o=b.times,a=b.ease,u="keyframes"}const h=rQ(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(CD(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Dp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return la(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return la(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Eo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pa;const{animation:r}=n;CD(r,t)}return pa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,y=new q0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),x=Eo(this.time);d.setWithVelocity(y.sample(x-Ph).value,y.sample(x).value,Ph)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return iQ()&&r&&eQ.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const lQ=Y0(()=>window.ScrollTimeline!==void 0);class cQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>lQ()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function dQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const fQ=(e,t,n,r={},i,o)=>a=>{const u=I7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Eo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};dQ(u)||(f={...f,...FJ(e,f)}),f.duration&&(f.duration=Eo(f.duration)),f.repeatDelay&&(f.repeatDelay=Eo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Dp(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new cQ([])}return!o&&SD.supports(f)?new SD(f):new q0(f)},hQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),pQ=e=>Ev(e)?e[e.length-1]||0:e;function mQ(e,t){e.indexOf(t)===-1&&e.push(t)}function gQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class $R{constructor(){this.subscriptions=[]}add(t){return mQ(this.subscriptions,t),()=>gQ(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const TD=30,yQ=e=>!isNaN(parseFloat(e));class vQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ca.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ca.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$p(!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 $R);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>TD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,TD);return cR(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rh(e,t){return new vQ(e,t)}function bQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rh(n))}function $Q(e,t){const n=wp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=pQ(o[a]);bQ(e,a,u)}}const Z0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xQ="framerAppearId",xR="data-"+Z0(xQ);function wQ(e){return e.props[xR]}const ur=e=>!!(e&&e.getVelocity);function DQ(e){return!!(ur(e)&&e.add)}function EQ(e,t){const n=e.getValue("willChange");if(DQ(n))return n.add(t)}function CQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function wR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&CQ(f,h))continue;const y={delay:n,...I7(a||{},h)};let x=!1;if(window.MotionHandoffAnimation){const b=wQ(e);if(b){const v=window.MotionHandoffAnimation(b,h,Br);v!==null&&(y.startTime=v,x=!0)}}EQ(e,h),m.start(fQ(h,m,g,e.shouldReduceMotion&&vs.has(h)?{type:!1}:y,e,x));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&$Q(e,u)})}),d}function Fv(e,t,n={}){var r;const i=wp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(wR(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return SQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function SQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(TQ).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function TQ(e,t){return e.sortNodePosition(t)}function AQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?wp(e,t,n.custom):t;r=Promise.all(wR(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const PQ=k0.length;function DR(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?DR(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<PQ;n++){const r=k0[n],i=e.props[r];(Cc(i)||i===!1)&&(t[r]=i)}return t}const RQ=[...F0].reverse(),_Q=F0.length;function OQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AQ(e,n,r)))}function MQ(e){let t=OQ(e),n=AD(),r=!0;const i=c=>(d,f)=>{var h;const m=wp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:y,...x}=m;d={...d,...x,...y}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=DR(e.parent)||{},h=[],m=new Set;let g={},y=1/0;for(let C=0;C<_Q;C++){const b=RQ[C],v=n[b],D=d[b]!==void 0?d[b]:f[b],T=Cc(D),E=b===c?v.isActive:null;E===!1&&(y=C);let A=D===f[b]&&D!==d[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!D&&!v.prevProp||xp(D)||typeof D=="boolean")continue;const M=FQ(v.prevProp,D);let S=M||b===c&&v.isActive&&!A&&T||C>y&&T,z=!1;const K=Array.isArray(D)?D:[D];let L=K.reduce(i(b),{});E===!1&&(L={});const{prevResolvedValues:X={}}=v,_={...X,...L},I=V=>{S=!0,m.has(V)&&(z=!0,m.delete(V)),v.needsAnimating[V]=!0;const R=e.getValue(V);R&&(R.liveStyle=!1)};for(const V in _){const R=L[V],G=X[V];if(g.hasOwnProperty(V))continue;let U=!1;Ev(R)&&Ev(G)?U=!B7(R,G):U=R!==G,U?R!=null?I(V):m.add(V):R!==void 0&&m.has(V)?I(V):v.protectedKeys[V]=!0}v.prevProp=D,v.prevResolvedValues=L,v.isActive&&(g={...g,...L}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...K.map(V=>({animation:V,options:{type:b}})))}if(m.size){const C={};m.forEach(b=>{const v=e.getBaseTarget(b),D=e.getValue(b);D&&(D.liveStyle=!0),C[b]=v??null}),h.push({animation:C})}let x=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=AD(),r=!0}}}function FQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!B7(t,e):!1}function Ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function AD(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}class Ju{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kQ extends Ju{constructor(t){super(t),t.animationState||(t.animationState=MQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xp(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===void 0||t.call(this)}}let BQ=0;class IQ extends Ju{constructor(){super(...arguments),this.id=BQ++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const LQ={animation:{Feature:kQ},exit:{Feature:IQ}},VQ={x:!1,y:!1};function NQ(){return VQ.y}const jQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ER(e){return{point:{x:e.pageX,y:e.pageY}}}function PD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function CR(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const RD=()=>({min:0,max:0}),SR=()=>({x:RD(),y:RD()});function KQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function UQ(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 zQ(e,t){return KQ(UQ(e.getBoundingClientRect(),t))}const TR=$.createContext(null),WQ=$.createContext({}),HQ=$.createContext({}),GQ={},{schedule:qQ,cancel:bie}=L7(queueMicrotask,!1);function YQ(e){const t=ur(e)?e.get():e;return hQ(t)?t.toValue():t}function ZQ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function AR(e,t){const n=ZQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||NQ()||e(t)}}function JQ(e,t,n={}){const[r,i,o]=AR(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function OD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,ER(t)))}class XQ extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=JQ(t,n=>(OD(this.node,n,"Start"),r=>OD(this.node,r,"End"))))}unmount(){}}class QQ extends Ju{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=Ep(PD(this.node.current,"focus",()=>this.onFocus()),PD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Yl=new WeakSet;function MD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=MD(()=>{if(Yl.has(n))return;Wg(n,"down");const i=MD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},tee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nee(e){return tee.has(e.tagName)||e.tabIndex!==-1}const PR=(e,t)=>t?e===t?!0:PR(e,t.parentElement):!1;function FD(e){return jQ(e)&&!0}function ree(e,t,n={}){const[r,i,o]=AR(e,n),a=u=>{const c=u.currentTarget;if(!FD(u)||Yl.has(c))return;Yl.add(c);const d=t(u),f=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!FD(g)||!Yl.has(c))&&(Yl.delete(c),d&&d(g,{success:y}))},h=g=>{f(g,n.useGlobalTarget||PR(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{nee(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>eee(d,i),i)}),o}function kD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,ER(t)))}class iee extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=ree(t,n=>(kD(this.node,n,"Start"),(r,{success:i})=>kD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,oee=e=>{const t=kv.get(e.target);t&&t(e)},aee=e=>{e.forEach(oee)};function see({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(aee,{root:e,...t})),r[i]}function uee(e,t,n){const r=see(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const lee={some:0,all:1};class cee extends Ju{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return uee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(dee(t,n))&&this.startObserver()}unmount(){}}function dee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const fee={inView:{Feature:cee},tap:{Feature:iee},focus:{Feature:QQ},hover:{Feature:XQ}},RR=$.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Sp=$.createContext({}),J0=typeof window<"u",hee=J0?$.useLayoutEffect:$.useEffect,X0=$.createContext({strict:!1});function pee(e,t,n,r,i){var o,a;const{visualElement:u}=$.useContext(Sp),c=$.useContext(X0),d=$.useContext(TR),f=$.useContext(RR).reducedMotion,h=$.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=$.useContext(HQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&mee(h.current,n,i,g);const y=$.useRef(!1);$.useInsertionEffect(()=>{m&&y.current&&m.update(n,d)});const x=n[xR],C=$.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return hee(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),qQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),$.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),C.current=!1))}),m}function mee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_R(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&CR(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function _R(e){if(e)return e.options.allowProjection!==!1?e.projection:_R(e.parent)}function gee(e,t,n){return $.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):CR(n)&&(n.current=r))},[t])}function Tp(e){return xp(e.animate)||k0.some(t=>Cc(e[t]))}function OR(e){return!!(Tp(e)||e.variants)}function yee(e,t){if(Tp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cc(n)?n:void 0,animate:Cc(r)?r:void 0}}return e.inherit!==!1?t:{}}function vee(e){const{initial:t,animate:n}=yee(e,$.useContext(Sp));return $.useMemo(()=>({initial:t,animate:n}),[BD(t),BD(n)])}function BD(e){return Array.isArray(e)?e.join(" "):e}const ID={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"]},ku={};for(const e in ID)ku[e]={isEnabled:t=>ID[e].some(n=>!!t[n])};function Bv(e){for(const t in e)ku[t]={...ku[t],...e[t]}}const bee=Symbol.for("motionComponentSymbol");function $ee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...$.useContext(RR),...u,layoutId:xee(u)},{isStatic:h}=f,m=vee(u),g=r(u,h);if(!h&&J0){wee(f,e);const y=Dee(f);d=y.MeasureLayout,m.visualElement=pee(i,g,f,t,y.ProjectionNode)}return Co.jsxs(Sp.Provider,{value:m,children:[d&&m.visualElement?Co.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,gee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=$.forwardRef(o);return a[bee]=i,a}function xee({layoutId:e}){const t=$.useContext(WQ).id;return t&&e!==void 0?t+"-"+e:e}function wee(e,t){const n=$.useContext(X0).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?qu(!1,r):ds(!1,r)}}function Dee(e){const{drag:t,layout:n}=ku;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 Eee=["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 Q0(e){return typeof e!="string"||e.includes("-")?!1:!!(Eee.indexOf(e)>-1||/[A-Z]/u.test(e))}function MR(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const FR=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 kR(e,t,n,r){MR(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(FR.has(i)?i:Z0(i),t.attrs[i])}function BR(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!GQ[e]||e==="opacity")}function e1(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||BR(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function IR(e,t,n){const r=e1(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Qc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Cee(e){const t=$.useRef(null);return t.current===null&&(t.current=e()),t.current}function See({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:Tee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const LR=e=>(t,n)=>{const r=$.useContext(Sp),i=$.useContext(TR),o=()=>See(e,t,r,i);return n?o():Cee(o)};function Tee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=YQ(o[m]);let{initial:a,animate:u}=e;const c=Tp(e),d=OR(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!xp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const y=M0(e,m[g]);if(y){const{transitionEnd:x,transition:C,...b}=y;for(const v in b){let D=b[v];if(Array.isArray(D)){const T=f?D.length-1:0;D=D[T]}D!==null&&(i[v]=D)}for(const v in x)i[v]=x[v]}}}return i}const t1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),VR=()=>({...t1(),attrs:{}}),NR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Aee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Pee=Qc.length;function Ree(e,t,n){let r="",i=!0;for(let o=0;o<Pee;o++){const a=Qc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=NR(u,K0[a]);if(!c){i=!1;const f=Aee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function n1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(vs.has(c)){a=!0;continue}else if(Y7(c)){i[c]=d;continue}else{const f=NR(d,K0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=Ree(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function LD(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function _ee(e,t,n){const r=LD(t,e.x,e.width),i=LD(n,e.y,e.height);return`${r} ${i}`}const Oee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mee={offset:"strokeDashoffset",array:"strokeDasharray"};function Fee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Oee:Mee;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function r1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(n1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:y}=e;m.transform&&(y&&(g.transform=m.transform),delete m.transform),y&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=_ee(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&Fee(m,a,u,c,!1)}const i1=e=>typeof e=="string"&&e.toLowerCase()==="svg",kee={useVisualState:LR({scrapeMotionValuesFromProps:IR,createRenderState:VR,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{r1(n,r,i1(t.tagName),e.transformTemplate),kR(t,n)})}})},Bee={useVisualState:LR({scrapeMotionValuesFromProps:e1,createRenderState:t1})};function jR(e,t,n){for(const r in t)!ur(t[r])&&!BR(r,n)&&(e[r]=t[r])}function Iee({transformTemplate:e},t){return $.useMemo(()=>{const n=t1();return n1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Lee(e,t){const n=e.style||{},r={};return jR(r,n,e),Object.assign(r,Iee(e,t)),r}function Vee(e,t){const n={},r=Lee(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 Nee=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 _h(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nee.has(e)}let KR=e=>!_h(e);function jee(e){e&&(KR=t=>t.startsWith("on")?!_h(t):e(t))}try{jee(require("@emotion/is-prop-valid").default)}catch{}function Kee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(KR(i)||n===!0&&_h(i)||!t&&!_h(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Uee(e,t,n,r){const i=$.useMemo(()=>{const o=VR();return r1(o,t,i1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};jR(o,e.style,e),i.style={...o,...i.style}}return i}function zee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(Q0(n)?Uee:Vee)(r,o,a,n),d=Kee(r,typeof n=="string",e),f=n!==$.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=$.useMemo(()=>ur(h)?h.get():h,[h]);return $.createElement(n,{...f,children:m})}}function Wee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Q0(r)?kee:Bee,preloadedFeatures:e,useRender:zee(i),createVisualElement:t,Component:r};return $ee(a)}}const Iv={current:null},UR={current:!1};function Hee(){if(UR.current=!0,!!J0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Gee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&$p(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Rh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Rh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const VD=new WeakMap,qee=[...X7,Yn,Zu],Yee=e=>qee.find(J7(e)),ND=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=V0,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 m=ca.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Tp(n),this.isVariantNode=OR(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,VD.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)),UR.current||Hee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&$p(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(){VD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(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=vs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 ku){const n=ku[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):SR()}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<ND.length;r++){const i=ND[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Gee(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=Rh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(G7(i)||H7(i))?i=parseFloat(i):!Yee(i)&&Zu.test(n)&&(i=aR(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=M0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new $R),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class zR extends Zee{constructor(){super(...arguments),this.KeyframeResolver=sR}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;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Jee(e){return window.getComputedStyle(e)}class Xee extends zR{constructor(){super(...arguments),this.type="html",this.renderInstance=MR}readValueFromInstance(t,n){if(vs.has(n)){const r=U0(n);return r&&r.default||0}else{const r=Jee(t),i=(Y7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return zQ(t,n)}build(t,n,r){n1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return e1(t,n,r)}}class Qee extends zR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=SR}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=U0(n);return r&&r.default||0}return n=FR.has(n)?n:Z0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return IR(t,n,r)}build(t,n,r){r1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){kR(t,n,r,i)}mount(t){this.isSVGTag=i1(t.tagName),super.mount(t)}}const ete=(e,t)=>Q0(e)?new Qee(t):new Xee(t,{allowProjection:e!==$.Fragment}),tte=Wee(),nte=PJ(tte);function rte({children:e,features:t,strict:n=!1}){const[,r]=$.useState(!Gg(t)),i=$.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return $.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Co.jsx(X0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const ite={renderer:ete,...LQ,...fee};function WR(e){return t=>typeof t===e}var ote=WR("function"),ate=e=>e===null,jD=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",KD=e=>!ste(e)&&!ate(e)&&(ote(e)||typeof e=="object"),ste=WR("undefined");function ute(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function lte(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 cte(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(!lr(n[1],t.get(n[0])))return!1;return!0}function dte(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 lr(e,t){if(e===t)return!0;if(e&&KD(e)&&t&&KD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ute(e,t);if(e instanceof Map&&t instanceof Map)return cte(e,t);if(e instanceof Set&&t instanceof Set)return dte(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return lte(e,t);if(jD(e)&&jD(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var fte=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],hte=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(pte(t))return t}function Si(e){return t=>Ap(t)===e}function pte(e){return fte.includes(e)}function Xu(e){return t=>typeof t===e}function mte(e){return hte.includes(e)}var gte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(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(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&gte.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||mte(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function yte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function vte(e,t,n){return HR(e,t)?[e,t].every(ke.array)?!e.some(GD(n))&&t.some(GD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(HD(n))&&Object.entries(t).some(HD(n)):t===n:!1}function UD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=zi(e,i),c=zi(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function zD(e,t,n){const{key:r,type:i,value:o}=n,a=zi(e,r),u=zi(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return vte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(o1(c)):[a,u].every(ke.plainObject)?bte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function WD(e,t,{key:n}={}){let r=zi(e,n),i=zi(t,n);if(!HR(r,i))throw new TypeError("Inputs have different types");if(!yte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function HD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&o1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function bte(e,t){return t.some(n=>!e.includes(n))}function GD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&o1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function o1(e){return t=>e.some(n=>lr(n,t))}function HR(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function zi(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return zD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=zi(e,f),y=zi(t,f),x=ke.defined(h),C=ke.defined(m);if(x||C){const b=C?Fl(m,g):!Fl(h,g),v=Fl(h,y);return b&&v}return[g,y].every(ke.array)||[g,y].every(ke.plainObject)?!lr(g,y):g!==y}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=zi(e,f),y=zi(t,f),x=ke.defined(m);return Fl(h,g)&&(x?Fl(m,y):!x)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return UD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=WD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=WD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return UD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return zD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,qD;function $te(){if(qD)return qg;qD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),y=d[u],x=h.ease||o,C=isNaN(h.duration)?350:+h.duration,b=!1;return y===f?m(e,d[u]):requestAnimationFrame(D),v;function v(){b=!0}function D(T){if(b)return m(t,d[u]);var E=r(),A=n(1,(E-g)/C),M=x(A);d[u]=M*(f-y)+y,A<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var xte=$te();const wte=Po(xte);var jf={exports:{}},Dte=jf.exports,YD;function Ete(){return YD||(YD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Dte,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})}(jf)),jf.exports}var Cte=Ete();const GR=Po(Cte);var Yg,ZD;function Ste(){if(ZD)return Yg;ZD=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,Yg=n,Yg}var Tte=Ste();const JD=Po(Tte);var Zg,XD;function Ate(){if(XD)return Zg;XD=1;var e=function(v){return t(v)&&!n(v)};function t(b){return!!b&&typeof b=="object"}function n(b){var v=Object.prototype.toString.call(b);return v==="[object RegExp]"||v==="[object Date]"||o(b)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(b){return b.$$typeof===i}function a(b){return Array.isArray(b)?[]:{}}function u(b,v){return v.clone!==!1&&v.isMergeableObject(b)?x(a(b),b,v):b}function c(b,v,D){return b.concat(v).map(function(T){return u(T,D)})}function d(b,v){if(!v.customMerge)return x;var D=v.customMerge(b);return typeof D=="function"?D:x}function f(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(v){return Object.propertyIsEnumerable.call(b,v)}):[]}function h(b){return Object.keys(b).concat(f(b))}function m(b,v){try{return v in b}catch{return!1}}function g(b,v){return m(b,v)&&!(Object.hasOwnProperty.call(b,v)&&Object.propertyIsEnumerable.call(b,v))}function y(b,v,D){var T={};return D.isMergeableObject(b)&&h(b).forEach(function(E){T[E]=u(b[E],D)}),h(v).forEach(function(E){g(b,E)||(m(b,E)&&D.isMergeableObject(v[E])?T[E]=d(E,D)(b[E],v[E],D):T[E]=u(v[E],D))}),T}function x(b,v,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(v),E=Array.isArray(b),A=T===E;return A?T?D.arrayMerge(b,v,D):y(b,v,D):u(v,D)}x.all=function(v,D){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(T,E){return x(T,E,D)},{})};var C=x;return Zg=C,Zg}var Pte=Ate();const bi=Po(Pte);var bf={exports:{}},$f={exports:{}},Et={};/** @license React v16.13.1
156
- * react-is.production.min.js
157
- *
158
- * Copyright (c) Facebook, Inc. and its affiliates.
159
- *
160
- * This source code is licensed under the MIT license found in the
161
- * LICENSE file in the root directory of this source tree.
162
- */var QD;function Rte(){if(QD)return Et;QD=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case y:case g:case a:return E;default:return A}}case n:return A}}}function T(E){return D(E)===d}return Et.AsyncMode=c,Et.ConcurrentMode=d,Et.ContextConsumer=u,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=f,Et.Fragment=r,Et.Lazy=y,Et.Memo=g,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.isAsyncMode=function(E){return T(E)||D(E)===c},Et.isConcurrentMode=T,Et.isContextConsumer=function(E){return D(E)===u},Et.isContextProvider=function(E){return D(E)===a},Et.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Et.isForwardRef=function(E){return D(E)===f},Et.isFragment=function(E){return D(E)===r},Et.isLazy=function(E){return D(E)===y},Et.isMemo=function(E){return D(E)===g},Et.isPortal=function(E){return D(E)===n},Et.isProfiler=function(E){return D(E)===o},Et.isStrictMode=function(E){return D(E)===i},Et.isSuspense=function(E){return D(E)===h},Et.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===b||E.$$typeof===v||E.$$typeof===x)},Et.typeOf=D,Et}var Ct={};/** @license React v16.13.1
163
- * react-is.development.js
164
- *
165
- * Copyright (c) Facebook, Inc. and its affiliates.
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE file in the root directory of this source tree.
169
- */var eE;function _te(){return eE||(eE=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,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(ae){return typeof ae=="string"||typeof ae=="function"||ae===r||ae===d||ae===o||ae===i||ae===h||ae===m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===y||ae.$$typeof===g||ae.$$typeof===a||ae.$$typeof===u||ae.$$typeof===f||ae.$$typeof===C||ae.$$typeof===b||ae.$$typeof===v||ae.$$typeof===x)}function T(ae){if(typeof ae=="object"&&ae!==null){var Fe=ae.$$typeof;switch(Fe){case t:var et=ae.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case y:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=c,A=d,M=u,S=a,z=t,K=f,L=r,X=y,_=g,I=n,W=o,k=i,V=h,R=!1;function G(ae){return R||(R=!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.")),U(ae)||T(ae)===c}function U(ae){return T(ae)===d}function N(ae){return T(ae)===u}function ne(ae){return T(ae)===a}function ie(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===t}function le(ae){return T(ae)===f}function $e(ae){return T(ae)===r}function De(ae){return T(ae)===y}function Ee(ae){return T(ae)===g}function Y(ae){return T(ae)===n}function he(ae){return T(ae)===o}function ye(ae){return T(ae)===i}function fe(ae){return T(ae)===h}Ct.AsyncMode=E,Ct.ConcurrentMode=A,Ct.ContextConsumer=M,Ct.ContextProvider=S,Ct.Element=z,Ct.ForwardRef=K,Ct.Fragment=L,Ct.Lazy=X,Ct.Memo=_,Ct.Portal=I,Ct.Profiler=W,Ct.StrictMode=k,Ct.Suspense=V,Ct.isAsyncMode=G,Ct.isConcurrentMode=U,Ct.isContextConsumer=N,Ct.isContextProvider=ne,Ct.isElement=ie,Ct.isForwardRef=le,Ct.isFragment=$e,Ct.isLazy=De,Ct.isMemo=Ee,Ct.isPortal=Y,Ct.isProfiler=he,Ct.isStrictMode=ye,Ct.isSuspense=fe,Ct.isValidElementType=D,Ct.typeOf=T}()),Ct}var tE;function qR(){return tE||(tE=1,process.env.NODE_ENV==="production"?$f.exports=Rte():$f.exports=_te()),$f.exports}/*
170
- object-assign
171
- (c) Sindre Sorhus
172
- @license MIT
173
- */var Jg,nE;function Ote(){if(nE)return Jg;nE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jg=i()?Object.assign:function(o,a){for(var u,c=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},Jg}var Xg,rE;function a1(){if(rE)return Xg;rE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xg=e,Xg}var Qg,iE;function YR(){return iE||(iE=1,Qg=Function.call.bind(Object.prototype.hasOwnProperty)),Qg}var ey,oE;function Mte(){if(oE)return ey;oE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=a1(),n={},r=YR();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,c,u,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ey=i,ey}var ty,aE;function Fte(){if(aE)return ty;aE=1;var e=qR(),t=Ote(),n=a1(),r=YR(),i=Mte(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ty=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(U){var N=U&&(d&&U[d]||U[f]);if(typeof N=="function")return N}var m="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:D,element:T(),elementType:E(),instanceOf:A,node:K(),objectOf:S,oneOf:M,oneOfType:z,shape:X,exact:_};function y(U,N){return U===N?U!==0||1/U===1/N:U!==U&&N!==N}function x(U,N){this.message=U,this.data=N&&typeof N=="object"?N:{},this.stack=""}x.prototype=Error.prototype;function C(U){if(process.env.NODE_ENV!=="production")var N={},ne=0;function ie($e,De,Ee,Y,he,ye,fe){if(Y=Y||m,ye=ye||Ee,fe!==n){if(c){var ae=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 ae.name="Invariant Violation",ae}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=Y+":"+Ee;!N[Fe]&&ne<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+Y+"`. 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."),N[Fe]=!0,ne++)}}return De[Ee]==null?$e?De[Ee]===null?new x("The "+he+" `"+ye+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new x("The "+he+" `"+ye+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:U(De,Ee,Y,he,ye)}var le=ie.bind(null,!1);return le.isRequired=ie.bind(null,!0),le}function b(U){function N(ne,ie,le,$e,De,Ee){var Y=ne[ie],he=k(Y);if(he!==U){var ye=V(Y);return new x("Invalid "+$e+" `"+De+"` of type "+("`"+ye+"` supplied to `"+le+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return C(N)}function v(){return C(a)}function D(U){function N(ne,ie,le,$e,De){if(typeof U!="function")return new x("Property `"+De+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var Ee=ne[ie];if(!Array.isArray(Ee)){var Y=k(Ee);return new x("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected an array."))}for(var he=0;he<Ee.length;he++){var ye=U(Ee,he,le,$e,De+"["+he+"]",n);if(ye instanceof Error)return ye}return null}return C(N)}function T(){function U(N,ne,ie,le,$e){var De=N[ne];if(!u(De)){var Ee=k(De);return new x("Invalid "+le+" `"+$e+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return C(U)}function E(){function U(N,ne,ie,le,$e){var De=N[ne];if(!e.isValidElementType(De)){var Ee=k(De);return new x("Invalid "+le+" `"+$e+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return C(U)}function A(U){function N(ne,ie,le,$e,De){if(!(ne[ie]instanceof U)){var Ee=U.name||m,Y=G(ne[ie]);return new x("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected ")+("instance of `"+Ee+"`."))}return null}return C(N)}function M(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(ne,ie,le,$e,De){for(var Ee=ne[ie],Y=0;Y<U.length;Y++)if(y(Ee,U[Y]))return null;var he=JSON.stringify(U,function(fe,ae){var Fe=V(ae);return Fe==="symbol"?String(ae):ae});return new x("Invalid "+$e+" `"+De+"` of value `"+String(Ee)+"` "+("supplied to `"+le+"`, expected one of "+he+"."))}return C(N)}function S(U){function N(ne,ie,le,$e,De){if(typeof U!="function")return new x("Property `"+De+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var Ee=ne[ie],Y=k(Ee);if(Y!=="object")return new x("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected an object."));for(var he in Ee)if(r(Ee,he)){var ye=U(Ee,he,le,$e,De+"."+he,n);if(ye instanceof Error)return ye}return null}return C(N)}function z(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<U.length;N++){var ne=U[N];if(typeof ne!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(ne)+" at index "+N+"."),a}function ie(le,$e,De,Ee,Y){for(var he=[],ye=0;ye<U.length;ye++){var fe=U[ye],ae=fe(le,$e,De,Ee,Y,n);if(ae==null)return null;ae.data&&r(ae.data,"expectedType")&&he.push(ae.data.expectedType)}var Fe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new x("Invalid "+Ee+" `"+Y+"` supplied to "+("`"+De+"`"+Fe+"."))}return C(ie)}function K(){function U(N,ne,ie,le,$e){return I(N[ne])?null:new x("Invalid "+le+" `"+$e+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return C(U)}function L(U,N,ne,ie,le){return new x((U||"React class")+": "+N+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function X(U){function N(ne,ie,le,$e,De){var Ee=ne[ie],Y=k(Ee);if(Y!=="object")return new x("Invalid "+$e+" `"+De+"` of type `"+Y+"` "+("supplied to `"+le+"`, expected `object`."));for(var he in U){var ye=U[he];if(typeof ye!="function")return L(le,$e,De,he,V(ye));var fe=ye(Ee,he,le,$e,De+"."+he,n);if(fe)return fe}return null}return C(N)}function _(U){function N(ne,ie,le,$e,De){var Ee=ne[ie],Y=k(Ee);if(Y!=="object")return new x("Invalid "+$e+" `"+De+"` of type `"+Y+"` "+("supplied to `"+le+"`, expected `object`."));var he=t({},ne[ie],U);for(var ye in he){var fe=U[ye];if(r(U,ye)&&typeof fe!="function")return L(le,$e,De,ye,V(fe));if(!fe)return new x("Invalid "+$e+" `"+De+"` key `"+ye+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
174
- Valid keys: `+JSON.stringify(Object.keys(U),null," "));var ae=fe(Ee,ye,le,$e,De+"."+ye,n);if(ae)return ae}return null}return C(N)}function I(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(I);if(U===null||u(U))return!0;var N=h(U);if(N){var ne=N.call(U),ie;if(N!==U.entries){for(;!(ie=ne.next()).done;)if(!I(ie.value))return!1}else for(;!(ie=ne.next()).done;){var le=ie.value;if(le&&!I(le[1]))return!1}}else return!1;return!0;default:return!1}}function W(U,N){return U==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(U){var N=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":W(N,U)?"symbol":N}function V(U){if(typeof U>"u"||U===null)return""+U;var N=k(U);if(N==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return N}function R(U){var N=V(U);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function G(U){return!U.constructor||!U.constructor.name?m:U.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},ty}var ny,sE;function kte(){if(sE)return ny;sE=1;var e=a1();function t(){}function n(){}return n.resetWarningCache=t,ny=function(){function r(a,u,c,d,f,h){if(h!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={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 o.PropTypes=o,o},ny}var uE;function Bte(){if(uE)return bf.exports;if(uE=1,process.env.NODE_ENV!=="production"){var e=qR(),t=!0;bf.exports=Fte()(e.isElement,t)}else bf.exports=kte()();return bf.exports}var Ite=Bte();const Se=Po(Ite);/**!
175
- * @fileOverview Kickass library to create and place poppers near their reference elements.
176
- * @version 1.16.1
177
- * @license
178
- * Copyright (c) 2016 Federico Zivolo and contributors
179
- *
180
- * Permission is hereby granted, free of charge, to any person obtaining a copy
181
- * of this software and associated documentation files (the "Software"), to deal
182
- * in the Software without restriction, including without limitation the rights
183
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
184
- * copies of the Software, and to permit persons to whom the Software is
185
- * furnished to do so, subject to the following conditions:
186
- *
187
- * The above copyright notice and this permission notice shall be included in all
188
- * copies or substantial portions of the Software.
189
- *
190
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
191
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
192
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
193
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
194
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
195
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
196
- * SOFTWARE.
197
- */var nd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Lte=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(nd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Vte(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Nte(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Lte))}}var jte=nd&&window.Promise,Kte=jte?Vte:Nte;function ZR(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function bs(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function s1(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function rd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=bs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:rd(s1(e))}function JR(e){return e&&e.referenceNode?e.referenceNode:e}var lE=nd&&!!(window.MSInputMethodContext&&document.documentMode),cE=nd&&/MSIE 10/.test(navigator.userAgent);function Qu(e){return e===11?lE:e===10?cE:lE||cE}function Bu(e){if(!e)return document.documentElement;for(var t=Qu(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&&bs(n,"position")==="static"?Bu(n):n}function Ute(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Bu(e.firstElementChild)===e}function Lv(e){return e.parentNode!==null?Lv(e.parentNode):e}function Mh(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,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return Ute(a)?a:Bu(a);var u=Lv(e);return u.host?Mh(u.host,t):Mh(e,Lv(t).host)}function Iu(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,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function zte(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Iu(t,"top"),i=Iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function dE(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 fE(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Qu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function XR(e){var t=e.body,n=e.documentElement,r=Qu(10)&&getComputedStyle(n);return{height:fE("Height",t,n,r),width:fE("Width",t,n,r)}}var Wte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Hte=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}}(),Lu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=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 ma(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(Qu(10)){t=e.getBoundingClientRect();var n=Iu(e,"top"),r=Iu(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},o=e.nodeName==="HTML"?XR(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=bs(e);c-=dE(f,"x"),d-=dE(f,"y"),i.width-=c,i.height-=d}return ma(i)}function u1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(10),i=t.nodeName==="HTML",o=Vv(e),a=Vv(t),u=rd(e),c=bs(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=ma({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=zte(h,t)),h}function Gte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=u1(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Iu(n),u=t?0:Iu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return ma(c)}function QR(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(bs(e,"position")==="fixed")return!0;var n=s1(e);return n?QR(n):!1}function e_(e){if(!e||!e.parentElement||Qu())return document.documentElement;for(var t=e.parentElement;t&&bs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function l1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?e_(e):Mh(e,JR(t));if(r==="viewport")o=Gte(a,i);else{var u=void 0;r==="scrollParent"?(u=rd(s1(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=u1(u,a,i);if(u.nodeName==="HTML"&&!QR(a)){var d=XR(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function qte(e){var t=e.width,n=e.height;return t*n}function t_(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=l1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:qte(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,y=m.height;return g>=n.clientWidth&&y>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function n_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?e_(t):Mh(t,JR(n));return u1(n,i,r)}function r_(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),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Fh(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 i_(e,t,n){n=n.split("-")[0];var r=r_(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fh(u)],i}function id(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Yte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=id(e,function(i){return i[t]===n});return e.indexOf(r)}function o_(e,t,n){var r=n===void 0?e:e.slice(0,Yte(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&ZR(o)&&(t.offsets.popper=ma(t.offsets.popper),t.offsets.reference=ma(t.offsets.reference),t=o(t,i))}),t}function Zte(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=n_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=t_(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=i_(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=o_(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function a_(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function c1(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],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function Jte(){return this.state.isDestroyed=!0,a_(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[c1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function s_(e){var t=e.ownerDocument;return t?t.defaultView:window}function u_(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||u_(rd(o.parentNode),t,n,r),r.push(o)}function Xte(e,t,n,r){n.updateBound=r,s_(e).addEventListener("resize",n.updateBound,{passive:!0});var i=rd(e);return u_(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Qte(){this.state.eventsEnabled||(this.state=Xte(this.reference,this.options,this.state,this.scheduleUpdate))}function ene(e,t){return s_(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 tne(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ene(this.reference,this.state))}function d1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&d1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function nne(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function rne(e){return Nv(e.instance.popper,e.styles),nne(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nv(e.arrowElement,e.arrowStyles),e}function ine(e,t,n,r,i){var o=n_(i,t,e,n.positionFixed),a=t_(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function one(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(b){return b},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,y=t?f||h||m?o:a:u,x=t?o:u;return{left:y(g&&!h&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:y(r.right)}}var ane=nd&&/Firefox/i.test(navigator.userAgent);function sne(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=id(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Bu(e.instance.popper),c=Vv(u),d={position:i.position},f=one(e,window.devicePixelRatio<2||!ane),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=c1("transform"),y=void 0,x=void 0;if(h==="bottom"?u.nodeName==="HTML"?x=-u.clientHeight+f.bottom:x=-c.height+f.bottom:x=f.top,m==="right"?u.nodeName==="HTML"?y=-u.clientWidth+f.right:y=-c.width+f.right:y=f.left,a&&g)d[g]="translate3d("+y+"px, "+x+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,b=m==="right"?-1:1;d[h]=x*C,d[m]=y*b,d.willChange=h+", "+m}var v={"x-placement":e.placement};return e.attributes=oi({},v,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function l_(e,t,n){var r=id(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function une(e,t){var n;if(!l_(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],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",y=r_(r)[d];u[g]-y<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-y)),u[h]+y>a[g]&&(e.offsets.popper[h]+=u[h]+y-a[g]),e.offsets.popper=ma(e.offsets.popper);var x=u[h]+u[d]/2-y/2,C=bs(e.instance.popper),b=parseFloat(C["margin"+f]),v=parseFloat(C["border"+f+"Width"]),D=x-e.offsets.popper[h]-b-v;return D=Math.max(Math.min(a[d]-y,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Lu(n,h,Math.round(D)),Lu(n,m,""),n),e}function lne(e){return e==="end"?"start":e==="start"?"end":e}var c_=["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"],ry=c_.slice(3);function hE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ry.indexOf(e),r=ry.slice(n+1).concat(ry.slice(0,n));return t?r.reverse():r}var iy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function cne(e,t){if(a_(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=l1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case iy.FLIP:a=[r,i];break;case iy.CLOCKWISE:a=hE(r);break;case iy.COUNTERCLOCKWISE:a=hE(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=Fh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),y=h(d.right)>h(n.right),x=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),b=r==="left"&&g||r==="right"&&y||r==="top"&&x||r==="bottom"&&C,v=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(v&&o==="start"&&g||v&&o==="end"&&y||!v&&o==="start"&&x||!v&&o==="end"&&C),T=!!t.flipVariationsByContent&&(v&&o==="start"&&y||v&&o==="end"&&g||!v&&o==="start"&&C||!v&&o==="end"&&x),E=D||T;(m||b||E)&&(e.flipped=!0,(m||b)&&(r=a[c+1]),E&&(o=lne(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,i_(e.instance.popper,e.offsets.reference,e.placement)),e=o_(e.instance.modifiers,e,"flip"))}),e}function dne(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function fne(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=ma(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function hne(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(id(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(y,x){return y[y.length-1]===""&&["+","-"].indexOf(x)!==-1?(y[y.length-1]=x,g=!0,y):g?(y[y.length-1]+=x,g=!1,y):y.concat(x)},[]).map(function(y){return fne(y,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){d1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function pne(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return d1(+n)?c=[+n,0]:c=hne(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function mne(e,t){var n=t.boundariesElement||Bu(e.instance.popper);e.instance.reference===n&&(n=Bu(n));var r=c1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=l1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var y=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(y=Math.max(f[g],c[g])),Lu({},g,y)},secondary:function(g){var y=g==="right"?"left":"top",x=f[y];return f[g]>c[g]&&!t.escapeWithReference&&(x=Math.min(f[y],c[g]-(g==="right"?f.width:f.height))),Lu({},y,x)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function gne(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Lu({},c,o[c]),end:Lu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function yne(e){if(!l_(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=id(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 vne(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Fh(t),e.offsets.popper=ma(i),e}var bne={shift:{order:100,enabled:!0,fn:gne},offset:{order:200,enabled:!0,fn:pne,offset:0},preventOverflow:{order:300,enabled:!0,fn:mne,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:dne},arrow:{order:500,enabled:!0,fn:une,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:cne,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:vne},hide:{order:800,enabled:!0,fn:yne},computeStyle:{order:850,enabled:!0,fn:sne,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:rne,onLoad:ine,gpuAcceleration:void 0}},$ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:bne},Ac=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Wte(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Kte(this.update.bind(this)),this.options=oi({},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(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&ZR(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Hte(e,[{key:"update",value:function(){return Zte.call(this)}},{key:"destroy",value:function(){return Jte.call(this)}},{key:"enableEventListeners",value:function(){return Qte.call(this)}},{key:"disableEventListeners",value:function(){return tne.call(this)}}]),e}();Ac.Utils=(typeof window<"u"?window:global).PopperUtils;Ac.placements=c_;Ac.Defaults=$ne;var xne=["innerHTML","ownerDocument","style","attributes","nodeValue"],wne=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Dne=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Ene(t))return t}function Ti(e){return function(t){return Pp(t)===e}}function Ene(e){return wne.includes(e)}function el(e){return function(t){return typeof t===e}}function Cne(e){return Dne.includes(e)}function ce(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(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Pp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Pp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=el("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&xne.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=el("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return el("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Pp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||Cne(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=el("string");ce.symbol=el("symbol");ce.undefined=el("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function d_(e){return function(t){return typeof t===e}}var Sne=d_("function"),Tne=function(e){return e===null},pE=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},mE=function(e){return!Ane(e)&&!Tne(e)&&(Sne(e)||typeof e=="object")},Ane=d_("undefined"),jv=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 Pne(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function Rne(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 _ne(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=jv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=jv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function One(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=jv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&mE(e)&&t&&mE(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Pne(e,t);if(e instanceof Map&&t instanceof Map)return _ne(e,t);if(e instanceof Set&&t instanceof Set)return One(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Rne(e,t);if(pE(e)&&pE(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Mne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function Fne(e,t,n){return f_(e,t)?[e,t].every(ce.array)?!e.some($E(n))&&t.some($E(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(bE(n))&&Object.entries(t).some(bE(n)):t===n:!1}function gE(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Wi(e,i),c=Wi(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function yE(e,t,n){var r=n.key,i=n.type,o=n.value,a=Wi(e,r),u=Wi(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return Fne(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(f1(c)):[a,u].every(ce.plainObject)?kne(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function vE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Wi(e,i),a=Wi(t,i);if(!f_(o,a))throw new TypeError("Inputs have different types");if(!Mne(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function bE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&f1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function kne(e,t){return t.some(function(n){return!e.includes(n)})}function $E(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&f1(t)(n)}):Dr(e,t)}}function kl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function f1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function f_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Wi(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function Bne(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return yE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var y=Wi(e,h),x=Wi(t,h),C=ce.defined(m),b=ce.defined(g);if(C||b){var v=b?kl(g,y):!kl(m,y),D=kl(m,x);return v&&D}return[y,x].every(ce.array)||[y,x].every(ce.plainObject)?!Dr(y,x):y!==x}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var y=Wi(e,h),x=Wi(t,h),C=ce.defined(g);return kl(m,y)&&(C?kl(g,x):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return gE(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=vE(e,t,{key:h}),g=m[0],y=m[1];return!!g.length&&!y.length}catch{return!1}},c=function(h){try{var m=vE(e,t,{key:h}),g=m[0],y=m[1];return!g.length&&!!y.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return gE(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return yE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function xE(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xE(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function od(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ine(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,p_(r.key),r)}}function ad(e,t,n){return t&&Ine(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=p_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(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&&Kv(e,t)}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function Lne(){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 Vne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function h_(e,t){if(e==null)return{};var n=Vne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function go(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nne(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 go(e)}function ud(e){var t=Lne();return function(){var r=kh(e),i;if(t){var o=kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nne(this,i)}}function jne(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||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p_(e){var t=jne(e,"string");return typeof t=="symbol"?t:String(t)}var Kne={flip:{padding:20},preventOverflow:{padding:10}},Une="The typeValidator argument must be a function with the signature function(props, propName, componentName).",zne="The error message is optional, but must be a string if provided.";function Wne(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Hne(e,t){return Object.hasOwnProperty.call(e,t)}function Gne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function qne(e,t){if(typeof e!="function")throw new TypeError(Une);if(t)throw new TypeError(zne)}function wE(e,t,n){return qne(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return Wne(t,r,i,o)?Hne(r,i)?e.apply(void 0,[r,i,o].concat(u)):Gne(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Bl=sa.createPortal!==void 0;function Bi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function xf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function Yne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Zne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Jne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Zne(e,t,i)},Yne(e,t,i,r)}function DE(){}var m_=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"componentDidMount",value:function(){Bi()&&(this.node||this.appendNode(),Bl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Bi()&&(Bl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Bi()||!this.node||(Bl||sa.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,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Bi())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Bl)return sa.createPortal(o,this.node);var u=sa.unstable_renderSubtreeIntoContainer(this,o.length>1?$.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bl?this.renderReact16():null}}]),n}($.Component);Zn(m_,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var g_=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,y=c.spread,x={display:f,position:g},C,b=y,v=h;return o.startsWith("top")?(C="0,0 ".concat(b/2,",").concat(v," ").concat(b,",0"),x.bottom=0,x.marginLeft=m,x.marginRight=m):o.startsWith("bottom")?(C="".concat(b,",").concat(v," ").concat(b/2,",0 0,").concat(v),x.top=0,x.marginLeft=m,x.marginRight=m):o.startsWith("left")?(v=y,b=h,C="0,0 ".concat(b,",").concat(v/2," 0,").concat(v),x.right=0,x.marginTop=m,x.marginBottom=m):o.startsWith("right")&&(v=y,b=h,C="".concat(b,",").concat(v," ").concat(b,",0 0,").concat(v/2),x.left=0,x.marginTop=m,x.marginBottom=m),$.createElement("div",{className:"__floater__arrow",style:this.parentStyle},$.createElement("span",{ref:a,style:x},$.createElement("svg",{width:b,height:v,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$.createElement("polygon",{points:C,fill:d}))))}}]),n}($.Component);Zn(g_,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var Xne=["color","height","width"];function y_(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=h_(n,Xne);return $.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},$.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},$.createElement("g",null,$.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}))))}y_.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function v_(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:$.isValidElement(t)?t:$.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=$.isValidElement(u)?u:$.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=$.isValidElement(n)?n:$.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=$.createElement(y_,{styles:c.close,handleClick:r})),$.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}v_.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var b_=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,y=f.floaterClosing,x=f.floaterOpening,C=f.floaterWithAnimation,b=f.floaterWithComponent,v={};return c||(u.startsWith("top")?v.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?v.padding="".concat(h,"px 0 0"):u.startsWith("left")?v.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(v.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(v=Gt(Gt({},v),x)),d===pt.CLOSING&&(v=Gt(Gt({},v),y)),d===pt.OPEN&&!o&&(v=Gt(Gt({},v),C)),u==="center"&&(v=Gt(Gt({},v),g)),a&&(v=Gt(Gt({},v),b)),Gt(Gt({},m),v)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?$.isValidElement(o)?f.content=$.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=$.createElement(v_,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=$.createElement(g_,this.props)),$.createElement("div",{ref:c,className:h.join(" "),style:this.style},$.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}($.Component);Zn(b_,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var $_=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if($.Children.count(o)===1)if(!$.isValidElement(o))g=$.createElement("span",null,o);else{var y=ce.function(o.type)?"innerRef":"ref";g=$.cloneElement($.Children.only(o),Zn({},y,d))}else g=o;return g?$.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}($.Component);Zn($_,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var Qne={zIndex:100};function ere(e){var t=bi(Qne,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 tre=["arrow","flip","offset"],nre=["position","top","right","bottom","left"],h1=function(e){sd(n,e);var t=ud(n);function n(r){var i;return od(this,n),i=t.call(this,r),Zn(go(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(go(i),"setChildRef",function(o){i.childRef=o}),Zn(go(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(go(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(go(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(go(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(xf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(go(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||oy())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(xf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(go(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||oy())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(xf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,Bi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return ad(n,[{key:"componentDidMount",value:function(){if(Bi()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,xf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(Bi()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=Bne(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var y;ce.boolean(c)&&(y=c?pt.OPENING:pt.CLOSING),this.toggle(y)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&Jne(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Bi()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,y=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var x=this.options,C=x.arrow,b=x.flip,v=x.offset,D=h_(x,tre);new Ac(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:y},b),offset:Gt({offset:"0, ".concat(h,"px")},v)},D),onCreate:function(A){var M;if(i.popper=A,!((M=i.floaterRef)!==null&&M!==void 0&&M.isConnected)){i.setState({needsUpdate:!0});return}d(A,"floater"),i._isMounted&&i.setState({currentPlacement:A.placement,status:pt.IDLE}),m!==A.placement&&setTimeout(function(){A.instance.update()},1)},onUpdate:function(A){i.popper=A;var M=i.state.currentPlacement;i._isMounted&&A.placement!==M&&i.setState({currentPlacement:A.placement})}})}if(a){var T=ce.undefined(g.offset)?0:g.offset;new Ac(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(A){i.wrapperPopper=A,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(A,"wrapper"),m!==A.placement&&setTimeout(function(){A.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Bi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&oy()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(Kne,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi(ere(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(nre.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.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 f}},{key:"target",get:function(){if(!Bi())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,y=c.hideArrow,x=c.id,C=c.open,b=c.showCloseButton,v=c.style,D=c.target,T=c.title,E=$.createElement($_,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:v,styles:this.styles.wrapper},d),A={};return a?A.wrapperInPortal=E:A.wrapperAsChildren=E,$.createElement("span",null,$.createElement(m_,{hasChildren:!!d,id:x,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},$.createElement(b_,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:y||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:b,status:u,styles:this.styles,title:T}),A.wrapperInPortal),A.wrapperAsChildren)}}]),n}($.Component);Zn(h1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:wE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:wE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(h1,"defaultProps",{autoOpen:!1,callback:DE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:DE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var rre=Object.defineProperty,ire=(e,t,n)=>t in e?rre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>ire(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={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",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function na(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function x_(e){return e?e.getBoundingClientRect():null}function ore(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((o,a)=>o-a),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 xo(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 are(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Pc(e,t,n){if(!e)return Ya();const r=GR(e);if(r){if(r.isSameNode(Ya()))return n?document:Ya();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Ya()}return r}function ld(e,t){if(!e)return!1;const n=Pc(e,t);return n?!n.isSameNode(Ya()):!1}function sre(e){return e.offsetParent!==document.body}function Vu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=are(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Vu(e.parentNode,t):!1}function ure(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 lre(e,t,n){var r,i,o;const a=x_(e),u=Pc(e,n),c=ld(e,n),d=Vu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Vu(e)&&(h+=f),u.isSameNode(Ya())||(h+=Ya().scrollTop));return Math.floor(h-t)}function cre(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=GR(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(ld(e,n)||sre(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function Ya(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function dre(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;wte.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Il=sa.createPortal!==void 0;function w_(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 Kf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ii(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=JD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if($.isValidElement(e)&&!Object.values(e.props).length&&Kf(e.type)==="function"){const a=e.type({});o=Ii(a,t)}else o=JD(n);return o}function fre(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function hre(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),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 EE(e){return e.disableBeacon||e.placement==="center"}function CE(){return!["chrome","safari","firefox","opera"].includes(w_())}function ga({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(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function pre(e){return Object.keys(e)}function D_(e,...t){if(!ke.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 mre(e,...t){if(!ke.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 Uv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Kf(e)==="string")return r(e);if(!$.isValidElement(e))return e;const{children:i}=e.props;if(Kf(i)==="string"&&i.includes("{step}"))return $.cloneElement(e,{children:r(i)});if(Array.isArray(i))return $.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Uv(o,t,n))});if(Kf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Uv(o,t,n)}return e}function gre(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Vu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var yre={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},E_={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},vre={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:E_,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},bre={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:[]},$re={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},Ll={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},SE={borderRadius:4,position:"absolute"};function xre(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi($re,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const y={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},x={beacon:{...Ll,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.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(${hre(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},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:{...Ll,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ll,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ll,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ll,color:h.textColor,fontSize:14},overlay:{...y,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...y},overlayLegacyCenter:{...y,backgroundColor:h.overlayColor},spotlight:{...SE,backgroundColor:"gray"},spotlightLegacy:{...SE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi(x,f)}function wre(e){return mre(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function qs(e,t){var n,r,i,o,a,u;const c=t??{},d=bi.all([vre,wre(e),c],{isMergeableObject:ke.plainObject}),f=xre(e,d),h=ld(xo(d.target),d.disableScrollParentFix),m=bi.all([yre,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([E_,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:D_(f,"floaterStyles")}}function C_(e,t=!1){return ke.plainObject(e)?e.target?!0:(ga({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ga({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function TE(e,t=!1){return ke.array(e)?e.every(n=>C_(n,t)):(ga({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var S_={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},AE=pre(D_(S_,"controlled","size")),Dre=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!fre(i,AE))throw new Error(`State is not valid. Valid keys: ${AE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.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")||""}:{...S_}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}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:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),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 Ere(e){return new Dre(e)}function Cre({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Sre=Cre,Tre=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=xo(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 Vu(t,"sticky")&&this.updateState({})}),Be(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=xo(r);this.scrollParent=Pc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&ld(i,!0)&&ga({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:o}=this.props,{changed:a}=Oh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=xo(o);this.scrollParent=Pc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.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 CE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:ore(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=xo(c),f=x_(d),h=Vu(d),m=lre(d,a,i);return{...CE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*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:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(Sre,{styles:o});if(w_()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;na()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Il||this.renderReact15())}componentDidUpdate(){na()&&(Il||this.renderReact15())}componentWillUnmount(){!na()||!this.node||(Il||wf.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!na())return;const{children:e}=this.props;this.node&&wf.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!na()||!Il)return null;const{children:e}=this.props;return this.node?wf.createPortal(e,this.node):null}render(){return Il?this.renderReact16():null}},Pre=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(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)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(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"}),Be(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}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(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()}},Rre=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(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(`
198
- @keyframes joyride-beacon-inner {
199
- 20% {
200
- opacity: 0.9;
201
- }
202
-
203
- 90% {
204
- opacity: 0.7;
205
- }
206
- }
207
-
208
- @keyframes joyride-beacon-outer {
209
- 0% {
210
- transform: scale(1);
211
- }
212
-
213
- 45% {
214
- opacity: 0.7;
215
- transform: scale(0.75);
216
- }
217
-
218
- 100% {
219
- opacity: 0.9;
220
- transform: scale(1);
221
- }
222
- }
223
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.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:o,size:a,step:u,styles:c}=this.props,d=Ii(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function _re({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return $.createElement("button",{style:o,type:"button",...t},$.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"},$.createElement("g",null,$.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 Ore=_re;function Mre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:y,title:x}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Ore,{"data-test-id":"button-close",styles:y.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Ii(x??d),className:"react-joyride__tooltip",style:y.tooltip,...c},qe.createElement("div",{style:y.tooltipContainer},x&&qe.createElement("h1",{"aria-label":Ii(x),style:y.tooltipTitle},x),qe.createElement("div",{style:y.tooltipContent},d)),!m&&qe.createElement("div",{style:y.tooltipFooter},qe.createElement("div",{style:y.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Fre=Mre,kre=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Ii(a),g=Ii(u),y=Ii(c),x=Ii(d),C=Ii(h);let b=u,v=g;if(e){if(b=d,v=x,o.showProgress&&!n){const D=Ii(f,{step:t+1,steps:i});b=Uv(f,t+1,i),v=D}n&&(b=c,v=y)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":v,children:b,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Fre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Bre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(kre,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ga({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:y,changedFrom:x}=Oh(e,this.props),C=u.info(),b=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),v=y("action")||y("index")||y("lifecycle")||y("status"),D=x("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),T=y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(T&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&y("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),v){const A=xo(m.target),M=!!A;M&&ure(A)?(x("status",ct.READY,ct.RUNNING)||x("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(M?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}x("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:EE(m)||b?Qe.TOOLTIP:Qe.BEACON}),y("index")&&ga({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),y("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new Pre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return EE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=xo(a.target);return!C_(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(h1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Rre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},T_=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Ere({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ga({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!na())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;TE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!na())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:y,stop:x,update:C}=this.store,{changed:b}=Oh(e,this.props),{changed:v,changedFrom:D}=Oh(t,this.state),T=qs(this.props,d[i]),E=!lr(h,d),A=ke.number(c)&&b("stepIndex"),M=xo(T.target);if(E&&(TE(d,a)?g(d):console.warn("Steps are not valid",d)),b("run")&&(u?y(c):x()),A){let K=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(K=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:K,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!M&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:T}));const S={...this.state,index:i,step:T};if(v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&v("status",ct.PAUSED)){const K=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:K,type:ri.STEP_AFTER})}if(v("status",[ct.FINISHED,ct.SKIPPED])){const K=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:K,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:K,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(v("status")||v("action",$t.RESET))&&this.callback({...S,type:ri.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:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=xo(f.target),m=gre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=ld(h,o),y=Pc(h,o);let x=Math.floor(cre(h,u,o))||0;ga({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),b=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:v,placement:D}=C;!["bottom"].includes(D)&&!g&&(x=Math.floor(v.popper.top-u))}else if(n===Qe.TOOLTIP&&b){const{flipped:v,offsets:D,placement:T}=b;["top","right","left"].includes(T)&&!v&&!g?x=Math.floor(D.popper.top-u):x-=f.spotlightPadding}x=x>=0?x:0,r===ct.RUNNING&&dre(x,{element:y,duration:a}).then(()=>{setTimeout(()=>{var v;(v=this.store.getPopper("tooltip"))==null||v.instance.update()},10)})}}render(){if(!na())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Bre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(Are,{id:"react-joyride-portal"},qe.createElement(Tre,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(T_,"defaultProps",bre);var Ire=T_;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=mA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=lS;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Vc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=rN;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=wn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=vK;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=hA;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=xj;exports.$293f70390ea03370$export$497855f14858aa34=fK;exports.$32489daedd52963e$export$1315d136e6f7581=EK;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Zj;exports.$36a0ac60f04457c5$export$136073280381448e=dj;exports.$3c0fc76039f1c516$export$60e84778edff6d26=tP;exports.$40df3f8667284809$export$d55e7ee900f34e93=AK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=uj;exports.$47b897dc8cdb026b$export$8d15029008292ae=Cj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=Dj;exports.$6057a3d2a53a12fd$export$42df105a73306d51=$K;exports.$64244302c3013299$export$dd0bbc9b26defe37=KN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=nj;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=TK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=qK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=sj;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=PK;exports.$a916eb452884faea$export$b7a616150fdb9f44=tj;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=kK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=jK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=VS;exports.$bcca50147b47f54d$export$56b2c08e277f365=Ej;exports.$c132121280ec012d$export$50eacbbf140a3141=iK;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=aK;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=gK;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=lj;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=YK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Gj;exports.$fae977aafc393c5c$export$588937bcd60ade55=yN;exports.$fae977aafc393c5c$export$6b862160d295c8e=gN;exports.ACTIONS=$t;exports.AdvancedImage=LW;exports.Cloudinary=MH;exports.Controller=pL;exports.EVENTS=ri;exports.FormProvider=dL;exports.LazyMotion=rte;exports.M=uL;exports.M$1=gi;exports.R=ps;exports.ReorderGroup=fJ;exports.ReorderItem=gJ;exports.STATUS=ct;exports._=ZI;exports.autoUpdate=fC;exports.components_default=Ire;exports.dayjs=QK;exports.domAnimation=ite;exports.dt=eC;exports.ee=iP;exports.flip=GI;exports.isNumber=AJ;exports.lazyload=aW;exports.lodashExports=gC;exports.lt=Yv;exports.m=nte;exports.mt=fI;exports.nt=lI;exports.o=bJ;exports.offset=HI;exports.ot=cI;exports.placeholder=cW;exports.prismExports=kH;exports.q=Mb;exports.useFloating=WI;exports.useForm=SL;exports.useFormContext=Hh;exports.useWatch=TC;