@fluidattacks/design 3.15.6-pr-02 → 3.15.6
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.
- package/dist/assets/index.css +1 -1
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.d.ts +3 -0
- package/dist/components/{language-selector/item-list → lottie}/index.js +1 -1
- package/dist/components/lottie/styles.d.ts +41 -0
- package/dist/components/lottie/types.d.ts +11 -0
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components-CRGBGUFn.js +2806 -0
- package/dist/{components-Co2Ek17o.mjs → components-CaX3GhSk.mjs} +1853 -2782
- package/dist/hooks/index.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -1
- package/dist/vendor-C0aB6JXv.js +223 -0
- package/dist/vendor-ClHutGgA.mjs +46084 -0
- package/package.json +2 -1
- package/dist/components/content-card/category-tag/index.d.ts +0 -5
- package/dist/components/content-card/category-tag/index.js +0 -1
- package/dist/components/content-card/event-date/index.d.ts +0 -4
- package/dist/components/content-card/event-date/index.js +0 -1
- package/dist/components/content-card/index.d.ts +0 -3
- package/dist/components/content-card/index.js +0 -1
- package/dist/components/content-card/index.stories.d.ts +0 -7
- package/dist/components/content-card/styles.d.ts +0 -2
- package/dist/components/content-card/types.d.ts +0 -33
- package/dist/components/content-card-carousel/index.d.ts +0 -3
- package/dist/components/content-card-carousel/index.js +0 -1
- package/dist/components/content-card-carousel/index.stories.d.ts +0 -6
- package/dist/components/content-card-carousel/scroll-buttons/index.d.ts +0 -6
- package/dist/components/content-card-carousel/scroll-buttons/index.js +0 -1
- package/dist/components/content-card-carousel/styles.d.ts +0 -3
- package/dist/components/content-card-carousel/types.d.ts +0 -16
- package/dist/components/interactive-card/icon/index.d.ts +0 -5
- package/dist/components/interactive-card/icon/index.js +0 -1
- package/dist/components/interactive-card/index.d.ts +0 -3
- package/dist/components/interactive-card/index.js +0 -1
- package/dist/components/interactive-card/index.stories.d.ts +0 -6
- package/dist/components/interactive-card/styles.d.ts +0 -3
- package/dist/components/interactive-card/types.d.ts +0 -20
- package/dist/components/language-selector/index.d.ts +0 -3
- package/dist/components/language-selector/index.js +0 -1
- package/dist/components/language-selector/index.stories.d.ts +0 -8
- package/dist/components/language-selector/item-list/index.d.ts +0 -3
- package/dist/components/language-selector/styles.d.ts +0 -5
- package/dist/components/language-selector/types.d.ts +0 -37
- package/dist/components/logo-carousel/index.d.ts +0 -3
- package/dist/components/logo-carousel/index.js +0 -1
- package/dist/components/logo-carousel/index.stories.d.ts +0 -7
- package/dist/components/logo-carousel/styles.d.ts +0 -4
- package/dist/components/logo-carousel/types.d.ts +0 -11
- package/dist/components/logo-carousel/utils.d.ts +0 -2
- package/dist/components/web-form/index.d.ts +0 -5
- package/dist/components/web-form/index.js +0 -1
- package/dist/components/web-form/index.stories.d.ts +0 -3
- package/dist/components/web-form/styles.d.ts +0 -4
- package/dist/components/web-form/types.d.ts +0 -15
- package/dist/components-CgjjEMSb.js +0 -3194
- package/dist/vendor-CxCOfBAY.mjs +0 -41019
- package/dist/vendor-Fd8GJpo1.js +0 -213
package/dist/vendor-Fd8GJpo1.js
DELETED
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/vendor.css');const C=require("react"),io=require("react/jsx-runtime"),jo=require("react-dom");function c2(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 be=c2(C),Ad=c2(jo);var En=function(){return En=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},En.apply(this,arguments)};function La(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 aj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var sj=/^((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)-.*))$/,uj=aj(function(e){return sj.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 _i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At="-ms-",ec="-moz-",mt="-webkit-",f2="comm",Uh="rule",l1="decl",lj="@import",d2="@keyframes",cj="@layer",h2=Math.abs,c1=String.fromCharCode,S0=Object.assign;function fj(e,t){return ln(e,0)^45?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}function p2(e){return e.trim()}function Zi(e,t){return(e=t.exec(e))?e[0]:e}function et(e,t,n){return e.replace(t,n)}function Pd(e,t,n){return e.indexOf(t,n)}function ln(e,t){return e.charCodeAt(t)|0}function tu(e,t,n){return e.slice(t,n)}function hi(e){return e.length}function m2(e){return e.length}function jl(e,t){return t.push(e),e}function dj(e,t){return e.map(t).join("")}function Wx(e,t){return e.filter(function(n){return!Zi(n,t)})}var zh=1,nu=1,g2=0,Ar=0,Qt=0,Eu="";function qh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:zh,column:nu,length:a,return:"",siblings:u}}function Po(e,t){return S0(qh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function As(e){for(;e.root;)e=Po(e.root,{children:[e]});jl(e,e.siblings)}function hj(){return Qt}function pj(){return Qt=Ar>0?ln(Eu,--Ar):0,nu--,Qt===10&&(nu=1,zh--),Qt}function qr(){return Qt=Ar<g2?ln(Eu,Ar++):0,nu++,Qt===10&&(nu=1,zh++),Qt}function Ma(){return ln(Eu,Ar)}function _d(){return Ar}function Wh(e,t){return tu(Eu,e,t)}function T0(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 mj(e){return zh=nu=1,g2=hi(Eu=e),Ar=0,[]}function gj(e){return Eu="",e}function Xm(e){return p2(Wh(Ar-1,A0(e===91?e+2:e===40?e+1:e)))}function vj(e){for(;(Qt=Ma())&&Qt<33;)qr();return T0(e)>2||T0(Qt)>3?"":" "}function yj(e,t){for(;--t&&qr()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Wh(e,_d()+(t<6&&Ma()==32&&qr()==32))}function A0(e){for(;qr();)switch(Qt){case e:return Ar;case 34:case 39:e!==34&&e!==39&&A0(Qt);break;case 40:e===41&&A0(e);break;case 92:qr();break}return Ar}function bj(e,t){for(;qr()&&e+Qt!==57;)if(e+Qt===84&&Ma()===47)break;return"/*"+Wh(t,Ar-1)+"*"+c1(e===47?e:qr())}function $j(e){for(;!T0(Ma());)qr();return Wh(e,Ar)}function xj(e){return gj(Rd("",null,null,null,[""],e=mj(e),0,[0],e))}function Rd(e,t,n,r,i,o,a,u,l){for(var f=0,d=0,h=a,p=0,g=0,v=0,b=1,D=1,$=1,y=0,w="",T=i,E=o,A=r,M=w;D;)switch(v=y,y=qr()){case 40:if(v!=108&&ln(M,h-1)==58){Pd(M+=et(Xm(y),"&","&\f"),"&\f",h2(f?u[f-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:M+=Xm(y);break;case 9:case 10:case 13:case 32:M+=vj(v);break;case 92:M+=yj(_d()-1,7);continue;case 47:switch(Ma()){case 42:case 47:jl(wj(bj(qr(),_d()),t,n,l),l);break;default:M+="/"}break;case 123*b:u[f++]=hi(M)*$;case 125*b:case 59:case 0:switch(y){case 0:case 125:D=0;case 59+d:$==-1&&(M=et(M,/\f/g,"")),g>0&&hi(M)-h&&jl(g>32?Gx(M+";",r,n,h-1,l):Gx(et(M," ","")+";",r,n,h-2,l),l);break;case 59:M+=";";default:if(jl(A=Hx(M,t,n,f,d,i,u,w,T=[],E=[],h,o),o),y===123)if(d===0)Rd(M,t,A,A,T,o,h,u,E);else switch(p===99&&ln(M,3)===110?100:p){case 100:case 108:case 109:case 115:Rd(e,A,A,r&&jl(Hx(e,A,A,0,0,i,u,w,i,T=[],h,E),E),i,E,h,u,r?T:E);break;default:Rd(M,A,A,A,[""],E,0,u,E)}}f=d=g=0,b=$=1,w=M="",h=a;break;case 58:h=1+hi(M),g=v;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&pj()==125)continue}switch(M+=c1(y),y*b){case 38:$=d>0?1:(M+="\f",-1);break;case 44:u[f++]=(hi(M)-1)*$,$=1;break;case 64:Ma()===45&&(M+=Xm(qr())),p=Ma(),d=h=hi(w=M+=$j(_d())),y++;break;case 45:v===45&&hi(M)==2&&(b=0)}}return o}function Hx(e,t,n,r,i,o,a,u,l,f,d,h){for(var p=i-1,g=i===0?o:[""],v=m2(g),b=0,D=0,$=0;b<r;++b)for(var y=0,w=tu(e,p+1,p=h2(D=a[b])),T=e;y<v;++y)(T=p2(D>0?g[y]+" "+w:et(w,/&\f/g,g[y])))&&(l[$++]=T);return qh(e,t,n,i===0?Uh:u,l,f,d,h)}function wj(e,t,n,r){return qh(e,t,n,f2,c1(hj()),tu(e,2,-2),0,r)}function Gx(e,t,n,r,i){return qh(e,t,n,l1,tu(e,0,r),tu(e,r+1,-1),r,i)}function v2(e,t,n){switch(fj(e,t)){case 5103:return mt+"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 mt+e+e;case 4789:return ec+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return mt+e+ec+e+At+e+e;case 5936:switch(ln(e,t+11)){case 114:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mt+e+At+et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return mt+e+At+e+e;case 6165:return mt+e+At+"flex-"+e+e;case 5187:return mt+e+et(e,/(\w+).+(:[^]+)/,mt+"box-$1$2"+At+"flex-$1$2")+e;case 5443:return mt+e+At+"flex-item-"+et(e,/flex-|-self/g,"")+(Zi(e,/flex-|baseline/)?"":At+"grid-row-"+et(e,/flex-|-self/g,""))+e;case 4675:return mt+e+At+"flex-line-pack"+et(e,/align-content|flex-|-self/g,"")+e;case 5548:return mt+e+At+et(e,"shrink","negative")+e;case 5292:return mt+e+At+et(e,"basis","preferred-size")+e;case 6060:return mt+"box-"+et(e,"-grow","")+mt+e+At+et(e,"grow","positive")+e;case 4554:return mt+et(e,/([^-])(transform)/g,"$1"+mt+"$2")+e;case 6187:return et(et(et(e,/(zoom-|grab)/,mt+"$1"),/(image-set)/,mt+"$1"),e,"")+e;case 5495:case 3959:return et(e,/(image-set\([^]*)/,mt+"$1$`$1");case 4968:return et(et(e,/(.+:)(flex-)?(.*)/,mt+"box-pack:$3"+At+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mt+e+e;case 4200:if(!Zi(e,/flex-|baseline/))return At+"grid-column-align"+tu(e,t)+e;break;case 2592:case 3360:return At+et(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Zi(r.props,/grid-\w+-end/)})?~Pd(e+(n=n[t].value),"span",0)?e:At+et(e,"-start","")+e+At+"grid-row-span:"+(~Pd(n,"span",0)?Zi(n,/\d+/):+Zi(n,/\d+/)-+Zi(e,/\d+/))+";":At+et(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Zi(r.props,/grid-\w+-start/)})?e:At+et(et(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return et(e,/(.+)-inline(.+)/,mt+"$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(hi(e)-1-t>6)switch(ln(e,t+1)){case 109:if(ln(e,t+4)!==45)break;case 102:return et(e,/(.+:)(.+)-([^]+)/,"$1"+mt+"$2-$3$1"+ec+(ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pd(e,"stretch",0)?v2(et(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return et(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,l,f){return At+i+":"+o+f+(a?At+i+"-span:"+(u?l:+l-+o)+f:"")+e});case 4949:if(ln(e,t+6)===121)return et(e,":",":"+mt)+e;break;case 6444:switch(ln(e,ln(e,14)===45?18:11)){case 120:return et(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+mt+(ln(e,14)===45?"inline-":"")+"box$3$1"+mt+"$2$3$1"+At+"$2box$3")+e;case 100:return et(e,":",":"+At)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return et(e,"scroll-","scroll-snap-")+e}return e}function Jd(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Dj(e,t,n,r){switch(e.type){case cj:if(e.children.length)break;case lj:case l1:return e.return=e.return||e.value;case f2:return"";case d2:return e.return=e.value+"{"+Jd(e.children,r)+"}";case Uh:if(!hi(e.value=e.props.join(",")))return""}return hi(n=Jd(e.children,r))?e.return=e.value+"{"+n+"}":""}function Cj(e){var t=m2(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 Ej(e){return function(t){t.root||(t=t.return)&&e(t)}}function Sj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case l1:e.return=v2(e.value,e.length,n);return;case d2:return Jd([Po(e,{value:et(e.value,"@","@"+mt)})],r);case Uh:if(e.length)return dj(n=e.props,function(i){switch(Zi(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":As(Po(e,{props:[et(i,/:(read-\w+)/,":"+ec+"$1")]})),As(Po(e,{props:[i]})),S0(e,{props:Wx(n,r)});break;case"::placeholder":As(Po(e,{props:[et(i,/:(plac\w+)/,":"+mt+"input-$1")]})),As(Po(e,{props:[et(i,/:(plac\w+)/,":"+ec+"$1")]})),As(Po(e,{props:[et(i,/:(plac\w+)/,At+"input-$1")]})),As(Po(e,{props:[i]})),S0(e,{props:Wx(n,r)});break}return""})}}var Tj={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},Va=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y2="active",b2="data-styled-version",Hh="6.1.15",f1=`/*!sc*/
|
|
2
|
-
`,Xd=typeof window<"u"&&"HTMLElement"in window,Aj=!!(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"),Yx=/invalid hook call/i,id=new Set,Pj=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=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Yx.test(a)?(o=!1,id.delete(r)):i.apply(void 0,La([a],u,!1))},C.useRef(),o&&!id.has(r)&&(console.warn(r),id.add(r))}catch(a){Yx.test(a.message)&&id.delete(r)}finally{console.error=i}}},Gh=Object.freeze([]),ru=Object.freeze({});function _j(e,t,n){return n===void 0&&(n=ru),e.theme!==n.theme&&e.theme||t||n.theme}var P0=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"]),Rj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oj=/(^-|-$)/g;function Zx(e){return e.replace(Rj,"-").replace(Oj,"")}var Mj=/(a)(d)/gi,od=52,Jx=function(e){return String.fromCharCode(e+(e>25?39:97))};function _0(e){var t,n="";for(t=Math.abs(e);t>od;t=t/od|0)n=Jx(t%od)+n;return(Jx(t%od)+n).replace(Mj,"$1-$2")}var Qm,$2=5381,wa=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},x2=function(e){return wa($2,e)};function w2(e){return _0(x2(e)>>>0)}function D2(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function eg(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var C2=typeof Symbol=="function"&&Symbol.for,E2=C2?Symbol.for("react.memo"):60115,Fj=C2?Symbol.for("react.forward_ref"):60112,kj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ij={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},S2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bj=((Qm={})[Fj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qm[E2]=S2,Qm);function Xx(e){return("type"in(t=e)&&t.type.$$typeof)===E2?S2:"$$typeof"in e?Bj[e.$$typeof]:kj;var t}var Lj=Object.defineProperty,Vj=Object.getOwnPropertyNames,Qx=Object.getOwnPropertySymbols,Nj=Object.getOwnPropertyDescriptor,jj=Object.getPrototypeOf,ew=Object.prototype;function T2(e,t,n){if(typeof t!="string"){if(ew){var r=jj(t);r&&r!==ew&&T2(e,r,n)}var i=Vj(t);Qx&&(i=i.concat(Qx(t)));for(var o=Xx(e),a=Xx(t),u=0;u<i.length;++u){var l=i[u];if(!(l in Ij||n&&n[l]||a&&l in a||o&&l in o)){var f=Nj(t,l);try{Lj(e,l,f)}catch{}}}}return e}function Na(e){return typeof e=="function"}function d1(e){return typeof e=="object"&&"styledComponentId"in e}function Ea(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function R0(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function iu(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function O0(e,t,n){if(n===void 0&&(n=!1),!n&&!iu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=O0(e[r],t[r]);else if(iu(t))for(var r in t)e[r]=O0(e[r],t[r]);return e}function h1(e,t){Object.defineProperty(e,"toString",{value:t})}var Kj=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 Uj(){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 Ci(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(Uj.apply(void 0,La([Kj[e]],t,!1)).trim())}var zj=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 Ci(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),l=(a=0,n.length);a<l;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(f1);return n},e}(),qj=1<<30,Od=new Map,Qd=new Map,Md=1,ad=function(e){if(Od.has(e))return Od.get(e);for(;Qd.has(Md);)Md++;var t=Md++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>qj))throw Ci(16,"".concat(t));return Od.set(e,t),Qd.set(t,e),t},Wj=function(e,t){Md=t+1,Od.set(e,t),Qd.set(t,e)},Hj="style[".concat(Va,"][").concat(b2,'="').concat(Hh,'"]'),Gj=new RegExp("^".concat(Va,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Yj=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)},Zj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(f1),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var l=u.match(Gj);if(l){var f=0|parseInt(l[1],10),d=l[2];f!==0&&(Wj(d,f),Yj(e,d,l[3]),e.getTag().insertRules(f,i)),i.length=0}else i.push(u)}}},tw=function(e){for(var t=document.querySelectorAll(Hj),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Va)!==y2&&(Zj(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Jj(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var A2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(Va,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Va,y2),r.setAttribute(b2,Hh);var a=Jj();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},Xj=function(){function e(t){this.element=A2(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 Ci(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}(),Qj=function(){function e(t){this.element=A2(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}(),eK=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}(),nw=Xd,tK={isServer:!Xd,useCSSOMInjection:!Aj},P2=function(){function e(t,n,r){t===void 0&&(t=ru),n===void 0&&(n={});var i=this;this.options=En(En({},tK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Xd&&nw&&(nw=!1,tw(this)),h1(this,function(){return function(o){for(var a=o.getTag(),u=a.length,l="",f=function(h){var p=function($){return Qd.get($)}(h);if(p===void 0)return"continue";var g=o.names.get(p),v=a.getGroup(h);if(g===void 0||!g.size||v.length===0)return"continue";var b="".concat(Va,".g").concat(h,'[id="').concat(p,'"]'),D="";g!==void 0&&g.forEach(function($){$.length>0&&(D+="".concat($,","))}),l+="".concat(v).concat(b,'{content:"').concat(D,'"}').concat(f1)},d=0;d<u;d++)f(d);return l}(i)})}return e.registerId=function(t){return ad(t)},e.prototype.rehydrate=function(){!this.server&&Xd&&tw(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(En(En({},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 eK(i):r?new Xj(i):new Qj(i)}(this.options),new zj(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(ad(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(ad(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ad(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),nK=/&/g,rK=/^\s*\/\/.*$/gm;function _2(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=_2(n.children,t)),n})}function iK(e){var t,n,r,i=ru,o=i.options,a=o===void 0?ru:o,u=i.plugins,l=u===void 0?Gh:u,f=function(p,g,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):p},d=l.slice();d.push(function(p){p.type===Uh&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(nK,n).replace(r,f))}),a.prefix&&d.push(Sj),d.push(Dj);var h=function(p,g,v,b){g===void 0&&(g=""),v===void 0&&(v=""),b===void 0&&(b="&"),t=b,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var D=p.replace(rK,""),$=xj(v||g?"".concat(v," ").concat(g," { ").concat(D," }"):D);a.namespace&&($=_2($,a.namespace));var y=[];return Jd($,Cj(d.concat(Ej(function(w){return y.push(w)})))),y};return h.hash=l.length?l.reduce(function(p,g){return g.name||Ci(15),wa(p,g.name)},$2).toString():"",h}var oK=new P2,M0=iK(),R2=C.createContext({shouldForwardProp:void 0,styleSheet:oK,stylis:M0});R2.Consumer;C.createContext(void 0);function rw(){return C.useContext(R2)}var F0=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=M0);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,h1(this,function(){throw Ci(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=M0),this.name+t.hash},e}(),aK=function(e){return e>="A"&&e<="Z"};function iw(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;aK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var O2=function(e){return e==null||e===!1||e===""},M2=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!O2(o)&&(Array.isArray(o)&&o.isCss||Na(o)?r.push("".concat(iw(i),":"),o,";"):iu(o)?r.push.apply(r,La(La(["".concat(i," {")],M2(o),!1),["}"],!1)):r.push("".concat(iw(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Tj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Fa(e,t,n,r){if(O2(e))return[];if(d1(e))return[".".concat(e.styledComponentId)];if(Na(e)){if(!Na(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 F0||iu(i)||i===null||console.error("".concat(D2(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.")),Fa(i,t,n,r)}var o;return e instanceof F0?n?(e.inject(n,r),[e.getName(r)]):[e]:iu(e)?M2(e):Array.isArray(e)?Array.prototype.concat.apply(Gh,e.map(function(a){return Fa(a,t,n,r)})):[e.toString()]}function sK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Na(n)&&!d1(n))return!1}return!0}var uK=x2(Hh),lK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&sK(t),this.componentId=n,this.baseHash=wa(uK,n),this.baseStyle=r,P2.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=Ea(i,this.staticRulesId);else{var o=R0(Fa(this.rules,t,n,r)),a=_0(wa(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=Ea(i,a),this.staticRulesId=a}else{for(var l=wa(this.baseHash,r.hash),f="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(l=wa(l,h));else if(h){var p=R0(Fa(h,t,n,r));l=wa(l,p+d),f+=p}}if(f){var g=_0(l>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(f,".".concat(g),void 0,this.componentId)),i=Ea(i,g)}}return i},e}(),hc=C.createContext(void 0);hc.Consumer;function cK(){var e=C.useContext(hc);if(!e)throw Ci(18);return e}function fK(e){var t=C.useContext(hc),n=C.useMemo(function(){return function(r,i){if(!r)throw Ci(14);if(Na(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Ci(7);return o}if(Array.isArray(r)||typeof r!="object")throw Ci(8);return i?En(En({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?C.createElement(hc.Provider,{value:n},e.children):null}var tg={},ow=new Set;function dK(e,t,n){var r=d1(e),i=e,o=!eg(e),a=t.attrs,u=a===void 0?Gh:a,l=t.componentId,f=l===void 0?function(T,E){var A=typeof T!="string"?"sc":Zx(T);tg[A]=(tg[A]||0)+1;var M="".concat(A,"-").concat(w2(Hh+A+tg[A]));return E?"".concat(E,"-").concat(M):M}(t.displayName,t.parentComponentId):l,d=t.displayName,h=d===void 0?function(T){return eg(T)?"styled.".concat(T):"Styled(".concat(D2(T),")")}(e):d,p=t.displayName&&t.componentId?"".concat(Zx(t.displayName),"-").concat(t.componentId):t.componentId||f,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var b=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;v=function(T,E){return b(T,E)&&D(T,E)}}else v=b}var $=new lK(n,p,r?i.componentStyle:void 0);function y(T,E){return function(A,M,S){var z=A.attrs,j=A.componentStyle,O=A.defaultProps,Z=A.foldedComponentIds,R=A.styledComponentId,V=A.target,W=C.useContext(hc),L=rw(),k=A.shouldForwardProp||L.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.useDebugValue(R);var _=_j(M,W,O)||ru,H=function(xe,De,Ee){for(var J,ve=En(En({},De),{className:void 0,theme:Ee}),we=0;we<xe.length;we+=1){var me=Na(J=xe[we])?J(ve):J;for(var ue in me)ve[ue]=ue==="className"?Ea(ve[ue],me[ue]):ue==="style"?En(En({},ve[ue]),me[ue]):me[ue]}return De.className&&(ve.className=Ea(ve.className,De.className)),ve}(z,M,_),U=H.as||V,N={};for(var ne in H)H[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&H.theme===_||(ne==="forwardedAs"?N.as=H.forwardedAs:k&&!k(ne,U)||(N[ne]=H[ne],k||process.env.NODE_ENV!=="development"||uj(ne)||ow.has(ne)||!P0.has(U)||(ow.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(xe,De){var Ee=rw(),J=xe.generateAndInjectStyles(De,Ee.styleSheet,Ee.stylis);return process.env.NODE_ENV!=="production"&&C.useDebugValue(J),J}(j,H);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(ie);var ce=Ea(Z,R);return ie&&(ce+=" "+ie),H.className&&(ce+=" "+H.className),N[eg(U)&&!P0.has(U)?"class":"className"]=ce,S&&(N.ref=S),C.createElement(U,N)}(w,T,E)}y.displayName=h;var w=C.forwardRef(y);return w.attrs=g,w.componentStyle=$,w.displayName=h,w.shouldForwardProp=v,w.foldedComponentIds=r?Ea(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=p,w.target=r?i.target:e,Object.defineProperty(w,"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++)O0(E,z[S],!0);return E}({},i.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(Pj(h,p),w.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,p)),h1(w,function(){return".".concat(w.styledComponentId)}),o&&T2(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function aw(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 sw=function(e){return Object.assign(e,{isCss:!0})};function p1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Na(e)||iu(e))return sw(Fa(aw(Gh,La([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Fa(r):sw(Fa(aw(r,t)))}function k0(e,t,n){if(n===void 0&&(n=ru),!t)throw Ci(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,p1.apply(void 0,La([i],o,!1)))};return r.attrs=function(i){return k0(e,t,En(En({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return k0(e,t,En(En({},n),i))},r}var F2=function(e){return k0(dK,e)},k2=F2;P0.forEach(function(e){k2[e]=F2(e)});function hK(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=R0(p1.apply(void 0,La([e],t,!1))),i=w2(r);return new F0(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 sd="__sc-".concat(Va,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[sd]||(window[sd]=0),window[sd]===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[sd]+=1);function Yh(){return typeof window<"u"}function Su(e){return I2(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ri(e){var t;return(t=(I2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function I2(e){return Yh()?e instanceof Node||e instanceof Gn(e).Node:!1}function en(e){return Yh()?e instanceof Element||e instanceof Gn(e).Element:!1}function Pr(e){return Yh()?e instanceof HTMLElement||e instanceof Gn(e).HTMLElement:!1}function I0(e){return!Yh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot}function Lc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function pK(e){return["table","td","th"].includes(Su(e))}function Zh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function m1(e){const t=g1(),n=en(e)?Wr(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 mK(e){let t=qo(e);for(;Pr(t)&&!ou(t);){if(m1(t))return t;if(Zh(t))return null;t=qo(t)}return null}function g1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ou(e){return["html","body","#document"].includes(Su(e))}function Wr(e){return Gn(e).getComputedStyle(e)}function Jh(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qo(e){if(Su(e)==="html")return e;const t=e.assignedSlot||e.parentNode||I0(e)&&e.host||Ri(e);return I0(t)?t.host:t}function B2(e){const t=qo(e);return ou(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&Lc(t)?t:B2(t)}function pc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=B2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Gn(i);if(o){const u=B0(a);return t.concat(a,a.visualViewport||[],Lc(i)?i:[],u&&n?pc(u):[])}return t.concat(i,pc(i,[],n))}function B0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uw(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function L0(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&I0(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function L2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function V2(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function gK(e){return bK()?!1:!lw()&&e.width===0&&e.height===0||lw()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function vK(){return/apple/i.test(navigator.vendor)}function lw(){const e=/android/i;return e.test(L2())||e.test(V2())}function yK(){return L2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function bK(){return V2().includes("jsdom/")}function V0(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Kl(e){return(e==null?void 0:e.ownerDocument)||document}function $K(e){return"composedPath"in e?e.composedPath()[0]:e.target}const xK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function wK(e){return Pr(e)&&e.matches(xK)}const eh=Math.min,ka=Math.max,th=Math.round,ud=Math.floor,Ei=e=>({x:e,y:e}),DK={left:"right",right:"left",bottom:"top",top:"bottom"},CK={start:"end",end:"start"};function cw(e,t,n){return ka(e,eh(t,n))}function Xh(e,t){return typeof e=="function"?e(t):e}function ja(e){return e.split("-")[0]}function Qh(e){return e.split("-")[1]}function N2(e){return e==="x"?"y":"x"}function j2(e){return e==="y"?"height":"width"}function au(e){return["top","bottom"].includes(ja(e))?"y":"x"}function K2(e){return N2(au(e))}function EK(e,t,n){n===void 0&&(n=!1);const r=Qh(e),i=K2(e),o=j2(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=nh(a)),[a,nh(a)]}function SK(e){const t=nh(e);return[N0(e),t,N0(t)]}function N0(e){return e.replace(/start|end/g,t=>CK[t])}function TK(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 AK(e,t,n,r){const i=Qh(e);let o=TK(ja(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(N0)))),o}function nh(e){return e.replace(/left|right|bottom|top/g,t=>DK[t])}function PK(e){return{top:0,right:0,bottom:0,left:0,...e}}function _K(e){return typeof e!="number"?PK(e):{top:e,right:e,bottom:e,left:e}}function rh(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 fw(e,t,n){let{reference:r,floating:i}=e;const o=au(t),a=K2(t),u=j2(a),l=ja(t),f=o==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[u]/2-i[u]/2;let g;switch(l){case"top":g={x:d,y:r.y-i.height};break;case"bottom":g={x:d,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(Qh(t)){case"start":g[a]-=p*(n&&f?-1:1);break;case"end":g[a]+=p*(n&&f?-1:1);break}return g}const RK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=fw(f,r,l),p=r,g={},v=0;for(let b=0;b<u.length;b++){const{name:D,fn:$}=u[b],{x:y,y:w,data:T,reset:E}=await $({x:d,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});d=y??d,h=w??h,g={...g,[D]:{...g[D],...T}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(f=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:d,y:h}=fw(f,p,l)),b=-1)}return{x:d,y:h,placement:p,strategy:i,middlewareData:g}};async function U2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Xh(t,e),v=_K(g),D=u[p?h==="floating"?"reference":"floating":h],$=rh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(D)))==null||n?D:D.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:f,rootBoundary:d,strategy:l})),y=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),T=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},E=rh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:w,strategy:l}):y);return{top:($.top-E.top+v.top)/T.y,bottom:(E.bottom-$.bottom+v.bottom)/T.y,left:($.left-E.left+v.left)/T.x,right:(E.right-$.right+v.right)/T.x}}const OK=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:l,elements:f}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...D}=Xh(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const $=ja(i),y=au(u),w=ja(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(f.floating)),E=p||(w||!b?[nh(u)]:SK(u)),A=v!=="none";!p&&A&&E.push(...AK(u,b,v,T));const M=[u,...E],S=await U2(t,D),z=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&z.push(S[$]),h){const V=EK(i,a,T);z.push(S[V[0]],S[V[1]])}if(j=[...j,{placement:i,overflows:z}],!z.every(V=>V<=0)){var O,Z;const V=(((O=o.flip)==null?void 0:O.index)||0)+1,W=M[V];if(W)return{data:{index:V,overflows:j},reset:{placement:W}};let L=(Z=j.filter(k=>k.overflows[0]<=0).sort((k,_)=>k.overflows[1]-_.overflows[1])[0])==null?void 0:Z.placement;if(!L)switch(g){case"bestFit":{var R;const k=(R=j.filter(_=>{if(A){const H=au(_.placement);return H===y||H==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((_,H)=>_[1]-H[1])[0])==null?void 0:R[0];k&&(L=k);break}case"initialPlacement":L=u;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function MK(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ja(n),u=Qh(n),l=au(n)==="y",f=["left","top"].includes(a)?-1:1,d=o&&l?-1:1,h=Xh(t,e);let{mainAxis:p,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),l?{x:g*d,y:p*f}:{x:p*f,y:g*d}}const FK=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,l=await MK(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},kK=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:D=>{let{x:$,y}=D;return{x:$,y}}},...l}=Xh(e,t),f={x:n,y:r},d=await U2(t,l),h=au(ja(i)),p=N2(h);let g=f[p],v=f[h];if(o){const D=p==="y"?"top":"left",$=p==="y"?"bottom":"right",y=g+d[D],w=g-d[$];g=cw(y,g,w)}if(a){const D=h==="y"?"top":"left",$=h==="y"?"bottom":"right",y=v+d[D],w=v-d[$];v=cw(y,v,w)}const b=u.fn({...t,[p]:g,[h]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[h]:a}}}}}};function z2(e){const t=Wr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Pr(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=th(n)!==o||th(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function v1(e){return en(e)?e:e.contextElement}function Hs(e){const t=v1(e);if(!Pr(t))return Ei(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=z2(t);let a=(o?th(n.width):n.width)/r,u=(o?th(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const IK=Ei(0);function q2(e){const t=Gn(e);return!g1()||!t.visualViewport?IK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gn(e)?!1:t}function Ka(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=v1(e);let a=Ei(1);t&&(r?en(r)&&(a=Hs(r)):a=Hs(e));const u=BK(o,n,r)?q2(o):Ei(0);let l=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(o){const p=Gn(o),g=r&&en(r)?Gn(r):r;let v=p,b=B0(v);for(;b&&r&&g!==v;){const D=Hs(b),$=b.getBoundingClientRect(),y=Wr(b),w=$.left+(b.clientLeft+parseFloat(y.paddingLeft))*D.x,T=$.top+(b.clientTop+parseFloat(y.paddingTop))*D.y;l*=D.x,f*=D.y,d*=D.x,h*=D.y,l+=w,f+=T,v=Gn(b),b=B0(v)}}return rh({width:d,height:h,x:l,y:f})}function y1(e,t){const n=Jh(e).scrollLeft;return t?t.left+n:Ka(Ri(e)).left+n}function W2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:y1(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function LK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Ri(r),u=t?Zh(t.floating):!1;if(r===a||u&&o)return n;let l={scrollLeft:0,scrollTop:0},f=Ei(1);const d=Ei(0),h=Pr(r);if((h||!h&&!o)&&((Su(r)!=="body"||Lc(a))&&(l=Jh(r)),Pr(r))){const g=Ka(r);f=Hs(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const p=a&&!h&&!o?W2(a,l,!0):Ei(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+d.x+p.x,y:n.y*f.y-l.scrollTop*f.y+d.y+p.y}}function VK(e){return Array.from(e.getClientRects())}function NK(e){const t=Ri(e),n=Jh(e),r=e.ownerDocument.body,i=ka(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ka(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+y1(e);const u=-n.scrollTop;return Wr(r).direction==="rtl"&&(a+=ka(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function jK(e,t){const n=Gn(e),r=Ri(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,l=0;if(i){o=i.width,a=i.height;const f=g1();(!f||f&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:u,y:l}}function KK(e,t){const n=Ka(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Pr(e)?Hs(e):Ei(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,l=i*o.x,f=r*o.y;return{width:a,height:u,x:l,y:f}}function dw(e,t,n){let r;if(t==="viewport")r=jK(e,n);else if(t==="document")r=NK(Ri(e));else if(en(t))r=KK(t,n);else{const i=q2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return rh(r)}function H2(e,t){const n=qo(e);return n===t||!en(n)||ou(n)?!1:Wr(n).position==="fixed"||H2(n,t)}function UK(e,t){const n=t.get(e);if(n)return n;let r=pc(e,[],!1).filter(u=>en(u)&&Su(u)!=="body"),i=null;const o=Wr(e).position==="fixed";let a=o?qo(e):e;for(;en(a)&&!ou(a);){const u=Wr(a),l=m1(a);!l&&u.position==="fixed"&&(i=null),(o?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Lc(a)&&!l&&H2(e,a))?r=r.filter(d=>d!==a):i=u,a=qo(a)}return t.set(e,r),r}function zK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Zh(t)?[]:UK(t,this._c):[].concat(n),r],u=a[0],l=a.reduce((f,d)=>{const h=dw(t,d,i);return f.top=ka(h.top,f.top),f.right=eh(h.right,f.right),f.bottom=eh(h.bottom,f.bottom),f.left=ka(h.left,f.left),f},dw(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function qK(e){const{width:t,height:n}=z2(e);return{width:t,height:n}}function WK(e,t,n){const r=Pr(t),i=Ri(t),o=n==="fixed",a=Ka(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const l=Ei(0);if(r||!r&&!o)if((Su(t)!=="body"||Lc(i))&&(u=Jh(t)),r){const p=Ka(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=y1(i));const f=i&&!r&&!o?W2(i,u):Ei(0),d=a.left+u.scrollLeft-l.x-f.x,h=a.top+u.scrollTop-l.y-f.y;return{x:d,y:h,width:a.width,height:a.height}}function ng(e){return Wr(e).position==="static"}function hw(e,t){if(!Pr(e)||Wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ri(e)===n&&(n=n.ownerDocument.body),n}function G2(e,t){const n=Gn(e);if(Zh(e))return n;if(!Pr(e)){let i=qo(e);for(;i&&!ou(i);){if(en(i)&&!ng(i))return i;i=qo(i)}return n}let r=hw(e,t);for(;r&&pK(r)&&ng(r);)r=hw(r,t);return r&&ou(r)&&ng(r)&&!m1(r)?n:r||mK(e)||n}const HK=async function(e){const t=this.getOffsetParent||G2,n=this.getDimensions,r=await n(e.floating);return{reference:WK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function GK(e){return Wr(e).direction==="rtl"}const YK={convertOffsetParentRelativeRectToViewportRelativeRect:LK,getDocumentElement:Ri,getClippingRect:zK,getOffsetParent:G2,getElementRects:HK,getClientRects:VK,getDimensions:qK,getScale:Hs,isElement:en,isRTL:GK};function Y2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ZK(e,t){let n=null,r;const i=Ri(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const f=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=f;if(u||t(),!p||!g)return;const v=ud(h),b=ud(i.clientWidth-(d+p)),D=ud(i.clientHeight-(h+g)),$=ud(d),w={rootMargin:-v+"px "+-b+"px "+-D+"px "+-$+"px",threshold:ka(0,eh(1,l))||1};let T=!0;function E(A){const M=A[0].intersectionRatio;if(M!==l){if(!T)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!Y2(f,e.getBoundingClientRect())&&a(),T=!1}try{n=new IntersectionObserver(E,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,w)}n.observe(e)}return a(!0),o}function JK(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:l=!1}=r,f=v1(e),d=i||o?[...f?pc(f):[],...pc(t)]:[];d.forEach($=>{i&&$.addEventListener("scroll",n,{passive:!0}),o&&$.addEventListener("resize",n)});const h=f&&u?ZK(f,n):null;let p=-1,g=null;a&&(g=new ResizeObserver($=>{let[y]=$;y&&y.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),f&&!l&&g.observe(f),g.observe(t));let v,b=l?Ka(e):null;l&&D();function D(){const $=Ka(e);b&&!Y2(b,$)&&n(),b=$,v=requestAnimationFrame(D)}return n(),()=>{var $;d.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),h==null||h(),($=g)==null||$.disconnect(),g=null,l&&cancelAnimationFrame(v)}}const XK=FK,QK=kK,eU=OK,tU=(e,t,n)=>{const r=new Map,i={platform:YK,...n},o={...i.platform,_c:r};return RK(e,t,{...i,platform:o})};var Fd=typeof document<"u"?C.useLayoutEffect:C.useEffect;function ih(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(!ih(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)&&!ih(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Z2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pw(e,t){const n=Z2(e);return Math.round(t*n)/n}function rg(e){const t=be.useRef(e);return Fd(()=>{t.current=e}),t}function J2(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:l,open:f}=e,[d,h]=be.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=be.useState(r);ih(p,r)||g(r);const[v,b]=be.useState(null),[D,$]=be.useState(null),y=be.useCallback(_=>{_!==A.current&&(A.current=_,b(_))},[]),w=be.useCallback(_=>{_!==M.current&&(M.current=_,$(_))},[]),T=o||v,E=a||D,A=be.useRef(null),M=be.useRef(null),S=be.useRef(d),z=l!=null,j=rg(l),O=rg(i),Z=rg(f),R=be.useCallback(()=>{if(!A.current||!M.current)return;const _={placement:t,strategy:n,middleware:p};O.current&&(_.platform=O.current),tU(A.current,M.current,_).then(H=>{const U={...H,isPositioned:Z.current!==!1};V.current&&!ih(S.current,U)&&(S.current=U,Ad.flushSync(()=>{h(U)}))})},[p,t,n,O,Z]);Fd(()=>{f===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[f]);const V=be.useRef(!1);Fd(()=>(V.current=!0,()=>{V.current=!1}),[]),Fd(()=>{if(T&&(A.current=T),E&&(M.current=E),T&&E){if(j.current)return j.current(T,E,R);R()}},[T,E,R,j,z]);const W=be.useMemo(()=>({reference:A,floating:M,setReference:y,setFloating:w}),[y,w]),L=be.useMemo(()=>({reference:T,floating:E}),[T,E]),k=be.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const H=pw(L.floating,d.x),U=pw(L.floating,d.y);return u?{..._,transform:"translate("+H+"px, "+U+"px)",...Z2(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,u,L.floating,d.x,d.y]);return be.useMemo(()=>({...d,update:R,refs:W,elements:L,floatingStyles:k}),[d,R,W,L,k])}const nU=(e,t)=>({...XK(e),options:[e,t]}),rU=(e,t)=>({...QK(e),options:[e,t]}),iU=(e,t)=>({...eU(e),options:[e,t]}),X2={...be},oU=X2.useInsertionEffect,aU=oU||(e=>e());function kd(e){const t=be.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return aU(()=>{t.current=e}),be.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var su=typeof document<"u"?C.useLayoutEffect:C.useEffect;let mw=!1,sU=0;const gw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sU++;function uU(){const[e,t]=be.useState(()=>mw?gw():void 0);return su(()=>{e==null&&t(gw())},[]),be.useEffect(()=>{mw=!0},[]),e}const lU=X2.useId,Q2=lU||uU;let j0;process.env.NODE_ENV!=="production"&&(j0=new Set);function cU(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=j0)!=null&&e.has(i))){var o;(o=j0)==null||o.add(i),console.error(i)}}function fU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const dU=be.createContext(null),hU=be.createContext(null),b1=()=>{var e;return((e=be.useContext(dU))==null?void 0:e.id)||null},eA=()=>be.useContext(hU);function tA(e){return"data-floating-ui-"+e}function ig(e){const t=C.useRef(e);return su(()=>{t.current=e}),t}const vw=tA("safe-polygon");function og(e,t,n){return n&&!V0(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function pU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:u=!0,delay:l=0,handleClose:f=null,mouseOnly:d=!1,restMs:h=0,move:p=!0}=t,g=eA(),v=b1(),b=ig(f),D=ig(l),$=ig(n),y=be.useRef(),w=be.useRef(-1),T=be.useRef(),E=be.useRef(-1),A=be.useRef(!0),M=be.useRef(!1),S=be.useRef(()=>{}),z=be.useRef(!1),j=be.useCallback(()=>{var k;const _=(k=i.current.openEvent)==null?void 0:k.type;return(_==null?void 0:_.includes("mouse"))&&_!=="mousedown"},[i]);be.useEffect(()=>{if(!u)return;function k(_){let{open:H}=_;H||(clearTimeout(w.current),clearTimeout(E.current),A.current=!0,z.current=!1)}return o.on("openchange",k),()=>{o.off("openchange",k)}},[u,o]),be.useEffect(()=>{if(!u||!b.current||!n)return;function k(H){j()&&r(!1,H,"hover")}const _=Kl(a.floating).documentElement;return _.addEventListener("mouseleave",k),()=>{_.removeEventListener("mouseleave",k)}},[a.floating,n,r,u,b,j]);const O=be.useCallback(function(k,_,H){_===void 0&&(_=!0),H===void 0&&(H="hover");const U=og(D.current,"close",y.current);U&&!T.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,k,H),U)):_&&(clearTimeout(w.current),r(!1,k,H))},[D,r]),Z=kd(()=>{S.current(),T.current=void 0}),R=kd(()=>{if(M.current){const k=Kl(a.floating).body;k.style.pointerEvents="",k.removeAttribute(vw),M.current=!1}}),V=kd(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);be.useEffect(()=>{if(!u)return;function k(N){if(clearTimeout(w.current),A.current=!1,d&&!V0(y.current)||h>0&&!og(D.current,"open"))return;const ne=og(D.current,"open",y.current);ne?w.current=window.setTimeout(()=>{$.current||r(!0,N,"hover")},ne):n||r(!0,N,"hover")}function _(N){if(V())return;S.current();const ne=Kl(a.floating);if(clearTimeout(E.current),z.current=!1,b.current&&i.current.floatingContext){n||clearTimeout(w.current),T.current=b.current({...i.current.floatingContext,tree:g,x:N.clientX,y:N.clientY,onClose(){R(),Z(),V()||O(N,!0,"safe-polygon")}});const ce=T.current;ne.addEventListener("mousemove",ce),S.current=()=>{ne.removeEventListener("mousemove",ce)};return}(y.current==="touch"?!L0(a.floating,N.relatedTarget):!0)&&O(N)}function H(N){V()||i.current.floatingContext&&(b.current==null||b.current({...i.current.floatingContext,tree:g,x:N.clientX,y:N.clientY,onClose(){R(),Z(),V()||O(N)}})(N))}if(en(a.domReference)){var U;const N=a.domReference;return n&&N.addEventListener("mouseleave",H),(U=a.floating)==null||U.addEventListener("mouseleave",H),p&&N.addEventListener("mousemove",k,{once:!0}),N.addEventListener("mouseenter",k),N.addEventListener("mouseleave",_),()=>{var ne;n&&N.removeEventListener("mouseleave",H),(ne=a.floating)==null||ne.removeEventListener("mouseleave",H),p&&N.removeEventListener("mousemove",k),N.removeEventListener("mouseenter",k),N.removeEventListener("mouseleave",_)}}},[a,u,e,d,h,p,O,Z,R,r,n,$,g,D,b,i,V]),su(()=>{var k;if(u&&n&&(k=b.current)!=null&&k.__options.blockPointerEvents&&j()){M.current=!0;const H=a.floating;if(en(a.domReference)&&H){var _;const U=Kl(a.floating).body;U.setAttribute(vw,"");const N=a.domReference,ne=g==null||(_=g.nodesRef.current.find(ie=>ie.id===v))==null||(_=_.context)==null?void 0:_.elements.floating;return ne&&(ne.style.pointerEvents=""),U.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{U.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[u,n,v,a,g,b,j]),su(()=>{n||(y.current=void 0,z.current=!1,Z(),R())},[n,Z,R]),be.useEffect(()=>()=>{Z(),clearTimeout(w.current),clearTimeout(E.current),R()},[u,a.domReference,Z,R]);const W=be.useMemo(()=>{function k(_){y.current=_.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(_){const{nativeEvent:H}=_;function U(){!A.current&&!$.current&&r(!0,H,"hover")}d&&!V0(y.current)||n||h===0||z.current&&_.movementX**2+_.movementY**2<2||(clearTimeout(E.current),y.current==="touch"?U():(z.current=!0,E.current=window.setTimeout(U,h)))}}},[d,r,n,$,h]),L=be.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(k){V()||O(k.nativeEvent,!1)}}),[O,V]);return be.useMemo(()=>u?{reference:W,floating:L}:{},[u,W,L])}const mU="data-floating-ui-focusable";function gU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Q2(),o=be.useRef({}),[a]=be.useState(()=>fU()),u=b1()!=null;if(process.env.NODE_ENV!=="production"){const g=r.reference;g&&!en(g)&&cU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,f]=be.useState(r.reference),d=kd((g,v,b)=>{o.current.openEvent=g?v:void 0,a.emit("openchange",{open:g,event:v,reason:b,nested:u}),n==null||n(g,v,b)}),h=be.useMemo(()=>({setPositionReference:f}),[]),p=be.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return be.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:h}),[t,d,p,a,i,h])}function vU(e){e===void 0&&(e={});const{nodeId:t}=e,n=gU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=be.useState(null),[u,l]=be.useState(null),d=(i==null?void 0:i.domReference)||o,h=be.useRef(null),p=eA();su(()=>{d&&(h.current=d)},[d]);const g=J2({...e,elements:{...i,...u&&{reference:u}}}),v=be.useCallback(w=>{const T=en(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(T),g.refs.setReference(T)},[g.refs]),b=be.useCallback(w=>{(en(w)||w===null)&&(h.current=w,a(w)),(en(g.refs.reference.current)||g.refs.reference.current===null||w!==null&&!en(w))&&g.refs.setReference(w)},[g.refs]),D=be.useMemo(()=>({...g.refs,setReference:b,setPositionReference:v,domReference:h}),[g.refs,b,v]),$=be.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),y=be.useMemo(()=>({...g,...r,refs:D,elements:$,nodeId:t}),[g,D,$,t,r]);return su(()=>{r.dataRef.current.floatingContext=y;const w=p==null?void 0:p.nodesRef.current.find(T=>T.id===t);w&&(w.context=y)}),be.useMemo(()=>({...g,context:y,refs:D,elements:$}),[g,D,$,y])}function yU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:u=!0,visibleOnly:l=!0}=t,f=be.useRef(!1),d=be.useRef(),h=be.useRef(!0);be.useEffect(()=>{if(!u)return;const g=Gn(a.domReference);function v(){!n&&Pr(a.domReference)&&a.domReference===uw(Kl(a.domReference))&&(f.current=!0)}function b(){h.current=!0}return g.addEventListener("blur",v),g.addEventListener("keydown",b,!0),()=>{g.removeEventListener("blur",v),g.removeEventListener("keydown",b,!0)}},[a.domReference,n,u]),be.useEffect(()=>{if(!u)return;function g(v){let{reason:b}=v;(b==="reference-press"||b==="escape-key")&&(f.current=!0)}return i.on("openchange",g),()=>{i.off("openchange",g)}},[i,u]),be.useEffect(()=>()=>{clearTimeout(d.current)},[]);const p=be.useMemo(()=>({onPointerDown(g){gK(g.nativeEvent)||(h.current=!1)},onMouseLeave(){f.current=!1},onFocus(g){if(f.current)return;const v=$K(g.nativeEvent);if(l&&en(v))try{if(vK()&&yK())throw Error();if(!v.matches(":focus-visible"))return}catch{if(!h.current&&!wK(v))return}r(!0,g.nativeEvent,"focus")},onBlur(g){f.current=!1;const v=g.relatedTarget,b=g.nativeEvent,D=en(v)&&v.hasAttribute(tA("focus-guard"))&&v.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var $;const y=uw(a.domReference?a.domReference.ownerDocument:document);!v&&y===a.domReference||L0(($=o.current.floatingContext)==null?void 0:$.refs.floating.current,y)||L0(a.domReference,y)||D||r(!1,b,"focus")})}}),[o,a.domReference,r,l]);return be.useMemo(()=>u?{reference:p}:{},[u,p])}const yw="active",bw="selected";function ag(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[yw]:a,[bw]:u,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[mU]:""},...o,...t.map(a=>{const u=a?a[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((a,u)=>(u&&Object.entries(u).forEach(l=>{let[f,d]=l;if(!(i&&[yw,bw].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof d=="function"){var h;(h=r.get(f))==null||h.push(d),a[f]=function(){for(var p,g=arguments.length,v=new Array(g),b=0;b<g;b++)v[b]=arguments[b];return(p=r.get(f))==null?void 0:p.map(D=>D(...v)).find(D=>D!==void 0)}}}else a[f]=d}),a),{})}}function bU(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=be.useCallback(u=>ag(u,e,"reference"),t),o=be.useCallback(u=>ag(u,e,"floating"),n),a=be.useCallback(u=>ag(u,e,"item"),r);return be.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const $U=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function xU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,u=(n=$U.get(a))!=null?n:a,l=Q2(),d=b1()!=null,h=be.useMemo(()=>u==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?i:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:l},...u==="menu"&&d&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[u,i,d,r,l,a]),p=be.useMemo(()=>{const v={id:i,...u&&{role:u}};return u==="tooltip"||a==="label"?v:{...v,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,a]),g=be.useCallback(v=>{let{active:b,selected:D}=v;const $={role:"option",...b&&{id:i+"-option"}};switch(a){case"select":return{...$,"aria-selected":b&&D};case"combobox":return{...$,...b&&{"aria-selected":!0}}}return{}},[i,a]);return be.useMemo(()=>o?{reference:h,floating:p,item:g}:{},[o,h,p,g])}var Ul={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 wU=Ul.exports,$w;function DU(){return $w||($w=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`",l="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,p=2,g=4,v=1,b=2,D=1,$=2,y=4,w=8,T=16,E=32,A=64,M=128,S=256,z=512,j=30,O="...",Z=800,R=16,V=1,W=2,L=3,k=1/0,_=9007199254740991,H=17976931348623157e292,U=NaN,N=4294967295,ne=N-1,ie=N>>>1,ce=[["ary",M],["bind",D],["bindKey",$],["curry",w],["curryRight",T],["flip",z],["partial",E],["partialRight",A],["rearg",S]],xe="[object Arguments]",De="[object Array]",Ee="[object AsyncFunction]",J="[object Boolean]",ve="[object Date]",we="[object DOMException]",me="[object Error]",ue="[object Function]",Le="[object GeneratorFunction]",nt="[object Map]",Nt="[object Number]",Xn="[object Null]",Pt="[object Object]",G="[object Promise]",Q="[object Proxy]",re="[object RegExp]",ye="[object Set]",Se="[object String]",Ce="[object Symbol]",Fe="[object Undefined]",Ne="[object WeakMap]",_t="[object WeakSet]",ut="[object ArrayBuffer]",Zt="[object DataView]",Xr="[object Float32Array]",Rr="[object Float64Array]",mn="[object Int8Array]",Qr="[object Int16Array]",ei="[object Int32Array]",ti="[object Uint8Array]",Or="[object Uint8ClampedArray]",Qo="[object Uint16Array]",ni="[object Uint32Array]",Mi=/\b__p \+= '';/g,ri=/\b(__p \+=) '' \+/g,po=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,ar=/[&<>"']/g,ea=RegExp(Fi.source),ta=RegExp(ar.source),Uu=/<%-([\s\S]+?)%>/g,zu=/<%([\s\S]+?)%>/g,ns=/<%=([\s\S]+?)%>/g,mo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rs=/^\w*$/,Mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/[\\^$.*+?()[\]{}|]/g,qu=RegExp(na.source),ra=/^\s+/,Wu=/\s/,Hu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bn=/\{\n\/\* \[wrapped with (.+)\] \*/,Gu=/,? & /,Ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yu=/[()=,{}\[\]\/\s]/,Zu=/\\(\\)?/g,Ju=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,Xu=/^[-+]0x[0-9a-f]+$/i,Qu=/^0b[01]+$/i,el=/^\[object .+?Constructor\]$/,tl=/^0o[0-7]+$/i,nl=/^(?:0|[1-9]\d*)$/,ii=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,oi=/($^)/,is=/['\n\r\u2028\u2029\\]/g,go="\\ud800-\\udfff",rl="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",il="\\u20d0-\\u20ff",vo=rl+os+il,ai="\\u2700-\\u27bf",ia="a-z\\xdf-\\xf6\\xf8-\\xff",oa="\\xac\\xb1\\xd7\\xf7",as="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ss="\\u2000-\\u206f",ol=" \\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",us="A-Z\\xc0-\\xd6\\xd8-\\xde",aa="\\ufe0e\\ufe0f",ls=oa+as+ss+ol,ki="['’]",al="["+go+"]",cs="["+ls+"]",yo="["+vo+"]",fs="\\d+",I="["+ai+"]",X="["+ia+"]",se="[^"+go+ls+fs+ai+ia+us+"]",ge="\\ud83c[\\udffb-\\udfff]",_e="(?:"+yo+"|"+ge+")",Xe="[^"+go+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ke="[\\ud800-\\udbff][\\udc00-\\udfff]",$t="["+us+"]",Rt="\\u200d",cn="(?:"+X+"|"+se+")",fn="(?:"+$t+"|"+se+")",sr="(?:"+ki+"(?:d|ll|m|re|s|t|ve))?",Tn="(?:"+ki+"(?:D|LL|M|RE|S|T|VE))?",ds=_e+"?",sa="["+aa+"]?",ua="(?:"+Rt+"(?:"+[Xe,Ve,Ke].join("|")+")"+sa+ds+")*",Ii="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sl=sa+ds+ua,qp="(?:"+[I,Ve,Ke].join("|")+")"+sl,ul="(?:"+[Xe+yo+"?",yo,Ve,Ke,al].join("|")+")",vf=RegExp(ki,"g"),Wp=RegExp(yo,"g"),ll=RegExp(ge+"(?="+ge+")|"+ul+sl,"g"),yf=RegExp([$t+"?"+X+"+"+sr+"(?="+[cs,$t,"$"].join("|")+")",fn+"+"+Tn+"(?="+[cs,$t+cn,"$"].join("|")+")",$t+"?"+cn+"+"+sr,$t+"+"+Tn,zp,Ii,fs,qp].join("|"),"g"),Hp=RegExp("["+Rt+go+vo+aa+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gp=["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"],cl=-1,wt={};wt[Xr]=wt[Rr]=wt[mn]=wt[Qr]=wt[ei]=wt[ti]=wt[Or]=wt[Qo]=wt[ni]=!0,wt[xe]=wt[De]=wt[ut]=wt[J]=wt[Zt]=wt[ve]=wt[me]=wt[ue]=wt[nt]=wt[Nt]=wt[Pt]=wt[re]=wt[ye]=wt[Se]=wt[Ne]=!1;var xt={};xt[xe]=xt[De]=xt[ut]=xt[Zt]=xt[J]=xt[ve]=xt[Xr]=xt[Rr]=xt[mn]=xt[Qr]=xt[ei]=xt[nt]=xt[Nt]=xt[Pt]=xt[re]=xt[ye]=xt[Se]=xt[Ce]=xt[ti]=xt[Or]=xt[Qo]=xt[ni]=!0,xt[me]=xt[ue]=xt[Ne]=!1;var K={À:"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={"&":"&","<":"<",">":">",'"':""","'":"'"},pe={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tn=parseFloat,gn=parseInt,ur=typeof vi=="object"&&vi&&vi.Object===Object&&vi,vn=typeof self=="object"&&self&&self.Object===Object&&self,Jt=ur||vn||Function("return this")(),si=t&&!t.nodeType&&t,ui=si&&!0&&e&&!e.nodeType&&e,fl=ui&&ui.exports===si,ps=fl&&ur.process,yn=function(){try{var ee=ui&&ui.require&&ui.require("util").types;return ee||ps&&ps.binding&&ps.binding("util")}catch{}}(),la=yn&&yn.isArrayBuffer,K3=yn&&yn.isDate,U3=yn&&yn.isMap,z3=yn&&yn.isRegExp,q3=yn&&yn.isSet,W3=yn&&yn.isTypedArray;function Qn(ee,fe,ae){switch(ae.length){case 0:return ee.call(fe);case 1:return ee.call(fe,ae[0]);case 2:return ee.call(fe,ae[0],ae[1]);case 3:return ee.call(fe,ae[0],ae[1],ae[2])}return ee.apply(fe,ae)}function P8(ee,fe,ae,Oe){for(var He=-1,lt=ee==null?0:ee.length;++He<lt;){var nn=ee[He];fe(Oe,nn,ae(nn),ee)}return Oe}function lr(ee,fe){for(var ae=-1,Oe=ee==null?0:ee.length;++ae<Oe&&fe(ee[ae],ae,ee)!==!1;);return ee}function _8(ee,fe){for(var ae=ee==null?0:ee.length;ae--&&fe(ee[ae],ae,ee)!==!1;);return ee}function H3(ee,fe){for(var ae=-1,Oe=ee==null?0:ee.length;++ae<Oe;)if(!fe(ee[ae],ae,ee))return!1;return!0}function bo(ee,fe){for(var ae=-1,Oe=ee==null?0:ee.length,He=0,lt=[];++ae<Oe;){var nn=ee[ae];fe(nn,ae,ee)&&(lt[He++]=nn)}return lt}function bf(ee,fe){var ae=ee==null?0:ee.length;return!!ae&&ms(ee,fe,0)>-1}function Yp(ee,fe,ae){for(var Oe=-1,He=ee==null?0:ee.length;++Oe<He;)if(ae(fe,ee[Oe]))return!0;return!1}function Ot(ee,fe){for(var ae=-1,Oe=ee==null?0:ee.length,He=Array(Oe);++ae<Oe;)He[ae]=fe(ee[ae],ae,ee);return He}function $o(ee,fe){for(var ae=-1,Oe=fe.length,He=ee.length;++ae<Oe;)ee[He+ae]=fe[ae];return ee}function Zp(ee,fe,ae,Oe){var He=-1,lt=ee==null?0:ee.length;for(Oe&<&&(ae=ee[++He]);++He<lt;)ae=fe(ae,ee[He],He,ee);return ae}function R8(ee,fe,ae,Oe){var He=ee==null?0:ee.length;for(Oe&&He&&(ae=ee[--He]);He--;)ae=fe(ae,ee[He],He,ee);return ae}function Jp(ee,fe){for(var ae=-1,Oe=ee==null?0:ee.length;++ae<Oe;)if(fe(ee[ae],ae,ee))return!0;return!1}var O8=Xp("length");function M8(ee){return ee.split("")}function F8(ee){return ee.match(Ln)||[]}function G3(ee,fe,ae){var Oe;return ae(ee,function(He,lt,nn){if(fe(He,lt,nn))return Oe=lt,!1}),Oe}function $f(ee,fe,ae,Oe){for(var He=ee.length,lt=ae+(Oe?1:-1);Oe?lt--:++lt<He;)if(fe(ee[lt],lt,ee))return lt;return-1}function ms(ee,fe,ae){return fe===fe?W8(ee,fe,ae):$f(ee,Y3,ae)}function k8(ee,fe,ae,Oe){for(var He=ae-1,lt=ee.length;++He<lt;)if(Oe(ee[He],fe))return He;return-1}function Y3(ee){return ee!==ee}function Z3(ee,fe){var ae=ee==null?0:ee.length;return ae?em(ee,fe)/ae:U}function Xp(ee){return function(fe){return fe==null?n:fe[ee]}}function Qp(ee){return function(fe){return ee==null?n:ee[fe]}}function J3(ee,fe,ae,Oe,He){return He(ee,function(lt,nn,Dt){ae=Oe?(Oe=!1,lt):fe(ae,lt,nn,Dt)}),ae}function I8(ee,fe){var ae=ee.length;for(ee.sort(fe);ae--;)ee[ae]=ee[ae].value;return ee}function em(ee,fe){for(var ae,Oe=-1,He=ee.length;++Oe<He;){var lt=fe(ee[Oe]);lt!==n&&(ae=ae===n?lt:ae+lt)}return ae}function tm(ee,fe){for(var ae=-1,Oe=Array(ee);++ae<ee;)Oe[ae]=fe(ae);return Oe}function B8(ee,fe){return Ot(fe,function(ae){return[ae,ee[ae]]})}function X3(ee){return ee&&ee.slice(0,n$(ee)+1).replace(ra,"")}function er(ee){return function(fe){return ee(fe)}}function nm(ee,fe){return Ot(fe,function(ae){return ee[ae]})}function dl(ee,fe){return ee.has(fe)}function Q3(ee,fe){for(var ae=-1,Oe=ee.length;++ae<Oe&&ms(fe,ee[ae],0)>-1;);return ae}function e$(ee,fe){for(var ae=ee.length;ae--&&ms(fe,ee[ae],0)>-1;);return ae}function L8(ee,fe){for(var ae=ee.length,Oe=0;ae--;)ee[ae]===fe&&++Oe;return Oe}var V8=Qp(K),N8=Qp(oe);function j8(ee){return"\\"+Ie[ee]}function K8(ee,fe){return ee==null?n:ee[fe]}function gs(ee){return Hp.test(ee)}function U8(ee){return hs.test(ee)}function z8(ee){for(var fe,ae=[];!(fe=ee.next()).done;)ae.push(fe.value);return ae}function rm(ee){var fe=-1,ae=Array(ee.size);return ee.forEach(function(Oe,He){ae[++fe]=[He,Oe]}),ae}function t$(ee,fe){return function(ae){return ee(fe(ae))}}function xo(ee,fe){for(var ae=-1,Oe=ee.length,He=0,lt=[];++ae<Oe;){var nn=ee[ae];(nn===fe||nn===d)&&(ee[ae]=d,lt[He++]=ae)}return lt}function xf(ee){var fe=-1,ae=Array(ee.size);return ee.forEach(function(Oe){ae[++fe]=Oe}),ae}function q8(ee){var fe=-1,ae=Array(ee.size);return ee.forEach(function(Oe){ae[++fe]=[Oe,Oe]}),ae}function W8(ee,fe,ae){for(var Oe=ae-1,He=ee.length;++Oe<He;)if(ee[Oe]===fe)return Oe;return-1}function H8(ee,fe,ae){for(var Oe=ae+1;Oe--;)if(ee[Oe]===fe)return Oe;return Oe}function vs(ee){return gs(ee)?Y8(ee):O8(ee)}function kr(ee){return gs(ee)?Z8(ee):M8(ee)}function n$(ee){for(var fe=ee.length;fe--&&Wu.test(ee.charAt(fe)););return fe}var G8=Qp(pe);function Y8(ee){for(var fe=ll.lastIndex=0;ll.test(ee);)++fe;return fe}function Z8(ee){return ee.match(ll)||[]}function J8(ee){return ee.match(yf)||[]}var X8=function ee(fe){fe=fe==null?Jt:ys.defaults(Jt.Object(),fe,ys.pick(Jt,Gp));var ae=fe.Array,Oe=fe.Date,He=fe.Error,lt=fe.Function,nn=fe.Math,Dt=fe.Object,im=fe.RegExp,Q8=fe.String,cr=fe.TypeError,wf=ae.prototype,ek=lt.prototype,bs=Dt.prototype,Df=fe["__core-js_shared__"],Cf=ek.toString,vt=bs.hasOwnProperty,tk=0,r$=function(){var s=/[^.]+$/.exec(Df&&Df.keys&&Df.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Ef=bs.toString,nk=Cf.call(Dt),rk=Jt._,ik=im("^"+Cf.call(vt).replace(na,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sf=fl?fe.Buffer:n,wo=fe.Symbol,Tf=fe.Uint8Array,i$=Sf?Sf.allocUnsafe:n,Af=t$(Dt.getPrototypeOf,Dt),o$=Dt.create,a$=bs.propertyIsEnumerable,Pf=wf.splice,s$=wo?wo.isConcatSpreadable:n,hl=wo?wo.iterator:n,ca=wo?wo.toStringTag:n,_f=function(){try{var s=ma(Dt,"defineProperty");return s({},"",{}),s}catch{}}(),ok=fe.clearTimeout!==Jt.clearTimeout&&fe.clearTimeout,ak=Oe&&Oe.now!==Jt.Date.now&&Oe.now,sk=fe.setTimeout!==Jt.setTimeout&&fe.setTimeout,Rf=nn.ceil,Of=nn.floor,om=Dt.getOwnPropertySymbols,uk=Sf?Sf.isBuffer:n,u$=fe.isFinite,lk=wf.join,ck=t$(Dt.keys,Dt),rn=nn.max,bn=nn.min,fk=Oe.now,dk=fe.parseInt,l$=nn.random,hk=wf.reverse,am=ma(fe,"DataView"),pl=ma(fe,"Map"),sm=ma(fe,"Promise"),$s=ma(fe,"Set"),ml=ma(fe,"WeakMap"),gl=ma(Dt,"create"),Mf=ml&&new ml,xs={},pk=ga(am),mk=ga(pl),gk=ga(sm),vk=ga($s),yk=ga(ml),Ff=wo?wo.prototype:n,vl=Ff?Ff.valueOf:n,c$=Ff?Ff.toString:n;function F(s){if(jt(s)&&!Ge(s)&&!(s instanceof ot)){if(s instanceof fr)return s;if(vt.call(s,"__wrapped__"))return fx(s)}return new fr(s)}var ws=function(){function s(){}return function(c){if(!kt(c))return{};if(o$)return o$(c);s.prototype=c;var m=new s;return s.prototype=n,m}}();function kf(){}function fr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:Uu,evaluate:zu,interpolate:ns,variable:"",imports:{_:F}},F.prototype=kf.prototype,F.prototype.constructor=F,fr.prototype=ws(kf.prototype),fr.prototype.constructor=fr;function ot(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function bk(){var s=new ot(this.__wrapped__);return s.__actions__=Vn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vn(this.__views__),s}function $k(){if(this.__filtered__){var s=new ot(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function xk(){var s=this.__wrapped__.value(),c=this.__dir__,m=Ge(s),x=c<0,P=m?s.length:0,B=MI(0,P,this.__views__),q=B.start,Y=B.end,te=Y-q,de=x?Y:q-1,he=this.__iteratees__,$e=he.length,Pe=0,Be=bn(te,this.__takeCount__);if(!m||!x&&P==te&&Be==te)return F$(s,this.__actions__);var Ue=[];e:for(;te--&&Pe<Be;){de+=c;for(var Qe=-1,ze=s[de];++Qe<$e;){var rt=he[Qe],at=rt.iteratee,rr=rt.type,_n=at(ze);if(rr==W)ze=_n;else if(!_n){if(rr==V)continue e;break e}}Ue[Pe++]=ze}return Ue}ot.prototype=ws(kf.prototype),ot.prototype.constructor=ot;function fa(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function wk(){this.__data__=gl?gl(null):{},this.size=0}function Dk(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function Ck(s){var c=this.__data__;if(gl){var m=c[s];return m===l?n:m}return vt.call(c,s)?c[s]:n}function Ek(s){var c=this.__data__;return gl?c[s]!==n:vt.call(c,s)}function Sk(s,c){var m=this.__data__;return this.size+=this.has(s)?0:1,m[s]=gl&&c===n?l:c,this}fa.prototype.clear=wk,fa.prototype.delete=Dk,fa.prototype.get=Ck,fa.prototype.has=Ek,fa.prototype.set=Sk;function Bi(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function Tk(){this.__data__=[],this.size=0}function Ak(s){var c=this.__data__,m=If(c,s);if(m<0)return!1;var x=c.length-1;return m==x?c.pop():Pf.call(c,m,1),--this.size,!0}function Pk(s){var c=this.__data__,m=If(c,s);return m<0?n:c[m][1]}function _k(s){return If(this.__data__,s)>-1}function Rk(s,c){var m=this.__data__,x=If(m,s);return x<0?(++this.size,m.push([s,c])):m[x][1]=c,this}Bi.prototype.clear=Tk,Bi.prototype.delete=Ak,Bi.prototype.get=Pk,Bi.prototype.has=_k,Bi.prototype.set=Rk;function Li(s){var c=-1,m=s==null?0:s.length;for(this.clear();++c<m;){var x=s[c];this.set(x[0],x[1])}}function Ok(){this.size=0,this.__data__={hash:new fa,map:new(pl||Bi),string:new fa}}function Mk(s){var c=Gf(this,s).delete(s);return this.size-=c?1:0,c}function Fk(s){return Gf(this,s).get(s)}function kk(s){return Gf(this,s).has(s)}function Ik(s,c){var m=Gf(this,s),x=m.size;return m.set(s,c),this.size+=m.size==x?0:1,this}Li.prototype.clear=Ok,Li.prototype.delete=Mk,Li.prototype.get=Fk,Li.prototype.has=kk,Li.prototype.set=Ik;function da(s){var c=-1,m=s==null?0:s.length;for(this.__data__=new Li;++c<m;)this.add(s[c])}function Bk(s){return this.__data__.set(s,l),this}function Lk(s){return this.__data__.has(s)}da.prototype.add=da.prototype.push=Bk,da.prototype.has=Lk;function Ir(s){var c=this.__data__=new Bi(s);this.size=c.size}function Vk(){this.__data__=new Bi,this.size=0}function Nk(s){var c=this.__data__,m=c.delete(s);return this.size=c.size,m}function jk(s){return this.__data__.get(s)}function Kk(s){return this.__data__.has(s)}function Uk(s,c){var m=this.__data__;if(m instanceof Bi){var x=m.__data__;if(!pl||x.length<i-1)return x.push([s,c]),this.size=++m.size,this;m=this.__data__=new Li(x)}return m.set(s,c),this.size=m.size,this}Ir.prototype.clear=Vk,Ir.prototype.delete=Nk,Ir.prototype.get=jk,Ir.prototype.has=Kk,Ir.prototype.set=Uk;function f$(s,c){var m=Ge(s),x=!m&&va(s),P=!m&&!x&&To(s),B=!m&&!x&&!P&&Ss(s),q=m||x||P||B,Y=q?tm(s.length,Q8):[],te=Y.length;for(var de in s)(c||vt.call(s,de))&&!(q&&(de=="length"||P&&(de=="offset"||de=="parent")||B&&(de=="buffer"||de=="byteLength"||de=="byteOffset")||Ki(de,te)))&&Y.push(de);return Y}function d$(s){var c=s.length;return c?s[ym(0,c-1)]:n}function zk(s,c){return Yf(Vn(s),ha(c,0,s.length))}function qk(s){return Yf(Vn(s))}function um(s,c,m){(m!==n&&!Br(s[c],m)||m===n&&!(c in s))&&Vi(s,c,m)}function yl(s,c,m){var x=s[c];(!(vt.call(s,c)&&Br(x,m))||m===n&&!(c in s))&&Vi(s,c,m)}function If(s,c){for(var m=s.length;m--;)if(Br(s[m][0],c))return m;return-1}function Wk(s,c,m,x){return Do(s,function(P,B,q){c(x,P,m(P),q)}),x}function h$(s,c){return s&&ci(c,sn(c),s)}function Hk(s,c){return s&&ci(c,jn(c),s)}function Vi(s,c,m){c=="__proto__"&&_f?_f(s,c,{configurable:!0,enumerable:!0,value:m,writable:!0}):s[c]=m}function lm(s,c){for(var m=-1,x=c.length,P=ae(x),B=s==null;++m<x;)P[m]=B?n:Um(s,c[m]);return P}function ha(s,c,m){return s===s&&(m!==n&&(s=s<=m?s:m),c!==n&&(s=s>=c?s:c)),s}function dr(s,c,m,x,P,B){var q,Y=c&h,te=c&p,de=c&g;if(m&&(q=P?m(s,x,P,B):m(s)),q!==n)return q;if(!kt(s))return s;var he=Ge(s);if(he){if(q=kI(s),!Y)return Vn(s,q)}else{var $e=$n(s),Pe=$e==ue||$e==Le;if(To(s))return B$(s,Y);if($e==Pt||$e==xe||Pe&&!P){if(q=te||Pe?{}:nx(s),!Y)return te?CI(s,Hk(q,s)):DI(s,h$(q,s))}else{if(!xt[$e])return P?s:{};q=II(s,$e,Y)}}B||(B=new Ir);var Be=B.get(s);if(Be)return Be;B.set(s,q),Rx(s)?s.forEach(function(ze){q.add(dr(ze,c,m,ze,s,B))}):Px(s)&&s.forEach(function(ze,rt){q.set(rt,dr(ze,c,m,rt,s,B))});var Ue=de?te?Pm:Am:te?jn:sn,Qe=he?n:Ue(s);return lr(Qe||s,function(ze,rt){Qe&&(rt=ze,ze=s[rt]),yl(q,rt,dr(ze,c,m,rt,s,B))}),q}function Gk(s){var c=sn(s);return function(m){return p$(m,s,c)}}function p$(s,c,m){var x=m.length;if(s==null)return!x;for(s=Dt(s);x--;){var P=m[x],B=c[P],q=s[P];if(q===n&&!(P in s)||!B(q))return!1}return!0}function m$(s,c,m){if(typeof s!="function")throw new cr(a);return El(function(){s.apply(n,m)},c)}function bl(s,c,m,x){var P=-1,B=bf,q=!0,Y=s.length,te=[],de=c.length;if(!Y)return te;m&&(c=Ot(c,er(m))),x?(B=Yp,q=!1):c.length>=i&&(B=dl,q=!1,c=new da(c));e:for(;++P<Y;){var he=s[P],$e=m==null?he:m(he);if(he=x||he!==0?he:0,q&&$e===$e){for(var Pe=de;Pe--;)if(c[Pe]===$e)continue e;te.push(he)}else B(c,$e,x)||te.push(he)}return te}var Do=K$(li),g$=K$(fm,!0);function Yk(s,c){var m=!0;return Do(s,function(x,P,B){return m=!!c(x,P,B),m}),m}function Bf(s,c,m){for(var x=-1,P=s.length;++x<P;){var B=s[x],q=c(B);if(q!=null&&(Y===n?q===q&&!nr(q):m(q,Y)))var Y=q,te=B}return te}function Zk(s,c,m,x){var P=s.length;for(m=Ze(m),m<0&&(m=-m>P?0:P+m),x=x===n||x>P?P:Ze(x),x<0&&(x+=P),x=m>x?0:Mx(x);m<x;)s[m++]=c;return s}function v$(s,c){var m=[];return Do(s,function(x,P,B){c(x,P,B)&&m.push(x)}),m}function dn(s,c,m,x,P){var B=-1,q=s.length;for(m||(m=LI),P||(P=[]);++B<q;){var Y=s[B];c>0&&m(Y)?c>1?dn(Y,c-1,m,x,P):$o(P,Y):x||(P[P.length]=Y)}return P}var cm=U$(),y$=U$(!0);function li(s,c){return s&&cm(s,c,sn)}function fm(s,c){return s&&y$(s,c,sn)}function Lf(s,c){return bo(c,function(m){return Ui(s[m])})}function pa(s,c){c=Eo(c,s);for(var m=0,x=c.length;s!=null&&m<x;)s=s[fi(c[m++])];return m&&m==x?s:n}function b$(s,c,m){var x=c(s);return Ge(s)?x:$o(x,m(s))}function An(s){return s==null?s===n?Fe:Xn:ca&&ca in Dt(s)?OI(s):qI(s)}function dm(s,c){return s>c}function Jk(s,c){return s!=null&&vt.call(s,c)}function Xk(s,c){return s!=null&&c in Dt(s)}function Qk(s,c,m){return s>=bn(c,m)&&s<rn(c,m)}function hm(s,c,m){for(var x=m?Yp:bf,P=s[0].length,B=s.length,q=B,Y=ae(B),te=1/0,de=[];q--;){var he=s[q];q&&c&&(he=Ot(he,er(c))),te=bn(he.length,te),Y[q]=!m&&(c||P>=120&&he.length>=120)?new da(q&&he):n}he=s[0];var $e=-1,Pe=Y[0];e:for(;++$e<P&&de.length<te;){var Be=he[$e],Ue=c?c(Be):Be;if(Be=m||Be!==0?Be:0,!(Pe?dl(Pe,Ue):x(de,Ue,m))){for(q=B;--q;){var Qe=Y[q];if(!(Qe?dl(Qe,Ue):x(s[q],Ue,m)))continue e}Pe&&Pe.push(Ue),de.push(Be)}}return de}function eI(s,c,m,x){return li(s,function(P,B,q){c(x,m(P),B,q)}),x}function $l(s,c,m){c=Eo(c,s),s=ax(s,c);var x=s==null?s:s[fi(pr(c))];return x==null?n:Qn(x,s,m)}function $$(s){return jt(s)&&An(s)==xe}function tI(s){return jt(s)&&An(s)==ut}function nI(s){return jt(s)&&An(s)==ve}function xl(s,c,m,x,P){return s===c?!0:s==null||c==null||!jt(s)&&!jt(c)?s!==s&&c!==c:rI(s,c,m,x,xl,P)}function rI(s,c,m,x,P,B){var q=Ge(s),Y=Ge(c),te=q?De:$n(s),de=Y?De:$n(c);te=te==xe?Pt:te,de=de==xe?Pt:de;var he=te==Pt,$e=de==Pt,Pe=te==de;if(Pe&&To(s)){if(!To(c))return!1;q=!0,he=!1}if(Pe&&!he)return B||(B=new Ir),q||Ss(s)?Q$(s,c,m,x,P,B):_I(s,c,te,m,x,P,B);if(!(m&v)){var Be=he&&vt.call(s,"__wrapped__"),Ue=$e&&vt.call(c,"__wrapped__");if(Be||Ue){var Qe=Be?s.value():s,ze=Ue?c.value():c;return B||(B=new Ir),P(Qe,ze,m,x,B)}}return Pe?(B||(B=new Ir),RI(s,c,m,x,P,B)):!1}function iI(s){return jt(s)&&$n(s)==nt}function pm(s,c,m,x){var P=m.length,B=P,q=!x;if(s==null)return!B;for(s=Dt(s);P--;){var Y=m[P];if(q&&Y[2]?Y[1]!==s[Y[0]]:!(Y[0]in s))return!1}for(;++P<B;){Y=m[P];var te=Y[0],de=s[te],he=Y[1];if(q&&Y[2]){if(de===n&&!(te in s))return!1}else{var $e=new Ir;if(x)var Pe=x(de,he,te,s,c,$e);if(!(Pe===n?xl(he,de,v|b,x,$e):Pe))return!1}}return!0}function x$(s){if(!kt(s)||NI(s))return!1;var c=Ui(s)?ik:el;return c.test(ga(s))}function oI(s){return jt(s)&&An(s)==re}function aI(s){return jt(s)&&$n(s)==ye}function sI(s){return jt(s)&&td(s.length)&&!!wt[An(s)]}function w$(s){return typeof s=="function"?s:s==null?Kn:typeof s=="object"?Ge(s)?E$(s[0],s[1]):C$(s):zx(s)}function mm(s){if(!Cl(s))return ck(s);var c=[];for(var m in Dt(s))vt.call(s,m)&&m!="constructor"&&c.push(m);return c}function uI(s){if(!kt(s))return zI(s);var c=Cl(s),m=[];for(var x in s)x=="constructor"&&(c||!vt.call(s,x))||m.push(x);return m}function gm(s,c){return s<c}function D$(s,c){var m=-1,x=Nn(s)?ae(s.length):[];return Do(s,function(P,B,q){x[++m]=c(P,B,q)}),x}function C$(s){var c=Rm(s);return c.length==1&&c[0][2]?ix(c[0][0],c[0][1]):function(m){return m===s||pm(m,s,c)}}function E$(s,c){return Mm(s)&&rx(c)?ix(fi(s),c):function(m){var x=Um(m,s);return x===n&&x===c?zm(m,s):xl(c,x,v|b)}}function Vf(s,c,m,x,P){s!==c&&cm(c,function(B,q){if(P||(P=new Ir),kt(B))lI(s,c,q,m,Vf,x,P);else{var Y=x?x(km(s,q),B,q+"",s,c,P):n;Y===n&&(Y=B),um(s,q,Y)}},jn)}function lI(s,c,m,x,P,B,q){var Y=km(s,m),te=km(c,m),de=q.get(te);if(de){um(s,m,de);return}var he=B?B(Y,te,m+"",s,c,q):n,$e=he===n;if($e){var Pe=Ge(te),Be=!Pe&&To(te),Ue=!Pe&&!Be&&Ss(te);he=te,Pe||Be||Ue?Ge(Y)?he=Y:Kt(Y)?he=Vn(Y):Be?($e=!1,he=B$(te,!0)):Ue?($e=!1,he=L$(te,!0)):he=[]:Sl(te)||va(te)?(he=Y,va(Y)?he=Fx(Y):(!kt(Y)||Ui(Y))&&(he=nx(te))):$e=!1}$e&&(q.set(te,he),P(he,te,x,B,q),q.delete(te)),um(s,m,he)}function S$(s,c){var m=s.length;if(m)return c+=c<0?m:0,Ki(c,m)?s[c]:n}function T$(s,c,m){c.length?c=Ot(c,function(B){return Ge(B)?function(q){return pa(q,B.length===1?B[0]:B)}:B}):c=[Kn];var x=-1;c=Ot(c,er(je()));var P=D$(s,function(B,q,Y){var te=Ot(c,function(de){return de(B)});return{criteria:te,index:++x,value:B}});return I8(P,function(B,q){return wI(B,q,m)})}function cI(s,c){return A$(s,c,function(m,x){return zm(s,x)})}function A$(s,c,m){for(var x=-1,P=c.length,B={};++x<P;){var q=c[x],Y=pa(s,q);m(Y,q)&&wl(B,Eo(q,s),Y)}return B}function fI(s){return function(c){return pa(c,s)}}function vm(s,c,m,x){var P=x?k8:ms,B=-1,q=c.length,Y=s;for(s===c&&(c=Vn(c)),m&&(Y=Ot(s,er(m)));++B<q;)for(var te=0,de=c[B],he=m?m(de):de;(te=P(Y,he,te,x))>-1;)Y!==s&&Pf.call(Y,te,1),Pf.call(s,te,1);return s}function P$(s,c){for(var m=s?c.length:0,x=m-1;m--;){var P=c[m];if(m==x||P!==B){var B=P;Ki(P)?Pf.call(s,P,1):xm(s,P)}}return s}function ym(s,c){return s+Of(l$()*(c-s+1))}function dI(s,c,m,x){for(var P=-1,B=rn(Rf((c-s)/(m||1)),0),q=ae(B);B--;)q[x?B:++P]=s,s+=m;return q}function bm(s,c){var m="";if(!s||c<1||c>_)return m;do c%2&&(m+=s),c=Of(c/2),c&&(s+=s);while(c);return m}function tt(s,c){return Im(ox(s,c,Kn),s+"")}function hI(s){return d$(Ts(s))}function pI(s,c){var m=Ts(s);return Yf(m,ha(c,0,m.length))}function wl(s,c,m,x){if(!kt(s))return s;c=Eo(c,s);for(var P=-1,B=c.length,q=B-1,Y=s;Y!=null&&++P<B;){var te=fi(c[P]),de=m;if(te==="__proto__"||te==="constructor"||te==="prototype")return s;if(P!=q){var he=Y[te];de=x?x(he,te,Y):n,de===n&&(de=kt(he)?he:Ki(c[P+1])?[]:{})}yl(Y,te,de),Y=Y[te]}return s}var _$=Mf?function(s,c){return Mf.set(s,c),s}:Kn,mI=_f?function(s,c){return _f(s,"toString",{configurable:!0,enumerable:!1,value:Wm(c),writable:!0})}:Kn;function gI(s){return Yf(Ts(s))}function hr(s,c,m){var x=-1,P=s.length;c<0&&(c=-c>P?0:P+c),m=m>P?P:m,m<0&&(m+=P),P=c>m?0:m-c>>>0,c>>>=0;for(var B=ae(P);++x<P;)B[x]=s[x+c];return B}function vI(s,c){var m;return Do(s,function(x,P,B){return m=c(x,P,B),!m}),!!m}function Nf(s,c,m){var x=0,P=s==null?x:s.length;if(typeof c=="number"&&c===c&&P<=ie){for(;x<P;){var B=x+P>>>1,q=s[B];q!==null&&!nr(q)&&(m?q<=c:q<c)?x=B+1:P=B}return P}return $m(s,c,Kn,m)}function $m(s,c,m,x){var P=0,B=s==null?0:s.length;if(B===0)return 0;c=m(c);for(var q=c!==c,Y=c===null,te=nr(c),de=c===n;P<B;){var he=Of((P+B)/2),$e=m(s[he]),Pe=$e!==n,Be=$e===null,Ue=$e===$e,Qe=nr($e);if(q)var ze=x||Ue;else de?ze=Ue&&(x||Pe):Y?ze=Ue&&Pe&&(x||!Be):te?ze=Ue&&Pe&&!Be&&(x||!Qe):Be||Qe?ze=!1:ze=x?$e<=c:$e<c;ze?P=he+1:B=he}return bn(B,ne)}function R$(s,c){for(var m=-1,x=s.length,P=0,B=[];++m<x;){var q=s[m],Y=c?c(q):q;if(!m||!Br(Y,te)){var te=Y;B[P++]=q===0?0:q}}return B}function O$(s){return typeof s=="number"?s:nr(s)?U:+s}function tr(s){if(typeof s=="string")return s;if(Ge(s))return Ot(s,tr)+"";if(nr(s))return c$?c$.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function Co(s,c,m){var x=-1,P=bf,B=s.length,q=!0,Y=[],te=Y;if(m)q=!1,P=Yp;else if(B>=i){var de=c?null:AI(s);if(de)return xf(de);q=!1,P=dl,te=new da}else te=c?[]:Y;e:for(;++x<B;){var he=s[x],$e=c?c(he):he;if(he=m||he!==0?he:0,q&&$e===$e){for(var Pe=te.length;Pe--;)if(te[Pe]===$e)continue e;c&&te.push($e),Y.push(he)}else P(te,$e,m)||(te!==Y&&te.push($e),Y.push(he))}return Y}function xm(s,c){return c=Eo(c,s),s=ax(s,c),s==null||delete s[fi(pr(c))]}function M$(s,c,m,x){return wl(s,c,m(pa(s,c)),x)}function jf(s,c,m,x){for(var P=s.length,B=x?P:-1;(x?B--:++B<P)&&c(s[B],B,s););return m?hr(s,x?0:B,x?B+1:P):hr(s,x?B+1:0,x?P:B)}function F$(s,c){var m=s;return m instanceof ot&&(m=m.value()),Zp(c,function(x,P){return P.func.apply(P.thisArg,$o([x],P.args))},m)}function wm(s,c,m){var x=s.length;if(x<2)return x?Co(s[0]):[];for(var P=-1,B=ae(x);++P<x;)for(var q=s[P],Y=-1;++Y<x;)Y!=P&&(B[P]=bl(B[P]||q,s[Y],c,m));return Co(dn(B,1),c,m)}function k$(s,c,m){for(var x=-1,P=s.length,B=c.length,q={};++x<P;){var Y=x<B?c[x]:n;m(q,s[x],Y)}return q}function Dm(s){return Kt(s)?s:[]}function Cm(s){return typeof s=="function"?s:Kn}function Eo(s,c){return Ge(s)?s:Mm(s,c)?[s]:cx(dt(s))}var yI=tt;function So(s,c,m){var x=s.length;return m=m===n?x:m,!c&&m>=x?s:hr(s,c,m)}var I$=ok||function(s){return Jt.clearTimeout(s)};function B$(s,c){if(c)return s.slice();var m=s.length,x=i$?i$(m):new s.constructor(m);return s.copy(x),x}function Em(s){var c=new s.constructor(s.byteLength);return new Tf(c).set(new Tf(s)),c}function bI(s,c){var m=c?Em(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.byteLength)}function $I(s){var c=new s.constructor(s.source,Fr.exec(s));return c.lastIndex=s.lastIndex,c}function xI(s){return vl?Dt(vl.call(s)):{}}function L$(s,c){var m=c?Em(s.buffer):s.buffer;return new s.constructor(m,s.byteOffset,s.length)}function V$(s,c){if(s!==c){var m=s!==n,x=s===null,P=s===s,B=nr(s),q=c!==n,Y=c===null,te=c===c,de=nr(c);if(!Y&&!de&&!B&&s>c||B&&q&&te&&!Y&&!de||x&&q&&te||!m&&te||!P)return 1;if(!x&&!B&&!de&&s<c||de&&m&&P&&!x&&!B||Y&&m&&P||!q&&P||!te)return-1}return 0}function wI(s,c,m){for(var x=-1,P=s.criteria,B=c.criteria,q=P.length,Y=m.length;++x<q;){var te=V$(P[x],B[x]);if(te){if(x>=Y)return te;var de=m[x];return te*(de=="desc"?-1:1)}}return s.index-c.index}function N$(s,c,m,x){for(var P=-1,B=s.length,q=m.length,Y=-1,te=c.length,de=rn(B-q,0),he=ae(te+de),$e=!x;++Y<te;)he[Y]=c[Y];for(;++P<q;)($e||P<B)&&(he[m[P]]=s[P]);for(;de--;)he[Y++]=s[P++];return he}function j$(s,c,m,x){for(var P=-1,B=s.length,q=-1,Y=m.length,te=-1,de=c.length,he=rn(B-Y,0),$e=ae(he+de),Pe=!x;++P<he;)$e[P]=s[P];for(var Be=P;++te<de;)$e[Be+te]=c[te];for(;++q<Y;)(Pe||P<B)&&($e[Be+m[q]]=s[P++]);return $e}function Vn(s,c){var m=-1,x=s.length;for(c||(c=ae(x));++m<x;)c[m]=s[m];return c}function ci(s,c,m,x){var P=!m;m||(m={});for(var B=-1,q=c.length;++B<q;){var Y=c[B],te=x?x(m[Y],s[Y],Y,m,s):n;te===n&&(te=s[Y]),P?Vi(m,Y,te):yl(m,Y,te)}return m}function DI(s,c){return ci(s,Om(s),c)}function CI(s,c){return ci(s,ex(s),c)}function Kf(s,c){return function(m,x){var P=Ge(m)?P8:Wk,B=c?c():{};return P(m,s,je(x,2),B)}}function Ds(s){return tt(function(c,m){var x=-1,P=m.length,B=P>1?m[P-1]:n,q=P>2?m[2]:n;for(B=s.length>3&&typeof B=="function"?(P--,B):n,q&&Pn(m[0],m[1],q)&&(B=P<3?n:B,P=1),c=Dt(c);++x<P;){var Y=m[x];Y&&s(c,Y,x,B)}return c})}function K$(s,c){return function(m,x){if(m==null)return m;if(!Nn(m))return s(m,x);for(var P=m.length,B=c?P:-1,q=Dt(m);(c?B--:++B<P)&&x(q[B],B,q)!==!1;);return m}}function U$(s){return function(c,m,x){for(var P=-1,B=Dt(c),q=x(c),Y=q.length;Y--;){var te=q[s?Y:++P];if(m(B[te],te,B)===!1)break}return c}}function EI(s,c,m){var x=c&D,P=Dl(s);function B(){var q=this&&this!==Jt&&this instanceof B?P:s;return q.apply(x?m:this,arguments)}return B}function z$(s){return function(c){c=dt(c);var m=gs(c)?kr(c):n,x=m?m[0]:c.charAt(0),P=m?So(m,1).join(""):c.slice(1);return x[s]()+P}}function Cs(s){return function(c){return Zp(Kx(jx(c).replace(vf,"")),s,"")}}function Dl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var m=ws(s.prototype),x=s.apply(m,c);return kt(x)?x:m}}function SI(s,c,m){var x=Dl(s);function P(){for(var B=arguments.length,q=ae(B),Y=B,te=Es(P);Y--;)q[Y]=arguments[Y];var de=B<3&&q[0]!==te&&q[B-1]!==te?[]:xo(q,te);if(B-=de.length,B<m)return Y$(s,c,Uf,P.placeholder,n,q,de,n,n,m-B);var he=this&&this!==Jt&&this instanceof P?x:s;return Qn(he,this,q)}return P}function q$(s){return function(c,m,x){var P=Dt(c);if(!Nn(c)){var B=je(m,3);c=sn(c),m=function(Y){return B(P[Y],Y,P)}}var q=s(c,m,x);return q>-1?P[B?c[q]:q]:n}}function W$(s){return ji(function(c){var m=c.length,x=m,P=fr.prototype.thru;for(s&&c.reverse();x--;){var B=c[x];if(typeof B!="function")throw new cr(a);if(P&&!q&&Hf(B)=="wrapper")var q=new fr([],!0)}for(x=q?x:m;++x<m;){B=c[x];var Y=Hf(B),te=Y=="wrapper"?_m(B):n;te&&Fm(te[0])&&te[1]==(M|w|E|S)&&!te[4].length&&te[9]==1?q=q[Hf(te[0])].apply(q,te[3]):q=B.length==1&&Fm(B)?q[Y]():q.thru(B)}return function(){var de=arguments,he=de[0];if(q&&de.length==1&&Ge(he))return q.plant(he).value();for(var $e=0,Pe=m?c[$e].apply(this,de):he;++$e<m;)Pe=c[$e].call(this,Pe);return Pe}})}function Uf(s,c,m,x,P,B,q,Y,te,de){var he=c&M,$e=c&D,Pe=c&$,Be=c&(w|T),Ue=c&z,Qe=Pe?n:Dl(s);function ze(){for(var rt=arguments.length,at=ae(rt),rr=rt;rr--;)at[rr]=arguments[rr];if(Be)var _n=Es(ze),ir=L8(at,_n);if(x&&(at=N$(at,x,P,Be)),B&&(at=j$(at,B,q,Be)),rt-=ir,Be&&rt<de){var Ut=xo(at,_n);return Y$(s,c,Uf,ze.placeholder,m,at,Ut,Y,te,de-rt)}var Lr=$e?m:this,qi=Pe?Lr[s]:s;return rt=at.length,Y?at=WI(at,Y):Ue&&rt>1&&at.reverse(),he&&te<rt&&(at.length=te),this&&this!==Jt&&this instanceof ze&&(qi=Qe||Dl(qi)),qi.apply(Lr,at)}return ze}function H$(s,c){return function(m,x){return eI(m,s,c(x),{})}}function zf(s,c){return function(m,x){var P;if(m===n&&x===n)return c;if(m!==n&&(P=m),x!==n){if(P===n)return x;typeof m=="string"||typeof x=="string"?(m=tr(m),x=tr(x)):(m=O$(m),x=O$(x)),P=s(m,x)}return P}}function Sm(s){return ji(function(c){return c=Ot(c,er(je())),tt(function(m){var x=this;return s(c,function(P){return Qn(P,x,m)})})})}function qf(s,c){c=c===n?" ":tr(c);var m=c.length;if(m<2)return m?bm(c,s):c;var x=bm(c,Rf(s/vs(c)));return gs(c)?So(kr(x),0,s).join(""):x.slice(0,s)}function TI(s,c,m,x){var P=c&D,B=Dl(s);function q(){for(var Y=-1,te=arguments.length,de=-1,he=x.length,$e=ae(he+te),Pe=this&&this!==Jt&&this instanceof q?B:s;++de<he;)$e[de]=x[de];for(;te--;)$e[de++]=arguments[++Y];return Qn(Pe,P?m:this,$e)}return q}function G$(s){return function(c,m,x){return x&&typeof x!="number"&&Pn(c,m,x)&&(m=x=n),c=zi(c),m===n?(m=c,c=0):m=zi(m),x=x===n?c<m?1:-1:zi(x),dI(c,m,x,s)}}function Wf(s){return function(c,m){return typeof c=="string"&&typeof m=="string"||(c=mr(c),m=mr(m)),s(c,m)}}function Y$(s,c,m,x,P,B,q,Y,te,de){var he=c&w,$e=he?q:n,Pe=he?n:q,Be=he?B:n,Ue=he?n:B;c|=he?E:A,c&=~(he?A:E),c&y||(c&=-4);var Qe=[s,c,P,Be,$e,Ue,Pe,Y,te,de],ze=m.apply(n,Qe);return Fm(s)&&sx(ze,Qe),ze.placeholder=x,ux(ze,s,c)}function Tm(s){var c=nn[s];return function(m,x){if(m=mr(m),x=x==null?0:bn(Ze(x),292),x&&u$(m)){var P=(dt(m)+"e").split("e"),B=c(P[0]+"e"+(+P[1]+x));return P=(dt(B)+"e").split("e"),+(P[0]+"e"+(+P[1]-x))}return c(m)}}var AI=$s&&1/xf(new $s([,-0]))[1]==k?function(s){return new $s(s)}:Ym;function Z$(s){return function(c){var m=$n(c);return m==nt?rm(c):m==ye?q8(c):B8(c,s(c))}}function Ni(s,c,m,x,P,B,q,Y){var te=c&$;if(!te&&typeof s!="function")throw new cr(a);var de=x?x.length:0;if(de||(c&=-97,x=P=n),q=q===n?q:rn(Ze(q),0),Y=Y===n?Y:Ze(Y),de-=P?P.length:0,c&A){var he=x,$e=P;x=P=n}var Pe=te?n:_m(s),Be=[s,c,m,x,P,he,$e,B,q,Y];if(Pe&&UI(Be,Pe),s=Be[0],c=Be[1],m=Be[2],x=Be[3],P=Be[4],Y=Be[9]=Be[9]===n?te?0:s.length:rn(Be[9]-de,0),!Y&&c&(w|T)&&(c&=-25),!c||c==D)var Ue=EI(s,c,m);else c==w||c==T?Ue=SI(s,c,Y):(c==E||c==(D|E))&&!P.length?Ue=TI(s,c,m,x):Ue=Uf.apply(n,Be);var Qe=Pe?_$:sx;return ux(Qe(Ue,Be),s,c)}function J$(s,c,m,x){return s===n||Br(s,bs[m])&&!vt.call(x,m)?c:s}function X$(s,c,m,x,P,B){return kt(s)&&kt(c)&&(B.set(c,s),Vf(s,c,n,X$,B),B.delete(c)),s}function PI(s){return Sl(s)?n:s}function Q$(s,c,m,x,P,B){var q=m&v,Y=s.length,te=c.length;if(Y!=te&&!(q&&te>Y))return!1;var de=B.get(s),he=B.get(c);if(de&&he)return de==c&&he==s;var $e=-1,Pe=!0,Be=m&b?new da:n;for(B.set(s,c),B.set(c,s);++$e<Y;){var Ue=s[$e],Qe=c[$e];if(x)var ze=q?x(Qe,Ue,$e,c,s,B):x(Ue,Qe,$e,s,c,B);if(ze!==n){if(ze)continue;Pe=!1;break}if(Be){if(!Jp(c,function(rt,at){if(!dl(Be,at)&&(Ue===rt||P(Ue,rt,m,x,B)))return Be.push(at)})){Pe=!1;break}}else if(!(Ue===Qe||P(Ue,Qe,m,x,B))){Pe=!1;break}}return B.delete(s),B.delete(c),Pe}function _I(s,c,m,x,P,B,q){switch(m){case Zt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case ut:return!(s.byteLength!=c.byteLength||!B(new Tf(s),new Tf(c)));case J:case ve:case Nt:return Br(+s,+c);case me:return s.name==c.name&&s.message==c.message;case re:case Se:return s==c+"";case nt:var Y=rm;case ye:var te=x&v;if(Y||(Y=xf),s.size!=c.size&&!te)return!1;var de=q.get(s);if(de)return de==c;x|=b,q.set(s,c);var he=Q$(Y(s),Y(c),x,P,B,q);return q.delete(s),he;case Ce:if(vl)return vl.call(s)==vl.call(c)}return!1}function RI(s,c,m,x,P,B){var q=m&v,Y=Am(s),te=Y.length,de=Am(c),he=de.length;if(te!=he&&!q)return!1;for(var $e=te;$e--;){var Pe=Y[$e];if(!(q?Pe in c:vt.call(c,Pe)))return!1}var Be=B.get(s),Ue=B.get(c);if(Be&&Ue)return Be==c&&Ue==s;var Qe=!0;B.set(s,c),B.set(c,s);for(var ze=q;++$e<te;){Pe=Y[$e];var rt=s[Pe],at=c[Pe];if(x)var rr=q?x(at,rt,Pe,c,s,B):x(rt,at,Pe,s,c,B);if(!(rr===n?rt===at||P(rt,at,m,x,B):rr)){Qe=!1;break}ze||(ze=Pe=="constructor")}if(Qe&&!ze){var _n=s.constructor,ir=c.constructor;_n!=ir&&"constructor"in s&&"constructor"in c&&!(typeof _n=="function"&&_n instanceof _n&&typeof ir=="function"&&ir instanceof ir)&&(Qe=!1)}return B.delete(s),B.delete(c),Qe}function ji(s){return Im(ox(s,n,px),s+"")}function Am(s){return b$(s,sn,Om)}function Pm(s){return b$(s,jn,ex)}var _m=Mf?function(s){return Mf.get(s)}:Ym;function Hf(s){for(var c=s.name+"",m=xs[c],x=vt.call(xs,c)?m.length:0;x--;){var P=m[x],B=P.func;if(B==null||B==s)return P.name}return c}function Es(s){var c=vt.call(F,"placeholder")?F:s;return c.placeholder}function je(){var s=F.iteratee||Hm;return s=s===Hm?w$:s,arguments.length?s(arguments[0],arguments[1]):s}function Gf(s,c){var m=s.__data__;return VI(c)?m[typeof c=="string"?"string":"hash"]:m.map}function Rm(s){for(var c=sn(s),m=c.length;m--;){var x=c[m],P=s[x];c[m]=[x,P,rx(P)]}return c}function ma(s,c){var m=K8(s,c);return x$(m)?m:n}function OI(s){var c=vt.call(s,ca),m=s[ca];try{s[ca]=n;var x=!0}catch{}var P=Ef.call(s);return x&&(c?s[ca]=m:delete s[ca]),P}var Om=om?function(s){return s==null?[]:(s=Dt(s),bo(om(s),function(c){return a$.call(s,c)}))}:Zm,ex=om?function(s){for(var c=[];s;)$o(c,Om(s)),s=Af(s);return c}:Zm,$n=An;(am&&$n(new am(new ArrayBuffer(1)))!=Zt||pl&&$n(new pl)!=nt||sm&&$n(sm.resolve())!=G||$s&&$n(new $s)!=ye||ml&&$n(new ml)!=Ne)&&($n=function(s){var c=An(s),m=c==Pt?s.constructor:n,x=m?ga(m):"";if(x)switch(x){case pk:return Zt;case mk:return nt;case gk:return G;case vk:return ye;case yk:return Ne}return c});function MI(s,c,m){for(var x=-1,P=m.length;++x<P;){var B=m[x],q=B.size;switch(B.type){case"drop":s+=q;break;case"dropRight":c-=q;break;case"take":c=bn(c,s+q);break;case"takeRight":s=rn(s,c-q);break}}return{start:s,end:c}}function FI(s){var c=s.match(Bn);return c?c[1].split(Gu):[]}function tx(s,c,m){c=Eo(c,s);for(var x=-1,P=c.length,B=!1;++x<P;){var q=fi(c[x]);if(!(B=s!=null&&m(s,q)))break;s=s[q]}return B||++x!=P?B:(P=s==null?0:s.length,!!P&&td(P)&&Ki(q,P)&&(Ge(s)||va(s)))}function kI(s){var c=s.length,m=new s.constructor(c);return c&&typeof s[0]=="string"&&vt.call(s,"index")&&(m.index=s.index,m.input=s.input),m}function nx(s){return typeof s.constructor=="function"&&!Cl(s)?ws(Af(s)):{}}function II(s,c,m){var x=s.constructor;switch(c){case ut:return Em(s);case J:case ve:return new x(+s);case Zt:return bI(s,m);case Xr:case Rr:case mn:case Qr:case ei:case ti:case Or:case Qo:case ni:return L$(s,m);case nt:return new x;case Nt:case Se:return new x(s);case re:return $I(s);case ye:return new x;case Ce:return xI(s)}}function BI(s,c){var m=c.length;if(!m)return s;var x=m-1;return c[x]=(m>1?"& ":"")+c[x],c=c.join(m>2?", ":" "),s.replace(Hu,`{
|
|
66
|
-
/* [wrapped with `+c+`] */
|
|
67
|
-
`)}function LI(s){return Ge(s)||va(s)||!!(s$&&s&&s[s$])}function Ki(s,c){var m=typeof s;return c=c??_,!!c&&(m=="number"||m!="symbol"&&nl.test(s))&&s>-1&&s%1==0&&s<c}function Pn(s,c,m){if(!kt(m))return!1;var x=typeof c;return(x=="number"?Nn(m)&&Ki(c,m.length):x=="string"&&c in m)?Br(m[c],s):!1}function Mm(s,c){if(Ge(s))return!1;var m=typeof s;return m=="number"||m=="symbol"||m=="boolean"||s==null||nr(s)?!0:rs.test(s)||!mo.test(s)||c!=null&&s in Dt(c)}function VI(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Fm(s){var c=Hf(s),m=F[c];if(typeof m!="function"||!(c in ot.prototype))return!1;if(s===m)return!0;var x=_m(m);return!!x&&s===x[0]}function NI(s){return!!r$&&r$ in s}var jI=Df?Ui:Jm;function Cl(s){var c=s&&s.constructor,m=typeof c=="function"&&c.prototype||bs;return s===m}function rx(s){return s===s&&!kt(s)}function ix(s,c){return function(m){return m==null?!1:m[s]===c&&(c!==n||s in Dt(m))}}function KI(s){var c=Qf(s,function(x){return m.size===f&&m.clear(),x}),m=c.cache;return c}function UI(s,c){var m=s[1],x=c[1],P=m|x,B=P<(D|$|M),q=x==M&&m==w||x==M&&m==S&&s[7].length<=c[8]||x==(M|S)&&c[7].length<=c[8]&&m==w;if(!(B||q))return s;x&D&&(s[2]=c[2],P|=m&D?0:y);var Y=c[3];if(Y){var te=s[3];s[3]=te?N$(te,Y,c[4]):Y,s[4]=te?xo(s[3],d):c[4]}return Y=c[5],Y&&(te=s[5],s[5]=te?j$(te,Y,c[6]):Y,s[6]=te?xo(s[5],d):c[6]),Y=c[7],Y&&(s[7]=Y),x&M&&(s[8]=s[8]==null?c[8]:bn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=P,s}function zI(s){var c=[];if(s!=null)for(var m in Dt(s))c.push(m);return c}function qI(s){return Ef.call(s)}function ox(s,c,m){return c=rn(c===n?s.length-1:c,0),function(){for(var x=arguments,P=-1,B=rn(x.length-c,0),q=ae(B);++P<B;)q[P]=x[c+P];P=-1;for(var Y=ae(c+1);++P<c;)Y[P]=x[P];return Y[c]=m(q),Qn(s,this,Y)}}function ax(s,c){return c.length<2?s:pa(s,hr(c,0,-1))}function WI(s,c){for(var m=s.length,x=bn(c.length,m),P=Vn(s);x--;){var B=c[x];s[x]=Ki(B,m)?P[B]:n}return s}function km(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var sx=lx(_$),El=sk||function(s,c){return Jt.setTimeout(s,c)},Im=lx(mI);function ux(s,c,m){var x=c+"";return Im(s,BI(x,HI(FI(x),m)))}function lx(s){var c=0,m=0;return function(){var x=fk(),P=R-(x-m);if(m=x,P>0){if(++c>=Z)return arguments[0]}else c=0;return s.apply(n,arguments)}}function Yf(s,c){var m=-1,x=s.length,P=x-1;for(c=c===n?x:c;++m<c;){var B=ym(m,P),q=s[B];s[B]=s[m],s[m]=q}return s.length=c,s}var cx=KI(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Mr,function(m,x,P,B){c.push(P?B.replace(Zu,"$1"):x||m)}),c});function fi(s){if(typeof s=="string"||nr(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function ga(s){if(s!=null){try{return Cf.call(s)}catch{}try{return s+""}catch{}}return""}function HI(s,c){return lr(ce,function(m){var x="_."+m[0];c&m[1]&&!bf(s,x)&&s.push(x)}),s.sort()}function fx(s){if(s instanceof ot)return s.clone();var c=new fr(s.__wrapped__,s.__chain__);return c.__actions__=Vn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function GI(s,c,m){(m?Pn(s,c,m):c===n)?c=1:c=rn(Ze(c),0);var x=s==null?0:s.length;if(!x||c<1)return[];for(var P=0,B=0,q=ae(Rf(x/c));P<x;)q[B++]=hr(s,P,P+=c);return q}function YI(s){for(var c=-1,m=s==null?0:s.length,x=0,P=[];++c<m;){var B=s[c];B&&(P[x++]=B)}return P}function ZI(){var s=arguments.length;if(!s)return[];for(var c=ae(s-1),m=arguments[0],x=s;x--;)c[x-1]=arguments[x];return $o(Ge(m)?Vn(m):[m],dn(c,1))}var JI=tt(function(s,c){return Kt(s)?bl(s,dn(c,1,Kt,!0)):[]}),XI=tt(function(s,c){var m=pr(c);return Kt(m)&&(m=n),Kt(s)?bl(s,dn(c,1,Kt,!0),je(m,2)):[]}),QI=tt(function(s,c){var m=pr(c);return Kt(m)&&(m=n),Kt(s)?bl(s,dn(c,1,Kt,!0),n,m):[]});function eB(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),hr(s,c<0?0:c,x)):[]}function tB(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),c=x-c,hr(s,0,c<0?0:c)):[]}function nB(s,c){return s&&s.length?jf(s,je(c,3),!0,!0):[]}function rB(s,c){return s&&s.length?jf(s,je(c,3),!0):[]}function iB(s,c,m,x){var P=s==null?0:s.length;return P?(m&&typeof m!="number"&&Pn(s,c,m)&&(m=0,x=P),Zk(s,c,m,x)):[]}function dx(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=m==null?0:Ze(m);return P<0&&(P=rn(x+P,0)),$f(s,je(c,3),P)}function hx(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=x-1;return m!==n&&(P=Ze(m),P=m<0?rn(x+P,0):bn(P,x-1)),$f(s,je(c,3),P,!0)}function px(s){var c=s==null?0:s.length;return c?dn(s,1):[]}function oB(s){var c=s==null?0:s.length;return c?dn(s,k):[]}function aB(s,c){var m=s==null?0:s.length;return m?(c=c===n?1:Ze(c),dn(s,c)):[]}function sB(s){for(var c=-1,m=s==null?0:s.length,x={};++c<m;){var P=s[c];x[P[0]]=P[1]}return x}function mx(s){return s&&s.length?s[0]:n}function uB(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=m==null?0:Ze(m);return P<0&&(P=rn(x+P,0)),ms(s,c,P)}function lB(s){var c=s==null?0:s.length;return c?hr(s,0,-1):[]}var cB=tt(function(s){var c=Ot(s,Dm);return c.length&&c[0]===s[0]?hm(c):[]}),fB=tt(function(s){var c=pr(s),m=Ot(s,Dm);return c===pr(m)?c=n:m.pop(),m.length&&m[0]===s[0]?hm(m,je(c,2)):[]}),dB=tt(function(s){var c=pr(s),m=Ot(s,Dm);return c=typeof c=="function"?c:n,c&&m.pop(),m.length&&m[0]===s[0]?hm(m,n,c):[]});function hB(s,c){return s==null?"":lk.call(s,c)}function pr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function pB(s,c,m){var x=s==null?0:s.length;if(!x)return-1;var P=x;return m!==n&&(P=Ze(m),P=P<0?rn(x+P,0):bn(P,x-1)),c===c?H8(s,c,P):$f(s,Y3,P,!0)}function mB(s,c){return s&&s.length?S$(s,Ze(c)):n}var gB=tt(gx);function gx(s,c){return s&&s.length&&c&&c.length?vm(s,c):s}function vB(s,c,m){return s&&s.length&&c&&c.length?vm(s,c,je(m,2)):s}function yB(s,c,m){return s&&s.length&&c&&c.length?vm(s,c,n,m):s}var bB=ji(function(s,c){var m=s==null?0:s.length,x=lm(s,c);return P$(s,Ot(c,function(P){return Ki(P,m)?+P:P}).sort(V$)),x});function $B(s,c){var m=[];if(!(s&&s.length))return m;var x=-1,P=[],B=s.length;for(c=je(c,3);++x<B;){var q=s[x];c(q,x,s)&&(m.push(q),P.push(x))}return P$(s,P),m}function Bm(s){return s==null?s:hk.call(s)}function xB(s,c,m){var x=s==null?0:s.length;return x?(m&&typeof m!="number"&&Pn(s,c,m)?(c=0,m=x):(c=c==null?0:Ze(c),m=m===n?x:Ze(m)),hr(s,c,m)):[]}function wB(s,c){return Nf(s,c)}function DB(s,c,m){return $m(s,c,je(m,2))}function CB(s,c){var m=s==null?0:s.length;if(m){var x=Nf(s,c);if(x<m&&Br(s[x],c))return x}return-1}function EB(s,c){return Nf(s,c,!0)}function SB(s,c,m){return $m(s,c,je(m,2),!0)}function TB(s,c){var m=s==null?0:s.length;if(m){var x=Nf(s,c,!0)-1;if(Br(s[x],c))return x}return-1}function AB(s){return s&&s.length?R$(s):[]}function PB(s,c){return s&&s.length?R$(s,je(c,2)):[]}function _B(s){var c=s==null?0:s.length;return c?hr(s,1,c):[]}function RB(s,c,m){return s&&s.length?(c=m||c===n?1:Ze(c),hr(s,0,c<0?0:c)):[]}function OB(s,c,m){var x=s==null?0:s.length;return x?(c=m||c===n?1:Ze(c),c=x-c,hr(s,c<0?0:c,x)):[]}function MB(s,c){return s&&s.length?jf(s,je(c,3),!1,!0):[]}function FB(s,c){return s&&s.length?jf(s,je(c,3)):[]}var kB=tt(function(s){return Co(dn(s,1,Kt,!0))}),IB=tt(function(s){var c=pr(s);return Kt(c)&&(c=n),Co(dn(s,1,Kt,!0),je(c,2))}),BB=tt(function(s){var c=pr(s);return c=typeof c=="function"?c:n,Co(dn(s,1,Kt,!0),n,c)});function LB(s){return s&&s.length?Co(s):[]}function VB(s,c){return s&&s.length?Co(s,je(c,2)):[]}function NB(s,c){return c=typeof c=="function"?c:n,s&&s.length?Co(s,n,c):[]}function Lm(s){if(!(s&&s.length))return[];var c=0;return s=bo(s,function(m){if(Kt(m))return c=rn(m.length,c),!0}),tm(c,function(m){return Ot(s,Xp(m))})}function vx(s,c){if(!(s&&s.length))return[];var m=Lm(s);return c==null?m:Ot(m,function(x){return Qn(c,n,x)})}var jB=tt(function(s,c){return Kt(s)?bl(s,c):[]}),KB=tt(function(s){return wm(bo(s,Kt))}),UB=tt(function(s){var c=pr(s);return Kt(c)&&(c=n),wm(bo(s,Kt),je(c,2))}),zB=tt(function(s){var c=pr(s);return c=typeof c=="function"?c:n,wm(bo(s,Kt),n,c)}),qB=tt(Lm);function WB(s,c){return k$(s||[],c||[],yl)}function HB(s,c){return k$(s||[],c||[],wl)}var GB=tt(function(s){var c=s.length,m=c>1?s[c-1]:n;return m=typeof m=="function"?(s.pop(),m):n,vx(s,m)});function yx(s){var c=F(s);return c.__chain__=!0,c}function YB(s,c){return c(s),s}function Zf(s,c){return c(s)}var ZB=ji(function(s){var c=s.length,m=c?s[0]:0,x=this.__wrapped__,P=function(B){return lm(B,s)};return c>1||this.__actions__.length||!(x instanceof ot)||!Ki(m)?this.thru(P):(x=x.slice(m,+m+(c?1:0)),x.__actions__.push({func:Zf,args:[P],thisArg:n}),new fr(x,this.__chain__).thru(function(B){return c&&!B.length&&B.push(n),B}))});function JB(){return yx(this)}function XB(){return new fr(this.value(),this.__chain__)}function QB(){this.__values__===n&&(this.__values__=Ox(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function eL(){return this}function tL(s){for(var c,m=this;m instanceof kf;){var x=fx(m);x.__index__=0,x.__values__=n,c?P.__wrapped__=x:c=x;var P=x;m=m.__wrapped__}return P.__wrapped__=s,c}function nL(){var s=this.__wrapped__;if(s instanceof ot){var c=s;return this.__actions__.length&&(c=new ot(this)),c=c.reverse(),c.__actions__.push({func:Zf,args:[Bm],thisArg:n}),new fr(c,this.__chain__)}return this.thru(Bm)}function rL(){return F$(this.__wrapped__,this.__actions__)}var iL=Kf(function(s,c,m){vt.call(s,m)?++s[m]:Vi(s,m,1)});function oL(s,c,m){var x=Ge(s)?H3:Yk;return m&&Pn(s,c,m)&&(c=n),x(s,je(c,3))}function aL(s,c){var m=Ge(s)?bo:v$;return m(s,je(c,3))}var sL=q$(dx),uL=q$(hx);function lL(s,c){return dn(Jf(s,c),1)}function cL(s,c){return dn(Jf(s,c),k)}function fL(s,c,m){return m=m===n?1:Ze(m),dn(Jf(s,c),m)}function bx(s,c){var m=Ge(s)?lr:Do;return m(s,je(c,3))}function $x(s,c){var m=Ge(s)?_8:g$;return m(s,je(c,3))}var dL=Kf(function(s,c,m){vt.call(s,m)?s[m].push(c):Vi(s,m,[c])});function hL(s,c,m,x){s=Nn(s)?s:Ts(s),m=m&&!x?Ze(m):0;var P=s.length;return m<0&&(m=rn(P+m,0)),nd(s)?m<=P&&s.indexOf(c,m)>-1:!!P&&ms(s,c,m)>-1}var pL=tt(function(s,c,m){var x=-1,P=typeof c=="function",B=Nn(s)?ae(s.length):[];return Do(s,function(q){B[++x]=P?Qn(c,q,m):$l(q,c,m)}),B}),mL=Kf(function(s,c,m){Vi(s,m,c)});function Jf(s,c){var m=Ge(s)?Ot:D$;return m(s,je(c,3))}function gL(s,c,m,x){return s==null?[]:(Ge(c)||(c=c==null?[]:[c]),m=x?n:m,Ge(m)||(m=m==null?[]:[m]),T$(s,c,m))}var vL=Kf(function(s,c,m){s[m?0:1].push(c)},function(){return[[],[]]});function yL(s,c,m){var x=Ge(s)?Zp:J3,P=arguments.length<3;return x(s,je(c,4),m,P,Do)}function bL(s,c,m){var x=Ge(s)?R8:J3,P=arguments.length<3;return x(s,je(c,4),m,P,g$)}function $L(s,c){var m=Ge(s)?bo:v$;return m(s,ed(je(c,3)))}function xL(s){var c=Ge(s)?d$:hI;return c(s)}function wL(s,c,m){(m?Pn(s,c,m):c===n)?c=1:c=Ze(c);var x=Ge(s)?zk:pI;return x(s,c)}function DL(s){var c=Ge(s)?qk:gI;return c(s)}function CL(s){if(s==null)return 0;if(Nn(s))return nd(s)?vs(s):s.length;var c=$n(s);return c==nt||c==ye?s.size:mm(s).length}function EL(s,c,m){var x=Ge(s)?Jp:vI;return m&&Pn(s,c,m)&&(c=n),x(s,je(c,3))}var SL=tt(function(s,c){if(s==null)return[];var m=c.length;return m>1&&Pn(s,c[0],c[1])?c=[]:m>2&&Pn(c[0],c[1],c[2])&&(c=[c[0]]),T$(s,dn(c,1),[])}),Xf=ak||function(){return Jt.Date.now()};function TL(s,c){if(typeof c!="function")throw new cr(a);return s=Ze(s),function(){if(--s<1)return c.apply(this,arguments)}}function xx(s,c,m){return c=m?n:c,c=s&&c==null?s.length:c,Ni(s,M,n,n,n,n,c)}function wx(s,c){var m;if(typeof c!="function")throw new cr(a);return s=Ze(s),function(){return--s>0&&(m=c.apply(this,arguments)),s<=1&&(c=n),m}}var Vm=tt(function(s,c,m){var x=D;if(m.length){var P=xo(m,Es(Vm));x|=E}return Ni(s,x,c,m,P)}),Dx=tt(function(s,c,m){var x=D|$;if(m.length){var P=xo(m,Es(Dx));x|=E}return Ni(c,x,s,m,P)});function Cx(s,c,m){c=m?n:c;var x=Ni(s,w,n,n,n,n,n,c);return x.placeholder=Cx.placeholder,x}function Ex(s,c,m){c=m?n:c;var x=Ni(s,T,n,n,n,n,n,c);return x.placeholder=Ex.placeholder,x}function Sx(s,c,m){var x,P,B,q,Y,te,de=0,he=!1,$e=!1,Pe=!0;if(typeof s!="function")throw new cr(a);c=mr(c)||0,kt(m)&&(he=!!m.leading,$e="maxWait"in m,B=$e?rn(mr(m.maxWait)||0,c):B,Pe="trailing"in m?!!m.trailing:Pe);function Be(Ut){var Lr=x,qi=P;return x=P=n,de=Ut,q=s.apply(qi,Lr),q}function Ue(Ut){return de=Ut,Y=El(rt,c),he?Be(Ut):q}function Qe(Ut){var Lr=Ut-te,qi=Ut-de,qx=c-Lr;return $e?bn(qx,B-qi):qx}function ze(Ut){var Lr=Ut-te,qi=Ut-de;return te===n||Lr>=c||Lr<0||$e&&qi>=B}function rt(){var Ut=Xf();if(ze(Ut))return at(Ut);Y=El(rt,Qe(Ut))}function at(Ut){return Y=n,Pe&&x?Be(Ut):(x=P=n,q)}function rr(){Y!==n&&I$(Y),de=0,x=te=P=Y=n}function _n(){return Y===n?q:at(Xf())}function ir(){var Ut=Xf(),Lr=ze(Ut);if(x=arguments,P=this,te=Ut,Lr){if(Y===n)return Ue(te);if($e)return I$(Y),Y=El(rt,c),Be(te)}return Y===n&&(Y=El(rt,c)),q}return ir.cancel=rr,ir.flush=_n,ir}var AL=tt(function(s,c){return m$(s,1,c)}),PL=tt(function(s,c,m){return m$(s,mr(c)||0,m)});function _L(s){return Ni(s,z)}function Qf(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new cr(a);var m=function(){var x=arguments,P=c?c.apply(this,x):x[0],B=m.cache;if(B.has(P))return B.get(P);var q=s.apply(this,x);return m.cache=B.set(P,q)||B,q};return m.cache=new(Qf.Cache||Li),m}Qf.Cache=Li;function ed(s){if(typeof s!="function")throw new cr(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function RL(s){return wx(2,s)}var OL=yI(function(s,c){c=c.length==1&&Ge(c[0])?Ot(c[0],er(je())):Ot(dn(c,1),er(je()));var m=c.length;return tt(function(x){for(var P=-1,B=bn(x.length,m);++P<B;)x[P]=c[P].call(this,x[P]);return Qn(s,this,x)})}),Nm=tt(function(s,c){var m=xo(c,Es(Nm));return Ni(s,E,n,c,m)}),Tx=tt(function(s,c){var m=xo(c,Es(Tx));return Ni(s,A,n,c,m)}),ML=ji(function(s,c){return Ni(s,S,n,n,n,c)});function FL(s,c){if(typeof s!="function")throw new cr(a);return c=c===n?c:Ze(c),tt(s,c)}function kL(s,c){if(typeof s!="function")throw new cr(a);return c=c==null?0:rn(Ze(c),0),tt(function(m){var x=m[c],P=So(m,0,c);return x&&$o(P,x),Qn(s,this,P)})}function IL(s,c,m){var x=!0,P=!0;if(typeof s!="function")throw new cr(a);return kt(m)&&(x="leading"in m?!!m.leading:x,P="trailing"in m?!!m.trailing:P),Sx(s,c,{leading:x,maxWait:c,trailing:P})}function BL(s){return xx(s,1)}function LL(s,c){return Nm(Cm(c),s)}function VL(){if(!arguments.length)return[];var s=arguments[0];return Ge(s)?s:[s]}function NL(s){return dr(s,g)}function jL(s,c){return c=typeof c=="function"?c:n,dr(s,g,c)}function KL(s){return dr(s,h|g)}function UL(s,c){return c=typeof c=="function"?c:n,dr(s,h|g,c)}function zL(s,c){return c==null||p$(s,c,sn(c))}function Br(s,c){return s===c||s!==s&&c!==c}var qL=Wf(dm),WL=Wf(function(s,c){return s>=c}),va=$$(function(){return arguments}())?$$:function(s){return jt(s)&&vt.call(s,"callee")&&!a$.call(s,"callee")},Ge=ae.isArray,HL=la?er(la):tI;function Nn(s){return s!=null&&td(s.length)&&!Ui(s)}function Kt(s){return jt(s)&&Nn(s)}function GL(s){return s===!0||s===!1||jt(s)&&An(s)==J}var To=uk||Jm,YL=K3?er(K3):nI;function ZL(s){return jt(s)&&s.nodeType===1&&!Sl(s)}function JL(s){if(s==null)return!0;if(Nn(s)&&(Ge(s)||typeof s=="string"||typeof s.splice=="function"||To(s)||Ss(s)||va(s)))return!s.length;var c=$n(s);if(c==nt||c==ye)return!s.size;if(Cl(s))return!mm(s).length;for(var m in s)if(vt.call(s,m))return!1;return!0}function XL(s,c){return xl(s,c)}function QL(s,c,m){m=typeof m=="function"?m:n;var x=m?m(s,c):n;return x===n?xl(s,c,n,m):!!x}function jm(s){if(!jt(s))return!1;var c=An(s);return c==me||c==we||typeof s.message=="string"&&typeof s.name=="string"&&!Sl(s)}function eV(s){return typeof s=="number"&&u$(s)}function Ui(s){if(!kt(s))return!1;var c=An(s);return c==ue||c==Le||c==Ee||c==Q}function Ax(s){return typeof s=="number"&&s==Ze(s)}function td(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=_}function kt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function jt(s){return s!=null&&typeof s=="object"}var Px=U3?er(U3):iI;function tV(s,c){return s===c||pm(s,c,Rm(c))}function nV(s,c,m){return m=typeof m=="function"?m:n,pm(s,c,Rm(c),m)}function rV(s){return _x(s)&&s!=+s}function iV(s){if(jI(s))throw new He(o);return x$(s)}function oV(s){return s===null}function aV(s){return s==null}function _x(s){return typeof s=="number"||jt(s)&&An(s)==Nt}function Sl(s){if(!jt(s)||An(s)!=Pt)return!1;var c=Af(s);if(c===null)return!0;var m=vt.call(c,"constructor")&&c.constructor;return typeof m=="function"&&m instanceof m&&Cf.call(m)==nk}var Km=z3?er(z3):oI;function sV(s){return Ax(s)&&s>=-9007199254740991&&s<=_}var Rx=q3?er(q3):aI;function nd(s){return typeof s=="string"||!Ge(s)&&jt(s)&&An(s)==Se}function nr(s){return typeof s=="symbol"||jt(s)&&An(s)==Ce}var Ss=W3?er(W3):sI;function uV(s){return s===n}function lV(s){return jt(s)&&$n(s)==Ne}function cV(s){return jt(s)&&An(s)==_t}var fV=Wf(gm),dV=Wf(function(s,c){return s<=c});function Ox(s){if(!s)return[];if(Nn(s))return nd(s)?kr(s):Vn(s);if(hl&&s[hl])return z8(s[hl]());var c=$n(s),m=c==nt?rm:c==ye?xf:Ts;return m(s)}function zi(s){if(!s)return s===0?s:0;if(s=mr(s),s===k||s===-1/0){var c=s<0?-1:1;return c*H}return s===s?s:0}function Ze(s){var c=zi(s),m=c%1;return c===c?m?c-m:c:0}function Mx(s){return s?ha(Ze(s),0,N):0}function mr(s){if(typeof s=="number")return s;if(nr(s))return U;if(kt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=kt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=X3(s);var m=Qu.test(s);return m||tl.test(s)?gn(s.slice(2),m?2:8):Xu.test(s)?U:+s}function Fx(s){return ci(s,jn(s))}function hV(s){return s?ha(Ze(s),-9007199254740991,_):s===0?s:0}function dt(s){return s==null?"":tr(s)}var pV=Ds(function(s,c){if(Cl(c)||Nn(c)){ci(c,sn(c),s);return}for(var m in c)vt.call(c,m)&&yl(s,m,c[m])}),kx=Ds(function(s,c){ci(c,jn(c),s)}),rd=Ds(function(s,c,m,x){ci(c,jn(c),s,x)}),mV=Ds(function(s,c,m,x){ci(c,sn(c),s,x)}),gV=ji(lm);function vV(s,c){var m=ws(s);return c==null?m:h$(m,c)}var yV=tt(function(s,c){s=Dt(s);var m=-1,x=c.length,P=x>2?c[2]:n;for(P&&Pn(c[0],c[1],P)&&(x=1);++m<x;)for(var B=c[m],q=jn(B),Y=-1,te=q.length;++Y<te;){var de=q[Y],he=s[de];(he===n||Br(he,bs[de])&&!vt.call(s,de))&&(s[de]=B[de])}return s}),bV=tt(function(s){return s.push(n,X$),Qn(Ix,n,s)});function $V(s,c){return G3(s,je(c,3),li)}function xV(s,c){return G3(s,je(c,3),fm)}function wV(s,c){return s==null?s:cm(s,je(c,3),jn)}function DV(s,c){return s==null?s:y$(s,je(c,3),jn)}function CV(s,c){return s&&li(s,je(c,3))}function EV(s,c){return s&&fm(s,je(c,3))}function SV(s){return s==null?[]:Lf(s,sn(s))}function TV(s){return s==null?[]:Lf(s,jn(s))}function Um(s,c,m){var x=s==null?n:pa(s,c);return x===n?m:x}function AV(s,c){return s!=null&&tx(s,c,Jk)}function zm(s,c){return s!=null&&tx(s,c,Xk)}var PV=H$(function(s,c,m){c!=null&&typeof c.toString!="function"&&(c=Ef.call(c)),s[c]=m},Wm(Kn)),_V=H$(function(s,c,m){c!=null&&typeof c.toString!="function"&&(c=Ef.call(c)),vt.call(s,c)?s[c].push(m):s[c]=[m]},je),RV=tt($l);function sn(s){return Nn(s)?f$(s):mm(s)}function jn(s){return Nn(s)?f$(s,!0):uI(s)}function OV(s,c){var m={};return c=je(c,3),li(s,function(x,P,B){Vi(m,c(x,P,B),x)}),m}function MV(s,c){var m={};return c=je(c,3),li(s,function(x,P,B){Vi(m,P,c(x,P,B))}),m}var FV=Ds(function(s,c,m){Vf(s,c,m)}),Ix=Ds(function(s,c,m,x){Vf(s,c,m,x)}),kV=ji(function(s,c){var m={};if(s==null)return m;var x=!1;c=Ot(c,function(B){return B=Eo(B,s),x||(x=B.length>1),B}),ci(s,Pm(s),m),x&&(m=dr(m,h|p|g,PI));for(var P=c.length;P--;)xm(m,c[P]);return m});function IV(s,c){return Bx(s,ed(je(c)))}var BV=ji(function(s,c){return s==null?{}:cI(s,c)});function Bx(s,c){if(s==null)return{};var m=Ot(Pm(s),function(x){return[x]});return c=je(c),A$(s,m,function(x,P){return c(x,P[0])})}function LV(s,c,m){c=Eo(c,s);var x=-1,P=c.length;for(P||(P=1,s=n);++x<P;){var B=s==null?n:s[fi(c[x])];B===n&&(x=P,B=m),s=Ui(B)?B.call(s):B}return s}function VV(s,c,m){return s==null?s:wl(s,c,m)}function NV(s,c,m,x){return x=typeof x=="function"?x:n,s==null?s:wl(s,c,m,x)}var Lx=Z$(sn),Vx=Z$(jn);function jV(s,c,m){var x=Ge(s),P=x||To(s)||Ss(s);if(c=je(c,4),m==null){var B=s&&s.constructor;P?m=x?new B:[]:kt(s)?m=Ui(B)?ws(Af(s)):{}:m={}}return(P?lr:li)(s,function(q,Y,te){return c(m,q,Y,te)}),m}function KV(s,c){return s==null?!0:xm(s,c)}function UV(s,c,m){return s==null?s:M$(s,c,Cm(m))}function zV(s,c,m,x){return x=typeof x=="function"?x:n,s==null?s:M$(s,c,Cm(m),x)}function Ts(s){return s==null?[]:nm(s,sn(s))}function qV(s){return s==null?[]:nm(s,jn(s))}function WV(s,c,m){return m===n&&(m=c,c=n),m!==n&&(m=mr(m),m=m===m?m:0),c!==n&&(c=mr(c),c=c===c?c:0),ha(mr(s),c,m)}function HV(s,c,m){return c=zi(c),m===n?(m=c,c=0):m=zi(m),s=mr(s),Qk(s,c,m)}function GV(s,c,m){if(m&&typeof m!="boolean"&&Pn(s,c,m)&&(c=m=n),m===n&&(typeof c=="boolean"?(m=c,c=n):typeof s=="boolean"&&(m=s,s=n)),s===n&&c===n?(s=0,c=1):(s=zi(s),c===n?(c=s,s=0):c=zi(c)),s>c){var x=s;s=c,c=x}if(m||s%1||c%1){var P=l$();return bn(s+P*(c-s+tn("1e-"+((P+"").length-1))),c)}return ym(s,c)}var YV=Cs(function(s,c,m){return c=c.toLowerCase(),s+(m?Nx(c):c)});function Nx(s){return qm(dt(s).toLowerCase())}function jx(s){return s=dt(s),s&&s.replace(ii,V8).replace(Wp,"")}function ZV(s,c,m){s=dt(s),c=tr(c);var x=s.length;m=m===n?x:ha(Ze(m),0,x);var P=m;return m-=c.length,m>=0&&s.slice(m,P)==c}function JV(s){return s=dt(s),s&&ta.test(s)?s.replace(ar,N8):s}function XV(s){return s=dt(s),s&&qu.test(s)?s.replace(na,"\\$&"):s}var QV=Cs(function(s,c,m){return s+(m?"-":"")+c.toLowerCase()}),eN=Cs(function(s,c,m){return s+(m?" ":"")+c.toLowerCase()}),tN=z$("toLowerCase");function nN(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;if(!c||x>=c)return s;var P=(c-x)/2;return qf(Of(P),m)+s+qf(Rf(P),m)}function rN(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;return c&&x<c?s+qf(c-x,m):s}function iN(s,c,m){s=dt(s),c=Ze(c);var x=c?vs(s):0;return c&&x<c?qf(c-x,m)+s:s}function oN(s,c,m){return m||c==null?c=0:c&&(c=+c),dk(dt(s).replace(ra,""),c||0)}function aN(s,c,m){return(m?Pn(s,c,m):c===n)?c=1:c=Ze(c),bm(dt(s),c)}function sN(){var s=arguments,c=dt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var uN=Cs(function(s,c,m){return s+(m?"_":"")+c.toLowerCase()});function lN(s,c,m){return m&&typeof m!="number"&&Pn(s,c,m)&&(c=m=n),m=m===n?N:m>>>0,m?(s=dt(s),s&&(typeof c=="string"||c!=null&&!Km(c))&&(c=tr(c),!c&&gs(s))?So(kr(s),0,m):s.split(c,m)):[]}var cN=Cs(function(s,c,m){return s+(m?" ":"")+qm(c)});function fN(s,c,m){return s=dt(s),m=m==null?0:ha(Ze(m),0,s.length),c=tr(c),s.slice(m,m+c.length)==c}function dN(s,c,m){var x=F.templateSettings;m&&Pn(s,c,m)&&(c=n),s=dt(s),c=rd({},c,x,J$);var P=rd({},c.imports,x.imports,J$),B=sn(P),q=nm(P,B),Y,te,de=0,he=c.interpolate||oi,$e="__p += '",Pe=im((c.escape||oi).source+"|"+he.source+"|"+(he===ns?Ju:oi).source+"|"+(c.evaluate||oi).source+"|$","g"),Be="//# sourceURL="+(vt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cl+"]")+`
|
|
68
|
-
`;s.replace(Pe,function(ze,rt,at,rr,_n,ir){return at||(at=rr),$e+=s.slice(de,ir).replace(is,j8),rt&&(Y=!0,$e+=`' +
|
|
69
|
-
__e(`+rt+`) +
|
|
70
|
-
'`),_n&&(te=!0,$e+=`';
|
|
71
|
-
`+_n+`;
|
|
72
|
-
__p += '`),at&&($e+=`' +
|
|
73
|
-
((__t = (`+at+`)) == null ? '' : __t) +
|
|
74
|
-
'`),de=ir+ze.length,ze}),$e+=`';
|
|
75
|
-
`;var Ue=vt.call(c,"variable")&&c.variable;if(!Ue)$e=`with (obj) {
|
|
76
|
-
`+$e+`
|
|
77
|
-
}
|
|
78
|
-
`;else if(Yu.test(Ue))throw new He(u);$e=(te?$e.replace(Mi,""):$e).replace(ri,"$1").replace(po,"$1;"),$e="function("+(Ue||"obj")+`) {
|
|
79
|
-
`+(Ue?"":`obj || (obj = {});
|
|
80
|
-
`)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
|
|
81
|
-
function print() { __p += __j.call(arguments, '') }
|
|
82
|
-
`:`;
|
|
83
|
-
`)+$e+`return __p
|
|
84
|
-
}`;var Qe=Ux(function(){return lt(B,Be+"return "+$e).apply(n,q)});if(Qe.source=$e,jm(Qe))throw Qe;return Qe}function hN(s){return dt(s).toLowerCase()}function pN(s){return dt(s).toUpperCase()}function mN(s,c,m){if(s=dt(s),s&&(m||c===n))return X3(s);if(!s||!(c=tr(c)))return s;var x=kr(s),P=kr(c),B=Q3(x,P),q=e$(x,P)+1;return So(x,B,q).join("")}function gN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.slice(0,n$(s)+1);if(!s||!(c=tr(c)))return s;var x=kr(s),P=e$(x,kr(c))+1;return So(x,0,P).join("")}function vN(s,c,m){if(s=dt(s),s&&(m||c===n))return s.replace(ra,"");if(!s||!(c=tr(c)))return s;var x=kr(s),P=Q3(x,kr(c));return So(x,P).join("")}function yN(s,c){var m=j,x=O;if(kt(c)){var P="separator"in c?c.separator:P;m="length"in c?Ze(c.length):m,x="omission"in c?tr(c.omission):x}s=dt(s);var B=s.length;if(gs(s)){var q=kr(s);B=q.length}if(m>=B)return s;var Y=m-vs(x);if(Y<1)return x;var te=q?So(q,0,Y).join(""):s.slice(0,Y);if(P===n)return te+x;if(q&&(Y+=te.length-Y),Km(P)){if(s.slice(Y).search(P)){var de,he=te;for(P.global||(P=im(P.source,dt(Fr.exec(P))+"g")),P.lastIndex=0;de=P.exec(he);)var $e=de.index;te=te.slice(0,$e===n?Y:$e)}}else if(s.indexOf(tr(P),Y)!=Y){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+x}function bN(s){return s=dt(s),s&&ea.test(s)?s.replace(Fi,G8):s}var $N=Cs(function(s,c,m){return s+(m?" ":"")+c.toUpperCase()}),qm=z$("toUpperCase");function Kx(s,c,m){return s=dt(s),c=m?n:c,c===n?U8(s)?J8(s):F8(s):s.match(c)||[]}var Ux=tt(function(s,c){try{return Qn(s,n,c)}catch(m){return jm(m)?m:new He(m)}}),xN=ji(function(s,c){return lr(c,function(m){m=fi(m),Vi(s,m,Vm(s[m],s))}),s});function wN(s){var c=s==null?0:s.length,m=je();return s=c?Ot(s,function(x){if(typeof x[1]!="function")throw new cr(a);return[m(x[0]),x[1]]}):[],tt(function(x){for(var P=-1;++P<c;){var B=s[P];if(Qn(B[0],this,x))return Qn(B[1],this,x)}})}function DN(s){return Gk(dr(s,h))}function Wm(s){return function(){return s}}function CN(s,c){return s==null||s!==s?c:s}var EN=W$(),SN=W$(!0);function Kn(s){return s}function Hm(s){return w$(typeof s=="function"?s:dr(s,h))}function TN(s){return C$(dr(s,h))}function AN(s,c){return E$(s,dr(c,h))}var PN=tt(function(s,c){return function(m){return $l(m,s,c)}}),_N=tt(function(s,c){return function(m){return $l(s,m,c)}});function Gm(s,c,m){var x=sn(c),P=Lf(c,x);m==null&&!(kt(c)&&(P.length||!x.length))&&(m=c,c=s,s=this,P=Lf(c,sn(c)));var B=!(kt(m)&&"chain"in m)||!!m.chain,q=Ui(s);return lr(P,function(Y){var te=c[Y];s[Y]=te,q&&(s.prototype[Y]=function(){var de=this.__chain__;if(B||de){var he=s(this.__wrapped__),$e=he.__actions__=Vn(this.__actions__);return $e.push({func:te,args:arguments,thisArg:s}),he.__chain__=de,he}return te.apply(s,$o([this.value()],arguments))})}),s}function RN(){return Jt._===this&&(Jt._=rk),this}function Ym(){}function ON(s){return s=Ze(s),tt(function(c){return S$(c,s)})}var MN=Sm(Ot),FN=Sm(H3),kN=Sm(Jp);function zx(s){return Mm(s)?Xp(fi(s)):fI(s)}function IN(s){return function(c){return s==null?n:pa(s,c)}}var BN=G$(),LN=G$(!0);function Zm(){return[]}function Jm(){return!1}function VN(){return{}}function NN(){return""}function jN(){return!0}function KN(s,c){if(s=Ze(s),s<1||s>_)return[];var m=N,x=bn(s,N);c=je(c),s-=N;for(var P=tm(x,c);++m<s;)c(m);return P}function UN(s){return Ge(s)?Ot(s,fi):nr(s)?[s]:Vn(cx(dt(s)))}function zN(s){var c=++tk;return dt(s)+c}var qN=zf(function(s,c){return s+c},0),WN=Tm("ceil"),HN=zf(function(s,c){return s/c},1),GN=Tm("floor");function YN(s){return s&&s.length?Bf(s,Kn,dm):n}function ZN(s,c){return s&&s.length?Bf(s,je(c,2),dm):n}function JN(s){return Z3(s,Kn)}function XN(s,c){return Z3(s,je(c,2))}function QN(s){return s&&s.length?Bf(s,Kn,gm):n}function ej(s,c){return s&&s.length?Bf(s,je(c,2),gm):n}var tj=zf(function(s,c){return s*c},1),nj=Tm("round"),rj=zf(function(s,c){return s-c},0);function ij(s){return s&&s.length?em(s,Kn):0}function oj(s,c){return s&&s.length?em(s,je(c,2)):0}return F.after=TL,F.ary=xx,F.assign=pV,F.assignIn=kx,F.assignInWith=rd,F.assignWith=mV,F.at=gV,F.before=wx,F.bind=Vm,F.bindAll=xN,F.bindKey=Dx,F.castArray=VL,F.chain=yx,F.chunk=GI,F.compact=YI,F.concat=ZI,F.cond=wN,F.conforms=DN,F.constant=Wm,F.countBy=iL,F.create=vV,F.curry=Cx,F.curryRight=Ex,F.debounce=Sx,F.defaults=yV,F.defaultsDeep=bV,F.defer=AL,F.delay=PL,F.difference=JI,F.differenceBy=XI,F.differenceWith=QI,F.drop=eB,F.dropRight=tB,F.dropRightWhile=nB,F.dropWhile=rB,F.fill=iB,F.filter=aL,F.flatMap=lL,F.flatMapDeep=cL,F.flatMapDepth=fL,F.flatten=px,F.flattenDeep=oB,F.flattenDepth=aB,F.flip=_L,F.flow=EN,F.flowRight=SN,F.fromPairs=sB,F.functions=SV,F.functionsIn=TV,F.groupBy=dL,F.initial=lB,F.intersection=cB,F.intersectionBy=fB,F.intersectionWith=dB,F.invert=PV,F.invertBy=_V,F.invokeMap=pL,F.iteratee=Hm,F.keyBy=mL,F.keys=sn,F.keysIn=jn,F.map=Jf,F.mapKeys=OV,F.mapValues=MV,F.matches=TN,F.matchesProperty=AN,F.memoize=Qf,F.merge=FV,F.mergeWith=Ix,F.method=PN,F.methodOf=_N,F.mixin=Gm,F.negate=ed,F.nthArg=ON,F.omit=kV,F.omitBy=IV,F.once=RL,F.orderBy=gL,F.over=MN,F.overArgs=OL,F.overEvery=FN,F.overSome=kN,F.partial=Nm,F.partialRight=Tx,F.partition=vL,F.pick=BV,F.pickBy=Bx,F.property=zx,F.propertyOf=IN,F.pull=gB,F.pullAll=gx,F.pullAllBy=vB,F.pullAllWith=yB,F.pullAt=bB,F.range=BN,F.rangeRight=LN,F.rearg=ML,F.reject=$L,F.remove=$B,F.rest=FL,F.reverse=Bm,F.sampleSize=wL,F.set=VV,F.setWith=NV,F.shuffle=DL,F.slice=xB,F.sortBy=SL,F.sortedUniq=AB,F.sortedUniqBy=PB,F.split=lN,F.spread=kL,F.tail=_B,F.take=RB,F.takeRight=OB,F.takeRightWhile=MB,F.takeWhile=FB,F.tap=YB,F.throttle=IL,F.thru=Zf,F.toArray=Ox,F.toPairs=Lx,F.toPairsIn=Vx,F.toPath=UN,F.toPlainObject=Fx,F.transform=jV,F.unary=BL,F.union=kB,F.unionBy=IB,F.unionWith=BB,F.uniq=LB,F.uniqBy=VB,F.uniqWith=NB,F.unset=KV,F.unzip=Lm,F.unzipWith=vx,F.update=UV,F.updateWith=zV,F.values=Ts,F.valuesIn=qV,F.without=jB,F.words=Kx,F.wrap=LL,F.xor=KB,F.xorBy=UB,F.xorWith=zB,F.zip=qB,F.zipObject=WB,F.zipObjectDeep=HB,F.zipWith=GB,F.entries=Lx,F.entriesIn=Vx,F.extend=kx,F.extendWith=rd,Gm(F,F),F.add=qN,F.attempt=Ux,F.camelCase=YV,F.capitalize=Nx,F.ceil=WN,F.clamp=WV,F.clone=NL,F.cloneDeep=KL,F.cloneDeepWith=UL,F.cloneWith=jL,F.conformsTo=zL,F.deburr=jx,F.defaultTo=CN,F.divide=HN,F.endsWith=ZV,F.eq=Br,F.escape=JV,F.escapeRegExp=XV,F.every=oL,F.find=sL,F.findIndex=dx,F.findKey=$V,F.findLast=uL,F.findLastIndex=hx,F.findLastKey=xV,F.floor=GN,F.forEach=bx,F.forEachRight=$x,F.forIn=wV,F.forInRight=DV,F.forOwn=CV,F.forOwnRight=EV,F.get=Um,F.gt=qL,F.gte=WL,F.has=AV,F.hasIn=zm,F.head=mx,F.identity=Kn,F.includes=hL,F.indexOf=uB,F.inRange=HV,F.invoke=RV,F.isArguments=va,F.isArray=Ge,F.isArrayBuffer=HL,F.isArrayLike=Nn,F.isArrayLikeObject=Kt,F.isBoolean=GL,F.isBuffer=To,F.isDate=YL,F.isElement=ZL,F.isEmpty=JL,F.isEqual=XL,F.isEqualWith=QL,F.isError=jm,F.isFinite=eV,F.isFunction=Ui,F.isInteger=Ax,F.isLength=td,F.isMap=Px,F.isMatch=tV,F.isMatchWith=nV,F.isNaN=rV,F.isNative=iV,F.isNil=aV,F.isNull=oV,F.isNumber=_x,F.isObject=kt,F.isObjectLike=jt,F.isPlainObject=Sl,F.isRegExp=Km,F.isSafeInteger=sV,F.isSet=Rx,F.isString=nd,F.isSymbol=nr,F.isTypedArray=Ss,F.isUndefined=uV,F.isWeakMap=lV,F.isWeakSet=cV,F.join=hB,F.kebabCase=QV,F.last=pr,F.lastIndexOf=pB,F.lowerCase=eN,F.lowerFirst=tN,F.lt=fV,F.lte=dV,F.max=YN,F.maxBy=ZN,F.mean=JN,F.meanBy=XN,F.min=QN,F.minBy=ej,F.stubArray=Zm,F.stubFalse=Jm,F.stubObject=VN,F.stubString=NN,F.stubTrue=jN,F.multiply=tj,F.nth=mB,F.noConflict=RN,F.noop=Ym,F.now=Xf,F.pad=nN,F.padEnd=rN,F.padStart=iN,F.parseInt=oN,F.random=GV,F.reduce=yL,F.reduceRight=bL,F.repeat=aN,F.replace=sN,F.result=LV,F.round=nj,F.runInContext=ee,F.sample=xL,F.size=CL,F.snakeCase=uN,F.some=EL,F.sortedIndex=wB,F.sortedIndexBy=DB,F.sortedIndexOf=CB,F.sortedLastIndex=EB,F.sortedLastIndexBy=SB,F.sortedLastIndexOf=TB,F.startCase=cN,F.startsWith=fN,F.subtract=rj,F.sum=ij,F.sumBy=oj,F.template=dN,F.times=KN,F.toFinite=zi,F.toInteger=Ze,F.toLength=Mx,F.toLower=hN,F.toNumber=mr,F.toSafeInteger=hV,F.toString=dt,F.toUpper=pN,F.trim=mN,F.trimEnd=gN,F.trimStart=vN,F.truncate=yN,F.unescape=bN,F.uniqueId=zN,F.upperCase=$N,F.upperFirst=qm,F.each=bx,F.eachRight=$x,F.first=mx,Gm(F,function(){var s={};return li(F,function(c,m){vt.call(F.prototype,m)||(s[m]=c)}),s}(),{chain:!1}),F.VERSION=r,lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),lr(["drop","take"],function(s,c){ot.prototype[s]=function(m){m=m===n?1:rn(Ze(m),0);var x=this.__filtered__&&!c?new ot(this):this.clone();return x.__filtered__?x.__takeCount__=bn(m,x.__takeCount__):x.__views__.push({size:bn(m,N),type:s+(x.__dir__<0?"Right":"")}),x},ot.prototype[s+"Right"]=function(m){return this.reverse()[s](m).reverse()}}),lr(["filter","map","takeWhile"],function(s,c){var m=c+1,x=m==V||m==L;ot.prototype[s]=function(P){var B=this.clone();return B.__iteratees__.push({iteratee:je(P,3),type:m}),B.__filtered__=B.__filtered__||x,B}}),lr(["head","last"],function(s,c){var m="take"+(c?"Right":"");ot.prototype[s]=function(){return this[m](1).value()[0]}}),lr(["initial","tail"],function(s,c){var m="drop"+(c?"":"Right");ot.prototype[s]=function(){return this.__filtered__?new ot(this):this[m](1)}}),ot.prototype.compact=function(){return this.filter(Kn)},ot.prototype.find=function(s){return this.filter(s).head()},ot.prototype.findLast=function(s){return this.reverse().find(s)},ot.prototype.invokeMap=tt(function(s,c){return typeof s=="function"?new ot(this):this.map(function(m){return $l(m,s,c)})}),ot.prototype.reject=function(s){return this.filter(ed(je(s)))},ot.prototype.slice=function(s,c){s=Ze(s);var m=this;return m.__filtered__&&(s>0||c<0)?new ot(m):(s<0?m=m.takeRight(-s):s&&(m=m.drop(s)),c!==n&&(c=Ze(c),m=c<0?m.dropRight(-c):m.take(c-s)),m)},ot.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ot.prototype.toArray=function(){return this.take(N)},li(ot.prototype,function(s,c){var m=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),P=F[x?"take"+(c=="last"?"Right":""):c],B=x||/^find/.test(c);P&&(F.prototype[c]=function(){var q=this.__wrapped__,Y=x?[1]:arguments,te=q instanceof ot,de=Y[0],he=te||Ge(q),$e=function(rt){var at=P.apply(F,$o([rt],Y));return x&&Pe?at[0]:at};he&&m&&typeof de=="function"&&de.length!=1&&(te=he=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Ue=B&&!Pe,Qe=te&&!Be;if(!B&&he){q=Qe?q:new ot(this);var ze=s.apply(q,Y);return ze.__actions__.push({func:Zf,args:[$e],thisArg:n}),new fr(ze,Pe)}return Ue&&Qe?s.apply(this,Y):(ze=this.thru($e),Ue?x?ze.value()[0]:ze.value():ze)})}),lr(["pop","push","shift","sort","splice","unshift"],function(s){var c=wf[s],m=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var P=arguments;if(x&&!this.__chain__){var B=this.value();return c.apply(Ge(B)?B:[],P)}return this[m](function(q){return c.apply(Ge(q)?q:[],P)})}}),li(ot.prototype,function(s,c){var m=F[c];if(m){var x=m.name+"";vt.call(xs,x)||(xs[x]=[]),xs[x].push({name:c,func:m})}}),xs[Uf(n,$).name]=[{name:"wrapper",func:n}],ot.prototype.clone=bk,ot.prototype.reverse=$k,ot.prototype.value=xk,F.prototype.at=ZB,F.prototype.chain=JB,F.prototype.commit=XB,F.prototype.next=QB,F.prototype.plant=tL,F.prototype.reverse=nL,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=rL,F.prototype.first=F.prototype.head,hl&&(F.prototype[hl]=eL),F},ys=X8();ui?((ui.exports=ys)._=ys,si._=ys):Jt._=ys}).call(wU)}(Ul,Ul.exports)),Ul.exports}var nA=DU();const CU=_i(nA);var Vc=e=>e.type==="checkbox",Sa=e=>e instanceof Date,Rn=e=>e==null;const rA=e=>typeof e=="object";var Gt=e=>!Rn(e)&&!Array.isArray(e)&&rA(e)&&!Sa(e),iA=e=>Gt(e)&&e.target?Vc(e.target)?e.target.checked:e.target.value:e,EU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oA=(e,t)=>e.has(EU(t)),SU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},$1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Un(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(!($1&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!SU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Un(e[i]));else return e;return t}var ep=e=>Array.isArray(e)?e.filter(Boolean):[],Wt=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!Gt(e))return n;const r=ep(t.split(/[,[\].]+?/)).reduce((i,o)=>Rn(i)?i:i[o],e);return Wt(r)||r===e?Wt(e[t])?n:e[t]:r},wr=e=>typeof e=="boolean",x1=e=>/^\w*$/.test(e),aA=e=>ep(e.replace(/["|']|\]/g,"").split(/\.|\[/)),gt=(e,t,n)=>{let r=-1;const i=x1(t)?[t]:aA(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let l=n;if(r!==a){const f=e[u];l=Gt(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const oh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Kr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Wi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},sA=C.createContext(null),tp=()=>C.useContext(sA),TU=e=>{const{children:t,...n}=e;return C.createElement(sA.Provider,{value:n},t)};var uA=(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]!==Kr.all&&(t._proxyFormState[a]=!r||Kr.all),n&&(n[a]=!0),e[a]}});return i},zn=e=>Gt(e)&&!Object.keys(e).length,lA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return zn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||Kr.all))},tc=e=>Array.isArray(e)?e:[e],cA=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function w1(e){const t=C.useRef(e);t.current=e,C.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function AU(e){const t=tp(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,u]=C.useState(n._formState),l=C.useRef(!0),f=C.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=C.useRef(i);return d.current=i,w1({disabled:r,next:h=>l.current&&cA(d.current,h.name,o)&&lA(h,f.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),C.useEffect(()=>(l.current=!0,f.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),C.useMemo(()=>uA(a,n,f.current,!1),[a,n])}var yi=e=>typeof e=="string",fA=(e,t,n,r,i)=>yi(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 dA(e){const t=tp(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=C.useRef(r);u.current=r,w1({disabled:o,subject:n._subjects.values,next:d=>{cA(u.current,d.name,a)&&f(Un(fA(u.current,n._names,d.values||n._formValues,!1,i)))}});const[l,f]=C.useState(n._getWatch(r,i));return C.useEffect(()=>n._removeUnmounted()),l}function PU(e){const t=tp(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=oA(i._names.array,n),u=dA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),l=AU({control:i,name:n,exact:!0}),f=C.useRef(i.register(n,{...e.rules,value:u,...wr(e.disabled)?{disabled:e.disabled}:{}})),d=C.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(l.errors,n)}}),[l,n]),h=C.useMemo(()=>({name:n,value:u,...wr(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:p=>f.current.onChange({target:{value:iA(p),name:n},type:oh.CHANGE}),onBlur:()=>f.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:oh.BLUR}),ref:p=>{const g=Ae(i._fields,n);g&&p&&(g._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:v=>p.setCustomValidity(v),reportValidity:()=>p.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return C.useEffect(()=>{const p=i._options.shouldUnregister||o,g=(v,b)=>{const D=Ae(i._fields,v);D&&D._f&&(D._f.mount=b)};if(g(n,!0),p){const v=Un(Ae(i._options.defaultValues,n));gt(i._defaultValues,n,v),Wt(Ae(i._formValues,n))&>(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?p&&!i._state.action:p)?i.unregister(n):g(n,!1)}},[n,i,a,o]),C.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),C.useMemo(()=>({field:h,formState:l,fieldState:d}),[h,l,d])}const _U=e=>e.render(PU(e));var hA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},xw=e=>({isOnSubmit:!e||e===Kr.onSubmit,isOnBlur:e===Kr.onBlur,isOnChange:e===Kr.onChange,isOnAll:e===Kr.all,isOnTouch:e===Kr.onTouched}),ww=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const nc=(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(nc(u,t))break}else if(Gt(u)&&nc(u,t))break}}};var RU=(e,t,n)=>{const r=tc(Ae(e,n));return gt(r,"root",t[n]),gt(e,n,r),e},D1=e=>e.type==="file",gi=e=>typeof e=="function",ah=e=>{if(!$1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Id=e=>yi(e),C1=e=>e.type==="radio",sh=e=>e instanceof RegExp;const Dw={value:!1,isValid:!1},Cw={value:!0,isValid:!0};var pA=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&&!Wt(e[0].attributes.value)?Wt(e[0].value)||e[0].value===""?Cw:{value:e[0].value,isValid:!0}:Cw:Dw}return Dw};const Ew={isValid:!1,value:null};var mA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ew):Ew;function Sw(e,t,n="validate"){if(Id(e)||Array.isArray(e)&&e.every(Id)||wr(e)&&!e)return{type:n,message:Id(e)?e:"",ref:t}}var Ps=e=>Gt(e)&&!sh(e)?e:{value:e,message:""},Tw=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:l,maxLength:f,minLength:d,min:h,max:p,pattern:g,validate:v,name:b,valueAsNumber:D,mount:$}=e._f,y=Ae(n,b);if(!$||t.has(b))return{};const w=u?u[0]:a,T=Z=>{i&&w.reportValidity&&(w.setCustomValidity(wr(Z)?"":Z||""),w.reportValidity())},E={},A=C1(a),M=Vc(a),S=A||M,z=(D||D1(a))&&Wt(a.value)&&Wt(y)||ah(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,j=hA.bind(null,b,r,E),O=(Z,R,V,W=Wi.maxLength,L=Wi.minLength)=>{const k=Z?R:V;E[b]={type:Z?W:L,message:k,ref:a,...j(Z?W:L,k)}};if(o?!Array.isArray(y)||!y.length:l&&(!S&&(z||Rn(y))||wr(y)&&!y||M&&!pA(u).isValid||A&&!mA(u).isValid)){const{value:Z,message:R}=Id(l)?{value:!!l,message:l}:Ps(l);if(Z&&(E[b]={type:Wi.required,message:R,ref:w,...j(Wi.required,R)},!r))return T(R),E}if(!z&&(!Rn(h)||!Rn(p))){let Z,R;const V=Ps(p),W=Ps(h);if(!Rn(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;Rn(V.value)||(Z=L>V.value),Rn(W.value)||(R=L<W.value)}else{const L=a.valueAsDate||new Date(y),k=U=>new Date(new Date().toDateString()+" "+U),_=a.type=="time",H=a.type=="week";yi(V.value)&&y&&(Z=_?k(y)>k(V.value):H?y>V.value:L>new Date(V.value)),yi(W.value)&&y&&(R=_?k(y)<k(W.value):H?y<W.value:L<new Date(W.value))}if((Z||R)&&(O(!!Z,V.message,W.message,Wi.max,Wi.min),!r))return T(E[b].message),E}if((f||d)&&!z&&(yi(y)||o&&Array.isArray(y))){const Z=Ps(f),R=Ps(d),V=!Rn(Z.value)&&y.length>+Z.value,W=!Rn(R.value)&&y.length<+R.value;if((V||W)&&(O(V,Z.message,R.message),!r))return T(E[b].message),E}if(g&&!z&&yi(y)){const{value:Z,message:R}=Ps(g);if(sh(Z)&&!y.match(Z)&&(E[b]={type:Wi.pattern,message:R,ref:a,...j(Wi.pattern,R)},!r))return T(R),E}if(v){if(gi(v)){const Z=await v(y,n),R=Sw(Z,w);if(R&&(E[b]={...R,...j(Wi.validate,R.message)},!r))return T(R.message),E}else if(Gt(v)){let Z={};for(const R in v){if(!zn(Z)&&!r)break;const V=Sw(await v[R](y,n),w,R);V&&(Z={...V,...j(R,V.message)},T(V.message),r&&(E[b]=Z))}if(!zn(Z)&&(E[b]={ref:w,...Z},!r))return E}}return T(!0),E};function OU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Wt(e)?r++:e[t[r++]];return e}function MU(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function on(e,t){const n=Array.isArray(t)?t:x1(t)?[t]:aA(t),r=n.length===1?e:OU(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Gt(r)&&zn(r)||Array.isArray(r)&&MU(r))&&on(e,n.slice(0,-1)),e}var sg=()=>{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=[]}}},K0=e=>Rn(e)||!rA(e);function ko(e,t){if(K0(e)||K0(t))return e===t;if(Sa(e)&&Sa(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(Sa(o)&&Sa(a)||Gt(o)&&Gt(a)||Array.isArray(o)&&Array.isArray(a)?!ko(o,a):o!==a)return!1}}return!0}var gA=e=>e.type==="select-multiple",FU=e=>C1(e)||Vc(e),ug=e=>ah(e)&&e.isConnected,vA=e=>{for(const t in e)if(gi(e[t]))return!0;return!1};function uh(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!vA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},uh(e[r],t[r])):Rn(e[r])||(t[r]=!0);return t}function yA(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const i in e)Array.isArray(e[i])||Gt(e[i])&&!vA(e[i])?Wt(t)||K0(n[i])?n[i]=Array.isArray(e[i])?uh(e[i],[]):{...uh(e[i])}:yA(e[i],Rn(t)?{}:t[i],n[i]):n[i]=!ko(e[i],t[i]);return n}var Tl=(e,t)=>yA(e,t,uh(t)),bA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&yi(e)?new Date(e):r?r(e):e;function lg(e){const t=e.ref;return D1(t)?t.files:C1(t)?mA(e.refs).value:gA(t)?[...t.selectedOptions].map(({value:n})=>n):Vc(t)?pA(e.refs).value:bA(Wt(t.value)?e.ref.value:t.value,e)}var kU=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&>(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Al=e=>Wt(e)?e:sh(e)?e.source:Gt(e)?sh(e.value)?e.value.source:e.value:e;const Aw="AsyncFunction";var IU=e=>!!e&&!!e.validate&&!!(gi(e.validate)&&e.validate.constructor.name===Aw||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Aw)),BU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Pw(e,t,n){const r=Ae(e,n);if(r||x1(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 LU=(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,VU=(e,t)=>!ep(Ae(e,t)).length&&on(e,t);const NU={mode:Kr.onSubmit,reValidateMode:Kr.onChange,shouldFocusError:!0};function jU(e={}){let t={...NU,...e},n={submitCount:0,isDirty:!1,isLoading:gi(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gt(t.defaultValues)||Gt(t.values)?Un(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Un(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,f=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:sg(),array:sg(),state:sg()},p=xw(t.mode),g=xw(t.reValidateMode),v=t.criteriaMode===Kr.all,b=G=>Q=>{clearTimeout(f),f=setTimeout(G,Q)},D=async G=>{if(!t.disabled&&(d.isValid||G)){const Q=t.resolver?zn((await S()).errors):await j(r,!0);Q!==n.isValid&&h.state.next({isValid:Q})}},$=(G,Q)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((G||Array.from(u.mount)).forEach(re=>{re&&(Q?gt(n.validatingFields,re,Q):on(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!zn(n.validatingFields)}))},y=(G,Q=[],re,ye,Se=!0,Ce=!0)=>{if(ye&&re&&!t.disabled){if(a.action=!0,Ce&&Array.isArray(Ae(r,G))){const Fe=re(Ae(r,G),ye.argA,ye.argB);Se&>(r,G,Fe)}if(Ce&&Array.isArray(Ae(n.errors,G))){const Fe=re(Ae(n.errors,G),ye.argA,ye.argB);Se&>(n.errors,G,Fe),VU(n.errors,G)}if(d.touchedFields&&Ce&&Array.isArray(Ae(n.touchedFields,G))){const Fe=re(Ae(n.touchedFields,G),ye.argA,ye.argB);Se&>(n.touchedFields,G,Fe)}d.dirtyFields&&(n.dirtyFields=Tl(i,o)),h.state.next({name:G,isDirty:Z(G,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else gt(o,G,Q)},w=(G,Q)=>{gt(n.errors,G,Q),h.state.next({errors:n.errors})},T=G=>{n.errors=G,h.state.next({errors:n.errors,isValid:!1})},E=(G,Q,re,ye)=>{const Se=Ae(r,G);if(Se){const Ce=Ae(o,G,Wt(re)?Ae(i,G):re);Wt(Ce)||ye&&ye.defaultChecked||Q?gt(o,G,Q?Ce:lg(Se._f)):W(G,Ce),a.mount&&D()}},A=(G,Q,re,ye,Se)=>{let Ce=!1,Fe=!1;const Ne={name:G};if(!t.disabled){const _t=!!(Ae(r,G)&&Ae(r,G)._f&&Ae(r,G)._f.disabled);if(!re||ye){d.isDirty&&(Fe=n.isDirty,n.isDirty=Ne.isDirty=Z(),Ce=Fe!==Ne.isDirty);const ut=_t||ko(Ae(i,G),Q);Fe=!!(!_t&&Ae(n.dirtyFields,G)),ut||_t?on(n.dirtyFields,G):gt(n.dirtyFields,G,!0),Ne.dirtyFields=n.dirtyFields,Ce=Ce||d.dirtyFields&&Fe!==!ut}if(re){const ut=Ae(n.touchedFields,G);ut||(gt(n.touchedFields,G,re),Ne.touchedFields=n.touchedFields,Ce=Ce||d.touchedFields&&ut!==re)}Ce&&Se&&h.state.next(Ne)}return Ce?Ne:{}},M=(G,Q,re,ye)=>{const Se=Ae(n.errors,G),Ce=d.isValid&&wr(Q)&&n.isValid!==Q;if(t.delayError&&re?(l=b(()=>w(G,re)),l(t.delayError)):(clearTimeout(f),l=null,re?gt(n.errors,G,re):on(n.errors,G)),(re?!ko(Se,re):Se)||!zn(ye)||Ce){const Fe={...ye,...Ce&&wr(Q)?{isValid:Q}:{},errors:n.errors,name:G};n={...n,...Fe},h.state.next(Fe)}},S=async G=>{$(G,!0);const Q=await t.resolver(o,t.context,kU(G||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return $(G),Q},z=async G=>{const{errors:Q}=await S(G);if(G)for(const re of G){const ye=Ae(Q,re);ye?gt(n.errors,re,ye):on(n.errors,re)}else n.errors=Q;return Q},j=async(G,Q,re={valid:!0})=>{for(const ye in G){const Se=G[ye];if(Se){const{_f:Ce,...Fe}=Se;if(Ce){const Ne=u.array.has(Ce.name),_t=Se._f&&IU(Se._f);_t&&d.validatingFields&&$([ye],!0);const ut=await Tw(Se,u.disabled,o,v,t.shouldUseNativeValidation&&!Q,Ne);if(_t&&d.validatingFields&&$([ye]),ut[Ce.name]&&(re.valid=!1,Q))break;!Q&&(Ae(ut,Ce.name)?Ne?RU(n.errors,ut,Ce.name):gt(n.errors,Ce.name,ut[Ce.name]):on(n.errors,Ce.name))}!zn(Fe)&&await j(Fe,Q,re)}}return re.valid},O=()=>{for(const G of u.unMount){const Q=Ae(r,G);Q&&(Q._f.refs?Q._f.refs.every(re=>!ug(re)):!ug(Q._f.ref))&&De(G)}u.unMount=new Set},Z=(G,Q)=>!t.disabled&&(G&&Q&>(o,G,Q),!ko(N(),i)),R=(G,Q,re)=>fA(G,u,{...a.mount?o:Wt(Q)?i:yi(G)?{[G]:Q}:Q},re,Q),V=G=>ep(Ae(a.mount?o:i,G,t.shouldUnregister?Ae(i,G,[]):[])),W=(G,Q,re={})=>{const ye=Ae(r,G);let Se=Q;if(ye){const Ce=ye._f;Ce&&(!Ce.disabled&>(o,G,bA(Q,Ce)),Se=ah(Ce.ref)&&Rn(Q)?"":Q,gA(Ce.ref)?[...Ce.ref.options].forEach(Fe=>Fe.selected=Se.includes(Fe.value)):Ce.refs?Vc(Ce.ref)?Ce.refs.length>1?Ce.refs.forEach(Fe=>(!Fe.defaultChecked||!Fe.disabled)&&(Fe.checked=Array.isArray(Se)?!!Se.find(Ne=>Ne===Fe.value):Se===Fe.value)):Ce.refs[0]&&(Ce.refs[0].checked=!!Se):Ce.refs.forEach(Fe=>Fe.checked=Fe.value===Se):D1(Ce.ref)?Ce.ref.value="":(Ce.ref.value=Se,Ce.ref.type||h.values.next({name:G,values:{...o}})))}(re.shouldDirty||re.shouldTouch)&&A(G,Se,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&U(G)},L=(G,Q,re)=>{for(const ye in Q){const Se=Q[ye],Ce=`${G}.${ye}`,Fe=Ae(r,Ce);(u.array.has(G)||Gt(Se)||Fe&&!Fe._f)&&!Sa(Se)?L(Ce,Se,re):W(Ce,Se,re)}},k=(G,Q,re={})=>{const ye=Ae(r,G),Se=u.array.has(G),Ce=Un(Q);gt(o,G,Ce),Se?(h.array.next({name:G,values:{...o}}),(d.isDirty||d.dirtyFields)&&re.shouldDirty&&h.state.next({name:G,dirtyFields:Tl(i,o),isDirty:Z(G,Ce)})):ye&&!ye._f&&!Rn(Ce)?L(G,Ce,re):W(G,Ce,re),ww(G,u)&&h.state.next({...n}),h.values.next({name:a.mount?G:void 0,values:{...o}})},_=async G=>{a.mount=!0;const Q=G.target;let re=Q.name,ye=!0;const Se=Ae(r,re),Ce=()=>Q.type?lg(Se._f):iA(G),Fe=Ne=>{ye=Number.isNaN(Ne)||Sa(Ne)&&isNaN(Ne.getTime())||ko(Ne,Ae(o,re,Ne))};if(Se){let Ne,_t;const ut=Ce(),Zt=G.type===oh.BLUR||G.type===oh.FOCUS_OUT,Xr=!BU(Se._f)&&!t.resolver&&!Ae(n.errors,re)&&!Se._f.deps||LU(Zt,Ae(n.touchedFields,re),n.isSubmitted,g,p),Rr=ww(re,u,Zt);gt(o,re,ut),Zt?(Se._f.onBlur&&Se._f.onBlur(G),l&&l(0)):Se._f.onChange&&Se._f.onChange(G);const mn=A(re,ut,Zt,!1),Qr=!zn(mn)||Rr;if(!Zt&&h.values.next({name:re,type:G.type,values:{...o}}),Xr)return d.isValid&&(t.mode==="onBlur"&&Zt?D():Zt||D()),Qr&&h.state.next({name:re,...Rr?{}:mn});if(!Zt&&Rr&&h.state.next({...n}),t.resolver){const{errors:ei}=await S([re]);if(Fe(ut),ye){const ti=Pw(n.errors,r,re),Or=Pw(ei,r,ti.name||re);Ne=Or.error,re=Or.name,_t=zn(ei)}}else $([re],!0),Ne=(await Tw(Se,u.disabled,o,v,t.shouldUseNativeValidation))[re],$([re]),Fe(ut),ye&&(Ne?_t=!1:d.isValid&&(_t=await j(r,!0)));ye&&(Se._f.deps&&U(Se._f.deps),M(re,_t,Ne,mn))}},H=(G,Q)=>{if(Ae(n.errors,Q)&&G.focus)return G.focus(),1},U=async(G,Q={})=>{let re,ye;const Se=tc(G);if(t.resolver){const Ce=await z(Wt(G)?G:Se);re=zn(Ce),ye=G?!Se.some(Fe=>Ae(Ce,Fe)):re}else G?(ye=(await Promise.all(Se.map(async Ce=>{const Fe=Ae(r,Ce);return await j(Fe&&Fe._f?{[Ce]:Fe}:Fe)}))).every(Boolean),!(!ye&&!n.isValid)&&D()):ye=re=await j(r);return h.state.next({...!yi(G)||d.isValid&&re!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:re}:{},errors:n.errors}),Q.shouldFocus&&!ye&&nc(r,H,G?Se:u.mount),ye},N=G=>{const Q={...a.mount?o:i};return Wt(G)?Q:yi(G)?Ae(Q,G):G.map(re=>Ae(Q,re))},ne=(G,Q)=>({invalid:!!Ae((Q||n).errors,G),isDirty:!!Ae((Q||n).dirtyFields,G),error:Ae((Q||n).errors,G),isValidating:!!Ae(n.validatingFields,G),isTouched:!!Ae((Q||n).touchedFields,G)}),ie=G=>{G&&tc(G).forEach(Q=>on(n.errors,Q)),h.state.next({errors:G?n.errors:{}})},ce=(G,Q,re)=>{const ye=(Ae(r,G,{_f:{}})._f||{}).ref,Se=Ae(n.errors,G)||{},{ref:Ce,message:Fe,type:Ne,..._t}=Se;gt(n.errors,G,{..._t,...Q,ref:ye}),h.state.next({name:G,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&ye&&ye.focus&&ye.focus()},xe=(G,Q)=>gi(G)?h.values.subscribe({next:re=>G(R(void 0,Q),re)}):R(G,Q,!0),De=(G,Q={})=>{for(const re of G?tc(G):u.mount)u.mount.delete(re),u.array.delete(re),Q.keepValue||(on(r,re),on(o,re)),!Q.keepError&&on(n.errors,re),!Q.keepDirty&&on(n.dirtyFields,re),!Q.keepTouched&&on(n.touchedFields,re),!Q.keepIsValidating&&on(n.validatingFields,re),!t.shouldUnregister&&!Q.keepDefaultValue&&on(i,re);h.values.next({values:{...o}}),h.state.next({...n,...Q.keepDirty?{isDirty:Z()}:{}}),!Q.keepIsValid&&D()},Ee=({disabled:G,name:Q,field:re,fields:ye})=>{(wr(G)&&a.mount||G||u.disabled.has(Q))&&(G?u.disabled.add(Q):u.disabled.delete(Q),A(Q,lg(re?re._f:Ae(ye,Q)._f),!1,!1,!0))},J=(G,Q={})=>{let re=Ae(r,G);const ye=wr(Q.disabled)||wr(t.disabled);return gt(r,G,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:G}},name:G,mount:!0,...Q}}),u.mount.add(G),re?Ee({field:re,disabled:wr(Q.disabled)?Q.disabled:t.disabled,name:G}):E(G,!0,Q.value),{...ye?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:Al(Q.min),max:Al(Q.max),minLength:Al(Q.minLength),maxLength:Al(Q.maxLength),pattern:Al(Q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:Se=>{if(Se){J(G,Q),re=Ae(r,G);const Ce=Wt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Fe=FU(Ce),Ne=re._f.refs||[];if(Fe?Ne.find(_t=>_t===Ce):Ce===re._f.ref)return;gt(r,G,{_f:{...re._f,...Fe?{refs:[...Ne.filter(ug),Ce,...Array.isArray(Ae(i,G))?[{}]:[]],ref:{type:Ce.type,name:G}}:{ref:Ce}}}),E(G,!1,void 0,Ce)}else re=Ae(r,G,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(oA(u.array,G)&&a.action)&&u.unMount.add(G)}}},ve=()=>t.shouldFocusError&&nc(r,H,u.mount),we=G=>{wr(G)&&(h.state.next({disabled:G}),nc(r,(Q,re)=>{const ye=Ae(r,re);ye&&(Q.disabled=ye._f.disabled||G,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Se=>{Se.disabled=ye._f.disabled||G}))},0,!1))},me=(G,Q)=>async re=>{let ye;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Se=Un(o);if(u.disabled.size)for(const Ce of u.disabled)gt(Se,Ce,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Ce,values:Fe}=await S();n.errors=Ce,Se=Fe}else await j(r);if(on(n.errors,"root"),zn(n.errors)){h.state.next({errors:{}});try{await G(Se,re)}catch(Ce){ye=Ce}}else Q&&await Q({...n.errors},re),ve(),setTimeout(ve);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zn(n.errors)&&!ye,submitCount:n.submitCount+1,errors:n.errors}),ye)throw ye},ue=(G,Q={})=>{Ae(r,G)&&(Wt(Q.defaultValue)?k(G,Un(Ae(i,G))):(k(G,Q.defaultValue),gt(i,G,Un(Q.defaultValue))),Q.keepTouched||on(n.touchedFields,G),Q.keepDirty||(on(n.dirtyFields,G),n.isDirty=Q.defaultValue?Z(G,Un(Ae(i,G))):Z()),Q.keepError||(on(n.errors,G),d.isValid&&D()),h.state.next({...n}))},Le=(G,Q={})=>{const re=G?Un(G):i,ye=Un(re),Se=zn(G),Ce=Se?i:ye;if(Q.keepDefaultValues||(i=re),!Q.keepValues){if(Q.keepDirtyValues){const Fe=new Set([...u.mount,...Object.keys(Tl(i,o))]);for(const Ne of Array.from(Fe))Ae(n.dirtyFields,Ne)?gt(Ce,Ne,Ae(o,Ne)):k(Ne,Ae(Ce,Ne))}else{if($1&&Wt(G))for(const Fe of u.mount){const Ne=Ae(r,Fe);if(Ne&&Ne._f){const _t=Array.isArray(Ne._f.refs)?Ne._f.refs[0]:Ne._f.ref;if(ah(_t)){const ut=_t.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Q.keepDefaultValues?Un(i):{}:Un(Ce),h.array.next({values:{...Ce}}),h.values.next({values:{...Ce}})}u={mount:Q.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!ko(G,i)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?Tl(i,o):n.dirtyFields:Q.keepDefaultValues&&G?Tl(i,G):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},nt=(G,Q)=>Le(gi(G)?G(o):G,Q);return{control:{register:J,unregister:De,getFieldState:ne,handleSubmit:me,setError:ce,_executeSchema:S,_getWatch:R,_getDirty:Z,_updateValid:D,_removeUnmounted:O,_updateFieldArray:y,_updateDisabledField:Ee,_getFieldArray:V,_reset:Le,_resetDefaultValues:()=>gi(t.defaultValues)&&t.defaultValues().then(G=>{nt(G,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:G=>{n={...n,...G}},_disableForm:we,_subjects:h,_proxyFormState:d,_setErrors:T,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(G){a=G},get _defaultValues(){return i},get _names(){return u},set _names(G){u=G},get _formState(){return n},set _formState(G){n=G},get _options(){return t},set _options(G){t={...t,...G}}},trigger:U,register:J,handleSubmit:me,watch:xe,setValue:k,getValues:N,reset:nt,resetField:ue,clearErrors:ie,unregister:De,setError:ce,setFocus:(G,Q={})=>{const re=Ae(r,G),ye=re&&re._f;if(ye){const Se=ye.refs?ye.refs[0]:ye.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&gi(Se.select)&&Se.select())}},getFieldState:ne}}function KU(e={}){const t=C.useRef(void 0),n=C.useRef(void 0),[r,i]=C.useState({isDirty:!1,isValidating:!1,isLoading:gi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:gi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...jU(e),formState:r});const o=t.current.control;return o._options=e,w1({subject:o._subjects.state,next:a=>{lA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),C.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),C.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),C.useEffect(()=>{e.values&&!ko(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),C.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),C.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()}),C.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=uA(r,o),t.current}const Ct=typeof document<"u"?C.useLayoutEffect:()=>{};function Ht(e){const t=C.useRef(null);return Ct(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function UU(e){let[t,n]=C.useState(e),r=C.useRef(null),i=Ht(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});Ct(()=>{r.current&&i()});let o=Ht(a=>{r.current=a(t),i()});return[t,o]}const lh={prefix:String(Math.round(Math.random()*1e10)),current:0},$A=C.createContext(lh),zU=C.createContext(!1);let qU=!!(typeof window<"u"&&window.document&&window.document.createElement),cg=new WeakMap;function WU(e=!1){let t=C.useContext($A),n=C.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=C.__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=cg.get(o);a==null?cg.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,cg.delete(o))}n.current=++t.current}return n.current}function HU(e){let t=C.useContext($A);t===lh&&!qU&&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=WU(!!e),r=t===lh&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function GU(e){let t=C.useId(),[n]=C.useState(E1()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${lh.prefix}`;return e||`${r}-${t}`}const YU=typeof C.useId=="function"?GU:HU;function ZU(){return!1}function JU(){return!0}function XU(e){return()=>{}}function E1(){return typeof C.useSyncExternalStore=="function"?C.useSyncExternalStore(XU,ZU,JU):C.useContext(zU)}let QU=!!(typeof window<"u"&&window.document&&window.document.createElement),Mo=new Map;function Yn(e){let[t,n]=C.useState(e),r=C.useRef(null),i=YU(t),o=C.useCallback(a=>{r.current=a},[]);return QU&&(Mo.has(i)&&!Mo.get(i).includes(o)?Mo.set(i,[...Mo.get(i),o]):Mo.set(i,[o])),Ct(()=>{let a=i;return()=>{Mo.delete(a)}},[i]),C.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function ez(e,t){if(e===t)return e;let n=Mo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Mo.get(t);return r?(r.forEach(i=>i(e)),e):t}function uu(e=[]){let t=Yn(),[n,r]=UU(t),i=C.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ct(i,[t,i,...e]),n}function Ua(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Tt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Wo=e=>e&&"window"in e&&e.window===e?e:Tt(e).defaultView||window;function xA(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=xA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xA(e))&&(r&&(r+=" "),r+=t);return r}function ft(...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]=Ua(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=tz(o,a):i==="id"&&o&&a?t.id=ez(o,a):t[i]=a!==void 0?a:o}}return t}const nz=new Set(["id"]),rz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),iz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),oz=/^(data-.*)$/;function uo(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(nz.has(a)||n&&rz.has(a)||r&&iz.has(a)||i!=null&&i.has(a)||oz.test(a))&&(o[a]=e[a]);return o}function Ur(e){if(az())e.focus({preventScroll:!0});else{let t=sz(e);e.focus(),uz(t)}}let ld=null;function az(){if(ld==null){ld=!1;try{document.createElement("div").focus({get preventScroll(){return ld=!0,!0}})}catch{}}return ld}function sz(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 uz(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function np(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 S1(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 lo(e){let t=null;return()=>(t==null&&(t=e()),t)}const oo=lo(function(){return S1(/^Mac/i)}),lz=lo(function(){return S1(/^iPhone/i)}),wA=lo(function(){return S1(/^iPad/i)||oo()&&navigator.maxTouchPoints>1}),Nc=lo(function(){return lz()||wA()}),Bd=lo(function(){return oo()||Nc()}),T1=lo(function(){return np(/AppleWebKit/i)&&!DA()}),DA=lo(function(){return np(/Chrome/i)}),A1=lo(function(){return np(/Android/i)}),cz=lo(function(){return np(/Firefox/i)}),fz=C.createContext({isNative:!0,open:hz,useHref:e=>e});function rp(){return C.useContext(fz)}function za(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}=t;cz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(oo()?o=!0:a=!0);let f=T1()&&oo()&&!wA()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});za.isOpening=n,Ur(e),e.dispatchEvent(f),za.isOpening=!1}za.isOpening=!1;function dz(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 hz(e,t){dz(e,n=>za(n,t))}function pz(e){let t=rp();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 Ms=new Map,U0=new Set;function _w(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ms.get(r.target);i||(i=new Set,Ms.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=Ms.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ms.delete(r.target)),Ms.size===0)){for(let o of U0)o();U0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_w():document.addEventListener("DOMContentLoaded",_w));function CA(e){requestAnimationFrame(()=>{Ms.size===0?e():U0.add(e)})}function Tu(){let e=C.useRef(new Map),t=C.useCallback((i,o,a,u)=>{let l=u!=null&&u.once?(...f)=>{e.current.delete(a),a(...f)}:a;e.current.set(a,{type:o,eventTarget:i,fn:l,options:u}),i.addEventListener(o,l,u)},[]),n=C.useCallback((i,o,a,u)=>{var l;let f=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(o,f,u),e.current.delete(a)},[]),r=C.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function lu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Yn(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 Rw(e,t){const n=C.useRef(!0),r=C.useRef(null);C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),C.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function Ow(e,t){const n=C.useRef(!0),r=C.useRef(null);Ct(()=>(n.current=!0,()=>{n.current=!1}),[]),Ct(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function mz(){return typeof window.ResizeObserver<"u"}function Mw(e){const{ref:t,box:n,onResize:r}=e;C.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(mz()){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 EA(e,t){Ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function mc(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 ip(e,t){let n=e;for(mc(n,t)&&(n=n.parentElement);n&&!mc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function gz(e,t){const n=[];for(;e&&e!==document.documentElement;)mc(e,t)&&n.push(e),e=e.parentElement;return n}let vz=0;const fg=new Map;function jc(e){let[t,n]=C.useState();return Ct(()=>{if(!e)return;let r=fg.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${vz++}`;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},fg.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),fg.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function bi(e,t,n,r){let i=Ht(n),o=n==null;C.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 SA(e,t){let n=Fw(e,t,"left"),r=Fw(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:f,scrollPaddingTop:d,scrollPaddingRight:h,scrollPaddingBottom:p,scrollPaddingLeft:g}=getComputedStyle(e),v=a+parseInt(f,10),b=u+parseInt(l,10),D=v+e.clientWidth,$=b+e.clientHeight,y=parseInt(d,10)||0,w=parseInt(p,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=a+E?a=n-parseInt(f,10)-E:n+i>D-T&&(a+=n+i-D+T),r<=b+y?u=r-parseInt(l,10)-y:r+o>$-w&&(u+=r+o-$+w),e.scrollLeft=a,e.scrollTop=u}function Fw(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 ch(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=gz(e);for(let f of l)SA(f,e)}else{var n;let{left:l,top:f}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(f-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 z0(e){return e.mozInputSource===0&&e.isTrusted?!0:A1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function yz(e){return!A1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function TA(e,t){let n=C.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function P1(e,t,n){let r=C.useRef(t),i=Ht(()=>{n&&n(r.current)});C.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 bz="react-aria-clear-focus",$z="react-aria-focus",AA="react-aria-update-activedescendant";function Fs(e){return oo()?e.metaKey:e.ctrlKey}function or(e,t,n){let[r,i]=C.useState(e||t),o=C.useRef(e!==void 0),a=e!==void 0;C.useEffect(()=>{let f=o.current;f!==a&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,l=C.useCallback((f,...d)=>{let h=(p,...g)=>{n&&(Object.is(u,p)||n(p,...g)),a||(u=p)};typeof f=="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,...v)=>{let b=f(a?u:g,...v);return h(b,...d),a?g:b})):(a||i(f),h(f,...d))},[a,u,n]);return[u,l]}function cu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function cd(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 Pl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=cd(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(cd(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(cd((n-t)/r,r))*r),o=cd(o,r),o}let Is="default",q0="",Ld=new WeakMap;function W0(e){if(Nc()){if(Is==="default"){const t=Tt(e);q0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Is="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Ld.set(e,e.style.userSelect),e.style.userSelect="none")}function zl(e){if(Nc()){if(Is!=="disabled")return;Is="restoring",setTimeout(()=>{CA(()=>{if(Is==="restoring"){const t=Tt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=q0||""),q0="",Is="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ld.has(e)){let t=Ld.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ld.delete(e)}}const _1=C.createContext({register:()=>{}});_1.displayName="PressResponderContext";function xz(e,t){return t.get?t.get.call(e):t.value}function PA(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function wz(e,t){var n=PA(e,t,"get");return xz(e,n)}function Dz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kc(e,t,n){Dz(e,t),t.set(e,n)}function Cz(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 kw(e,t,n){var r=PA(e,t,"set");return Cz(e,r,n),n}function Ez(e){let t=C.useContext(_1);if(t){let{register:n,...r}=t;e=ft(r,e),n()}return EA(t,e.ref),e}var fd=new WeakMap;class dd{continuePropagation(){kw(this,fd,!1)}get shouldStopPropagation(){return wz(this,fd)}constructor(t,n,r,i){Kc(this,fd,{writable:!0,value:void 0}),kw(this,fd,!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 l,f=0,d,h=null;r.clientX!=null&&r.clientY!=null&&(d=r.clientX,h=r.clientY),u&&(d!=null&&h!=null?(l=d-u.left,f=h-u.top):(l=u.width/2,f=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=l,this.y=f}}const Iw=Symbol("linkClicked");function Uc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:d,ref:h,...p}=Ez(e),[g,v]=C.useState(!1),b=C.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:D,removeAllGlobalListeners:$}=Tu(),y=Ht((S,z)=>{let j=b.current;if(a||j.didFirePressStart)return!1;let O=!0;if(j.isTriggeringEvent=!0,r){let Z=new dd("pressstart",z,S);r(Z),O=Z.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,v(!0),O}),w=Ht((S,z,j=!0)=>{let O=b.current;if(!O.didFirePressStart)return!1;O.ignoreClickAfterPress=!0,O.didFirePressStart=!1,O.isTriggeringEvent=!0;let Z=!0;if(i){let R=new dd("pressend",z,S);i(R),Z=R.shouldStopPropagation}if(n&&n(!1),v(!1),t&&j&&!a){let R=new dd("press",z,S);t(R),Z&&(Z=R.shouldStopPropagation)}return O.isTriggeringEvent=!1,Z}),T=Ht((S,z)=>{let j=b.current;if(a)return!1;if(o){j.isTriggeringEvent=!0;let O=new dd("pressup",z,S);return o(O),j.isTriggeringEvent=!1,O.shouldStopPropagation}return!0}),E=Ht(S=>{let z=b.current;z.isPressed&&z.target&&(z.isOverTarget&&z.pointerType!=null&&w(Hi(z.target,S),z.pointerType,!1),z.isPressed=!1,z.isOverTarget=!1,z.activePointerId=null,z.pointerType=null,$(),d||zl(z.target))}),A=Ht(S=>{f&&E(S)}),M=C.useMemo(()=>{let S=b.current,z={onKeyDown(O){if(dg(O.nativeEvent,O.currentTarget)&&O.currentTarget.contains(O.target)){var Z;Lw(O.target,O.key)&&O.preventDefault();let R=!0;if(!S.isPressed&&!O.repeat){S.target=O.currentTarget,S.isPressed=!0,R=y(O,"keyboard");let V=O.currentTarget,W=L=>{dg(L,V)&&!L.repeat&&V.contains(L.target)&&S.target&&T(Hi(S.target,L),"keyboard")};D(Tt(O.currentTarget),"keyup",Ua(W,j),!0)}R&&O.stopPropagation(),O.metaKey&&oo()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(O.key,O.nativeEvent))}else O.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(O){if(!(O&&!O.currentTarget.contains(O.target))&&O&&O.button===0&&!S.isTriggeringEvent&&!za.isOpening){let Z=!0;if(a&&O.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||z0(O.nativeEvent))){!a&&!l&&Ur(O.currentTarget);let R=y(O,"virtual"),V=T(O,"virtual"),W=w(O,"virtual");Z=R&&V&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,Z&&O.stopPropagation()}}},j=O=>{var Z;if(S.isPressed&&S.target&&dg(O,S.target)){var R;Lw(O.target,O.key)&&O.preventDefault();let W=O.target;w(Hi(S.target,O),"keyboard",S.target.contains(W)),$(),O.key!=="Enter"&&R1(S.target)&&S.target.contains(W)&&!O[Iw]&&(O[Iw]=!0,za(S.target,O,!1)),S.isPressed=!1,(R=S.metaKeyEvents)===null||R===void 0||R.delete(O.key)}else if(O.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var V;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of W.values())(V=S.target)===null||V===void 0||V.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){z.onPointerDown=V=>{if(V.button!==0||!V.currentTarget.contains(V.target))return;if(yz(V.nativeEvent)){S.pointerType="virtual";return}pg(V.currentTarget)&&V.preventDefault(),S.pointerType=V.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=V.pointerId,S.target=V.currentTarget,!a&&!l&&Ur(V.currentTarget),d||W0(S.target),W=y(V,S.pointerType);let L=V.target;"releasePointerCapture"in L&&L.releasePointerCapture(V.pointerId),D(Tt(V.currentTarget),"pointerup",O,!1),D(Tt(V.currentTarget),"pointercancel",R,!1)}W&&V.stopPropagation()},z.onMouseDown=V=>{V.currentTarget.contains(V.target)&&V.button===0&&(pg(V.currentTarget)&&V.preventDefault(),V.stopPropagation())},z.onPointerUp=V=>{!V.currentTarget.contains(V.target)||S.pointerType==="virtual"||V.button===0&&T(V,S.pointerType||V.pointerType)},z.onPointerEnter=V=>{V.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(Hi(S.target,V),S.pointerType))},z.onPointerLeave=V=>{V.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,w(Hi(S.target,V),S.pointerType,!1),A(V))};let O=V=>{V.pointerId===S.activePointerId&&S.isPressed&&V.button===0&&S.target&&(S.target.contains(V.target)&&S.pointerType!=null?w(Hi(S.target,V),S.pointerType):S.isOverTarget&&S.pointerType!=null&&w(Hi(S.target,V),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),d||zl(S.target),"ontouchend"in S.target&&V.pointerType!=="mouse"&&D(S.target,"touchend",Z,{once:!0}))},Z=V=>{_A(V.currentTarget)&&V.preventDefault()},R=V=>{E(V)};z.onDragStart=V=>{V.currentTarget.contains(V.target)&&E(V)}}else{z.onMouseDown=R=>{if(R.button!==0||!R.currentTarget.contains(R.target))return;if(pg(R.currentTarget)&&R.preventDefault(),S.ignoreEmulatedMouseEvents){R.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=R.currentTarget,S.pointerType=z0(R.nativeEvent)?"virtual":"mouse",!a&&!l&&Ur(R.currentTarget),y(R,S.pointerType)&&R.stopPropagation(),D(Tt(R.currentTarget),"mouseup",O,!1)},z.onMouseEnter=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,V=y(R,S.pointerType)),V&&R.stopPropagation()},z.onMouseLeave=R=>{if(!R.currentTarget.contains(R.target))return;let V=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,V=w(R,S.pointerType,!1),A(R)),V&&R.stopPropagation()},z.onMouseUp=R=>{R.currentTarget.contains(R.target)&&!S.ignoreEmulatedMouseEvents&&R.button===0&&T(R,S.pointerType||"mouse")};let O=R=>{if(R.button===0){if(S.isPressed=!1,$(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&hg(R,S.target)&&S.pointerType!=null?w(Hi(S.target,R),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&w(Hi(S.target,R),S.pointerType,!1),S.isOverTarget=!1}};z.onTouchStart=R=>{if(!R.currentTarget.contains(R.target))return;let V=Sz(R.nativeEvent);if(!V)return;S.activePointerId=V.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=R.currentTarget,S.pointerType="touch",!a&&!l&&Ur(R.currentTarget),d||W0(S.target),y(Ao(S.target,R),S.pointerType)&&R.stopPropagation(),D(Wo(R.currentTarget),"scroll",Z,!0)},z.onTouchMove=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Bw(R.nativeEvent,S.activePointerId),W=!0;V&&hg(V,R.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(Ao(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=w(Ao(S.target,R),S.pointerType,!1),A(Ao(S.target,R))),W&&R.stopPropagation()},z.onTouchEnd=R=>{if(!R.currentTarget.contains(R.target))return;if(!S.isPressed){R.stopPropagation();return}let V=Bw(R.nativeEvent,S.activePointerId),W=!0;V&&hg(V,R.currentTarget)&&S.pointerType!=null?(T(Ao(S.target,R),S.pointerType),W=w(Ao(S.target,R),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=w(Ao(S.target,R),S.pointerType,!1)),W&&R.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!d&&zl(S.target),$()},z.onTouchCancel=R=>{R.currentTarget.contains(R.target)&&(R.stopPropagation(),S.isPressed&&E(Ao(S.target,R)))};let Z=R=>{S.isPressed&&R.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};z.onDragStart=R=>{R.currentTarget.contains(R.target)&&E(R)}}return z},[D,a,l,$,d,E,A,w,y,T]);return C.useEffect(()=>()=>{var S;d||zl((S=b.current.target)!==null&&S!==void 0?S:void 0)},[d]),{isPressed:u||g,pressProps:ft(p,M)}}function R1(e){return e.tagName==="A"&&e.hasAttribute("href")}function dg(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Wo(i).HTMLInputElement&&!RA(i,n)||i instanceof Wo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&R1(i))&&n!=="Enter")}function Sz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Bw(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 Ao(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 Hi(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 Tz(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 Az(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function hg(e,t){let n=t.getBoundingClientRect(),r=Tz(e);return Az(n,r)}function pg(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function _A(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!R1(e)}function Lw(e,t){return e instanceof HTMLInputElement?!RA(e,t):_A(e)}const Pz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function RA(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Pz.has(e.type)}function _z({children:e}){let t=C.useMemo(()=>({register:()=>{}}),[]);return C.createElement(_1.Provider,{value:t},e)}class Rz{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 OA(e){let t=C.useRef({isFocused:!1,observer:null});Ct(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Ht(r=>{e==null||e(r)});return C.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 Rz("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 Oz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=C.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=OA(o),u=C.useCallback(l=>{const f=Tt(l.target);l.target===l.currentTarget&&f.activeElement===l.target&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Ya=null,Mz=new Set,rc=new Map,qa=!1,H0=!1;function op(e,t){for(let n of Mz)n(e,t)}function Fz(e){return!(e.metaKey||!oo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fh(e){qa=!0,Fz(e)&&(Ya="keyboard",op("keyboard",e))}function Dr(e){Ya="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(qa=!0,op("pointer",e))}function MA(e){z0(e)&&(qa=!0,Ya="virtual")}function FA(e){e.target===window||e.target===document||(!qa&&!H0&&(Ya="virtual",op("virtual",e)),qa=!1,H0=!1)}function kA(){qa=!1,H0=!0}function Vw(e){if(typeof window>"u"||rc.get(Wo(e)))return;const t=Wo(e),n=Tt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){qa=!0,r.apply(this,arguments)},n.addEventListener("keydown",fh,!0),n.addEventListener("keyup",fh,!0),n.addEventListener("click",MA,!0),t.addEventListener("focus",FA,!0),t.addEventListener("blur",kA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Dr,!0),n.addEventListener("pointermove",Dr,!0),n.addEventListener("pointerup",Dr,!0)):(n.addEventListener("mousedown",Dr,!0),n.addEventListener("mousemove",Dr,!0),n.addEventListener("mouseup",Dr,!0)),t.addEventListener("beforeunload",()=>{IA(e)},{once:!0}),rc.set(t,{focus:r})}const IA=(e,t)=>{const n=Wo(e),r=Tt(e);t&&r.removeEventListener("DOMContentLoaded",t),rc.has(n)&&(n.HTMLElement.prototype.focus=rc.get(n).focus,r.removeEventListener("keydown",fh,!0),r.removeEventListener("keyup",fh,!0),r.removeEventListener("click",MA,!0),n.removeEventListener("focus",FA,!0),n.removeEventListener("blur",kA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Dr,!0),r.removeEventListener("pointermove",Dr,!0),r.removeEventListener("pointerup",Dr,!0)):(r.removeEventListener("mousedown",Dr,!0),r.removeEventListener("mousemove",Dr,!0),r.removeEventListener("mouseup",Dr,!0)),rc.delete(n))};function kz(e){const t=Tt(e);let n;return t.readyState!=="loading"?Vw(e):(n=()=>{Vw(e)},t.addEventListener("DOMContentLoaded",n)),()=>IA(e,n)}typeof document<"u"&&kz();function Nw(){return Ya!=="pointer"}function gc(){return Ya}function BA(e){Ya=e,op(e,null)}function Au(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=C.useRef({isFocusWithin:!1}),a=C.useCallback(f=>{o.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(f),i&&i(!1))},[n,i,o]),u=OA(a),l=C.useCallback(f=>{!o.current.isFocusWithin&&document.activeElement===f.target&&(r&&r(f),i&&i(!0),o.current.isFocusWithin=!0,u(f))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let dh=!1,mg=0;function G0(){dh=!0,setTimeout(()=>{dh=!1},50)}function jw(e){e.pointerType==="touch"&&G0()}function Iz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",jw):document.addEventListener("touchend",G0),mg++,()=>{mg--,!(mg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",jw):document.removeEventListener("touchend",G0))}}function Bz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=C.useState(!1),u=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(Iz,[]);let{hoverProps:l,triggerHoverEnd:f}=C.useMemo(()=>{let d=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let b=g.currentTarget;u.target=b,t&&t({type:"hoverstart",target:b,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let b=g.currentTarget;r&&r({type:"hoverend",target:b,pointerType:v}),n&&n(!1),a(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{dh&&g.pointerType==="mouse"||d(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(p.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!dh&&d(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,n,r,i,u]);return C.useEffect(()=>{i&&f({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:o}}function Lz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=C.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=Ht(l=>{n&&hd(l,t)&&(i&&i(l),o.current.isPointerDown=!0)}),u=Ht(l=>{n&&n(l)});C.useEffect(()=>{let l=o.current;if(r)return;const f=t.current,d=Tt(f);if(typeof PointerEvent<"u"){let h=p=>{l.isPointerDown&&hd(p,t)&&u(p),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",h,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",h,!0)}}else{let h=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&hd(g,t)&&u(g),l.isPointerDown=!1},p=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&hd(g,t)&&u(g),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",h,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",p,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",h,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",p,!0)}}},[t,r,a,u])}function hd(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 Kw(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 LA(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Kw(e.onKeyDown),onKeyUp:Kw(e.onKeyUp)}}}function VA(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=C.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Tu(),u=Ht((d,h,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey})),n==null||n({type:"move",pointerType:h,deltaX:p,deltaY:g,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))}),l=Ht((d,h)=>{zl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:d.shiftKey,metaKey:d.metaKey,ctrlKey:d.ctrlKey,altKey:d.altKey}))});return{moveProps:C.useMemo(()=>{let d={},h=()=>{W0(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=$=>{if($.button===0){var y,w,T,E;u($,"mouse",$.pageX-((T=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&T!==void 0?T:0),$.pageY-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{$.button===0&&(l($,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};d.onMouseDown=$=>{$.button===0&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let b=$=>{let y=[...$.changedTouches].findIndex(({identifier:M})=>M===i.current.id);if(y>=0){var w,T;let{pageX:M,pageY:S}=$.changedTouches[y];var E,A;u($,"touch",M-((E=(w=i.current.lastPosition)===null||w===void 0?void 0:w.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}}},D=$=>{[...$.changedTouches].findIndex(({identifier:w})=>w===i.current.id)>=0&&(l($,"touch"),i.current.id=null,a(window,"touchmove",b),a(window,"touchend",D),a(window,"touchcancel",D))};d.onTouchStart=$=>{if($.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:w,identifier:T}=$.changedTouches[0];h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:y,pageY:w},i.current.id=T,o(window,"touchmove",b,!1),o(window,"touchend",D,!1),o(window,"touchcancel",D,!1)}}else{let g=b=>{if(b.pointerId===i.current.id){var D,$;let T=b.pointerType||"mouse";var y,w;u(b,T,b.pageX-((y=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&y!==void 0?y:0),b.pageY-((w=($=i.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&w!==void 0?w:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},v=b=>{if(b.pointerId===i.current.id){let D=b.pointerType||"mouse";l(b,D),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};d.onPointerDown=b=>{b.button===0&&i.current.id==null&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},i.current.id=b.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let p=(g,v,b)=>{h(),u(g,"keyboard",v,b),l(g,"keyboard")};return d.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},d},[i,o,a,u,l])}}const Vz=500;function NA(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Vz,accessibilityDescription:a}=e;const u=C.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:f}=Tu(),{pressProps:d}=Uc({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),u.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),u.current=void 0},o),p.pointerType==="touch")){let g=v=>{v.preventDefault()};l(p.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{f(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){u.current&&clearTimeout(u.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),h=jc(i&&!t?a:void 0);return{longPressProps:ft(d,h)}}function Wa(e){const t=Tt(e);if(gc()==="virtual"){let n=t.activeElement;CA(()=>{t.activeElement===n&&e.isConnected&&Ur(e)})}else Ur(e)}function Nz(e){const t=Wo(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 jz(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 jA(e,t){return e.nodeName!=="#comment"&&Nz(e)&&jz(e,t)&&(!e.parentElement||jA(e.parentElement,e))}const Uw=C.createContext(null),Y0="react-aria-focus-scope-restore";let St=null;function Kz(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=C.useRef(null),a=C.useRef(null),u=C.useRef([]),{parentNode:l}=C.useContext(Uw)||{},f=C.useMemo(()=>new J0({scopeRef:u}),[u]);Ct(()=>{let p=l||Xt.root;if(Xt.getTreeNode(p.scopeRef)&&St&&!hh(St,p.scopeRef)){let g=Xt.getTreeNode(St);g&&(p=g)}p.addChild(f),Xt.addNode(f)},[f,l]),Ct(()=>{let p=Xt.getTreeNode(u);p&&(p.contain=!!n)},[n]),Ct(()=>{var p;let g=(p=o.current)===null||p===void 0?void 0:p.nextSibling,v=[],b=D=>D.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Y0,b),g=g.nextSibling;return u.current=v,()=>{for(let D of v)D.removeEventListener(Y0,b)}},[t]),Yz(u,r,n),Wz(u,n),Zz(u,r,n),Gz(u,i),C.useEffect(()=>{const p=Tt(u.current?u.current[0]:void 0).activeElement;let g=null;if(_r(p,u.current)){for(let v of Xt.traverse())v.scopeRef&&_r(p,v.scopeRef.current)&&(g=v);g===Xt.getTreeNode(u)&&(St=g.scopeRef)}},[u]),Ct(()=>()=>{var p,g,v;let b=(v=(g=Xt.getTreeNode(u))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&v!==void 0?v:null;(u===St||hh(u,St))&&(!b||Xt.getTreeNode(b))&&(St=b),Xt.removeTreeNode(u)},[u]);let d=C.useMemo(()=>Uz(u),[]),h=C.useMemo(()=>({focusManager:d,parentNode:f}),[f,d]);return C.createElement(Uw.Provider,{value:h},C.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,C.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Uz(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Tt(n[0]).activeElement,l=n[0].previousElementSibling,f=Ta(n),d=Wn(f,{tabbable:i,accept:a},n);d.currentNode=_r(u,n)?u:l;let h=d.nextNode();return!h&&o&&(d.currentNode=l,h=d.nextNode()),h&&qn(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Tt(n[0]).activeElement,l=n[n.length-1].nextElementSibling,f=Ta(n),d=Wn(f,{tabbable:i,accept:a},n);d.currentNode=_r(u,n)?u:l;let h=d.previousNode();return!h&&o&&(d.currentNode=l,h=d.previousNode()),h&&qn(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ta(n),a=Wn(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&qn(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ta(n),a=Wn(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&qn(u,!0),u}}}const O1=["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"])'],zz=O1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";O1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const qz=O1.join(':not([hidden]):not([tabindex="-1"]),');function Ta(e){return e[0].parentElement}function ql(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Wz(e,t){let n=C.useRef(void 0),r=C.useRef(void 0);Ct(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Tt(i?i[0]:void 0);let a=f=>{if(f.key!=="Tab"||f.altKey||f.ctrlKey||f.metaKey||!ql(e)||f.isComposing)return;let d=o.activeElement,h=e.current;if(!h||!_r(d,h))return;let p=Ta(h),g=Wn(p,{tabbable:!0},h);if(!d)return;g.currentNode=d;let v=f.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=f.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=f.shiftKey?g.previousNode():g.nextNode()),f.preventDefault(),v&&qn(v,!0)},u=f=>{(!St||hh(St,e))&&_r(f.target,e.current)?(St=e,n.current=f.target):ql(e)&&!Bo(f.target,e)?n.current?n.current.focus():St&&St.current&&Z0(St.current):ql(e)&&(n.current=f.target)},l=f=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let d=gc();if(!((d==="virtual"||d===null)&&A1()&&DA())&&o.activeElement&&ql(e)&&!Bo(o.activeElement,e))if(St=e,o.body.contains(f.target)){var p;n.current=f.target,(p=n.current)===null||p===void 0||p.focus()}else St.current&&Z0(St.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(f=>f.addEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(f=>f.removeEventListener("focusin",u,!1)),i==null||i.forEach(f=>f.removeEventListener("focusout",l,!1))}},[e,t]),Ct(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function KA(e){return Bo(e)}function _r(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Bo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Xt.traverse(Xt.getTreeNode(t)))if(n&&_r(e,n.current))return!0;return!1}function Hz(e){return Bo(e,St)}function hh(e,t){var n;let r=(n=Xt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function qn(e,t=!1){if(e!=null&&!t)try{Wa(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function UA(e,t=!0){let n=e[0].previousElementSibling,r=Ta(e),i=Wn(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ta(e),i=Wn(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Z0(e,t=!0){qn(UA(e,t))}function Gz(e,t){const n=C.useRef(t);C.useEffect(()=>{if(n.current){St=e;const r=Tt(e.current?e.current[0]:void 0);!_r(r.activeElement,St.current)&&e.current&&Z0(e.current)}n.current=!1},[e])}function Yz(e,t,n){Ct(()=>{if(t||n)return;let r=e.current;const i=Tt(r?r[0]:void 0);let o=a=>{let u=a.target;_r(u,e.current)?St=e:KA(u)||(St=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 zw(e){let t=Xt.getTreeNode(St);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Zz(e,t,n){const r=C.useRef(typeof document<"u"?Tt(e.current?e.current[0]:void 0).activeElement:null);Ct(()=>{let i=e.current;const o=Tt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!St||hh(St,e))&&_r(o.activeElement,e.current)&&(St=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]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!ql(e)||a.isComposing)return;let u=i.activeElement;if(!Bo(u,e)||!zw(e))return;let l=Xt.getTreeNode(e);if(!l)return;let f=l.nodeToRestore,d=Wn(i.body,{tabbable:!0});d.currentNode=u;let h=a.shiftKey?d.previousNode():d.nextNode();if((!f||!i.body.contains(f)||f===i.body)&&(f=void 0,l.nodeToRestore=void 0),(!h||!Bo(h,e))&&f){d.currentNode=f;do h=a.shiftKey?d.previousNode():d.nextNode();while(Bo(h,e));a.preventDefault(),a.stopPropagation(),h?qn(h,!0):KA(f)?qn(f,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),Ct(()=>{const i=Tt(e.current?e.current[0]:void 0);if(!t)return;let o=Xt.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=Xt.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&Bo(i.activeElement,e)||i.activeElement===i.body&&zw(e))){let f=Xt.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let d=f.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){qw(d.nodeToRestore);return}d=d.parent}for(d=f.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&Xt.getTreeNode(d.scopeRef)){let h=UA(d.scopeRef.current,!0);qw(h);return}d=d.parent}}})}}}},[e,t])}function qw(e){e.dispatchEvent(new CustomEvent(Y0,{bubbles:!0,cancelable:!0}))&&qn(e)}function Wn(e,t,n){let r=t!=null&&t.tabbable?qz:zz,i=Tt(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)&&jA(o)&&(!n||_r(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 ap(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,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:o,accept:u});r.contains(l)&&(f.currentNode=l);let d=f.nextNode();return!d&&a&&(f.currentNode=r,d=f.nextNode()),d&&qn(d,!0),d},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,l=i||Tt(r).activeElement,f=Wn(r,{tabbable:o,accept:u});if(r.contains(l))f.currentNode=l;else{let h=gg(f);return h&&qn(h,!0),h??null}let d=f.previousNode();if(!d&&a){f.currentNode=r;let h=gg(f);if(!h)return null;d=h}return d&&qn(d,!0),d??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=Wn(r,{tabbable:i,accept:o}).nextNode();return u&&qn(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=Wn(r,{tabbable:i,accept:o}),u=gg(a);return u&&qn(u,!0),u??null}}}function gg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class M1{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 J0({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&&_r(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 M1;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 J0({scopeRef:null}),this.fastMap.set(null,this.root)}}class J0{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 Xt=new M1,Jz=C.createContext(null);function Xz(e){let t=C.useContext(Jz)||{};EA(t,e);let{ref:n,...r}=t;return r}function F1(e,t){let{focusProps:n}=Oz(e),{keyboardProps:r}=LA(e),i=ft(n,r),o=Xz(t),a=e.isDisabled?{}:o,u=C.useRef(e.autoFocus);return C.useEffect(()=>{u.current&&t.current&&Wa(t.current),u.current=!1},[t]),{focusableProps:ft({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const Qz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),eq=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function tq(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 Qz.has(n.script)}let t=e.split("-")[0];return eq.has(t)}const nq=Symbol.for("react-aria.i18n.locale");function zA(){let e=typeof window<"u"&&window[nq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:tq(e)?"rtl":"ltr"}}let X0=zA(),Wl=new Set;function Ww(){X0=zA();for(let e of Wl)e(X0)}function rq(){let e=E1(),[t,n]=C.useState(X0);return C.useEffect(()=>(Wl.size===0&&window.addEventListener("languagechange",Ww),Wl.add(n),()=>{Wl.delete(n),Wl.size===0&&window.removeEventListener("languagechange",Ww)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const iq=C.createContext(null);function Sn(){let e=rq();return C.useContext(iq)||e}const oq=Symbol.for("react-aria.i18n.locale"),aq=Symbol.for("react-aria.i18n.strings");let _s;class Jo{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=sq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[oq];if(_s===void 0){let i=window[aq];if(!i)return null;_s={};for(let o in i)_s[o]=new Jo({[n]:i[o]},n)}let r=_s==null?void 0:_s[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 sq(e,t,n="en-US"){if(t[e])return t[e];let r=uq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function uq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Hw=new Map,Gw=new Map;class qA{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=Hw.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),Hw.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=Gw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Gw.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 Yw=new WeakMap;function lq(e){let t=Yw.get(e);return t||(t=new Jo(e),Yw.set(e,t)),t}function WA(e,t){return t&&Jo.getGlobalDictionaryForPackage(t)||lq(e)}function Oi(e,t){let{locale:n}=Sn(),r=WA(e,t);return C.useMemo(()=>new qA(n,r),[n,r])}function Gs(e,t){return e-t*Math.floor(e/t)}const HA=1721426;function Aa(e,t,n,r){t=zc(e,t);let i=t-1,o=-2;return n<=2?o=0:Lo(t)&&(o=-1),HA-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function Lo(e){return e%4===0&&(e%100!==0||e%400===0)}function zc(e,t){return e==="BC"?1-t:t}function sp(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const cq={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 In{fromJulianDay(t){let n=t,r=n-HA,i=Math.floor(r/146097),o=Gs(r,146097),a=Math.floor(o/36524),u=Gs(o,36524),l=Math.floor(u/1461),f=Gs(u,1461),d=Math.floor(f/365),h=i*400+a*100+l*4+d+(a!==4&&d!==4?1:0),[p,g]=sp(h),v=n-Aa(p,g,1,1),b=2;n<Aa(p,g,3,1)?b=0:Lo(g)&&(b=1);let D=Math.floor(((v+b)*12+373)/367),$=n-Aa(p,g,D,1)+1;return new Yt(p,g,D,$)}toJulianDay(t){return Aa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return cq[Lo(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Lo(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 fq={"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 an(e,t){return t=Lt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Q0(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 GA(e,t){return an(e,up(t))}const dq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function k1(e,t,n){let r=e.calendar.toJulianDay(e),i=n?dq[n]:yq(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function YA(e){return Xi(Date.now(),e)}function up(e){return kn(YA(e))}function ZA(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function JA(e,t){return Zw(e)-Zw(t)}function Zw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let vg=null;function qc(){return vg==null&&(vg=new Intl.DateTimeFormat().resolvedOptions().timeZone),vg}function Wc(e){return e.subtract({days:e.day-1})}function eb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function hq(e){return Wc(e.subtract({months:e.month-1}))}function pq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function mq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function vc(e,t,n){let r=k1(e,t,n);return e.subtract({days:r})}function gq(e,t,n){return vc(e,t,n).add({days:6})}const Jw=new Map;function vq(e){if(Intl.Locale){let n=Jw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&Jw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function yq(e){let t=vq(e);return t&&fq[t]||0}function bq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((k1(Wc(e),t,n)+r)/7)}function I1(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function B1(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function fu(e){e=Lt(e,new In);let t=zc(e.era,e.year);return XA(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function XA(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 tb(e,t){if(t==="UTC")return 0;if(e>0&&t===qc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=QA(e,t);return XA(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const Xw=new Map;function QA(e,t){let n=Xw.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"}),Xw.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 Qw=864e5;function $q(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>xq(e,t,o))}function xq(e,t,n){let r=QA(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 Ji(e,t,n="compatible"){let r=Hr(e);if(t==="UTC")return fu(r);if(t===qc()&&n==="compatible"){r=Lt(r,new In);let l=new Date,f=zc(r.era,r.year);return l.setFullYear(f,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=fu(r),o=tb(i-Qw,t),a=tb(i+Qw,t),u=$q(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 eP(e,t,n="compatible"){return new Date(Ji(e,t,n))}function Xi(e,t){let n=tb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),f=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new $c(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,l,f,d)}function kn(e){return new Yt(e.calendar,e.era,e.year,e.month,e.day)}function Hr(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 bc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function eD(e){return new Hc(e.hour,e.minute,e.second,e.millisecond)}function Lt(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,Ha(r),r}function tP(e,t,n){if(e instanceof $c)return e.timeZone===t?e:Dq(e,t);let r=Ji(e,t,n);return Xi(r,t)}function wq(e){let t=fu(e)-e.offset;return new Date(t)}function Dq(e,t){let n=fu(e)-e.offset;return Lt(Xi(n,t),e.calendar)}const _l=36e5;function lp(e,t){let n=e.copy(),r="hour"in n?oP(n,t):0;nb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,rb(n),nP(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Cq(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 l=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let 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 nb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function rb(e){for(;e.month<1;)nb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,nb(e,1)}function Cq(e){for(;e.day<1;)e.month--,rb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,rb(e)}function nP(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 Ha(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),nP(e)}function L1(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function rP(e,t){return lp(e,L1(t))}function V1(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),Ha(n),n}function yc(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),iP(n),n}function Eq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=pd(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=pd(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=pd(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=pd(e.hour,24),t}function iP(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 pd(e,t){let n=e%t;return n<0&&(n+=t),n}function oP(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Eq(e)}function aP(e,t){let n=e.copy();return oP(n,t),n}function Sq(e,t){return aP(e,L1(t))}function N1(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Qi(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],Ha(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=Qi(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=Qi(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Qi(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),Ha(i),i}function j1(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 l=o>=12;a=l?12:0,u=l?23:11}i.hour=Qi(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=Qi(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Qi(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Qi(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Qi(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 sP(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=lp(Hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ji(i,e.timeZone)}else n=fu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Xi(n,e.timeZone);return Lt(r,e.calendar)}function Tq(e,t){return sP(e,L1(t))}function Aq(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Hr(e),u=Lt(yc(a,{hour:i}),new In),l=[Ji(u,e.timeZone,"earlier"),Ji(u,e.timeZone,"later")].filter(v=>Xi(v,e.timeZone).day===u.day)[0],f=Lt(yc(a,{hour:o}),new In),d=[Ji(f,e.timeZone,"earlier"),Ji(f,e.timeZone,"later")].filter(v=>Xi(v,e.timeZone).day===f.day).pop(),h=fu(e)-e.offset,p=Math.floor(h/_l),g=h%_l;return h=Qi(p,n,Math.floor(l/_l),Math.floor(d/_l),r==null?void 0:r.round)*_l+g,Lt(Xi(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return j1(e,t,n,r);case"era":case"year":case"month":case"day":{let i=N1(Hr(e),t,n,r),o=Ji(i,e.timeZone);return Lt(Xi(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Pq(e,t,n){let r=Hr(e),i=yc(V1(r,t),t);if(i.compare(r)===0)return e;let o=Ji(i,e.timeZone,n);return Lt(Xi(o,e.timeZone),e.calendar)}const _q=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Rq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Oq(e){let t=e.match(_q);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yt(di(t[1],0,9999),di(t[2],1,12),1);return n.day=di(t[3],0,n.calendar.getDaysInMonth(n)),n}function Mq(e){let t=e.match(Rq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=di(t[1],-9999,9999),r=n<1?"BC":"AD",i=new bc(r,n<1?-n+1:n,di(t[2],1,12),1,t[4]?di(t[4],0,23):0,t[5]?di(t[5],0,59):0,t[6]?di(t[6],0,59):0,t[7]?di(t[7],0,1/0)*1e3:0);return i.day=di(t[3],0,i.calendar.getDaysInMonth(i)),i}function di(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 uP(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 lP(e){let t=Lt(e,new In),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 cP(e){return`${lP(e)}T${uP(e)}`}function Fq(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 kq(e){return`${cP(e)}${Fq(e.offset)}[${e.timeZone}]`}function K1(e){let t=typeof e[0]=="object"?e.shift():new In,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 Iq=new WeakMap;class Yt{copy(){return this.era?new Yt(this.calendar,this.era,this.year,this.month,this.day):new Yt(this.calendar,this.year,this.month,this.day)}add(t){return lp(this,t)}subtract(t){return rP(this,t)}set(t){return V1(this,t)}cycle(t,n,r){return N1(this,t,n,r)}toDate(t){return eP(this,t)}toString(){return lP(this)}compare(t){return ZA(this,t)}constructor(...t){Kc(this,Iq,{writable:!0,value:void 0});let[n,r,i,o,a]=K1(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,Ha(this)}}var Bq=new WeakMap;class Hc{copy(){return new Hc(this.hour,this.minute,this.second,this.millisecond)}add(t){return aP(this,t)}subtract(t){return Sq(this,t)}set(t){return yc(this,t)}cycle(t,n,r){return j1(this,t,n,r)}toString(){return uP(this)}compare(t){return JA(this,t)}constructor(t=0,n=0,r=0,i=0){Kc(this,Bq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,iP(this)}}var Lq=new WeakMap;class bc{copy(){return this.era?new bc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new bc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return lp(this,t)}subtract(t){return rP(this,t)}set(t){return V1(yc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return N1(this,t,n,r);default:return j1(this,t,n,r)}}toDate(t,n){return eP(this,t,n)}toString(){return cP(this)}compare(t){let n=ZA(this,t);return n===0?JA(this,Hr(t)):n}constructor(...t){Kc(this,Lq,{writable:!0,value:void 0});let[n,r,i,o,a]=K1(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,Ha(this)}}var Vq=new WeakMap;class $c{copy(){return this.era?new $c(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new $c(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return sP(this,t)}subtract(t){return Tq(this,t)}set(t,n){return Pq(this,t,n)}cycle(t,n,r){return Aq(this,t,n,r)}toDate(){return wq(this)}toString(){return kq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-tP(t,this.timeZone).toDate().getTime()}constructor(...t){Kc(this,Vq,{writable:!0,value:void 0});let[n,r,i,o,a]=K1(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Ha(this)}}const Ys=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Nq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Vd=[1867,1911,1925,1988,2018],Fo=["meiji","taisho","showa","heisei","reiwa"];function tD(e){const t=Ys.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?Ys.length-1:t===0?0:t-1}function yg(e){let t=Vd[Fo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yt(e.year+t,e.month,e.day)}class jq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=tD(n);return new Yt(this,Fo[r],n.year-Vd[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(yg(t))}balanceDate(t){let n=yg(t),r=tD(n);Fo[r]!==t.era&&(t.era=Fo[r],t.year=n.year-Vd[r]),this.constrainDate(t)}constrainDate(t){let n=Fo.indexOf(t.era),r=Nq[n];if(r!=null){let[i,o,a]=r,u=i-Vd[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]=Ys[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Fo}getYearsInEra(t){let n=Fo.indexOf(t.era),r=Ys[n],i=Ys[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(yg(t))}getMinimumMonthInYear(t){let n=nD(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=nD(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function nD(e){if(e.year===1){let t=Fo.indexOf(e.era);return Ys[t]}}const fP=-543;class Kq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=zc(n.era,n.year);return new Yt(this,r-fP,n.month,n.day)}toJulianDay(t){return super.toJulianDay(rD(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(rD(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function rD(e){let[t,n]=sp(e.year+fP);return new Yt(t,n,e.month,e.day)}const ph=1911;function dP(e){return e.era==="minguo"?e.year+ph:1-e.year+ph}function iD(e){let t=e-ph;return t>0?["minguo",t]:["before_minguo",1-t]}class Uq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=zc(n.era,n.year),[i,o]=iD(r);return new Yt(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(oD(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=iD(dP(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(oD(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ph}constructor(...t){super(...t),this.identifier="roc"}}function oD(e){let[t,n]=sp(dP(e));return new Yt(t,n,e.month,e.day)}const aD=1948320,sD=[0,31,62,93,124,155,186,216,246,276,306,336];class zq{fromJulianDay(t){let n=t-aD,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-sD[a]+1;return new Yt(this,r,a+1,u)}toJulianDay(t){let n=aD-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=sD[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Gs(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const bg=78,uD=80;class qq extends In{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-bg,i=t-Aa(n.era,n.year,1,1),o;i<uD?(r--,o=Lo(n.year-1)?31:30,i+=o+155+90+10):(o=Lo(n.year)?31:30,i-=uD);let a,u;if(i<o)a=1,u=i+1;else{let l=i-o;l<155?(a=Math.floor(l/31)+2,u=l%31+1):(l-=155,a=Math.floor(l/30)+7,u=l%30+1)}return new Yt(this,r,a,u)}toJulianDay(t){let n=t.year+bg,[r,i]=sp(n),o,a;return Lo(i)?(o=31,a=Aa(r,i,3,21)):(o=30,a=Aa(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&&Lo(t.year+bg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const mh=1948440,lD=1948439,xr=1300,Rs=1600,Wq=460322;function gh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function hP(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+gh(t,r,1,1)))/29.5)+1),o=n-gh(t,r,i,1)+1;return new Yt(e,r,i,o)}function cD(e){return(14+11*e)%30<11}class U1{fromJulianDay(t){return hP(this,mh,t)}toJulianDay(t){return gh(mh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&cD(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return cD(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Hq extends U1{fromJulianDay(t){return hP(this,lD,t)}toJulianDay(t){return gh(lD,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Gq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let ib,Zs;function Nd(e){return Wq+Zs[e-xr]}function Hl(e,t){let n=e-xr,r=1<<11-(t-1);return(ib[n]&r)===0?29:30}function fD(e,t){let n=Nd(e);for(let r=1;r<t;r++)n+=Hl(e,r);return n}function dD(e){return Zs[e+1-xr]-Zs[e-xr]}class Yq extends U1{fromJulianDay(t){let n=t-mh,r=Nd(xr),i=Nd(Rs);if(n<r||n>i)return super.fromJulianDay(t);{let o=xr-1,a=1,u=1;for(;u>0;){o++,u=n-Nd(o)+1;let l=dD(o);if(u===l){a=12;break}else if(u<l){let f=Hl(o,a);for(a=1;u>f;)u-=f,a++,f=Hl(o,a);break}}return new Yt(this,o,a,n-fD(o,a)+1)}}toJulianDay(t){return t.year<xr||t.year>Rs?super.toJulianDay(t):mh+fD(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<xr||t.year>Rs?super.getDaysInMonth(t):Hl(t.year,t.month)}getDaysInYear(t){return t.year<xr||t.year>Rs?super.getDaysInYear(t):dD(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",ib||(ib=new Uint16Array(Uint8Array.from(atob(Gq),t=>t.charCodeAt(0)).buffer)),!Zs){Zs=new Uint32Array(Rs-xr+1);let t=0;for(let n=xr;n<=Rs;n++){Zs[n-xr]=t;for(let r=1;r<=12;r++)t+=Hl(n,r)}}}}const hD=347997,pP=1080,mP=24*pP,Zq=29,Jq=12*pP+793,Xq=Zq*mP+Jq;function Da(e){return Gs(e*7+1,19)<7}function jd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Gs(3*(r+1),7)<3&&(r+=1),r}function Qq(e){let t=jd(e-1),n=jd(e);return jd(e+1)-n===356?2:n-t===382?1:0}function ic(e){return jd(e)+Qq(e)}function gP(e){return ic(e+1)-ic(e)}function eW(e){let t=gP(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function md(e,t){if(t>=6&&!Da(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=eW(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Da(e)?30:0:30}class tW{fromJulianDay(t){let n=t-hD,r=n*mP/Xq,i=Math.floor((19*r+234)/235)+1,o=ic(i),a=Math.floor(n-o);for(;a<1;)i--,o=ic(i),a=Math.floor(n-o);let u=1,l=0;for(;l<a;)l+=md(i,u),u++;u--,l-=md(i,u);let f=a-l;return new Yt(this,i,u,f)}toJulianDay(t){let n=ic(t.year);for(let r=1;r<t.month;r++)n+=md(t.year,r);return n+t.day+hD}getDaysInMonth(t){return md(t.year,t.month)}getMonthsInYear(t){return Da(t.year)?13:12}getDaysInYear(t){return gP(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Da(n.year)&&!Da(t.year)&&n.month>6?t.month--:!Da(n.year)&&Da(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const ob=1723856,pD=1824665,ab=5500;function vh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function z1(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-vh(e,n,1,1))/30),i=t+1-vh(e,n,r,1);return[n,r,i]}function vP(e){return Math.floor(e%4/3)}function yP(e,t){return t%13!==0?30:vP(e)+5}class q1{fromJulianDay(t){let[n,r,i]=z1(ob,t),o="AM";return n<=0&&(o="AA",n+=ab),new Yt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=ab),vh(ob,n,t.month,t.day)}getDaysInMonth(t){return yP(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+vP(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class nW extends q1{fromJulianDay(t){let[n,r,i]=z1(ob,t);return n+=ab,new Yt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class rW extends q1{fromJulianDay(t){let[n,r,i]=z1(pD,t),o="CE";return n<=0&&(o="BCE",n=1-n),new Yt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),vh(pD,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),yP(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 iW(e){switch(e){case"buddhist":return new Kq;case"ethiopic":return new q1;case"ethioaa":return new nW;case"coptic":return new rW;case"hebrew":return new tW;case"indian":return new qq;case"islamic-civil":return new U1;case"islamic-tbla":return new Hq;case"islamic-umalqura":return new Yq;case"japanese":return new jq;case"persian":return new zq;case"roc":return new Uq;case"gregory":default:return new In}}let $g=new Map;class Er{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 sW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=uW(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=bP(t,n),this.options=n}}const oW={true:{ja:"h11"},false:{}};function bP(e,t={}){if(typeof t.hour12=="boolean"&&aW()){t={...t};let i=oW[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($g.has(n))return $g.get(n);let r=new Intl.DateTimeFormat(e,t);return $g.set(n,r),r}let xg=null;function aW(){return xg==null&&(xg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),xg}let wg=null;function sW(){return wg==null&&(wg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),wg}function uW(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=bP(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 $i(e){e=TA(e??{},lW);let{locale:t}=Sn();return C.useMemo(()=>new Er(t,e),[t,e])}function lW(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 Dg=new Map,sb=!1;try{sb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let yh=!1;try{yh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $P={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class xP{format(t){let n="";if(!sb&&this.options.signDisplay!=null?n=fW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!yh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=$P[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!sb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!yh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=cW(t,n),this.options=n}}function cW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!yh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$P[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(Dg.has(i))return Dg.get(i);let o=new Intl.NumberFormat(e,t);return Dg.set(i,o),o}function fW(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 dW=new RegExp("^.*\\(.*\\).*$"),hW=["latn","arab","hanidec","deva","beng"];class wP{parse(t){return Cg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Cg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Cg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const mD=new Map;function Cg(e,t,n){let r=gD(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of hW)if(i!==r.options.numberingSystem){let o=gD(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function gD(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=mD.get(n);return r||(r=new pW(e,t),mD.set(n,r)),r}class pW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=gd(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 wP(this.locale,a).parse(new xP(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&dW.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=gd(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=gd(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=gd(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=gW(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 vD=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),mW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function gW(e,t,n,r){var i,o,a,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),f=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),h=mW.map(j=>l.formatToParts(j));var p;let g=(p=(i=f.find(j=>j.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&p!==void 0?p:"-",v=(o=d.find(j=>j.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let D=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(j=>j.type==="decimal"))===null||a===void 0?void 0:a.value,$=(u=f.find(j=>j.type==="group"))===null||u===void 0?void 0:u.value,y=f.filter(j=>!vD.has(j.type)).map(j=>yD(j.value)),w=h.flatMap(j=>j.filter(O=>!vD.has(O.type)).map(O=>yD(O.value))),T=[...new Set([...y,...w])].sort((j,O)=>O.length-j.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((j,O)=>[j,O])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:D,group:$,literals:E,numeral:S,index:j=>String(M.get(j))}}function gd(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function yD(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vW(e={}){let{locale:t}=Sn();return C.useMemo(()=>new xP(t,e),[t,e])}let Eg=new Map;function DP(e){let{locale:t}=Sn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Eg.has(n))return Eg.get(n);let r=new Intl.Collator(t,e);return Eg.set(n,r),r}function CP(e){let t=DP({usage:"search",...e}),n=C.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=C.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=C.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,l=a.length;for(;u+l<=o.length;u++){let f=o.slice(u,u+l);if(t.compare(a,f)===0)return!0}return!1},[t]);return C.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function yW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:l,preventFocusOnPress:f,allowFocusWhenDisabled:d,onClick:h,href:p,target:g,rel:v,type:b="button"}=e,D;n==="button"?D={type:b,disabled:r}:D={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?p:void 0,target:n==="a"?g:void 0,type:n==="input"?b:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:$,isPressed:y}=Uc({onPressStart:o,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:f,ref:t}),{focusableProps:w}=F1(e,t);d&&(w.tabIndex=r?-1:w.tabIndex);let T=ft(w,$,uo(e,{labelable:!0}));return{isPressed:y,buttonProps:ft(D,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 EP={};EP={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 SP={};SP={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 TP={};TP={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 AP={};AP={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 PP={};PP={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 _P={};_P={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 RP={};RP={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 OP={};OP={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 MP={};MP={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 FP={};FP={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 kP={};kP={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 IP={};IP={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 BP={};BP={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 LP={};LP={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 VP={};VP={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 NP={};NP={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 jP={};jP={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 KP={};KP={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 UP={};UP={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 zP={};zP={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 qP={};qP={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 WP={};WP={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 HP={};HP={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 GP={};GP={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 YP={};YP={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 ZP={};ZP={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 JP={};JP={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 XP={};XP={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 QP={};QP={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 e6={};e6={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 t6={};t6={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 n6={};n6={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 r6={};r6={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 i6={};i6={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 Gc={};Gc={"ar-AE":EP,"bg-BG":SP,"cs-CZ":TP,"da-DK":AP,"de-DE":PP,"el-GR":_P,"en-US":RP,"es-ES":OP,"et-EE":MP,"fi-FI":FP,"fr-FR":kP,"he-IL":IP,"hr-HR":BP,"hu-HU":LP,"it-IT":VP,"ja-JP":NP,"ko-KR":jP,"lt-LT":KP,"lv-LV":UP,"nb-NO":zP,"nl-NL":qP,"pl-PL":WP,"pt-BR":HP,"pt-PT":GP,"ro-RO":YP,"ru-RU":ZP,"sk-SK":JP,"sl-SI":XP,"sr-SP":QP,"sv-SE":e6,"tr-TR":t6,"uk-UA":n6,"zh-CN":r6,"zh-TW":i6};function o6(e){return e&&e.__esModule?e.default:e}const W1=new WeakMap;function xc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function bW(e){let t=Oi(o6(Gc),"@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=$i({weekday:"long",month:"long",year:"numeric",day:"numeric",era:xc(n)||xc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return C.useMemo(()=>{if(!a&&n&&r)if(an(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=lb(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function ub(e,t,n,r){let i=Oi(o6(Gc),"@react-aria/calendar"),o=xc(e)||xc(t),a=$i({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=$i({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return C.useMemo(()=>{if(an(e,Wc(e))){if(an(t,eb(e)))return a.format(e.toDate(n));if(an(t,eb(t)))return r?lb(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?lb(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function lb(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let f=0;f<o.length;f++){let d=o[f];if(d.source==="shared"&&d.type==="literal")a=f;else if(d.source==="endRange")break}let u="",l="";for(let f=0;f<o.length;f++)f<a?u+=o[f].value:f>a&&(l+=o[f].value);return t.format("dateRange",{startDate:u,endDate:l})}const a6=7e3;let br=null;function Js(e,t="assertive",n=a6){br?br.announce(e,t,n):(br=new xW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?br.announce(e,t,n):setTimeout(()=>{br!=null&&br.isAttached()&&(br==null||br.announce(e,t,n))},100))}function $W(e){br&&br.clear(e)}class xW{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=a6){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 wW(e){return e&&e.__esModule?e.default:e}function s6(e,t){let n=Oi(wW(Gc),"@react-aria/calendar"),r=uo(e),i=ub(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=ub(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Rw(()=>{t.isFocused||Js(o)},[o]);let a=bW(t);Rw(()=>{a&&Js(a,"polite",4e3)},[a]);let u=uu([!!e.errorMessage,e.isInvalid,e.validationState]);W1.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[l,f]=C.useState(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&l&&(f(!1),t.setFocused(!0));let[h,p]=C.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(p(!1),t.setFocused(!0));let v=lu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:ft(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:f},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:u},title:i}}function DW(e,t){return s6(e,t)}function CW(e,t,n){let r=s6(e,t),i=C.useRef(!1),o=C.useRef(typeof window<"u"?window:null);return bi(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),bi(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},bi(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function EW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:o}=Sn(),a=v=>{switch(v.key){case"Enter":case" ":v.preventDefault(),t.selectFocusedDate();break;case"PageUp":v.preventDefault(),v.stopPropagation(),t.focusPreviousSection(v.shiftKey);break;case"PageDown":v.preventDefault(),v.stopPropagation(),t.focusNextSection(v.shiftKey);break;case"End":v.preventDefault(),v.stopPropagation(),t.focusSectionEnd();break;case"Home":v.preventDefault(),v.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":v.preventDefault(),v.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":v.preventDefault(),v.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":v.preventDefault(),v.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":v.preventDefault(),v.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(v.preventDefault(),t.setAnchorDate(null));break}},u=ub(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:f}=W1.get(t),d=lu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":f}),h=$i({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:p}=Sn(),g=C.useMemo(()=>{let v=vc(up(t.timeZone),p,i);return[...new Array(7).keys()].map(b=>{let $=v.add({days:b}).toDate(t.timeZone);return h.format($)})},[p,t.timeZone,h,i]);return{gridProps:ft(d,{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 SW(e){return e&&e.__esModule?e.default:e}function TW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=W1.get(t),u=Oi(SW(Gc),"@react-aria/calendar"),l=$i({weekday:"long",day:"numeric",month:"long",year:"numeric",era:xc(r),timeZone:t.timeZone}),f=t.isSelected(r),d=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),p=!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&&an(t.value,r));g&&(f=!0),r=TA(r,Q0);let v=C.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),b=GA(r,t.timeZone),D=C.useMemo(()=>{let O="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(an(r,t.value.start)||an(r,t.value.end))&&(O=a+", "),O+=l.format(v),b?O=u.format(f?"todayDateSelected":"todayDate",{date:O}):f&&(O=u.format("dateSelected",{date:O})),t.minValue&&an(r,t.minValue)?O+=", "+u.format("minimumDate"):t.maxValue&&an(r,t.maxValue)&&(O+=", "+u.format("maximumDate")),O},[l,v,u,f,b,r,t,a]),$="";"anchorDate"in t&&d&&!t.isReadOnly&&p&&(t.anchorDate?$=u.format("finishRangeSelectionPrompt"):$=u.format("startRangeSelectionPrompt"));let y=jc($),w=C.useRef(!1),T=C.useRef(!1),E=C.useRef(void 0),{pressProps:A,isPressed:M}=Uc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!p||t.isReadOnly,onPressStart(O){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(O.pointerType==="mouse"||O.pointerType==="touch")){if(t.highlightedRange&&!g){if(an(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(an(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let Z=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),w.current=!0};O.pointerType==="touch"?E.current=setTimeout(Z,200):Z()}},onPressEnd(){T.current=!1,w.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(O){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&&!w.current)t.selectDate(r),t.setFocusedDate(r);else if(O.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Z=r.add({days:1});t.isInvalid(Z)&&(Z=r.subtract({days:1})),t.isInvalid(Z)||t.setFocusedDate(Z)}else O.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=an(r,t.focusedDate)?0:-1),C.useEffect(()=>{d&&n.current&&(Ur(n.current),gc()!=="pointer"&&document.activeElement===n.current&&ch(n.current,{containingElement:ip(n.current)}))},[d,n]);let z=$i({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),j=C.useMemo(()=>z.formatToParts(v).find(O=>O.type==="day").value,[z,v]);return{cellProps:{role:"gridcell","aria-disabled":!p||void 0,"aria-selected":f||void 0,"aria-invalid":g||void 0},buttonProps:ft(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!p||void 0,"aria-label":D,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(O){"highlightDate"in t&&(O.pointerType!=="touch"||t.isDragging)&&p&&t.highlightDate(r)},onPointerDown(O){"releasePointerCapture"in O.target&&O.target.releasePointerCapture(O.pointerId)},onContextMenu(O){O.preventDefault()}}),isPressed:M,isFocused:d,isSelected:f,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:j}}const cp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},u6={...cp,customError:!0,valid:!1},Ca={isInvalid:!1,validationDetails:cp,validationErrors:[]},AW=C.createContext({}),du="__formValidationState"+Date.now();function Yc(e){if(e[du]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[du];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return PW(e)}function PW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:u6}:null,f=C.useMemo(()=>{if(!a||i==null)return null;let j=_W(a,i);return bD(j)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let d=C.useContext(AW),h=C.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>cb(d[j])):cb(d[r]):[],[d,r]),[p,g]=C.useState(d),[v,b]=C.useState(!1);d!==p&&(g(d),b(!1));let D=C.useMemo(()=>bD(v?[]:h),[v,h]),$=C.useRef(Ca),[y,w]=C.useState(Ca),T=C.useRef(Ca),E=()=>{if(!A)return;M(!1);let j=f||o||$.current;Sg(j,T.current)||(T.current=j,w(j))},[A,M]=C.useState(!1);return C.useEffect(E),{realtimeValidation:l||D||f||o||Ca,displayValidation:u==="native"?l||D||y:l||D||f||o||y,updateValidation(j){u==="aria"&&!Sg(y,j)?w(j):$.current=j},resetValidation(){let j=Ca;Sg(j,T.current)||(T.current=j,w(j)),u==="native"&&M(!1),b(!0)},commitValidation(){u==="native"&&M(!0),b(!0)}}}function cb(e){return e?Array.isArray(e)?e:[e]:[]}function _W(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return cb(n)}return[]}function bD(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:u6}:null}function Sg(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 bh(...e){let t=new Set,n=!1,r={...cp};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 l6(e,t,n){let{validationBehavior:r,focus:i}=e;Ct(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(OW(n.current))}});let o=Ht(()=>{t.resetValidation()}),a=Ht(l=>{var f;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(f=n.current)===null||f===void 0?void 0:f.form;if(!l.defaultPrevented&&n&&d&&MW(d)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),BA("keyboard")}l.preventDefault()}),u=Ht(()=>{t.commitValidation()});C.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let f=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",u),f==null||f.addEventListener("reset",o),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",u),f==null||f.removeEventListener("reset",o)}},[n,a,u,o,r])}function RW(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 OW(e){return{isInvalid:!e.validity.valid,validationDetails:RW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function MW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function fp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Yn(t);let a=Yn(),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 l=lu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function dp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=fp(e),u=uu([!!t,!!n,r,i]),l=uu([!!t,!!n,r,i]);return a=ft(a,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:l}}}const FW=0,kW=100,IW=1;function BW(e){const{isDisabled:t=!1,minValue:n=FW,maxValue:r=kW,numberFormatter:i,step:o=IW,orientation:a="horizontal"}=e;let u=C.useMemo(()=>{let N=(r-n)/10;return N=Pl(N,0,N+o,o),Math.max(N,o)},[o,r,n]),l=C.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let ce=ie===0?n:N[ie-1],xe=ie===N.length-1?r:N[ie+1];return Pl(ne,ce,xe,o)}),[n,r,o]),f=C.useMemo(()=>l(xD(e.value)),[e.value]),d=C.useMemo(()=>{var N;return l((N=xD(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=wD(e.value,e.defaultValue,e.onChange),p=wD(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=or(f,d,h),[b,D]=C.useState(new Array(g.length).fill(!1)),$=C.useRef(new Array(g.length).fill(!0)),[y,w]=C.useState(void 0),T=C.useRef(g),E=C.useRef(b);let A=N=>{T.current=N,v(N)},M=N=>{E.current=N,D(N)};function S(N){return(N-n)/(r-n)}function z(N){return N===0?n:g[N-1]}function j(N){return N===g.length-1?r:g[N+1]}function O(N){return $.current[N]}function Z(N,ne){$.current[N]=ne}function R(N,ne){if(t||!O(N))return;const ie=z(N),ce=j(N);ne=Pl(ne,ie,ce,o);let xe=$D(T.current,N,ne);A(xe)}function V(N,ne){if(t||!O(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=$D(E.current,N,ne),M(E.current),p&&ie&&!E.current.some(Boolean)&&p(T.current)}function W(N){return i.format(N)}function L(N,ne){R(N,_(ne))}function k(N){return Math.round((N-n)/o)*o+n}function _(N){const ne=N*(r-n)+n;return cu(k(ne),n,r)}function H(N,ne=1){let ie=Math.max(ne,o);R(N,Pl(g[N]+ie,n,r,o))}function U(N,ne=1){let ie=Math.max(ne,o);R(N,Pl(g[N]-ie,n,r,o))}return{values:g,getThumbValue:N=>g[N],setThumbValue:R,setThumbPercent:L,isThumbDragging:N=>b[N],setThumbDragging:V,focusedThumb:y,setFocusedThumb:w,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:z,getThumbMaxValue:j,getPercentValue:_,isThumbEditable:O,setThumbEditable:Z,incrementThumb:H,decrementThumb:U,step:o,pageSize:u,orientation:a,isDisabled:t}}function $D(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function xD(e){if(e!=null)return Array.isArray(e)?e:[e]}function wD(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const DD={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 LW(e={}){let{style:t,isFocusable:n}=e,[r,i]=C.useState(!1),{focusWithinProps:o}=Au({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=C.useMemo(()=>r?t:t?{...DD,...t}:DD,[r]);return{visuallyHiddenProps:{...o,style:a}}}function VW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=LW(e);return C.createElement(n,ft(o,a),t)}const H1=new WeakMap;function fb(e,t){let n=H1.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function NW(e,t,n){let{labelProps:r,fieldProps:i}=fp(e),o=e.orientation==="vertical";var a;H1.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}=Sn(),{addGlobalListener:l,removeGlobalListener:f}=Tu();const d=C.useRef(null),h=u==="rtl",p=C.useRef(null),{moveProps:g}=VA({onMoveStart(){p.current=null},onMove({deltaX:$,deltaY:y}){if(!n.current)return;let{height:w,width:T}=n.current.getBoundingClientRect(),E=o?w:T;p.current==null&&d.current!=null&&(p.current=t.getThumbPercent(d.current)*E);let A=o?y:$;if((o||h)&&(A=-A),p.current+=A,d.current!=null&&n.current){const M=cu(p.current/E,0,1);t.setThumbPercent(d.current,M)}},onMoveEnd(){d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null)}});let v=C.useRef(void 0),b=($,y,w,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,R=((o?T:w)-(o?M:S))/z;(u==="rtl"||o)&&(R=1-R);let V=t.getPercentValue(R),W,L=t.values.findIndex(k=>V-k<0);if(L===0)W=L;else if(L===-1)W=t.values.length-1;else{let k=t.values[L-1],_=t.values[L];Math.abs(k-V)<Math.abs(_-V)?W=L-1:W=L}W>=0&&t.isThumbEditable(W)?($.preventDefault(),d.current=W,t.setFocusedThumb(W),v.current=y,t.setThumbDragging(d.current,!0),t.setThumbValue(W,V),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):d.current=null}},D=$=>{var y,w;((w=$.pointerId)!==null&&w!==void 0?w:(y=$.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(d.current!=null&&(t.setThumbDragging(d.current,!1),d.current=null),f(window,"mouseup",D,!1),f(window,"touchend",D,!1),f(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var $;($=document.getElementById(fb(t,0)))===null||$===void 0||$.focus(),BA("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:ft({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||b($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||b($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){b($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map(($,y)=>fb(t,y)).join(" "),"aria-live":"off"}}}function jW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:l=t.orientation,name:f}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Sn(),{addGlobalListener:g,removeGlobalListener:v}=Tu(),b=H1.get(t);var D;const{labelProps:$,fieldProps:y}=fp({...e,id:fb(t,n),"aria-labelledby":`${b.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),w=t.values[n],T=C.useCallback(()=>{u.current&&Ur(u.current)},[u]),E=t.focusedThumb===n;C.useEffect(()=>{E&&T()},[E,T]);let A=p==="rtl",M=C.useRef(null),{keyboardProps:S}=LA({onKeyDown(L){let{getThumbMaxValue:k,getThumbMinValue:_,decrementThumb:H,incrementThumb:U,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),ne(n,!0),L.key){case"PageUp":U(n,ie);break;case"PageDown":H(n,ie);break;case"Home":N(n,_(n));break;case"End":N(n,k(n));break}ne(n,!1)}}),{moveProps:z}=VA({onMoveStart(){M.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:k,pointerType:_,shiftKey:H}){const{getThumbPercent:U,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:ce,pageSize:xe}=t;if(!a.current)return;let{width:De,height:Ee}=a.current.getBoundingClientRect(),J=h?Ee:De;if(M.current==null&&(M.current=U(n)*J),_==="keyboard")L>0&&A||L<0&&!A||k>0?ne(n,H?xe:ce):ie(n,H?xe:ce);else{let ve=h?k:L;(h||A)&&(ve=-ve),M.current+=ve,N(n,cu(M.current/J,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!d);const{focusableProps:j}=F1(ft(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let O=C.useRef(void 0),Z=L=>{T(),O.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",R,!1),g(window,"touchend",R,!1),g(window,"pointerup",R,!1)},R=L=>{var k,_;((_=L.pointerId)!==null&&_!==void 0?_:(k=L.changedTouches)===null||k===void 0?void 0:k[0].identifier)===O.current&&(T(),t.setThumbDragging(n,!1),v(window,"mouseup",R,!1),v(window,"touchend",R,!1),v(window,"pointerup",R,!1))},V=t.getThumbPercent(n);(h||p==="rtl")&&(V=1-V);let W=d?{}:ft(S,z,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||Z(L.pointerId)},onTouchStart:L=>{Z(L.changedTouches[0].identifier)}});return P1(u,w,L=>{t.setThumbValue(n,L)}),{inputProps:ft(j,y,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:w,name:f,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[b["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[b["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${V*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:d,isFocused:E}}function KW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[l,f]=or(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=F1(e,t),h=Yc({...e,value:l}),{isInvalid:p,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:b,fieldProps:D,descriptionProps:$,errorMessageProps:y}=dp({...e,isInvalid:p,errorMessage:e.errorMessage||g}),w=uo(e,{labelable:!0});const T={type:a,pattern:e.pattern};return P1(t,l,f),l6(e,h,t),C.useEffect(()=>{if(t.current instanceof Wo(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:ft(w,n==="input"?T:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:E=>f(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,...d,...D}),descriptionProps:$,errorMessageProps:y,isInvalid:p,validationErrors:g,validationDetails:v}}var c6={};c6={Empty:"فارغ"};var f6={};f6={Empty:"Изпразни"};var d6={};d6={Empty:"Prázdné"};var h6={};h6={Empty:"Tom"};var p6={};p6={Empty:"Leer"};var m6={};m6={Empty:"Άδειο"};var g6={};g6={Empty:"Empty"};var v6={};v6={Empty:"Vacío"};var y6={};y6={Empty:"Tühjenda"};var b6={};b6={Empty:"Tyhjä"};var $6={};$6={Empty:"Vide"};var x6={};x6={Empty:"ריק"};var w6={};w6={Empty:"Prazno"};var D6={};D6={Empty:"Üres"};var C6={};C6={Empty:"Vuoto"};var E6={};E6={Empty:"空"};var S6={};S6={Empty:"비어 있음"};var T6={};T6={Empty:"Tuščias"};var A6={};A6={Empty:"Tukšs"};var P6={};P6={Empty:"Tom"};var _6={};_6={Empty:"Leeg"};var R6={};R6={Empty:"Pusty"};var O6={};O6={Empty:"Vazio"};var M6={};M6={Empty:"Vazio"};var F6={};F6={Empty:"Gol"};var k6={};k6={Empty:"Не заполнено"};var I6={};I6={Empty:"Prázdne"};var B6={};B6={Empty:"Prazen"};var L6={};L6={Empty:"Prazno"};var V6={};V6={Empty:"Tomt"};var N6={};N6={Empty:"Boş"};var j6={};j6={Empty:"Пусто"};var K6={};K6={Empty:"空"};var U6={};U6={Empty:"空白"};var z6={};z6={"ar-AE":c6,"bg-BG":f6,"cs-CZ":d6,"da-DK":h6,"de-DE":p6,"el-GR":m6,"en-US":g6,"es-ES":v6,"et-EE":y6,"fi-FI":b6,"fr-FR":$6,"he-IL":x6,"hr-HR":w6,"hu-HU":D6,"it-IT":C6,"ja-JP":E6,"ko-KR":S6,"lt-LT":T6,"lv-LV":A6,"nb-NO":P6,"nl-NL":_6,"pl-PL":R6,"pt-BR":O6,"pt-PT":M6,"ro-RO":F6,"ru-RU":k6,"sk-SK":I6,"sl-SI":B6,"sr-SP":L6,"sv-SE":V6,"tr-TR":N6,"uk-UA":j6,"zh-CN":K6,"zh-TW":U6};function UW(e){return e&&e.__esModule?e.default:e}function zW(e){const t=C.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:l,onIncrement:f,onIncrementPage:d,onDecrement:h,onDecrementPage:p,onDecrementToMin:g,onIncrementToMax:v}=e;const b=Oi(UW(z6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);C.useEffect(()=>()=>D(),[]);let $=O=>{if(!(O.ctrlKey||O.metaKey||O.shiftKey||O.altKey||u))switch(O.key){case"PageUp":if(d){O.preventDefault(),d==null||d();break}case"ArrowUp":case"Up":f&&(O.preventDefault(),f==null||f());break;case"PageDown":if(p){O.preventDefault(),p==null||p();break}case"ArrowDown":case"Down":h&&(O.preventDefault(),h==null||h());break;case"Home":g&&(O.preventDefault(),g==null||g());break;case"End":v&&(O.preventDefault(),v==null||v());break}},y=C.useRef(!1),w=()=>{y.current=!0},T=()=>{y.current=!1},E=r===""?b.format("Empty"):(r||`${n}`).replace("-","−");C.useEffect(()=>{y.current&&($W("assertive"),Js(E,"assertive"))},[E]);const A=Ht(O=>{D(),f==null||f(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&A(60)},O)}),M=Ht(O=>{D(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&M(60)},O)});let S=O=>{O.preventDefault()},{addGlobalListener:z,removeAllGlobalListeners:j}=Tu();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":l||void 0,onKeyDown:$,onFocus:w,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T},decrementButtonProps:{onPressStart:()=>{M(400),z(window,"contextmenu",S)},onPressEnd:()=>{D(),j()},onFocus:w,onBlur:T}}}var q6={};q6={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 W6={};W6={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 H6={};H6={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 G6={};G6={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 Y6={};Y6={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 Z6={};Z6={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 J6={};J6={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 X6={};X6={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 Q6={};Q6={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 e_={};e_={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 t_={};t_={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 n_={};n_={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 r_={};r_={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 i_={};i_={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 o_={};o_={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 a_={};a_={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 s_={};s_={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 u_={};u_={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 l_={};l_={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 c_={};c_={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 f_={};f_={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 d_={};d_={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 h_={};h_={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 p_={};p_={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 m_={};m_={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 g_={};g_={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var v_={};v_={buttonLabel:"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 y_={};y_={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 b_={};b_={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 $_={};$_={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 x_={};x_={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 w_={};w_={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var D_={};D_={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 C_={};C_={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 E_={};E_={"ar-AE":q6,"bg-BG":W6,"cs-CZ":H6,"da-DK":G6,"de-DE":Y6,"el-GR":Z6,"en-US":J6,"es-ES":X6,"et-EE":Q6,"fi-FI":e_,"fr-FR":t_,"he-IL":n_,"hr-HR":r_,"hu-HU":i_,"it-IT":o_,"ja-JP":a_,"ko-KR":s_,"lt-LT":u_,"lv-LV":l_,"nb-NO":c_,"nl-NL":f_,"pl-PL":d_,"pt-BR":h_,"pt-PT":p_,"ro-RO":m_,"ru-RU":g_,"sk-SK":v_,"sl-SI":y_,"sr-SP":b_,"sv-SE":$_,"tr-TR":x_,"uk-UA":w_,"zh-CN":D_,"zh-TW":C_};const xi={top:"top",bottom:"top",left:"left",right:"left"},$h={top:"bottom",bottom:"top",left:"right",right:"left"},qW={top:"left",left:"top"},db={top:"height",left:"width"},S_={width:"totalWidth",height:"totalHeight"},vd={};let un=typeof document<"u"?window.visualViewport:null;function CD(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var l;let f=((l=un==null?void 0:un.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var d;t=(d=un==null?void 0:un.width)!==null&&d!==void 0?d:r;var h;n=(h=un==null?void 0:un.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,un&&(o=un.offsetTop,a=un.offsetLeft)}else({width:t,height:n,top:o,left:a}=Xs(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(T1()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){u.top=0,u.left=0;var p;o=(p=un==null?void 0:un.pageTop)!==null&&p!==void 0?p:0;var g;a=(g=un==null?void 0:un.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function WW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function ED(e,t,n,r,i,o,a){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,f=r[db[e]],d=r.scroll[xi[e]]+o,h=f+r.scroll[xi[e]]-o,p=t-l+a[e]-r[xi[e]],g=t-l+n+a[e]-r[xi[e]];return p<d?d-p:g>h?Math.max(h-g,d-p):0}function HW(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 SD(e){if(vd[e])return vd[e];let[t,n]=e.split(" "),r=xi[t]||"right",i=qW[r];xi[n]||(n="center");let o=db[r],a=db[i];return vd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},vd[e]}function Tg(e,t,n,r,i,o,a,u,l,f){let{placement:d,crossPlacement:h,axis:p,crossAxis:g,size:v,crossSize:b}=r,D={};var $;D[g]=($=e[g])!==null&&$!==void 0?$:0;var y,w,T,E;h==="center"?D[g]+=(((y=e[b])!==null&&y!==void 0?y:0)-((w=n[b])!==null&&w!==void 0?w:0))/2:h!==g&&(D[g]+=((T=e[b])!==null&&T!==void 0?T:0)-((E=n[b])!==null&&E!==void 0?E:0)),D[g]+=o;const A=e[g]-n[b]+l+f,M=e[g]+e[b]-l-f;if(D[g]=cu(D[g],A,M),d===p){const S=u?a[v]:t[S_[v]];D[$h[p]]=Math.floor(S-e[p]+i)}else D[p]=Math.floor(e[p]+e[v]+i);return D}function GW(e,t,n,r,i,o,a,u){const l=r?n.height:t[S_.height];var f;let d=e.top!=null?n.top+e.top:n.top+(l-((f=e.bottom)!==null&&f!==void 0?f:0)-a);var h,p,g,v,b,D;let $=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-d-(((p=i.top)!==null&&p!==void 0?p:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,d+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-(((b=i.top)!==null&&b!==void 0?b:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+o));return Math.min(t.height-o*2,$)}function TD(e,t,n,r,i,o){let{placement:a,axis:u,size:l}=o;var f,d;if(a===u)return Math.max(0,n[u]-e[u]-((f=e.scroll[u])!==null&&f!==void 0?f:0)+t[u]-((d=r[u])!==null&&d!==void 0?d:0)-r[$h[u]]-i);var h;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((h=r[u])!==null&&h!==void 0?h:0)-r[$h[u]]-i)}function YW(e,t,n,r,i,o,a,u,l,f,d,h,p,g,v,b){let D=SD(e),{size:$,crossAxis:y,crossSize:w,placement:T,crossPlacement:E}=D,A=Tg(t,u,n,D,d,h,f,p,v,b),M=d,S=TD(u,f,t,i,o+d,D);if(a&&r[$]>S){let ce=SD(`${$h[T]} ${E}`),xe=Tg(t,u,n,ce,d,h,f,p,v,b);TD(u,f,t,i,o+d,ce)>S&&(D=ce,A=xe,M=d)}let z="bottom";D.axis==="top"?D.placement==="top"?z="top":D.placement==="bottom"&&(z="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?z="bottom":D.crossPlacement==="bottom"&&(z="top"));let j=ED(y,A[y],n[w],u,l,o,f);A[y]+=j;let O=GW(A,u,f,p,i,o,n.height,z);g&&g<O&&(O=g),n.height=Math.min(n.height,O),A=Tg(t,u,n,D,M,h,f,p,v,b),j=ED(y,A[y],n[w],u,l,o,f),A[y]+=j;let Z={},R=t[y]+.5*t[w]-A[y]-i[xi[y]];const V=v/2+b;var W,L,k,_;const H=xi[y]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((L=i.right)!==null&&L!==void 0?L:0):((k=i.top)!==null&&k!==void 0?k:0)+((_=i.bottom)!==null&&_!==void 0?_:0),U=n[w]-H-v/2-b,N=t[y]+v/2-(A[y]+i[xi[y]]),ne=t[y]+t[w]-v/2-(A[y]+i[xi[y]]),ie=cu(R,N,ne);return Z[y]=cu(ie,V,U),{position:A,maxHeight:O,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:D.placement}}function ZW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:l,crossOffset:f,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?JW(r):document.documentElement,v=g===document.documentElement;const b=window.getComputedStyle(g).position;let D=!!b&&b!=="static",$=v?Xs(n):AD(n,g);if(!v){let{marginTop:Z,marginLeft:R}=window.getComputedStyle(n);$.top+=parseInt(Z,10)||0,$.left+=parseInt(R,10)||0}let y=Xs(r),w=HW(r);var T,E;y.width+=((T=w.left)!==null&&T!==void 0?T:0)+((E=w.right)!==null&&E!==void 0?E:0);var A,M;y.height+=((A=w.top)!==null&&A!==void 0?A:0)+((M=w.bottom)!==null&&M!==void 0?M:0);let S=WW(i),z=CD(u),j=CD(g),O=u.tagName==="BODY"?Xs(g):AD(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),YW(t,$,y,S,w,o,a,z,j,O,l,f,D,d,h,p)}function Xs(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+o-u,left:n+a-l,width:r,height:i}}function AD(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=Xs(e);let i=Xs(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 JW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!PD(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!PD(t);)t=t.parentElement;return t||document.documentElement}function PD(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 T_=new WeakMap;function XW(e){let{triggerRef:t,isOpen:n,onClose:r}=e;C.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||T_.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let zt=typeof document<"u"?window.visualViewport:null;function QW(e){let{direction:t}=Sn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:v,maxHeight:b,arrowBoundaryOffset:D=0}=e,[$,y]=C.useState(null),w=[p,a,i.current,r.current,o.current,u,l,f,d,h,g,t,b,D,n],T=C.useRef(zt==null?void 0:zt.scale);C.useEffect(()=>{g&&(T.current=zt==null?void 0:zt.scale)},[g]);let E=C.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!f||(zt==null?void 0:zt.scale)!==T.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var O;let _=(O=document.activeElement)===null||O===void 0?void 0:O.getBoundingClientRect(),H=o.current.getBoundingClientRect();var Z;if(j={type:"top",offset:((Z=_==null?void 0:_.top)!==null&&Z!==void 0?Z:0)-H.top},j.offset>H.height/2){j.type="bottom";var R;j.offset=((R=_==null?void 0:_.bottom)!==null&&R!==void 0?R:0)-H.bottom}}let V=i.current;if(!b&&i.current){var W;V.style.top="0px",V.style.bottom="";var L;V.style.maxHeight=((L=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let k=ZW({placement:tH(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:l,boundaryElement:f,offset:d,crossOffset:h,maxHeight:b,arrowSize:n,arrowBoundaryOffset:D});if(k.position){if(V.style.top="",V.style.bottom="",V.style.left="",V.style.right="",Object.keys(k.position).forEach(_=>V.style[_]=k.position[_]+"px"),V.style.maxHeight=k.maxHeight!=null?k.maxHeight+"px":"",j&&document.activeElement&&o.current){let _=document.activeElement.getBoundingClientRect(),H=o.current.getBoundingClientRect(),U=_[j.type]-H[j.type];o.current.scrollTop+=U-j.offset}y(k)}},w);Ct(E,w),eH(E),Mw({ref:i,onResize:E}),Mw({ref:r,onResize:E});let A=C.useRef(!1);Ct(()=>{let j,O=()=>{A.current=!0,clearTimeout(j),j=setTimeout(()=>{A.current=!1},500),E()},Z=()=>{A.current&&O()};return zt==null||zt.addEventListener("resize",O),zt==null||zt.addEventListener("scroll",Z),()=>{zt==null||zt.removeEventListener("resize",O),zt==null||zt.removeEventListener("scroll",Z)}},[E]);let M=C.useCallback(()=>{A.current||v==null||v()},[v,A]);XW({triggerRef:r,isOpen:g,onClose:v&&M});var S,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(S=$==null?void 0:$.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(z=$==null?void 0:$.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:E}}function eH(e){Ct(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function tH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Gi=[];function nH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;C.useEffect(()=>(i&&Gi.push(t),()=>{let v=Gi.indexOf(t);v>=0&&Gi.splice(v,1)}),[i,t]);let l=()=>{Gi[Gi.length-1]===t&&n&&n()},f=v=>{(!u||u(v.target))&&Gi[Gi.length-1]===t&&(v.stopPropagation(),v.preventDefault())},d=v=>{(!u||u(v.target))&&(Gi[Gi.length-1]===t&&(v.stopPropagation(),v.preventDefault()),l())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),l())};Lz({ref:t,onInteractOutside:o&&i?d:void 0,onInteractOutsideStart:f});let{focusWithinProps:p}=Au({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||Hz(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function rH(e,t,n){let{type:r}=e,{isOpen:i}=t;C.useEffect(()=>{n&&n.current&&T_.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Yn();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const Ag=typeof document<"u"&&window.visualViewport,iH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let yd=0,Pg;function oH(e={}){let{isDisabled:t}=e;Ct(()=>{if(!t)return yd++,yd===1&&(Nc()?Pg=sH():Pg=aH()),()=>{yd--,yd===0&&Pg()}},[t])}function aH(){return Ua(Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"))}function sH(){let e,t,n=f=>{e=ip(f.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Bs(e,"overscrollBehavior","contain"))},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&f.preventDefault()},i=()=>{t&&t()},o=f=>{let d=f.target;uH(d)&&(u(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",Ag&&(Ag.height<window.innerHeight?requestAnimationFrame(()=>{_D(d)}):Ag.addEventListener("resize",()=>_D(d),{once:!0}))}))},a=null,u=()=>{if(a)return;let f=()=>{window.scrollTo(0,0)},d=window.pageXOffset,h=window.pageYOffset;a=Ua(Rl(window,"scroll",f),Bs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Bs(document.documentElement,"overflow","hidden"),Bs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(d,h)}),window.scrollTo(0,0)},l=Ua(Rl(document,"touchstart",n,{passive:!1,capture:!0}),Rl(document,"touchmove",r,{passive:!1,capture:!0}),Rl(document,"touchend",i,{passive:!1,capture:!0}),Rl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),l()}}function Bs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Rl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function _D(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ip(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 uH(e){return e instanceof HTMLInputElement&&!iH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ol=new WeakMap,gr=[];function A_(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(p);let f=p=>{if(n.has(p)||p.parentElement&&r.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(p.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:f}),h=f(l);if(h===NodeFilter.FILTER_ACCEPT&&o(l),h!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)o(p),p=d.nextNode()}},o=l=>{var f;let d=(f=Ol.get(l))!==null&&f!==void 0?f:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ol.set(l,d+1))};gr.length&&gr[gr.length-1].disconnect(),i(t);let a=new MutationObserver(l=>{for(let f of l)if(!(f.type!=="childList"||f.addedNodes.length===0)&&![...n,...r].some(d=>d.contains(f.target))){for(let d of f.removedNodes)d instanceof Element&&(n.delete(d),r.delete(d));for(let d of f.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?n.add(d):d instanceof Element&&i(d)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return gr.push(u),()=>{a.disconnect();for(let l of r){let f=Ol.get(l);f!=null&&(f===1?(l.removeAttribute("aria-hidden"),Ol.delete(l)):Ol.set(l,f-1))}u===gr[gr.length-1]?(gr.pop(),gr.length&&gr[gr.length-1].observe()):gr.splice(gr.indexOf(u),1)}}function lH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:l,underlayProps:f}=nH({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:d,arrowProps:h,placement:p}=QW({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return oH({isDisabled:i||!t.isOpen}),Ct(()=>{if(t.isOpen&&!i&&r.current)return A_([r.current])},[i,t.isOpen,r]),{popoverProps:ft(l,d),arrowProps:h,underlayProps:f,placement:p}}const cH=C.createContext({});function fH(){var e;return(e=C.useContext(cH))!==null&&e!==void 0?e:{}}const P_=C.createContext(null);function dH(e){let t=E1(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=C.useState(!1),a=C.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=fH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=C.createElement(Kz,{restoreFocus:!0,contain:i&&!r},l)),l=C.createElement(P_.Provider,{value:a},C.createElement(_z,null,l)),jo.createPortal(l,n)}function hH(){let e=C.useContext(P_),t=e==null?void 0:e.setContain;Ct(()=>{t==null||t(!0)},[t])}const hp=new WeakMap;function pH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function __(e,t){let n=hp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${pH(t)}`}function hb(e){return Bd()?e.altKey:e.ctrlKey}const mH=1e3;function gH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=C.useRef({search:"",timeout:void 0}).current,o=a=>{let u=vH(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 l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},mH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function vH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function R_(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:f=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:b}=Sn(),D=rp(),$=R=>{var V;if(R.altKey&&R.key==="Tab"&&R.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(R.target)))return;const W=(J,ve)=>{if(J!=null){if(t.isLink(J)&&v==="selection"&&l&&!hb(R)){var we;jo.flushSync(()=>{t.setFocusedKey(J,ve)});let me=(we=g.current)===null||we===void 0?void 0:we.querySelector(`[data-key="${CSS.escape(J.toString())}"]`),ue=t.getItemProps(J);me&&D.open(me,R,ue.href,ue.routerOptions);return}if(t.setFocusedKey(J,ve),t.isLink(J)&&v==="override")return;R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&!hb(R)&&t.replaceSelection(J)}};switch(R.key){case"ArrowDown":if(n.getKeyBelow){var L,k,_;let J=t.focusedKey!=null?(L=n.getKeyBelow)===null||L===void 0?void 0:L.call(n,t.focusedKey):(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n);J==null&&o&&(J=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowUp":if(n.getKeyAbove){var H,U,N;let J=t.focusedKey!=null?(H=n.getKeyAbove)===null||H===void 0?void 0:H.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n);J==null&&o&&(J=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,ce;let J=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;J==null&&o&&(J=b==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(ce=n.getLastKey)===null||ce===void 0?void 0:ce.call(n,t.focusedKey)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var xe,De,Ee;let J=t.focusedKey!=null?(xe=n.getKeyRightOf)===null||xe===void 0?void 0:xe.call(n,t.focusedKey):null;J==null&&o&&(J=b==="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)),J!=null&&(R.preventDefault(),W(J,b==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getFirstKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&R.shiftKey)return;R.preventDefault();let J=n.getLastKey(t.focusedKey,Fs(R));t.setFocusedKey(J),J!=null&&(Fs(R)&&R.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(J):l&&t.replaceSelection(J))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let J=n.getKeyPageBelow(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let J=n.getKeyPageAbove(t.focusedKey);J!=null&&(R.preventDefault(),W(J))}break;case"a":Fs(R)&&t.selectionMode==="multiple"&&u!==!0&&(R.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(R.stopPropagation(),R.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(R.shiftKey)r.current.focus();else{let J=Wn(r.current,{tabbable:!0}),ve,we;do we=J.lastChild(),we&&(ve=we);while(we);ve&&!ve.contains(document.activeElement)&&Ur(ve)}break}}},y=C.useRef({top:0,left:0});bi(g,"scroll",p?void 0:()=>{var R,V,W,L;y.current={top:(W=(R=g.current)===null||R===void 0?void 0:R.scrollTop)!==null&&W!==void 0?W:0,left:(L=(V=g.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&L!==void 0?L:0}});let w=R=>{if(t.isFocused){R.currentTarget.contains(R.target)||t.setFocused(!1);return}if(R.currentTarget.contains(R.target)){if(t.setFocused(!0),t.focusedKey==null){var V,W;let _=U=>{U!=null&&(t.setFocusedKey(U),l&&t.replaceSelection(U))},H=R.relatedTarget;var L,k;H&&R.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?_((L=t.lastSelectedKey)!==null&&L!==void 0?L:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):_((k=t.firstSelectedKey)!==null&&k!==void 0?k:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!p&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||Ur(_),gc()==="keyboard"&&ch(_,{containingElement:r.current}))}}},T=R=>{R.currentTarget.contains(R.relatedTarget)||t.setFocused(!1)},E=C.useRef(!1);bi(r,$z,d?R=>{let{detail:V}=R;R.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=Ht(()=>{var R,V;let W=(V=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&V!==void 0?V:null;if(W==null){var L;(L=r.current)===null||L===void 0||L.dispatchEvent(new CustomEvent(AA,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});Ow(()=>{E.current&&A()},[t.collection,A]);let M=Ht(()=>{t.collection.size>0&&(E.current=!1)});Ow(()=>{M()},[t.focusedKey,M]),bi(r,bz,d?R=>{R.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=C.useRef(i);C.useEffect(()=>{if(S.current){var R,V;let k=null;var W;i==="first"&&(k=(W=(R=n.getFirstKey)===null||R===void 0?void 0:R.call(n))!==null&&W!==void 0?W:null);var L;i==="last"&&(k=(L=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&L!==void 0?L:null);let _=t.selectedKeys;if(_.size){for(let H of _)if(t.canSelectItem(H)){k=H;break}}t.setFocused(!0),t.setFocusedKey(k),k==null&&!d&&r.current&&Wa(r.current)}},[]);let z=C.useRef(t.focusedKey);C.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==z.current||S.current)&&g.current&&r.current){let R=gc(),V=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!V)return;(R==="keyboard"||S.current)&&(SA(g.current,V),R!=="virtual"&&ch(V,{containingElement:r.current}))}!d&&t.isFocused&&t.focusedKey==null&&z.current!=null&&r.current&&Wa(r.current),z.current=t.focusedKey,S.current=!1}),bi(r,"react-aria-focus-scope-restore",R=>{R.preventDefault(),t.setFocused(!0)});let j={onKeyDown:$,onFocus:w,onBlur:T,onMouseDown(R){g.current===R.target&&R.preventDefault()}},{typeSelectProps:O}=gH({keyboardDelegate:n,selectionManager:t});f||(j=ft(O,j));let Z;return d?Z=-1:Z=t.focusedKey==null?0:-1,{collectionProps:{...j,tabIndex:Z}}}function yH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:u,isDisabled:l,onAction:f,allowsDifferentPressOrigin:d,linkBehavior:h="action"}=e,p=rp();t=Yn(t);let g=_=>{if(_.pointerType==="keyboard"&&hb(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.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):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(Fs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};C.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!a)u?u():document.activeElement!==i.current&&i.current&&Wa(i.current);else{var H;let U=new CustomEvent(AA,{cancelable:!0,bubbles:!0});(H=i.current)===null||H===void 0||H.dispatchEvent(U)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let v={};!a&&!l?v={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:l&&(v.onMouseDown=_=>{_.preventDefault()});let b=n.isLink(r)&&h==="override",D=n.isLink(r)&&h!=="selection"&&h!=="none",$=!l&&n.canSelectItem(r)&&!b,y=(f||D)&&!l,w=y&&(n.selectionBehavior==="replace"?!$:!$||n.isEmpty),T=y&&$&&n.selectionBehavior==="replace",E=w||T,A=C.useRef(null),M=E&&$,S=C.useRef(!1),z=C.useRef(!1),j=_=>{if(f&&f(),D&&i.current){let H=n.getItemProps(r);p.open(i.current,_,H.href,H.routerOptions)}},O={};o?(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,_.pointerType==="keyboard"&&(!E||OD())&&g(_)},d?(O.onPressUp=w?void 0:_=>{_.pointerType==="mouse"&&$&&g(_)},O.onPress=w?j:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&$&&g(_)}):O.onPress=_=>{if(w||T&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!RD())return;j(_)}else _.pointerType!=="keyboard"&&$&&g(_)}):(O.onPressStart=_=>{A.current=_.pointerType,S.current=M,z.current=w,$&&(_.pointerType==="mouse"&&!w||_.pointerType==="keyboard"&&(!y||OD()))&&g(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&E&&RD()||_.pointerType==="mouse"&&z.current)&&(E?j(_):$&&g(_))}),v["data-key"]=r,O.preventFocusOnPress=a;let{pressProps:Z,isPressed:R}=Uc(O),V=T?_=>{A.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),j(_))}:void 0,{longPressProps:W}=NA({isDisabled:!M,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),L=_=>{A.current==="touch"&&S.current&&_.preventDefault()},k=n.isLink(r)?_=>{za.isOpening||_.preventDefault()}:void 0;return{itemProps:ft(v,$||w?Z:{},M?W:{},{onDoubleClick:V,onDragStartCapture:L,onClick:k,id:t}),isPressed:R,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:$,hasAction:E}}function RD(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function OD(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class MD{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 O_{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&&!mc(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&&!mc(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 MD(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 MD(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function bH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=DP({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,f=C.useMemo(()=>o||new O_({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,l]),{collectionProps:d}=R_({...e,ref:i,selectionManager:t,keyboardDelegate:f});return{listProps:d}}function $H(e,t,n){let r=uo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=bH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Au({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Yn(e.id);hp.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:f,fieldProps:d}=fp({...e,id:l,labelElementType:"span"});return{labelProps:f,listBoxProps:ft(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ft(d,a)})}}function M_(e){return null}M_.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:xH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];C.Children.forEach(o,f=>{l.push({type:"item",element:f})}),yield*l}}}};function xH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&C.Children.count(e.children)>0)}let wH=M_;class DH{build(t,n){return this.context=n,FD(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(C.isValidElement(n)&&n.type===C.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=[];C.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 l of u)o++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let 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(C.isValidElement(t.element)&&t.element.type===C.Fragment){let D=[];C.Children.forEach(t.element.props.children,y=>{D.push(y)});var o;let $=(o=t.index)!==null&&o!==void 0?o:0;for(const y of D)yield*this.getFullNode({element:y,index:$++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}a=n.renderer(t.value)}if(C.isValidElement(a)){let D=a.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let T=a.type;throw new Error(`Unknown element <${T}> in collection.`)}let $=D.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,w=$.next();for(;!w.done&&w.value;){let T=w.value;t.index=y;var l;let E=(l=T.key)!==null&&l!==void 0?l:null;E==null&&(E=T.element?null:this.getKey(a,t,n,r));let M=[...this.getFullNode({...T,key:E,index:y,wrapper:CH(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${a.key}`:a.key,i)];for(let S of M){var f,d;S.value=(d=(f=T.value)!==null&&f!==void 0?f:t.value)!==null&&d!==void 0?d:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${_g(S.type)}> in <${_g((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${_g(t.type)}> is supported.`);y++,yield S}w=$.next(M)}return}if(t.key==null||t.type==null)return;let p=this;var g,v;let b={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:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:FD(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let $ of t.childNodes()){$.key!=null&&($.key=`${b.key}${$.key}`);let y=p.getFullNode({...$,index:D},p.getChildState(n,$),b.key,b);for(let w of y)D++,yield w}})};yield b}constructor(){this.cache=new WeakMap}}function FD(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 CH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function _g(e){return e[0].toUpperCase()+e.slice(1)}function EH(e,t,n){let r=C.useMemo(()=>new DH,[]),{children:i,items:o,collection:a}=e;return C.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:o},n);return t(l)},[r,i,o,a,n,t])}function pp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function SH(e){return TH(e)}function TH(e,t){for(let n of e)return n}function Rg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...kD(e,t),t],i=[...kD(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 kD(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 ID=new WeakMap;function F_(e){let t=ID.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(pp(o,e)):n++};return r(e),ID.set(e,n),n}function AH(e,t,n){var r,i;let{key:o}=e,a=hp.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var f;let d=(f=e.isSelected)!==null&&f!==void 0?f:t.selectionManager.isSelected(o);var h;let p=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var b;let D=(b=e.shouldUseVirtualFocus)!==null&&b!==void 0?b:a==null?void 0:a.shouldUseVirtualFocus;var $;let y=($=e.isVirtualized)!==null&&$!==void 0?$:a==null?void 0:a.isVirtualized,w=uu(),T=uu(),E={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};oo()&&T1()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=w,E["aria-describedby"]=T);let A=t.collection.getItem(o);if(y){let k=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(k)?void 0:k+1,E["aria-setsize"]=F_(t.collection)}let M=a!=null&&a.onAction?()=>{var k;return a==null||(k=a.onAction)===null||k===void 0?void 0:k.call(a,o)}:void 0,S=__(t,o),{itemProps:z,isPressed:j,isFocused:O,hasAction:Z,allowsSelection:R}=yH({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&v,isVirtualized:y,shouldUseVirtualFocus:D,isDisabled:l,onAction:M||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?Ua(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:V}=Bz({isDisabled:l||!v,onHoverStart(){Nw()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=uo(A==null?void 0:A.props);delete W.id;let L=pz(A==null?void 0:A.props);return{optionProps:{...E,...ft(W,z,V,L),id:S},labelProps:{id:w},descriptionProps:{id:T},isFocused:O,isFocusVisible:O&&Nw(),isSelected:d,isDisabled:l,isPressed:j,allowsSelection:R,hasAction:Z}}var k_={};k_={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var I_={};I_={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var B_={};B_={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var L_={};L_={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var V_={};V_={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var N_={};N_={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var j_={};j_={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var K_={};K_={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var U_={};U_={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var z_={};z_={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var q_={};q_={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var W_={};W_={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var H_={};H_={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var G_={};G_={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Y_={};Y_={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var Z_={};Z_={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var J_={};J_={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var X_={};X_={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Q_={};Q_={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var eR={};eR={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var tR={};tR={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var nR={};nR={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var rR={};rR={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var iR={};iR={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var oR={};oR={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var aR={};aR={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var sR={};sR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var uR={};uR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var lR={};lR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var cR={};cR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var fR={};fR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var dR={};dR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var hR={};hR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var pR={};pR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var mR={};mR={"ar-AE":k_,"bg-BG":I_,"cs-CZ":B_,"da-DK":L_,"de-DE":V_,"el-GR":N_,"en-US":j_,"es-ES":K_,"et-EE":U_,"fi-FI":z_,"fr-FR":q_,"he-IL":W_,"hr-HR":H_,"hu-HU":G_,"it-IT":Y_,"ja-JP":Z_,"ko-KR":J_,"lt-LT":X_,"lv-LV":Q_,"nb-NO":eR,"nl-NL":tR,"pl-PL":nR,"pt-BR":rR,"pt-PT":iR,"ro-RO":oR,"ru-RU":aR,"sk-SK":sR,"sl-SI":uR,"sr-SP":lR,"sv-SE":cR,"tr-TR":fR,"uk-UA":dR,"zh-CN":hR,"zh-TW":pR};function PH(e){return e&&e.__esModule?e.default:e}function _H(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Yn(),{triggerProps:u,overlayProps:l}=rH({type:r},t,n),f=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()}},d=Oi(PH(mR),"@react-aria/menu"),{longPressProps:h}=NA({isDisabled:i||o!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={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"?p:h,id:a,onKeyDown:f},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function RH(e){return e&&e.__esModule?e.default:e}function OH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:f,isDisabled:d}=e,h=C.useRef(null);n=n??h;let p=Oi(RH(E_),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=_H({type:"listbox",isDisabled:d||f},t,n);hp.set(t,{id:v.id});let{collection:b}=t,{disabledKeys:D}=t.selectionManager,$=C.useMemo(()=>a||new O_({collection:b,disabledKeys:D,ref:o,layoutDelegate:u}),[a,u,b,D,o]),{collectionProps:y}=R_({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),w=rp(),T=me=>{if(!me.nativeEvent.isComposing)switch(me.key){case"Enter":case"Tab":if(t.isOpen&&me.key==="Enter"&&me.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ue=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(me.key==="Enter"&&ue instanceof HTMLAnchorElement){let Le=t.collection.getItem(t.selectionManager.focusedKey);Le&&w.open(ue,me,Le.props.href,Le.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&me.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=me=>{var ue;let Le=(n==null?void 0:n.current)&&n.current===me.relatedTarget,nt=(ue=r.current)===null||ue===void 0?void 0:ue.contains(me.relatedTarget);Le||nt||(e.onBlur&&e.onBlur(me),t.setFocused(!1))},A=me=>{t.isFocused||(e.onFocus&&e.onFocus(me),t.setFocused(!0))},{isInvalid:M,validationErrors:S,validationDetails:z}=t.displayValidation,{labelProps:j,inputProps:O,descriptionProps:Z,errorMessageProps:R}=KW({...e,onChange:t.setInputValue,onKeyDown:f?e.onKeyDown:Ua(t.isOpen&&y.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[du]:t},i),V=me=>{if(me.pointerType==="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(null,"manual")}},W=me=>{if(me.pointerType!=="touch"){var ue;(ue=i.current)===null||ue===void 0||ue.focus(),t.toggle(me.pointerType==="keyboard"||me.pointerType==="virtual"?"first":null,"manual")}},L=lu({id:g.id,"aria-label":p.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),k=lu({id:v.id,"aria-label":p.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),_=C.useRef(0),H=me=>{if(d||f)return;if(me.timeStamp-_.current<500){var ue;me.preventDefault(),(ue=i.current)===null||ue===void 0||ue.focus();return}let Le=me.target.getBoundingClientRect(),nt=me.changedTouches[0],Nt=Math.ceil(Le.left+.5*Le.width),Xn=Math.ceil(Le.top+.5*Le.height);if(nt.clientX===Nt&&nt.clientY===Xn){var Pt;me.preventDefault(),(Pt=i.current)===null||Pt===void 0||Pt.focus(),t.toggle(null,"manual"),_.current=me.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 ce=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,xe=C.useRef(ne),De=C.useRef(ce);C.useEffect(()=>{if(Bd()&&U!=null&&ce!=null&&ce!==De.current){let ue=t.selectionManager.isSelected(ce),Le=ne!=null?t.collection.getItem(ne):null,nt=(Le==null?void 0:Le["aria-label"])||(typeof(Le==null?void 0:Le.rendered)=="string"?Le.rendered:"")||"";var me;let Nt=p.format("focusAnnouncement",{isGroupChange:(me=Le&&ne!==xe.current)!==null&&me!==void 0?me:!1,groupTitle:nt,groupCount:Le?[...pp(Le,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:ue});Js(Nt)}xe.current=ne,De.current=ce});let Ee=F_(t.collection),J=C.useRef(Ee),ve=C.useRef(t.isOpen);C.useEffect(()=>{let me=t.isOpen!==ve.current&&(t.selectionManager.focusedKey==null||Bd());if(t.isOpen&&(me||Ee!==J.current)){let ue=p.format("countAnnouncement",{optionCount:Ee});Js(ue)}J.current=Ee,ve.current=t.isOpen});let we=C.useRef(t.selectedKey);return C.useEffect(()=>{if(Bd()&&t.isFocused&&t.selectedItem&&t.selectedKey!==we.current){let me=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ue=p.format("selectedAnnouncement",{optionText:me});Js(ue)}we.current=t.selectedKey}),C.useEffect(()=>{if(t.isOpen)return A_([i.current,r.current].filter(me=>me!=null))},[t.isOpen,i,r]),{labelProps:j,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:V,onPressStart:W,isDisabled:d||f},inputProps:ft(O,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?__(t,U.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:ft(v,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Z,errorMessageProps:R,isInvalid:M,validationErrors:S,validationDetails:z}}var gR={};gR={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 vR={};vR={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 yR={};yR={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 bR={};bR={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 $R={};$R={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 xR={};xR={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 wR={};wR={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 DR={};DR={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 CR={};CR={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 ER={};ER={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 SR={};SR={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 TR={};TR={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 AR={};AR={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 PR={};PR={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 _R={};_R={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 RR={};RR={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 OR={};OR={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 MR={};MR={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 FR={};FR={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 kR={};kR={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 IR={};IR={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 BR={};BR={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 LR={};LR={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 VR={};VR={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 NR={};NR={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 jR={};jR={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 KR={};KR={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 UR={};UR={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 zR={};zR={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 qR={};qR={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 WR={};WR={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 HR={};HR={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 GR={};GR={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 YR={};YR={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":gR,"bg-BG":vR,"cs-CZ":yR,"da-DK":bR,"de-DE":$R,"el-GR":xR,"en-US":wR,"es-ES":DR,"et-EE":CR,"fi-FI":ER,"fr-FR":SR,"he-IL":TR,"hr-HR":AR,"hu-HU":PR,"it-IT":_R,"ja-JP":RR,"ko-KR":OR,"lt-LT":MR,"lv-LV":FR,"nb-NO":kR,"nl-NL":IR,"pl-PL":BR,"pt-BR":LR,"pt-PT":VR,"ro-RO":NR,"ru-RU":jR,"sk-SK":KR,"sl-SI":UR,"sr-SP":zR,"sv-SE":qR,"tr-TR":WR,"uk-UA":HR,"zh-CN":GR,"zh-TW":YR};function G1(e,t,n){let{direction:r}=Sn(),i=C.useMemo(()=>ap(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var l;if(!t.current)return;let f=(l=window.event)===null||l===void 0?void 0:l.target,d=Wn(t.current,{tabbable:!0});if(f&&(d.currentNode=f,f=d.previousNode()),!f){let h;do h=d.lastChild(),h&&(f=h);while(h)}for(;f!=null&&f.hasAttribute("data-placeholder");){let h=d.previousNode();if(h&&h.hasAttribute("data-placeholder"))f=h;else break}f&&f.focus()},{pressProps:u}=Uc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return ft(u,{onKeyDown:o})}function MH(e){return e&&e.__esModule?e.default:e}const ZR=new WeakMap,oc="__role_"+Date.now(),JR="__focusManager_"+Date.now();function XR(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:f,errorMessageProps:d}=dp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=C.useRef(null),{focusWithinProps:p}=Au({...e,onFocusWithin(j){var O;h.current=t.value,(O=e.onFocus)===null||O===void 0||O.call(e,j)},onBlurWithin:j=>{var O;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(O=e.onBlur)===null||O===void 0||O.call(e,j)},onFocusWithinChange:e.onFocusChange}),g=Oi(MH(Zc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",b=t.maxGranularity==="hour"?"time":"date",D=t.value?g.format(v,{[b]:t.formatValue({month:"long"})}):"",$=jc(D),y=e[oc]==="presentation"?l["aria-describedby"]:[$["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=e[JR],T=C.useMemo(()=>w||ap(n),[w,n]),E=G1(t,n,e[oc]==="presentation");ZR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:T});let A=C.useRef(e.autoFocus),M;e[oc]==="presentation"?M={role:"presentation"}:M=ft(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),C.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),P1(e.inputRef,t.value,t.setValue),l6({...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=uo(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:ft(z,M,E,p,{onKeyDown(j){e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){e.onKeyUp&&e.onKeyUp(j)}}),inputProps:S,descriptionProps:f,errorMessageProps:d,isInvalid:i,validationErrors:o,validationDetails:a}}function FH(e,t,n){var r;let i=XR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function kH(e){return e&&e.__esModule?e.default:e}function IH(e,t,n){let r=Yn(),i=Yn(),o=Yn(),a=Oi(kH(Zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=dp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),v=G1(t,n),b=h["aria-labelledby"]||h.id,{locale:D}=Sn(),$=t.formatValue(D,{month:"long"}),y=$?a.format("selectedDateDescription",{date:$}):"",w=jc(y),T=[w["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=uo(e),A=C.useMemo(()=>ap(n),[n]),{focusWithinProps:M}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:ft(E,v,h,w,M,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":b,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...d,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:o,[oc]:"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,[du]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:g,buttonProps:{...w,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${b}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${b}`},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:l,validationDetails:f}}function BH(e){return e&&e.__esModule?e.default:e}function LH(){let{locale:e}=Sn(),t=WA(BH(Zc),"@react-aria/datepicker");return C.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new VH(e,t)}},[e,t])}class VH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function NH(e,t,n){let r=C.useRef(""),{locale:i}=Sn(),o=LH(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:f}=ZR.get(t),d=e.isPlaceholder?"":e.text,h=C.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),p=$i({month:"long",timeZone:h.timeZone}),g=$i({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let _=p.format(t.dateValue);d=_!==d?`${d} – ${_}`:_}else e.type==="hour"&&!e.isPlaceholder&&(d=g.format(t.dateValue));let{spinButtonProps:v}=zW({value:e.value,textValue:d,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)}}),b=C.useMemo(()=>new wP(i,{maximumFractionDigits:0}),[i]),D=()=>{if(e.text===e.placeholder&&f.focusPrevious(),b.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let _=e.text.slice(0,-1),H=b.parse(_);_=H===0?"":_,_.length===0||H===0?t.clearSegment(e.type):t.setSegment(e.type,H),r.current=_}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=_=>{if(_.key==="a"&&(oo()?_.metaKey:_.ctrlKey)&&_.preventDefault(),!(_.ctrlKey||_.metaKey||_.shiftKey||_.altKey))switch(_.key){case"Backspace":case"Delete":_.preventDefault(),_.stopPropagation(),D();break}},{startsWith:y}=CP({sensitivity:"base"}),w=$i({hour:"numeric",hour12:!0}),T=C.useMemo(()=>{let _=new Date;return _.setHours(0),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),E=C.useMemo(()=>{let _=new Date;return _.setHours(12),w.formatToParts(_).find(H=>H.type==="dayPeriod").value},[w]),A=$i({year:"numeric",era:"narrow",timeZone:"UTC"}),M=C.useMemo(()=>{if(e.type!=="era")return[];let _=Lt(new Yt(1,1,1),t.calendar),H=t.calendar.getEras().map(N=>{let ne=_.set({year:1,month:1,day:1,era:N}).toDate("UTC"),ce=A.formatToParts(ne).find(xe=>xe.type==="era").value;return{era:N,formatted:ce}}),U=jH(H.map(N=>N.formatted));if(U)for(let N of H)N.formatted=N.formatted.slice(U);return H},[A,t.calendar,e.type]),S=_=>{if(t.isDisabled||t.isReadOnly)return;let H=r.current+_;switch(e.type){case"dayPeriod":if(y(T,_))t.setSegment("dayPeriod",0);else if(y(E,_))t.setSegment("dayPeriod",12);else break;f.focusNext();break;case"era":{let U=M.find(N=>y(N.formatted,_));U&&(t.setSegment("era",U.era),f.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!b.isValidPartialNumber(H))return;let U=b.parse(H),N=U,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":U>11&&(N=b.parse(_));break;case"h12":ne=!1,U>12&&(N=b.parse(_));break}e.value!==void 0&&e.value>=12&&U>1&&(U+=12)}else e.maxValue!==void 0&&U>e.maxValue&&(N=b.parse(_));if(isNaN(U))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(U+"0")>e.maxValue||H.length>=String(e.maxValue).length)?(r.current="",ie&&f.focusNext()):r.current=H;break}}},z=()=>{r.current="",n.current&&ch(n.current,{containingElement:ip(n.current)});let _=window.getSelection();_==null||_.collapse(n.current)},j=C.useRef(typeof document<"u"?document:null);bi(j,"selectionchange",()=>{var _;let H=window.getSelection();H!=null&&H.anchorNode&&(!((_=n.current)===null||_===void 0)&&_.contains(H==null?void 0:H.anchorNode))&&H.collapse(n.current)});let O=C.useRef("");bi(n,"beforeinput",_=>{if(n.current)switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":b.isValidPartialNumber(e.text)&&!t.isReadOnly&&D();break;case"insertCompositionText":O.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:_.data!=null&&S(_.data);break}}),bi(n,"input",_=>{let{inputType:H,data:U}=_;switch(H){case"insertCompositionText":n.current&&(n.current.textContent=O.current),U!=null&&(y(T,U)||y(E,U))&&S(U);break}}),Ct(()=>{let _=n.current;return()=>{document.activeElement===_&&(f.focusPrevious()||f.focusNext())}},[n,f]);let Z=Nc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},R=C.useMemo(()=>t.segments.find(_=>_.isEditable),[t.segments]);e!==R&&!t.isInvalid&&(l=void 0);let V=Yn(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),k=lu({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:ft(v,k,{id:V,...Z,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"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(C.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:$,onFocus:z,style:{caretColor:"transparent"},onPointerDown(_){_.stopPropagation()},onMouseDown(_){_.stopPropagation()}})}}function jH(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 KH(e){return e&&e.__esModule?e.default:e}function UH(e,t,n){var r,i,o;let a=Oi(KH(Zc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:f}=t.displayValidation,{labelProps:d,fieldProps:h,descriptionProps:p,errorMessageProps:g}=dp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),v=h["aria-labelledby"]||h.id,{locale:b}=Sn(),D=t.formatValue(b,{month:"long"}),$=D?a.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",y=jc($),w={"aria-label":a.format("startDate"),"aria-labelledby":v},T={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Yn(),A=Yn(),M=G1(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,z=C.useMemo(()=>ap(n,{accept:k=>k.id!==E}),[n,E]),j={[JR]:z,[oc]:"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},O=uo(e),{focusWithinProps:Z}=Au({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),R=C.useRef(Ca),V=C.useRef(Ca);var W,L;return{groupProps:ft(O,M,h,y,Z,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(k){t.isOpen||e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){t.isOpen||e.onKeyUp&&e.onKeyUp(k)}}),labelProps:{...d,onClick:()=>{z.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${v}`},startFieldProps:{...w,...j,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:k=>t.setDateTime("start",k),autoFocus:e.autoFocus,name:e.startName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){R.current=k,t.updateValidation(bh(k,V.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...j,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:k=>t.setDateTime("end",k),name:e.endName,[du]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(k){V.current=k,t.updateValidation(bh(R.current,k))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:p,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:l,validationDetails:f}}function zH(e,t){let{role:n="dialog"}=e,r=uu();r=e["aria-label"]?void 0:r;let i=C.useRef(!1);return C.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Wa(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Wa(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),hH(),{dialogProps:{...uo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function Qs(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function pb(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=Pa(e,t,n).subtract(o);return wc(e,a,t,n,r,i)}function Pa(e,t,n,r,i){let o=e;return t.years?o=hq(e):t.months?o=Wc(e):t.weeks&&(o=vc(e,n)),wc(e,o,t,n,r,i)}function mb(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=Pa(e,t,n).subtract(o);return wc(e,a,t,n,r,i)}function wc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=B1(t,Pa(kn(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=I1(t,mb(kn(o),n,r));a&&(t=a)}return t}function _o(e,t,n){if(t){let r=B1(e,kn(t));r&&(e=r)}if(n){let r=I1(e,kn(n));r&&(e=r)}return e}function QR(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 e7(e){let t=C.useMemo(()=>new Er(e.locale),[e.locale]),n=C.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:l,isDateUnavailable:f,pageBehavior:d="visible",firstDayOfWeek:h}=e,p=C.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[v,b]=or(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),D=C.useMemo(()=>v?Lt(kn(v),p):null,[v,p]),$=C.useMemo(()=>v&&"timeZone"in v?v.timeZone:n.timeZone,[v,n.timeZone]),y=C.useMemo(()=>e.focusedValue?_o(Lt(kn(e.focusedValue),p),a,u):void 0,[e.focusedValue,p,a,u]),w=C.useMemo(()=>_o(e.defaultFocusedValue?Lt(kn(e.defaultFocusedValue),p):D||Lt(up($),p),a,u),[e.defaultFocusedValue,D,$,p,a,u]),[T,E]=or(y,w,e.onFocusChange),[A,M]=C.useState(()=>{switch(l){case"start":return Pa(T,o,r,a,u);case"end":return mb(T,o,r,a,u);case"center":default:return pb(T,o,r,a,u)}}),[S,z]=C.useState(e.autoFocus||!1),j=C.useMemo(()=>{let N={...o};return N.days?N.days--:N.days=-1,A.add(N)},[A,o]),[O,Z]=C.useState(p.identifier);if(p.identifier!==O){let N=Lt(T,p);M(pb(N,o,r,a,u)),E(N),Z(p.identifier)}Qs(T,a,u)?E(_o(T,a,u)):T.compare(A)<0?M(mb(T,o,r,a,u)):T.compare(j)>0&&M(Pa(T,o,r,a,u));function R(N){N=_o(N,a,u),E(N)}function V(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){b(null);return}if(ne=_o(ne,a,u),ne=QR(ne,A,f),!ne)return;ne=Lt(ne,(v==null?void 0:v.calendar)||new In),v&&"hour"in v?b(v.set(ne)):b(ne)}}let W=C.useMemo(()=>D?f&&f(D)?!0:Qs(D,a,u):!1,[D,f,a,u]),L=e.isInvalid||e.validationState==="invalid"||W,k=L?"invalid":null,_=C.useMemo(()=>d==="visible"?o:Og(o),[d,o]);var H,U;return{isDisabled:(H=e.isDisabled)!==null&&H!==void 0?H:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:V,visibleRange:{start:A,end:j},minValue:a,maxValue:u,focusedDate:T,timeZone:$,validationState:k,isValueInvalid:L,setFocusedDate(N){R(N),z(!0)},focusNextDay(){R(T.add({days:1}))},focusPreviousDay(){R(T.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&R(T.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&R(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(_);E(_o(T.add(_),a,u)),M(Pa(wc(T,N,_,r,a,u),_,r))},focusPreviousPage(){let N=A.subtract(_);E(_o(T.subtract(_),a,u)),M(Pa(wc(T,N,_,r,a,u),_,r))},focusSectionStart(){o.days?R(A):o.weeks?R(vc(T,r)):(o.months||o.years)&&R(Wc(T))},focusSectionEnd(){o.days?R(j):o.weeks?R(gq(T,r)):(o.months||o.years)&&R(eb(T))},focusNextSection(N){if(!N&&!o.days){R(T.add(Og(o)));return}o.days?this.focusNextPage():o.weeks?R(T.add({months:1})):(o.months||o.years)&&R(T.add({years:1}))},focusPreviousSection(N){if(!N&&!o.days){R(T.subtract(Og(o)));return}o.days?this.focusPreviousPage():o.weeks?R(T.subtract({months:1})):(o.months||o.years)&&R(T.subtract({years:1}))},selectFocusedDate(){f&&f(T)||V(T)},selectDate(N){V(N)},isFocused:S,setFocused:z,isInvalid(N){return Qs(N,a,u)},isSelected(N){return D!=null&&an(N,D)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&an(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(j)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return an(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=j.add({days:1});return an(N,j)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),ce=[];ie=vc(ie,r,h);let xe=k1(ie,r,h);for(let De=0;De<xe;De++)ce.push(null);for(;ce.length<7;){ce.push(ie);let De=ie.add({days:1});if(an(ie,De))break;ie=De}for(;ce.length<7;)ce.push(null);return ce}}}function Og(e){let t={...e};for(let n in e)t[n]=1;return t}function qH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:l,...f}=e,[d,h]=or(t,n||null,r),[p,g]=C.useState(null),v="center";if(d&&d.start&&d.end){let _=pb(kn(d.start),a,o,u,l).add(a).subtract({days:1});d.end.compare(_)>0&&(v="start")}let b=C.useRef(null),[D,$]=C.useState(null),y=C.useMemo(()=>B1(u,D==null?void 0:D.start),[u,D]),w=C.useMemo(()=>I1(l,D==null?void 0:D.end),[l,D]),T=e7({...f,value:d&&d.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:w,selectionAlignment:v}),E=k=>{if(k&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const _=LD(k,T,-1),H=LD(k,T,1);b.current={start:_,end:H},$(b.current)}else b.current=null,$(null)},[A,M]=C.useState(T.visibleRange);(!Q0(T.visibleRange.start,A.start)||!Q0(T.visibleRange.end,A.end))&&(E(p),M(T.visibleRange));let S=k=>{k?(g(k),E(k)):(g(null),E(null))},z=p?Mg(p,T.focusedDate):d&&Mg(d.start,d.end),j=k=>{if(e.isReadOnly)return;const _=_o(k,y,w),H=QR(_,T.visibleRange.start,e.isDateUnavailable);if(H)if(!p)S(H);else{let U=Mg(p,H);U&&h({start:BD(U.start,d==null?void 0:d.start),end:BD(U.end,d==null?void 0:d.end)}),S(null)}},[O,Z]=C.useState(!1),{isDateUnavailable:R}=e,V=C.useMemo(()=>!d||p?!1:R&&(R(d.start)||R(d.end))?!0:Qs(d.start,u,l)||Qs(d.end,u,l),[R,d,p,u,l]),W=e.isInvalid||e.validationState==="invalid"||V;return{...T,value:d,setValue:h,anchorDate:p,setAnchorDate:S,highlightedRange:z,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){j(T.focusedDate)},selectDate:j,highlightDate(k){p&&T.setFocusedDate(k)},isSelected(k){return!!(z&&k.compare(z.start)>=0&&k.compare(z.end)<=0&&!T.isCellDisabled(k)&&!T.isCellUnavailable(k))},isInvalid(k){var _,H;return T.isInvalid(k)||Qs(k,(_=b.current)===null||_===void 0?void 0:_.start,(H=b.current)===null||H===void 0?void 0:H.end)},isDragging:O,setDragging:Z}}function Mg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:kn(e),end:kn(t)})}function BD(e,t){return e=Lt(e,(t==null?void 0:t.calendar)||new In),t&&"hour"in t?t.set(e):e}function LD(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 gb{*[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 Nr extends Set{constructor(t,n,r){super(t),t instanceof Nr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function WH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function HH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=C.useRef(!1),[,u]=C.useState(!1),l=C.useRef(null),f=C.useRef(null),[,d]=C.useState(null),h=C.useMemo(()=>VD(e.selectedKeys),[e.selectedKeys]),p=C.useMemo(()=>VD(e.defaultSelectedKeys,new Nr),[e.defaultSelectedKeys]),[g,v]=or(h,p,e.onSelectionChange),b=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,$]=C.useState(i);i==="replace"&&D==="toggle"&&typeof g=="object"&&g.size===0&&$("replace");let y=C.useRef(i);return C.useEffect(()=>{i!==y.current&&($(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:$,get isFocused(){return a.current},setFocused(w){a.current=w,u(w)},get focusedKey(){return l.current},get childFocusStrategy(){return f.current},setFocusedKey(w,T="first"){l.current=w,f.current=T,d(w)},selectedKeys:g,setSelectedKeys(w){(r||!WH(w,g))&&v(w)},disabledKeys:b,disabledBehavior:o}}function VD(e,t){return e?e==="all"?"all":new Nr(e):t}class GH{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&&Rg(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&&Rg(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 Nr([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new Nr(a,u,n);var o;for(let l of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Rg(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 Nr(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 Nr([n],n,n):new Nr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Nr;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=SH(pp(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 Nr)}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 YH(e){let{filter:t,layoutDelegate:n}=e,r=HH(e),i=C.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=C.useCallback(d=>t?new gb(t(d)):new gb(d),[t]),a=C.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=EH(e,o,a),l=C.useMemo(()=>new GH(u,r,{layoutDelegate:n}),[u,r,n]);const f=C.useRef(null);return C.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&f.current){const $=f.current.getItem(r.focusedKey),y=[...f.current.getKeys()].map(S=>{const z=f.current.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null),w=[...u.getKeys()].map(S=>{const z=u.getItem(S);return(z==null?void 0:z.type)==="item"?z:null}).filter(S=>S!==null);var d,h;const T=((d=y==null?void 0:y.length)!==null&&d!==void 0?d:0)-((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0);var p,g,v;let E=Math.min(T>1?Math.max(((p=$==null?void 0:$.index)!==null&&p!==void 0?p:0)-T+1,0):(g=$==null?void 0:$.index)!==null&&g!==void 0?g:0,((v=w==null?void 0:w.length)!==null&&v!==void 0?v:0)-1),A=null,M=!1;for(;E>=0;){if(!l.isDisabled(w[E].key)){A=w[E];break}if(E<w.length-1&&!M)E++;else{M=!0;var b,D;E>((b=$==null?void 0:$.index)!==null&&b!==void 0?b:0)&&(E=(D=$==null?void 0:$.index)!==null&&D!==void 0?D:0),E--}}r.setFocusedKey(A?A.key:null)}f.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function ZH(e){var t;let[n,r]=or(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=C.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=YH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:f=>{if(f==="all")return;var d;let h=(d=f.values().next().value)!==null&&d!==void 0?d:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function Y1(e){let[t,n]=or(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=C.useCallback(()=>{n(!0)},[n]),i=C.useCallback(()=>{n(!1)},[n]),o=C.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function JH(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,l]=C.useState(!1),[f,d]=C.useState(!1),[h,p]=C.useState(null),g=Q=>{e.onSelectionChange&&e.onSelectionChange(Q),Q===$&&(ce(),N())};var v;let{collection:b,selectionManager:D,selectedKey:$,setSelectedKey:y,selectedItem:w,disabledKeys:T}=ZH({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,M;$==null?E="":E=(M=(A=b.getItem($))===null||A===void 0?void 0:A.textValue)!==null&&M!==void 0?M:""}let[S,z]=or(e.inputValue,E,e.onInputChange),j=b,O=C.useMemo(()=>e.items!=null||!n?b:XH(b,S,n),[b,S,n,e.items]),[Z,R]=C.useState(O),V=C.useRef("focus"),L=Y1({...e,onOpenChange:Q=>{e.onOpenChange&&e.onOpenChange(Q,Q?V.current:void 0),D.setFocused(Q),Q||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),k=(Q=null,re)=>{let ye=re==="manual"||re==="focus"&&r==="focus";(i||O.size>0||ye&&j.size>0||e.items)&&(ye&&!L.isOpen&&e.items===void 0&&l(!0),V.current=re,p(Q),L.open())},_=(Q=null,re)=>{let ye=re==="manual"||re==="focus"&&r==="focus";!(i||O.size>0||ye&&j.size>0||e.items)&&!L.isOpen||(ye&&!L.isOpen&&e.items===void 0&&l(!0),L.isOpen||(V.current=re),U(Q))},H=C.useCallback(()=>{R(u?j:O)},[u,j,O]),U=C.useCallback((Q=null)=>{L.isOpen&&H(),p(Q),L.toggle()},[L,H]),N=C.useCallback(()=>{L.isOpen&&(H(),L.close())},[L,H]),[ne,ie]=C.useState(S),ce=()=>{var Q,re;let ye=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";ie(ye),z(ye)};var xe,De;let Ee=C.useRef((De=(xe=e.selectedKey)!==null&&xe!==void 0?xe:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var J;let ve=C.useRef($!=null&&(J=(t=b.getItem($))===null||t===void 0?void 0:t.textValue)!==null&&J!==void 0?J:"");C.useEffect(()=>{var Q;f&&(O.size>0||i)&&!L.isOpen&&S!==ne&&r!=="manual"&&k(null,"input"),!u&&!i&&L.isOpen&&O.size===0&&N(),$!=null&&$!==Ee.current&&N(),S!==ne&&(D.setFocusedKey(null),l(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),$!==Ee.current&&(e.inputValue===void 0||e.selectedKey===void 0)?ce():ne!==S&&ie(S);var re;let ye=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";!f&&$!=null&&e.inputValue===void 0&&$===Ee.current&&ve.current!==ye&&(ie(ye),z(ye)),Ee.current=$,ve.current=ye});let we=Yc({...e,value:C.useMemo(()=>({inputValue:S,selectedKey:$}),[S,$])}),me=()=>{o&&$==null?ue():Le()},ue=()=>{Ee.current=null,y(null),N()},Le=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Q,re;(Q=e.onSelectionChange)===null||Q===void 0||Q.call(e,$);var ye;let Se=$!=null&&(ye=(re=b.getItem($))===null||re===void 0?void 0:re.textValue)!==null&&ye!==void 0?ye:"";ie(Se),N()}else ce(),N()};const nt=()=>{if(o){var Q,re;const ye=$!=null&&(re=(Q=b.getItem($))===null||Q===void 0?void 0:Q.textValue)!==null&&re!==void 0?re:"";S===ye?Le():ue()}else Le()};let Nt=()=>{L.isOpen&&D.focusedKey!=null?$===D.focusedKey?Le():y(D.focusedKey):nt()},Xn=C.useRef(S),Pt=Q=>{Q?(Xn.current=S,r==="focus"&&!e.isReadOnly&&k(null,"focus")):(a&&nt(),S!==Xn.current&&we.commitValidation()),d(Q)},G=C.useMemo(()=>L.isOpen?u?j:O:Z,[L.isOpen,j,O,u,Z]);return{...we,...L,focusStrategy:h,toggle:_,open:k,close:nt,selectionManager:D,selectedKey:$,setSelectedKey:y,disabledKeys:T,isFocused:f,setFocused:Pt,selectedItem:w,collection:G,inputValue:S,setInputValue:z,commit:Nt,revert:me}}function XH(e,t,n){return new gb(t7(e,e,t,n))}function t7(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=t7(e,pp(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 n7={};n7={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var r7={};r7={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var i7={};i7={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 o7={};o7={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 a7={};a7={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 s7={};s7={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var u7={};u7={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 l7={};l7={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 c7={};c7={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 f7={};f7={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 d7={};d7={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 h7={};h7={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var p7={};p7={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 m7={};m7={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 g7={};g7={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 v7={};v7={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var y7={};y7={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var b7={};b7={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 $7={};$7={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 x7={};x7={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 w7={};w7={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 D7={};D7={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 C7={};C7={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 E7={};E7={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 S7={};S7={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 T7={};T7={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var A7={};A7={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 P7={};P7={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 _7={};_7={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 R7={};R7={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 O7={};O7={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 M7={};M7={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var F7={};F7={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var k7={};k7={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var I7={};I7={"ar-AE":n7,"bg-BG":r7,"cs-CZ":i7,"da-DK":o7,"de-DE":a7,"el-GR":s7,"en-US":u7,"es-ES":l7,"et-EE":c7,"fi-FI":f7,"fr-FR":d7,"he-IL":h7,"hr-HR":p7,"hu-HU":m7,"it-IT":g7,"ja-JP":v7,"ko-KR":y7,"lt-LT":b7,"lv-LV":$7,"nb-NO":x7,"nl-NL":w7,"pl-PL":D7,"pt-BR":C7,"pt-PT":E7,"ro-RO":S7,"ru-RU":T7,"sk-SK":A7,"sl-SI":P7,"sr-SP":_7,"sv-SE":R7,"tr-TR":O7,"uk-UA":M7,"zh-CN":F7,"zh-TW":k7};function QH(e){return e&&e.__esModule?e.default:e}const B7=new Jo(QH(I7));function L7(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function xh(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,l=o||a||u,f=[];if(l){let d=L7(),h=Jo.getGlobalDictionaryForPackage("@react-stately/datepicker")||B7,p=new qA(d,h),g=new Er(d,to({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&f.push(p.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&f.push(p.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&f.push(p.format("unavailableDate"))}return{isInvalid:l,validationErrors:f,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function eG(e,t,n,r,i){var o;let a=xh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let l=xh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),f=bh(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let d=Jo.getGlobalDictionaryForPackage("@react-stately/datepicker")||B7;f=bh(f,{isInvalid:!0,validationErrors:[d.getStringForLocale("rangeReversed",L7())],validationDetails:{...cp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return f}const tG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},nG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function to(e,t){e={...t.shouldForceLeadingZeros?nG:tG,...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 l=i.slice(a,u+1).reduce((d,h)=>(d[h]=e[h],d),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function Ls(e){return e&&"hour"in e?e:new Hc}function V7(e,t){if(e===null)return null;if(e)return Lt(e,t)}function Ml(e,t,n,r){if(e)return V7(e,n);let i=Lt(YA(r??qc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?kn(i):r?i:Hr(i)}function Z1(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]=C.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 rG(e){let t=Y1(e),[n,r]=or(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Z1(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,l=o==="hour"||o==="minute"||o==="second";var f;let d=(f=e.shouldCloseOnSelect)!==null&&f!==void 0?f:!0,[h,p]=C.useState(null),[g,v]=C.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 b=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=C.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:b}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,b]),{minValue:$,maxValue:y,isDateUnavailable:w}=e,T=C.useMemo(()=>xh(n,$,y,w,D),[n,$,y,w,D]),E=Yc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,M=e.validationState||(A?"invalid":null),S=(O,Z)=>{r("timeZone"in Z?Z.set(kn(O)):Hr(O,Z)),p(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:O=>{let Z=typeof d=="function"?d():d;l?g||Z?S(O,g||Ls(e.defaultValue||e.placeholderValue)):p(O):(r(O),E.commitValidation()),Z&&t.setOpen(!1)},setTimeValue:O=>{h&&O?S(h,O):v(O)},granularity:o,hasTime:l,...t,setOpen(O){!O&&!n&&h&&l&&S(h,g||Ls(e.defaultValue||e.placeholderValue)),t.setOpen(O)},validationState:M,isInvalid:A,formatValue(O,Z){if(!u)return"";let R=to(Z,D);return new Er(O,R).format(u)},getDateFormatter(O,Z){let R={...D,...Z},V=to({},R);return new Er(O,V)}}}const iG=new Jo({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 oG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?iG.getStringForLocale(e,n):"––"}const bd={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},ND={year:5,month:2,day:7,hour:2,minute:15,second:15},aG={dayperiod:"dayPeriod"};function N7(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:l,isDateUnavailable:f}=e,d=e.value||e.defaultValue||e.placeholderValue||null,[h,p]=Z1(d,e.granularity),g=p||"UTC";if(d&&!(h in d))throw new Error("Invalid granularity "+h+" for value "+d.toString());let v=C.useMemo(()=>new Er(t),[t]),b=C.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var D;let[$,y]=or(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),w=C.useMemo(()=>{var J;return(J=V7($,b))!==null&&J!==void 0?J:null},[$,b]),[T,E]=C.useState(()=>Ml(e.placeholderValue,h,b,p)),A=w||T,M=b.identifier==="gregory"&&A.era==="BC",S=C.useMemo(()=>{var J;return{granularity:h,maxGranularity:(J=e.maxGranularity)!==null&&J!==void 0?J:"year",timeZone:p,hideTimeZone:r,hourCycle:e.hourCycle,showEra:M,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,p,r,M]),z=C.useMemo(()=>to({},S),[S]),j=C.useMemo(()=>new Er(t,z),[t,z]),O=C.useMemo(()=>j.resolvedOptions(),[j]),Z=C.useMemo(()=>j.formatToParts(new Date).filter(J=>bd[J.type]).reduce((J,ve)=>(J[ve.type]=!0,J),{}),[j]),[R,V]=C.useState(()=>e.value||e.defaultValue?{...Z}:{}),W=C.useRef(null),L=C.useRef(b.identifier);C.useEffect(()=>{b.identifier!==L.current&&(L.current=b.identifier,E(J=>Object.keys(R).length>0?Lt(J,b):Ml(e.placeholderValue,h,b,p)))},[b,h,R,p,e.placeholderValue]),$&&Object.keys(R).length<Object.keys(Z).length&&(R={...Z},V(R)),$==null&&Object.keys(R).length===Object.keys(Z).length&&(R={},V(R),E(Ml(e.placeholderValue,h,b,p)));let k=w&&Object.keys(R).length>=Object.keys(Z).length?w:T,_=J=>{if(e.isDisabled||e.isReadOnly)return;let ve=Object.keys(R),we=Object.keys(Z);J==null?(y(null),E(Ml(e.placeholderValue,h,b,p)),V({})):ve.length>=we.length||ve.length===we.length-1&&Z.dayPeriod&&!R.dayPeriod&&W.current!=="dayPeriod"?(J=Lt(J,(d==null?void 0:d.calendar)||new In),y(J)):E(J),W.current=null},H=C.useMemo(()=>k.toDate(g),[k,g]),U=C.useMemo(()=>j.formatToParts(H).map(J=>{let ve=bd[J.type];J.type==="era"&&b.getEras().length===1&&(ve=!1);let we=bd[J.type]&&!R[J.type],me=bd[J.type]?oG(J.type,J.value,t):null;return{type:aG[J.type]||J.type,text:we?me:J.value,...sG(k,J.type,O),isPlaceholder:we,placeholder:me,isEditable:ve}}),[H,R,j,O,k,b,t]);Z.era&&R.year&&!R.era?(R.era=!0,V({...R})):!Z.era&&R.era&&(delete R.era,V({...R}));let N=J=>{R[J]=!0,J==="year"&&Z.era&&(R.era=!0),V({...R})},ne=(J,ve)=>{if(R[J])_(uG(k,J,ve,O));else{N(J);let we=Object.keys(R),me=Object.keys(Z);(we.length>=me.length||we.length===me.length-1&&Z.dayPeriod&&!R.dayPeriod)&&_(k)}},ie=C.useMemo(()=>xh($,u,l,f,S),[$,u,l,f,S]),ce=Yc({...e,value:$,builtinValidation:ie}),xe=ce.displayValidation.isInvalid,De=e.validationState||(xe?"invalid":null);var Ee;return{...ce,value:w,dateValue:H,calendar:b,setValue:_,segments:U,dateFormatter:j,validationState:De,isInvalid:xe,granularity:h,maxGranularity:(Ee=e.maxGranularity)!==null&&Ee!==void 0?Ee:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(J){ne(J,1)},decrement(J){ne(J,-1)},incrementPage(J){ne(J,ND[J]||1)},decrementPage(J){ne(J,-(ND[J]||1))},setSegment(J,ve){N(J),_(lG(k,J,ve,O))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let J=Object.keys(R),ve=Object.keys(Z);J.length===ve.length-1&&Z.dayPeriod&&!R.dayPeriod&&(R={...Z},V(R),_(k.copy()))},clearSegment(J){delete R[J],W.current=J,V({...R});let ve=Ml(e.placeholderValue,h,b,p),we=k;if(J==="dayPeriod"&&"hour"in k&&"hour"in ve){let me=k.hour>=12,ue=ve.hour>=12;me&&!ue?we=k.set({hour:k.hour-12}):!me&&ue&&(we=k.set({hour:k.hour+12}))}else J in k&&(we=k.set({[J]:ve[J]}));y(null),_(we)},formatValue(J){if(!w)return"";let ve=to(J,S);return new Er(t,ve).format(H)},getDateFormatter(J,ve){let we={...S,...ve},me=to({},we);return new Er(J,me)}}}function sG(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:pq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:mq(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 uG(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 lG(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 cG(e){var t,n;let r=Y1(e),[i,o]=or(e.value,e.defaultValue||null,e.onChange),[a,u]=C.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let l=i||a,f=L=>{u(L||{start:null,end:null}),ya(L)?o(L):o(null)},d=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[h,p]=Z1(d,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let b=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[D,$]=C.useState(null),[y,w]=C.useState(null);l&&ya(l)&&(D=l,"hour"in l.start&&(y=l));let T=(L,k)=>{f({start:"timeZone"in k.start?k.start.set(kn(L.start)):Hr(L.start,k.start),end:"timeZone"in k.end?k.end.set(kn(L.end)):Hr(L.end,k.end)}),$(null),w(null),R.commitValidation()},E=L=>{let k=typeof b=="function"?b():b;g?ya(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?T(L,{start:(y==null?void 0:y.start)||Ls(e.placeholderValue),end:(y==null?void 0:y.end)||Ls(e.placeholderValue)}):$(L):ya(L)?(f(L),R.commitValidation()):$(L),k&&r.setOpen(!1)},A=L=>{ya(D)&&ya(L)?T(D,L):w(L)},M=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",S=C.useMemo(()=>({granularity:h,timeZone:p,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:M}),[h,e.hourCycle,e.shouldForceLeadingZeros,p,e.hideTimeZone,M]),{minValue:z,maxValue:j,isDateUnavailable:O}=e,Z=C.useMemo(()=>eG(l,z,j,O,S),[l,z,j,O,S]),R=Yc({...e,value:i,name:C.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:Z}),V=R.displayValidation.isInvalid,W=e.validationState||(V?"invalid":null);return{...R,value:l,setValue:f,dateRange:D,timeRange:y,granularity:h,hasTime:g,setDate(L,k){var _,H;E(L==="start"?{start:k,end:(_=D==null?void 0:D.end)!==null&&_!==void 0?_:null}:{start:(H=D==null?void 0:D.start)!==null&&H!==void 0?H:null,end:k})},setTime(L,k){var _,H;A(L==="start"?{start:k,end:(_=y==null?void 0:y.end)!==null&&_!==void 0?_:null}:{start:(H=y==null?void 0:y.start)!==null&&H!==void 0?H:null,end:k})},setDateTime(L,k){var _,H;f(L==="start"?{start:k,end:(_=l==null?void 0:l.end)!==null&&_!==void 0?_:null}:{start:(H=l==null?void 0:l.start)!==null&&H!==void 0?H:null,end:k})},setDateRange:E,setTimeRange:A,...r,setOpen(L){!L&&!(l!=null&&l.start&&(l!=null&&l.end))&&ya(D)&&g&&T(D,{start:(y==null?void 0:y.start)||Ls(e.placeholderValue),end:(y==null?void 0:y.end)||Ls(e.placeholderValue)}),r.setOpen(L)},validationState:W,isInvalid:V,formatValue(L,k){if(!l||!l.start||!l.end)return null;let _="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,N=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),ne=to(k,{granularity:H,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ie=l.start.toDate(_||"UTC"),ce=l.end.toDate(U||"UTC"),xe=new Er(L,ne),De;if(_===U&&H===N&&l.start.compare(l.end)!==0){try{let Ee=xe.formatRangeToParts(ie,ce),J=-1;for(let me=0;me<Ee.length;me++){let ue=Ee[me];if(ue.source==="shared"&&ue.type==="literal")J=me;else if(ue.source==="endRange")break}let ve="",we="";for(let me=0;me<Ee.length;me++)me<J?ve+=Ee[me].value:me>J&&(we+=Ee[me].value);return{start:ve,end:we}}catch{}De=xe}else{let Ee=to(k,{granularity:N,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new Er(L,Ee)}return{start:xe.format(ie),end:De.format(ce)}},getDateFormatter(L,k){let _={...S,...k},H=to({},_);return new Er(L,H)}}}function ya(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function fG(e){let{placeholderValue:t=new Hc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,l]=or(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),f=u||t,d=f&&"day"in f?f:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,p=C.useMemo(()=>{let w=f&&"timeZone"in f?f.timeZone:void 0;return(w||h)&&t?tP(Fl(t),w||h):Fl(t)},[t,f,h]),g=C.useMemo(()=>Fl(n,d),[n,d]),v=C.useMemo(()=>Fl(r,d),[r,d]),b=C.useMemo(()=>u&&"day"in u?eD(u):u,[u]),D=C.useMemo(()=>u==null?null:Fl(u),[u]);return{...N7({...e,value:D,defaultValue:void 0,minValue:g,maxValue:v,onChange:w=>{l(d||h?w:w&&eD(w))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:p??void 0,createCalendar:()=>new In,validate:C.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:b}}function Fl(e,t=up(qc())){return e?"day"in e?e:Hr(t,e):null}var Kd={exports:{}},dG=Kd.exports,jD;function hG(){return jD||(jD=1,function(e,t){(function(n,r){e.exports=r()})(dG,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",l="hour",f="day",d="week",h="month",p="quarter",g="year",v="date",b="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,y={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(V){var W=["th","st","nd","rd"],L=V%100;return"["+V+(W[(L-20)%10]||W[L]||W[0])+"]"}},w=function(V,W,L){var k=String(V);return!k||k.length>=W?V:""+Array(W+1-k.length).join(L)+V},T={s:w,z:function(V){var W=-V.utcOffset(),L=Math.abs(W),k=Math.floor(L/60),_=L%60;return(W<=0?"+":"-")+w(k,2,"0")+":"+w(_,2,"0")},m:function V(W,L){if(W.date()<L.date())return-V(L,W);var k=12*(L.year()-W.year())+(L.month()-W.month()),_=W.clone().add(k,h),H=L-_<0,U=W.clone().add(k+(H?-1:1),h);return+(-(k+(L-_)/(H?_-U:U-_))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:g,w:d,d:f,D:v,h:l,m:u,s:a,ms:o,Q:p}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},E="en",A={};A[E]=y;var M="$isDayjsObject",S=function(V){return V instanceof Z||!(!V||!V[M])},z=function V(W,L,k){var _;if(!W)return E;if(typeof W=="string"){var H=W.toLowerCase();A[H]&&(_=H),L&&(A[H]=L,_=H);var U=W.split("-");if(!_&&U.length>1)return V(U[0])}else{var N=W.name;A[N]=W,_=N}return!k&&_&&(E=_),_||!k&&E},j=function(V,W){if(S(V))return V.clone();var L=typeof W=="object"?W:{};return L.date=V,L.args=arguments,new Z(L)},O=T;O.l=z,O.i=S,O.w=function(V,W){return j(V,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var Z=function(){function V(L){this.$L=z(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[M]=!0}var W=V.prototype;return W.parse=function(L){this.$d=function(k){var _=k.date,H=k.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var U=_.match(D);if(U){var N=U[2]-1||0,ne=(U[7]||"0").substring(0,3);return H?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(_)}(L),this.init()},W.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},W.$utils=function(){return O},W.isValid=function(){return this.$d.toString()!==b},W.isSame=function(L,k){var _=j(L);return this.startOf(k)<=_&&_<=this.endOf(k)},W.isAfter=function(L,k){return j(L)<this.startOf(k)},W.isBefore=function(L,k){return this.endOf(k)<j(L)},W.$g=function(L,k,_){return O.u(L)?this[k]:this.set(_,L)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(L,k){var _=this,H=!!O.u(k)||k,U=O.p(L),N=function(ve,we){var me=O.w(_.$u?Date.UTC(_.$y,we,ve):new Date(_.$y,we,ve),_);return H?me:me.endOf(f)},ne=function(ve,we){return O.w(_.toDate()[ve].apply(_.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(we)),_)},ie=this.$W,ce=this.$M,xe=this.$D,De="set"+(this.$u?"UTC":"");switch(U){case g:return H?N(1,0):N(31,11);case h:return H?N(1,ce):N(0,ce+1);case d:var Ee=this.$locale().weekStart||0,J=(ie<Ee?ie+7:ie)-Ee;return N(H?xe-J:xe+(6-J),ce);case f:case v:return ne(De+"Hours",0);case l: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(L){return this.startOf(L,!1)},W.$set=function(L,k){var _,H=O.p(L),U="set"+(this.$u?"UTC":""),N=(_={},_[f]=U+"Date",_[v]=U+"Date",_[h]=U+"Month",_[g]=U+"FullYear",_[l]=U+"Hours",_[u]=U+"Minutes",_[a]=U+"Seconds",_[o]=U+"Milliseconds",_)[H],ne=H===f?this.$D+(k-this.$W):k;if(H===h||H===g){var ie=this.clone().set(v,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(v,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(L,k){return this.clone().$set(L,k)},W.get=function(L){return this[O.p(L)]()},W.add=function(L,k){var _,H=this;L=Number(L);var U=O.p(k),N=function(ce){var xe=j(H);return O.w(xe.date(xe.date()+Math.round(ce*L)),H)};if(U===h)return this.set(h,this.$M+L);if(U===g)return this.set(g,this.$y+L);if(U===f)return N(1);if(U===d)return N(7);var ne=(_={},_[u]=r,_[l]=i,_[a]=n,_)[U]||1,ie=this.$d.getTime()+L*ne;return O.w(ie,this)},W.subtract=function(L,k){return this.add(-1*L,k)},W.format=function(L){var k=this,_=this.$locale();if(!this.isValid())return _.invalidDate||b;var H=L||"YYYY-MM-DDTHH:mm:ssZ",U=O.z(this),N=this.$H,ne=this.$m,ie=this.$M,ce=_.weekdays,xe=_.months,De=_.meridiem,Ee=function(we,me,ue,Le){return we&&(we[me]||we(k,H))||ue[me].slice(0,Le)},J=function(we){return O.s(N%12||12,we,"0")},ve=De||function(we,me,ue){var Le=we<12?"AM":"PM";return ue?Le.toLowerCase():Le};return H.replace($,function(we,me){return me||function(ue){switch(ue){case"YY":return String(k.$y).slice(-2);case"YYYY":return O.s(k.$y,4,"0");case"M":return ie+1;case"MM":return O.s(ie+1,2,"0");case"MMM":return Ee(_.monthsShort,ie,xe,3);case"MMMM":return Ee(xe,ie);case"D":return k.$D;case"DD":return O.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return Ee(_.weekdaysMin,k.$W,ce,2);case"ddd":return Ee(_.weekdaysShort,k.$W,ce,3);case"dddd":return ce[k.$W];case"H":return String(N);case"HH":return O.s(N,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ve(N,ne,!0);case"A":return ve(N,ne,!1);case"m":return String(ne);case"mm":return O.s(ne,2,"0");case"s":return String(k.$s);case"ss":return O.s(k.$s,2,"0");case"SSS":return O.s(k.$ms,3,"0");case"Z":return U}return null}(we)||U.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(L,k,_){var H,U=this,N=O.p(k),ne=j(L),ie=(ne.utcOffset()-this.utcOffset())*r,ce=this-ne,xe=function(){return O.m(U,ne)};switch(N){case g:H=xe()/12;break;case h:H=xe();break;case p:H=xe()/3;break;case d:H=(ce-ie)/6048e5;break;case f:H=(ce-ie)/864e5;break;case l:H=ce/i;break;case u:H=ce/r;break;case a:H=ce/n;break;default:H=ce}return _?H:O.a(H)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(L,k){if(!L)return this.$L;var _=this.clone(),H=z(L,k,!0);return H&&(_.$L=H),_},W.clone=function(){return O.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()},V}(),R=Z.prototype;return j.prototype=R,[["$ms",o],["$s",a],["$m",u],["$H",l],["$W",f],["$M",h],["$y",g],["$D",v]].forEach(function(V){R[V[1]]=function(W){return this.$g(W,V[0],V[1])}}),j.extend=function(V,W){return V.$i||(V(W,Z,j),V.$i=!0),j},j.locale=z,j.isDayjs=S,j.unix=function(V){return j(1e3*V)},j.en=A[E],j.Ls=A,j.p={},j})}(Kd)),Kd.exports}var j7=hG();const pG=_i(j7);var Za=[["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"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint 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"]],mG="react-international-phone-",K7=(...e)=>e.filter(t=>!!t).join(" ").trim(),gG=(...e)=>K7(...e).split(" ").map(t=>`${mG}${t}`).join(" "),Cn=({addPrefix:e,rawClassNames:t})=>K7(gG(...e),...t),vG=({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,l=0;for(let f of t.split("")){if(l>=a.length){if(!i&&f!==n){u+=f;continue}break}f===n?(u+=a[l],l+=1):u+=f}return u},ks=e=>e?/^\d+$/.test(e):!1,mp=e=>e.replace(/\D/g,""),yG=(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},bG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),$G=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=f=>t.trimNonDigitsEnd?f.trim():f;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=mp(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 f=t.dialCode.length,d=i.slice(0,f),h=i.slice(f);return{phoneLeftSide:d,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:l}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=vG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${l}`)},xG=({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 d=r-1;d>=0;d-=1)if(ks(t[d])){a=d;break}if(a===null){for(let d=0;d<t.length;d+=1)if(ks(n[d]))return d;return t.length}let u=0;for(let d=0;d<a;d+=1)ks(t[d])&&(u+=1);let l=0,f=0;for(let d=0;d<n.length&&(l+=1,ks(n[d])&&(f+=1),!(f>=u+1));d+=1);if(o!=="backward")for(;!ks(n[l])&&l<n.length;)l+=1;return l},Ud=({phone:e,prefix:t})=>e?`${t}${mp(e)}`:"";function vb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:f,countryGuessingEnabled:d,disableFormatting:h}){let p=e;l&&(p=p.startsWith(`${o}`)?p:`${o}${t.dialCode}${p}`);let g=d?_G({phone:p,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,b=$G(p,{prefix:o,mask:AG({phone:p,country:v,defaultMask:f,disableFormatting:h}),maskChar:U7,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=d&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Ud({phone:l?`${D.dialCode}${b}`:b,prefix:o}),inputValue:b,country:D}}var wG=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},DG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:f,disableFormatting:d,countries:h})=>{let p=e.nativeEvent,g=p.inputType,v=wG(g),b=!!(g!=null&&g.startsWith("insertFrom")),D=g==="insertText",$=(p==null?void 0:p.data)||void 0,y=e.target.value,w=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Ud({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!ks($)&&y!==i)return{inputValue:r,phone:Ud({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:w-(($==null?void 0:$.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!b){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ud({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:T,inputValue:E,country:A}=vb({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:d,defaultMask:f}),M=xG({cursorPositionAfterInput:w,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:T,inputValue:E,cursorPosition:M,country:A}},CG=(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},EG=()=>{let e=C.useRef(),t=C.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}}},SG={size:20,overrideLastItemDebounceMS:-1};function TG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...SG,...t},[o,a]=C.useState(e),[u,l]=C.useState([o]),[f,d]=C.useState(0),h=EG();return[o,(p,g)=>{if(typeof p=="object"&&typeof o=="object"&&CG(p,o)||p===o)return;let v=r>0,b=h.check(),D=v&&b!==void 0?b>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!D)l($=>[...$.slice(0,f),p]);else{let $=u.length>=n;l(y=>[...y.slice($?1:0,f+1),p]),$||d(y=>y+1)}a(p),i==null||i(p)},()=>{if(f<=0)return{success:!1};let p=u[f-1];return a(p),d(g=>g-1),i==null||i(p),{success:!0,value:p}},()=>{if(f+1>=u.length)return{success:!1};let p=u[f+1];return a(p),d(g=>g+1),i==null||i(p),{success:!0,value:p}}]}var U7=".",vr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Za},z7=({defaultCountry:e=vr.defaultCountry,value:t=vr.value,countries:n=vr.countries,prefix:r=vr.prefix,defaultMask:i=vr.defaultMask,charAfterDialCode:o=vr.charAfterDialCode,historySaveDebounceMS:a=vr.historySaveDebounceMS,disableCountryGuess:u=vr.disableCountryGuess,disableDialCodePrefill:l=vr.disableDialCodePrefill,forceDialCode:f=vr.forceDialCode,disableDialCodeAndPrefix:d=vr.disableDialCodeAndPrefix,disableFormatting:h=vr.disableFormatting,onChange:p,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:d?!1:f,disableDialCodeAndPrefix:d,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},b=C.useRef(null),D=g||b,$=V=>{Promise.resolve().then(()=>{var W;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((W=D.current)==null||W.setSelectionRange(V,V))})},[{phone:y,inputValue:w,country:T},E,A,M]=TG(()=>{let V=Vs({value:e,field:"iso2",countries:n});V||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=V||Vs({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:k,country:_}=vb({value:t,country:W,insertDialCodeOnEmpty:!l,...v});return $(k.length),{phone:L,inputValue:k,country:_.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:V,phone:W,country:L})=>{if(!p)return;let k=S(L);p({phone:W,inputValue:V,country:k})}}),S=C.useCallback(V=>Vs({value:V,field:"iso2",countries:n}),[n]),z=C.useMemo(()=>S(T),[T,S]);C.useEffect(()=>{let V=D.current;if(!V)return;let W=L=>{if(!L.key)return;let k=L.ctrlKey,_=L.metaKey,H=L.shiftKey;if(L.key.toLowerCase()==="z"){if(bG()){if(!_)return}else if(!k)return;H?M():A()}};return V.addEventListener("keydown",W),()=>{V.removeEventListener("keydown",W)}},[D,A,M]);let j=V=>{V.preventDefault();let{phone:W,inputValue:L,country:k,cursorPosition:_}=DG(V,{country:z,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:W,country:k.iso2}),$(_),t},O=(V,W={focusOnInput:!1})=>{let L=Vs({value:V,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${V}" iso2 code`);return}let k=d?"":`${r}${L.dialCode}${o}`;E({inputValue:k,phone:`${r}${L.dialCode}`,country:L.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var _;(_=D.current)==null||_.focus()})},[Z,R]=C.useState(!1);return C.useEffect(()=>{if(!Z){R(!0),t!==y&&(p==null||p({inputValue:w,phone:y,country:z}));return}if(t===y)return;let{phone:V,inputValue:W,country:L}=vb({value:t,country:z,insertDialCodeOnEmpty:!l,...v});E({phone:V,inputValue:W,country:L.iso2})},[t]),{phone:y,inputValue:w,country:z,setCountry:O,handlePhoneValueChange:j,inputRef:D}},AG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${U7}]`,"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 l=new RegExp(u.substring(1,u.length-1)),f=e.replace(t.dialCode,"");return l.test(mp(f))});return o(a?i[a]:i.default)},jr=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},PG=e=>`Field "${e}" is not supported`,Vs=({field:e,value:t,countries:n=Za})=>{if(["priority"].includes(e))throw new Error(PG(e));let r=n.find(i=>{let o=jr(i);return t===o[e]});if(r)return jr(r)},_G=({phone:e,countries:t=Za,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=mp(e);if(!i)return r;let o=r,a=({country:l,fullDialCodeMatch:f})=>{var p,g;let d=l.dialCode===((p=o.country)==null?void 0:p.dialCode),h=(l.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!d||h)&&(o={country:l,fullDialCodeMatch:f})};for(let l of t){let f=jr(l),{dialCode:d,areaCodes:h}=f;if(i.startsWith(d)){let p=o.country?Number(d)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(d.length);for(let v of h)if(g.startsWith(v))return{country:f,fullDialCodeMatch:!0}}(p||d===i||!o.fullDialCodeMatch)&&a({country:f,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<d.length&&d.startsWith(i)&&(!o.country||Number(d)<=Number(o.country.dialCode))&&a({country:f,fullDialCodeMatch:!1})}if(n){let l=Vs({value:n,field:"iso2",countries:t});if(!l)return o;let f=l?(d=>{if(!(d!=null&&d.areaCodes))return!1;let h=i.substring(d.dialCode.length);return d.areaCodes.some(p=>p.startsWith(h))})(l):!1;o&&((u=o.country)==null?void 0:u.dialCode)===l.dialCode&&o.country!==l&&o.fullDialCodeMatch&&(!l.areaCodes||f)&&(o={country:l,fullDialCodeMatch:!0})}return o},RG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},OG="abcdefghijklmnopqrstuvwxyz",MG="1f1e6",KD=OG.split("").reduce((e,t,n)=>({...e,[t]:RG(MG,n)}),{}),FG=e=>[KD[e[0]],KD[e[1]]].join("-"),J1=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let l=()=>{if(n)return n;let f=FG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${f}.svg`};return C.createElement("img",{className:Cn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},kG=1e3,IG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Za,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...l})=>{let f=C.useRef(null),d=C.useRef(),h=C.useMemo(()=>{if(!i||!i.length)return r;let A=[],M=[...r];for(let S of i){let z=M.findIndex(j=>jr(j).iso2===S);if(z!==-1){let j=M.splice(z,1)[0];A.push(j)}}return A.concat(M)},[r,i]),p=C.useRef({updatedAt:void 0,value:""}),g=A=>{let M=p.current.updatedAt&&new Date().getTime()-p.current.updatedAt.getTime()>kG;p.current={value:M?A:`${p.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(z=>jr(z).name.toLowerCase().startsWith(p.current.value));S!==-1&&D(S)},v=C.useCallback(A=>h.findIndex(M=>jr(M).iso2===A),[h]),[b,D]=C.useState(v(n)),$=()=>{d.current!==n&&D(v(n))},y=C.useCallback(A=>{D(v(A.iso2)),a==null||a(A)},[a,v]),w=A=>{let M=h.length-1,S=z=>A==="prev"?z-1:A==="next"?z+1:A==="last"?M:0;D(z=>{let j=S(z);return j<0?0:j>M?M:j})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let M=jr(h[b]);y(M);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),w("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),w("next");return}if(A.key==="PageUp"){A.preventDefault(),w("first");return}if(A.key==="PageDown"){A.preventDefault(),w("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=C.useCallback(()=>{if(!f.current||b===void 0)return;let A=jr(h[b]).iso2;if(A===d.current)return;let M=f.current.querySelector(`[data-country="${A}"]`);M&&(yG(f.current,M),d.current=A)},[b,h]);return C.useEffect(()=>{E()},[b,E]),C.useEffect(()=>{f.current&&(e?f.current.focus():$())},[e]),C.useEffect(()=>{$()},[n]),C.createElement("ul",{ref:f,role:"listbox",className:Cn({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${jr(h[b]).iso2}-option`},h.map((A,M)=>{let S=jr(A),z=S.iso2===n,j=M===b,O=i.includes(S.iso2),Z=M===i.length-1,R=o==null?void 0:o.find(V=>V.iso2===S.iso2);return C.createElement(C.Fragment,{key:S.iso2},C.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:Cn({addPrefix:["country-selector-dropdown__list-item",O&&"country-selector-dropdown__list-item--preferred",z&&"country-selector-dropdown__list-item--selected",j&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>y(S),style:l.listItemStyle,title:S.name},C.createElement(J1,{iso2:S.iso2,src:R==null?void 0:R.src,className:Cn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},S.name),C.createElement("span",{className:Cn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,S.dialCode)),Z?C.createElement("hr",{className:Cn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},BG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Za,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...l})=>{let[f,d]=C.useState(!1),h=C.useMemo(()=>{if(e)return Vs({value:e,field:"iso2",countries:i})},[i,e]),p=C.useRef(null),g=b=>{b.key&&["ArrowUp","ArrowDown"].includes(b.key)&&(b.preventDefault(),d(!0))},v=()=>{var $;let b={title:h==null?void 0:h.name,onClick:()=>d(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":f},D=C.createElement("div",{className:Cn({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},C.createElement(J1,{iso2:e,src:($=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:$.src,className:Cn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&C.createElement("div",{className:Cn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",f&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:b}):C.createElement("button",{...b,type:"button",className:Cn({addPrefix:["country-selector-button",f&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},D)};return C.createElement("div",{className:Cn({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:p},v(),C.createElement(IG,{show:f,countries:i,preferredCountries:o,flags:a,onSelect:b=>{d(!1),t==null||t(b)},selectedCountry:e,onClose:()=>{d(!1)},...l.dropdownStyleProps}))},LG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>C.createElement("div",{className:Cn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);C.forwardRef(({value:e,onChange:t,countries:n=Za,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:l,className:f,inputStyle:d,inputClassName:h,countrySelectorStyleProps:p,dialCodePreviewStyleProps:g,inputProps:v,placeholder:b,disabled:D,name:$,onFocus:y,onBlur:w,required:T,autoFocus:E,...A},M)=>{let{phone:S,inputValue:z,inputRef:j,country:O,setCountry:Z,handlePhoneValueChange:R}=z7({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),V=A.disableDialCodeAndPrefix&&o&&(O==null?void 0:O.dialCode);return C.useImperativeHandle(M,()=>j.current?Object.assign(j.current,{setCountry:Z,state:{phone:S,inputValue:z,country:O}}):null,[j,Z,S,z,O]),C.createElement("div",{ref:M,className:Cn({addPrefix:["input-container"],rawClassNames:[f]}),style:l},C.createElement(BG,{onSelect:W=>Z(W.iso2,{focusOnInput:!a}),flags:u,selectedCountry:O.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...p}),V&&C.createElement(LG,{dialCode:O.dialCode,prefix:A.prefix??"+",disabled:D,...g}),C.createElement("input",{onChange:R,value:z,type:"tel",ref:j,className:Cn({addPrefix:["input",D&&"input--disabled"],rawClassNames:[h]}),placeholder:b,disabled:D,style:d,name:$,onFocus:y,onBlur:w,autoFocus:E,required:T,...v}))});var Vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",l="[object Date]",f="[object Error]",d="[object Function]",h="[object GeneratorFunction]",p="[object Map]",g="[object Number]",v="[object Object]",b="[object Promise]",D="[object RegExp]",$="[object Set]",y="[object String]",w="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",M="[object Float32Array]",S="[object Float64Array]",z="[object Int8Array]",j="[object Int16Array]",O="[object Int32Array]",Z="[object Uint8Array]",R="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,k=/\w*$/,_=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[o]=U[a]=U[E]=U[A]=U[u]=U[l]=U[M]=U[S]=U[z]=U[j]=U[O]=U[p]=U[g]=U[v]=U[D]=U[$]=U[y]=U[w]=U[Z]=U[R]=U[V]=U[W]=!0,U[f]=U[d]=U[T]=!1;var N=typeof Vo=="object"&&Vo&&Vo.Object===Object&&Vo,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),ce=t&&!t.nodeType&&t,xe=ce&&!0&&e&&!e.nodeType&&e,De=xe&&xe.exports===ce;function Ee(K,oe){return K.set(oe[0],oe[1]),K}function J(K,oe){return K.add(oe),K}function ve(K,oe){for(var pe=-1,Ie=K?K.length:0;++pe<Ie&&oe(K[pe],pe,K)!==!1;);return K}function we(K,oe){for(var pe=-1,Ie=oe.length,tn=K.length;++pe<Ie;)K[tn+pe]=oe[pe];return K}function me(K,oe,pe,Ie){for(var tn=-1,gn=K?K.length:0;++tn<gn;)pe=oe(pe,K[tn],tn,K);return pe}function ue(K,oe){for(var pe=-1,Ie=Array(K);++pe<K;)Ie[pe]=oe(pe);return Ie}function Le(K,oe){return K==null?void 0:K[oe]}function nt(K){var oe=!1;if(K!=null&&typeof K.toString!="function")try{oe=!!(K+"")}catch{}return oe}function Nt(K){var oe=-1,pe=Array(K.size);return K.forEach(function(Ie,tn){pe[++oe]=[tn,Ie]}),pe}function Xn(K,oe){return function(pe){return K(oe(pe))}}function Pt(K){var oe=-1,pe=Array(K.size);return K.forEach(function(Ie){pe[++oe]=Ie}),pe}var G=Array.prototype,Q=Function.prototype,re=Object.prototype,ye=ie["__core-js_shared__"],Se=function(){var K=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),Ce=Q.toString,Fe=re.hasOwnProperty,Ne=re.toString,_t=RegExp("^"+Ce.call(Fe).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,Zt=ie.Symbol,Xr=ie.Uint8Array,Rr=Xn(Object.getPrototypeOf,Object),mn=Object.create,Qr=re.propertyIsEnumerable,ei=G.splice,ti=Object.getOwnPropertySymbols,Or=ut?ut.isBuffer:void 0,Qo=Xn(Object.keys,Object),ni=Ke(ie,"DataView"),Mi=Ke(ie,"Map"),ri=Ke(ie,"Promise"),po=Ke(ie,"Set"),Fi=Ke(ie,"WeakMap"),ar=Ke(Object,"create"),ea=Ii(ni),ta=Ii(Mi),Uu=Ii(ri),zu=Ii(po),ns=Ii(Fi),mo=Zt?Zt.prototype:void 0,rs=mo?mo.valueOf:void 0;function Mr(K){var oe=-1,pe=K?K.length:0;for(this.clear();++oe<pe;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function na(){this.__data__=ar?ar(null):{}}function qu(K){return this.has(K)&&delete this.__data__[K]}function ra(K){var oe=this.__data__;if(ar){var pe=oe[K];return pe===r?void 0:pe}return Fe.call(oe,K)?oe[K]:void 0}function Wu(K){var oe=this.__data__;return ar?oe[K]!==void 0:Fe.call(oe,K)}function Hu(K,oe){var pe=this.__data__;return pe[K]=ar&&oe===void 0?r:oe,this}Mr.prototype.clear=na,Mr.prototype.delete=qu,Mr.prototype.get=ra,Mr.prototype.has=Wu,Mr.prototype.set=Hu;function Bn(K){var oe=-1,pe=K?K.length:0;for(this.clear();++oe<pe;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function Gu(){this.__data__=[]}function Ln(K){var oe=this.__data__,pe=ai(oe,K);if(pe<0)return!1;var Ie=oe.length-1;return pe==Ie?oe.pop():ei.call(oe,pe,1),!0}function Yu(K){var oe=this.__data__,pe=ai(oe,K);return pe<0?void 0:oe[pe][1]}function Zu(K){return ai(this.__data__,K)>-1}function Ju(K,oe){var pe=this.__data__,Ie=ai(pe,K);return Ie<0?pe.push([K,oe]):pe[Ie][1]=oe,this}Bn.prototype.clear=Gu,Bn.prototype.delete=Ln,Bn.prototype.get=Yu,Bn.prototype.has=Zu,Bn.prototype.set=Ju;function Fr(K){var oe=-1,pe=K?K.length:0;for(this.clear();++oe<pe;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function Xu(){this.__data__={hash:new Mr,map:new(Mi||Bn),string:new Mr}}function Qu(K){return Ve(this,K).delete(K)}function el(K){return Ve(this,K).get(K)}function tl(K){return Ve(this,K).has(K)}function nl(K,oe){return Ve(this,K).set(K,oe),this}Fr.prototype.clear=Xu,Fr.prototype.delete=Qu,Fr.prototype.get=el,Fr.prototype.has=tl,Fr.prototype.set=nl;function ii(K){this.__data__=new Bn(K)}function oi(){this.__data__=new Bn}function is(K){return this.__data__.delete(K)}function go(K){return this.__data__.get(K)}function rl(K){return this.__data__.has(K)}function os(K,oe){var pe=this.__data__;if(pe instanceof Bn){var Ie=pe.__data__;if(!Mi||Ie.length<n-1)return Ie.push([K,oe]),this;pe=this.__data__=new Fr(Ie)}return pe.set(K,oe),this}ii.prototype.clear=oi,ii.prototype.delete=is,ii.prototype.get=go,ii.prototype.has=rl,ii.prototype.set=os;function il(K,oe){var pe=ul(K)||qp(K)?ue(K.length,String):[],Ie=pe.length,tn=!!Ie;for(var gn in K)Fe.call(K,gn)&&!(tn&&(gn=="length"||Tn(gn,Ie)))&&pe.push(gn);return pe}function vo(K,oe,pe){var Ie=K[oe];(!(Fe.call(K,oe)&&sl(Ie,pe))||pe===void 0&&!(oe in K))&&(K[oe]=pe)}function ai(K,oe){for(var pe=K.length;pe--;)if(sl(K[pe][0],oe))return pe;return-1}function ia(K,oe){return K&&ge(oe,cl(oe),K)}function oa(K,oe,pe,Ie,tn,gn,ur){var vn;if(Ie&&(vn=gn?Ie(K,tn,gn,ur):Ie(K)),vn!==void 0)return vn;if(!hs(K))return K;var Jt=ul(K);if(Jt){if(vn=cn(K),!oe)return se(K,vn)}else{var si=Rt(K),ui=si==d||si==h;if(ll(K))return ls(K,oe);if(si==v||si==o||ui&&!gn){if(nt(K))return gn?K:{};if(vn=fn(ui?{}:K),!oe)return _e(K,ia(vn,K))}else{if(!U[si])return gn?K:{};vn=sr(K,si,oa,oe)}}ur||(ur=new ii);var fl=ur.get(K);if(fl)return fl;if(ur.set(K,vn),!Jt)var ps=pe?Xe(K):cl(K);return ve(ps||K,function(yn,la){ps&&(la=yn,yn=K[la]),vo(vn,la,oa(yn,oe,pe,Ie,la,K,ur))}),vn}function as(K){return hs(K)?mn(K):{}}function ss(K,oe,pe){var Ie=oe(K);return ul(K)?Ie:we(Ie,pe(K))}function ol(K){return Ne.call(K)}function us(K){if(!hs(K)||sa(K))return!1;var oe=yf(K)||nt(K)?_t:_;return oe.test(Ii(K))}function aa(K){if(!ua(K))return Qo(K);var oe=[];for(var pe in Object(K))Fe.call(K,pe)&&pe!="constructor"&&oe.push(pe);return oe}function ls(K,oe){if(oe)return K.slice();var pe=new K.constructor(K.length);return K.copy(pe),pe}function ki(K){var oe=new K.constructor(K.byteLength);return new Xr(oe).set(new Xr(K)),oe}function al(K,oe){var pe=oe?ki(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.byteLength)}function cs(K,oe,pe){var Ie=oe?pe(Nt(K),!0):Nt(K);return me(Ie,Ee,new K.constructor)}function yo(K){var oe=new K.constructor(K.source,k.exec(K));return oe.lastIndex=K.lastIndex,oe}function fs(K,oe,pe){var Ie=oe?pe(Pt(K),!0):Pt(K);return me(Ie,J,new K.constructor)}function I(K){return rs?Object(rs.call(K)):{}}function X(K,oe){var pe=oe?ki(K.buffer):K.buffer;return new K.constructor(pe,K.byteOffset,K.length)}function se(K,oe){var pe=-1,Ie=K.length;for(oe||(oe=Array(Ie));++pe<Ie;)oe[pe]=K[pe];return oe}function ge(K,oe,pe,Ie){pe||(pe={});for(var tn=-1,gn=oe.length;++tn<gn;){var ur=oe[tn],vn=void 0;vo(pe,ur,vn===void 0?K[ur]:vn)}return pe}function _e(K,oe){return ge(K,$t(K),oe)}function Xe(K){return ss(K,cl,$t)}function Ve(K,oe){var pe=K.__data__;return ds(oe)?pe[typeof oe=="string"?"string":"hash"]:pe.map}function Ke(K,oe){var pe=Le(K,oe);return us(pe)?pe:void 0}var $t=ti?Xn(ti,Object):wt,Rt=ol;(ni&&Rt(new ni(new ArrayBuffer(1)))!=A||Mi&&Rt(new Mi)!=p||ri&&Rt(ri.resolve())!=b||po&&Rt(new po)!=$||Fi&&Rt(new Fi)!=T)&&(Rt=function(K){var oe=Ne.call(K),pe=oe==v?K.constructor:void 0,Ie=pe?Ii(pe):void 0;if(Ie)switch(Ie){case ea:return A;case ta:return p;case Uu:return b;case zu:return $;case ns:return T}return oe});function cn(K){var oe=K.length,pe=K.constructor(oe);return oe&&typeof K[0]=="string"&&Fe.call(K,"index")&&(pe.index=K.index,pe.input=K.input),pe}function fn(K){return typeof K.constructor=="function"&&!ua(K)?as(Rr(K)):{}}function sr(K,oe,pe,Ie){var tn=K.constructor;switch(oe){case E:return ki(K);case u:case l:return new tn(+K);case A:return al(K,Ie);case M:case S:case z:case j:case O:case Z:case R:case V:case W:return X(K,Ie);case p:return cs(K,Ie,pe);case g:case y:return new tn(K);case D:return yo(K);case $:return fs(K,Ie,pe);case w:return I(K)}}function Tn(K,oe){return oe=oe??i,!!oe&&(typeof K=="number"||H.test(K))&&K>-1&&K%1==0&&K<oe}function ds(K){var oe=typeof K;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?K!=="__proto__":K===null}function sa(K){return!!Se&&Se in K}function ua(K){var oe=K&&K.constructor,pe=typeof oe=="function"&&oe.prototype||re;return K===pe}function Ii(K){if(K!=null){try{return Ce.call(K)}catch{}try{return K+""}catch{}}return""}function zp(K){return oa(K,!0,!0)}function sl(K,oe){return K===oe||K!==K&&oe!==oe}function qp(K){return Wp(K)&&Fe.call(K,"callee")&&(!Qr.call(K,"callee")||Ne.call(K)==o)}var ul=Array.isArray;function vf(K){return K!=null&&Hp(K.length)&&!yf(K)}function Wp(K){return Gp(K)&&vf(K)}var ll=Or||xt;function yf(K){var oe=hs(K)?Ne.call(K):"";return oe==d||oe==h}function Hp(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=i}function hs(K){var oe=typeof K;return!!K&&(oe=="object"||oe=="function")}function Gp(K){return!!K&&typeof K=="object"}function cl(K){return vf(K)?il(K):aa(K)}function wt(){return[]}function xt(){return!1}e.exports=zp})(yb,yb.exports);var No=yb.exports,bb=function(){return bb=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},bb.apply(this,arguments)};function VG(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(d){try{f(r.next(d))}catch(h){a(h)}}function l(d){try{f(r.throw(d))}catch(h){a(h)}}function f(d){d.done?o(d.value):i(d.value).then(u,l)}f((r=r.apply(e,[])).next())})}function NG(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(f){return function(d){return l([f,d])}}function l(f){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){n.label=f[1];break}if(f[0]===6&&n.label<o[1]){n.label=o[1],o=f;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(f);break}o[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function wh(e,t,n,r,i){return VG(this,void 0,void 0,function(){var o,a;return NG(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 $b=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:bb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},jG=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=No(n);wh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(f){f()});var l=$b(i,u);o.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,o=No(t);wh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=$b(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Vt=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}},KG=class extends Error{constructor(t="Unsupported"){super(t)}};function X1(e){return new KG(e)}function UG(){return this._qualifierModel||{error:X1(`unsupported qualifier ${this.constructor.name}`)}}let zG=class{constructor(){this._qualifierModel={}}toJson(){return UG.apply(this)}},Je=class extends zG{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vt?this.qualifierValue=n:(this.qualifierValue=new Vt,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}},Tr=class extends Je{constructor(t,n){let r;n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function qG(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function WG(){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:X1(`unsupported action ${this.constructor.name}`)}}let HG=class{constructor(){this._actionModel={}}toJson(){return WG.apply(this)}},Gr=class extends HG{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(),qG(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 Tr(r)):this.qualifiers.set(n,new Je(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Tr(t)):t instanceof Tr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Q1 extends Gr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class gp extends Q1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Je("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Je("h",t)),this}static fromJson(t){const n=new gp;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 GG(){return new gp}function q7(){return new Q1("faces")}function YG(){return new Q1("ocr_text")}class ZG extends Gr{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 Je("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`blur_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`blur_faces${t}`))):this.addQualifier(new Je("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(q7()),r&&r.regionType==="ocr_text"&&i.region(YG()),r&&r.regionType==="custom"&&i.region(gp.fromJson(r)),i}}function Ja(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const W7={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},JG={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},H7={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},G7={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},XG={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},Y7={444:"CHROMA_444",420:"CHROMA_420"},QG={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},eY=Ja(Y7);Ja(QG);const tY=Ja(W7),nY=Ja(JG),Z7=Ja(H7);Ja(G7);Ja(XG);class J7 extends Gr{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=Z7[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=new Vt(t),new Je("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=H7[n]||n;return new this(o,r||i)}}class rY extends J7{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=Z7[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 vp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class iY extends Gr{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 Vt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Vt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Vt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Vt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Vt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Je("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),o&&l.despeckleLevel(o),a&&l.detailsLevel(a),u&&l.numOfColors(u),l}}class oY extends rY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class aY extends Gr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Je("e",new Vt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Je("e",new Vt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Je("e",new Vt(["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 sY extends oY{color(t){return this._actionModel.color=t,this.addQualifier(new Je("co",new Vt(vp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class uY extends Gr{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 Je("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Je("e",`pixelate_region${t}`)),this.addQualifier(new Je("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Je("e",`pixelate_faces${t}`))):this.addQualifier(new Je("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(q7()),n&&n.regionType==="custom"&&i.region(GG()),i}}function lY(e){return new ZG(e)}function cY(){return new J7("grayscale")}function UD(e){return new sY("colorize",e)}function fY(){return new iY}function dY(){return new aY}function hY(e){return new uY(e)}let pY=class extends Gr{constructor(t){super(),this._actionModel={},this.addQualifier(new Je("b",new Vt(vp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},zD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:X1(`unsupported action ${this.constructor.name}`)}}};function mY(e){const t=e;return"error"in t&&!!t.error}function gY(){return new Tr("ignore_aspect_ratio")}function vY(){return new Tr("lossy")}function yY(){return new Tr("preserve_transparency")}function bY(e){return new Tr("progressive",e)}function $Y(){return new Tr("region_relative")}function xY(){return new Tr("relative")}let e4=class extends Vt{constructor(t){super(t),this.val=t}getValue(){return this.val}},X7=class extends Gr{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof e4?i=n.getValue():i=n,this._actionModel.actionType=nY[t],this._actionModel[r]=i,this.addQualifier(new Je(t,n))}},wY=class extends Tr{constructor(t){super("progressive",t)}},xb=class extends X7{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(vY()),this}progressive(t){return t instanceof wY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(bY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(yY()),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}},yp=class Q7{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 zD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Q7?this.actions=this.actions.concat(t.actions):this.actions.push(new zD(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 xb("q",t)),this}format(t){return this.addAction(new xb("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 pY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Gr;let r=t;return typeof t=="string"&&(r=new Tr(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(mY(r))return r;t.push(r)}return{actions:t}}};function qD(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 DY extends Vt{}class CY extends Gr{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=tY[t]||t,this.addQualifier(new Je("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Je("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Je("w",t))}aspectRatio(t){if(t instanceof DY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Je("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=qD(t),this.addQualifier(new Je("ar",qD(t)));if(t instanceof Tr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(xY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag($Y())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:l}=r,f=W7[n]||n,d=new this(f,u,l);return a&&d.aspectRatio(a==="ignore_aspect_ratio"?gY():a),i&&d.relative(),o&&d.regionRelative(),d}}class t4 extends Je{constructor(t){super("g",new Vt(t))}}class eO extends t4{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class tO extends t4{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class nO extends t4{constructor(t){super(t)}}function EY(e){return new nO(e)}function rO(...e){const t=[...e];return new tO(t)}function iO(){return new eO}class hu extends Vt{constructor(t){super(),this.name=t}toString(){return this.name}}function SY(){return new hu("ocr_text")}function TY(e){return e&&`${e}`.split(":")[0]==="auto"}function AY(e){const t=n4(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function n4(e){return`${e}`.replace("g_","")}function PY(e){return{compass:n4(e),gravityType:"direction"}}function _Y(e){return n4(e)==="ocr_text"}function RY(){return{gravityType:"ocr"}}function OY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function MY(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 oO(e){let t;const n=e==="auto"?new eO: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(MY)}}function FY(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=iO().autoFocus(...o);i.fallbackGravity=oO(a)}return i}function kY(e){const n=e.split(":").map(r=>new hu(r));return new tO(n)}function IY(e){return AY(e)?PY(e):_Y(e)?RY():TY(e)||OY(e)?oO(e):FY(typeof e=="string"?kY(e):e)}class r4 extends Vt{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof hu?t:new hu(t);return new r4(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 aO extends Vt{constructor(t){super(),this.val=t}toString(){return this.val}}function BY(e){return e.gravityType==="direction"}function LY(e){return e.gravityType==="ocr"}function VY(e){return e.gravityType==="auto"}function NY(e){const{object:t,weight:n,avoid:r}=e,i=new r4(new hu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function sO(e){const n=(e.autoFocus||[]).map(NY);return iO().autoFocus(...n)}function jY(e){const t=(e.focusOnObjects||[]).map(r=>new hu(r)),n=rO(...t);if(e.fallbackGravity){const r=sO(e.fallbackGravity);n.fallbackGravity(r)}return n}function KY(e){return BY(e)?new nO(new aO(e.compass)):LY(e)?rO(SY()):VY(e)?sO(e):jY(e)}class i4 extends CY{gravity(t){this._actionModel.gravity=IY(t);const n=typeof t=="string"?new Je("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(KY(t.gravity)),n}}class Jc extends Je{constructor(t){super("b"),t&&this.addValue(t)}}const uO=100,UY=0;class zY extends Jc{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}`:`:${uO}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var lO=zY;class o4 extends Jc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>vp(n)),this}}class cO extends o4{toString(){return`
|
|
85
|
-
b_auto:border
|
|
86
|
-
${this._contrast?"_contrast":""}
|
|
87
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
88
|
-
`.replace(/\s+/g,"")}}class fO extends o4{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class dO extends fO{toString(){return`
|
|
89
|
-
b_auto:border_gradient
|
|
90
|
-
${this._contrast?"_contrast":""}
|
|
91
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
92
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
93
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
94
|
-
`.replace(/\s+/g,"")}}class hO extends fO{toString(){return`
|
|
95
|
-
b_auto:predominant_gradient
|
|
96
|
-
${this._contrast?"_contrast":""}
|
|
97
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
98
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
99
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
100
|
-
`.replace(/\s+/g,"")}}class pO extends o4{toString(){return`
|
|
101
|
-
b_auto:predominant
|
|
102
|
-
${this._contrast?"_contrast":""}
|
|
103
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
-
`.replace(/\s+/g,"")}}class mO extends Jc{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 gO(e){return`${e}`.replace("b_","")}function qY(){return{backgroundType:"auto"}}function WY(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 a4(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function HY(e){return Object.assign(Object.assign({},a4(e)),{backgroundType:"border"})}function vO(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=a4(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function GY(e){return Object.assign(Object.assign({},vO(e)),{backgroundType:"borderGradient"})}function YY(e){return{backgroundType:"color",color:gO(e)}}function ZY(e){return Object.assign(Object.assign({},a4(e)),{backgroundType:"predominant"})}function JY(e){return Object.assign(Object.assign({},vO(e)),{backgroundType:"predominantGradient"})}function XY(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function QY(e){return gO(e)==="auto"?qY():e instanceof lO?WY(e):e instanceof cO?HY(e):e instanceof dO?GY(e):e instanceof pO?ZY(e):e instanceof hO?JY(e):e instanceof mO?XY(e):YY(e)}function eZ(){return new e4("svg")}function s4(){return new e4("auto")}function yO(){return new cO}function bO(){return new Jc("auto")}function $O(){return new dO}function xO(){return new hO}function wO(){return new pO}function DO(e){return new Jc(vp(e))}function tZ(){return new lO}function CO(){return new mO}const EO={auto:bO,border:yO,borderGradient:$O,predominantGradient:xO,predominant:wO,color:DO,blurred:tZ,generativeFill:CO};function nZ(e){const{brightness:t,intensity:n}=e,r=EO.blurred();return r.brightness(t??UY),r.intensity(n??uO),r}function WD(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 HD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function rZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function iZ(e){const{backgroundType:t}=e;switch(t){case"auto":return bO();case"blurred":return nZ(e);case"border":return HD(yO(),e);case"borderGradient":return WD($O(),e);case"predominant":return HD(wO(),e);case"predominantGradient":return WD(xO(),e);case"generativeFill":return rZ(CO(),e);default:return DO(e.color)}}class oZ extends i4{background(t){return this._actionModel.background=QY(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(iZ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class aZ extends i4{x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Je("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Je("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 sZ extends i4{x(t){return this._actionModel.x=t,this.addQualifier(new Je("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Je("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 uZ(e,t){return new aZ("crop",e,t)}function lZ(e,t){return new sZ("fill",e,t)}function cZ(e,t){return new oZ("pad",e,t)}class fZ extends X7{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Y7[t];const n=new Vt([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Je("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Vt([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Je("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=G7[n]||n,a=new this(o);if(r){const u=eY[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function bp(e){return new xb("f",e)}function $p(e){return new fZ(e)}function dZ(){return new aO("north_east")}UD(70).color("black"),UD(40).color("white"),cY(),dY();var hZ=new yp().effect(fY()).delivery($p("auto")).delivery(bp(eZ())),pZ=new yp().effect(hY()).delivery($p("auto")).delivery(bp(s4())),mZ=new yp().effect(lY(2e3)).delivery($p("auto")).delivery(bp(s4())),gZ=new yp().resize(cZ("iw_div_2").aspectRatio(1).background(EO.auto())).resize(uZ(1,1).gravity(EY(dZ()))).resize(lZ().height("ih").width("iw")).delivery($p("auto")).delivery(bp(s4())),GD={vectorize:hZ,pixelate:pZ,blur:mZ,"predominant-color":gZ},YD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ZD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},JD="?_a=",vZ=function(){function e(t,n,r,i,o,a,u){var l=this;this.mimeType="video",this.mimeSubTypes=ZD,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var f=No(n);wh(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(d){d()}),l.setVideoAttributes(o,a),l.handleSourceToVideo(f,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(No(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(No(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(),l=u.split(JD),f=l[1]?"".concat(JD).concat(l[1]):"",d=a?"":".".concat(n);o.src="".concat(l[0]).concat(d).concat(f),o.type=r||"video/".concat(ZD[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=No(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],l=u[0],f=u[1];f&&this.videoElement.setAttribute(l,l==="poster"?f:"")}},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]);wh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),yZ=typeof Vo=="object"&&Vo&&Vo.Object===Object&&Vo,bZ=typeof self=="object"&&self&&self.Object===Object&&self;yZ||bZ||Function("return this")();function u4(){return typeof window<"u"}function $Z(e){return e instanceof HTMLImageElement}function xZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return wZ.bind(null,r,o)}function wZ(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),u4()?new Promise(function(a){var u=function(){return a({lazyload:!0})},l=CZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function DZ(){return window&&"IntersectionObserver"in window}function CZ(e,t,n,r){try{if(!DZ())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 EZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return SZ.bind(null,r)}function SZ(e,t,n,r,i,o){GD[e]||(e="vectorize");var a=GD[e].actions,u=No(n);if(a.forEach(function(f){u.addAction(f)}),!u4())return n.transformation=u.transformation,!0;if($Z(t)){u.transformation.actions.forEach(function(f,d){f instanceof Gr&&f.getActionTag()==="responsive"&&delete u.transformation.actions[d]});var l=$b(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=YD},new Promise(function(f){t.onload=function(){f()}}).then(function(){return new Promise(function(f){r.cleanupCallbacks.push(function(){t.src=YD,f("canceled")});var d=new Image;d.src=n.toURL(l),d.onload=function(){f({placeholder:!0})},d.onerror=function(){f({placeholder:!0})}})})}}function TZ(e,t,n){var r=No(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL(n?{trackedAnalytics:n}:null)}function Dh(e){e.cleanupCallbacks.forEach(function(t){t()})}var wb=function(e,t){return wb=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])},wb(e,t)};function SO(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Dc=function(){return Dc=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},Dc.apply(this,arguments)};function TO(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 Cc={exports:{}},bt={};/*
|
|
105
|
-
object-assign
|
|
106
|
-
(c) Sindre Sorhus
|
|
107
|
-
@license MIT
|
|
108
|
-
*/var XD=Object.getOwnPropertySymbols,AZ=Object.prototype.hasOwnProperty,PZ=Object.prototype.propertyIsEnumerable;function _Z(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function RZ(){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 AO=RZ()?Object.assign:function(e,t){for(var n,r=_Z(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)AZ.call(n,a)&&(r[a]=n[a]);if(XD){i=XD(n);for(var u=0;u<i.length;u++)PZ.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
109
|
-
* react.production.min.js
|
|
110
|
-
*
|
|
111
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the MIT license found in the
|
|
114
|
-
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/var l4=AO,Yr=typeof Symbol=="function"&&Symbol.for,Xc=Yr?Symbol.for("react.element"):60103,OZ=Yr?Symbol.for("react.portal"):60106,MZ=Yr?Symbol.for("react.fragment"):60107,FZ=Yr?Symbol.for("react.strict_mode"):60108,kZ=Yr?Symbol.for("react.profiler"):60114,IZ=Yr?Symbol.for("react.provider"):60109,BZ=Yr?Symbol.for("react.context"):60110,LZ=Yr?Symbol.for("react.forward_ref"):60112,VZ=Yr?Symbol.for("react.suspense"):60113,NZ=Yr?Symbol.for("react.memo"):60115,jZ=Yr?Symbol.for("react.lazy"):60116,QD=typeof Symbol=="function"&&Symbol.iterator;function Qc(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 PO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_O={};function Pu(e,t,n){this.props=e,this.context=t,this.refs=_O,this.updater=n||PO}Pu.prototype.isReactComponent={};Pu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Qc(85));this.updater.enqueueSetState(this,e,t,"setState")};Pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function RO(){}RO.prototype=Pu.prototype;function c4(e,t,n){this.props=e,this.context=t,this.refs=_O,this.updater=n||PO}var f4=c4.prototype=new RO;f4.constructor=c4;l4(f4,Pu.prototype);f4.isPureReactComponent=!0;var d4={current:null},OO=Object.prototype.hasOwnProperty,MO={key:!0,ref:!0,__self:!0,__source:!0};function FO(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)OO.call(t,r)&&!MO.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),f=0;f<u;f++)l[f]=arguments[f+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Xc,type:e,key:o,ref:a,props:i,_owner:d4.current}}function KZ(e,t){return{$$typeof:Xc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function h4(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xc}function UZ(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var kO=/\/+/g,Ch=[];function IO(e,t,n,r){if(Ch.length){var i=Ch.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 BO(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Ch.length&&Ch.push(e)}function Db(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 Xc:case OZ:o=!0}}if(o)return n(r,e,t===""?"."+Fg(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+Fg(i,a);o+=Db(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=QD&&e[QD]||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+Fg(i,a++),o+=Db(i,u,n,r);else if(i==="object")throw n=""+e,Error(Qc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function Cb(e,t,n){return e==null?0:Db(e,"",t,n)}function Fg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?UZ(e.key):t.toString(36)}function zZ(e,t){e.func.call(e.context,t,e.count++)}function qZ(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Eb(e,r,n,function(o){return o}):e!=null&&(h4(e)&&(e=KZ(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(kO,"$&/")+"/")+n)),r.push(e))}function Eb(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(kO,"$&/")+"/"),t=IO(t,o,r,i),Cb(e,qZ,t),BO(t)}var LO={current:null};function co(){var e=LO.current;if(e===null)throw Error(Qc(321));return e}var WZ={ReactCurrentDispatcher:LO,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:d4,IsSomeRendererActing:{current:!1},assign:l4};bt.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Eb(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=IO(null,null,t,n),Cb(e,zZ,t),BO(t)},count:function(e){return Cb(e,function(){return null},null)},toArray:function(e){var t=[];return Eb(e,t,null,function(n){return n}),t},only:function(e){if(!h4(e))throw Error(Qc(143));return e}};bt.Component=Pu;bt.Fragment=MZ;bt.Profiler=kZ;bt.PureComponent=c4;bt.StrictMode=FZ;bt.Suspense=VZ;bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WZ;bt.cloneElement=function(e,t,n){if(e==null)throw Error(Qc(267,e));var r=l4({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=d4.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)OO.call(t,l)&&!MO.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var f=0;f<l;f++)u[f]=arguments[f+2];r.children=u}return{$$typeof:Xc,type:e.type,key:i,ref:o,props:r,_owner:a}};bt.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:BZ,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:IZ,_context:e},e.Consumer=e};bt.createElement=FO;bt.createFactory=function(e){var t=FO.bind(null,e);return t.type=e,t};bt.createRef=function(){return{current:null}};bt.forwardRef=function(e){return{$$typeof:LZ,render:e}};bt.isValidElement=h4;bt.lazy=function(e){return{$$typeof:jZ,_ctor:e,_status:-1,_result:null}};bt.memo=function(e,t){return{$$typeof:NZ,type:e,compare:t===void 0?null:t}};bt.useCallback=function(e,t){return co().useCallback(e,t)};bt.useContext=function(e,t){return co().useContext(e,t)};bt.useDebugValue=function(){};bt.useEffect=function(e,t){return co().useEffect(e,t)};bt.useImperativeHandle=function(e,t,n){return co().useImperativeHandle(e,t,n)};bt.useLayoutEffect=function(e,t){return co().useLayoutEffect(e,t)};bt.useMemo=function(e,t){return co().useMemo(e,t)};bt.useReducer=function(e,t,n){return co().useReducer(e,t,n)};bt.useRef=function(e){return co().useRef(e)};bt.useState=function(e){return co().useState(e)};bt.version="16.14.0";var yt={},HZ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",GZ=HZ,YZ=Function.call.bind(Object.prototype.hasOwnProperty),Sb=function(){};if(process.env.NODE_ENV!=="production"){var ZZ=GZ,Tb={},JZ=YZ;Sb=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function VO(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(JZ(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,ZZ)}catch(f){a=f}if(a&&!(a instanceof Error)&&Sb((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 Tb)){Tb[a.message]=!0;var l=i?i():"";Sb("Failed "+n+" type: "+a.message+(l??""))}}}}VO.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Tb={})};var XZ=VO;/** @license React v16.14.0
|
|
116
|
-
* react.development.js
|
|
117
|
-
*
|
|
118
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the MIT license found in the
|
|
121
|
-
* LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/process.env.NODE_ENV!=="production"&&function(){var e=AO,t=XZ,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,l=r?Symbol.for("react.profiler"):60114,f=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,D=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,T=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function M(I){if(I===null||typeof I!="object")return null;var X=E&&I[E]||I[A];return typeof X=="function"?X:null}var S={current:null},z={suspense:null},j={current:null},O=/^(.*)[\\\/]/;function Z(I,X,se){var ge="";if(X){var _e=X.fileName,Xe=_e.replace(O,"");if(/^index\./.test(Xe)){var Ve=_e.match(O);if(Ve){var Ke=Ve[1];if(Ke){var $t=Ke.replace(O,"");Xe=$t+"/"+Xe}}}ge=" (at "+Xe+":"+X.lineNumber+")"}else se&&(ge=" (created by "+se+")");return`
|
|
123
|
-
in `+(I||"Unknown")+ge}var R=1;function V(I){return I._status===R?I._result:null}function W(I,X,se){var ge=X.displayName||X.name||"";return I.displayName||(ge!==""?se+"("+ge+")":se)}function L(I){if(I==null)return null;if(typeof I.tag=="number"&&ie("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case a:return"Fragment";case o:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case d:return"Context.Consumer";case f:return"Context.Provider";case p:return W(I,I.render,"ForwardRef");case b:return L(I.type);case $:return L(I.render);case D:{var X=I,se=V(X);if(se)return L(se);break}}return null}var k={},_=null;function H(I){_=I}k.getCurrentStack=null,k.getStackAddendum=function(){var I="";if(_){var X=L(_.type),se=_._owner;I+=Z(X,_._source,se&&L(se.type))}var ge=k.getCurrentStack;return ge&&(I+=ge()||""),I};var U={current:!1},N={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:z,ReactCurrentOwner:j,IsSomeRendererActing:U,assign:e};e(N,{ReactDebugCurrentFrame:k,ReactComponentTreeHook:{}});function ne(I){{for(var X=arguments.length,se=new Array(X>1?X-1:0),ge=1;ge<X;ge++)se[ge-1]=arguments[ge];ce("warn",I,se)}}function ie(I){{for(var X=arguments.length,se=new Array(X>1?X-1:0),ge=1;ge<X;ge++)se[ge-1]=arguments[ge];ce("error",I,se)}}function ce(I,X,se){{var ge=se.length>0&&typeof se[se.length-1]=="string"&&se[se.length-1].indexOf(`
|
|
124
|
-
in`)===0;if(!ge){var _e=N.ReactDebugCurrentFrame,Xe=_e.getStackAddendum();Xe!==""&&(X+="%s",se=se.concat([Xe]))}var Ve=se.map(function(Rt){return""+Rt});Ve.unshift("Warning: "+X),Function.prototype.apply.call(console[I],console,Ve);try{var Ke=0,$t="Warning: "+X.replace(/%s/g,function(){return se[Ke++]});throw new Error($t)}catch{}}}var xe={};function De(I,X){{var se=I.constructor,ge=se&&(se.displayName||se.name)||"ReactClass",_e=ge+"."+X;if(xe[_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.",X,ge),xe[_e]=!0}}var Ee={isMounted:function(I){return!1},enqueueForceUpdate:function(I,X,se){De(I,"forceUpdate")},enqueueReplaceState:function(I,X,se,ge){De(I,"replaceState")},enqueueSetState:function(I,X,se,ge){De(I,"setState")}},J={};Object.freeze(J);function ve(I,X,se){this.props=I,this.context=X,this.refs=J,this.updater=se||Ee}ve.prototype.isReactComponent={},ve.prototype.setState=function(I,X){if(!(typeof I=="object"||typeof I=="function"||I==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,I,X,"setState")},ve.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};{var we={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)."]},me=function(I,X){Object.defineProperty(ve.prototype,I,{get:function(){ne("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var ue in we)we.hasOwnProperty(ue)&&me(ue,we[ue])}function Le(){}Le.prototype=ve.prototype;function nt(I,X,se){this.props=I,this.context=X,this.refs=J,this.updater=se||Ee}var Nt=nt.prototype=new Le;Nt.constructor=nt,e(Nt,ve.prototype),Nt.isPureReactComponent=!0;function Xn(){var I={current:null};return Object.seal(I),I}var Pt=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0},Q,re,ye;ye={};function Se(I){if(Pt.call(I,"ref")){var X=Object.getOwnPropertyDescriptor(I,"ref").get;if(X&&X.isReactWarning)return!1}return I.ref!==void 0}function Ce(I){if(Pt.call(I,"key")){var X=Object.getOwnPropertyDescriptor(I,"key").get;if(X&&X.isReactWarning)return!1}return I.key!==void 0}function Fe(I,X){var se=function(){Q||(Q=!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)",X))};se.isReactWarning=!0,Object.defineProperty(I,"key",{get:se,configurable:!0})}function Ne(I,X){var se=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)",X))};se.isReactWarning=!0,Object.defineProperty(I,"ref",{get:se,configurable:!0})}function _t(I){if(typeof I.ref=="string"&&j.current&&I.__self&&j.current.stateNode!==I.__self){var X=L(j.current.type);ye[X]||(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',L(j.current.type),I.ref),ye[X]=!0)}}var ut=function(I,X,se,ge,_e,Xe,Ve){var Ke={$$typeof:i,type:I,key:X,ref:se,props:Ve,_owner:Xe};return Ke._store={},Object.defineProperty(Ke._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ke,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.defineProperty(Ke,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.freeze&&(Object.freeze(Ke.props),Object.freeze(Ke)),Ke};function Zt(I,X,se){var ge,_e={},Xe=null,Ve=null,Ke=null,$t=null;if(X!=null){Se(X)&&(Ve=X.ref,_t(X)),Ce(X)&&(Xe=""+X.key),Ke=X.__self===void 0?null:X.__self,$t=X.__source===void 0?null:X.__source;for(ge in X)Pt.call(X,ge)&&!G.hasOwnProperty(ge)&&(_e[ge]=X[ge])}var Rt=arguments.length-2;if(Rt===1)_e.children=se;else if(Rt>1){for(var cn=Array(Rt),fn=0;fn<Rt;fn++)cn[fn]=arguments[fn+2];Object.freeze&&Object.freeze(cn),_e.children=cn}if(I&&I.defaultProps){var sr=I.defaultProps;for(ge in sr)_e[ge]===void 0&&(_e[ge]=sr[ge])}if(Xe||Ve){var Tn=typeof I=="function"?I.displayName||I.name||"Unknown":I;Xe&&Fe(_e,Tn),Ve&&Ne(_e,Tn)}return ut(I,Xe,Ve,Ke,$t,j.current,_e)}function Xr(I,X){var se=ut(I.type,X,I.ref,I._self,I._source,I._owner,I.props);return se}function Rr(I,X,se){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var ge,_e=e({},I.props),Xe=I.key,Ve=I.ref,Ke=I._self,$t=I._source,Rt=I._owner;if(X!=null){Se(X)&&(Ve=X.ref,Rt=j.current),Ce(X)&&(Xe=""+X.key);var cn;I.type&&I.type.defaultProps&&(cn=I.type.defaultProps);for(ge in X)Pt.call(X,ge)&&!G.hasOwnProperty(ge)&&(X[ge]===void 0&&cn!==void 0?_e[ge]=cn[ge]:_e[ge]=X[ge])}var fn=arguments.length-2;if(fn===1)_e.children=se;else if(fn>1){for(var sr=Array(fn),Tn=0;Tn<fn;Tn++)sr[Tn]=arguments[Tn+2];_e.children=sr}return ut(I.type,Xe,Ve,Ke,$t,Rt,_e)}function mn(I){return typeof I=="object"&&I!==null&&I.$$typeof===i}var Qr=".",ei=":";function ti(I){var X=/[=:]/g,se={"=":"=0",":":"=2"},ge=(""+I).replace(X,function(_e){return se[_e]});return"$"+ge}var Or=!1,Qo=/\/+/g;function ni(I){return(""+I).replace(Qo,"$&/")}var Mi=10,ri=[];function po(I,X,se,ge){if(ri.length){var _e=ri.pop();return _e.result=I,_e.keyPrefix=X,_e.func=se,_e.context=ge,_e.count=0,_e}else return{result:I,keyPrefix:X,func:se,context:ge,count:0}}function Fi(I){I.result=null,I.keyPrefix=null,I.func=null,I.context=null,I.count=0,ri.length<Mi&&ri.push(I)}function ar(I,X,se,ge){var _e=typeof I;(_e==="undefined"||_e==="boolean")&&(I=null);var Xe=!1;if(I===null)Xe=!0;else switch(_e){case"string":case"number":Xe=!0;break;case"object":switch(I.$$typeof){case i:case o:Xe=!0}}if(Xe)return se(ge,I,X===""?Qr+ta(I,0):X),1;var Ve,Ke,$t=0,Rt=X===""?Qr:X+ei;if(Array.isArray(I))for(var cn=0;cn<I.length;cn++)Ve=I[cn],Ke=Rt+ta(Ve,cn),$t+=ar(Ve,Ke,se,ge);else{var fn=M(I);if(typeof fn=="function"){fn===I.entries&&(Or||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."),Or=!0);for(var sr=fn.call(I),Tn,ds=0;!(Tn=sr.next()).done;)Ve=Tn.value,Ke=Rt+ta(Ve,ds++),$t+=ar(Ve,Ke,se,ge)}else if(_e==="object"){var sa="";sa=" If you meant to render a collection of children, use an array instead."+k.getStackAddendum();var ua=""+I;throw Error("Objects are not valid as a React child (found: "+(ua==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ua)+")."+sa)}}return $t}function ea(I,X,se){return I==null?0:ar(I,"",X,se)}function ta(I,X){return typeof I=="object"&&I!==null&&I.key!=null?ti(I.key):X.toString(36)}function Uu(I,X,se){var ge=I.func,_e=I.context;ge.call(_e,X,I.count++)}function zu(I,X,se){if(I==null)return I;var ge=po(null,null,X,se);ea(I,Uu,ge),Fi(ge)}function ns(I,X,se){var ge=I.result,_e=I.keyPrefix,Xe=I.func,Ve=I.context,Ke=Xe.call(Ve,X,I.count++);Array.isArray(Ke)?mo(Ke,ge,se,function($t){return $t}):Ke!=null&&(mn(Ke)&&(Ke=Xr(Ke,_e+(Ke.key&&(!X||X.key!==Ke.key)?ni(Ke.key)+"/":"")+se)),ge.push(Ke))}function mo(I,X,se,ge,_e){var Xe="";se!=null&&(Xe=ni(se)+"/");var Ve=po(X,Xe,ge,_e);ea(I,ns,Ve),Fi(Ve)}function rs(I,X,se){if(I==null)return I;var ge=[];return mo(I,ge,null,X,se),ge}function Mr(I){return ea(I,function(){return null},null)}function na(I){var X=[];return mo(I,X,null,function(se){return se}),X}function qu(I){if(!mn(I))throw Error("React.Children.only expected to receive a single React element child.");return I}function ra(I,X){X===void 0?X=null:X!==null&&typeof X!="function"&&ie("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var se={$$typeof:d,_calculateChangedBits:X,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null};se.Provider={$$typeof:f,_context:se};var ge=!1,_e=!1;{var Xe={$$typeof:d,_context:se,_calculateChangedBits:se._calculateChangedBits};Object.defineProperties(Xe,{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?")),se.Provider},set:function(Ve){se.Provider=Ve}},_currentValue:{get:function(){return se._currentValue},set:function(Ve){se._currentValue=Ve}},_currentValue2:{get:function(){return se._currentValue2},set:function(Ve){se._currentValue2=Ve}},_threadCount:{get:function(){return se._threadCount},set:function(Ve){se._threadCount=Ve}},Consumer:{get:function(){return ge||(ge=!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?")),se.Consumer}}}),se.Consumer=Xe}return se._currentRenderer=null,se._currentRenderer2=null,se}function Wu(I){var X={$$typeof:D,_ctor:I,_status:-1,_result:null};{var se,ge;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return se},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."),se=_e,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ge},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."),ge=_e,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function Hu(I){return I!=null&&I.$$typeof===b?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof I!="function"?ie("forwardRef requires a render function but was given %s.",I===null?"null":typeof I):I.length!==0&&I.length!==2&&ie("forwardRef render functions accept exactly two parameters: props and ref. %s",I.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),I!=null&&(I.defaultProps!=null||I.propTypes!=null)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:p,render:I}}function Bn(I){return typeof I=="string"||typeof I=="function"||I===a||I===h||I===l||I===u||I===g||I===v||typeof I=="object"&&I!==null&&(I.$$typeof===D||I.$$typeof===b||I.$$typeof===f||I.$$typeof===d||I.$$typeof===p||I.$$typeof===y||I.$$typeof===w||I.$$typeof===T||I.$$typeof===$)}function Gu(I,X){return Bn(I)||ie("memo: The first argument must be a component. Instead received: %s",I===null?"null":typeof I),{$$typeof:b,type:I,compare:X===void 0?null:X}}function Ln(){var I=S.current;if(I===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:
|
|
125
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
126
|
-
2. You might be breaking the Rules of Hooks
|
|
127
|
-
3. You might have more than one copy of React in the same app
|
|
128
|
-
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return I}function Yu(I,X){var se=Ln();if(X!==void 0&&ie("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",X,typeof X=="number"&&Array.isArray(arguments[2])?`
|
|
129
|
-
|
|
130
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),I._context!==void 0){var ge=I._context;ge.Consumer===I?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?"):ge.Provider===I&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return se.useContext(I,X)}function Zu(I){var X=Ln();return X.useState(I)}function Ju(I,X,se){var ge=Ln();return ge.useReducer(I,X,se)}function Fr(I){var X=Ln();return X.useRef(I)}function Xu(I,X){var se=Ln();return se.useEffect(I,X)}function Qu(I,X){var se=Ln();return se.useLayoutEffect(I,X)}function el(I,X){var se=Ln();return se.useCallback(I,X)}function tl(I,X){var se=Ln();return se.useMemo(I,X)}function nl(I,X,se){var ge=Ln();return ge.useImperativeHandle(I,X,se)}function ii(I,X){{var se=Ln();return se.useDebugValue(I,X)}}var oi;oi=!1;function is(){if(j.current){var I=L(j.current.type);if(I)return`
|
|
131
|
-
|
|
132
|
-
Check the render method of \``+I+"`."}return""}function go(I){if(I!==void 0){var X=I.fileName.replace(/^.*[\\\/]/,""),se=I.lineNumber;return`
|
|
133
|
-
|
|
134
|
-
Check your code at `+X+":"+se+"."}return""}function rl(I){return I!=null?go(I.__source):""}var os={};function il(I){var X=is();if(!X){var se=typeof I=="string"?I:I.displayName||I.name;se&&(X=`
|
|
135
|
-
|
|
136
|
-
Check the top-level render call using <`+se+">.")}return X}function vo(I,X){if(!(!I._store||I._store.validated||I.key!=null)){I._store.validated=!0;var se=il(X);if(!os[se]){os[se]=!0;var ge="";I&&I._owner&&I._owner!==j.current&&(ge=" It was passed a child from "+L(I._owner.type)+"."),H(I),ie('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',se,ge),H(null)}}}function ai(I,X){if(typeof I=="object"){if(Array.isArray(I))for(var se=0;se<I.length;se++){var ge=I[se];mn(ge)&&vo(ge,X)}else if(mn(I))I._store&&(I._store.validated=!0);else if(I){var _e=M(I);if(typeof _e=="function"&&_e!==I.entries)for(var Xe=_e.call(I),Ve;!(Ve=Xe.next()).done;)mn(Ve.value)&&vo(Ve.value,X)}}}function ia(I){{var X=I.type;if(X==null||typeof X=="string")return;var se=L(X),ge;if(typeof X=="function")ge=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===p||X.$$typeof===b))ge=X.propTypes;else return;ge?(H(I),t(ge,I.props,"prop",se,k.getStackAddendum),H(null)):X.PropTypes!==void 0&&!oi&&(oi=!0,ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function oa(I){{H(I);for(var X=Object.keys(I.props),se=0;se<X.length;se++){var ge=X[se];if(ge!=="children"&&ge!=="key"){ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ge);break}}I.ref!==null&&ie("Invalid attribute `ref` supplied to `React.Fragment`."),H(null)}}function as(I,X,se){var ge=Bn(I);if(!ge){var _e="";(I===void 0||typeof I=="object"&&I!==null&&Object.keys(I).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 Xe=rl(X);Xe?_e+=Xe:_e+=is();var Ve;I===null?Ve="null":Array.isArray(I)?Ve="array":I!==void 0&&I.$$typeof===i?(Ve="<"+(L(I.type)||"Unknown")+" />",_e=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof I,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,_e)}var Ke=Zt.apply(this,arguments);if(Ke==null)return Ke;if(ge)for(var $t=2;$t<arguments.length;$t++)ai(arguments[$t],I);return I===a?oa(Ke):ia(Ke),Ke}var ss=!1;function ol(I){var X=as.bind(null,I);return X.type=I,ss||(ss=!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(X,"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:I}),I}}),X}function us(I,X,se){for(var ge=Rr.apply(this,arguments),_e=2;_e<arguments.length;_e++)ai(arguments[_e],ge.type);return ia(ge),ge}try{var aa=Object.freeze({}),ls=new Map([[aa,null]]),ki=new Set([aa]);ls.set(0,0),ki.add(0)}catch{}var al=as,cs=us,yo=ol,fs={map:rs,forEach:zu,count:Mr,toArray:na,only:qu};yt.Children=fs,yt.Component=ve,yt.Fragment=a,yt.Profiler=l,yt.PureComponent=nt,yt.StrictMode=u,yt.Suspense=g,yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,yt.cloneElement=cs,yt.createContext=ra,yt.createElement=al,yt.createFactory=yo,yt.createRef=Xn,yt.forwardRef=Hu,yt.isValidElement=mn,yt.lazy=Wu,yt.memo=Gu,yt.useCallback=el,yt.useContext=Yu,yt.useDebugValue=ii,yt.useEffect=Xu,yt.useImperativeHandle=nl,yt.useLayoutEffect=Qu,yt.useMemo=tl,yt.useReducer=Ju,yt.useRef=Fr,yt.useState=Zu,yt.version=n}();process.env.NODE_ENV==="production"?Cc.exports=bt:Cc.exports=yt;var Ns=Cc.exports,kg={sdkSemver:"1.13.1",techVersion:Ns.version,sdkCode:"J"},QZ=function(e){SO(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Ns.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new jG(this.imageRef.current,this.props.cldImg,this.props.plugins,kg)},t.prototype.componentDidUpdate=function(){Dh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,kg)},t.prototype.componentWillUnmount=function(){Dh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=TO(n,["cldImg","plugins"]);if(u4())return Ns.createElement("img",Dc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=TZ(this.props.plugins,this.props.cldImg,kg);return Ns.createElement("img",Dc({},r,{src:i}))},t}(Ns.Component),eJ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){SO(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=Cc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new vZ(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(){Dh(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Dh(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return eJ.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=TO(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Ns.createElement("video",Dc({},r,{ref:this.attachRef}))},t})(Cc.exports.Component);function tJ(e){return!(typeof e!="object"||e instanceof Array)}class nJ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return tJ(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 eC=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class p4 extends nJ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,eC);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,eC);return new p4(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 Ec{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 rJ extends Error{constructor(t="Unsupported"){super(t)}}function m4(e){return new rJ(e)}function iJ(){return this._qualifierModel||{error:m4(`unsupported qualifier ${this.constructor.name}`)}}class oJ{constructor(){this._qualifierModel={}}toJson(){return iJ.apply(this)}}class xp extends oJ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Ec?this.qualifierValue=n:(this.qualifierValue=new Ec,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 Ko extends xp{constructor(t,n){let r;n?r=new Ec([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function aJ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function sJ(){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:m4(`unsupported action ${this.constructor.name}`)}}class uJ{constructor(){this._actionModel={}}toJson(){return sJ.apply(this)}}class g4 extends uJ{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(),aJ(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 Ko(r)):this.qualifiers.set(n,new xp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Ko(t)):t instanceof Ko&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function lJ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class cJ extends g4{constructor(t){super(),this._actionModel={},this.addQualifier(new xp("b",new Ec(lJ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class tC{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:m4(`unsupported action ${this.constructor.name}`)}}}function fJ(e){const t=e;return"error"in t&&!!t.error}function dJ(){return new Ko("lossy")}function hJ(){return new Ko("preserve_transparency")}function pJ(e){return new Ko("progressive",e)}class mJ extends Ec{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Xa(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const gJ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},vJ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},yJ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},bJ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},$J={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},xJ={444:"CHROMA_444",420:"CHROMA_420"},wJ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Xa(xJ);Xa(wJ);Xa(gJ);const DJ=Xa(vJ);Xa(yJ);Xa(bJ);Xa($J);class CJ extends g4{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof mJ?i=n.getValue():i=n,this._actionModel.actionType=DJ[t],this._actionModel[r]=i,this.addQualifier(new xp(t,n))}}class EJ extends Ko{constructor(t){super("progressive",t)}}class Eh extends CJ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(dJ()),this}progressive(t){return t instanceof EJ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(pJ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(hJ()),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 wp{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 tC(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof wp?this.actions=this.actions.concat(t.actions):this.actions.push(new tC(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 Eh("q",t)),this}format(t){return this.addAction(new Eh("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 cJ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new g4;let r=t;return typeof t=="string"&&(r=new Ko(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(fJ(r))return r;t.push(r)}return{actions:t}}}class SJ extends wp{}class TJ extends wp{}function AJ(e){return e.match(/^https?:\//)}function PJ(e){return e.indexOf("/")<0}function _J(e){return e.match(/^v[0-9]+/)}function RJ(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 OJ(e){return e||"image"}function MJ(e){return e||"upload"}function FJ(e,t,n){const r=n!==!1;return t?`v${t}`:_J(e)||AJ(e)||PJ(e)?"":r?"v1":""}function v4(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=kJ(i,r/i.length)),i.slice(0,r)+String(e))}function kJ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const IJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sh={};let nC=0;IJ.split("").forEach(e=>{let t=nC.toString(2);t=v4(t,6,"0"),Sh[t]=e,nC++});function BJ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function LJ(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 v4(t,2,"0")}).join(".")}function rC(e){let t="";const r=e.split(".").length*6,i=BJ(e),o=LJ(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=v4(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(l=>{t+=Sh[l]}),t}function VJ(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 NJ="1.21.0";function jJ(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 Sh[o]+Sh[a]}function KJ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function UJ(e){const t={techVersion:KJ(),sdkCode:"T",sdkSemver:NJ.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 iC(e){const t=UJ(e),n=VJ(t);try{const r=zJ(n.techVersion),i=rC(n.sdkSemver),o=rC(r),a=jJ(n.osVersion),u=n.feature,l=n.sdkCode,{product:f,osType:d}=n;return`D${f}${l}${i}${o}${d}${a}${u}`}catch{return"E"}}function zJ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const oC={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class qJ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new p4(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=OJ(this.assetType),n=MJ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=oC[`${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(oC).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=RJ(this.cloudName,this.urlConfig),i=t?t.toString():"",o=FJ(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(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(d=>d).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!a.includes("?");let f="";if(typeof this.urlConfig.queryParams=="object")try{const d=new URLSearchParams(this.urlConfig.queryParams);l&&d.set("_a",iC(n)),f=d.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else f=this.urlConfig.queryParams||"",l&&(f+=`${f.length>0?"&":""}_a=${iC(n)}`);return f?`${u}?${f}`:u}}}class NO extends qJ{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 Eh("q",t)),this}format(t){return this.addAction(new Eh("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 WJ extends NO{constructor(t,n,r){super(t,n,r,new SJ)}}class HJ extends NO{constructor(t,n,r){super(t,n,r,new TJ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class GJ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new WJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new HJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Ig,aC;function jO(){if(aC)return Ig;aC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Ig=e,Ig}var Bg,sC;function YJ(){if(sC)return Bg;sC=1;function e(){this.__data__=[],this.size=0}return Bg=e,Bg}var Lg,uC;function y4(){if(uC)return Lg;uC=1;function e(t,n){return t===n||t!==t&&n!==n}return Lg=e,Lg}var Vg,lC;function Dp(){if(lC)return Vg;lC=1;var e=y4();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Vg=t,Vg}var Ng,cC;function ZJ(){if(cC)return Ng;cC=1;var e=Dp(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var u=o.length-1;return a==u?o.pop():n.call(o,a,1),--this.size,!0}return Ng=r,Ng}var jg,fC;function JJ(){if(fC)return jg;fC=1;var e=Dp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return jg=t,jg}var Kg,dC;function XJ(){if(dC)return Kg;dC=1;var e=Dp();function t(n){return e(this.__data__,n)>-1}return Kg=t,Kg}var Ug,hC;function QJ(){if(hC)return Ug;hC=1;var e=Dp();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Ug=t,Ug}var zg,pC;function Cp(){if(pC)return zg;pC=1;var e=YJ(),t=ZJ(),n=JJ(),r=XJ(),i=QJ();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var f=a[u];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,zg=o,zg}var qg,mC;function eX(){if(mC)return qg;mC=1;var e=Cp();function t(){this.__data__=new e,this.size=0}return qg=t,qg}var Wg,gC;function tX(){if(gC)return Wg;gC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Wg=e,Wg}var Hg,vC;function nX(){if(vC)return Hg;vC=1;function e(t){return this.__data__.get(t)}return Hg=e,Hg}var Gg,yC;function rX(){if(yC)return Gg;yC=1;function e(t){return this.__data__.has(t)}return Gg=e,Gg}var Yg,bC;function KO(){if(bC)return Yg;bC=1;var e=typeof vi=="object"&&vi&&vi.Object===Object&&vi;return Yg=e,Yg}var Zg,$C;function fo(){if($C)return Zg;$C=1;var e=KO(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Zg=n,Zg}var Jg,xC;function Ep(){if(xC)return Jg;xC=1;var e=fo(),t=e.Symbol;return Jg=t,Jg}var Xg,wC;function iX(){if(wC)return Xg;wC=1;var e=Ep(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),l=a[i];try{a[i]=void 0;var f=!0}catch{}var d=r.call(a);return f&&(u?a[i]=l:delete a[i]),d}return Xg=o,Xg}var Qg,DC;function oX(){if(DC)return Qg;DC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Qg=n,Qg}var ev,CC;function _u(){if(CC)return ev;CC=1;var e=Ep(),t=iX(),n=oX(),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 ev=a,ev}var tv,EC;function Sp(){if(EC)return tv;EC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return tv=e,tv}var nv,SC;function UO(){if(SC)return nv;SC=1;var e=_u(),t=Sp(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==o}return nv=a,nv}var rv,TC;function aX(){if(TC)return rv;TC=1;var e=fo(),t=e["__core-js_shared__"];return rv=t,rv}var iv,AC;function sX(){if(AC)return iv;AC=1;var e=aX(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return iv=n,iv}var ov,PC;function zO(){if(PC)return ov;PC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return ov=n,ov}var av,_C;function uX(){if(_C)return av;_C=1;var e=UO(),t=sX(),n=Sp(),r=zO(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(p){if(!n(p)||t(p))return!1;var g=e(p)?d:o;return g.test(r(p))}return av=h,av}var sv,RC;function lX(){if(RC)return sv;RC=1;function e(t,n){return t==null?void 0:t[n]}return sv=e,sv}var uv,OC;function Ru(){if(OC)return uv;OC=1;var e=uX(),t=lX();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return uv=n,uv}var lv,MC;function b4(){if(MC)return lv;MC=1;var e=Ru(),t=fo(),n=e(t,"Map");return lv=n,lv}var cv,FC;function Tp(){if(FC)return cv;FC=1;var e=Ru(),t=e(Object,"create");return cv=t,cv}var fv,kC;function cX(){if(kC)return fv;kC=1;var e=Tp();function t(){this.__data__=e?e(null):{},this.size=0}return fv=t,fv}var dv,IC;function fX(){if(IC)return dv;IC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return dv=e,dv}var hv,BC;function dX(){if(BC)return hv;BC=1;var e=Tp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var u=a[o];return u===t?void 0:u}return r.call(a,o)?a[o]:void 0}return hv=i,hv}var pv,LC;function hX(){if(LC)return pv;LC=1;var e=Tp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return pv=r,pv}var mv,VC;function pX(){if(VC)return mv;VC=1;var e=Tp(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return mv=n,mv}var gv,NC;function mX(){if(NC)return gv;NC=1;var e=cX(),t=fX(),n=dX(),r=hX(),i=pX();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var f=a[u];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,gv=o,gv}var vv,jC;function gX(){if(jC)return vv;jC=1;var e=mX(),t=Cp(),n=b4();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return vv=r,vv}var yv,KC;function vX(){if(KC)return yv;KC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return yv=e,yv}var bv,UC;function Ap(){if(UC)return bv;UC=1;var e=vX();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return bv=t,bv}var $v,zC;function yX(){if(zC)return $v;zC=1;var e=Ap();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return $v=t,$v}var xv,qC;function bX(){if(qC)return xv;qC=1;var e=Ap();function t(n){return e(this,n).get(n)}return xv=t,xv}var wv,WC;function $X(){if(WC)return wv;WC=1;var e=Ap();function t(n){return e(this,n).has(n)}return wv=t,wv}var Dv,HC;function xX(){if(HC)return Dv;HC=1;var e=Ap();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Dv=t,Dv}var Cv,GC;function $4(){if(GC)return Cv;GC=1;var e=gX(),t=yX(),n=bX(),r=$X(),i=xX();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var f=a[u];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Cv=o,Cv}var Ev,YC;function wX(){if(YC)return Ev;YC=1;var e=Cp(),t=b4(),n=$4(),r=200;function i(o,a){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([o,a]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(o,a),this.size=u.size,this}return Ev=i,Ev}var Sv,ZC;function qO(){if(ZC)return Sv;ZC=1;var e=Cp(),t=eX(),n=tX(),r=nX(),i=rX(),o=wX();function a(u){var l=this.__data__=new e(u);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,Sv=a,Sv}var Tv,JC;function DX(){if(JC)return Tv;JC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Tv=t,Tv}var Av,XC;function CX(){if(XC)return Av;XC=1;function e(t){return this.__data__.has(t)}return Av=e,Av}var Pv,QC;function EX(){if(QC)return Pv;QC=1;var e=$4(),t=DX(),n=CX();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Pv=r,Pv}var _v,eE;function SX(){if(eE)return _v;eE=1;function e(t,n){return t.has(n)}return _v=e,_v}var Rv,tE;function WO(){if(tE)return Rv;tE=1;var e=EX(),t=jO(),n=SX(),r=1,i=2;function o(a,u,l,f,d,h){var p=l&r,g=a.length,v=u.length;if(g!=v&&!(p&&v>g))return!1;var b=h.get(a),D=h.get(u);if(b&&D)return b==u&&D==a;var $=-1,y=!0,w=l&i?new e:void 0;for(h.set(a,u),h.set(u,a);++$<g;){var T=a[$],E=u[$];if(f)var A=p?f(E,T,$,u,a,h):f(T,E,$,a,u,h);if(A!==void 0){if(A)continue;y=!1;break}if(w){if(!t(u,function(M,S){if(!n(w,S)&&(T===M||d(T,M,l,f,h)))return w.push(S)})){y=!1;break}}else if(!(T===E||d(T,E,l,f,h))){y=!1;break}}return h.delete(a),h.delete(u),y}return Rv=o,Rv}var Ov,nE;function TX(){if(nE)return Ov;nE=1;var e=fo(),t=e.Uint8Array;return Ov=t,Ov}var Mv,rE;function AX(){if(rE)return Mv;rE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return Mv=e,Mv}var Fv,iE;function PX(){if(iE)return Fv;iE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Fv=e,Fv}var kv,oE;function _X(){if(oE)return kv;oE=1;var e=Ep(),t=TX(),n=y4(),r=WO(),i=AX(),o=PX(),a=1,u=2,l="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Map]",p="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",D="[object Symbol]",$="[object ArrayBuffer]",y="[object DataView]",w=e?e.prototype:void 0,T=w?w.valueOf:void 0;function E(A,M,S,z,j,O,Z){switch(S){case y:if(A.byteLength!=M.byteLength||A.byteOffset!=M.byteOffset)return!1;A=A.buffer,M=M.buffer;case $:return!(A.byteLength!=M.byteLength||!O(new t(A),new t(M)));case l:case f:case p:return n(+A,+M);case d:return A.name==M.name&&A.message==M.message;case g:case b:return A==M+"";case h:var R=i;case v:var V=z&a;if(R||(R=o),A.size!=M.size&&!V)return!1;var W=Z.get(A);if(W)return W==M;z|=u,Z.set(A,M);var L=r(R(A),R(M),z,j,O,Z);return Z.delete(A),L;case D:if(T)return T.call(A)==T.call(M)}return!1}return kv=E,kv}var Iv,aE;function RX(){if(aE)return Iv;aE=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return Iv=e,Iv}var Bv,sE;function ho(){if(sE)return Bv;sE=1;var e=Array.isArray;return Bv=e,Bv}var Lv,uE;function OX(){if(uE)return Lv;uE=1;var e=RX(),t=ho();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return Lv=n,Lv}var Vv,lE;function MX(){if(lE)return Vv;lE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var u=t[r];n(u,r,t)&&(a[o++]=u)}return a}return Vv=e,Vv}var Nv,cE;function FX(){if(cE)return Nv;cE=1;function e(){return[]}return Nv=e,Nv}var jv,fE;function kX(){if(fE)return jv;fE=1;var e=MX(),t=FX(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(u){return r.call(a,u)}))}:t;return jv=o,jv}var Kv,dE;function IX(){if(dE)return Kv;dE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Kv=e,Kv}var Uv,hE;function Ou(){if(hE)return Uv;hE=1;function e(t){return t!=null&&typeof t=="object"}return Uv=e,Uv}var zv,pE;function BX(){if(pE)return zv;pE=1;var e=_u(),t=Ou(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return zv=r,zv}var qv,mE;function HO(){if(mE)return qv;mE=1;var e=BX(),t=Ou(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return qv=o,qv}var Gl={exports:{}},Wv,gE;function LX(){if(gE)return Wv;gE=1;function e(){return!1}return Wv=e,Wv}Gl.exports;var vE;function GO(){return vE||(vE=1,function(e,t){var n=fo(),r=LX(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,u=a?n.Buffer:void 0,l=u?u.isBuffer:void 0,f=l||r;e.exports=f}(Gl,Gl.exports)),Gl.exports}var Hv,yE;function x4(){if(yE)return Hv;yE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Hv=n,Hv}var Gv,bE;function w4(){if(bE)return Gv;bE=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Gv=t,Gv}var Yv,$E;function VX(){if($E)return Yv;$E=1;var e=_u(),t=w4(),n=Ou(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",p="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",D="[object ArrayBuffer]",$="[object DataView]",y="[object Float32Array]",w="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",M="[object Uint8Array]",S="[object Uint8ClampedArray]",z="[object Uint16Array]",j="[object Uint32Array]",O={};O[y]=O[w]=O[T]=O[E]=O[A]=O[M]=O[S]=O[z]=O[j]=!0,O[r]=O[i]=O[D]=O[o]=O[$]=O[a]=O[u]=O[l]=O[f]=O[d]=O[h]=O[p]=O[g]=O[v]=O[b]=!1;function Z(R){return n(R)&&t(R.length)&&!!O[e(R)]}return Yv=Z,Yv}var Zv,xE;function NX(){if(xE)return Zv;xE=1;function e(t){return function(n){return t(n)}}return Zv=e,Zv}var Yl={exports:{}};Yl.exports;var wE;function jX(){return wE||(wE=1,function(e,t){var n=KO(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=u}(Yl,Yl.exports)),Yl.exports}var Jv,DE;function YO(){if(DE)return Jv;DE=1;var e=VX(),t=NX(),n=jX(),r=n&&n.isTypedArray,i=r?t(r):e;return Jv=i,Jv}var Xv,CE;function KX(){if(CE)return Xv;CE=1;var e=IX(),t=HO(),n=ho(),r=GO(),i=x4(),o=YO(),a=Object.prototype,u=a.hasOwnProperty;function l(f,d){var h=n(f),p=!h&&t(f),g=!h&&!p&&r(f),v=!h&&!p&&!g&&o(f),b=h||p||g||v,D=b?e(f.length,String):[],$=D.length;for(var y in f)(d||u.call(f,y))&&!(b&&(y=="length"||g&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||i(y,$)))&&D.push(y);return D}return Xv=l,Xv}var Qv,EE;function UX(){if(EE)return Qv;EE=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Qv=t,Qv}var ey,SE;function zX(){if(SE)return ey;SE=1;function e(t,n){return function(r){return t(n(r))}}return ey=e,ey}var ty,TE;function qX(){if(TE)return ty;TE=1;var e=zX(),t=e(Object.keys,Object);return ty=t,ty}var ny,AE;function WX(){if(AE)return ny;AE=1;var e=UX(),t=qX(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var u in Object(o))r.call(o,u)&&u!="constructor"&&a.push(u);return a}return ny=i,ny}var ry,PE;function D4(){if(PE)return ry;PE=1;var e=UO(),t=w4();function n(r){return r!=null&&t(r.length)&&!e(r)}return ry=n,ry}var iy,_E;function C4(){if(_E)return iy;_E=1;var e=KX(),t=WX(),n=D4();function r(i){return n(i)?e(i):t(i)}return iy=r,iy}var oy,RE;function HX(){if(RE)return oy;RE=1;var e=OX(),t=kX(),n=C4();function r(i){return e(i,n,t)}return oy=r,oy}var ay,OE;function GX(){if(OE)return ay;OE=1;var e=HX(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,u,l,f,d){var h=u&t,p=e(o),g=p.length,v=e(a),b=v.length;if(g!=b&&!h)return!1;for(var D=g;D--;){var $=p[D];if(!(h?$ in a:r.call(a,$)))return!1}var y=d.get(o),w=d.get(a);if(y&&w)return y==a&&w==o;var T=!0;d.set(o,a),d.set(a,o);for(var E=h;++D<g;){$=p[D];var A=o[$],M=a[$];if(l)var S=h?l(M,A,$,a,o,d):l(A,M,$,o,a,d);if(!(S===void 0?A===M||f(A,M,u,l,d):S)){T=!1;break}E||(E=$=="constructor")}if(T&&!E){var z=o.constructor,j=a.constructor;z!=j&&"constructor"in o&&"constructor"in a&&!(typeof z=="function"&&z instanceof z&&typeof j=="function"&&j instanceof j)&&(T=!1)}return d.delete(o),d.delete(a),T}return ay=i,ay}var sy,ME;function YX(){if(ME)return sy;ME=1;var e=Ru(),t=fo(),n=e(t,"DataView");return sy=n,sy}var uy,FE;function ZX(){if(FE)return uy;FE=1;var e=Ru(),t=fo(),n=e(t,"Promise");return uy=n,uy}var ly,kE;function JX(){if(kE)return ly;kE=1;var e=Ru(),t=fo(),n=e(t,"Set");return ly=n,ly}var cy,IE;function XX(){if(IE)return cy;IE=1;var e=Ru(),t=fo(),n=e(t,"WeakMap");return cy=n,cy}var fy,BE;function QX(){if(BE)return fy;BE=1;var e=YX(),t=b4(),n=ZX(),r=JX(),i=XX(),o=_u(),a=zO(),u="[object Map]",l="[object Object]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",g=a(e),v=a(t),b=a(n),D=a(r),$=a(i),y=o;return(e&&y(new e(new ArrayBuffer(1)))!=p||t&&y(new t)!=u||n&&y(n.resolve())!=f||r&&y(new r)!=d||i&&y(new i)!=h)&&(y=function(w){var T=o(w),E=T==l?w.constructor:void 0,A=E?a(E):"";if(A)switch(A){case g:return p;case v:return u;case b:return f;case D:return d;case $:return h}return T}),fy=y,fy}var dy,LE;function eQ(){if(LE)return dy;LE=1;var e=qO(),t=WO(),n=_X(),r=GX(),i=QX(),o=ho(),a=GO(),u=YO(),l=1,f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype,g=p.hasOwnProperty;function v(b,D,$,y,w,T){var E=o(b),A=o(D),M=E?d:i(b),S=A?d:i(D);M=M==f?h:M,S=S==f?h:S;var z=M==h,j=S==h,O=M==S;if(O&&a(b)){if(!a(D))return!1;E=!0,z=!1}if(O&&!z)return T||(T=new e),E||u(b)?t(b,D,$,y,w,T):n(b,D,M,$,y,w,T);if(!($&l)){var Z=z&&g.call(b,"__wrapped__"),R=j&&g.call(D,"__wrapped__");if(Z||R){var V=Z?b.value():b,W=R?D.value():D;return T||(T=new e),w(V,W,$,y,T)}}return O?(T||(T=new e),r(b,D,$,y,w,T)):!1}return dy=v,dy}var hy,VE;function ZO(){if(VE)return hy;VE=1;var e=eQ(),t=Ou();function n(r,i,o,a,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,u)}return hy=n,hy}var py,NE;function tQ(){if(NE)return py;NE=1;var e=qO(),t=ZO(),n=1,r=2;function i(o,a,u,l){var f=u.length,d=f,h=!l;if(o==null)return!d;for(o=Object(o);f--;){var p=u[f];if(h&&p[2]?p[1]!==o[p[0]]:!(p[0]in o))return!1}for(;++f<d;){p=u[f];var g=p[0],v=o[g],b=p[1];if(h&&p[2]){if(v===void 0&&!(g in o))return!1}else{var D=new e;if(l)var $=l(v,b,g,o,a,D);if(!($===void 0?t(b,v,n|r,l,D):$))return!1}}return!0}return py=i,py}var my,jE;function JO(){if(jE)return my;jE=1;var e=Sp();function t(n){return n===n&&!e(n)}return my=t,my}var gy,KE;function nQ(){if(KE)return gy;KE=1;var e=JO(),t=C4();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],u=r[a];i[o]=[a,u,e(u)]}return i}return gy=n,gy}var vy,UE;function XO(){if(UE)return vy;UE=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vy=e,vy}var yy,zE;function rQ(){if(zE)return yy;zE=1;var e=tQ(),t=nQ(),n=XO();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return yy=r,yy}var by,qE;function E4(){if(qE)return by;qE=1;var e=_u(),t=Ou(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return by=r,by}var $y,WE;function S4(){if(WE)return $y;WE=1;var e=ho(),t=E4(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return $y=i,$y}var xy,HE;function iQ(){if(HE)return xy;HE=1;var e=$4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,u=i?i.apply(this,a):a[0],l=o.cache;if(l.has(u))return l.get(u);var f=r.apply(this,a);return o.cache=l.set(u,f)||l,f};return o.cache=new(n.Cache||e),o}return n.Cache=e,xy=n,xy}var wy,GE;function oQ(){if(GE)return wy;GE=1;var e=iQ(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return wy=n,wy}var Dy,YE;function aQ(){if(YE)return Dy;YE=1;var e=oQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,u,l,f){o.push(l?f.replace(n,"$1"):u||a)}),o});return Dy=r,Dy}var Cy,ZE;function sQ(){if(ZE)return Cy;ZE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return Cy=e,Cy}var Ey,JE;function uQ(){if(JE)return Ey;JE=1;var e=Ep(),t=sQ(),n=ho(),r=E4(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(u){if(typeof u=="string")return u;if(n(u))return t(u,a)+"";if(r(u))return o?o.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return Ey=a,Ey}var Sy,XE;function lQ(){if(XE)return Sy;XE=1;var e=uQ();function t(n){return n==null?"":e(n)}return Sy=t,Sy}var Ty,QE;function QO(){if(QE)return Ty;QE=1;var e=ho(),t=S4(),n=aQ(),r=lQ();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return Ty=i,Ty}var Ay,eS;function Pp(){if(eS)return Ay;eS=1;var e=E4();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Ay=t,Ay}var Py,tS;function eM(){if(tS)return Py;tS=1;var e=QO(),t=Pp();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return Py=n,Py}var _y,nS;function cQ(){if(nS)return _y;nS=1;var e=eM();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return _y=t,_y}var Ry,rS;function fQ(){if(rS)return Ry;rS=1;function e(t,n){return t!=null&&n in Object(t)}return Ry=e,Ry}var Oy,iS;function dQ(){if(iS)return Oy;iS=1;var e=QO(),t=HO(),n=ho(),r=x4(),i=w4(),o=Pp();function a(u,l,f){l=e(l,u);for(var d=-1,h=l.length,p=!1;++d<h;){var g=o(l[d]);if(!(p=u!=null&&f(u,g)))break;u=u[g]}return p||++d!=h?p:(h=u==null?0:u.length,!!h&&i(h)&&r(g,h)&&(n(u)||t(u)))}return Oy=a,Oy}var My,oS;function hQ(){if(oS)return My;oS=1;var e=fQ(),t=dQ();function n(r,i){return r!=null&&t(r,i,e)}return My=n,My}var Fy,aS;function pQ(){if(aS)return Fy;aS=1;var e=ZO(),t=cQ(),n=hQ(),r=S4(),i=JO(),o=XO(),a=Pp(),u=1,l=2;function f(d,h){return r(d)&&i(h)?o(a(d),h):function(p){var g=t(p,d);return g===void 0&&g===h?n(p,d):e(h,g,u|l)}}return Fy=f,Fy}var ky,sS;function mQ(){if(sS)return ky;sS=1;function e(t){return t}return ky=e,ky}var Iy,uS;function gQ(){if(uS)return Iy;uS=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Iy=e,Iy}var By,lS;function vQ(){if(lS)return By;lS=1;var e=eM();function t(n){return function(r){return e(r,n)}}return By=t,By}var Ly,cS;function yQ(){if(cS)return Ly;cS=1;var e=gQ(),t=vQ(),n=S4(),r=Pp();function i(o){return n(o)?e(r(o)):t(o)}return Ly=i,Ly}var Vy,fS;function bQ(){if(fS)return Vy;fS=1;var e=rQ(),t=pQ(),n=mQ(),r=ho(),i=yQ();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return Vy=o,Vy}var Ny,dS;function $Q(){if(dS)return Ny;dS=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),u=i(n),l=u.length;l--;){var f=u[t?l:++o];if(r(a[f],f,a)===!1)break}return n}}return Ny=e,Ny}var jy,hS;function xQ(){if(hS)return jy;hS=1;var e=$Q(),t=e();return jy=t,jy}var Ky,pS;function wQ(){if(pS)return Ky;pS=1;var e=xQ(),t=C4();function n(r,i){return r&&e(r,i,t)}return Ky=n,Ky}var Uy,mS;function DQ(){if(mS)return Uy;mS=1;var e=D4();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,u=r?a:-1,l=Object(i);(r?u--:++u<a)&&o(l[u],u,l)!==!1;);return i}}return Uy=t,Uy}var zy,gS;function CQ(){if(gS)return zy;gS=1;var e=wQ(),t=DQ(),n=t(e);return zy=n,zy}var qy,vS;function EQ(){if(vS)return qy;vS=1;var e=CQ();function t(n,r){var i;return e(n,function(o,a,u){return i=r(o,a,u),!i}),!!i}return qy=t,qy}var Wy,yS;function SQ(){if(yS)return Wy;yS=1;var e=y4(),t=D4(),n=x4(),r=Sp();function i(o,a,u){if(!r(u))return!1;var l=typeof a;return(l=="number"?t(u)&&n(a,u.length):l=="string"&&a in u)?e(u[a],o):!1}return Wy=i,Wy}var Hy,bS;function TQ(){if(bS)return Hy;bS=1;var e=jO(),t=bQ(),n=EQ(),r=ho(),i=SQ();function o(a,u,l){var f=r(a)?e:n;return l&&i(a,u,l)&&(u=void 0),f(a,t(u,3))}return Hy=o,Hy}var AQ=TQ();const PQ=_i(AQ);var Gy={exports:{}},$S;function _Q(){return $S||($S=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
137
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
138
|
-
*
|
|
139
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
140
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
141
|
-
* @namespace
|
|
142
|
-
* @public
|
|
143
|
-
*/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 y(w){return w instanceof l?new l(w.type,y(w.content),w.alias):Array.isArray(w)?w.map(y):w.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(w,T){T=T||{};var E,A;switch(u.util.type(w)){case"Object":if(A=u.util.objId(w),T[A])return T[A];E={},T[A]=E;for(var M in w)w.hasOwnProperty(M)&&(E[M]=y(w[M],T));return E;case"Array":return A=u.util.objId(w),T[A]?T[A]:(E=[],T[A]=E,w.forEach(function(S,z){E[z]=y(S,T)}),E);default:return w}},getLanguage:function(y){for(;y;){var w=i.exec(y.className);if(w)return w[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,w){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var w=document.getElementsByTagName("script");for(var T in w)if(w[T].src==y)return w[T]}return null}},isActive:function(y,w,T){for(var E="no-"+w;y;){var A=y.classList;if(A.contains(w))return!0;if(A.contains(E))return!1;y=y.parentElement}return!!T}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,w){var T=u.util.clone(u.languages[y]);for(var E in w)T[E]=w[E];return T},insertBefore:function(y,w,T,E){E=E||u.languages;var A=E[y],M={};for(var S in A)if(A.hasOwnProperty(S)){if(S==w)for(var z in T)T.hasOwnProperty(z)&&(M[z]=T[z]);T.hasOwnProperty(S)||(M[S]=A[S])}var j=E[y];return E[y]=M,u.languages.DFS(u.languages,function(O,Z){Z===j&&O!=y&&(this[O]=M)}),M},DFS:function y(w,T,E,A){A=A||{};var M=u.util.objId;for(var S in w)if(w.hasOwnProperty(S)){T.call(w,S,w[S],E||S);var z=w[S],j=u.util.type(z);j==="Object"&&!A[M(z)]?(A[M(z)]=!0,y(z,T,null,A)):j==="Array"&&!A[M(z)]&&(A[M(z)]=!0,y(z,T,S,A))}}},plugins:{},highlightAll:function(y,w){u.highlightAllUnder(document,y,w)},highlightAllUnder:function(y,w,T){var E={callback:T,container:y,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,w===!0,E.callback)},highlightElement:function(y,w,T){var E=u.util.getLanguage(y),A=u.languages[E];u.util.setLanguage(y,E);var M=y.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(M,E);var S=y.textContent,z={element:y,language:E,grammar:A,code:S};function j(Z){z.highlightedCode=Z,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){j(u.util.encode(z.code));return}if(w&&r.Worker){var O=new Worker(u.filename);O.onmessage=function(Z){j(Z.data)},O.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else j(u.highlight(z.code,z.grammar,z.language))},highlight:function(y,w,T){var E={code:y,grammar:w,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),l.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,w){var T=w.rest;if(T){for(var E in T)w[E]=T[E];delete w.rest}var A=new h;return p(A,A.head,y),d(y,A,w,A.head,0),v(A)},hooks:{all:{},add:function(y,w){var T=u.hooks.all;T[y]=T[y]||[],T[y].push(w)},run:function(y,w){var T=u.hooks.all[y];if(!(!T||!T.length))for(var E=0,A;A=T[E++];)A(w)}},Token:l};r.Prism=u;function l(y,w,T,E){this.type=y,this.content=w,this.alias=T,this.length=(E||"").length|0}l.stringify=function y(w,T){if(typeof w=="string")return w;if(Array.isArray(w)){var E="";return w.forEach(function(j){E+=y(j,T)}),E}var A={type:w.type,content:y(w.content,T),tag:"span",classes:["token",w.type],attributes:{},language:T},M=w.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,""")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+S+">"+A.content+"</"+A.tag+">"};function f(y,w,T,E){y.lastIndex=w;var A=y.exec(T);if(A&&E&&A[1]){var M=A[1].length;A.index+=M,A[0]=A[0].slice(M)}return A}function d(y,w,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 j=0;j<z.length;++j){if(M&&M.cause==S+","+j)return;var O=z[j],Z=O.inside,R=!!O.lookbehind,V=!!O.greedy,W=O.alias;if(V&&!O.pattern.global){var L=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,L+"g")}for(var k=O.pattern||O,_=E.next,H=A;_!==w.tail&&!(M&&H>=M.reach);H+=_.value.length,_=_.next){var U=_.value;if(w.length>y.length)return;if(!(U instanceof l)){var N=1,ne;if(V){if(ne=f(k,H,y,R),!ne||ne.index>=y.length)break;var De=ne.index,ie=ne.index+ne[0].length,ce=H;for(ce+=_.value.length;De>=ce;)_=_.next,ce+=_.value.length;if(ce-=_.value.length,H=ce,_.value instanceof l)continue;for(var xe=_;xe!==w.tail&&(ce<ie||typeof xe.value=="string");xe=xe.next)N++,ce+=xe.value.length;N--,U=y.slice(H,ce),ne.index-=H}else if(ne=f(k,0,U,R),!ne)continue;var De=ne.index,Ee=ne[0],J=U.slice(0,De),ve=U.slice(De+Ee.length),we=H+U.length;M&&we>M.reach&&(M.reach=we);var me=_.prev;J&&(me=p(w,me,J),H+=J.length),g(w,me,N);var ue=new l(S,Z?u.tokenize(Ee,Z):Ee,W,Ee);if(_=p(w,me,ue),ve&&p(w,_,ve),N>1){var Le={cause:S+","+j,reach:we};d(y,w,T,_.prev,H,Le),M&&Le.reach>M.reach&&(M.reach=Le.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},w={value:null,prev:y,next:null};y.next=w,this.head=y,this.tail=w,this.length=0}function p(y,w,T){var E=w.next,A={value:T,prev:w,next:E};return w.next=A,E.prev=A,y.length++,A}function g(y,w,T){for(var E=w.next,A=0;A<T&&E!==y.tail;A++)E=E.next;w.next=E,E.prev=w,y.length-=A}function v(y){for(var w=[],T=y.head.next;T!==y.tail;)w.push(T.value),T=T.next;return w}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var w=JSON.parse(y.data),T=w.language,E=w.code,A=w.immediateClose;r.postMessage(u.highlight(E,u.languages[T],T)),A&&r.close()},!1)),u;var b=u.util.currentScript();b&&(u.filename=b.src,b.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var $=document.readyState;$==="loading"||$==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,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(/&/,"&"))}),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 l={};l[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",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var 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(b,D){return"✖ Error "+b+" while fetching file: "+D},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",l="loading",f="loaded",d="failed",h="pre[data-src]:not(["+u+'="'+f+'"]):not(['+u+'="'+l+'"])';function p(b,D,$){var y=new XMLHttpRequest;y.open("GET",b,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?D(y.responseText):y.status>=400?$(i(y.status,y.statusText)):$(o))},y.send(null)}function g(b){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(D){var $=Number(D[1]),y=D[2],w=D[3];return y?w?[$,Number(w)]:[$,void 0]:[$,$]}}n.hooks.add("before-highlightall",function(b){b.selector+=", "+h}),n.hooks.add("before-sanity-check",function(b){var D=b.element;if(D.matches(h)){b.code="",D.setAttribute(u,l);var $=D.appendChild(document.createElement("CODE"));$.textContent=r;var y=D.getAttribute("data-src"),w=b.language;if(w==="none"){var T=(/\.(\w+)$/.exec(y)||[,"none"])[1];w=a[T]||T}n.util.setLanguage($,w),n.util.setLanguage(D,w);var E=n.plugins.autoloader;E&&E.loadLanguages(w),p(y,function(A){D.setAttribute(u,f);var M=g(D.getAttribute("data-range"));if(M){var S=A.split(/\r\n?|\n/g),z=M[0],j=M[1]==null?S.length:M[1];z<0&&(z+=S.length),z=Math.max(0,Math.min(z-1,S.length)),j<0&&(j+=S.length),j=Math.max(0,Math.min(j,S.length)),A=S.slice(z,j).join(`
|
|
144
|
-
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(z+1))}$.textContent=A,n.highlightElement($)},function(A){D.setAttribute(u,d),$.textContent=A})}}),n.plugins.fileHighlight={highlight:function(D){for(var $=(D||document).querySelectorAll(h),y=0,w;w=$[y++];)n.highlightElement(w)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Gy)),Gy.exports}var RQ=_Q();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(p,g){return Array.prototype.slice.call((g||document).querySelectorAll(p))}function i(p,g){return p.classList.contains(g)}function o(p){p()}var a=function(){var p;return function(){if(typeof p>"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=" <br /> ",document.body.appendChild(g),p=g.offsetHeight===38,document.body.removeChild(g)}return p}}();function u(p,g){var v=getComputedStyle(p),b=getComputedStyle(g);function D($){return+$.substr(0,$.length-2)}return g.offsetTop+D(b.borderTopWidth)+D(b.paddingTop)-D(v.paddingTop)}function l(p){return!p||!/pre/i.test(p.nodeName)?!1:!!(p.hasAttribute("data-line")||p.id&&Prism.util.isActive(p,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,b){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var D=v.replace(/\s+/g,"").split(",").filter(Boolean),$=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,w=y(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,j=!E||A==E?0:u(g,E);D.forEach(function(R){var V=R.split("-"),W=+V[0],L=+V[1]||W;if(L=Math.min(z+$,L),!(L<W)){var k=g.querySelector('.line-highlight[data-range="'+R+'"]')||document.createElement("div");if(M.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",R),k.className=(b||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var _=Prism.plugins.lineNumbers.getLine(g,W),H=Prism.plugins.lineNumbers.getLine(g,L);if(_){var U=_.offsetTop+j+"px";M.push(function(){k.style.top=U})}if(H){var N=H.offsetTop-_.offsetTop+H.offsetHeight+"px";M.push(function(){k.style.height=N})}}else M.push(function(){k.setAttribute("data-start",String(W)),L>W&&k.setAttribute("data-end",String(L)),k.style.top=(W-$-1)*w+j+"px",k.textContent=new Array(L-W+2).join(`
|
|
145
|
-
`)});M.push(function(){k.style.width=g.scrollWidth+"px"}),M.push(function(){A.appendChild(k)})}});var O=g.id;if(T&&Prism.util.isActive(g,t)&&O){i(g,t)||M.push(function(){g.classList.add(t)});var Z=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(R,V){var W=V+Z;R.onclick=function(){var L=O+"."+W;f=!1,location.hash=L,setTimeout(function(){f=!0},1)}})}return function(){M.forEach(o)}}};function d(){var p=location.hash.slice(1);r(".temporary.line-highlight").forEach(function($){$.parentNode.removeChild($)});var g=(p.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(p))){var v=p.slice(0,p.lastIndexOf(".")),b=document.getElementById(v);if(b){b.hasAttribute("data-line")||b.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(b,g,"temporary ");D(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(p){var g=p.element.parentElement;if(l(g)){var v=0;r(".line-highlight",g).forEach(function(b){v+=b.textContent.length,b.parentNode.removeChild(b)}),v&&/^(?: \n)+$/.test(p.code.slice(-v))&&(p.code=p.code.slice(0,-v))}}),Prism.hooks.add("complete",function p(g){var v=g.element.parentElement;if(l(v)){clearTimeout(h);var b=Prism.plugins.lineNumbers,D=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&b&&!D)Prism.hooks.add("line-numbers",p);else{var $=Prism.plugins.lineHighlight.highlightLines(v);$(),h=setTimeout(d,1)}}}),window.addEventListener("hashchange",d),window.addEventListener("resize",function(){var p=r("pre").filter(l).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});p.forEach(o)})})();const tM=C.createContext({});function ef(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const T4=C.createContext(null),A4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function OQ(e=!0){const t=C.useContext(T4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=C.useId();C.useEffect(()=>{e&&i(o)},[e]);const a=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const P4=typeof window<"u",nM=P4?C.useLayoutEffect:C.useEffect,Zn=e=>e;let Mu=Zn,Pi=Zn;process.env.NODE_ENV!=="production"&&(Mu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Pi=(e,t)=>{if(!e)throw new Error(t)});function _4(e){let t;return()=>(t===void 0&&(t=e()),t)}const pu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Si=e=>e*1e3,no=e=>e/1e3,MQ={useManualTiming:!1},$d=["read","resolveKeyframes","update","preRender","render","postRender"];function FQ(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const v=p&&i?n:r;return h&&a.add(d),v.has(d)||v.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(u=d,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,f.process(d))}};return f}const kQ=40;function rM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=$d.reduce(($,y)=>($[y]=FQ(o),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=a,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,kQ),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:$d.reduce(($,y)=>{const w=a[y];return $[y]=(T,E=!1,A=!1)=>(n||v(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let y=0;y<$d.length;y++)a[$d[y]].cancel($)},state:i,steps:a}}const{schedule:Et,cancel:ao,state:hn,steps:Yy}=rM(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zn,!0),iM=C.createContext({strict:!1}),xS={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"]},mu={};for(const e in xS)mu[e]={isEnabled:t=>xS[e].some(n=>!!t[n])};function IQ(e){for(const t in e)mu[t]={...mu[t],...e[t]}}const BQ=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 Th(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BQ.has(e)}let oM=e=>!Th(e);function LQ(e){e&&(oM=t=>t.startsWith("on")?!Th(t):e(t))}try{LQ(require("@emotion/is-prop-valid").default)}catch{}function VQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(oM(i)||n===!0&&Th(i)||!t&&!Th(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const wS=new Set;function _p(e,t,n){e||wS.has(t)||(console.warn(t),wS.add(t))}function NQ(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))})}const Rp=C.createContext({});function Op(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Sc(e){return typeof e=="string"||Array.isArray(e)}const R4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],O4=["initial",...R4];function Mp(e){return Op(e.animate)||O4.some(t=>Sc(e[t]))}function aM(e){return!!(Mp(e)||e.variants)}function jQ(e,t){if(Mp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Sc(n)?n:void 0,animate:Sc(r)?r:void 0}}return e.inherit!==!1?t:{}}function KQ(e){const{initial:t,animate:n}=jQ(e,C.useContext(Rp));return C.useMemo(()=>({initial:t,animate:n}),[DS(t),DS(n)])}function DS(e){return Array.isArray(e)?e.join(" "):e}const UQ=Symbol.for("motionComponentSymbol");function js(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zQ(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):js(n)&&(n.current=r))},[t])}const M4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qQ="framerAppearId",sM="data-"+M4(qQ),{schedule:F4}=rM(queueMicrotask,!1),uM=C.createContext({});function WQ(e,t,n,r,i){var o,a;const{visualElement:u}=C.useContext(Rp),l=C.useContext(iM),f=C.useContext(T4),d=C.useContext(A4).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(uM);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&HQ(h.current,n,i,g);const v=C.useRef(!1);C.useInsertionEffect(()=>{p&&v.current&&p.update(n,f)});const b=n[sM],D=C.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return nM(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),F4.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function HQ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lM(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&js(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function lM(e){if(e)return e.options.allowProjection!==!1?e.projection:lM(e.parent)}function GQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&IQ(e);function u(f,d){let h;const p={...C.useContext(A4),...f,layoutId:YQ(f)},{isStatic:g}=p,v=KQ(f),b=r(f,g);if(!g&&P4){ZQ(p,e);const D=JQ(p);h=D.MeasureLayout,v.visualElement=WQ(i,b,p,t,D.ProjectionNode)}return io.jsxs(Rp.Provider,{value:v,children:[h&&v.visualElement?io.jsx(h,{visualElement:v.visualElement,...p}):null,n(i,f,zQ(b,v.visualElement,d),b,g,v.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 l=C.forwardRef(u);return l[UQ]=i,l}function YQ({layoutId:e}){const t=C.useContext(tM).id;return t&&e!==void 0?t+"-"+e:e}function ZQ(e,t){const n=C.useContext(iM).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?Mu(!1,r):Pi(!1,r)}}function JQ(e){const{drag:t,layout:n}=mu;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 cM=e=>t=>typeof t=="string"&&t.startsWith(e),k4=cM("--"),XQ=cM("var(--"),I4=e=>XQ(e)?QQ.test(e.split("/*")[0].trim()):!1,QQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tc={};function eee(e){for(const t in e)Tc[t]=e[t],k4(t)&&(Tc[t].isCSSVariable=!0)}const Fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qa=new Set(Fu);function fM(e,{layout:t,layoutId:n}){return Qa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tc[e]||e==="opacity")}const pn=e=>!!(e&&e.getVelocity),dM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,so=(e,t,n)=>n>t?t:n<e?e:n,ku={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ac={...ku,transform:e=>so(0,1,e)},xd={...ku,default:1},tf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ro=tf("deg"),Ti=tf("%"),qe=tf("px"),tee=tf("vh"),nee=tf("vw"),CS={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},ree={borderWidth:qe,borderTopWidth:qe,borderRightWidth:qe,borderBottomWidth:qe,borderLeftWidth:qe,borderRadius:qe,radius:qe,borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomRightRadius:qe,borderBottomLeftRadius:qe,width:qe,maxWidth:qe,height:qe,maxHeight:qe,top:qe,right:qe,bottom:qe,left:qe,padding:qe,paddingTop:qe,paddingRight:qe,paddingBottom:qe,paddingLeft:qe,margin:qe,marginTop:qe,marginRight:qe,marginBottom:qe,marginLeft:qe,backgroundPositionX:qe,backgroundPositionY:qe},iee={rotate:Ro,rotateX:Ro,rotateY:Ro,rotateZ:Ro,scale:xd,scaleX:xd,scaleY:xd,scaleZ:xd,skew:Ro,skewX:Ro,skewY:Ro,distance:qe,translateX:qe,translateY:qe,translateZ:qe,x:qe,y:qe,z:qe,perspective:qe,transformPerspective:qe,opacity:Ac,originX:CS,originY:CS,originZ:qe},ES={...ku,transform:Math.round},B4={...ree,...iee,zIndex:ES,size:qe,fillOpacity:Ac,strokeOpacity:Ac,numOctaves:ES},oee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aee=Fu.length;function see(e,t,n){let r="",i=!0;for(let o=0;o<aee;o++){const a=Fu[o],u=e[a];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(a.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=dM(u,B4[a]);if(!l){i=!1;const d=oee[a]||a;r+=`${d}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function L4(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const l in t){const f=t[l];if(Qa.has(l)){a=!0;continue}else if(k4(l)){i[l]=f;continue}else{const d=dM(f,B4[l]);l.startsWith("origin")?(u=!0,o[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=see(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=o;r.transformOrigin=`${l} ${f} ${d}`}}const V4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hM(e,t,n){for(const r in t)!pn(t[r])&&!fM(r,n)&&(e[r]=t[r])}function uee({transformTemplate:e},t){return C.useMemo(()=>{const n=V4();return L4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lee(e,t){const n=e.style||{},r={};return hM(r,n,e),Object.assign(r,uee(e,t)),r}function cee(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 fee=["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 N4(e){return typeof e!="string"||e.includes("-")?!1:!!(fee.indexOf(e)>-1||/[A-Z]/u.test(e))}const dee={offset:"stroke-dashoffset",array:"stroke-dasharray"},hee={offset:"strokeDashoffset",array:"strokeDasharray"};function pee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?dee:hee;e[o.offset]=qe.transform(-r);const a=qe.transform(t),u=qe.transform(n);e[o.array]=`${a} ${u}`}function SS(e,t,n){return typeof e=="string"?e:qe.transform(t+n*e)}function mee(e,t,n){const r=SS(t,e.x,e.width),i=SS(n,e.y,e.height);return`${r} ${i}`}function j4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(L4(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=mee(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&pee(p,a,u,l,!1)}const pM=()=>({...V4(),attrs:{}}),K4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gee(e,t,n,r){const i=C.useMemo(()=>{const o=pM();return j4(o,t,K4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};hM(o,e.style,e),i.style={...o,...i.style}}return i}function vee(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(N4(n)?gee:cee)(r,o,a,n),f=VQ(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>pn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function TS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function U4(e,t,n,r){if(typeof t=="function"){const[i,o]=TS(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]=TS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Ab=e=>Array.isArray(e),yee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),bee=e=>Ab(e)?e[e.length-1]||0:e;function zd(e){const t=pn(e)?e.get():e;return yee(t)?t.toValue():t}function $ee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:xee(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const mM=e=>(t,n)=>{const r=C.useContext(Rp),i=C.useContext(T4),o=()=>$ee(e,t,r,i);return n?o():ef(o)};function xee(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=zd(o[p]);let{initial:a,animate:u}=e;const l=Mp(e),f=aM(e);t&&f&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?u:a;if(h&&typeof h!="boolean"&&!Op(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const v=U4(e,p[g]);if(v){const{transitionEnd:b,transition:D,...$}=v;for(const y in $){let w=$[y];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[y]=w)}for(const y in b)i[y]=b[y]}}}return i}function z4(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(pn(i[a])||t.style&&pn(t.style[a])||fM(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}const wee={useVisualState:mM({scrapeMotionValuesFromProps:z4,createRenderState:V4})};function gM(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function vM(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 yM=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 bM(e,t,n,r){vM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yM.has(i)?i:M4(i),t.attrs[i])}function $M(e,t,n){const r=z4(e,t,n);for(const i in e)if(pn(e[i])||pn(t[i])){const o=Fu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const AS=["x","y","width","height","cx","cy","r"],Dee={useVisualState:mM({scrapeMotionValuesFromProps:$M,createRenderState:pM,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(Qa.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<AS.length;u++){const l=AS[u];e[l]!==t[l]&&(a=!0)}a&&Et.read(()=>{gM(n,r),Et.render(()=>{j4(r,i,K4(n.tagName),e.transformTemplate),bM(n,r)})})}})};function Cee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...N4(r)?Dee:wee,preloadedFeatures:e,useRender:vee(i),createVisualElement:t,Component:r};return GQ(a)}}function Pc(e,t,n){const r=e.getProps();return U4(r,t,n!==void 0?n:r.custom,e)}const Eee=_4(()=>window.ScrollTimeline!==void 0);let See=class{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(Eee()&&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")}},Tee=class extends See{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function q4(e,t){return e?e[t]||e.default||e:void 0}const Pb=2e4;function xM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Pb;)t+=n,r=e.next(t);return t>=Pb?1/0:t}function W4(e){return typeof e=="function"}function PS(e,t){e.timeline=t,e.onfinish=null}const H4=e=>Array.isArray(e)&&typeof e[0]=="number",Aee={linearEasing:void 0};function Pee(e,t){const n=_4(e);return()=>{var r;return(r=Aee[t])!==null&&r!==void 0?r:n()}}const Ah=Pee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),wM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(pu(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function DM(e){return!!(typeof e=="function"&&Ah()||!e||typeof e=="string"&&(e in _b||Ah())||H4(e)||Array.isArray(e)&&e.every(DM))}const Zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_b={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function CM(e,t){if(e)return typeof e=="function"&&Ah()?wM(e,t):H4(e)?Zl(e):Array.isArray(e)?e.map(n=>CM(n,t)||_b.easeOut):_b[e]}const Vr={x:!1,y:!1};function EM(){return Vr.x||Vr.y}function _ee(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 SM(e,t){const n=_ee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _S(e){return!(e.pointerType==="touch"||EM())}function Ree(e,t,n={}){const[r,i,o]=SM(e,n),a=u=>{if(!_S(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{_S(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const TM=(e,t)=>t?e===t?!0:TM(e,t.parentElement):!1,G4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Oee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Mee(e){return Oee.has(e.tagName)||e.tabIndex!==-1}const Jl=new WeakSet;function RS(e){return t=>{t.key==="Enter"&&e(t)}}function Zy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=RS(()=>{if(Jl.has(n))return;Zy(n,"down");const i=RS(()=>{Zy(n,"up")}),o=()=>Zy(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 OS(e){return G4(e)&&!EM()}function kee(e,t,n={}){const[r,i,o]=SM(e,n),a=u=>{const l=u.currentTarget;if(!OS(u)||Jl.has(l))return;Jl.add(l);const f=t(l,u),d=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!OS(g)||!Jl.has(l))&&(Jl.delete(l),typeof f=="function"&&f(g,{success:v}))},h=g=>{d(g,n.useGlobalTarget||TM(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Mee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",f=>Fee(f,i),i)}),o}function Iee(e){return e==="x"||e==="y"?Vr[e]?null:(Vr[e]=!0,()=>{Vr[e]=!1}):Vr.x||Vr.y?null:(Vr.x=Vr.y=!0,()=>{Vr.x=Vr.y=!1})}const AM=new Set(["width","height","top","left","right","bottom",...Fu]);let qd;function Bee(){qd=void 0}const Ai={now:()=>(qd===void 0&&Ai.set(hn.isProcessing||MQ.useManualTiming?hn.timestamp:performance.now()),qd),set:e=>{qd=e,queueMicrotask(Bee)}};function Y4(e,t){e.indexOf(t)===-1&&e.push(t)}function Z4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Lee([...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 J4=class{constructor(){this.subscriptions=[]}add(t){return Y4(this.subscriptions,t),()=>Z4(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 PM(e,t){return t?e*(1e3/t):0}const MS=30,Vee=e=>!isNaN(parseFloat(e)),ac={current:void 0};let Nee=class{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ai.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=Ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Vee(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 J4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.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 ac.current&&ac.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,MS);return PM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function gu(e,t){return new Nee(e,t)}function jee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gu(n))}function Kee(e,t){const n=Pc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=bee(o[a]);jee(e,a,u)}}function Uee(e){return!!(pn(e)&&e.add)}function Rb(e,t){const n=e.getValue("willChange");if(Uee(n))return n.add(t)}function _M(e){return e.props[sM]}const RM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zee=1e-7,qee=12;function Wee(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=RM(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>zee&&++u<qee);return a}function nf(e,t,n,r){if(e===t&&n===r)return Zn;const i=o=>Wee(o,0,1,e,n);return o=>o===0||o===1?o:RM(i(o),t,r)}const OM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,MM=e=>t=>1-e(1-t),FM=nf(.33,1.53,.69,.99),X4=MM(FM),kM=OM(X4),IM=e=>(e*=2)<1?.5*X4(e):.5*(2-Math.pow(2,-10*(e-1))),Q4=e=>1-Math.sin(Math.acos(e)),BM=MM(Q4),LM=OM(Q4),VM=e=>/^0[^.\s]+$/u.test(e);function Hee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VM(e):!0}const sc=e=>Math.round(e*1e5)/1e5,e3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gee(e){return e==null}const Yee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,t3=(e,t)=>n=>!!(typeof n=="string"&&Yee.test(n)&&n.startsWith(e)||t&&!Gee(n)&&Object.prototype.hasOwnProperty.call(n,t)),NM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(e3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},Zee=e=>so(0,255,e),Jy={...ku,transform:e=>Math.round(Zee(e))},_a={test:t3("rgb","red"),parse:NM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jy.transform(e)+", "+Jy.transform(t)+", "+Jy.transform(n)+", "+sc(Ac.transform(r))+")"};function Jee(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 Ob={test:t3("#"),parse:Jee,transform:_a.transform},Ks={test:t3("hsl","hue"),parse:NM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(sc(t))+", "+Ti.transform(sc(n))+", "+sc(Ac.transform(r))+")"},xn={test:e=>_a.test(e)||Ob.test(e)||Ks.test(e),parse:e=>_a.test(e)?_a.parse(e):Ks.test(e)?Ks.parse(e):Ob.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_a.transform(e):Ks.transform(e)},Xee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(e3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Xee))===null||n===void 0?void 0:n.length)||0)>0}const jM="number",KM="color",ete="var",tte="var(",FS="${}",nte=/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 _c(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(nte,l=>(xn.test(l)?(r.color.push(o),i.push(KM),n.push(xn.parse(l))):l.startsWith(tte)?(r.var.push(o),i.push(ete),n.push(l)):(r.number.push(o),i.push(jM),n.push(parseFloat(l))),++o,FS)).split(FS);return{values:n,split:u,indexes:r,types:i}}function UM(e){return _c(e).values}function zM(e){const{split:t,types:n}=_c(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===jM?o+=sc(i[a]):u===KM?o+=xn.transform(i[a]):o+=i[a]}return o}}const rte=e=>typeof e=="number"?0:e;function ite(e){const t=UM(e);return zM(e)(t.map(rte))}const Ho={test:Qee,parse:UM,createTransformer:zM,getAnimatableNone:ite},ote=new Set(["brightness","contrast","saturate","opacity"]);function ate(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(e3)||[];if(!r)return e;const i=n.replace(r,"");let o=ote.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ste=/\b([a-z-]*)\(.*?\)/gu,Mb={...Ho,getAnimatableNone:e=>{const t=e.match(ste);return t?t.map(ate).join(" "):e}},ute={...B4,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:Mb,WebkitFilter:Mb},n3=e=>ute[e];function qM(e,t){let n=n3(e);return n!==Mb&&(n=Ho),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lte=new Set(["auto","none","0"]);function cte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!lte.has(o)&&_c(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=qM(n,i)}const kS=e=>e===ku||e===qe,IS=(e,t)=>parseFloat(e.split(", ")[t]),BS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return IS(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?IS(o[1],e):0}},fte=new Set(["x","y","z"]),dte=Fu.filter(e=>!fte.has(e));function hte(e){const t=[];return dte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const vu={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:BS(4,13),y:BS(5,14)};vu.translateX=vu.x;vu.translateY=vu.y;const Ia=new Set;let Fb=!1,kb=!1;function WM(){if(kb){const e=Array.from(Ia).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=hte(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)})}kb=!1,Fb=!1,Ia.forEach(e=>e.complete()),Ia.clear()}function HM(){Ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(kb=!0)})}function pte(){HM(),WM()}let r3=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?(Ia.add(this),Fb||(Fb=!0,Et.read(HM),Et.resolveKeyframes(WM))):(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 l=r.readValue(n,u);l!=null&&(t[0]=l)}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),Ia.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ia.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const GM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gte(e){const t=mte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const vte=4;function YM(e,t,n=1){Pi(n<=vte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=gte(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return GM(a)?parseFloat(a):a}return I4(i)?YM(i,t,n+1):i}const ZM=e=>t=>t.test(e),yte={test:e=>e==="auto",parse:e=>e},JM=[ku,qe,Ti,Ro,nee,tee,yte],LS=e=>JM.find(ZM(e));let XM=class extends r3{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),I4(f))){const d=YM(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!AM.has(r)||t.length!==2)return;const[i,o]=t,a=LS(i),u=LS(o);if(a!==u)if(kS(a)&&kS(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Hee(t[i])&&r.push(i);r.length&&cte(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=vu[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]=vu[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(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}};const VS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ho.test(e)||e==="0")&&!e.startsWith("url("));function bte(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 $te(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=VS(i,t),u=VS(o,t);return Mu(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:bte(e)||(n==="spring"||W4(n))&&r}const xte=e=>e!==null;function Fp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(xte),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const wte=40;let QM=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=Ai.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>wte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!$te(t,r,i,o))if(a)this.options.duration=0;else{l&&l(Fp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},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 Ft=(e,t,n)=>e+(t-e)*n;function Xy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Dte({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,l=2*n-u;i=Xy(l,u,e+1/3),o=Xy(l,u,e),a=Xy(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ph(e,t){return n=>n>0?t:e}const Qy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Cte=[Ob,_a,Ks],Ete=e=>Cte.find(t=>t.test(e));function NS(e){const t=Ete(e);if(Mu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ks&&(n=Dte(n)),n}const jS=(e,t)=>{const n=NS(e),r=NS(t);if(!n||!r)return Ph(e,t);const i={...n};return o=>(i.red=Qy(n.red,r.red,o),i.green=Qy(n.green,r.green,o),i.blue=Qy(n.blue,r.blue,o),i.alpha=Ft(n.alpha,r.alpha,o),_a.transform(i))},Ste=(e,t)=>n=>t(e(n)),rf=(...e)=>e.reduce(Ste),Ib=new Set(["none","hidden"]);function Tte(e,t){return Ib.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ate(e,t){return n=>Ft(e,t,n)}function i3(e){return typeof e=="number"?Ate:typeof e=="string"?I4(e)?Ph:xn.test(e)?jS:Rte:Array.isArray(e)?eF:typeof e=="object"?xn.test(e)?jS:Pte:Ph}function eF(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>i3(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Pte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=i3(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function _te(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]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[a]++}return r}const Rte=(e,t)=>{const n=Ho.createTransformer(t),r=_c(e),i=_c(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?Ib.has(e)&&!i.values.length||Ib.has(t)&&!r.values.length?Tte(e,t):rf(eF(_te(r,i),i.values),n):(Mu(!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.`),Ph(e,t))};function tF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ft(e,t,n):i3(e)(e,t)}const Ote=5;function nF(e,t,n){const r=Math.max(t-Ote,0);return PM(n-e(r),t-r)}const It={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},KS=.001;function Mte({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let i,o;Mu(e<=Si(It.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=so(It.minDamping,It.maxDamping,a),e=so(It.minDuration,It.maxDuration,no(e)),a<1?(i=f=>{const d=f*a,h=d*e,p=d-n,g=Bb(f,a),v=Math.exp(-h);return KS-p/g*v},o=f=>{const h=f*a*e,p=h*n+n,g=Math.pow(a,2)*Math.pow(f,2)*e,v=Math.exp(-h),b=Bb(Math.pow(f,2),a);return(-i(f)+KS>0?-1:1)*((p-g)*v)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},o=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=kte(i,o,u);if(e=Si(e),isNaN(l))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const Fte=12;function kte(e,t,n){let r=n;for(let i=1;i<Fte;i++)r=r-e(r)/t(r);return r}function Bb(e,t){return e*Math.sqrt(1-t*t)}const Ite=["duration","bounce"],Bte=["stiffness","damping","mass"];function US(e,t){return t.some(n=>e[n]!==void 0)}function Lte(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!US(e,Bte)&&US(e,Ite))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*so(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:It.mass,stiffness:i,damping:o}}else{const n=Mte(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function rF(e=It.visualDuration,t=It.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:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Lte({...n,velocity:-no(n.velocity||0)}),v=p||0,b=f/(2*Math.sqrt(l*d)),D=a-o,$=no(Math.sqrt(l/d)),y=Math.abs(D)<5;r||(r=y?It.restSpeed.granular:It.restSpeed.default),i||(i=y?It.restDelta.granular:It.restDelta.default);let w;if(b<1){const E=Bb($,b);w=A=>{const M=Math.exp(-b*$*A);return a-M*((v+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>a-Math.exp(-$*E)*(D+(v+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return a-M*((v+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?Si(v):nF(w,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(xM(T),Pb),A=wM(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function zS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,v=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=a===void 0?D:a(D);$!==D&&(b=$-h);const y=S=>-b*Math.exp(-S/r),w=S=>$+y(S),T=S=>{const z=y(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=rF({keyframes:[p.value,v(p.value)],velocity:nF(w,S,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:d}))};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),p)}}}const Vte=nf(.42,0,1,1),Nte=nf(0,0,.58,1),iF=nf(.42,0,.58,1),jte=e=>Array.isArray(e)&&typeof e[0]!="number",qS={linear:Zn,easeIn:Vte,easeInOut:iF,easeOut:Nte,circIn:Q4,circInOut:LM,circOut:BM,backIn:X4,backInOut:kM,backOut:FM,anticipate:IM},WS=e=>{if(H4(e)){Pi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return nf(t,n,r,i)}else if(typeof e=="string")return Pi(qS[e]!==void 0,`Invalid easing type '${e}'`),qS[e];return e};function Kte(e,t,n){const r=[],i=n||tF,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Zn:t;u=rf(l,u)}r.push(u)}return r}function oF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Pi(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=Kte(t,r,i),l=u.length,f=d=>{if(a&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=pu(e[h],e[h+1],d);return u[h](p)};return n?d=>f(so(e[0],e[o-1],d)):f}function Ute(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pu(0,t,r);e.push(Ft(n,1,i))}}function zte(e){const t=[0];return Ute(t,e.length-1),t}function qte(e,t){return e.map(n=>n*t)}function Wte(e,t){return e.map(()=>t||iF).splice(0,e.length-1)}function uc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=jte(r)?r.map(WS):WS(r),o={done:!1,value:t[0]},a=qte(n&&n.length===t.length?n:zte(t),e),u=oF(a,t,{ease:Array.isArray(i)?i:Wte(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const Hte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Et.update(t,!0),stop:()=>ao(t),now:()=>hn.isProcessing?hn.timestamp:Ai.now()}},Gte={decay:zS,inertia:zS,tween:uc,keyframes:uc,spring:rF},Yte=e=>e/100;let o3=class extends QM{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||r3,u=(l,f)=>this.onKeyframesResolved(l,f);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=W4(n)?n:Gte[n]||uc;let l,f;process.env.NODE_ENV!=="production"&&u!==uc&&Pi(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==uc&&typeof t[0]!="number"&&(l=rf(Yte,tF(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});o==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=xM(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,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:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:g,repeatType:v,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 $=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(v==="reverse"?(j=1-j,b&&(j-=b/h)):v==="mirror"&&(T=a)),w=so(0,1,j)*h}const E=y?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!y&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Fp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?no(t.calculatedDuration):0}get time(){return no(this.currentTime)}set time(t){t=Si(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=no(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Hte,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 Zte=new Set(["opacity","clipPath","filter","transform"]);function Jte(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=CM(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Xte=_4(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,Qte=2e4;function ene(e){return W4(e.type)||e.type==="spring"||!DM(e.ease)}function tne(e,t){const n=new o3({...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<Qte;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const aF={anticipate:IM,backInOut:kM,circInOut:LM};function nne(e){return e in aF}let HS=class extends QM{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new XM(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:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&Ah()&&nne(o)&&(o=aF[o]),ene(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:v,...b}=this.options,D=tne(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,o=D.ease,a="keyframes"}const d=Jte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(PS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Fp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,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 no(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return no(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Si(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 Zn;const{animation:r}=n;PS(r,t)}return Zn}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:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,v=new o3({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),b=Si(this.time);f.setWithVelocity(v.sample(b-_h).value,v.sample(b).value,_h)}const{onStop:l}=this.options;l&&l(),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:l,transformTemplate:f}=n.owner.getProps();return Xte()&&r&&Zte.has(r)&&!l&&!f&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const rne={type:"spring",stiffness:500,damping:25,restSpeed:10},ine=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),one={type:"keyframes",duration:.8},ane={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sne=(e,{keyframes:t})=>t.length>2?one:Qa.has(e)?e.startsWith("scale")?ine(t[1]):rne:ane;function une({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const a3=(e,t,n,r={},i,o)=>a=>{const u=q4(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Si(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};une(u)||(d={...d,...sne(e,d)}),d.duration&&(d.duration=Si(d.duration)),d.repeatDelay&&(d.repeatDelay=Si(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const p=Fp(d.keyframes,u);if(p!==void 0)return Et.update(()=>{d.onUpdate(p),d.onComplete()}),new Tee([])}return!o&&HS.supports(d)?new HS(d):new o3(d)};function lne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=l[h];if(g===void 0||d&&lne(d,h))continue;const v={delay:n,...q4(a||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=_M(e);if($){const y=window.MotionHandoffAnimation($,h,Et);y!==null&&(v.startTime=y,b=!0)}}Rb(e,h),p.start(a3(h,p,g,e.shouldReduceMotion&&AM.has(h)?{type:!1}:v,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Et.update(()=>{u&&Kee(e,u)})}),f}function Lb(e,t,n={}){var r;const i=Pc(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(sF(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=o;return cne(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[f,d]=l==="beforeChildren"?[a,u]:[u,a];return f().then(()=>d())}else return Promise.all([a(),u(n.delay)])}function cne(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(fne).forEach((f,d)=>{f.notify("AnimationStart",t),a.push(Lb(f,t,{...o,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function fne(e,t){return e.sortNodePosition(t)}function dne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Lb(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Lb(e,t,n);else{const i=typeof t=="function"?Pc(e,t,n.custom):t;r=Promise.all(sF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function uF(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const hne=O4.length;function lF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?lF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<hne;n++){const r=O4[n],i=e.props[r];(Sc(i)||i===!1)&&(t[r]=i)}return t}const pne=[...R4].reverse(),mne=R4.length;function gne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>dne(e,n,r)))}function vne(e){let t=gne(e),n=GS(),r=!0;const i=l=>(f,d)=>{var h;const p=Pc(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:v,...b}=p;f={...f,...b,...v}}return f};function o(l){t=l(e)}function a(l){const{props:f}=e,d=lF(e.parent)||{},h=[],p=new Set;let g={},v=1/0;for(let D=0;D<mne;D++){const $=pne[D],y=n[$],w=f[$]!==void 0?f[$]:d[$],T=Sc(w),E=$===l?y.isActive:null;E===!1&&(v=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...g},!y.isActive&&E===null||!w&&!y.prevProp||Op(w)||typeof w=="boolean")continue;const M=yne(y.prevProp,w);let S=M||$===l&&y.isActive&&!A&&T||D>v&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=y,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),y.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;Ab(_)&&Ab(H)?U=!uF(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):y.protectedKeys[k]=!0}y.prevProp=w,y.prevResolvedValues=O,y.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Pc(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const y=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=y??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=a(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=GS(),r=!0}}}function yne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uF(t,e):!1}function ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function GS(){return{animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()}}let Xo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},bne=class extends Xo{constructor(t){super(t),t.animationState||(t.animationState=vne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Op(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)}},$ne=0,xne=class extends Xo{constructor(){super(...arguments),this.id=$ne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const wne={animation:{Feature:bne},exit:{Feature:xne}};function Rc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function of(e){return{point:{x:e.pageX,y:e.pageY}}}const Dne=e=>t=>G4(t)&&e(t,of(t));function lc(e,t,n,r){return Rc(e,t,Dne(n),r)}const YS=(e,t)=>Math.abs(e-t);function Cne(e,t){const n=YS(e.x,t.x),r=YS(e.y,t.y);return Math.sqrt(n**2+r**2)}class cF{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=t0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Cne(h.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:v}=h,{timestamp:b}=hn;this.history.push({...v,timestamp:b});const{onStart:D,onMove:$}=this.handlers;p||(D&&D(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=e0(p,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=t0(h.type==="pointercancel"?this.lastMoveEventInfo:e0(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,D),v&&v(h,D)},!G4(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=of(t),u=e0(a,this.transformPagePoint),{point:l}=u,{timestamp:f}=hn;this.history=[{...l,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,t0(u,this.history)),this.removeListeners=rf(lc(this.contextWindow,"pointermove",this.handlePointerMove),lc(this.contextWindow,"pointerup",this.handlePointerUp),lc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ao(this.updatePoint)}}function e0(e,t){return t?{point:t(e.point)}:e}function ZS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t0({point:e},t){return{point:e,delta:ZS(e,fF(t)),offset:ZS(e,Ene(t)),velocity:Sne(t,.1)}}function Ene(e){return e[0]}function fF(e){return e[e.length-1]}function Sne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=fF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Si(t)));)n--;if(!r)return{x:0,y:0};const o=no(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 dF=1e-4,Tne=1-dF,Ane=1+dF,hF=.01,Pne=0-hF,_ne=0+hF;function On(e){return e.max-e.min}function Rne(e,t,n){return Math.abs(e-t)<=n}function JS(e,t,n,r=.5){e.origin=r,e.originPoint=Ft(t.min,t.max,e.origin),e.scale=On(n)/On(t),e.translate=Ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Tne&&e.scale<=Ane||isNaN(e.scale))&&(e.scale=1),(e.translate>=Pne&&e.translate<=_ne||isNaN(e.translate))&&(e.translate=0)}function cc(e,t,n,r){JS(e.x,t.x,n.x,r?r.originX:void 0),JS(e.y,t.y,n.y,r?r.originY:void 0)}function XS(e,t,n){e.min=n.min+t.min,e.max=e.min+On(t)}function One(e,t,n){XS(e.x,t.x,n.x),XS(e.y,t.y,n.y)}function QS(e,t,n){e.min=t.min-n.min,e.max=e.min+On(t)}function fc(e,t,n){QS(e.x,t.x,n.x),QS(e.y,t.y,n.y)}function Mne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ft(n,e,r.max):Math.min(e,n)),e}function e5(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 Fne(e,{top:t,left:n,bottom:r,right:i}){return{x:e5(e.x,n,i),y:e5(e.y,t,r)}}function t5(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 kne(e,t){return{x:t5(e.x,t.x),y:t5(e.y,t.y)}}function Ine(e,t){let n=.5;const r=On(e),i=On(t);return i>r?n=pu(t.min,t.max-r,e.min):r>i&&(n=pu(e.min,e.max-i,t.min)),so(0,1,n)}function Bne(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 Vb=.35;function Lne(e=Vb){return e===!1?e=0:e===!0&&(e=Vb),{x:n5(e,"left","right"),y:n5(e,"top","bottom")}}function n5(e,t,n){return{min:r5(e,t),max:r5(e,n)}}function r5(e,t){return typeof e=="number"?e:e[t]||0}const i5=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:i5(),y:i5()}),o5=()=>({min:0,max:0}),qt=()=>({x:o5(),y:o5()});function $r(e){return[e("x"),e("y")]}function pF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Nne(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 n0(e){return e===void 0||e===1}function Nb({scale:e,scaleX:t,scaleY:n}){return!n0(e)||!n0(t)||!n0(n)}function xa(e){return Nb(e)||mF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mF(e){return a5(e.x)||a5(e.y)}function a5(e){return e&&e!=="0%"}function Rh(e,t,n){const r=e-n,i=t*r;return n+i}function s5(e,t,n,r,i){return i!==void 0&&(e=Rh(e,i,r)),Rh(e,n,r)+t}function jb(e,t=0,n=1,r,i){e.min=s5(e.min,t,n,r,i),e.max=s5(e.max,t,n,r,i)}function gF(e,{x:t,y:n}){jb(e.x,t.translate,t.scale,t.originPoint),jb(e.y,n.translate,n.scale,n.originPoint)}const u5=.999999999999,l5=1.0000000000001;function jne(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:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&qs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gF(e,a)),r&&xa(o.latestValues)&&qs(e,o.latestValues))}t.x<l5&&t.x>u5&&(t.x=1),t.y<l5&&t.y>u5&&(t.y=1)}function zs(e,t){e.min=e.min+t,e.max=e.max+t}function c5(e,t,n,r,i=.5){const o=Ft(e.min,e.max,i);jb(e,t,n,o,r)}function qs(e,t){c5(e.x,t.x,t.scaleX,t.scale,t.originX),c5(e.y,t.y,t.scaleY,t.scale,t.originY)}function vF(e,t){return pF(Nne(e.getBoundingClientRect(),t))}function Kne(e,t,n){const r=vF(e,n),{scroll:i}=t;return i&&(zs(r.x,i.offset.x),zs(r.y,i.offset.y)),r}const yF=({current:e})=>e?e.ownerDocument.defaultView:null,Une=new WeakMap;class zne{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=qt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(of(d).point)},o=(d,h)=>{const{drag:p,dragPropagation:g,onDragStart:v}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Iee(p),!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),$r(D=>{let $=this.getAxisMotionValue(D).get()||0;if(Ti.test($)){const{projection:y}=this.visualElement;if(y&&y.layout){const w=y.layout.layoutBox[D];w&&($=On(w)*(parseFloat($)/100))}}this.originPoint[D]=$}),v&&Et.postRender(()=>v(d,h)),Rb(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,h)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:v,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:D}=h;if(g&&this.currentDirection===null){this.currentDirection=qne(D),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,D),this.updateAxis("y",h.point,D),this.visualElement.render(),b&&b(d,h)},u=(d,h)=>this.stop(d,h),l=()=>$r(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new cF(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:yF(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&&Et.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||!wd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Mne(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&&js(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Fne(i.layoutBox,n):this.constraints=!1,this.elastic=Lne(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$r(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Bne(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!js(t))return!1;const r=t.current;Pi(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=Kne(r,i.root,this.visualElement.getTransformPagePoint());let a=kne(i.layout.layoutBox,o);if(n){const u=n(Vne(a));this.hasMutatedConstraints=!!u,u&&(a=pF(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},f=$r(d=>{if(!wd(d,n,this.currentDirection))return;let h=l&&l[d]||{};a&&(h={min:0,max:0});const p=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(d,v)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rb(this.visualElement,t),r.start(a3(t,r,0,n,this.visualElement,!1))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$r(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){$r(n=>{const{drag:r}=this.getProps();if(!wd(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]-Ft(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!js(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$r(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const l=u.get();i[a]=Ine({min:l,max:l},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(),$r(a=>{if(!wd(a,t,null))return;const u=this.getAxisMotionValue(a),{min:l,max:f}=this.constraints[a];u.set(Ft(l,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;Une.set(this.visualElement,this);const t=this.visualElement.current,n=lc(t,"pointerdown",l=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();js(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Et.read(r);const a=Rc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&($r(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].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=Vb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function wd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function qne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Wne extends Xo{constructor(t){super(t),this.removeGroupControls=Zn,this.removeListeners=Zn,this.controls=new zne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zn}unmount(){this.removeGroupControls(),this.removeListeners()}}const f5=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class Hne extends Xo{constructor(){super(...arguments),this.removePointerDownListener=Zn}onPointerDown(t){this.session=new cF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:f5(t),onStart:f5(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Et.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=lc(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 Wd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function d5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(qe.test(e))e=parseFloat(e);else return e;const n=d5(e,t.target.x),r=d5(e,t.target.y);return`${n}% ${r}%`}},Gne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ho.parse(e);if(i.length>5)return r;const o=Ho.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=l;const f=Ft(u,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};class Yne extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;eee(Zne),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()})),Wd.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()||Et.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),F4.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 bF(e){const[t,n]=OQ(),r=C.useContext(tM);return io.jsx(Yne,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(uM),isPresent:t,safeToRemove:n})}const Zne={borderRadius:{...kl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomLeftRadius:kl,borderBottomRightRadius:kl,boxShadow:Gne};function Jne(e,t,n){const r=pn(e)?e:gu(e);return r.start(a3("",r,t,n)),r.animation}function Xne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Qne=(e,t)=>e.depth-t.depth;class ere{constructor(){this.children=[],this.isDirty=!1}add(t){Y4(this.children,t),this.isDirty=!0}remove(t){Z4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qne),this.isDirty=!1,this.children.forEach(t)}}function tre(e,t){const n=Ai.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ao(r),e(o-t))};return Et.read(r,!0),()=>ao(r)}const $F=["TopLeft","TopRight","BottomLeft","BottomRight"],nre=$F.length,h5=e=>typeof e=="string"?parseFloat(e):e,p5=e=>typeof e=="number"||qe.test(e);function rre(e,t,n,r,i,o){i?(e.opacity=Ft(0,n.opacity!==void 0?n.opacity:1,ire(r)),e.opacityExit=Ft(t.opacity!==void 0?t.opacity:1,0,ore(r))):o&&(e.opacity=Ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<nre;a++){const u=`border${$F[a]}Radius`;let l=m5(t,u),f=m5(n,u);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||p5(l)===p5(f)?(e[u]=Math.max(Ft(h5(l),h5(f),r),0),(Ti.test(f)||Ti.test(l))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Ft(t.rotate||0,n.rotate||0,r))}function m5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ire=xF(0,.5,BM),ore=xF(.5,.95,Zn);function xF(e,t,n){return r=>r<e?0:r>t?1:n(pu(e,t,r))}function g5(e,t){e.min=t.min,e.max=t.max}function yr(e,t){g5(e.x,t.x),g5(e.y,t.y)}function v5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function y5(e,t,n,r,i){return e-=t,e=Rh(e,1/n,r),i!==void 0&&(e=Rh(e,1/i,r)),e}function are(e,t=0,n=1,r=.5,i,o=e,a=e){if(Ti.test(t)&&(t=parseFloat(t),t=Ft(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=Ft(o.min,o.max,r);e===o&&(u-=t),e.min=y5(e.min,t,n,u,i),e.max=y5(e.max,t,n,u,i)}function b5(e,t,[n,r,i],o,a){are(e,t[n],t[r],t[i],t.scale,o,a)}const sre=["x","scaleX","originX"],ure=["y","scaleY","originY"];function $5(e,t,n,r){b5(e.x,t,sre,n?n.x:void 0,r?r.x:void 0),b5(e.y,t,ure,n?n.y:void 0,r?r.y:void 0)}function x5(e){return e.translate===0&&e.scale===1}function wF(e){return x5(e.x)&&x5(e.y)}function w5(e,t){return e.min===t.min&&e.max===t.max}function lre(e,t){return w5(e.x,t.x)&&w5(e.y,t.y)}function D5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function DF(e,t){return D5(e.x,t.x)&&D5(e.y,t.y)}function C5(e){return On(e.x)/On(e.y)}function E5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class cre{constructor(){this.members=[]}add(t){Y4(this.members,t),t.scheduleRender()}remove(t){if(Z4(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 fre(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:f,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:v}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const r0=["","X","Y","Z"],dre={visibility:"hidden"},S5=1e3;let hre=0;function i0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function CF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_M(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&CF(r)}function EF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=hre++,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,this.nodes.forEach(gre),this.nodes.forEach(xre),this.nodes.forEach(wre),this.nodes.forEach(vre)},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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ere)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new J4),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const l=this.eventHandlers.get(a);l&&l.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Xne(a),this.instance=a;const{layoutId:l,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=tre(p,250),Wd.hasAnimatedSinceResize&&(Wd.hasAnimatedSinceResize=!1,this.nodes.forEach(A5))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Tre,{onLayoutAnimationStart:D,onLayoutAnimationComplete:$}=d.getProps(),y=!this.targetLayout||!DF(this.targetLayout,v),w=!p&&g;if(this.options.layoutRoot||this.resumeFrom||w||p&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const T={...q4(b,"layout"),onPlay:D,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else p||A5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,ao(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(Dre),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&&CF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(T5);return}this.isUpdating||this.nodes.forEach(bre),this.isUpdating=!1,this.nodes.forEach($re),this.nodes.forEach(pre),this.nodes.forEach(mre),this.clearAllSnapshots();const u=Ai.now();hn.delta=so(0,1e3/60,u-hn.timestamp),hn.timestamp=u,hn.isProcessing=!0,Yy.update.process(hn),Yy.preRender.process(hn),Yy.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,F4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yre),this.sharedNodes.forEach(Cre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!On(this.snapshot.measuredBox.x)&&!On(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),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 l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!wF(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;a&&(u||xa(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return a&&(l=this.removeTransform(l)),Are(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return qt();const l=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(Pre))){const{scroll:d}=this.root;d&&(zs(l.x,d.offset.x),zs(l.y,d.offset.y))}return l}removeElementScroll(a){var u;const l=qt();if(yr(l,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:p}=d;d!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&yr(l,a),zs(l.x,h.offset.x),zs(l.y,h.offset.y))}return l}applyTransform(a,u=!1){const l=qt();yr(l,a);for(let f=0;f<this.path.length;f++){const d=this.path[f];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&qs(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xa(d.latestValues)&&qs(l,d.latestValues)}return xa(this.latestValues)&&qs(l,this.latestValues),l}removeTransform(a){const u=qt();yr(u,a);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!xa(f.latestValues))continue;Nb(f.latestValues)&&f.updateSnapshot();const d=qt(),h=f.measurePageBox();yr(d,h),$5(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return xa(this.latestValues)&&$5(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!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==l;if(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),fc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),yr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),One(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yr(this.target,this.layout.layoutBox),gF(this.target,this.targetDelta)):yr(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=qt(),this.relativeTargetOrigin=qt(),fc(this.relativeTargetOrigin,this.target,g.target),yr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Nb(this.parent.latestValues)||mF(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(),l=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(f=!1),f)return;const{layout:d,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||!(d||h))return;yr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;jne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=qt());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(v5(this.prevProjectionDelta.x,this.projectionDelta.x),v5(this.prevProjectionDelta.y,this.projectionDelta.y)),cc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!E5(this.projectionDelta.x,this.prevProjectionDelta.x)||!E5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}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 l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(a,u=!1){const l=this.snapshot,f=l?l.latestValues:{},d={...this.latestValues},h=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const p=qt(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,b=g!==v,D=this.getStack(),$=!D||D.members.length<=1,y=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some(Sre));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const E=T/1e3;P5(h.x,a.x,E),P5(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ere(this.relativeTarget,this.relativeTargetOrigin,p,E),w&&lre(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=qt()),yr(w,this.relativeTarget)),b&&(this.animationValues=d,rre(d,f,this.latestValues,E,y,$)),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&&(ao(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{Wd.hasAnimatedSinceResize=!0,this.currentAnimation=Jne(0,S5,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onStop:()=>{},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(S5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:l,layout:f,latestValues:d}=a;if(!(!u||!l||!f)){if(this!==a&&this.layout&&f&&SF(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||qt();const h=On(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+h;const p=On(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}yr(u,l),qs(u,d),cc(this.projectionDeltaWithTransform,this.layoutCorrected,u,d)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new cre),this.sharedNodes.get(a).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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:l}={}){const f=this.getStack();f&&f.promote(this,l),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:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const f={};l.z&&i0("z",a,f,this.animationValues);for(let d=0;d<r0.length;d++)i0(`rotate${r0[d]}`,a,f,this.animationValues),i0(`skew${r0[d]}`,a,f,this.animationValues);a.render();for(const d in f)a.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);a.scheduleRender()}getProjectionStyles(a){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return dre;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=zd(a==null?void 0:a.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=zd(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!xa(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=fre(this.projectionDeltaWithTransform,this.treeScale,p),d&&(f.transform=d(p,f.transform));const{x:g,y:v}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?f.opacity=h===this?(l=(u=p.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Tc){if(p[b]===void 0)continue;const{correct:D,applyTo:$,isCSSVariable:y}=Tc[b],w=f.transform==="none"?p[b]:D(p[b],h);if($){const T=$.length;for(let E=0;E<T;E++)f[$[E]]=w}else y?this.options.visualElement.renderState.vars[b]=w:f[b]=w}return this.options.layoutId&&(f.pointerEvents=h===this?zd(a==null?void 0:a.pointerEvents)||"":"none"),f}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(T5),this.root.sharedNodes.clear()}}}function pre(e){e.updateLayout()}function mre(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"?$r(h=>{const p=a?n.measuredBox[h]:n.layoutBox[h],g=On(p);p.min=r[h].min,p.max=p.min+g}):SF(o,n.layoutBox,r)&&$r(h=>{const p=a?n.measuredBox[h]:n.layoutBox[h],g=On(r[h]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=Us();cc(u,r,n.layoutBox);const l=Us();a?cc(l,e.applyTransform(i,!0),n.measuredBox):cc(l,r,n.layoutBox);const f=!wF(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:g}=h;if(p&&g){const v=qt();fc(v,n.layoutBox,p.layoutBox);const b=qt();fc(b,r,g.layoutBox),DF(v,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function gre(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yre(e){e.clearSnapshot()}function T5(e){e.clearMeasurements()}function bre(e){e.isLayoutDirty=!1}function $re(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function A5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xre(e){e.resolveTargetDelta()}function wre(e){e.calcProjection()}function Dre(e){e.resetSkewAndRotation()}function Cre(e){e.removeLeadSnapshot()}function P5(e,t,n){e.translate=Ft(t.translate,0,n),e.scale=Ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _5(e,t,n,r){e.min=Ft(t.min,n.min,r),e.max=Ft(t.max,n.max,r)}function Ere(e,t,n,r){_5(e.x,t.x,n.x,r),_5(e.y,t.y,n.y,r)}function Sre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Tre={duration:.45,ease:[.4,0,.1,1]},R5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),O5=R5("applewebkit/")&&!R5("chrome/")?Math.round:Zn;function M5(e){e.min=O5(e.min),e.max=O5(e.max)}function Are(e){M5(e.x),M5(e.y)}function SF(e,t,n){return e==="position"||e==="preserve-aspect"&&!Rne(C5(t),C5(n),.2)}function Pre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _re=EF({attachResizeListener:(e,t)=>Rc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),o0={current:void 0},TF=EF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!o0.current){const e=new _re({});e.mount(window),e.setOptions({layoutScroll:!0}),o0.current=e}return o0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Rre={pan:{Feature:Hne},drag:{Feature:Wne,ProjectionNode:TF,MeasureLayout:bF}};function F5(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&&Et.postRender(()=>o(t,of(t)))}let Ore=class extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=Ree(t,(n,r)=>(F5(this.node,r,"Start"),i=>F5(this.node,i,"End"))))}unmount(){}},Mre=class extends Xo{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=rf(Rc(this.node.current,"focus",()=>this.onFocus()),Rc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function k5(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Et.postRender(()=>o(t,of(t)))}let Fre=class extends Xo{mount(){const{current:t}=this.node;t&&(this.unmount=kee(t,(n,r)=>(k5(this.node,r,"Start"),(i,{success:o})=>k5(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Kb=new WeakMap,a0=new WeakMap,kre=e=>{const t=Kb.get(e.target);t&&t(e)},Ire=e=>{e.forEach(kre)};function Bre({root:e,...t}){const n=e||document;a0.has(n)||a0.set(n,{});const r=a0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ire,{root:e,...t})),r[i]}function Lre(e,t,n){const r=Bre(t);return Kb.set(e,n),r.observe(e),()=>{Kb.delete(e),r.unobserve(e)}}const Vre={some:0,all:1};let Nre=class extends Xo{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:Vre[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Lre(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(jre(t,n))&&this.startObserver()}unmount(){}};function jre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Kre={inView:{Feature:Nre},tap:{Feature:Fre},focus:{Feature:Mre},hover:{Feature:Ore}},Ure={layout:{ProjectionNode:TF,MeasureLayout:bF}},Ub={current:null},AF={current:!1};function zre(){if(AF.current=!0,!!P4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ub.current=e.matches;e.addListener(t),t()}else Ub.current=!1}const qre=[...JM,xn,Ho],Wre=e=>qre.find(ZM(e)),Hre=new WeakMap;function Gre(e,t,n){for(const r in t){const i=t[r],o=n[r];if(pn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&_p(i.version==="12.4.3",`Attempting to mix Motion versions ${i.version} with 12.4.3 may not work as expected.`);else if(pn(o))e.addValue(r,gu(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,gu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const I5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Yre=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=r3,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=Ai.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Et.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Mp(n),this.isVariantNode=aM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const v=p[g];l[g]!==void 0&&pn(v)&&v.set(l[g],!1)}}mount(t){this.current=t,Hre.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),AF.current||zre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ub.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(){this.projection&&this.projection.unmount(),ao(this.notifyUpdate),ao(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=Qa.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Et.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 mu){const n=mu[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):qt()}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<I5.length;r++){const i=I5[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=Gre(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=gu(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"&&(GM(i)||VM(i))?i=parseFloat(i):!Wre(i)&&Ho.test(n)&&(i=qM(t,n)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(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=U4(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&&!pn(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 J4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},PF=class extends Yre{constructor(){super(...arguments),this.KeyframeResolver=XM}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;pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Zre(e){return window.getComputedStyle(e)}let Jre=class extends PF{constructor(){super(...arguments),this.type="html",this.renderInstance=vM}readValueFromInstance(t,n){if(Qa.has(n)){const r=n3(n);return r&&r.default||0}else{const r=Zre(t),i=(k4(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vF(t,n)}build(t,n,r){L4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return z4(t,n,r)}},Xre=class extends PF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&gM(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qa.has(n)){const r=n3(n);return r&&r.default||0}return n=yM.has(n)?n:M4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return $M(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Et.postRender(this.updateDimensions)}build(t,n,r){j4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){bM(t,n,r,i)}mount(t){this.isSVGTag=K4(t.tagName),super.mount(t)}};const Qre=(e,t)=>N4(e)?new Xre(t):new Jre(t,{allowProjection:e!==C.Fragment}),eie=Cee({...wne,...Kre,...Rre,...Ure},Qre),_F=NQ(eie);function RF(e){const t=ef(()=>gu(e)),{isStatic:n}=C.useContext(A4);if(n){const[,r]=C.useState(e);C.useEffect(()=>t.on("change",r),[])}return t}function OF(e,t){const n=RF(t()),r=()=>n.set(t());return r(),nM(()=>{const i=()=>Et.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),ao(r)}}),n}const tie=e=>e&&typeof e=="object"&&e.mix,nie=e=>tie(e)?e.mix:void 0;function rie(...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=oF(i,o,{mixer:nie(o[0]),...a});return t?u(r):u}function iie(e){ac.current=[],e();const t=OF(ac.current,e);return ac.current=void 0,t}function oie(e,t,n,r){if(typeof e=="function")return iie(e);const i=typeof t=="function"?t:rie(t,n,r);return Array.isArray(e)?B5(e,i):B5([e],([o])=>i(o))}function B5(e,t){const n=ef(()=>[]);return OF(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const MF=C.createContext(null);function aie(e,t,n,r){if(!r)return e;const i=e.findIndex(d=>d.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],l=a.layout,f=Ft(l.min,l.max,.5);return o===1&&u.layout.max+n>f||o===-1&&u.layout.min+n<f?Lee(e,i,i+o):e}function sie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=ef(()=>_F[t]),l=[],f=C.useRef(!1);Pi(!!i,"Reorder.Group must be provided a values prop");const d={axis:n,registerItem:(h,p)=>{const g=l.findIndex(v=>h===v.value);g!==-1?l[g].layout=p[n]:l.push({value:h,layout:p[n]}),l.sort(cie)},updateOrder:(h,p,g)=>{if(f.current)return;const v=aie(l,h,p,g);l!==v&&(f.current=!0,r(v.map(lie).filter(b=>i.indexOf(b)!==-1)))}};return C.useEffect(()=>{f.current=!1}),io.jsx(u,{...o,ref:a,ignoreStrict:!0,children:io.jsx(MF.Provider,{value:d,children:e})})}const uie=C.forwardRef(sie);function lie(e){return e.value}function cie(e,t){return e.layout.min-t.layout.min}function L5(e,t=0){return pn(e)?e:RF(t)}function fie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const l=ef(()=>_F[r]),f=C.useContext(MF),d={x:L5(t.x),y:L5(t.y)},h=oie([d.x,d.y],([b,D])=>b||D?1:"unset");Pi(!!f,"Reorder.Item must be a child of Reorder.Group");const{axis:p,registerItem:g,updateOrder:v}=f;return io.jsx(l,{drag:p,...a,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:h},layout:o,onDrag:(b,D)=>{const{velocity:$}=D;$[p]&&v(n,d[p].get(),$[p]),i&&i(b,D)},onLayoutMeasure:b=>g(n,b),ref:u,ignoreStrict:!0,children:e})}const die=C.forwardRef(fie);var Hd={exports:{}},hie=Hd.exports,V5;function pie(){return V5||(V5=1,function(e,t){(function(n,r){e.exports=r()})(hie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var a=i.prototype,u=a.format;o.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,d=function(h,p){return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,v,b){var D=b&&b.toUpperCase();return v||p[b]||n[b]||p[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,y,w){return y||w.slice(1)})})}(l,f===void 0?{}:f);return u.call(this,d)}}})}(Hd)),Hd.exports}var mie=pie();const gie=_i(mie),N5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},FF=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?N5(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>N5(i,n,e))}},vie=(e,t)=>{t.shouldUseNativeValidation&&FF(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(yie(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));gt(a,"root",o),gt(n,r,a)}else gt(n,r,o)}return n},yie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function bie(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 l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return o.shouldUseNativeValidation&&FF({},o),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return u(f)}return l&&l.then?l.then(void 0,u):l}(0,function(a){if(!a.inner)throw a;return{values:{},errors:vie((u=a,l=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(f,d){if(f[d.path]||(f[d.path]={message:d.message,type:d.type}),l){var h=f[d.path].types,p=h&&h[d.type];f[d.path]=hA(d.path,l,f,d.type,p?[].concat(p,d.message):d.message)}return f},{})),o)};var u,l}))}catch(a){return Promise.reject(a)}}}var s0,j5;function $ie(){if(j5)return s0;j5=1;var e=_u(),t=Ou(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return s0=r,s0}var xie=$ie();const wie=_i(xie),Die=C.createContext({});function Cie(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const kF=C.createContext(null),IF=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),s3=typeof window<"u",Eie=s3?C.useLayoutEffect:C.useEffect,Go=e=>e;let af=Go,yu=Go;process.env.NODE_ENV!=="production"&&(af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},yu=(e,t)=>{if(!e)throw new Error(t)});const Sie={useManualTiming:!1},Dd=["read","resolveKeyframes","update","preRender","render","postRender"];function Tie(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const v=p&&i?n:r;return h&&a.add(d),v.has(d)||v.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(u=d,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,f.process(d))}};return f}const Aie=40;function BF(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Dd.reduce(($,y)=>($[y]=Tie(o),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=a,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,Aie),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Dd.reduce(($,y)=>{const w=a[y];return $[y]=(T,E=!1,A=!1)=>(n||v(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let y=0;y<Dd.length;y++)a[Dd[y]].cancel($)},state:i,steps:a}}const{schedule:Jn,cancel:zb,state:Oh}=BF(typeof requestAnimationFrame<"u"?requestAnimationFrame:Go,!0),u3=C.createContext({strict:!1}),K5={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"]},bu={};for(const e in K5)bu[e]={isEnabled:t=>K5[e].some(n=>!!t[n])};function U5(e){for(const t in e)bu[t]={...bu[t],...e[t]}}function Pie({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!u0(t)),i=C.useRef(void 0);if(!u0(t)){const{renderer:o,...a}=t;i.current=o,U5(a)}return C.useEffect(()=>{u0(t)&&t().then(({renderer:o,...a})=>{U5(a),i.current=o,r(!0)})},[]),io.jsx(u3.Provider,{value:{renderer:i.current,strict:n},children:e})}function u0(e){return typeof e=="function"}const _ie=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 Mh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_ie.has(e)}let LF=e=>!Mh(e);function Rie(e){e&&(LF=t=>t.startsWith("on")?!Mh(t):e(t))}try{Rie(require("@emotion/is-prop-valid").default)}catch{}function Oie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(LF(i)||n===!0&&Mh(i)||!t&&!Mh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const z5=new Set;function kp(e,t,n){e||z5.has(t)||(console.warn(t),z5.add(t))}function Mie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&kp(!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 Ip=C.createContext({});function Bp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Oc(e){return typeof e=="string"||Array.isArray(e)}const l3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c3=["initial",...l3];function Lp(e){return Bp(e.animate)||c3.some(t=>Oc(e[t]))}function VF(e){return!!(Lp(e)||e.variants)}function Fie(e,t){if(Lp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Oc(n)?n:void 0,animate:Oc(r)?r:void 0}}return e.inherit!==!1?t:{}}function kie(e){const{initial:t,animate:n}=Fie(e,C.useContext(Ip));return C.useMemo(()=>({initial:t,animate:n}),[q5(t),q5(n)])}function q5(e){return Array.isArray(e)?e.join(" "):e}const Iie=Symbol.for("motionComponentSymbol");function NF(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Bie(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):NF(n)&&(n.current=r))},[t])}const f3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lie="framerAppearId",jF="data-"+f3(Lie),{schedule:Vie}=BF(queueMicrotask,!1),Nie=C.createContext({});function jie(e,t,n,r,i){var o,a;const{visualElement:u}=C.useContext(Ip),l=C.useContext(u3),f=C.useContext(kF),d=C.useContext(IF).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(Nie);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Kie(h.current,n,i,g);const v=C.useRef(!1);C.useInsertionEffect(()=>{p&&v.current&&p.update(n,f)});const b=n[jF],D=C.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Eie(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Vie.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function Kie(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KF(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&NF(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function KF(e){if(e)return e.options.allowProjection!==!1?e.projection:KF(e.parent)}function Uie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;function u(f,d){let h;const p={...C.useContext(IF),...f,layoutId:zie(f)},{isStatic:g}=p,v=kie(f),b=r(f,g);if(!g&&s3){qie(p,e);const D=Wie(p);h=D.MeasureLayout,v.visualElement=jie(i,b,p,t,D.ProjectionNode)}return io.jsxs(Ip.Provider,{value:v,children:[h&&v.visualElement?io.jsx(h,{visualElement:v.visualElement,...p}):null,n(i,f,Bie(b,v.visualElement,d),b,g,v.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 l=C.forwardRef(u);return l[Iie]=i,l}function zie({layoutId:e}){const t=C.useContext(Die).id;return t&&e!==void 0?t+"-"+e:e}function qie(e,t){C.useContext(u3).strict,process.env.NODE_ENV}function Wie(e){const{drag:t,layout:n}=bu;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 UF=e=>t=>typeof t=="string"&&t.startsWith(e),zF=UF("--"),Hie=UF("var(--"),d3=e=>Hie(e)?Gie.test(e.split("/*")[0].trim()):!1,Gie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Yie={},Iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(Iu);function qF(e,{layout:t,layoutId:n}){return es.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Yie[e]||e==="opacity")}const Mn=e=>!!(e&&e.getVelocity),WF=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ga=(e,t,n)=>n>t?t:n<e?e:n,Bu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Mc={...Bu,transform:e=>Ga(0,1,e)},Cd={...Bu,default:1},sf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Oo=sf("deg"),eu=sf("%"),We=sf("px"),Zie=sf("vh"),Jie=sf("vw"),W5={...eu,parse:e=>eu.parse(e)/100,transform:e=>eu.transform(e*100)},Xie={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,backgroundPositionX:We,backgroundPositionY:We},Qie={rotate:Oo,rotateX:Oo,rotateY:Oo,rotateZ:Oo,scale:Cd,scaleX:Cd,scaleY:Cd,scaleZ:Cd,skew:Oo,skewX:Oo,skewY:Oo,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Mc,originX:W5,originY:W5,originZ:We},H5={...Bu,transform:Math.round},h3={...Xie,...Qie,zIndex:H5,size:We,fillOpacity:Mc,strokeOpacity:Mc,numOctaves:H5},eoe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},toe=Iu.length;function noe(e,t,n){let r="",i=!0;for(let o=0;o<toe;o++){const a=Iu[o],u=e[a];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(a.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=WF(u,h3[a]);if(!l){i=!1;const d=eoe[a]||a;r+=`${d}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function p3(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const l in t){const f=t[l];if(es.has(l)){a=!0;continue}else if(zF(l)){i[l]=f;continue}else{const d=WF(f,h3[l]);l.startsWith("origin")?(u=!0,o[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=noe(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=o;r.transformOrigin=`${l} ${f} ${d}`}}const m3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HF(e,t,n){for(const r in t)!Mn(t[r])&&!qF(r,n)&&(e[r]=t[r])}function roe({transformTemplate:e},t){return C.useMemo(()=>{const n=m3();return p3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ioe(e,t){const n=e.style||{},r={};return HF(r,n,e),Object.assign(r,roe(e,t)),r}function ooe(e,t){const n={},r=ioe(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 aoe=["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 g3(e){return typeof e!="string"||e.includes("-")?!1:!!(aoe.indexOf(e)>-1||/[A-Z]/u.test(e))}const soe={offset:"stroke-dashoffset",array:"stroke-dasharray"},uoe={offset:"strokeDashoffset",array:"strokeDasharray"};function loe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?soe:uoe;e[o.offset]=We.transform(-r);const a=We.transform(t),u=We.transform(n);e[o.array]=`${a} ${u}`}function G5(e,t,n){return typeof e=="string"?e:We.transform(t+n*e)}function coe(e,t,n){const r=G5(t,e.x,e.width),i=G5(n,e.y,e.height);return`${r} ${i}`}function v3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(p3(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:v}=e;p.transform&&(v&&(g.transform=p.transform),delete p.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=coe(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&loe(p,a,u,l,!1)}const GF=()=>({...m3(),attrs:{}}),y3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function foe(e,t,n,r){const i=C.useMemo(()=>{const o=GF();return v3(o,t,y3(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};HF(o,e.style,e),i.style={...o,...i.style}}return i}function doe(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(g3(n)?foe:ooe)(r,o,a,n),f=Oie(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>Mn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function Y5(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function b3(e,t,n,r){if(typeof t=="function"){const[i,o]=Y5(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]=Y5(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const qb=e=>Array.isArray(e),hoe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),poe=e=>qb(e)?e[e.length-1]||0:e;function moe(e){const t=Mn(e)?e.get():e;return hoe(t)?t.toValue():t}function goe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:voe(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const YF=e=>(t,n)=>{const r=C.useContext(Ip),i=C.useContext(kF),o=()=>goe(e,t,r,i);return n?o():Cie(o)};function voe(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=moe(o[p]);let{initial:a,animate:u}=e;const l=Lp(e),f=VF(e);t&&f&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?u:a;if(h&&typeof h!="boolean"&&!Bp(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const v=b3(e,p[g]);if(v){const{transitionEnd:b,transition:D,...$}=v;for(const y in $){let w=$[y];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[y]=w)}for(const y in b)i[y]=b[y]}}}return i}function $3(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Mn(i[a])||t.style&&Mn(t.style[a])||qF(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}const yoe={useVisualState:YF({scrapeMotionValuesFromProps:$3,createRenderState:m3})};function ZF(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function JF(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 XF=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 QF(e,t,n,r){JF(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(XF.has(i)?i:f3(i),t.attrs[i])}function e9(e,t,n){const r=$3(e,t,n);for(const i in e)if(Mn(e[i])||Mn(t[i])){const o=Iu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Z5=["x","y","width","height","cx","cy","r"],boe={useVisualState:YF({scrapeMotionValuesFromProps:e9,createRenderState:GF,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(es.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Z5.length;u++){const l=Z5[u];e[l]!==t[l]&&(a=!0)}a&&Jn.read(()=>{ZF(n,r),Jn.render(()=>{v3(r,i,y3(n.tagName),e.transformTemplate),QF(n,r)})})}})};function $oe(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...g3(r)?boe:yoe,preloadedFeatures:e,useRender:doe(i),createVisualElement:t,Component:r};return Uie(a)}}const xoe=$oe(),woe=Mie(xoe);function Fc(e,t,n){const r=e.getProps();return b3(r,t,n!==void 0?n:r.custom,e)}function t9(e,t){return e?e[t]||e.default||e:void 0}const n9=new Set(["width","height","top","left","right","bottom",...Iu]);let Gd;function Doe(){Gd=void 0}const Uo={now:()=>(Gd===void 0&&Uo.set(Oh.isProcessing||Sie.useManualTiming?Oh.timestamp:performance.now()),Gd),set:e=>{Gd=e,queueMicrotask(Doe)}};function Coe(e,t){e.indexOf(t)===-1&&e.push(t)}function Eoe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class r9{constructor(){this.subscriptions=[]}add(t){return Coe(this.subscriptions,t),()=>Eoe(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 i9(e,t){return t?e*(1e3/t):0}const J5=30,Soe=e=>!isNaN(parseFloat(e));class Toe{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Uo.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=Uo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Soe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&kp(!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 r9);const r=this.events[t].add(n);return t==="change"?()=>{r(),Jn.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=Uo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>J5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,J5);return i9(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 Fh(e,t){return new Toe(e,t)}function Aoe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fh(n))}function Poe(e,t){const n=Fc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=poe(o[a]);Aoe(e,a,u)}}function _oe(e){return!!(Mn(e)&&e.add)}function Roe(e,t){const n=e.getValue("willChange");if(_oe(n))return n.add(t)}function Ooe(e){return e.props[jF]}function x3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Moe=x3(()=>window.ScrollTimeline!==void 0);class Foe{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(Moe()&&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")}}class koe extends Foe{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const ro=e=>e*1e3,zo=e=>e/1e3;function w3(e){return typeof e=="function"}function X5(e,t){e.timeline=t,e.onfinish=null}const D3=e=>Array.isArray(e)&&typeof e[0]=="number",Ioe={linearEasing:void 0};function Boe(e,t){const n=x3(e);return()=>{var r;return(r=Ioe[t])!==null&&r!==void 0?r:n()}}const kh=Boe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),C3=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},o9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(C3(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function a9(e){return!!(typeof e=="function"&&kh()||!e||typeof e=="string"&&(e in Wb||kh())||D3(e)||Array.isArray(e)&&e.every(a9))}const Xl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function s9(e,t){if(e)return typeof e=="function"&&kh()?o9(e,t):D3(e)?Xl(e):Array.isArray(e)?e.map(n=>s9(n,t)||Wb.easeOut):Wb[e]}const u9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Loe=1e-7,Voe=12;function Noe(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=u9(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>Loe&&++u<Voe);return a}function uf(e,t,n,r){if(e===t&&n===r)return Go;const i=o=>Noe(o,0,1,e,n);return o=>o===0||o===1?o:u9(i(o),t,r)}const l9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c9=e=>t=>1-e(1-t),f9=uf(.33,1.53,.69,.99),E3=c9(f9),d9=l9(E3),h9=e=>(e*=2)<1?.5*E3(e):.5*(2-Math.pow(2,-10*(e-1))),S3=e=>1-Math.sin(Math.acos(e)),joe=c9(S3),p9=l9(S3),m9=e=>/^0[^.\s]+$/u.test(e);function Koe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||m9(e):!0}const dc=e=>Math.round(e*1e5)/1e5,T3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Uoe(e){return e==null}const zoe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,A3=(e,t)=>n=>!!(typeof n=="string"&&zoe.test(n)&&n.startsWith(e)||t&&!Uoe(n)&&Object.prototype.hasOwnProperty.call(n,t)),g9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(T3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},qoe=e=>Ga(0,255,e),l0={...Bu,transform:e=>Math.round(qoe(e))},Ra={test:A3("rgb","red"),parse:g9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+l0.transform(e)+", "+l0.transform(t)+", "+l0.transform(n)+", "+dc(Mc.transform(r))+")"};function Woe(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 Hb={test:A3("#"),parse:Woe,transform:Ra.transform},Ws={test:A3("hsl","hue"),parse:g9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eu.transform(dc(t))+", "+eu.transform(dc(n))+", "+dc(Mc.transform(r))+")"},wn={test:e=>Ra.test(e)||Hb.test(e)||Ws.test(e),parse:e=>Ra.test(e)?Ra.parse(e):Ws.test(e)?Ws.parse(e):Hb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ra.transform(e):Ws.transform(e)},Hoe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Goe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(T3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Hoe))===null||n===void 0?void 0:n.length)||0)>0}const v9="number",y9="color",Yoe="var",Zoe="var(",Q5="${}",Joe=/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 kc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(Joe,l=>(wn.test(l)?(r.color.push(o),i.push(y9),n.push(wn.parse(l))):l.startsWith(Zoe)?(r.var.push(o),i.push(Yoe),n.push(l)):(r.number.push(o),i.push(v9),n.push(parseFloat(l))),++o,Q5)).split(Q5);return{values:n,split:u,indexes:r,types:i}}function b9(e){return kc(e).values}function $9(e){const{split:t,types:n}=kc(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===v9?o+=dc(i[a]):u===y9?o+=wn.transform(i[a]):o+=i[a]}return o}}const Xoe=e=>typeof e=="number"?0:e;function Qoe(e){const t=b9(e);return $9(e)(t.map(Xoe))}const Lu={test:Goe,parse:b9,createTransformer:$9,getAnimatableNone:Qoe},eae=new Set(["brightness","contrast","saturate","opacity"]);function tae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(T3)||[];if(!r)return e;const i=n.replace(r,"");let o=eae.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const nae=/\b([a-z-]*)\(.*?\)/gu,Gb={...Lu,getAnimatableNone:e=>{const t=e.match(nae);return t?t.map(tae).join(" "):e}},rae={...h3,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:Gb,WebkitFilter:Gb},P3=e=>rae[e];function x9(e,t){let n=P3(e);return n!==Gb&&(n=Lu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iae=new Set(["auto","none","0"]);function oae(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!iae.has(o)&&kc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=x9(n,i)}const eT=e=>e===Bu||e===We,tT=(e,t)=>parseFloat(e.split(", ")[t]),nT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return tT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?tT(o[1],e):0}},aae=new Set(["x","y","z"]),sae=Iu.filter(e=>!aae.has(e));function uae(e){const t=[];return sae.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $u={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:nT(4,13),y:nT(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const Ba=new Set;let Yb=!1,Zb=!1;function w9(){if(Zb){const e=Array.from(Ba).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=uae(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)})}Zb=!1,Yb=!1,Ba.forEach(e=>e.complete()),Ba.clear()}function D9(){Ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zb=!0)})}function lae(){D9(),w9()}class _3{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?(Ba.add(this),Yb||(Yb=!0,Jn.read(D9),Jn.resolveKeyframes(w9))):(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 l=r.readValue(n,u);l!=null&&(t[0]=l)}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),Ba.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ba.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const C9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cae=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fae(e){const t=cae.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const dae=4;function E9(e,t,n=1){yu(n<=dae,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=fae(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return C9(a)?parseFloat(a):a}return d3(i)?E9(i,t,n+1):i}const S9=e=>t=>t.test(e),hae={test:e=>e==="auto",parse:e=>e},T9=[Bu,We,eu,Oo,Jie,Zie,hae],rT=e=>T9.find(S9(e));class A9 extends _3{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 l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),d3(f))){const d=E9(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!n9.has(r)||t.length!==2)return;const[i,o]=t,a=rT(i),u=rT(o);if(a!==u)if(eT(a)&&eT(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Koe(t[i])&&r.push(i);r.length&&oae(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=$u[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]=$u[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(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}}const iT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lu.test(e)||e==="0")&&!e.startsWith("url("));function pae(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 mae(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=iT(i,t),u=iT(o,t);return af(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:pae(e)||(n==="spring"||w3(n))&&r}const gae=e=>e!==null;function Vp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(gae),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const vae=40;class P9{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=Uo.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>vae?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&lae(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Uo.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!mae(t,r,i,o))if(a)this.options.duration=0;else{l&&l(Vp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},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 Jb=2e4;function _9(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Jb;)t+=n,r=e.next(t);return t>=Jb?1/0:t}const Np=(e,t,n)=>e+(t-e)*n;function c0(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 yae({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,l=2*n-u;i=c0(l,u,e+1/3),o=c0(l,u,e),a=c0(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ih(e,t){return n=>n>0?t:e}const f0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bae=[Hb,Ra,Ws],$ae=e=>bae.find(t=>t.test(e));function oT(e){const t=$ae(e);if(af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ws&&(n=yae(n)),n}const aT=(e,t)=>{const n=oT(e),r=oT(t);if(!n||!r)return Ih(e,t);const i={...n};return o=>(i.red=f0(n.red,r.red,o),i.green=f0(n.green,r.green,o),i.blue=f0(n.blue,r.blue,o),i.alpha=Np(n.alpha,r.alpha,o),Ra.transform(i))},xae=(e,t)=>n=>t(e(n)),jp=(...e)=>e.reduce(xae),Xb=new Set(["none","hidden"]);function wae(e,t){return Xb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Dae(e,t){return n=>Np(e,t,n)}function R3(e){return typeof e=="number"?Dae:typeof e=="string"?d3(e)?Ih:wn.test(e)?aT:Sae:Array.isArray(e)?R9:typeof e=="object"?wn.test(e)?aT:Cae:Ih}function R9(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>R3(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Cae(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=R3(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Eae(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]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[a]++}return r}const Sae=(e,t)=>{const n=Lu.createTransformer(t),r=kc(e),i=kc(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?Xb.has(e)&&!i.values.length||Xb.has(t)&&!r.values.length?wae(e,t):jp(R9(Eae(r,i),i.values),n):(af(!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.`),Ih(e,t))};function O9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Np(e,t,n):R3(e)(e,t)}const Tae=5;function M9(e,t,n){const r=Math.max(t-Tae,0);return i9(n-e(r),t-r)}const Bt={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},sT=.001;function Aae({duration:e=Bt.duration,bounce:t=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,o;af(e<=ro(Bt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Ga(Bt.minDamping,Bt.maxDamping,a),e=Ga(Bt.minDuration,Bt.maxDuration,zo(e)),a<1?(i=f=>{const d=f*a,h=d*e,p=d-n,g=Qb(f,a),v=Math.exp(-h);return sT-p/g*v},o=f=>{const h=f*a*e,p=h*n+n,g=Math.pow(a,2)*Math.pow(f,2)*e,v=Math.exp(-h),b=Qb(Math.pow(f,2),a);return(-i(f)+sT>0?-1:1)*((p-g)*v)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},o=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=_ae(i,o,u);if(e=ro(e),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const Pae=12;function _ae(e,t,n){let r=n;for(let i=1;i<Pae;i++)r=r-e(r)/t(r);return r}function Qb(e,t){return e*Math.sqrt(1-t*t)}const Rae=["duration","bounce"],Oae=["stiffness","damping","mass"];function uT(e,t){return t.some(n=>e[n]!==void 0)}function Mae(e){let t={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...e};if(!uT(e,Oae)&&uT(e,Rae))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ga(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bt.mass,stiffness:i,damping:o}}else{const n=Aae(e);t={...t,...n,mass:Bt.mass},t.isResolvedFromDuration=!0}return t}function F9(e=Bt.visualDuration,t=Bt.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:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Mae({...n,velocity:-zo(n.velocity||0)}),v=p||0,b=f/(2*Math.sqrt(l*d)),D=a-o,$=zo(Math.sqrt(l/d)),y=Math.abs(D)<5;r||(r=y?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=y?Bt.restDelta.granular:Bt.restDelta.default);let w;if(b<1){const E=Qb($,b);w=A=>{const M=Math.exp(-b*$*A);return a-M*((v+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>a-Math.exp(-$*E)*(D+(v+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return a-M*((v+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?ro(v):M9(w,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(_9(T),Jb),A=o9(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function lT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,v=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=a===void 0?D:a(D);$!==D&&(b=$-h);const y=S=>-b*Math.exp(-S/r),w=S=>$+y(S),T=S=>{const z=y(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=F9({keyframes:[p.value,v(p.value)],velocity:M9(w,S,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:d}))};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),p)}}}const Fae=uf(.42,0,1,1),kae=uf(0,0,.58,1),k9=uf(.42,0,.58,1),Iae=e=>Array.isArray(e)&&typeof e[0]!="number",cT={linear:Go,easeIn:Fae,easeInOut:k9,easeOut:kae,circIn:S3,circInOut:p9,circOut:joe,backIn:E3,backInOut:d9,backOut:f9,anticipate:h9},fT=e=>{if(D3(e)){yu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return uf(t,n,r,i)}else if(typeof e=="string")return yu(cT[e]!==void 0,`Invalid easing type '${e}'`),cT[e];return e};function Bae(e,t,n){const r=[],i=n||O9,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Go:t;u=jp(l,u)}r.push(u)}return r}function Lae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(yu(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=Bae(t,r,i),l=u.length,f=d=>{if(a&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=C3(e[h],e[h+1],d);return u[h](p)};return n?d=>f(Ga(e[0],e[o-1],d)):f}function Vae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=C3(0,t,r);e.push(Np(n,1,i))}}function Nae(e){const t=[0];return Vae(t,e.length-1),t}function jae(e,t){return e.map(n=>n*t)}function Kae(e,t){return e.map(()=>t||k9).splice(0,e.length-1)}function Bh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Iae(r)?r.map(fT):fT(r),o={done:!1,value:t[0]},a=jae(n&&n.length===t.length?n:Nae(t),e),u=Lae(a,t,{ease:Array.isArray(i)?i:Kae(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const Uae=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Jn.update(t,!0),stop:()=>zb(t),now:()=>Oh.isProcessing?Oh.timestamp:Uo.now()}},zae={decay:lT,inertia:lT,tween:Bh,keyframes:Bh,spring:F9},qae=e=>e/100;class O3 extends P9{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||_3,u=(l,f)=>this.onKeyframesResolved(l,f);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=w3(n)?n:zae[n]||Bh;let l,f;u!==Bh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&yu(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=jp(qae,O9(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});o==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=_9(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,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:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:g,repeatType:v,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/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 $=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(v==="reverse"?(j=1-j,b&&(j-=b/h)):v==="mirror"&&(T=a)),w=Ga(0,1,j)*h}const E=y?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!y&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Vp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?zo(t.calculatedDuration):0}get time(){return zo(this.currentTime)}set time(t){t=ro(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=zo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Uae,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 Wae=new Set(["opacity","clipPath","filter","transform"]);function Hae(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=s9(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Gae=x3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lh=10,Yae=2e4;function Zae(e){return w3(e.type)||e.type==="spring"||!a9(e.ease)}function Jae(e,t){const n=new O3({...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<Yae;)r=n.sample(o),i.push(r.value),o+=Lh;return{times:void 0,keyframes:i,duration:o-Lh,ease:"linear"}}const I9={anticipate:h9,backInOut:d9,circInOut:p9};function Xae(e){return e in I9}class dT extends P9{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new A9(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:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&kh()&&Xae(o)&&(o=I9[o]),Zae(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:v,...b}=this.options,D=Jae(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,o=D.ease,a="keyframes"}const d=Hae(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(X5(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Vp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,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 zo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ro(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 Go;const{animation:r}=n;X5(r,t)}return Go}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:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,v=new O3({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),b=ro(this.time);f.setWithVelocity(v.sample(b-Lh).value,v.sample(b).value,Lh)}const{onStop:l}=this.options;l&&l(),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:l,transformTemplate:f}=n.owner.getProps();return Gae()&&r&&Wae.has(r)&&!l&&!f&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const Qae={type:"spring",stiffness:500,damping:25,restSpeed:10},ese=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tse={type:"keyframes",duration:.8},nse={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rse=(e,{keyframes:t})=>t.length>2?tse:es.has(e)?e.startsWith("scale")?ese(t[1]):Qae:nse;function ise({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const ose=(e,t,n,r={},i,o)=>a=>{const u=t9(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ro(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};ise(u)||(d={...d,...rse(e,d)}),d.duration&&(d.duration=ro(d.duration)),d.repeatDelay&&(d.repeatDelay=ro(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const p=Vp(d.keyframes,u);if(p!==void 0)return Jn.update(()=>{d.onUpdate(p),d.onComplete()}),new koe([])}return!o&&dT.supports(d)?new dT(d):new O3(d)};function ase({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function B9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=l[h];if(g===void 0||d&&ase(d,h))continue;const v={delay:n,...t9(a||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=Ooe(e);if($){const y=window.MotionHandoffAnimation($,h,Jn);y!==null&&(v.startTime=y,b=!0)}}Roe(e,h),p.start(ose(h,p,g,e.shouldReduceMotion&&n9.has(h)?{type:!1}:v,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Jn.update(()=>{u&&Poe(e,u)})}),f}function e1(e,t,n={}){var r;const i=Fc(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(B9(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=o;return sse(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[f,d]=l==="beforeChildren"?[a,u]:[u,a];return f().then(()=>d())}else return Promise.all([a(),u(n.delay)])}function sse(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(use).forEach((f,d)=>{f.notify("AnimationStart",t),a.push(e1(f,t,{...o,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function use(e,t){return e.sortNodePosition(t)}function lse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>e1(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=e1(e,t,n);else{const i=typeof t=="function"?Fc(e,t,n.custom):t;r=Promise.all(B9(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function L9(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const cse=c3.length;function V9(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?V9(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cse;n++){const r=c3[n],i=e.props[r];(Oc(i)||i===!1)&&(t[r]=i)}return t}const fse=[...l3].reverse(),dse=l3.length;function hse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lse(e,n,r)))}function pse(e){let t=hse(e),n=hT(),r=!0;const i=l=>(f,d)=>{var h;const p=Fc(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:v,...b}=p;f={...f,...b,...v}}return f};function o(l){t=l(e)}function a(l){const{props:f}=e,d=V9(e.parent)||{},h=[],p=new Set;let g={},v=1/0;for(let D=0;D<dse;D++){const $=fse[D],y=n[$],w=f[$]!==void 0?f[$]:d[$],T=Oc(w),E=$===l?y.isActive:null;E===!1&&(v=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...g},!y.isActive&&E===null||!w&&!y.prevProp||Bp(w)||typeof w=="boolean")continue;const M=mse(y.prevProp,w);let S=M||$===l&&y.isActive&&!A&&T||D>v&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=y,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),y.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;qb(_)&&qb(H)?U=!L9(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):y.protectedKeys[k]=!0}y.prevProp=w,y.prevResolvedValues=O,y.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Fc(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const y=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=y??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=a(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=hT(),r=!0}}}function mse(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!L9(t,e):!1}function $a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hT(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}class Vu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class gse extends Vu{constructor(t){super(t),t.animationState||(t.animationState=pse(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bp(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 vse=0;class yse extends Vu{constructor(){super(...arguments),this.id=vse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const bse={animation:{Feature:gse},exit:{Feature:yse}},$se={y:!1};function xse(){return $se.y}const wse=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function pT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function N9(e){return{point:{x:e.pageX,y:e.pageY}}}const mT=()=>({min:0,max:0}),j9=()=>({x:mT(),y:mT()});function Dse({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Cse(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 Ese(e,t){return Dse(Cse(e.getBoundingClientRect(),t))}function Sse(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 K9(e,t){const n=Sse(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gT(e){return!(e.pointerType==="touch"||xse())}function Tse(e,t,n={}){const[r,i,o]=K9(e,n),a=u=>{if(!gT(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{gT(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function vT(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&&Jn.postRender(()=>o(t,N9(t)))}class Ase extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=Tse(t,(n,r)=>(vT(this.node,r,"Start"),i=>vT(this.node,i,"End"))))}unmount(){}}class Pse extends Vu{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=jp(pT(this.node.current,"focus",()=>this.onFocus()),pT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const U9=(e,t)=>t?e===t?!0:U9(e,t.parentElement):!1,_se=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rse(e){return _se.has(e.tagName)||e.tabIndex!==-1}const Ql=new WeakSet;function yT(e){return t=>{t.key==="Enter"&&e(t)}}function d0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ose=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yT(()=>{if(Ql.has(n))return;d0(n,"down");const i=yT(()=>{d0(n,"up")}),o=()=>d0(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 bT(e){return wse(e)&&!0}function Mse(e,t,n={}){const[r,i,o]=K9(e,n),a=u=>{const l=u.currentTarget;if(!bT(u)||Ql.has(l))return;Ql.add(l);const f=t(l,u),d=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!bT(g)||!Ql.has(l))&&(Ql.delete(l),typeof f=="function"&&f(g,{success:v}))},h=g=>{d(g,n.useGlobalTarget||U9(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Rse(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",f=>Ose(f,i),i)}),o}function $T(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Jn.postRender(()=>o(t,N9(t)))}class Fse extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=Mse(t,(n,r)=>($T(this.node,r,"Start"),(i,{success:o})=>$T(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const t1=new WeakMap,h0=new WeakMap,kse=e=>{const t=t1.get(e.target);t&&t(e)},Ise=e=>{e.forEach(kse)};function Bse({root:e,...t}){const n=e||document;h0.has(n)||h0.set(n,{});const r=h0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ise,{root:e,...t})),r[i]}function Lse(e,t,n){const r=Bse(t);return t1.set(e,n),r.observe(e),()=>{t1.delete(e),r.unobserve(e)}}const Vse={some:0,all:1};class Nse extends Vu{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:Vse[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Lse(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(jse(t,n))&&this.startObserver()}unmount(){}}function jse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Kse={inView:{Feature:Nse},tap:{Feature:Fse},focus:{Feature:Pse},hover:{Feature:Ase}},n1={current:null},z9={current:!1};function Use(){if(z9.current=!0,!!s3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n1.current=e.matches;e.addListener(t),t()}else n1.current=!1}const zse=[...T9,wn,Lu],qse=e=>zse.find(S9(e)),Wse=new WeakMap;function Hse(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Mn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&kp(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(Mn(o))e.addValue(r,Fh(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,Fh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const xT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gse{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=_3,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=Uo.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Jn.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=a;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Lp(n),this.isVariantNode=VF(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const v=p[g];l[g]!==void 0&&Mn(v)&&v.set(l[g],!1)}}mount(t){this.current=t,Wse.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)),z9.current||Use(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:n1.current,process.env.NODE_ENV!=="production"&&kp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),zb(this.notifyUpdate),zb(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=es.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Jn.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 bu){const n=bu[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):j9()}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<xT.length;r++){const i=xT[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=Hse(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=Fh(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"&&(C9(i)||m9(i))?i=parseFloat(i):!qse(i)&&Lu.test(n)&&(i=x9(t,n)),this.setBaseTarget(t,Mn(i)?i.get():i)),Mn(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=b3(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&&!Mn(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 r9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class q9 extends Gse{constructor(){super(...arguments),this.KeyframeResolver=A9}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;Mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Yse(e){return window.getComputedStyle(e)}class Zse extends q9{constructor(){super(...arguments),this.type="html",this.renderInstance=JF}readValueFromInstance(t,n){if(es.has(n)){const r=P3(n);return r&&r.default||0}else{const r=Yse(t),i=(zF(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ese(t,n)}build(t,n,r){p3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $3(t,n,r)}}class Jse extends q9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=j9,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&ZF(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(es.has(n)){const r=P3(n);return r&&r.default||0}return n=XF.has(n)?n:f3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return e9(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Jn.postRender(this.updateDimensions)}build(t,n,r){v3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){QF(t,n,r,i)}mount(t){this.isSVGTag=y3(t.tagName),super.mount(t)}}const Xse=(e,t)=>g3(e)?new Jse(t):new Zse(t,{allowProjection:e!==C.Fragment}),Qse={renderer:Xse,...bse,...Kse};function W9(e){return t=>typeof t===e}var eue=W9("function"),tue=e=>e===null,wT=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",DT=e=>!nue(e)&&!tue(e)&&(eue(e)||typeof e=="object"),nue=W9("undefined");function rue(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Fn(e[r],t[r]))return!1;return!0}function iue(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 oue(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(!Fn(n[1],t.get(n[0])))return!1;return!0}function aue(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 Fn(e,t){if(e===t)return!0;if(e&&DT(e)&&t&&DT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return rue(e,t);if(e instanceof Map&&t instanceof Map)return oue(e,t);if(e instanceof Set&&t instanceof Set)return aue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return iue(e,t);if(wT(e)&&wT(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)&&!Fn(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var sue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],uue=["bigint","boolean","null","number","string","symbol","undefined"];function Kp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(lue(t))return t}function Zr(e){return t=>Kp(t)===e}function lue(e){return sue.includes(e)}function Nu(e){return t=>typeof t===e}function cue(e){return uue.includes(e)}var fue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Re(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(Re.array(e))return"Array";if(Re.plainFunction(e))return"Function";const t=Kp(e);return t||"Object"}Re.array=Array.isArray;Re.arrayOf=(e,t)=>!Re.array(e)&&!Re.function(t)?!1:e.every(n=>t(n));Re.asyncGeneratorFunction=e=>Kp(e)==="AsyncGeneratorFunction";Re.asyncFunction=Zr("AsyncFunction");Re.bigint=Nu("bigint");Re.boolean=e=>e===!0||e===!1;Re.date=Zr("Date");Re.defined=e=>!Re.undefined(e);Re.domElement=e=>Re.object(e)&&!Re.plainObject(e)&&e.nodeType===1&&Re.string(e.nodeName)&&fue.every(t=>t in e);Re.empty=e=>Re.string(e)&&e.length===0||Re.array(e)&&e.length===0||Re.object(e)&&!Re.map(e)&&!Re.set(e)&&Object.keys(e).length===0||Re.set(e)&&e.size===0||Re.map(e)&&e.size===0;Re.error=Zr("Error");Re.function=Nu("function");Re.generator=e=>Re.iterable(e)&&Re.function(e.next)&&Re.function(e.throw);Re.generatorFunction=Zr("GeneratorFunction");Re.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Re.iterable=e=>!Re.nullOrUndefined(e)&&Re.function(e[Symbol.iterator]);Re.map=Zr("Map");Re.nan=e=>Number.isNaN(e);Re.null=e=>e===null;Re.nullOrUndefined=e=>Re.null(e)||Re.undefined(e);Re.number=e=>Nu("number")(e)&&!Re.nan(e);Re.numericString=e=>Re.string(e)&&e.length>0&&!Number.isNaN(Number(e));Re.object=e=>!Re.nullOrUndefined(e)&&(Re.function(e)||typeof e=="object");Re.oneOf=(e,t)=>Re.array(e)?e.indexOf(t)>-1:!1;Re.plainFunction=Zr("Function");Re.plainObject=e=>{if(Kp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Re.primitive=e=>Re.null(e)||cue(typeof e);Re.promise=Zr("Promise");Re.propertyOf=(e,t,n)=>{if(!Re.object(e)||!t)return!1;const r=e[t];return Re.function(n)?n(r):Re.defined(r)};Re.regexp=Zr("RegExp");Re.set=Zr("Set");Re.string=Nu("string");Re.symbol=Nu("symbol");Re.undefined=Nu("undefined");Re.weakMap=Zr("WeakMap");Re.weakSet=Zr("WeakSet");var Me=Re;function due(...e){return e.every(t=>Me.string(t)||Me.array(t)||Me.plainObject(t))}function hue(e,t,n){return H9(e,t)?[e,t].every(Me.array)?!e.some(AT(n))&&t.some(AT(n)):[e,t].every(Me.plainObject)?!Object.entries(e).some(TT(n))&&Object.entries(t).some(TT(n)):t===n:!1}function CT(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=wi(e,i),l=wi(t,i);let f=[u,l].every(Me.number)&&(a==="increased"?u<l:u>l);return Me.undefined(r)||(f=f&&l===r),Me.undefined(o)||(f=f&&u===o),f}function ET(e,t,n){const{key:r,type:i,value:o}=n,a=wi(e,r),u=wi(t,r),l=i==="added"?a:u,f=i==="added"?u:a;if(!Me.nullOrUndefined(o)){if(Me.defined(l)){if(Me.array(l)||Me.plainObject(l))return hue(l,f,o)}else return Fn(f,o);return!1}return[a,u].every(Me.array)?!f.every(M3(l)):[a,u].every(Me.plainObject)?pue(Object.keys(l),Object.keys(f)):![a,u].every(d=>Me.primitive(d)&&Me.defined(d))&&(i==="added"?!Me.defined(a)&&Me.defined(u):Me.defined(a)&&!Me.defined(u))}function ST(e,t,{key:n}={}){let r=wi(e,n),i=wi(t,n);if(!H9(r,i))throw new TypeError("Inputs have different types");if(!due(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Me.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function TT(e){return([t,n])=>Me.array(e)?Fn(e,n)||e.some(r=>Fn(r,n)||Me.array(n)&&M3(n)(r)):Me.plainObject(e)&&e[t]?!!e[t]&&Fn(e[t],n):Fn(e,n)}function pue(e,t){return t.some(n=>!e.includes(n))}function AT(e){return t=>Me.array(e)?e.some(n=>Fn(n,t)||Me.array(t)&&M3(t)(n)):Fn(e,t)}function Il(e,t){return Me.array(e)?e.some(n=>Fn(n,t)):Fn(e,t)}function M3(e){return t=>e.some(n=>Fn(n,t))}function H9(...e){return e.every(Me.array)||e.every(Me.number)||e.every(Me.plainObject)||e.every(Me.string)}function wi(e,t){return Me.plainObject(e)||Me.array(e)?Me.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Me.number(t)?e[t]:e:e}function Vh(e,t){if([e,t].some(Me.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(d=>Me.plainObject(d)||Me.array(d)))throw new Error("Expected plain objects or array");return{added:(d,h)=>{try{return ET(e,t,{key:d,type:"added",value:h})}catch{return!1}},changed:(d,h,p)=>{try{const g=wi(e,d),v=wi(t,d),b=Me.defined(h),D=Me.defined(p);if(b||D){const $=D?Il(p,g):!Il(h,g),y=Il(h,v);return $&&y}return[g,v].every(Me.array)||[g,v].every(Me.plainObject)?!Fn(g,v):g!==v}catch{return!1}},changedFrom:(d,h,p)=>{if(!Me.defined(d))return!1;try{const g=wi(e,d),v=wi(t,d),b=Me.defined(p);return Il(h,g)&&(b?Il(p,v):!b)}catch{return!1}},decreased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return CT(e,t,{key:d,actual:h,previous:p,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[h,p]=ST(e,t,{key:d});return!!h.length&&!p.length}catch{return!1}},filled:d=>{try{const[h,p]=ST(e,t,{key:d});return!h.length&&!!p.length}catch{return!1}},increased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return CT(e,t,{key:d,actual:h,previous:p,type:"increased"})}catch{return!1}},removed:(d,h)=>{try{return ET(e,t,{key:d,type:"removed",value:h})}catch{return!1}}}}var p0,PT;function mue(){if(PT)return p0;PT=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;p0={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(f,d,h,p){h=h||{},typeof h=="function"&&(p=h,h={}),typeof p!="function"&&(p=a);var g=r(),v=f[u],b=h.ease||o,D=isNaN(h.duration)?350:+h.duration,$=!1;return v===d?p(e,f[u]):requestAnimationFrame(w),y;function y(){$=!0}function w(T){if($)return p(t,f[u]);var E=r(),A=n(1,(E-g)/D),M=b(A);f[u]=M*(d-v)+v,A<1?requestAnimationFrame(w):requestAnimationFrame(function(){p(null,f[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return p0}var gue=mue();const vue=_i(gue);var Yd={exports:{}},yue=Yd.exports,_T;function bue(){return _T||(_T=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(yue,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})}(Yd)),Yd.exports}var $ue=bue();const G9=_i($ue);var m0,RT;function xue(){if(RT)return m0;RT=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,m0=n,m0}var wue=xue();const OT=_i(wue);var g0,MT;function Due(){if(MT)return g0;MT=1;var e=function(y){return t(y)&&!n(y)};function t($){return!!$&&typeof $=="object"}function n($){var y=Object.prototype.toString.call($);return y==="[object RegExp]"||y==="[object Date]"||o($)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o($){return $.$$typeof===i}function a($){return Array.isArray($)?[]:{}}function u($,y){return y.clone!==!1&&y.isMergeableObject($)?b(a($),$,y):$}function l($,y,w){return $.concat(y).map(function(T){return u(T,w)})}function f($,y){if(!y.customMerge)return b;var w=y.customMerge($);return typeof w=="function"?w:b}function d($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(y){return Object.propertyIsEnumerable.call($,y)}):[]}function h($){return Object.keys($).concat(d($))}function p($,y){try{return y in $}catch{return!1}}function g($,y){return p($,y)&&!(Object.hasOwnProperty.call($,y)&&Object.propertyIsEnumerable.call($,y))}function v($,y,w){var T={};return w.isMergeableObject($)&&h($).forEach(function(E){T[E]=u($[E],w)}),h(y).forEach(function(E){g($,E)||(p($,E)&&w.isMergeableObject(y[E])?T[E]=f(E,w)($[E],y[E],w):T[E]=u(y[E],w))}),T}function b($,y,w){w=w||{},w.arrayMerge=w.arrayMerge||l,w.isMergeableObject=w.isMergeableObject||e,w.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(y),E=Array.isArray($),A=T===E;return A?T?w.arrayMerge($,y,w):v($,y,w):u(y,w)}b.all=function(y,w){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(T,E){return b(T,E,w)},{})};var D=b;return g0=D,g0}var Cue=Due();const zr=_i(Cue);var Ed={exports:{}},Sd={exports:{}},ht={};/** @license React v16.13.1
|
|
146
|
-
* react-is.production.min.js
|
|
147
|
-
*
|
|
148
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the MIT license found in the
|
|
151
|
-
* LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/var FT;function Eue(){if(FT)return ht;FT=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,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case l:case f:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case d:case v:case g:case a:return E;default:return A}}case n:return A}}}function T(E){return w(E)===f}return ht.AsyncMode=l,ht.ConcurrentMode=f,ht.ContextConsumer=u,ht.ContextProvider=a,ht.Element=t,ht.ForwardRef=d,ht.Fragment=r,ht.Lazy=v,ht.Memo=g,ht.Portal=n,ht.Profiler=o,ht.StrictMode=i,ht.Suspense=h,ht.isAsyncMode=function(E){return T(E)||w(E)===l},ht.isConcurrentMode=T,ht.isContextConsumer=function(E){return w(E)===u},ht.isContextProvider=function(E){return w(E)===a},ht.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},ht.isForwardRef=function(E){return w(E)===d},ht.isFragment=function(E){return w(E)===r},ht.isLazy=function(E){return w(E)===v},ht.isMemo=function(E){return w(E)===g},ht.isPortal=function(E){return w(E)===n},ht.isProfiler=function(E){return w(E)===o},ht.isStrictMode=function(E){return w(E)===i},ht.isSuspense=function(E){return w(E)===h},ht.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===f||E===o||E===i||E===h||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===d||E.$$typeof===D||E.$$typeof===$||E.$$typeof===y||E.$$typeof===b)},ht.typeOf=w,ht}var pt={};/** @license React v16.13.1
|
|
153
|
-
* react-is.development.js
|
|
154
|
-
*
|
|
155
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the MIT license found in the
|
|
158
|
-
* LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/var kT;function Sue(){return kT||(kT=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,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function w(ue){return typeof ue=="string"||typeof ue=="function"||ue===r||ue===f||ue===o||ue===i||ue===h||ue===p||typeof ue=="object"&&ue!==null&&(ue.$$typeof===v||ue.$$typeof===g||ue.$$typeof===a||ue.$$typeof===u||ue.$$typeof===d||ue.$$typeof===D||ue.$$typeof===$||ue.$$typeof===y||ue.$$typeof===b)}function T(ue){if(typeof ue=="object"&&ue!==null){var Le=ue.$$typeof;switch(Le){case t:var nt=ue.type;switch(nt){case l:case f:case r:case o:case i:case h:return nt;default:var Nt=nt&&nt.$$typeof;switch(Nt){case u:case d:case v:case g:case a:return Nt;default:return Le}}case n:return Le}}}var E=l,A=f,M=u,S=a,z=t,j=d,O=r,Z=v,R=g,V=n,W=o,L=i,k=h,_=!1;function H(ue){return _||(_=!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(ue)||T(ue)===l}function U(ue){return T(ue)===f}function N(ue){return T(ue)===u}function ne(ue){return T(ue)===a}function ie(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===t}function ce(ue){return T(ue)===d}function xe(ue){return T(ue)===r}function De(ue){return T(ue)===v}function Ee(ue){return T(ue)===g}function J(ue){return T(ue)===n}function ve(ue){return T(ue)===o}function we(ue){return T(ue)===i}function me(ue){return T(ue)===h}pt.AsyncMode=E,pt.ConcurrentMode=A,pt.ContextConsumer=M,pt.ContextProvider=S,pt.Element=z,pt.ForwardRef=j,pt.Fragment=O,pt.Lazy=Z,pt.Memo=R,pt.Portal=V,pt.Profiler=W,pt.StrictMode=L,pt.Suspense=k,pt.isAsyncMode=H,pt.isConcurrentMode=U,pt.isContextConsumer=N,pt.isContextProvider=ne,pt.isElement=ie,pt.isForwardRef=ce,pt.isFragment=xe,pt.isLazy=De,pt.isMemo=Ee,pt.isPortal=J,pt.isProfiler=ve,pt.isStrictMode=we,pt.isSuspense=me,pt.isValidElementType=w,pt.typeOf=T}()),pt}var IT;function Y9(){return IT||(IT=1,process.env.NODE_ENV==="production"?Sd.exports=Eue():Sd.exports=Sue()),Sd.exports}/*
|
|
160
|
-
object-assign
|
|
161
|
-
(c) Sindre Sorhus
|
|
162
|
-
@license MIT
|
|
163
|
-
*/var v0,BT;function Tue(){if(BT)return v0;BT=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 l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return v0=i()?Object.assign:function(o,a){for(var u,l=r(o),f,d=1;d<arguments.length;d++){u=Object(arguments[d]);for(var h in u)t.call(u,h)&&(l[h]=u[h]);if(e){f=e(u);for(var p=0;p<f.length;p++)n.call(u,f[p])&&(l[f[p]]=u[f[p]])}}return l},v0}var y0,LT;function F3(){if(LT)return y0;LT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y0=e,y0}var b0,VT;function Z9(){return VT||(VT=1,b0=Function.call.bind(Object.prototype.hasOwnProperty)),b0}var $0,NT;function Aue(){if(NT)return $0;NT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=F3(),n={},r=Z9();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,l,f){if(process.env.NODE_ENV!=="production"){for(var d in o)if(r(o,d)){var h;try{if(typeof o[d]!="function"){var p=Error((l||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=o[d](a,d,l,u,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+d+"` 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=f?f():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},$0=i,$0}var x0,jT;function Pue(){if(jT)return x0;jT=1;var e=Y9(),t=Tue(),n=F3(),r=Z9(),i=Aue(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return x0=function(u,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(U){var N=U&&(f&&U[f]||U[d]);if(typeof N=="function")return N}var p="<<anonymous>>",g={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:y(),arrayOf:w,element:T(),elementType:E(),instanceOf:A,node:j(),objectOf:S,oneOf:M,oneOfType:z,shape:Z,exact:R};function v(U,N){return U===N?U!==0||1/U===1/N:U!==U&&N!==N}function b(U,N){this.message=U,this.data=N&&typeof N=="object"?N:{},this.stack=""}b.prototype=Error.prototype;function D(U){if(process.env.NODE_ENV!=="production")var N={},ne=0;function ie(xe,De,Ee,J,ve,we,me){if(J=J||p,we=we||Ee,me!==n){if(l){var ue=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 ue.name="Invariant Violation",ue}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=J+":"+Ee;!N[Le]&&ne<3&&(o("You are manually calling a React.PropTypes validation function for the `"+we+"` prop on `"+J+"`. 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[Le]=!0,ne++)}}return De[Ee]==null?xe?De[Ee]===null?new b("The "+ve+" `"+we+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new b("The "+ve+" `"+we+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:U(De,Ee,J,ve,we)}var ce=ie.bind(null,!1);return ce.isRequired=ie.bind(null,!0),ce}function $(U){function N(ne,ie,ce,xe,De,Ee){var J=ne[ie],ve=L(J);if(ve!==U){var we=k(J);return new b("Invalid "+xe+" `"+De+"` of type "+("`"+we+"` supplied to `"+ce+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return D(N)}function y(){return D(a)}function w(U){function N(ne,ie,ce,xe,De){if(typeof U!="function")return new b("Property `"+De+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var Ee=ne[ie];if(!Array.isArray(Ee)){var J=L(Ee);return new b("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an array."))}for(var ve=0;ve<Ee.length;ve++){var we=U(Ee,ve,ce,xe,De+"["+ve+"]",n);if(we instanceof Error)return we}return null}return D(N)}function T(){function U(N,ne,ie,ce,xe){var De=N[ne];if(!u(De)){var Ee=L(De);return new b("Invalid "+ce+" `"+xe+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return D(U)}function E(){function U(N,ne,ie,ce,xe){var De=N[ne];if(!e.isValidElementType(De)){var Ee=L(De);return new b("Invalid "+ce+" `"+xe+"` of type "+("`"+Ee+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return D(U)}function A(U){function N(ne,ie,ce,xe,De){if(!(ne[ie]instanceof U)){var Ee=U.name||p,J=H(ne[ie]);return new b("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected ")+("instance of `"+Ee+"`."))}return null}return D(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,ce,xe,De){for(var Ee=ne[ie],J=0;J<U.length;J++)if(v(Ee,U[J]))return null;var ve=JSON.stringify(U,function(me,ue){var Le=k(ue);return Le==="symbol"?String(ue):ue});return new b("Invalid "+xe+" `"+De+"` of value `"+String(Ee)+"` "+("supplied to `"+ce+"`, expected one of "+ve+"."))}return D(N)}function S(U){function N(ne,ie,ce,xe,De){if(typeof U!="function")return new b("Property `"+De+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var Ee=ne[ie],J=L(Ee);if(J!=="object")return new b("Invalid "+xe+" `"+De+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an object."));for(var ve in Ee)if(r(Ee,ve)){var we=U(Ee,ve,ce,xe,De+"."+ve,n);if(we instanceof Error)return we}return null}return D(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 "+_(ne)+" at index "+N+"."),a}function ie(ce,xe,De,Ee,J){for(var ve=[],we=0;we<U.length;we++){var me=U[we],ue=me(ce,xe,De,Ee,J,n);if(ue==null)return null;ue.data&&r(ue.data,"expectedType")&&ve.push(ue.data.expectedType)}var Le=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new b("Invalid "+Ee+" `"+J+"` supplied to "+("`"+De+"`"+Le+"."))}return D(ie)}function j(){function U(N,ne,ie,ce,xe){return V(N[ne])?null:new b("Invalid "+ce+" `"+xe+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return D(U)}function O(U,N,ne,ie,ce){return new b((U||"React class")+": "+N+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Z(U){function N(ne,ie,ce,xe,De){var Ee=ne[ie],J=L(Ee);if(J!=="object")return new b("Invalid "+xe+" `"+De+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ve in U){var we=U[ve];if(typeof we!="function")return O(ce,xe,De,ve,k(we));var me=we(Ee,ve,ce,xe,De+"."+ve,n);if(me)return me}return null}return D(N)}function R(U){function N(ne,ie,ce,xe,De){var Ee=ne[ie],J=L(Ee);if(J!=="object")return new b("Invalid "+xe+" `"+De+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));var ve=t({},ne[ie],U);for(var we in ve){var me=U[we];if(r(U,we)&&typeof me!="function")return O(ce,xe,De,we,k(me));if(!me)return new b("Invalid "+xe+" `"+De+"` key `"+we+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
|
|
164
|
-
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var ue=me(Ee,we,ce,xe,De+"."+we,n);if(ue)return ue}return null}return D(N)}function V(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(V);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(!V(ie.value))return!1}else for(;!(ie=ne.next()).done;){var ce=ie.value;if(ce&&!V(ce[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 L(U){var N=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":W(N,U)?"symbol":N}function k(U){if(typeof U>"u"||U===null)return""+U;var N=L(U);if(N==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return N}function _(U){var N=k(U);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(U){return!U.constructor||!U.constructor.name?p:U.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},x0}var w0,KT;function _ue(){if(KT)return w0;KT=1;var e=F3();function t(){}function n(){}return n.resetWarningCache=t,w0=function(){function r(a,u,l,f,d,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}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},w0}var UT;function Rue(){if(UT)return Ed.exports;if(UT=1,process.env.NODE_ENV!=="production"){var e=Y9(),t=!0;Ed.exports=Pue()(e.isElement,t)}else Ed.exports=_ue()();return Ed.exports}var Oue=Rue();const Te=_i(Oue);/**!
|
|
165
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
166
|
-
* @version 1.16.1
|
|
167
|
-
* @license
|
|
168
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
169
|
-
*
|
|
170
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
171
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
172
|
-
* in the Software without restriction, including without limitation the rights
|
|
173
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
174
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
175
|
-
* furnished to do so, subject to the following conditions:
|
|
176
|
-
*
|
|
177
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
178
|
-
* copies or substantial portions of the Software.
|
|
179
|
-
*
|
|
180
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
181
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
182
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
183
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
184
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
185
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
186
|
-
* SOFTWARE.
|
|
187
|
-
*/var lf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Mue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(lf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Fue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function kue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Mue))}}var Iue=lf&&window.Promise,Bue=Iue?Fue:kue;function J9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function ts(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function k3(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function cf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ts(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:cf(k3(e))}function X9(e){return e&&e.referenceNode?e.referenceNode:e}var zT=lf&&!!(window.MSInputMethodContext&&document.documentMode),qT=lf&&/MSIE 10/.test(navigator.userAgent);function ju(e){return e===11?zT:e===10?qT:zT||qT}function xu(e){if(!e)return document.documentElement;for(var t=ju(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&&ts(n,"position")==="static"?xu(n):n}function Lue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||xu(e.firstElementChild)===e}function r1(e){return e.parentNode!==null?r1(e.parentNode):e}function Nh(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 Lue(a)?a:xu(a);var u=r1(e);return u.host?Nh(u.host,t):Nh(e,r1(t).host)}function wu(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 Vue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=wu(t,"top"),i=wu(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 WT(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 HT(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ju(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Q9(e){var t=e.body,n=e.documentElement,r=ju(10)&&getComputedStyle(n);return{height:HT("Height",t,n,r),width:HT("Width",t,n,r)}}var Nue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jue=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}}(),Du=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Sr=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 Yo(e){return Sr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function i1(e){var t={};try{if(ju(10)){t=e.getBoundingClientRect();var n=wu(e,"top"),r=wu(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"?Q9(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,f=e.offsetHeight-u;if(l||f){var d=ts(e);l-=WT(d,"x"),f-=WT(d,"y"),i.width-=l,i.height-=f}return Yo(i)}function I3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=ju(10),i=t.nodeName==="HTML",o=i1(e),a=i1(t),u=cf(e),l=ts(t),f=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=Yo({top:o.top-a.top-f,left:o.left-a.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);h.top-=f-p,h.bottom-=f-p,h.left-=d-g,h.right-=d-g,h.marginTop=p,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Vue(h,t)),h}function Kue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=I3(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:wu(n),u=t?0:wu(n,"left"),l={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return Yo(l)}function e8(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(ts(e,"position")==="fixed")return!0;var n=k3(e);return n?e8(n):!1}function t8(e){if(!e||!e.parentElement||ju())return document.documentElement;for(var t=e.parentElement;t&&ts(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function B3(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?t8(e):Nh(e,X9(t));if(r==="viewport")o=Kue(a,i);else{var u=void 0;r==="scrollParent"?(u=cf(k3(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=I3(u,a,i);if(u.nodeName==="HTML"&&!e8(a)){var f=Q9(e.ownerDocument),d=f.height,h=f.width;o.top+=l.top-l.marginTop,o.bottom=d+l.top,o.left+=l.left-l.marginLeft,o.right=h+l.left}else o=l}n=n||0;var p=typeof n=="number";return o.left+=p?n:n.left||0,o.top+=p?n:n.top||0,o.right-=p?n:n.right||0,o.bottom-=p?n:n.bottom||0,o}function Uue(e){var t=e.width,n=e.height;return t*n}function n8(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=B3(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}},l=Object.keys(u).map(function(p){return Sr({key:p},u[p],{area:Uue(u[p])})}).sort(function(p,g){return g.area-p.area}),f=l.filter(function(p){var g=p.width,v=p.height;return g>=n.clientWidth&&v>=n.clientHeight}),d=f.length>0?f[0].key:l[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function r8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?t8(t):Nh(t,X9(n));return I3(n,i,r)}function i8(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 jh(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 o8(e,t,n){n=n.split("-")[0];var r=i8(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",l=o?"height":"width",f=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[f]:i[u]=t[jh(u)],i}function ff(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function zue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=ff(e,function(i){return i[t]===n});return e.indexOf(r)}function a8(e,t,n){var r=n===void 0?e:e.slice(0,zue(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&&J9(o)&&(t.offsets.popper=Yo(t.offsets.popper),t.offsets.reference=Yo(t.offsets.reference),t=o(t,i))}),t}function que(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=r8(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=n8(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=o8(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=a8(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function s8(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function L3(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 Wue(){return this.state.isDestroyed=!0,s8(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[L3("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function u8(e){var t=e.ownerDocument;return t?t.defaultView:window}function l8(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||l8(cf(o.parentNode),t,n,r),r.push(o)}function Hue(e,t,n,r){n.updateBound=r,u8(e).addEventListener("resize",n.updateBound,{passive:!0});var i=cf(e);return l8(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Gue(){this.state.eventsEnabled||(this.state=Hue(this.reference,this.options,this.state,this.scheduleUpdate))}function Yue(e,t){return u8(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 Zue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Yue(this.reference,this.state))}function V3(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function o1(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&V3(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Jue(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Xue(e){return o1(e.instance.popper,e.styles),Jue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&o1(e.arrowElement,e.arrowStyles),e}function Que(e,t,n,r,i){var o=r8(i,t,e,n.positionFixed),a=n8(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),o1(t,{position:n.positionFixed?"fixed":"absolute"}),n}function ele(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function($){return $},l=o(i.width),f=o(r.width),d=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,p=l%2===f%2,g=l%2===1&&f%2===1,v=t?d||h||p?o:a:u,b=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:b(r.top),bottom:b(r.bottom),right:v(r.right)}}var tle=lf&&/Firefox/i.test(navigator.userAgent);function nle(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=ff(e.instance.modifiers,function(w){return w.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=xu(e.instance.popper),l=i1(u),f={position:i.position},d=ele(e,window.devicePixelRatio<2||!tle),h=n==="bottom"?"top":"bottom",p=r==="right"?"left":"right",g=L3("transform"),v=void 0,b=void 0;if(h==="bottom"?u.nodeName==="HTML"?b=-u.clientHeight+d.bottom:b=-l.height+d.bottom:b=d.top,p==="right"?u.nodeName==="HTML"?v=-u.clientWidth+d.right:v=-l.width+d.right:v=d.left,a&&g)f[g]="translate3d("+v+"px, "+b+"px, 0)",f[h]=0,f[p]=0,f.willChange="transform";else{var D=h==="bottom"?-1:1,$=p==="right"?-1:1;f[h]=b*D,f[p]=v*$,f.willChange=h+", "+p}var y={"x-placement":e.placement};return e.attributes=Sr({},y,e.attributes),e.styles=Sr({},f,e.styles),e.arrowStyles=Sr({},e.offsets.arrow,e.arrowStyles),e}function c8(e,t,n){var r=ff(e,function(u){var l=u.name;return l===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 rle(e,t){var n;if(!c8(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,l=["left","right"].indexOf(i)!==-1,f=l?"height":"width",d=l?"Top":"Left",h=d.toLowerCase(),p=l?"left":"top",g=l?"bottom":"right",v=i8(r)[f];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=Yo(e.offsets.popper);var b=u[h]+u[f]/2-v/2,D=ts(e.instance.popper),$=parseFloat(D["margin"+d]),y=parseFloat(D["border"+d+"Width"]),w=b-e.offsets.popper[h]-$-y;return w=Math.max(Math.min(a[f]-v,w),0),e.arrowElement=r,e.offsets.arrow=(n={},Du(n,h,Math.round(w)),Du(n,p,""),n),e}function ile(e){return e==="end"?"start":e==="start"?"end":e}var f8=["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"],D0=f8.slice(3);function GT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=D0.indexOf(e),r=D0.slice(n+1).concat(D0.slice(0,n));return t?r.reverse():r}var C0={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function ole(e,t){if(s8(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=B3(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=jh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case C0.FLIP:a=[r,i];break;case C0.CLOCKWISE:a=GT(r);break;case C0.COUNTERCLOCKWISE:a=GT(r,!0);break;default:a=t.behavior}return a.forEach(function(u,l){if(r!==u||a.length===l+1)return e;r=e.placement.split("-")[0],i=jh(r);var f=e.offsets.popper,d=e.offsets.reference,h=Math.floor,p=r==="left"&&h(f.right)>h(d.left)||r==="right"&&h(f.left)<h(d.right)||r==="top"&&h(f.bottom)>h(d.top)||r==="bottom"&&h(f.top)<h(d.bottom),g=h(f.left)<h(n.left),v=h(f.right)>h(n.right),b=h(f.top)<h(n.top),D=h(f.bottom)>h(n.bottom),$=r==="left"&&g||r==="right"&&v||r==="top"&&b||r==="bottom"&&D,y=["top","bottom"].indexOf(r)!==-1,w=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&b||!y&&o==="end"&&D),T=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&D||!y&&o==="end"&&b),E=w||T;(p||$||E)&&(e.flipped=!0,(p||$)&&(r=a[l+1]),E&&(o=ile(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Sr({},e.offsets.popper,o8(e.instance.popper,e.offsets.reference,e.placement)),e=a8(e.instance.modifiers,e,"flip"))}),e}function ale(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",l=a?"left":"top",f=a?"width":"height";return n[u]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[f]),n[l]>o(r[u])&&(e.offsets.popper[l]=o(r[u])),e}function sle(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 l=Yo(u);return l[t]/100*o}else if(a==="vh"||a==="vw"){var f=void 0;return a==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*o}else return o}function ule(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(d){return d.trim()}),u=a.indexOf(ff(a,function(d){return d.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,f=u!==-1?[a.slice(0,u).concat([a[u].split(l)[0]]),[a[u].split(l)[1]].concat(a.slice(u+1))]:[a];return f=f.map(function(d,h){var p=(h===1?!o:o)?"height":"width",g=!1;return d.reduce(function(v,b){return v[v.length-1]===""&&["+","-"].indexOf(b)!==-1?(v[v.length-1]=b,g=!0,v):g?(v[v.length-1]+=b,g=!1,v):v.concat(b)},[]).map(function(v){return sle(v,p,t,n)})}),f.forEach(function(d,h){d.forEach(function(p,g){V3(p)&&(i[h]+=p*(d[g-1]==="-"?-1:1))})}),i}function lle(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],l=void 0;return V3(+n)?l=[+n,0]:l=ule(n,o,a,u),u==="left"?(o.top+=l[0],o.left-=l[1]):u==="right"?(o.top+=l[0],o.left+=l[1]):u==="top"?(o.left+=l[0],o.top-=l[1]):u==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function cle(e,t){var n=t.boundariesElement||xu(e.instance.popper);e.instance.reference===n&&(n=xu(n));var r=L3("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=B3(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=l;var f=t.priority,d=e.offsets.popper,h={primary:function(g){var v=d[g];return d[g]<l[g]&&!t.escapeWithReference&&(v=Math.max(d[g],l[g])),Du({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",b=d[v];return d[g]>l[g]&&!t.escapeWithReference&&(b=Math.min(d[v],l[g]-(g==="right"?d.width:d.height))),Du({},v,b)}};return f.forEach(function(p){var g=["left","top"].indexOf(p)!==-1?"primary":"secondary";d=Sr({},d,h[g](p))}),e.offsets.popper=d,e}function fle(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,l=u?"left":"top",f=u?"width":"height",d={start:Du({},l,o[l]),end:Du({},l,o[l]+o[f]-a[f])};e.offsets.popper=Sr({},a,d[r])}return e}function dle(e){if(!c8(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ff(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 hle(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=jh(t),e.offsets.popper=Yo(i),e}var ple={shift:{order:100,enabled:!0,fn:fle},offset:{order:200,enabled:!0,fn:lle,offset:0},preventOverflow:{order:300,enabled:!0,fn:cle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ale},arrow:{order:500,enabled:!0,fn:rle,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ole,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:hle},hide:{order:800,enabled:!0,fn:dle},computeStyle:{order:850,enabled:!0,fn:nle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Xue,onLoad:Que,gpuAcceleration:void 0}},mle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ple},Ic=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Nue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Bue(this.update.bind(this)),this.options=Sr({},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(Sr({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=Sr({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Sr({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&J9(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 jue(e,[{key:"update",value:function(){return que.call(this)}},{key:"destroy",value:function(){return Wue.call(this)}},{key:"enableEventListeners",value:function(){return Gue.call(this)}},{key:"disableEventListeners",value:function(){return Zue.call(this)}}]),e}();Ic.Utils=(typeof window<"u"?window:global).PopperUtils;Ic.placements=f8;Ic.Defaults=mle;var gle=["innerHTML","ownerDocument","style","attributes","nodeValue"],vle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],yle=["bigint","boolean","null","number","string","symbol","undefined"];function Up(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ble(t))return t}function Jr(e){return function(t){return Up(t)===e}}function ble(e){return vle.includes(e)}function Ku(e){return function(t){return typeof t===e}}function $le(e){return yle.includes(e)}function le(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(le.array(e))return"Array";if(le.plainFunction(e))return"Function";var t=Up(e);return t||"Object"}le.array=Array.isArray;le.arrayOf=function(e,t){return!le.array(e)&&!le.function(t)?!1:e.every(function(n){return t(n)})};le.asyncGeneratorFunction=function(e){return Up(e)==="AsyncGeneratorFunction"};le.asyncFunction=Jr("AsyncFunction");le.bigint=Ku("bigint");le.boolean=function(e){return e===!0||e===!1};le.date=Jr("Date");le.defined=function(e){return!le.undefined(e)};le.domElement=function(e){return le.object(e)&&!le.plainObject(e)&&e.nodeType===1&&le.string(e.nodeName)&&gle.every(function(t){return t in e})};le.empty=function(e){return le.string(e)&&e.length===0||le.array(e)&&e.length===0||le.object(e)&&!le.map(e)&&!le.set(e)&&Object.keys(e).length===0||le.set(e)&&e.size===0||le.map(e)&&e.size===0};le.error=Jr("Error");le.function=Ku("function");le.generator=function(e){return le.iterable(e)&&le.function(e.next)&&le.function(e.throw)};le.generatorFunction=Jr("GeneratorFunction");le.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};le.iterable=function(e){return!le.nullOrUndefined(e)&&le.function(e[Symbol.iterator])};le.map=Jr("Map");le.nan=function(e){return Number.isNaN(e)};le.null=function(e){return e===null};le.nullOrUndefined=function(e){return le.null(e)||le.undefined(e)};le.number=function(e){return Ku("number")(e)&&!le.nan(e)};le.numericString=function(e){return le.string(e)&&e.length>0&&!Number.isNaN(Number(e))};le.object=function(e){return!le.nullOrUndefined(e)&&(le.function(e)||typeof e=="object")};le.oneOf=function(e,t){return le.array(e)?e.indexOf(t)>-1:!1};le.plainFunction=Jr("Function");le.plainObject=function(e){if(Up(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};le.primitive=function(e){return le.null(e)||$le(typeof e)};le.promise=Jr("Promise");le.propertyOf=function(e,t,n){if(!le.object(e)||!t)return!1;var r=e[t];return le.function(n)?n(r):le.defined(r)};le.regexp=Jr("RegExp");le.set=Jr("Set");le.string=Ku("string");le.symbol=Ku("symbol");le.undefined=Ku("undefined");le.weakMap=Jr("WeakMap");le.weakSet=Jr("WeakSet");function d8(e){return function(t){return typeof t===e}}var xle=d8("function"),wle=function(e){return e===null},YT=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},ZT=function(e){return!Dle(e)&&!wle(e)&&(xle(e)||typeof e=="object")},Dle=d8("undefined"),a1=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 Cle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Hn(e[r],t[r]))return!1;return!0}function Ele(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 Sle(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=a1(e.entries()),u=a.next();!u.done;u=a.next()){var l=u.value;if(!t.has(l[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 f=a1(e.entries()),d=f.next();!d.done;d=f.next()){var l=d.value;if(!Hn(l[1],t.get(l[0])))return!1}}catch(h){i={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}return!0}function Tle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=a1(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 Hn(e,t){if(e===t)return!0;if(e&&ZT(e)&&t&&ZT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Cle(e,t);if(e instanceof Map&&t instanceof Map)return Sle(e,t);if(e instanceof Set&&t instanceof Set)return Tle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Ele(e,t);if(YT(e)&&YT(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)&&!Hn(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Ale(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return le.string(n)||le.array(n)||le.plainObject(n)})}function Ple(e,t,n){return h8(e,t)?[e,t].every(le.array)?!e.some(t2(n))&&t.some(t2(n)):[e,t].every(le.plainObject)?!Object.entries(e).some(e2(n))&&Object.entries(t).some(e2(n)):t===n:!1}function JT(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Di(e,i),l=Di(t,i),f=[u,l].every(le.number)&&(a==="increased"?u<l:u>l);return le.undefined(r)||(f=f&&l===r),le.undefined(o)||(f=f&&u===o),f}function XT(e,t,n){var r=n.key,i=n.type,o=n.value,a=Di(e,r),u=Di(t,r),l=i==="added"?a:u,f=i==="added"?u:a;if(!le.nullOrUndefined(o)){if(le.defined(l)){if(le.array(l)||le.plainObject(l))return Ple(l,f,o)}else return Hn(f,o);return!1}return[a,u].every(le.array)?!f.every(N3(l)):[a,u].every(le.plainObject)?_le(Object.keys(l),Object.keys(f)):![a,u].every(function(d){return le.primitive(d)&&le.defined(d)})&&(i==="added"?!le.defined(a)&&le.defined(u):le.defined(a)&&!le.defined(u))}function QT(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Di(e,i),a=Di(t,i);if(!h8(o,a))throw new TypeError("Inputs have different types");if(!Ale(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(le.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function e2(e){return function(t){var n=t[0],r=t[1];return le.array(e)?Hn(e,r)||e.some(function(i){return Hn(i,r)||le.array(r)&&N3(r)(i)}):le.plainObject(e)&&e[n]?!!e[n]&&Hn(e[n],r):Hn(e,r)}}function _le(e,t){return t.some(function(n){return!e.includes(n)})}function t2(e){return function(t){return le.array(e)?e.some(function(n){return Hn(n,t)||le.array(t)&&N3(t)(n)}):Hn(e,t)}}function Bl(e,t){return le.array(e)?e.some(function(n){return Hn(n,t)}):Hn(e,t)}function N3(e){return function(t){return e.some(function(n){return Hn(n,t)})}}function h8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(le.array)||e.every(le.number)||e.every(le.plainObject)||e.every(le.string)}function Di(e,t){if(le.plainObject(e)||le.array(e)){if(le.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return le.number(t)?e[t]:e}return e}function Rle(e,t){if([e,t].some(le.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return le.plainObject(h)||le.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,p){try{return XT(e,t,{key:h,type:"added",value:p})}catch{return!1}},r=function(h,p,g){try{var v=Di(e,h),b=Di(t,h),D=le.defined(p),$=le.defined(g);if(D||$){var y=$?Bl(g,v):!Bl(p,v),w=Bl(p,b);return y&&w}return[v,b].every(le.array)||[v,b].every(le.plainObject)?!Hn(v,b):v!==b}catch{return!1}},i=function(h,p,g){if(!le.defined(h))return!1;try{var v=Di(e,h),b=Di(t,h),D=le.defined(g);return Bl(p,v)&&(D?Bl(g,b):!D)}catch{return!1}},o=function(h,p){return le.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,p)):!1},a=function(h,p,g){if(!le.defined(h))return!1;try{return JT(e,t,{key:h,actual:p,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var p=QT(e,t,{key:h}),g=p[0],v=p[1];return!!g.length&&!v.length}catch{return!1}},l=function(h){try{var p=QT(e,t,{key:h}),g=p[0],v=p[1];return!g.length&&!!v.length}catch{return!1}},f=function(h,p,g){if(!le.defined(h))return!1;try{return JT(e,t,{key:h,actual:p,previous:g,type:"increased"})}catch{return!1}},d=function(h,p){try{return XT(e,t,{key:h,type:"removed",value:p})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:l,increased:f,removed:d}}function n2(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n2(Object(n),!0).forEach(function(r){Dn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function df(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ole(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,m8(r.key),r)}}function hf(e,t,n){return t&&Ole(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dn(e,t,n){return t=m8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pf(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&&s1(e,t)}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function s1(e,t){return s1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s1(e,t)}function Mle(){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 Fle(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 p8(e,t){if(e==null)return{};var n=Fle(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 Yi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kle(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 Yi(e)}function mf(e){var t=Mle();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 kle(this,i)}}function Ile(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m8(e){var t=Ile(e,"string");return typeof t=="symbol"?t:String(t)}var Ble={flip:{padding:20},preventOverflow:{padding:10}},Lle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Vle="The error message is optional, but must be a string if provided.";function Nle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function jle(e,t){return Object.hasOwnProperty.call(e,t)}function Kle(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Ule(e,t){if(typeof e!="function")throw new TypeError(Lle);if(t)throw new TypeError(Vle)}function r2(e,t,n){return Ule(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),l=3;l<a;l++)u[l-3]=arguments[l];return Nle(t,r,i,o)?jle(r,i)?e.apply(void 0,[r,i,o].concat(u)):Kle(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var st={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Ll=jo.createPortal!==void 0;function pi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function E0(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Td(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(l){le.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function zle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function qle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Wle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),qle(e,t,i)},zle(e,t,i,r)}function i2(){}var g8=function(e){pf(n,e);var t=mf(n);function n(){return df(this,n),t.apply(this,arguments)}return hf(n,[{key:"componentDidMount",value:function(){pi()&&(this.node||this.appendNode(),Ll||this.renderPortal())}},{key:"componentDidUpdate",value:function(){pi()&&(Ll||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!pi()||!this.node||(Ll||jo.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(!pi())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Ll)return jo.createPortal(o,this.node);var u=jo.unstable_renderSubtreeIntoContainer(this,o.length>1?C.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 Ll?this.renderReact16():null}}]),n}(C.Component);Dn(g8,"propTypes",{children:Te.oneOfType([Te.element,Te.array]),hasChildren:Te.bool,id:Te.oneOfType([Te.string,Te.number]),placement:Te.string,setRef:Te.func.isRequired,target:Te.oneOfType([Te.object,Te.string]),zIndex:Te.number});var v8=function(e){pf(n,e);var t=mf(n);function n(){return df(this,n),t.apply(this,arguments)}return hf(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,l=u.arrow,f=l.color,d=l.display,h=l.length,p=l.margin,g=l.position,v=l.spread,b={display:d,position:g},D,$=v,y=h;return o.startsWith("top")?(D="0,0 ".concat($/2,",").concat(y," ").concat($,",0"),b.bottom=0,b.marginLeft=p,b.marginRight=p):o.startsWith("bottom")?(D="".concat($,",").concat(y," ").concat($/2,",0 0,").concat(y),b.top=0,b.marginLeft=p,b.marginRight=p):o.startsWith("left")?(y=v,$=h,D="0,0 ".concat($,",").concat(y/2," 0,").concat(y),b.right=0,b.marginTop=p,b.marginBottom=p):o.startsWith("right")&&(y=v,$=h,D="".concat($,",").concat(y," ").concat($,",0 0,").concat(y/2),b.left=0,b.marginTop=p,b.marginBottom=p),C.createElement("div",{className:"__floater__arrow",style:this.parentStyle},C.createElement("span",{ref:a,style:b},C.createElement("svg",{width:$,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},C.createElement("polygon",{points:D,fill:f}))))}}]),n}(C.Component);Dn(v8,"propTypes",{placement:Te.string.isRequired,setArrowRef:Te.func.isRequired,styles:Te.object.isRequired});var Hle=["color","height","width"];function y8(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=p8(n,Hle);return C.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},C.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"},C.createElement("g",null,C.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}))))}y8.propTypes={handleClick:Te.func.isRequired,styles:Te.object.isRequired};function b8(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,l=e.styles,f={content:C.isValidElement(t)?t:C.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(f.title=C.isValidElement(u)?u:C.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(f.footer=C.isValidElement(n)?n:C.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||o)&&!le.boolean(i)&&(f.close=C.createElement(y8,{styles:l.close,handleClick:r})),C.createElement("div",{className:"__floater__container",style:l.container},f.close,f.title,f.content,f.footer)}b8.propTypes={content:Te.node.isRequired,footer:Te.node,handleClick:Te.func.isRequired,open:Te.bool,positionWrapper:Te.bool.isRequired,showCloseButton:Te.bool.isRequired,styles:Te.object.isRequired,title:Te.node};var $8=function(e){pf(n,e);var t=mf(n);function n(){return df(this,n),t.apply(this,arguments)}return hf(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,l=i.hideArrow,f=i.status,d=i.styles,h=d.arrow.length,p=d.floater,g=d.floaterCentered,v=d.floaterClosing,b=d.floaterOpening,D=d.floaterWithAnimation,$=d.floaterWithComponent,y={};return l||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[st.OPENING,st.OPEN].indexOf(f)!==-1&&(y=Mt(Mt({},y),b)),f===st.CLOSING&&(y=Mt(Mt({},y),v)),f===st.OPEN&&!o&&(y=Mt(Mt({},y),D)),u==="center"&&(y=Mt(Mt({},y),g)),a&&(y=Mt(Mt({},y),$)),Mt(Mt({},p),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,f=i.status,d={},h=["__floater"];return o?C.isValidElement(o)?d.content=C.cloneElement(o,{closeFn:a}):d.content=o({closeFn:a}):d.content=C.createElement(b8,this.props),f===st.OPEN&&h.push("__floater__open"),u||(d.arrow=C.createElement(v8,this.props)),C.createElement("div",{ref:l,className:h.join(" "),style:this.style},C.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),n}(C.Component);Dn($8,"propTypes",{component:Te.oneOfType([Te.func,Te.element]),content:Te.node,disableAnimation:Te.bool.isRequired,footer:Te.node,handleClick:Te.func.isRequired,hideArrow:Te.bool.isRequired,open:Te.bool,placement:Te.string.isRequired,positionWrapper:Te.bool.isRequired,setArrowRef:Te.func.isRequired,setFloaterRef:Te.func.isRequired,showCloseButton:Te.bool,status:Te.string.isRequired,styles:Te.object.isRequired,title:Te.node});var x8=function(e){pf(n,e);var t=mf(n);function n(){return df(this,n),t.apply(this,arguments)}return hf(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,f=i.setChildRef,d=i.setWrapperRef,h=i.style,p=i.styles,g;if(o)if(C.Children.count(o)===1)if(!C.isValidElement(o))g=C.createElement("span",null,o);else{var v=le.function(o.type)?"innerRef":"ref";g=C.cloneElement(C.Children.only(o),Dn({},v,f))}else g=o;return g?C.createElement("span",{ref:d,style:Mt(Mt({},p),h),onClick:a,onMouseEnter:u,onMouseLeave:l},g):null}}]),n}(C.Component);Dn(x8,"propTypes",{children:Te.node,handleClick:Te.func.isRequired,handleMouseEnter:Te.func.isRequired,handleMouseLeave:Te.func.isRequired,setChildRef:Te.func.isRequired,setWrapperRef:Te.func.isRequired,style:Te.object,styles:Te.object.isRequired});var Gle={zIndex:100};function Yle(e){var t=zr(Gle,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 Zle=["arrow","flip","offset"],Jle=["position","top","right","bottom","left"],j3=function(e){pf(n,e);var t=mf(n);function n(r){var i;return df(this,n),i=t.call(this,r),Dn(Yi(i),"setArrowRef",function(o){i.arrowRef=o}),Dn(Yi(i),"setChildRef",function(o){i.childRef=o}),Dn(Yi(i),"setFloaterRef",function(o){i.floaterRef=o}),Dn(Yi(i),"setWrapperRef",function(o){i.wrapperRef=o}),Dn(Yi(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===st.OPENING?st.OPEN:st.IDLE},function(){var u=i.state.status;a(u===st.OPEN?"open":"close",i.props)})}),Dn(Yi(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!le.boolean(u)){var l=i.state,f=l.positionWrapper,d=l.status;(i.event==="click"||i.event==="hover"&&f)&&(Td({title:"click",data:[{event:a,status:d===st.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Dn(Yi(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(le.boolean(u)||E0())){var l=i.state.status;i.event==="hover"&&l===st.IDLE&&(Td({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Dn(Yi(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,l=o.open;if(!(le.boolean(l)||E0())){var f=i.state,d=f.status,h=f.positionWrapper;i.event==="hover"&&(Td({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[st.OPENING,st.OPEN].indexOf(d)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(st.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:st.INIT,statusWrapper:st.INIT},i._isMounted=!1,i.hasMounted=!1,pi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return hf(n,[{key:"componentDidMount",value:function(){if(pi()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,l=o.target;this._isMounted=!0,Td({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:le.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&le.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(pi()){var a=this.props,u=a.autoOpen,l=a.open,f=a.target,d=a.wrapperOptions,h=Rle(o,this.state),p=h.changedFrom,g=h.changed;if(i.open!==l){var v;le.boolean(l)&&(v=l?st.OPENING:st.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==d.position||i.target!==f)&&this.changeWrapperPosition(this.props),g("status",st.IDLE)&&l?this.toggle(st.OPEN):p("status",st.INIT,st.IDLE)&&u&&this.toggle(st.OPEN),this.popper&&g("status",st.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",st.OPENING)||g("status",st.CLOSING))&&Wle(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){pi()&&(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,l=u.disableFlip,f=u.getPopper,d=u.hideArrow,h=u.offset,p=u.placement,g=u.wrapperOptions,v=p==="top"||p==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(p==="center")this.setState({status:st.IDLE});else if(o&&this.floaterRef){var b=this.options,D=b.arrow,$=b.flip,y=b.offset,w=p8(b,Zle);new Ic(o,this.floaterRef,{placement:p,modifiers:Mt({arrow:Mt({enabled:!d,element:this.arrowRef},D),flip:Mt({enabled:!l,behavior:v},$),offset:Mt({offset:"0, ".concat(h,"px")},y)},w),onCreate:function(A){var M;if(i.popper=A,!((M=i.floaterRef)!==null&&M!==void 0&&M.isConnected)){i.setState({needsUpdate:!0});return}f(A,"floater"),i._isMounted&&i.setState({currentPlacement:A.placement,status:st.IDLE}),p!==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=le.undefined(g.offset)?0:g.offset;new Ic(this.target,this.wrapperRef,{placement:g.placement||p,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(A){i.wrapperPopper=A,i._isMounted&&i.setState({statusWrapper:st.IDLE}),f(A,"wrapper"),p!==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===st.OPEN?st.CLOSING:st.OPENING;le.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||pi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&E0()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return zr(Ble,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,l=o.statusWrapper,f=this.props.styles,d=zr(Yle(f),f);if(u){var h;[st.IDLE].indexOf(a)===-1||[st.IDLE].indexOf(l)===-1?h=d.wrapperPosition:h=this.wrapperPopper.styles,d.wrapper=Mt(Mt({},d.wrapper),h)}if(this.target){var p=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=Mt(Mt({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(p.position)===-1&&(this.wrapperStyles={},u||(Jle.forEach(function(g){i.wrapperStyles[g]=p[g]}),d.wrapper=Mt(Mt({},d.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 d}},{key:"target",get:function(){if(!pi())return null;var i=this.props.target;return i?le.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,l=this.props,f=l.children,d=l.component,h=l.content,p=l.disableAnimation,g=l.footer,v=l.hideArrow,b=l.id,D=l.open,$=l.showCloseButton,y=l.style,w=l.target,T=l.title,E=C.createElement(x8,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},f),A={};return a?A.wrapperInPortal=E:A.wrapperAsChildren=E,C.createElement("span",null,C.createElement(g8,{hasChildren:!!f,id:b,placement:o,setRef:this.setFloaterRef,target:w,zIndex:this.styles.options.zIndex},C.createElement($8,{component:d,content:h,disableAnimation:p,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:D,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:$,status:u,styles:this.styles,title:T}),A.wrapperInPortal),A.wrapperAsChildren)}}]),n}(C.Component);Dn(j3,"propTypes",{autoOpen:Te.bool,callback:Te.func,children:Te.node,component:r2(Te.oneOfType([Te.func,Te.element]),function(e){return!e.content}),content:r2(Te.node,function(e){return!e.component}),debug:Te.bool,disableAnimation:Te.bool,disableFlip:Te.bool,disableHoverToClick:Te.bool,event:Te.oneOf(["hover","click"]),eventDelay:Te.number,footer:Te.node,getPopper:Te.func,hideArrow:Te.bool,id:Te.oneOfType([Te.string,Te.number]),offset:Te.number,open:Te.bool,options:Te.object,placement:Te.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Te.bool,style:Te.object,styles:Te.object,target:Te.oneOfType([Te.object,Te.string]),title:Te.node,wrapperOptions:Te.shape({offset:Te.number,placement:Te.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Te.bool})});Dn(j3,"defaultProps",{autoOpen:!1,callback:i2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:i2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Xle=Object.defineProperty,Qle=(e,t,n)=>t in e?Xle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ke=(e,t,n)=>Qle(e,typeof t!="symbol"?t+"":t,n),ct={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Cr={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"},Ye={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},it={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Io(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function w8(e){return e?e.getBoundingClientRect():null}function ece(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 eo(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 tce(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Bc(e,t,n){if(!e)return Oa();const r=G9(e);if(r){if(r.isSameNode(Oa()))return n?document:Oa();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Oa()}return r}function gf(e,t){if(!e)return!1;const n=Bc(e,t);return n?!n.isSameNode(Oa()):!1}function nce(e){return e.offsetParent!==document.body}function Cu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=tce(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Cu(e.parentNode,t):!1}function rce(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 ice(e,t,n){var r,i,o;const a=w8(e),u=Bc(e,n),l=gf(e,n),f=Cu(e);let d=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(l&&f){const p=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=p-g}else u instanceof HTMLElement&&(d=u.scrollTop,!l&&!Cu(e)&&(h+=d),u.isSameNode(Oa())||(h+=Oa().scrollTop));return Math.floor(h-t)}function oce(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=G9(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(gf(e,n)||nce(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function Oa(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function ace(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;vue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var Vl=jo.createPortal!==void 0;function D8(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 Zd(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function mi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=OT(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(C.isValidElement(e)&&!Object.values(e.props).length&&Zd(e.type)==="function"){const a=e.type({});o=mi(a,t)}else o=OT(n);return o}function sce(e,t){return!Me.plainObject(e)||!Me.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function uce(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 o2(e){return e.disableBeacon||e.placement==="center"}function a2(){return!["chrome","safari","firefox","opera"].includes(D8())}function Zo({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=>{Me.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 lce(e){return Object.keys(e)}function C8(e,...t){if(!Me.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 cce(e,...t){if(!Me.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 u1(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Zd(e)==="string")return r(e);if(!C.isValidElement(e))return e;const{children:i}=e.props;if(Zd(i)==="string"&&i.includes("{step}"))return C.cloneElement(e,{children:r(i)});if(Array.isArray(i))return C.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):u1(o,t,n))});if(Zd(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return u1(o,t,n)}return e}function fce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Ye.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Cu(a))&&r!==n&&[Ye.BEACON,Ye.TOOLTIP].includes(n)}var dce={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},E8={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},hce={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:E8,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},pce={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:[]},mce={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},Nl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},s2={borderRadius:4,position:"absolute"};function gce(e,t){var n,r,i,o,a;const{floaterProps:u,styles:l}=e,f=zr((n=t.floaterProps)!=null?n:{},u??{}),d=zr(l??{},(r=t.styles)!=null?r:{}),h=zr(mce,d.options||{}),p=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 v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},b={beacon:{...Nl,display:p?"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(${uce(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:{...Nl,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Nl,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Nl,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Nl,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...s2,backgroundColor:"gray"},spotlightLegacy:{...s2,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=f==null?void 0:f.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return zr(b,d)}function vce(e){return cce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Os(e,t){var n,r,i,o,a,u;const l=t??{},f=zr.all([hce,vce(e),l],{isMergeableObject:Me.plainObject}),d=gce(e,f),h=gf(eo(f.target),f.disableScrollParentFix),p=zr.all([dce,(n=e.floaterProps)!=null?n:{},(r=f.floaterProps)!=null?r:{}]);return p.offset=f.offset,p.styles=zr((i=p.styles)!=null?i:{},d.floaterStyles),p.offset+=(a=(o=e.spotlightPadding)!=null?o:f.spotlightPadding)!=null?a:0,f.placementBeacon&&p.wrapperOptions&&(p.wrapperOptions.placement=f.placementBeacon),h&&p.options.preventOverflow&&(p.options.preventOverflow.boundariesElement="window"),{...f,locale:zr.all([E8,(u=e.locale)!=null?u:{},f.locale||{}]),floaterProps:p,styles:C8(d,"floaterStyles")}}function S8(e,t=!1){return Me.plainObject(e)?e.target?!0:(Zo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Zo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function u2(e,t=!1){return Me.array(e)?e.every(n=>S8(n,t)):(Zo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var T8={action:"init",controlled:!1,index:0,lifecycle:Ye.INIT,origin:null,size:0,status:it.IDLE},l2=lce(C8(T8,"controlled","size")),yce=class{constructor(e){ke(this,"beaconPopper"),ke(this,"tooltipPopper"),ke(this,"data",new Map),ke(this,"listener"),ke(this,"store",new Map),ke(this,"addListener",i=>{this.listener=i}),ke(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===it.WAITING&&!o&&i.length&&(u.status=it.RUNNING),this.setState(u)}),ke(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),ke(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),ke(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),ke(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===it.RUNNING&&this.setState({...this.getNextState({action:ct.CLOSE,index:o+1,origin:i})})}),ke(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==it.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:ct.GO,index:i}),status:u?a:it.FINISHED})}),ke(this,"info",()=>this.getState()),ke(this,"next",()=>{const{index:i,status:o}=this.getState();o===it.RUNNING&&this.setState(this.getNextState({action:ct.NEXT,index:i+1}))}),ke(this,"open",()=>{const{status:i}=this.getState();i===it.RUNNING&&this.setState({...this.getNextState({action:ct.UPDATE,lifecycle:Ye.TOOLTIP})})}),ke(this,"prev",()=>{const{index:i,status:o}=this.getState();o===it.RUNNING&&this.setState({...this.getNextState({action:ct.PREV,index:i-1})})}),ke(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:ct.RESET,index:0}),status:i?it.RUNNING:it.READY})}),ke(this,"skip",()=>{const{status:i}=this.getState();i===it.RUNNING&&this.setState({action:ct.SKIP,lifecycle:Ye.INIT,status:it.SKIPPED})}),ke(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:ct.START,index:Me.number(i)?i:o},!0),status:a?it.RUNNING:it.WAITING})}),ke(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[it.FINISHED,it.SKIPPED].includes(a)||this.setState({...this.getNextState({action:ct.STOP,index:o+(i?1:0)}),status:it.PAUSED})}),ke(this,"update",i=>{var o,a;if(!sce(i,l2))throw new Error(`State is not valid. Valid keys: ${l2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:ct.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:ct.INIT,controlled:Me.number(n),continuous:t,index:Me.number(n)?n:0,lifecycle:Ye.INIT,origin:null,status:r.length?it.READY:it.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")||""}:{...T8}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:l,index:f,size:d,status:h}=this.getState(),p=Me.number(e.index)?e.index:f,g=l&&!t?f:Math.min(Math.max(p,0),d);return{action:(n=e.action)!=null?n:u,controlled:l,index:g,lifecycle:(r=e.lifecycle)!=null?r:Ye.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:d,status:g===d?it.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:l}={...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",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function bce(e){return new yce(e)}function $ce({styles:e}){return be.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var xce=$ce,wce=class extends be.Component{constructor(){super(...arguments),ke(this,"isActive",!1),ke(this,"resizeTimeout"),ke(this,"scrollTimeout"),ke(this,"scrollParent"),ke(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),ke(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Ye.INIT,Ye.BEACON,Ye.COMPLETE,Ye.ERROR];return t||(e?r.includes(n):n!==Ye.TOOLTIP)}),ke(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,l=i==="fixed"?e.clientX:e.pageX,f=u>=o&&u<=o+n,h=l>=r&&l<=r+a&&f;h!==t&&this.updateState({mouseOverSpotlight:h})}),ke(this,"handleScroll",()=>{const{target:e}=this.props,t=eo(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 Cu(t,"sticky")&&this.updateState({})}),ke(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=eo(r);this.scrollParent=Bc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&gf(i,!0)&&Zo({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}=Vh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=eo(o);this.scrollParent=Bc(u??document.body,n,!0)}a("lifecycle",Ye.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===Ye.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ye.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 a2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:ece(),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:l}=this.props,f=eo(l),d=w8(f),h=Cu(f),p=ice(f,a,i);return{...a2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=d==null?void 0:d.height)!=null?e:0)+a*2),left:Math.round(((t=d==null?void 0:d.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((n=d==null?void 0:d.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&&be.createElement(xce,{styles:o});if(D8()==="safari"){const{mixBlendMode:u,zIndex:l,...f}=i;a=be.createElement("div",{style:{...f}},a),delete i.backgroundColor}return be.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},Dce=class extends be.Component{constructor(){super(...arguments),ke(this,"node",null)}componentDidMount(){const{id:e}=this.props;Io()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Vl||this.renderReact15())}componentDidUpdate(){Io()&&(Vl||this.renderReact15())}componentWillUnmount(){!Io()||!this.node||(Vl||Ad.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Io())return;const{children:e}=this.props;this.node&&Ad.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Io()||!Vl)return null;const{children:e}=this.props;return this.node?Ad.createPortal(e,this.node):null}render(){return Vl?this.renderReact16():null}},Cce=class{constructor(e,t){if(ke(this,"element"),ke(this,"options"),ke(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),ke(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)}),ke(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),ke(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),ke(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()}),ke(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"}),ke(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}),ke(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),ke(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),ke(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()}},Ece=class extends be.Component{constructor(e){if(super(e),ke(this,"beacon",null),ke(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(`
|
|
188
|
-
@keyframes joyride-beacon-inner {
|
|
189
|
-
20% {
|
|
190
|
-
opacity: 0.9;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
90% {
|
|
194
|
-
opacity: 0.7;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@keyframes joyride-beacon-outer {
|
|
199
|
-
0% {
|
|
200
|
-
transform: scale(1);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
45% {
|
|
204
|
-
opacity: 0.7;
|
|
205
|
-
transform: scale(0.75);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
100% {
|
|
209
|
-
opacity: 0.9;
|
|
210
|
-
transform: scale(1);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(Me.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{Me.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:l}=this.props,f=mi(i.open),d={"aria-label":f,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:f};let h;if(e){const p=e;h=be.createElement(p,{continuous:t,index:n,isLastStep:r,size:a,step:u,...d})}else h=be.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...d},be.createElement("span",{style:l.beaconInner}),be.createElement("span",{style:l.beaconOuter}));return h}};function Sce({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return C.createElement("button",{style:o,type:"button",...t},C.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"},C.createElement("g",null,C.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 Tce=Sce;function Ace(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:l}=e,{content:f,hideBackButton:d,hideCloseButton:h,hideFooter:p,showSkipButton:g,styles:v,title:b}=u,D={};return D.primary=be.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(D.skip=be.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!d&&r>0&&(D.back=be.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),D.close=!h&&be.createElement(Tce,{"data-test-id":"button-close",styles:v.buttonClose,...n}),be.createElement("div",{key:"JoyrideTooltip","aria-label":mi(b??f),className:"react-joyride__tooltip",style:v.tooltip,...l},be.createElement("div",{style:v.tooltipContainer},b&&be.createElement("h1",{"aria-label":mi(b),style:v.tooltipTitle},b),be.createElement("div",{style:v.tooltipContent},f)),!p&&be.createElement("div",{style:v.tooltipFooter},be.createElement("div",{style:v.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var Pce=Ace,_ce=class extends be.Component{constructor(){super(...arguments),ke(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),ke(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),ke(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),ke(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),ke(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:l,next:f,nextLabelWithProgress:d,skip:h}=o.locale,p=mi(a),g=mi(u),v=mi(l),b=mi(f),D=mi(h);let $=u,y=g;if(e){if($=f,y=b,o.showProgress&&!n){const w=mi(d,{step:t+1,steps:i});$=u1(d,t+1,i),y=w}n&&($=l,y=v)}return{backProps:{"aria-label":p,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:p},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:$,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":D,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:D},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,...l}=o;let f;if(u){const d={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},h=u;f=be.createElement(h,{...d})}else f=be.createElement(Pce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return f}},Rce=class extends be.Component{constructor(){super(...arguments),ke(this,"scope",null),ke(this,"tooltip",null),ke(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ye.TOOLTIP})}),ke(this,"setTooltipRef",e=>{this.tooltip=e}),ke(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===Ye.INIT&&a.update({action:r,lifecycle:Ye.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),ke(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return be.createElement(_ce,{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;Zo({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:l,lifecycle:f,shouldScroll:d,status:h,step:p,store:g}=this.props,{changed:v,changedFrom:b}=Vh(e,this.props),D=u.info(),$=i&&n!==ct.CLOSE&&(l>0||n===ct.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),w=b("lifecycle",[Ye.TOOLTIP,Ye.INIT],Ye.INIT),T=v("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE]),E=o&&l===e.index;if(T&&(w||E)&&r({...D,index:e.index,lifecycle:Ye.COMPLETE,step:e.step,type:Cr.STEP_AFTER}),p.placement==="center"&&h===it.RUNNING&&v("index")&&n!==ct.START&&f===Ye.INIT&&g.update({lifecycle:Ye.READY}),y){const A=eo(p.target),M=!!A;M&&rce(A)?(b("status",it.READY,it.RUNNING)||b("lifecycle",Ye.INIT,Ye.READY))&&r({...D,step:p,type:Cr.STEP_BEFORE}):(console.warn(M?"Target not visible":"Target not mounted",p),r({...D,type:Cr.TARGET_NOT_FOUND,step:p}),o||g.update({index:l+(n===ct.PREV?-1:1)}))}b("lifecycle",Ye.INIT,Ye.READY)&&g.update({lifecycle:o2(p)||$?Ye.TOOLTIP:Ye.BEACON}),v("index")&&Zo({title:`step:${f}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Ye.BEACON)&&r({...D,step:p,type:Cr.BEACON}),v("lifecycle",Ye.TOOLTIP)&&(r({...D,step:p,type:Cr.TOOLTIP}),d&&this.tooltip&&(this.scope=new Cce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),b("lifecycle",[Ye.TOOLTIP,Ye.INIT],Ye.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 o2(t)||e===Ye.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=eo(a.target);return!S8(a)||!Me.domElement(u)?null:be.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},be.createElement(j3,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},be.createElement(Ece,{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})))}},A8=class extends be.Component{constructor(e){super(e),ke(this,"helpers"),ke(this,"store"),ke(this,"callback",a=>{const{callback:u}=this.props;Me.function(u)&&u(a)}),ke(this,"handleKeyboard",a=>{const{index:u,lifecycle:l}=this.state,{steps:f}=this.props,d=f[u];l===Ye.TOOLTIP&&a.code==="Escape"&&d&&!d.disableCloseOnEsc&&this.store.close("keyboard")}),ke(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;Os(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),ke(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=bce({...e,controlled:r&&Me.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;Zo({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(!Io())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;u2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Io())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:l,steps:f}=this.props,{stepIndex:d,steps:h}=e,{reset:p,setSteps:g,start:v,stop:b,update:D}=this.store,{changed:$}=Vh(e,this.props),{changed:y,changedFrom:w}=Vh(t,this.state),T=Os(this.props,f[i]),E=!Fn(h,f),A=Me.number(l)&&$("stepIndex"),M=eo(T.target);if(E&&(u2(f,a)?g(f):console.warn("Steps are not valid",f)),$("run")&&(u?v(l):b()),A){let j=Me.number(d)&&d<l?ct.NEXT:ct.PREV;n===ct.STOP&&(j=ct.START),[it.FINISHED,it.SKIPPED].includes(o)||D({action:n===ct.CLOSE?ct.CLOSE:j,index:l,lifecycle:Ye.INIT})}!r&&o===it.RUNNING&&i===0&&!M&&(this.store.update({index:i+1}),this.callback({...this.state,type:Cr.TARGET_NOT_FOUND,step:T}));const S={...this.state,index:i,step:T};if(y("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE])&&y("status",it.PAUSED)){const j=Os(this.props,f[t.index]);this.callback({...S,index:t.index,lifecycle:Ye.COMPLETE,step:j,type:Cr.STEP_AFTER})}if(y("status",[it.FINISHED,it.SKIPPED])){const j=Os(this.props,f[t.index]);r||this.callback({...S,index:t.index,lifecycle:Ye.COMPLETE,step:j,type:Cr.STEP_AFTER}),this.callback({...S,type:Cr.TOUR_END,step:j,index:t.index}),p()}else w("status",[it.IDLE,it.READY],it.RUNNING)?this.callback({...S,type:Cr.TOUR_START}):(y("status")||y("action",ct.RESET))&&this.callback({...S,type:Cr.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:l=!1,steps:f}=this.props,d=Os(this.props,f[t]),h=eo(d.target),p=fce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:d,target:h});if(r===it.RUNNING&&p){const g=gf(h,o),v=Bc(h,o);let b=Math.floor(oce(h,u,o))||0;Zo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),$=this.store.getPopper("tooltip");if(n===Ye.BEACON&&D){const{offsets:y,placement:w}=D;!["bottom"].includes(w)&&!g&&(b=Math.floor(y.popper.top-u))}else if(n===Ye.TOOLTIP&&$){const{flipped:y,offsets:w,placement:T}=$;["top","right","left"].includes(T)&&!y&&!g?b=Math.floor(w.popper.top-u):b-=d.spotlightPadding}b=b>=0?b:0,r===it.RUNNING&&ace(b,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!Io())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,l=n===it.RUNNING,f={};if(l&&u[e]){const d=Os(this.props,u[e]);f.step=be.createElement(Rce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!d.disableScrolling&&(e!==0||a),step:d,store:this.store}),f.overlay=be.createElement(Dce,{id:"react-joyride-portal"},be.createElement(wce,{...d,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return be.createElement("div",{className:"react-joyride"},f.step,f.overlay)}};ke(A8,"defaultProps",pce);var Oce=A8;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=e7;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=GA;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=qc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=bq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=an;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=FH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=XR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Sn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=BW;exports.$293f70390ea03370$export$497855f14858aa34=AH;exports.$32489daedd52963e$export$1315d136e6f7581=NH;exports.$337b884510726a0d$export$c6fdb837b070b4ff=dH;exports.$36a0ac60f04457c5$export$136073280381448e=TW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=N7;exports.$40df3f8667284809$export$d55e7ee900f34e93=zH;exports.$46a4342aab3d8076$export$87e0539f600c24e5=CW;exports.$47b897dc8cdb026b$export$8d15029008292ae=jW;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=VW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=IH;exports.$64244302c3013299$export$dd0bbc9b26defe37=iW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=yW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=UH;exports.$93c38a5e28be6249$export$e50a61c1de9f574=cG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=DW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=qH;exports.$a916eb452884faea$export$b7a616150fdb9f44=vW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=JH;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=rG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=CP;exports.$bcca50147b47f54d$export$56b2c08e277f365=NW;exports.$c132121280ec012d$export$50eacbbf140a3141=$H;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=wH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=OH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=EW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=fG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=lH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Mq;exports.$fae977aafc393c5c$export$6b862160d295c8e=Oq;exports.ACTIONS=ct;exports.AdvancedImage=QZ;exports.Cloudinary=GJ;exports.Controller=_U;exports.EVENTS=Cr;exports.FormProvider=TU;exports.LazyMotion=Pie;exports.M=jr;exports.R=Za;exports.ReorderGroup=uie;exports.ReorderItem=die;exports.STATUS=it;exports._=CU;exports.autoUpdate=JK;exports.components_default=Oce;exports.dayjs=pG;exports.dayjs_minExports=j7;exports.domAnimation=Qse;exports.dt=k2;exports.ee=z7;exports.flip=iU;exports.isNumber=wie;exports.lazyload=xZ;exports.localizedFormat=gie;exports.lodashExports=nA;exports.lt=p1;exports.m=woe;exports.mt=hK;exports.nt=cK;exports.o=bie;exports.offset=nU;exports.ot=fK;exports.placeholder=EZ;exports.prismExports=RQ;exports.q=J1;exports.shift=rU;exports.some=PQ;exports.useFloating=vU;exports.useFloating$1=J2;exports.useFocus=yU;exports.useForm=KU;exports.useFormContext=tp;exports.useHover=pU;exports.useInteractions=bU;exports.useRole=xU;exports.useWatch=dA;
|