@fluidattacks/design 3.16.17-pr-02 → 3.16.17
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/@core/styles.d.ts +4 -4
- 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/alert/styles.d.ts +268 -2
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/avatar/styles.d.ts +534 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/styles.d.ts +277 -2
- 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-input/styles.d.ts +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/carousel/styles.d.ts +805 -7
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/styles.d.ts +269 -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/code-snippet/styles.d.ts +534 -2
- 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/container/styles.d.ts +267 -2
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/dropdown/styles.d.ts +535 -2
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/empty-state/styles.d.ts +535 -3
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/file-preview/styles.d.ts +337 -3
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/form/styles.d.ts +275 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/grid-container/styles.d.ts +267 -2
- package/dist/components/grid-layout/styles.d.ts +1069 -5
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/group-selector/styles.d.ts +4 -4
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/styles.d.ts +534 -3
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styles.d.ts +555 -3
- 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/combobox/styles.d.ts +4 -4
- 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/calendar/styles.d.ts +2159 -10
- 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-range/styles.d.ts +2 -2
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/styles.d.ts +534 -2
- 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-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-file/styles.d.ts +565 -3
- 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/input-tags/styles.d.ts +298 -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/phone/styles.d.ts +1346 -5
- 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/styles.d.ts +269 -3
- 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/inputs/utils/styles.d.ts +1624 -9
- package/dist/components/layout/categories/buttons/index.d.ts +798 -6
- 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/column/styles.d.ts +266 -2
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/gap/styles.d.ts +266 -2
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/categories/row/styles.d.ts +266 -2
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/styles.d.ts +2 -2
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/list-item/styles.d.ts +535 -2
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/little-flag/styles.d.ts +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/styles.d.ts +3 -3
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/lottie/styles.d.ts +391 -33
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/message-banner/styles.d.ts +277 -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/preview-panel/styles.d.ts +371 -2
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/styles.d.ts +371 -2
- 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/filters-list/styles.d.ts +371 -2
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/styles.d.ts +638 -5
- 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/modal/styles.d.ts +1338 -12
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification/styles.d.ts +2 -2
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/notification-sign/styles.d.ts +534 -3
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/styles.d.ts +565 -2
- 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/plan-card/styles.d.ts +534 -2
- 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/premium-feature/styles.d.ts +267 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-bar/styles.d.ts +4 -4
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/radio-button/styles.d.ts +535 -3
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/scroll-button/styles.d.ts +266 -2
- package/dist/components/search/index.js +1 -1
- package/dist/components/search/styles.d.ts +832 -3
- 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/show-on-hover/styles.d.ts +267 -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/slide-out-menu/styles.d.ts +9 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/styles.d.ts +539 -4
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/step-lapse/styles.d.ts +803 -5
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/table-button/styles.d.ts +277 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/styles.d.ts +2 -2
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/styles.d.ts +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/styles.d.ts +4 -4
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/styles.d.ts +803 -3
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/toggle-buttons/styles.d.ts +544 -2
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/styles.d.ts +332 -4
- 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/styles.d.ts +801 -6
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-B3CbGXKV.mjs → components-DMm46bPh.mjs} +5 -5
- package/dist/{components-CPr2IrsH.js → components-DV7VDTN3.js} +150 -150
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-B-9K6KFM.js +206 -0
- package/dist/{vendor-BjX5VA6Q.mjs → vendor-DDpuuANj.mjs} +9993 -9928
- package/package.json +19 -19
- package/dist/vendor-fgGC0FAv.js +0 -204
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const A=require("react"),Uo=require("react/jsx-runtime"),Vo=require("react-dom");function tP(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 Ye=tP(A),Zh=tP(Vo);var Mr=function(){return Mr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Mr.apply(this,arguments)};function Au(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function ij(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)-.*))$/,oj=ij(function(e){return sj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cn="-ms-",Lf="-moz-",un="-webkit-",nP="comm",dm="rule",A4="decl",aj="@import",rP="@keyframes",uj="@layer",iP=Math.abs,T4=String.fromCharCode,N1=Object.assign;function lj(e,t){return pr(e,0)^45?(((t<<2^pr(e,0))<<2^pr(e,1))<<2^pr(e,2))<<2^pr(e,3):0}function sP(e){return e.trim()}function ko(e,t){return(e=t.exec(e))?e[0]:e}function It(e,t,n){return e.replace(t,n)}function Xh(e,t,n){return e.indexOf(t,n)}function pr(e,t){return e.charCodeAt(t)|0}function Gl(e,t,n){return e.slice(t,n)}function Us(e){return e.length}function oP(e){return e.length}function Cf(e,t){return t.push(e),e}function cj(e,t){return e.map(t).join("")}function Ow(e,t){return e.filter(function(n){return!ko(n,t)})}var hm=1,Yl=1,aP=0,Yi=0,er=0,yc="";function pm(e,t,n,r,i,s,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:hm,column:Yl,length:o,return:"",siblings:u}}function da(e,t){return N1(pm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bl(e){for(;e.root;)e=da(e.root,{children:[e]});Cf(e,e.siblings)}function fj(){return er}function dj(){return er=Yi>0?pr(yc,--Yi):0,Yl--,er===10&&(Yl=1,hm--),er}function bs(){return er=Yi<aP?pr(yc,Yi++):0,Yl++,er===10&&(Yl=1,hm++),er}function wu(){return pr(yc,Yi)}function Jh(){return Yi}function mm(e,t){return Gl(yc,e,t)}function j1(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 hj(e){return hm=Yl=1,aP=Us(yc=e),Yi=0,[]}function pj(e){return yc="",e}function av(e){return sP(mm(Yi-1,K1(e===91?e+2:e===40?e+1:e)))}function mj(e){for(;(er=wu())&&er<33;)bs();return j1(e)>2||j1(er)>3?"":" "}function gj(e,t){for(;--t&&bs()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return mm(e,Jh()+(t<6&&wu()==32&&bs()==32))}function K1(e){for(;bs();)switch(er){case e:return Yi;case 34:case 39:e!==34&&e!==39&&K1(er);break;case 40:e===41&&K1(e);break;case 92:bs();break}return Yi}function vj(e,t){for(;bs()&&e+er!==57;)if(e+er===84&&wu()===47)break;return"/*"+mm(t,Yi-1)+"*"+T4(e===47?e:bs())}function yj(e){for(;!j1(wu());)bs();return mm(e,Yi)}function bj(e){return pj(Qh("",null,null,null,[""],e=hj(e),0,[0],e))}function Qh(e,t,n,r,i,s,o,u,l){for(var d=0,h=0,m=o,g=0,b=0,$=0,w=1,D=1,S=1,C=0,T="",O=i,M=s,k=r,N=T;D;)switch($=C,C=bs()){case 40:if($!=108&&pr(N,m-1)==58){Xh(N+=It(av(C),"&","&\f"),"&\f",iP(d?u[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:N+=av(C);break;case 9:case 10:case 13:case 32:N+=mj($);break;case 92:N+=gj(Jh()-1,7);continue;case 47:switch(wu()){case 42:case 47:Cf($j(vj(bs(),Jh()),t,n,l),l);break;default:N+="/"}break;case 123*w:u[d++]=Us(N)*S;case 125*w:case 59:case 0:switch(C){case 0:case 125:D=0;case 59+h:S==-1&&(N=It(N,/\f/g,"")),b>0&&Us(N)-m&&Cf(b>32?Lw(N+";",r,n,m-1,l):Lw(It(N," ","")+";",r,n,m-2,l),l);break;case 59:N+=";";default:if(Cf(k=Iw(N,t,n,d,h,i,u,T,O=[],M=[],m,s),s),C===123)if(h===0)Qh(N,t,k,k,O,s,m,u,M);else switch(g===99&&pr(N,3)===110?100:g){case 100:case 108:case 109:case 115:Qh(e,k,k,r&&Cf(Iw(e,k,k,0,0,i,u,T,i,O=[],m,M),M),i,M,m,u,r?O:M);break;default:Qh(N,k,k,k,[""],M,0,u,M)}}d=h=b=0,w=S=1,T=N="",m=o;break;case 58:m=1+Us(N),b=$;default:if(w<1){if(C==123)--w;else if(C==125&&w++==0&&dj()==125)continue}switch(N+=T4(C),C*w){case 38:S=h>0?1:(N+="\f",-1);break;case 44:u[d++]=(Us(N)-1)*S,S=1;break;case 64:wu()===45&&(N+=av(bs())),g=wu(),h=m=Us(T=N+=yj(Jh())),C++;break;case 45:$===45&&Us(N)==2&&(w=0)}}return s}function Iw(e,t,n,r,i,s,o,u,l,d,h,m){for(var g=i-1,b=i===0?s:[""],$=oP(b),w=0,D=0,S=0;w<r;++w)for(var C=0,T=Gl(e,g+1,g=iP(D=o[w])),O=e;C<$;++C)(O=sP(D>0?b[C]+" "+T:It(T,/&\f/g,b[C])))&&(l[S++]=O);return pm(e,t,n,i===0?dm:u,l,d,h,m)}function $j(e,t,n,r){return pm(e,t,n,nP,T4(fj()),Gl(e,2,-2),0,r)}function Lw(e,t,n,r,i){return pm(e,t,n,A4,Gl(e,0,r),Gl(e,r+1,-1),r,i)}function uP(e,t,n){switch(lj(e,t)){case 5103:return un+"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 un+e+e;case 4789:return Lf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+Lf+e+Cn+e+e;case 5936:switch(pr(e,t+11)){case 114:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return un+e+Cn+e+e;case 6165:return un+e+Cn+"flex-"+e+e;case 5187:return un+e+It(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return un+e+Cn+"flex-item-"+It(e,/flex-|-self/g,"")+(ko(e,/flex-|baseline/)?"":Cn+"grid-row-"+It(e,/flex-|-self/g,""))+e;case 4675:return un+e+Cn+"flex-line-pack"+It(e,/align-content|flex-|-self/g,"")+e;case 5548:return un+e+Cn+It(e,"shrink","negative")+e;case 5292:return un+e+Cn+It(e,"basis","preferred-size")+e;case 6060:return un+"box-"+It(e,"-grow","")+un+e+Cn+It(e,"grow","positive")+e;case 4554:return un+It(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return It(It(It(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return It(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return It(It(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4200:if(!ko(e,/flex-|baseline/))return Cn+"grid-column-align"+Gl(e,t)+e;break;case 2592:case 3360:return Cn+It(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ko(r.props,/grid-\w+-end/)})?~Xh(e+(n=n[t].value),"span",0)?e:Cn+It(e,"-start","")+e+Cn+"grid-row-span:"+(~Xh(n,"span",0)?ko(n,/\d+/):+ko(n,/\d+/)-+ko(e,/\d+/))+";":Cn+It(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ko(r.props,/grid-\w+-start/)})?e:Cn+It(It(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return It(e,/(.+)-inline(.+)/,un+"$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(Us(e)-1-t>6)switch(pr(e,t+1)){case 109:if(pr(e,t+4)!==45)break;case 102:return It(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+Lf+(pr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xh(e,"stretch",0)?uP(It(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return It(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,o,u,l,d){return Cn+i+":"+s+d+(o?Cn+i+"-span:"+(u?l:+l-+s)+d:"")+e});case 4949:if(pr(e,t+6)===121)return It(e,":",":"+un)+e;break;case 6444:switch(pr(e,pr(e,14)===45?18:11)){case 120:return It(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+un+(pr(e,14)===45?"inline-":"")+"box$3$1"+un+"$2$3$1"+Cn+"$2box$3")+e;case 100:return It(e,":",":"+Cn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return It(e,"scroll-","scroll-snap-")+e}return e}function wp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function xj(e,t,n,r){switch(e.type){case uj:if(e.children.length)break;case aj:case A4:return e.return=e.return||e.value;case nP:return"";case rP:return e.return=e.value+"{"+wp(e.children,r)+"}";case dm:if(!Us(e.value=e.props.join(",")))return""}return Us(n=wp(e.children,r))?e.return=e.value+"{"+n+"}":""}function wj(e){var t=oP(e);return function(n,r,i,s){for(var o="",u=0;u<t;u++)o+=e[u](n,r,i,s)||"";return o}}function Cj(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 A4:e.return=uP(e.value,e.length,n);return;case rP:return wp([da(e,{value:It(e.value,"@","@"+un)})],r);case dm:if(e.length)return cj(n=e.props,function(i){switch(ko(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bl(da(e,{props:[It(i,/:(read-\w+)/,":"+Lf+"$1")]})),bl(da(e,{props:[i]})),N1(e,{props:Ow(n,r)});break;case"::placeholder":bl(da(e,{props:[It(i,/:(plac\w+)/,":"+un+"input-$1")]})),bl(da(e,{props:[It(i,/:(plac\w+)/,":"+Lf+"$1")]})),bl(da(e,{props:[It(i,/:(plac\w+)/,Cn+"input-$1")]})),bl(da(e,{props:[i]})),N1(e,{props:Ow(n,r)});break}return""})}}var Ej={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},Tu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",P4=typeof window<"u"&&"HTMLElement"in window,Dj=!!(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"),Bw=/invalid hook call/i,Ah=new Set,Aj=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.
|
|
2
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
3
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var s=!0;console.error=function(o){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Bw.test(o)?(s=!1,Ah.delete(r)):i.apply(void 0,Au([o],u,!1))},A.useRef(),s&&!Ah.has(r)&&(console.warn(r),Ah.add(r))}catch(o){Bw.test(o.message)&&Ah.delete(r)}finally{console.error=i}}},gm=Object.freeze([]),Zl=Object.freeze({});function Tj(e,t,n){return n===void 0&&(n=Zl),e.theme!==n.theme&&e.theme||t||n.theme}var U1=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"]),Pj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_j=/(^-|-$)/g;function Vw(e){return e.replace(Pj,"-").replace(_j,"")}var Mj=/(a)(d)/gi,Nw=function(e){return String.fromCharCode(e+(e>25?39:97))};function z1(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Nw(t%52)+n;return(Nw(t%52)+n).replace(Mj,"$1-$2")}var uv,lu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},lP=function(e){return lu(5381,e)};function cP(e){return z1(lP(e)>>>0)}function fP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function lv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var dP=typeof Symbol=="function"&&Symbol.for,hP=dP?Symbol.for("react.memo"):60115,Rj=dP?Symbol.for("react.forward_ref"):60112,Fj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},kj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},pP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Oj=((uv={})[Rj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uv[hP]=pP,uv);function jw(e){return("type"in(t=e)&&t.type.$$typeof)===hP?pP:"$$typeof"in e?Oj[e.$$typeof]:Fj;var t}var Ij=Object.defineProperty,Lj=Object.getOwnPropertyNames,Kw=Object.getOwnPropertySymbols,Bj=Object.getOwnPropertyDescriptor,Vj=Object.getPrototypeOf,Uw=Object.prototype;function mP(e,t,n){if(typeof t!="string"){if(Uw){var r=Vj(t);r&&r!==Uw&&mP(e,r,n)}var i=Lj(t);Kw&&(i=i.concat(Kw(t)));for(var s=jw(e),o=jw(t),u=0;u<i.length;++u){var l=i[u];if(!(l in kj||n&&n[l]||o&&l in o||s&&l in s)){var d=Bj(t,l);try{Ij(e,l,d)}catch{}}}}return e}function Pu(e){return typeof e=="function"}function _4(e){return typeof e=="object"&&"styledComponentId"in e}function du(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function q1(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Xl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function W1(e,t,n){if(n===void 0&&(n=!1),!n&&!Xl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=W1(e[r],t[r]);else if(Xl(t))for(var r in t)e[r]=W1(e[r],t[r]);return e}function M4(e,t){Object.defineProperty(e,"toString",{value:t})}var Nj=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
4
|
+
|
|
5
|
+
`,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.
|
|
6
|
+
|
|
7
|
+
- Are you trying to reuse it across renders?
|
|
8
|
+
- Are you accidentally calling collectStyles twice?
|
|
9
|
+
|
|
10
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
11
|
+
|
|
12
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
13
|
+
|
|
14
|
+
- Does this error occur on the client and is your target falsy?
|
|
15
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
16
|
+
|
|
17
|
+
`,5:`The clone method cannot be used on the client!
|
|
18
|
+
|
|
19
|
+
- Are you running in a client-like environment on the server?
|
|
20
|
+
- Are you trying to run SSR on the client?
|
|
21
|
+
|
|
22
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
23
|
+
|
|
24
|
+
- Are you using a custom target that isn't mounted?
|
|
25
|
+
- Does your document not have a valid head element?
|
|
26
|
+
- Have you accidentally removed a style tag manually?
|
|
27
|
+
|
|
28
|
+
`,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.
|
|
29
|
+
|
|
30
|
+
`,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
|
|
31
|
+
|
|
32
|
+
`,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.
|
|
33
|
+
|
|
34
|
+
`,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.
|
|
35
|
+
|
|
36
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
37
|
+
|
|
38
|
+
`,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.
|
|
39
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
40
|
+
as for instance in your render method then you may be running into this limitation.
|
|
41
|
+
|
|
42
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
43
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
44
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function jj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(o){n=n.replace(/%[a-z]/,o)}),n}function Qs(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(jj.apply(void 0,Au([Nj[e]],t,!1)).trim())}var Kj=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,s=i;t>=s;)if((s<<=1)<0)throw Qs(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var u=this.indexOfGroup(t+1),l=(o=0,n.length);o<l;o++)this.tag.insertRule(u,n[o])&&(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 s=r;s<i;s++)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),s=i+r,o=i;o<s;o++)n+="".concat(this.tag.getRule(o)).concat(`/*!sc*/
|
|
45
|
+
`);return n},e}(),ep=new Map,Cp=new Map,tp=1,Th=function(e){if(ep.has(e))return ep.get(e);for(;Cp.has(tp);)tp++;var t=tp++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw Qs(16,"".concat(t));return ep.set(e,t),Cp.set(t,e),t},Uj=function(e,t){tp=t+1,ep.set(e,t),Cp.set(t,e)},zj="style[".concat(Tu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),qj=new RegExp("^".concat(Tu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wj=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s<o;s++)(r=i[s])&&e.registerName(t,r)},Hj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
|
|
46
|
+
`),i=[],s=0,o=r.length;s<o;s++){var u=r[s].trim();if(u){var l=u.match(qj);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(Uj(h,d),Wj(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}};function Gj(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var gP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(Tu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Tu,"active"),r.setAttribute("data-styled-version","6.1.1");var o=Gj();return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},Yj=function(){function e(t){this.element=gP(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var o=r[i];if(o.ownerNode===n)return o}throw Qs(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}(),Zj=function(){function e(t){this.element=gP(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}(),Xj=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}(),zw=P4,Jj={isServer:!P4,useCSSOMInjection:!Dj},vP=function(){function e(t,n,r){t===void 0&&(t=Zl),n===void 0&&(n={});var i=this;this.options=Mr(Mr({},Jj),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&P4&&zw&&(zw=!1,function(s){for(var o=document.querySelectorAll(zj),u=0,l=o.length;u<l;u++){var d=o[u];d&&d.getAttribute(Tu)!=="active"&&(Hj(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),M4(this,function(){return function(s){for(var o=s.getTag(),u=o.length,l="",d=function(m){var g=function(S){return Cp.get(S)}(m);if(g===void 0)return"continue";var b=s.names.get(g),$=o.getGroup(m);if(b===void 0||$.length===0)return"continue";var w="".concat(Tu,".g").concat(m,'[id="').concat(g,'"]'),D="";b!==void 0&&b.forEach(function(S){S.length>0&&(D+="".concat(S,","))}),l+="".concat($).concat(w,'{content:"').concat(D,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},h=0;h<u;h++)d(h);return l}(i)})}return e.registerId=function(t){return Th(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Mr(Mr({},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 Xj(i):r?new Yj(i):new Zj(i)}(this.options),new Kj(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(Th(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(Th(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Th(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qj=/&/g,eK=/^\s*\/\/.*$/gm;function yP(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=yP(n.children,t)),n})}function tK(e){var t,n,r,i=Zl,s=i.options,o=s===void 0?Zl:s,u=i.plugins,l=u===void 0?gm:u,d=function(g,b,$){return $===n||$.startsWith(n)&&$.endsWith(n)&&$.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===dm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Qj,n).replace(r,d))}),o.prefix&&h.push(Sj),h.push(xj);var m=function(g,b,$,w){b===void 0&&(b=""),$===void 0&&($=""),w===void 0&&(w="&"),t=w,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var D=g.replace(eK,""),S=bj($||b?"".concat($," ").concat(b," { ").concat(D," }"):D);o.namespace&&(S=yP(S,o.namespace));var C=[];return wp(S,wj(h.concat(Cj(function(T){return C.push(T)})))),C};return m.hash=l.length?l.reduce(function(g,b){return b.name||Qs(15),lu(g,b.name)},5381).toString():"",m}var nK=new vP,H1=tK(),bP=A.createContext({shouldForwardProp:void 0,styleSheet:nK,stylis:H1});bP.Consumer;A.createContext(void 0);function qw(){return A.useContext(bP)}var G1=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=H1);var o=r.name+s.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,s(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,M4(this,function(){throw Qs(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=H1),this.name+t.hash},e}(),rK=function(e){return e>="A"&&e<="Z"};function Ww(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;rK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var $P=function(e){return e==null||e===!1||e===""},xP=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!$P(s)&&(Array.isArray(s)&&s.isCss||Pu(s)?r.push("".concat(Ww(i),":"),s,";"):Xl(s)?r.push.apply(r,Au(Au(["".concat(i," {")],xP(s),!1),["}"],!1)):r.push("".concat(Ww(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Ej||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Cu(e,t,n,r){if($P(e))return[];if(_4(e))return[".".concat(e.styledComponentId)];if(Pu(e)){if(!Pu(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof G1||Xl(i)||i===null||console.error("".concat(fP(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.")),Cu(i,t,n,r)}var s;return e instanceof G1?n?(e.inject(n,r),[e.getName(r)]):[e]:Xl(e)?xP(e):Array.isArray(e)?Array.prototype.concat.apply(gm,e.map(function(o){return Cu(o,t,n,r)})):[e.toString()]}function iK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Pu(n)&&!_4(n))return!1}return!0}var sK=lP("6.1.1"),oK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&iK(t),this.componentId=n,this.baseHash=lu(sK,n),this.baseStyle=r,vP.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=du(i,this.staticRulesId);else{var s=q1(Cu(this.rules,t,n,r)),o=z1(lu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,o)){var u=r(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,u)}i=du(i,o),this.staticRulesId=o}else{for(var l=lu(this.baseHash,r.hash),d="",h=0;h<this.rules.length;h++){var m=this.rules[h];if(typeof m=="string")d+=m,process.env.NODE_ENV!=="production"&&(l=lu(l,m));else if(m){var g=q1(Cu(m,t,n,r));l=lu(l,g+h),d+=g}}if(d){var b=z1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=du(i,b)}}return i},e}(),Zf=A.createContext(void 0);Zf.Consumer;function aK(){var e=A.useContext(Zf);if(!e)throw Qs(18);return e}function uK(e){var t=A.useContext(Zf),n=A.useMemo(function(){return function(r,i){if(!r)throw Qs(14);if(Pu(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw Qs(7);return s}if(Array.isArray(r)||typeof r!="object")throw Qs(8);return i?Mr(Mr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?A.createElement(Zf.Provider,{value:n},e.children):null}var cv={},Hw=new Set;function lK(e,t,n){var r=_4(e),i=e,s=!lv(e),o=t.attrs,u=o===void 0?gm:o,l=t.componentId,d=l===void 0?function(O,M){var k=typeof O!="string"?"sc":Vw(O);cv[k]=(cv[k]||0)+1;var N="".concat(k,"-").concat(cP("6.1.1"+k+cv[k]));return M?"".concat(M,"-").concat(N):N}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(O){return lv(O)?"styled.".concat(O):"Styled(".concat(fP(O),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Vw(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,$=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;$=function(O,M){return w(O,M)&&D(O,M)}}else $=w}var S=new oK(n,g,r?i.componentStyle:void 0);function C(O,M){return function(k,N,F){var ae=k.attrs,oe=k.componentStyle,W=k.defaultProps,we=k.foldedComponentIds,ne=k.styledComponentId,se=k.target,z=A.useContext(Zf),K=qw(),j=k.shouldForwardProp||K.shouldForwardProp;process.env.NODE_ENV!=="production"&&A.useDebugValue(ne);var B=function(ke,Ie,Ze){for(var Ge,De=Mr(Mr({},Ie),{className:void 0,theme:Ze}),Ue=0;Ue<ke.length;Ue+=1){var _e=Pu(Ge=ke[Ue])?Ge(De):Ge;for(var Ve in _e)De[Ve]=Ve==="className"?du(De[Ve],_e[Ve]):Ve==="style"?Mr(Mr({},De[Ve]),_e[Ve]):_e[Ve]}return Ie.className&&(De.className=du(De.className,Ie.className)),De}(ae,N,Tj(N,z,W)||Zl),ge=B.as||se,U={};for(var G in B)B[G]===void 0||G[0]==="$"||G==="as"||G==="theme"||(G==="forwardedAs"?U.as=B.forwardedAs:j&&!j(G,ge)||(U[G]=B[G],j||process.env.NODE_ENV!=="development"||oj(G)||Hw.has(G)||!U1.has(ge)||(Hw.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" 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 Se=function(ke,Ie){var Ze=qw(),Ge=ke.generateAndInjectStyles(Ie,Ze.styleSheet,Ze.stylis);return process.env.NODE_ENV!=="production"&&A.useDebugValue(Ge),Ge}(oe,B);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(Se);var Pe=du(we,ne);return Se&&(Pe+=" "+Se),B.className&&(Pe+=" "+B.className),U[lv(ge)&&!U1.has(ge)?"class":"className"]=Pe,U.ref=F,A.createElement(ge,U)}(T,O,M)}C.displayName=m;var T=A.forwardRef(C);return T.attrs=b,T.componentStyle=S,T.displayName=m,T.shouldForwardProp=$,T.foldedComponentIds=r?du(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=r?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(M){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];for(var F=0,ae=k;F<ae.length;F++)W1(M,ae[F],!0);return M}({},i.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(Aj(m,g),T.warnTooManyClasses=function(O,M){var k={},N=!1;return function(F){if(!N&&(k[F]=!0,Object.keys(k).length>=200)){var ae=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(ae,`.
|
|
48
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
|
+
Example:
|
|
50
|
+
const Component = styled.div.attrs(props => ({
|
|
51
|
+
style: {
|
|
52
|
+
background: props.background,
|
|
53
|
+
},
|
|
54
|
+
}))\`width: 100%;\`
|
|
55
|
+
|
|
56
|
+
<Component />`),N=!0,k={}}}}(m,g)),M4(T,function(){return".".concat(T.styledComponentId)}),s&&mP(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function Gw(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 Yw=function(e){return Object.assign(e,{isCss:!0})};function R4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Pu(e)||Xl(e)){var r=e;return Yw(Cu(Gw(gm,Au([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Cu(i):Yw(Cu(Gw(i,t)))}function Y1(e,t,n){if(n===void 0&&(n=Zl),!t)throw Qs(1,t);var r=function(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];return e(t,n,R4.apply(void 0,Au([i],s,!1)))};return r.attrs=function(i){return Y1(e,t,Mr(Mr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Y1(e,t,Mr(Mr({},n),i))},r}var wP=function(e){return Y1(lK,e)},CP=wP;U1.forEach(function(e){CP[e]=wP(e)});function cK(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=q1(R4.apply(void 0,Au([e],t,!1))),i=cP(r);return new G1(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.
|
|
57
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ph="__sc-".concat(Tu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ph]||(window[Ph]=0),window[Ph]===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.
|
|
59
|
+
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[Ph]+=1);function vm(){return typeof window<"u"}function bc(e){return SP(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(SP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function SP(e){return vm()?e instanceof Node||e instanceof ai(e).Node:!1}function tr(e){return vm()?e instanceof Element||e instanceof ai(e).Element:!1}function Zi(e){return vm()?e instanceof HTMLElement||e instanceof ai(e).HTMLElement:!1}function Z1(e){return!vm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot}function $d(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$s(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function fK(e){return["table","td","th"].includes(bc(e))}function ym(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function F4(e){const t=k4(),n=tr(e)?$s(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 dK(e){let t=Da(e);for(;Zi(t)&&!Jl(t);){if(F4(t))return t;if(ym(t))return null;t=Da(t)}return null}function k4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jl(e){return["html","body","#document"].includes(bc(e))}function $s(e){return ai(e).getComputedStyle(e)}function bm(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Da(e){if(bc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Z1(e)&&e.host||so(e);return Z1(t)?t.host:t}function EP(e){const t=Da(e);return Jl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&$d(t)?t:EP(t)}function Xf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=EP(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ai(i);if(s){const u=X1(o);return t.concat(o,o.visualViewport||[],$d(i)?i:[],u&&n?Xf(u):[])}return t.concat(i,Xf(i,[],n))}function X1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zw(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 J1(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Z1(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function DP(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function AP(){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 hK(e){return gK()?!1:!Xw()&&e.width===0&&e.height===0||Xw()&&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 pK(){return/apple/i.test(navigator.vendor)}function Xw(){const e=/android/i;return e.test(DP())||e.test(AP())}function mK(){return DP().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gK(){return AP().includes("jsdom/")}function Q1(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Sf(e){return(e==null?void 0:e.ownerDocument)||document}function vK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const yK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function bK(e){return Zi(e)&&e.matches(yK)}const Sp=Math.min,Su=Math.max,Ep=Math.round,_h=Math.floor,eo=e=>({x:e,y:e}),$K={left:"right",right:"left",bottom:"top",top:"bottom"},xK={start:"end",end:"start"};function Jw(e,t,n){return Su(e,Sp(t,n))}function $m(e,t){return typeof e=="function"?e(t):e}function _u(e){return e.split("-")[0]}function xm(e){return e.split("-")[1]}function TP(e){return e==="x"?"y":"x"}function PP(e){return e==="y"?"height":"width"}function Ql(e){return["top","bottom"].includes(_u(e))?"y":"x"}function _P(e){return TP(Ql(e))}function wK(e,t,n){n===void 0&&(n=!1);const r=xm(e),i=_P(e),s=PP(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Dp(o)),[o,Dp(o)]}function CK(e){const t=Dp(e);return[eb(e),t,eb(t)]}function eb(e){return e.replace(/start|end/g,t=>xK[t])}function SK(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function EK(e,t,n,r){const i=xm(e);let s=SK(_u(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(eb)))),s}function Dp(e){return e.replace(/left|right|bottom|top/g,t=>$K[t])}function DK(e){return{top:0,right:0,bottom:0,left:0,...e}}function AK(e){return typeof e!="number"?DK(e):{top:e,right:e,bottom:e,left:e}}function Ap(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 Qw(e,t,n){let{reference:r,floating:i}=e;const s=Ql(t),o=_P(t),u=PP(o),l=_u(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(xm(t)){case"start":b[o]-=g*(n&&d?-1:1);break;case"end":b[o]+=g*(n&&d?-1:1);break}return b}const TK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,u=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Qw(d,r,l),g=r,b={},$=0;for(let w=0;w<u.length;w++){const{name:D,fn:S}=u[w],{x:C,y:T,data:O,reset:M}=await S({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:o,elements:{reference:e,floating:t}});h=C??h,m=T??m,b={...b,[D]:{...b[D],...O}},M&&$<=50&&($++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(d=M.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=Qw(d,g,l)),w=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function MP(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=$m(t,e),$=AK(b),D=u[g?m==="floating"?"reference":"floating":m],S=Ap(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(D)))==null||n?D:D.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),O=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},M=Ap(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:T,strategy:l}):C);return{top:(S.top-M.top+$.top)/O.y,bottom:(M.bottom-S.bottom+$.bottom)/O.y,left:(S.left-M.left+$.left)/O.x,right:(M.right-S.right+$.right)/O.x}}const PK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:w=!0,...D}=$m(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=_u(i),C=Ql(u),T=_u(u)===u,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=g||(T||!w?[Dp(u)]:CK(u)),k=$!=="none";!g&&k&&M.push(...EK(u,w,$,O));const N=[u,...M],F=await MP(t,D),ae=[];let oe=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&ae.push(F[S]),m){const se=wK(i,o,O);ae.push(F[se[0]],F[se[1]])}if(oe=[...oe,{placement:i,overflows:ae}],!ae.every(se=>se<=0)){var W,we;const se=(((W=s.flip)==null?void 0:W.index)||0)+1,z=N[se];if(z)return{data:{index:se,overflows:oe},reset:{placement:z}};let K=(we=oe.filter(j=>j.overflows[0]<=0).sort((j,B)=>j.overflows[1]-B.overflows[1])[0])==null?void 0:we.placement;if(!K)switch(b){case"bestFit":{var ne;const j=(ne=oe.filter(B=>{if(k){const ge=Ql(B.placement);return ge===C||ge==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(ge=>ge>0).reduce((ge,U)=>ge+U,0)]).sort((B,ge)=>B[1]-ge[1])[0])==null?void 0:ne[0];j&&(K=j);break}case"initialPlacement":K=u;break}if(i!==K)return{reset:{placement:K}}}return{}}}};async function _K(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=_u(n),u=xm(n),l=Ql(n)==="y",d=["left","top"].includes(o)?-1:1,h=s&&l?-1:1,m=$m(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:$}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof $=="number"&&(b=u==="end"?$*-1:$),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const MK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:u}=t,l=await _K(t,e);return o===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},RK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:u={fn:D=>{let{x:S,y:C}=D;return{x:S,y:C}}},...l}=$m(e,t),d={x:n,y:r},h=await MP(t,l),m=Ql(_u(i)),g=TP(m);let b=d[g],$=d[m];if(s){const D=g==="y"?"top":"left",S=g==="y"?"bottom":"right",C=b+h[D],T=b-h[S];b=Jw(C,b,T)}if(o){const D=m==="y"?"top":"left",S=m==="y"?"bottom":"right",C=$+h[D],T=$-h[S];$=Jw(C,$,T)}const w=u.fn({...t,[g]:b,[m]:$});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[m]:o}}}}}};function RP(e){const t=$s(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zi(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,u=Ep(n)!==s||Ep(r)!==o;return u&&(n=s,r=o),{width:n,height:r,$:u}}function O4(e){return tr(e)?e:e.contextElement}function Bl(e){const t=O4(e);if(!Zi(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=RP(t);let o=(s?Ep(n.width):n.width)/r,u=(s?Ep(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const FK=eo(0);function FP(e){const t=ai(e);return!k4()||!t.visualViewport?FK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ai(e)?!1:t}function Mu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=O4(e);let o=eo(1);t&&(r?tr(r)&&(o=Bl(r)):o=Bl(e));const u=kK(s,n,r)?FP(s):eo(0);let l=(i.left+u.x)/o.x,d=(i.top+u.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(s){const g=ai(s),b=r&&tr(r)?ai(r):r;let $=g,w=X1($);for(;w&&r&&b!==$;){const D=Bl(w),S=w.getBoundingClientRect(),C=$s(w),T=S.left+(w.clientLeft+parseFloat(C.paddingLeft))*D.x,O=S.top+(w.clientTop+parseFloat(C.paddingTop))*D.y;l*=D.x,d*=D.y,h*=D.x,m*=D.y,l+=T,d+=O,$=ai(w),w=X1($)}}return Ap({width:h,height:m,x:l,y:d})}function I4(e,t){const n=bm(e).scrollLeft;return t?t.left+n:Mu(so(e)).left+n}function kP(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:I4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function OK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=so(r),u=t?ym(t.floating):!1;if(r===o||u&&s)return n;let l={scrollLeft:0,scrollTop:0},d=eo(1);const h=eo(0),m=Zi(r);if((m||!m&&!s)&&((bc(r)!=="body"||$d(o))&&(l=bm(r)),Zi(r))){const b=Mu(r);d=Bl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!s?kP(o,l,!0):eo(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function IK(e){return Array.from(e.getClientRects())}function LK(e){const t=so(e),n=bm(e),r=e.ownerDocument.body,i=Su(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Su(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+I4(e);const u=-n.scrollTop;return $s(r).direction==="rtl"&&(o+=Su(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:u}}function BK(e,t){const n=ai(e),r=so(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,u=0,l=0;if(i){s=i.width,o=i.height;const d=k4();(!d||d&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:u,y:l}}function VK(e,t){const n=Mu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Zi(e)?Bl(e):eo(1),o=e.clientWidth*s.x,u=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:o,height:u,x:l,y:d}}function eC(e,t,n){let r;if(t==="viewport")r=BK(e,n);else if(t==="document")r=LK(so(e));else if(tr(t))r=VK(t,n);else{const i=FP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ap(r)}function OP(e,t){const n=Da(e);return n===t||!tr(n)||Jl(n)?!1:$s(n).position==="fixed"||OP(n,t)}function NK(e,t){const n=t.get(e);if(n)return n;let r=Xf(e,[],!1).filter(u=>tr(u)&&bc(u)!=="body"),i=null;const s=$s(e).position==="fixed";let o=s?Da(e):e;for(;tr(o)&&!Jl(o);){const u=$s(o),l=F4(o);!l&&u.position==="fixed"&&(i=null),(s?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$d(o)&&!l&&OP(e,o))?r=r.filter(h=>h!==o):i=u,o=Da(o)}return t.set(e,r),r}function jK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?ym(t)?[]:NK(t,this._c):[].concat(n),r],u=o[0],l=o.reduce((d,h)=>{const m=eC(t,h,i);return d.top=Su(m.top,d.top),d.right=Sp(m.right,d.right),d.bottom=Sp(m.bottom,d.bottom),d.left=Su(m.left,d.left),d},eC(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KK(e){const{width:t,height:n}=RP(e);return{width:t,height:n}}function UK(e,t,n){const r=Zi(t),i=so(t),s=n==="fixed",o=Mu(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const l=eo(0);if(r||!r&&!s)if((bc(t)!=="body"||$d(i))&&(u=bm(t)),r){const g=Mu(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&(l.x=I4(i));const d=i&&!r&&!s?kP(i,u):eo(0),h=o.left+u.scrollLeft-l.x-d.x,m=o.top+u.scrollTop-l.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function fv(e){return $s(e).position==="static"}function tC(e,t){if(!Zi(e)||$s(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function IP(e,t){const n=ai(e);if(ym(e))return n;if(!Zi(e)){let i=Da(e);for(;i&&!Jl(i);){if(tr(i)&&!fv(i))return i;i=Da(i)}return n}let r=tC(e,t);for(;r&&fK(r)&&fv(r);)r=tC(r,t);return r&&Jl(r)&&fv(r)&&!F4(r)?n:r||dK(e)||n}const zK=async function(e){const t=this.getOffsetParent||IP,n=this.getDimensions,r=await n(e.floating);return{reference:UK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qK(e){return $s(e).direction==="rtl"}const WK={convertOffsetParentRelativeRectToViewportRelativeRect:OK,getDocumentElement:so,getClippingRect:jK,getOffsetParent:IP,getElementRects:zK,getClientRects:IK,getDimensions:KK,getScale:Bl,isElement:tr,isRTL:qK};function LP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function HK(e,t){let n=null,r;const i=so(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function o(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(u||t(),!g||!b)return;const $=_h(m),w=_h(i.clientWidth-(h+g)),D=_h(i.clientHeight-(m+b)),S=_h(h),T={rootMargin:-$+"px "+-w+"px "+-D+"px "+-S+"px",threshold:Su(0,Sp(1,l))||1};let O=!0;function M(k){const N=k[0].intersectionRatio;if(N!==l){if(!O)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!LP(d,e.getBoundingClientRect())&&o(),O=!1}try{n=new IntersectionObserver(M,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,T)}n.observe(e)}return o(!0),s}function GK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=O4(e),h=i||s?[...d?Xf(d):[],...Xf(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=d&&u?HK(d,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(S=>{let[C]=S;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let $,w=l?Mu(e):null;l&&D();function D(){const S=Mu(e);w&&!LP(w,S)&&n(),w=S,$=requestAnimationFrame(D)}return n(),()=>{var S;h.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,l&&cancelAnimationFrame($)}}const YK=MK,ZK=RK,XK=PK,JK=(e,t,n)=>{const r=new Map,i={platform:WK,...n},s={...i.platform,_c:r};return TK(e,t,{...i,platform:s})};var np=typeof document<"u"?A.useLayoutEffect:A.useEffect;function Tp(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(!Tp(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 s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Tp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function BP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nC(e,t){const n=BP(e);return Math.round(t*n)/n}function dv(e){const t=Ye.useRef(e);return np(()=>{t.current=e}),t}function VP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:u=!0,whileElementsMounted:l,open:d}=e,[h,m]=Ye.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=Ye.useState(r);Tp(g,r)||b(r);const[$,w]=Ye.useState(null),[D,S]=Ye.useState(null),C=Ye.useCallback(B=>{B!==k.current&&(k.current=B,w(B))},[]),T=Ye.useCallback(B=>{B!==N.current&&(N.current=B,S(B))},[]),O=s||$,M=o||D,k=Ye.useRef(null),N=Ye.useRef(null),F=Ye.useRef(h),ae=l!=null,oe=dv(l),W=dv(i),we=dv(d),ne=Ye.useCallback(()=>{if(!k.current||!N.current)return;const B={placement:t,strategy:n,middleware:g};W.current&&(B.platform=W.current),JK(k.current,N.current,B).then(ge=>{const U={...ge,isPositioned:we.current!==!1};se.current&&!Tp(F.current,U)&&(F.current=U,Zh.flushSync(()=>{m(U)}))})},[g,t,n,W,we]);np(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const se=Ye.useRef(!1);np(()=>(se.current=!0,()=>{se.current=!1}),[]),np(()=>{if(O&&(k.current=O),M&&(N.current=M),O&&M){if(oe.current)return oe.current(O,M,ne);ne()}},[O,M,ne,oe,ae]);const z=Ye.useMemo(()=>({reference:k,floating:N,setReference:C,setFloating:T}),[C,T]),K=Ye.useMemo(()=>({reference:O,floating:M}),[O,M]),j=Ye.useMemo(()=>{const B={position:n,left:0,top:0};if(!K.floating)return B;const ge=nC(K.floating,h.x),U=nC(K.floating,h.y);return u?{...B,transform:"translate("+ge+"px, "+U+"px)",...BP(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:U}},[n,u,K.floating,h.x,h.y]);return Ye.useMemo(()=>({...h,update:ne,refs:z,elements:K,floatingStyles:j}),[h,ne,z,K,j])}const QK=(e,t)=>({...YK(e),options:[e,t]}),eU=(e,t)=>({...ZK(e),options:[e,t]}),tU=(e,t)=>({...XK(e),options:[e,t]}),NP={...Ye},nU=NP.useInsertionEffect,rU=nU||(e=>e());function rp(e){const t=Ye.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rU(()=>{t.current=e}),Ye.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 ec=typeof document<"u"?A.useLayoutEffect:A.useEffect;let rC=!1,iU=0;const iC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+iU++;function sU(){const[e,t]=Ye.useState(()=>rC?iC():void 0);return ec(()=>{e==null&&t(iC())},[]),Ye.useEffect(()=>{rC=!0},[]),e}const oU=NP.useId,jP=oU||sU;let tb;process.env.NODE_ENV!=="production"&&(tb=new Set);function aU(){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=tb)!=null&&e.has(i))){var s;(s=tb)==null||s.add(i),console.error(i)}}function uU(){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 lU=Ye.createContext(null),cU=Ye.createContext(null),L4=()=>{var e;return((e=Ye.useContext(lU))==null?void 0:e.id)||null},KP=()=>Ye.useContext(cU);function UP(e){return"data-floating-ui-"+e}function Li(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function hv(e){const t=A.useRef(e);return ec(()=>{t.current=e}),t}const sC=UP("safe-polygon");function pv(e,t,n){return n&&!Q1(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function fU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:o}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=KP(),$=L4(),w=hv(d),D=hv(l),S=hv(n),C=Ye.useRef(),T=Ye.useRef(-1),O=Ye.useRef(),M=Ye.useRef(-1),k=Ye.useRef(!0),N=Ye.useRef(!1),F=Ye.useRef(()=>{}),ae=Ye.useRef(!1),oe=Ye.useCallback(()=>{var j;const B=(j=i.current.openEvent)==null?void 0:j.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);Ye.useEffect(()=>{if(!u)return;function j(B){let{open:ge}=B;ge||(Li(T),Li(M),k.current=!0,ae.current=!1)}return s.on("openchange",j),()=>{s.off("openchange",j)}},[u,s]),Ye.useEffect(()=>{if(!u||!w.current||!n)return;function j(ge){oe()&&r(!1,ge,"hover")}const B=Sf(o.floating).documentElement;return B.addEventListener("mouseleave",j),()=>{B.removeEventListener("mouseleave",j)}},[o.floating,n,r,u,w,oe]);const W=Ye.useCallback(function(j,B,ge){B===void 0&&(B=!0),ge===void 0&&(ge="hover");const U=pv(D.current,"close",C.current);U&&!O.current?(Li(T),T.current=window.setTimeout(()=>r(!1,j,ge),U)):B&&(Li(T),r(!1,j,ge))},[D,r]),we=rp(()=>{F.current(),O.current=void 0}),ne=rp(()=>{if(N.current){const j=Sf(o.floating).body;j.style.pointerEvents="",j.removeAttribute(sC),N.current=!1}}),se=rp(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Ye.useEffect(()=>{if(!u)return;function j(G){if(Li(T),k.current=!1,h&&!Q1(C.current)||m>0&&!pv(D.current,"open"))return;const Se=pv(D.current,"open",C.current);Se?T.current=window.setTimeout(()=>{S.current||r(!0,G,"hover")},Se):n||r(!0,G,"hover")}function B(G){if(se())return;F.current();const Se=Sf(o.floating);if(Li(M),ae.current=!1,w.current&&i.current.floatingContext){n||Li(T),O.current=w.current({...i.current.floatingContext,tree:b,x:G.clientX,y:G.clientY,onClose(){ne(),we(),se()||W(G,!0,"safe-polygon")}});const ke=O.current;Se.addEventListener("mousemove",ke),F.current=()=>{Se.removeEventListener("mousemove",ke)};return}(C.current==="touch"?!J1(o.floating,G.relatedTarget):!0)&&W(G)}function ge(G){se()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:b,x:G.clientX,y:G.clientY,onClose(){ne(),we(),se()||W(G)}})(G))}if(tr(o.domReference)){var U;const G=o.domReference;return n&&G.addEventListener("mouseleave",ge),(U=o.floating)==null||U.addEventListener("mouseleave",ge),g&&G.addEventListener("mousemove",j,{once:!0}),G.addEventListener("mouseenter",j),G.addEventListener("mouseleave",B),()=>{var Se;n&&G.removeEventListener("mouseleave",ge),(Se=o.floating)==null||Se.removeEventListener("mouseleave",ge),g&&G.removeEventListener("mousemove",j),G.removeEventListener("mouseenter",j),G.removeEventListener("mouseleave",B)}}},[o,u,e,h,m,g,W,we,ne,r,n,S,b,D,w,i,se]),ec(()=>{var j;if(u&&n&&(j=w.current)!=null&&j.__options.blockPointerEvents&&oe()){N.current=!0;const ge=o.floating;if(tr(o.domReference)&&ge){var B;const U=Sf(o.floating).body;U.setAttribute(sC,"");const G=o.domReference,Se=b==null||(B=b.nodesRef.current.find(Pe=>Pe.id===$))==null||(B=B.context)==null?void 0:B.elements.floating;return Se&&(Se.style.pointerEvents=""),U.style.pointerEvents="none",G.style.pointerEvents="auto",ge.style.pointerEvents="auto",()=>{U.style.pointerEvents="",G.style.pointerEvents="",ge.style.pointerEvents=""}}}},[u,n,$,o,b,w,oe]),ec(()=>{n||(C.current=void 0,ae.current=!1,we(),ne())},[n,we,ne]),Ye.useEffect(()=>()=>{we(),Li(T),Li(M),ne()},[u,o.domReference,we,ne]);const z=Ye.useMemo(()=>{function j(B){C.current=B.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(B){const{nativeEvent:ge}=B;function U(){!k.current&&!S.current&&r(!0,ge,"hover")}h&&!Q1(C.current)||n||m===0||ae.current&&B.movementX**2+B.movementY**2<2||(Li(M),C.current==="touch"?U():(ae.current=!0,M.current=window.setTimeout(U,m)))}}},[h,r,n,S,m]),K=Ye.useMemo(()=>({onMouseEnter(){Li(T)},onMouseLeave(j){se()||W(j.nativeEvent,!1)}}),[W,se]);return Ye.useMemo(()=>u?{reference:z,floating:K}:{},[u,z,K])}const dU="data-floating-ui-focusable";function hU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=jP(),s=Ye.useRef({}),[o]=Ye.useState(()=>uU()),u=L4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&aU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=Ye.useState(r.reference),h=rp((b,$,w)=>{s.current.openEvent=b?$:void 0,o.emit("openchange",{open:b,event:$,reason:w,nested:u}),n==null||n(b,$,w)}),m=Ye.useMemo(()=>({setPositionReference:d}),[]),g=Ye.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return Ye.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function pU(e){e===void 0&&(e={});const{nodeId:t}=e,n=hU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,o]=Ye.useState(null),[u,l]=Ye.useState(null),h=(i==null?void 0:i.domReference)||s,m=Ye.useRef(null),g=KP();ec(()=>{h&&(m.current=h)},[h]);const b=VP({...e,elements:{...i,...u&&{reference:u}}}),$=Ye.useCallback(T=>{const O=tr(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),contextElement:T}:T;l(O),b.refs.setReference(O)},[b.refs]),w=Ye.useCallback(T=>{(tr(T)||T===null)&&(m.current=T,o(T)),(tr(b.refs.reference.current)||b.refs.reference.current===null||T!==null&&!tr(T))&&b.refs.setReference(T)},[b.refs]),D=Ye.useMemo(()=>({...b.refs,setReference:w,setPositionReference:$,domReference:m}),[b.refs,w,$]),S=Ye.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=Ye.useMemo(()=>({...b,...r,refs:D,elements:S,nodeId:t}),[b,D,S,t,r]);return ec(()=>{r.dataRef.current.floatingContext=C;const T=g==null?void 0:g.nodesRef.current.find(O=>O.id===t);T&&(T.context=C)}),Ye.useMemo(()=>({...b,context:C,refs:D,elements:S}),[b,D,S,C])}function mU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:o}=e,{enabled:u=!0,visibleOnly:l=!0}=t,d=Ye.useRef(!1),h=Ye.useRef(-1),m=Ye.useRef(!0);Ye.useEffect(()=>{if(!u)return;const b=ai(o.domReference);function $(){!n&&Zi(o.domReference)&&o.domReference===Zw(Sf(o.domReference))&&(d.current=!0)}function w(){m.current=!0}return b.addEventListener("blur",$),b.addEventListener("keydown",w,!0),()=>{b.removeEventListener("blur",$),b.removeEventListener("keydown",w,!0)}},[o.domReference,n,u]),Ye.useEffect(()=>{if(!u)return;function b($){let{reason:w}=$;(w==="reference-press"||w==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,u]),Ye.useEffect(()=>()=>{Li(h)},[]);const g=Ye.useMemo(()=>({onPointerDown(b){hK(b.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const $=vK(b.nativeEvent);if(l&&tr($))try{if(pK()&&mK())throw Error();if(!$.matches(":focus-visible"))return}catch{if(!m.current&&!bK($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const $=b.relatedTarget,w=b.nativeEvent,D=tr($)&&$.hasAttribute(UP("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const C=Zw(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||J1((S=s.current.floatingContext)==null?void 0:S.refs.floating.current,C)||J1(o.domReference,C)||D||r(!1,w,"focus")})}}),[s,o.domReference,r,l]);return Ye.useMemo(()=>u?{reference:g}:{},[u,g])}const oC="active",aC="selected";function mv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[oC]:o,[aC]:u,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[dU]:""},...s,...t.map(o=>{const u=o?o[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((o,u)=>(u&&Object.entries(u).forEach(l=>{let[d,h]=l;if(!(i&&[oC,aC].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),o[d]=function(){for(var g,b=arguments.length,$=new Array(b),w=0;w<b;w++)$[w]=arguments[w];return(g=r.get(d))==null?void 0:g.map(D=>D(...$)).find(D=>D!==void 0)}}}else o[d]=h}),o),{})}}function gU(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=Ye.useCallback(u=>mv(u,e,"reference"),t),s=Ye.useCallback(u=>mv(u,e,"floating"),n),o=Ye.useCallback(u=>mv(u,e,"item"),r);return Ye.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:o}),[i,s,o])}const vU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function yU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:s=!0,role:o="dialog"}=t,u=(n=vU.get(o))!=null?n:o,l=jP(),h=L4()!=null,m=Ye.useMemo(()=>u==="tooltip"||o==="label"?{["aria-"+(o==="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"&&h&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[u,i,h,r,l,o]),g=Ye.useMemo(()=>{const $={id:i,...u&&{role:u}};return u==="tooltip"||o==="label"?$:{...$,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,o]),b=Ye.useCallback($=>{let{active:w,selected:D}=$;const S={role:"option",...w&&{id:i+"-option"}};switch(o){case"select":return{...S,"aria-selected":w&&D};case"combobox":return{...S,...w&&{"aria-selected":!0}}}return{}},[i,o]);return Ye.useMemo(()=>s?{reference:m,floating:g,item:b}:{},[s,m,g,b])}var Ef={exports:{}};/**
|
|
61
|
+
* @license
|
|
62
|
+
* Lodash <https://lodash.com/>
|
|
63
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
64
|
+
* Released under MIT license <https://lodash.com/license>
|
|
65
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
66
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
67
|
+
*/var bU=Ef.exports,uC;function $U(){return uC||(uC=1,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,$=1,w=2,D=1,S=2,C=4,T=8,O=16,M=32,k=64,N=128,F=256,ae=512,oe=30,W="...",we=800,ne=16,se=1,z=2,K=3,j=1/0,B=9007199254740991,ge=17976931348623157e292,U=NaN,G=4294967295,Se=G-1,Pe=G>>>1,ke=[["ary",N],["bind",D],["bindKey",S],["curry",T],["curryRight",O],["flip",ae],["partial",M],["partialRight",k],["rearg",F]],Ie="[object Arguments]",Ze="[object Array]",Ge="[object AsyncFunction]",De="[object Boolean]",Ue="[object Date]",_e="[object DOMException]",Ve="[object Error]",Le="[object Function]",nt="[object GeneratorFunction]",xt="[object Map]",ln="[object Number]",$t="[object Null]",Rt="[object Object]",$e="[object Promise]",Ee="[object Proxy]",Te="[object RegExp]",He="[object Set]",et="[object String]",Je="[object Symbol]",lt="[object Undefined]",bt="[object WeakMap]",gn="[object WeakSet]",Jt="[object ArrayBuffer]",Ut="[object DataView]",Yr="[object Float32Array]",Fr="[object Float64Array]",rn="[object Int8Array]",Pt="[object Int16Array]",Lt="[object Int32Array]",Yt="[object Uint8Array]",sr="[object Uint8ClampedArray]",Qi="[object Uint16Array]",es="[object Uint32Array]",Ci=/\b__p \+= '';/g,Ds=/\b(__p \+=) '' \+/g,ka=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yt=/&(?:amp|lt|gt|quot|#39);/g,ci=/[&<>"']/g,ao=RegExp(yt.source),kc=RegExp(ci.source),qu=/<%-([\s\S]+?)%>/g,Oc=/<%([\s\S]+?)%>/g,Wu=/<%=([\s\S]+?)%>/g,Oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hu=/^\w*$/,ts=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ns=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(ns.source),En=/^\s+/,uo=/\s/,Gu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wr=/\{\n\/\* \[wrapped with (.+)\] \*/,Yu=/,? & /,Zu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ic=/[()=,{}\[\]\/\s]/,Zr=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,rs=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Zn=/^\[object .+?Constructor\]$/,Ia=/^0o[0-7]+$/i,As=/^(?:0|[1-9]\d*)$/,di=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,On=/($^)/,Jo=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",Lc="\\u0300-\\u036f",Xu="\\ufe20-\\ufe2f",Bc="\\u20d0-\\u20ff",La=Lc+Xu+Bc,lo="\\u2700-\\u27bf",Ju="a-z\\xdf-\\xf6\\xf8-\\xff",Ba="\\xac\\xb1\\xd7\\xf7",Vc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nc="\\u2000-\\u206f",jc=" \\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",Qu="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",Na=Ba+Vc+Nc+jc,co="['’]",el="["+jt+"]",tl="["+Na+"]",kr="["+La+"]",gr="\\d+",Or="["+lo+"]",Ts="["+Ju+"]",Qo="[^"+jt+Na+gr+lo+Ju+Qu+"]",vr="\\ud83c[\\udffb-\\udfff]",fo="(?:"+kr+"|"+vr+")",ho="[^"+jt+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",hi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+Qu+"]",Ei="\\u200d",ja="(?:"+Ts+"|"+Qo+")",nl="(?:"+or+"|"+Qo+")",vn="(?:"+co+"(?:d|ll|m|re|s|t|ve))?",Ka="(?:"+co+"(?:D|LL|M|RE|S|T|VE))?",po=fo+"?",Ua="["+Va+"]?",rl="(?:"+Ei+"(?:"+[ho,Si,hi].join("|")+")"+Ua+po+")*",Ir="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ps=Ua+po+rl,_s="(?:"+[Or,Si,hi].join("|")+")"+Ps,mo="(?:"+[ho+kr+"?",kr,Si,hi,el].join("|")+")",is=RegExp(co,"g"),go=RegExp(kr,"g"),ea=RegExp(vr+"(?="+vr+")|"+mo+Ps,"g"),il=RegExp([or+"?"+Ts+"+"+vn+"(?="+[tl,or,"$"].join("|")+")",nl+"+"+Ka+"(?="+[tl,or+ja,"$"].join("|")+")",or+"?"+ja+"+"+vn,or+"+"+Ka,za,Ir,gr,_s].join("|"),"g"),Kc=RegExp("["+Ei+jt+La+Va+"]"),vo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uc=["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"],yo=-1,Wt={};Wt[Yr]=Wt[Fr]=Wt[rn]=Wt[Pt]=Wt[Lt]=Wt[Yt]=Wt[sr]=Wt[Qi]=Wt[es]=!0,Wt[Ie]=Wt[Ze]=Wt[Jt]=Wt[De]=Wt[Ut]=Wt[Ue]=Wt[Ve]=Wt[Le]=Wt[xt]=Wt[ln]=Wt[Rt]=Wt[Te]=Wt[He]=Wt[et]=Wt[bt]=!1;var Qt={};Qt[Ie]=Qt[Ze]=Qt[Jt]=Qt[Ut]=Qt[De]=Qt[Ue]=Qt[Yr]=Qt[Fr]=Qt[rn]=Qt[Pt]=Qt[Lt]=Qt[xt]=Qt[ln]=Qt[Rt]=Qt[Te]=Qt[He]=Qt[et]=Qt[Je]=Qt[Yt]=Qt[sr]=Qt[Qi]=Qt[es]=!0,Qt[Ve]=Qt[Le]=Qt[bt]=!1;var ue={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Me={"&":"&","<":"<",">":">",'"':""","'":"'"},qe={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$n=parseFloat,nr=parseInt,ar=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Nn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=ar||Nn||Function("return this")(),Di=t&&!t.nodeType&&t,Ai=Di&&!0&&e&&!e.nodeType&&e,qa=Ai&&Ai.exports===Di,ta=qa&&ar.process,ur=function(){try{var R=Ai&&Ai.require&&Ai.require("util").types;return R||ta&&ta.binding&&ta.binding("util")}catch{}}(),bo=ur&&ur.isArrayBuffer,Jd=ur&&ur.isDate,Qd=ur&&ur.isMap,zc=ur&&ur.isRegExp,na=ur&&ur.isSet,ss=ur&&ur.isTypedArray;function In(R,te,Z){switch(Z.length){case 0:return R.call(te);case 1:return R.call(te,Z[0]);case 2:return R.call(te,Z[0],Z[1]);case 3:return R.call(te,Z[0],Z[1],Z[2])}return R.apply(te,Z)}function Ms(R,te,Z,de){for(var fe=-1,H=R==null?0:R.length;++fe<H;){var X=R[fe];te(de,X,Z(X),R)}return de}function hn(R,te){for(var Z=-1,de=R==null?0:R.length;++Z<de&&te(R[Z],Z,R)!==!1;);return R}function lr(R,te){for(var Z=R==null?0:R.length;Z--&&te(R[Z],Z,R)!==!1;);return R}function $o(R,te){for(var Z=-1,de=R==null?0:R.length;++Z<de;)if(!te(R[Z],Z,R))return!1;return!0}function Cr(R,te){for(var Z=-1,de=R==null?0:R.length,fe=0,H=[];++Z<de;){var X=R[Z];te(X,Z,R)&&(H[fe++]=X)}return H}function Rs(R,te){var Z=R==null?0:R.length;return!!Z&&xo(R,te,0)>-1}function sl(R,te,Z){for(var de=-1,fe=R==null?0:R.length;++de<fe;)if(Z(te,R[de]))return!0;return!1}function cn(R,te){for(var Z=-1,de=R==null?0:R.length,fe=Array(de);++Z<de;)fe[Z]=te(R[Z],Z,R);return fe}function os(R,te){for(var Z=-1,de=te.length,fe=R.length;++Z<de;)R[fe+Z]=te[Z];return R}function ol(R,te,Z,de){var fe=-1,H=R==null?0:R.length;for(de&&H&&(Z=R[++fe]);++fe<H;)Z=te(Z,R[fe],fe,R);return Z}function Wa(R,te,Z,de){var fe=R==null?0:R.length;for(de&&fe&&(Z=R[--fe]);fe--;)Z=te(Z,R[fe],fe,R);return Z}function Fs(R,te){for(var Z=-1,de=R==null?0:R.length;++Z<de;)if(te(R[Z],Z,R))return!0;return!1}var Ha=al("length");function Ga(R){return R.split("")}function dg(R){return R.match(Zu)||[]}function qc(R,te,Z){var de;return Z(R,function(fe,H,X){if(te(fe,H,X))return de=H,!1}),de}function Ya(R,te,Z,de){for(var fe=R.length,H=Z+(de?1:-1);de?H--:++H<fe;)if(te(R[H],H,R))return H;return-1}function xo(R,te,Z){return te===te?p(R,te,Z):Ya(R,Wc,Z)}function eh(R,te,Z,de){for(var fe=Z-1,H=R.length;++fe<H;)if(de(R[fe],te))return fe;return-1}function Wc(R){return R!==R}function Za(R,te){var Z=R==null?0:R.length;return Z?ks(R,te)/Z:U}function al(R){return function(te){return te==null?n:te[R]}}function ul(R){return function(te){return R==null?n:R[te]}}function Hc(R,te,Z,de,fe){return fe(R,function(H,X,I){Z=de?(de=!1,H):te(Z,H,X,I)}),Z}function Xa(R,te){var Z=R.length;for(R.sort(te);Z--;)R[Z]=R[Z].value;return R}function ks(R,te){for(var Z,de=-1,fe=R.length;++de<fe;){var H=te(R[de]);H!==n&&(Z=Z===n?H:Z+H)}return Z}function ll(R,te){for(var Z=-1,de=Array(R);++Z<R;)de[Z]=te(Z);return de}function hg(R,te){return cn(te,function(Z){return[Z,R[Z]]})}function th(R){return R&&R.slice(0,_(R)+1).replace(En,"")}function Sr(R){return function(te){return R(te)}}function Gc(R,te){return cn(te,function(Z){return R[Z]})}function yn(R,te){return R.has(te)}function cl(R,te){for(var Z=-1,de=R.length;++Z<de&&xo(te,R[Z],0)>-1;);return Z}function cr(R,te){for(var Z=R.length;Z--&&xo(te,R[Z],0)>-1;);return Z}function pg(R,te){for(var Z=R.length,de=0;Z--;)R[Z]===te&&++de;return de}var mg=ul(ue),wo=ul(Me);function pi(R){return"\\"+pt[R]}function gg(R,te){return R==null?n:R[te]}function Er(R){return Kc.test(R)}function Yc(R){return vo.test(R)}function Os(R){for(var te,Z=[];!(te=R.next()).done;)Z.push(te.value);return Z}function Ln(R){var te=-1,Z=Array(R.size);return R.forEach(function(de,fe){Z[++te]=[fe,de]}),Z}function Ti(R,te){return function(Z){return R(te(Z))}}function Xr(R,te){for(var Z=-1,de=R.length,fe=0,H=[];++Z<de;){var X=R[Z];(X===te||X===h)&&(R[Z]=h,H[fe++]=Z)}return H}function ra(R){var te=-1,Z=Array(R.size);return R.forEach(function(de){Z[++te]=de}),Z}function c(R){var te=-1,Z=Array(R.size);return R.forEach(function(de){Z[++te]=[de,de]}),Z}function p(R,te,Z){for(var de=Z-1,fe=R.length;++de<fe;)if(R[de]===te)return de;return-1}function v(R,te,Z){for(var de=Z+1;de--;)if(R[de]===te)return de;return de}function x(R){return Er(R)?pe(R):Ha(R)}function P(R){return Er(R)?ee(R):Ga(R)}function _(R){for(var te=R.length;te--&&uo.test(R.charAt(te)););return te}var q=ul(qe);function pe(R){for(var te=ea.lastIndex=0;ea.test(R);)++te;return te}function ee(R){return R.match(ea)||[]}function ye(R){return R.match(il)||[]}var xe=function R(te){te=te==null?Dn:Re.defaults(Dn.Object(),te,Re.pick(Dn,Uc));var Z=te.Array,de=te.Date,fe=te.Error,H=te.Function,X=te.Math,I=te.Object,V=te.RegExp,Y=te.String,re=te.TypeError,le=Z.prototype,he=H.prototype,Oe=I.prototype,tt=te["__core-js_shared__"],Qe=he.toString,Ne=Oe.hasOwnProperty,at=0,ft=function(){var a=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Be=Oe.toString,be=Qe.call(I),ce=Dn._,Q=V("^"+Qe.call(Ne).replace(ns,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=qa?te.Buffer:n,je=te.Symbol,Fe=te.Uint8Array,ct=me?me.allocUnsafe:n,Tt=Ti(I.getPrototypeOf,I),Ct=I.create,xn=Oe.propertyIsEnumerable,zt=le.splice,fr=je?je.isConcatSpreadable:n,Xn=je?je.iterator:n,Bn=je?je.toStringTag:n,jn=function(){try{var a=nu(I,"defineProperty");return a({},"",{}),a}catch{}}(),Kn=te.clearTimeout!==Dn.clearTimeout&&te.clearTimeout,yr=de&&de.now!==Dn.Date.now&&de.now,dt=te.setTimeout!==Dn.setTimeout&&te.setTimeout,fn=X.ceil,Jr=X.floor,Pi=I.getOwnPropertySymbols,as=me?me.isBuffer:n,mi=te.isFinite,us=le.join,ls=Ti(I.keys,I),Ht=X.max,wn=X.min,Is=de.now,gi=te.parseInt,cs=X.random,vi=le.reverse,fs=nu(te,"DataView"),Ls=nu(te,"Map"),ia=nu(te,"Promise"),fl=nu(te,"Set"),Zc=nu(te,"WeakMap"),Xc=nu(I,"create"),nh=Zc&&new Zc,dl={},d9=ru(fs),h9=ru(Ls),p9=ru(ia),m9=ru(fl),g9=ru(Zc),rh=je?je.prototype:n,Jc=rh?rh.valueOf:n,Q$=rh?rh.toString:n;function J(a){if(Vn(a)&&!_t(a)&&!(a instanceof Kt)){if(a instanceof _i)return a;if(Ne.call(a,"__wrapped__"))return ew(a)}return new _i(a)}var hl=function(){function a(){}return function(f){if(!_n(f))return{};if(Ct)return Ct(f);a.prototype=f;var y=new a;return a.prototype=n,y}}();function ih(){}function _i(a,f){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}J.templateSettings={escape:qu,evaluate:Oc,interpolate:Wu,variable:"",imports:{_:J}},J.prototype=ih.prototype,J.prototype.constructor=J,_i.prototype=hl(ih.prototype),_i.prototype.constructor=_i;function Kt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function v9(){var a=new Kt(this.__wrapped__);return a.__actions__=Qr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Qr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Qr(this.__views__),a}function y9(){if(this.__filtered__){var a=new Kt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function b9(){var a=this.__wrapped__.value(),f=this.__dir__,y=_t(a),E=f<0,L=y?a.length:0,ie=M8(0,L,this.__views__),ve=ie.start,Ce=ie.end,Ae=Ce-ve,ze=E?Ce:ve-1,We=this.__iteratees__,Xe=We.length,ot=0,gt=wn(Ae,this.__takeCount__);if(!y||!E&&L==Ae&>==Ae)return Cx(a,this.__actions__);var St=[];e:for(;Ae--&&ot<gt;){ze+=f;for(var Ot=-1,Et=a[ze];++Ot<Xe;){var Vt=We[Ot],qt=Vt.iteratee,$i=Vt.type,Vr=qt(Et);if($i==z)Et=Vr;else if(!Vr){if($i==se)continue e;break e}}St[ot++]=Et}return St}Kt.prototype=hl(ih.prototype),Kt.prototype.constructor=Kt;function Ja(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function $9(){this.__data__=Xc?Xc(null):{},this.size=0}function x9(a){var f=this.has(a)&&delete this.__data__[a];return this.size-=f?1:0,f}function w9(a){var f=this.__data__;if(Xc){var y=f[a];return y===l?n:y}return Ne.call(f,a)?f[a]:n}function C9(a){var f=this.__data__;return Xc?f[a]!==n:Ne.call(f,a)}function S9(a,f){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Xc&&f===n?l:f,this}Ja.prototype.clear=$9,Ja.prototype.delete=x9,Ja.prototype.get=w9,Ja.prototype.has=C9,Ja.prototype.set=S9;function Co(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function E9(){this.__data__=[],this.size=0}function D9(a){var f=this.__data__,y=sh(f,a);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():zt.call(f,y,1),--this.size,!0}function A9(a){var f=this.__data__,y=sh(f,a);return y<0?n:f[y][1]}function T9(a){return sh(this.__data__,a)>-1}function P9(a,f){var y=this.__data__,E=sh(y,a);return E<0?(++this.size,y.push([a,f])):y[E][1]=f,this}Co.prototype.clear=E9,Co.prototype.delete=D9,Co.prototype.get=A9,Co.prototype.has=T9,Co.prototype.set=P9;function So(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function _9(){this.size=0,this.__data__={hash:new Ja,map:new(Ls||Co),string:new Ja}}function M9(a){var f=vh(this,a).delete(a);return this.size-=f?1:0,f}function R9(a){return vh(this,a).get(a)}function F9(a){return vh(this,a).has(a)}function k9(a,f){var y=vh(this,a),E=y.size;return y.set(a,f),this.size+=y.size==E?0:1,this}So.prototype.clear=_9,So.prototype.delete=M9,So.prototype.get=R9,So.prototype.has=F9,So.prototype.set=k9;function Qa(a){var f=-1,y=a==null?0:a.length;for(this.__data__=new So;++f<y;)this.add(a[f])}function O9(a){return this.__data__.set(a,l),this}function I9(a){return this.__data__.has(a)}Qa.prototype.add=Qa.prototype.push=O9,Qa.prototype.has=I9;function ds(a){var f=this.__data__=new Co(a);this.size=f.size}function L9(){this.__data__=new Co,this.size=0}function B9(a){var f=this.__data__,y=f.delete(a);return this.size=f.size,y}function V9(a){return this.__data__.get(a)}function N9(a){return this.__data__.has(a)}function j9(a,f){var y=this.__data__;if(y instanceof Co){var E=y.__data__;if(!Ls||E.length<i-1)return E.push([a,f]),this.size=++y.size,this;y=this.__data__=new So(E)}return y.set(a,f),this.size=y.size,this}ds.prototype.clear=L9,ds.prototype.delete=B9,ds.prototype.get=V9,ds.prototype.has=N9,ds.prototype.set=j9;function ex(a,f){var y=_t(a),E=!y&&iu(a),L=!y&&!E&&la(a),ie=!y&&!E&&!L&&vl(a),ve=y||E||L||ie,Ce=ve?ll(a.length,Y):[],Ae=Ce.length;for(var ze in a)(f||Ne.call(a,ze))&&!(ve&&(ze=="length"||L&&(ze=="offset"||ze=="parent")||ie&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||To(ze,Ae)))&&Ce.push(ze);return Ce}function tx(a){var f=a.length;return f?a[Ag(0,f-1)]:n}function K9(a,f){return yh(Qr(a),eu(f,0,a.length))}function U9(a){return yh(Qr(a))}function vg(a,f,y){(y!==n&&!hs(a[f],y)||y===n&&!(f in a))&&Eo(a,f,y)}function Qc(a,f,y){var E=a[f];(!(Ne.call(a,f)&&hs(E,y))||y===n&&!(f in a))&&Eo(a,f,y)}function sh(a,f){for(var y=a.length;y--;)if(hs(a[y][0],f))return y;return-1}function z9(a,f,y,E){return sa(a,function(L,ie,ve){f(E,L,y(L),ve)}),E}function nx(a,f){return a&&Vs(f,dr(f),a)}function q9(a,f){return a&&Vs(f,ti(f),a)}function Eo(a,f,y){f=="__proto__"&&jn?jn(a,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[f]=y}function yg(a,f){for(var y=-1,E=f.length,L=Z(E),ie=a==null;++y<E;)L[y]=ie?n:Jg(a,f[y]);return L}function eu(a,f,y){return a===a&&(y!==n&&(a=a<=y?a:y),f!==n&&(a=a>=f?a:f)),a}function Mi(a,f,y,E,L,ie){var ve,Ce=f&m,Ae=f&g,ze=f&b;if(y&&(ve=L?y(a,E,L,ie):y(a)),ve!==n)return ve;if(!_n(a))return a;var We=_t(a);if(We){if(ve=F8(a),!Ce)return Qr(a,ve)}else{var Xe=Dr(a),ot=Xe==Le||Xe==nt;if(la(a))return Dx(a,Ce);if(Xe==Rt||Xe==Ie||ot&&!L){if(ve=Ae||ot?{}:qx(a),!Ce)return Ae?w8(a,q9(ve,a)):x8(a,nx(ve,a))}else{if(!Qt[Xe])return L?a:{};ve=k8(a,Xe,Ce)}}ie||(ie=new ds);var gt=ie.get(a);if(gt)return gt;ie.set(a,ve),$w(a)?a.forEach(function(Et){ve.add(Mi(Et,f,y,Et,a,ie))}):yw(a)&&a.forEach(function(Et,Vt){ve.set(Vt,Mi(Et,f,y,Vt,a,ie))});var St=ze?Ae?Bg:Lg:Ae?ti:dr,Ot=We?n:St(a);return hn(Ot||a,function(Et,Vt){Ot&&(Vt=Et,Et=a[Vt]),Qc(ve,Vt,Mi(Et,f,y,Vt,a,ie))}),ve}function W9(a){var f=dr(a);return function(y){return rx(y,a,f)}}function rx(a,f,y){var E=y.length;if(a==null)return!E;for(a=I(a);E--;){var L=y[E],ie=f[L],ve=a[L];if(ve===n&&!(L in a)||!ie(ve))return!1}return!0}function ix(a,f,y){if(typeof a!="function")throw new re(o);return af(function(){a.apply(n,y)},f)}function ef(a,f,y,E){var L=-1,ie=Rs,ve=!0,Ce=a.length,Ae=[],ze=f.length;if(!Ce)return Ae;y&&(f=cn(f,Sr(y))),E?(ie=sl,ve=!1):f.length>=i&&(ie=yn,ve=!1,f=new Qa(f));e:for(;++L<Ce;){var We=a[L],Xe=y==null?We:y(We);if(We=E||We!==0?We:0,ve&&Xe===Xe){for(var ot=ze;ot--;)if(f[ot]===Xe)continue e;Ae.push(We)}else ie(f,Xe,E)||Ae.push(We)}return Ae}var sa=Mx(Bs),sx=Mx($g,!0);function H9(a,f){var y=!0;return sa(a,function(E,L,ie){return y=!!f(E,L,ie),y}),y}function oh(a,f,y){for(var E=-1,L=a.length;++E<L;){var ie=a[E],ve=f(ie);if(ve!=null&&(Ce===n?ve===ve&&!bi(ve):y(ve,Ce)))var Ce=ve,Ae=ie}return Ae}function G9(a,f,y,E){var L=a.length;for(y=Ft(y),y<0&&(y=-y>L?0:L+y),E=E===n||E>L?L:Ft(E),E<0&&(E+=L),E=y>E?0:ww(E);y<E;)a[y++]=f;return a}function ox(a,f){var y=[];return sa(a,function(E,L,ie){f(E,L,ie)&&y.push(E)}),y}function br(a,f,y,E,L){var ie=-1,ve=a.length;for(y||(y=I8),L||(L=[]);++ie<ve;){var Ce=a[ie];f>0&&y(Ce)?f>1?br(Ce,f-1,y,E,L):os(L,Ce):E||(L[L.length]=Ce)}return L}var bg=Rx(),ax=Rx(!0);function Bs(a,f){return a&&bg(a,f,dr)}function $g(a,f){return a&&ax(a,f,dr)}function ah(a,f){return Cr(f,function(y){return Po(a[y])})}function tu(a,f){f=aa(f,a);for(var y=0,E=f.length;a!=null&&y<E;)a=a[Ns(f[y++])];return y&&y==E?a:n}function ux(a,f,y){var E=f(a);return _t(a)?E:os(E,y(a))}function Lr(a){return a==null?a===n?lt:$t:Bn&&Bn in I(a)?_8(a):U8(a)}function xg(a,f){return a>f}function Y9(a,f){return a!=null&&Ne.call(a,f)}function Z9(a,f){return a!=null&&f in I(a)}function X9(a,f,y){return a>=wn(f,y)&&a<Ht(f,y)}function wg(a,f,y){for(var E=y?sl:Rs,L=a[0].length,ie=a.length,ve=ie,Ce=Z(ie),Ae=1/0,ze=[];ve--;){var We=a[ve];ve&&f&&(We=cn(We,Sr(f))),Ae=wn(We.length,Ae),Ce[ve]=!y&&(f||L>=120&&We.length>=120)?new Qa(ve&&We):n}We=a[0];var Xe=-1,ot=Ce[0];e:for(;++Xe<L&&ze.length<Ae;){var gt=We[Xe],St=f?f(gt):gt;if(gt=y||gt!==0?gt:0,!(ot?yn(ot,St):E(ze,St,y))){for(ve=ie;--ve;){var Ot=Ce[ve];if(!(Ot?yn(Ot,St):E(a[ve],St,y)))continue e}ot&&ot.push(St),ze.push(gt)}}return ze}function J9(a,f,y,E){return Bs(a,function(L,ie,ve){f(E,y(L),ie,ve)}),E}function tf(a,f,y){f=aa(f,a),a=Yx(a,f);var E=a==null?a:a[Ns(Fi(f))];return E==null?n:In(E,a,y)}function lx(a){return Vn(a)&&Lr(a)==Ie}function Q9(a){return Vn(a)&&Lr(a)==Jt}function e8(a){return Vn(a)&&Lr(a)==Ue}function nf(a,f,y,E,L){return a===f?!0:a==null||f==null||!Vn(a)&&!Vn(f)?a!==a&&f!==f:t8(a,f,y,E,nf,L)}function t8(a,f,y,E,L,ie){var ve=_t(a),Ce=_t(f),Ae=ve?Ze:Dr(a),ze=Ce?Ze:Dr(f);Ae=Ae==Ie?Rt:Ae,ze=ze==Ie?Rt:ze;var We=Ae==Rt,Xe=ze==Rt,ot=Ae==ze;if(ot&&la(a)){if(!la(f))return!1;ve=!0,We=!1}if(ot&&!We)return ie||(ie=new ds),ve||vl(a)?Kx(a,f,y,E,L,ie):T8(a,f,Ae,y,E,L,ie);if(!(y&$)){var gt=We&&Ne.call(a,"__wrapped__"),St=Xe&&Ne.call(f,"__wrapped__");if(gt||St){var Ot=gt?a.value():a,Et=St?f.value():f;return ie||(ie=new ds),L(Ot,Et,y,E,ie)}}return ot?(ie||(ie=new ds),P8(a,f,y,E,L,ie)):!1}function n8(a){return Vn(a)&&Dr(a)==xt}function Cg(a,f,y,E){var L=y.length,ie=L,ve=!E;if(a==null)return!ie;for(a=I(a);L--;){var Ce=y[L];if(ve&&Ce[2]?Ce[1]!==a[Ce[0]]:!(Ce[0]in a))return!1}for(;++L<ie;){Ce=y[L];var Ae=Ce[0],ze=a[Ae],We=Ce[1];if(ve&&Ce[2]){if(ze===n&&!(Ae in a))return!1}else{var Xe=new ds;if(E)var ot=E(ze,We,Ae,a,f,Xe);if(!(ot===n?nf(We,ze,$|w,E,Xe):ot))return!1}}return!0}function cx(a){if(!_n(a)||B8(a))return!1;var f=Po(a)?Q:Zn;return f.test(ru(a))}function r8(a){return Vn(a)&&Lr(a)==Te}function i8(a){return Vn(a)&&Dr(a)==He}function s8(a){return Vn(a)&&Sh(a.length)&&!!Wt[Lr(a)]}function fx(a){return typeof a=="function"?a:a==null?ni:typeof a=="object"?_t(a)?px(a[0],a[1]):hx(a):Fw(a)}function Sg(a){if(!of(a))return ls(a);var f=[];for(var y in I(a))Ne.call(a,y)&&y!="constructor"&&f.push(y);return f}function o8(a){if(!_n(a))return K8(a);var f=of(a),y=[];for(var E in a)E=="constructor"&&(f||!Ne.call(a,E))||y.push(E);return y}function Eg(a,f){return a<f}function dx(a,f){var y=-1,E=ei(a)?Z(a.length):[];return sa(a,function(L,ie,ve){E[++y]=f(L,ie,ve)}),E}function hx(a){var f=Ng(a);return f.length==1&&f[0][2]?Hx(f[0][0],f[0][1]):function(y){return y===a||Cg(y,a,f)}}function px(a,f){return Kg(a)&&Wx(f)?Hx(Ns(a),f):function(y){var E=Jg(y,a);return E===n&&E===f?Qg(y,a):nf(f,E,$|w)}}function uh(a,f,y,E,L){a!==f&&bg(f,function(ie,ve){if(L||(L=new ds),_n(ie))a8(a,f,ve,y,uh,E,L);else{var Ce=E?E(zg(a,ve),ie,ve+"",a,f,L):n;Ce===n&&(Ce=ie),vg(a,ve,Ce)}},ti)}function a8(a,f,y,E,L,ie,ve){var Ce=zg(a,y),Ae=zg(f,y),ze=ve.get(Ae);if(ze){vg(a,y,ze);return}var We=ie?ie(Ce,Ae,y+"",a,f,ve):n,Xe=We===n;if(Xe){var ot=_t(Ae),gt=!ot&&la(Ae),St=!ot&&!gt&&vl(Ae);We=Ae,ot||gt||St?_t(Ce)?We=Ce:Un(Ce)?We=Qr(Ce):gt?(Xe=!1,We=Dx(Ae,!0)):St?(Xe=!1,We=Ax(Ae,!0)):We=[]:uf(Ae)||iu(Ae)?(We=Ce,iu(Ce)?We=Cw(Ce):(!_n(Ce)||Po(Ce))&&(We=qx(Ae))):Xe=!1}Xe&&(ve.set(Ae,We),L(We,Ae,E,ie,ve),ve.delete(Ae)),vg(a,y,We)}function mx(a,f){var y=a.length;if(y)return f+=f<0?y:0,To(f,y)?a[f]:n}function gx(a,f,y){f.length?f=cn(f,function(ie){return _t(ie)?function(ve){return tu(ve,ie.length===1?ie[0]:ie)}:ie}):f=[ni];var E=-1;f=cn(f,Sr(wt()));var L=dx(a,function(ie,ve,Ce){var Ae=cn(f,function(ze){return ze(ie)});return{criteria:Ae,index:++E,value:ie}});return Xa(L,function(ie,ve){return $8(ie,ve,y)})}function u8(a,f){return vx(a,f,function(y,E){return Qg(a,E)})}function vx(a,f,y){for(var E=-1,L=f.length,ie={};++E<L;){var ve=f[E],Ce=tu(a,ve);y(Ce,ve)&&rf(ie,aa(ve,a),Ce)}return ie}function l8(a){return function(f){return tu(f,a)}}function Dg(a,f,y,E){var L=E?eh:xo,ie=-1,ve=f.length,Ce=a;for(a===f&&(f=Qr(f)),y&&(Ce=cn(a,Sr(y)));++ie<ve;)for(var Ae=0,ze=f[ie],We=y?y(ze):ze;(Ae=L(Ce,We,Ae,E))>-1;)Ce!==a&&zt.call(Ce,Ae,1),zt.call(a,Ae,1);return a}function yx(a,f){for(var y=a?f.length:0,E=y-1;y--;){var L=f[y];if(y==E||L!==ie){var ie=L;To(L)?zt.call(a,L,1):_g(a,L)}}return a}function Ag(a,f){return a+Jr(cs()*(f-a+1))}function c8(a,f,y,E){for(var L=-1,ie=Ht(fn((f-a)/(y||1)),0),ve=Z(ie);ie--;)ve[E?ie:++L]=a,a+=y;return ve}function Tg(a,f){var y="";if(!a||f<1||f>B)return y;do f%2&&(y+=a),f=Jr(f/2),f&&(a+=a);while(f);return y}function Bt(a,f){return qg(Gx(a,f,ni),a+"")}function f8(a){return tx(yl(a))}function d8(a,f){var y=yl(a);return yh(y,eu(f,0,y.length))}function rf(a,f,y,E){if(!_n(a))return a;f=aa(f,a);for(var L=-1,ie=f.length,ve=ie-1,Ce=a;Ce!=null&&++L<ie;){var Ae=Ns(f[L]),ze=y;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return a;if(L!=ve){var We=Ce[Ae];ze=E?E(We,Ae,Ce):n,ze===n&&(ze=_n(We)?We:To(f[L+1])?[]:{})}Qc(Ce,Ae,ze),Ce=Ce[Ae]}return a}var bx=nh?function(a,f){return nh.set(a,f),a}:ni,h8=jn?function(a,f){return jn(a,"toString",{configurable:!0,enumerable:!1,value:tv(f),writable:!0})}:ni;function p8(a){return yh(yl(a))}function Ri(a,f,y){var E=-1,L=a.length;f<0&&(f=-f>L?0:L+f),y=y>L?L:y,y<0&&(y+=L),L=f>y?0:y-f>>>0,f>>>=0;for(var ie=Z(L);++E<L;)ie[E]=a[E+f];return ie}function m8(a,f){var y;return sa(a,function(E,L,ie){return y=f(E,L,ie),!y}),!!y}function lh(a,f,y){var E=0,L=a==null?E:a.length;if(typeof f=="number"&&f===f&&L<=Pe){for(;E<L;){var ie=E+L>>>1,ve=a[ie];ve!==null&&!bi(ve)&&(y?ve<=f:ve<f)?E=ie+1:L=ie}return L}return Pg(a,f,ni,y)}function Pg(a,f,y,E){var L=0,ie=a==null?0:a.length;if(ie===0)return 0;f=y(f);for(var ve=f!==f,Ce=f===null,Ae=bi(f),ze=f===n;L<ie;){var We=Jr((L+ie)/2),Xe=y(a[We]),ot=Xe!==n,gt=Xe===null,St=Xe===Xe,Ot=bi(Xe);if(ve)var Et=E||St;else ze?Et=St&&(E||ot):Ce?Et=St&&ot&&(E||!gt):Ae?Et=St&&ot&&!gt&&(E||!Ot):gt||Ot?Et=!1:Et=E?Xe<=f:Xe<f;Et?L=We+1:ie=We}return wn(ie,Se)}function $x(a,f){for(var y=-1,E=a.length,L=0,ie=[];++y<E;){var ve=a[y],Ce=f?f(ve):ve;if(!y||!hs(Ce,Ae)){var Ae=Ce;ie[L++]=ve===0?0:ve}}return ie}function xx(a){return typeof a=="number"?a:bi(a)?U:+a}function yi(a){if(typeof a=="string")return a;if(_t(a))return cn(a,yi)+"";if(bi(a))return Q$?Q$.call(a):"";var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function oa(a,f,y){var E=-1,L=Rs,ie=a.length,ve=!0,Ce=[],Ae=Ce;if(y)ve=!1,L=sl;else if(ie>=i){var ze=f?null:D8(a);if(ze)return ra(ze);ve=!1,L=yn,Ae=new Qa}else Ae=f?[]:Ce;e:for(;++E<ie;){var We=a[E],Xe=f?f(We):We;if(We=y||We!==0?We:0,ve&&Xe===Xe){for(var ot=Ae.length;ot--;)if(Ae[ot]===Xe)continue e;f&&Ae.push(Xe),Ce.push(We)}else L(Ae,Xe,y)||(Ae!==Ce&&Ae.push(Xe),Ce.push(We))}return Ce}function _g(a,f){return f=aa(f,a),a=Yx(a,f),a==null||delete a[Ns(Fi(f))]}function wx(a,f,y,E){return rf(a,f,y(tu(a,f)),E)}function ch(a,f,y,E){for(var L=a.length,ie=E?L:-1;(E?ie--:++ie<L)&&f(a[ie],ie,a););return y?Ri(a,E?0:ie,E?ie+1:L):Ri(a,E?ie+1:0,E?L:ie)}function Cx(a,f){var y=a;return y instanceof Kt&&(y=y.value()),ol(f,function(E,L){return L.func.apply(L.thisArg,os([E],L.args))},y)}function Mg(a,f,y){var E=a.length;if(E<2)return E?oa(a[0]):[];for(var L=-1,ie=Z(E);++L<E;)for(var ve=a[L],Ce=-1;++Ce<E;)Ce!=L&&(ie[L]=ef(ie[L]||ve,a[Ce],f,y));return oa(br(ie,1),f,y)}function Sx(a,f,y){for(var E=-1,L=a.length,ie=f.length,ve={};++E<L;){var Ce=E<ie?f[E]:n;y(ve,a[E],Ce)}return ve}function Rg(a){return Un(a)?a:[]}function Fg(a){return typeof a=="function"?a:ni}function aa(a,f){return _t(a)?a:Kg(a,f)?[a]:Qx(sn(a))}var g8=Bt;function ua(a,f,y){var E=a.length;return y=y===n?E:y,!f&&y>=E?a:Ri(a,f,y)}var Ex=Kn||function(a){return Dn.clearTimeout(a)};function Dx(a,f){if(f)return a.slice();var y=a.length,E=ct?ct(y):new a.constructor(y);return a.copy(E),E}function kg(a){var f=new a.constructor(a.byteLength);return new Fe(f).set(new Fe(a)),f}function v8(a,f){var y=f?kg(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function y8(a){var f=new a.constructor(a.source,dn.exec(a));return f.lastIndex=a.lastIndex,f}function b8(a){return Jc?I(Jc.call(a)):{}}function Ax(a,f){var y=f?kg(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function Tx(a,f){if(a!==f){var y=a!==n,E=a===null,L=a===a,ie=bi(a),ve=f!==n,Ce=f===null,Ae=f===f,ze=bi(f);if(!Ce&&!ze&&!ie&&a>f||ie&&ve&&Ae&&!Ce&&!ze||E&&ve&&Ae||!y&&Ae||!L)return 1;if(!E&&!ie&&!ze&&a<f||ze&&y&&L&&!E&&!ie||Ce&&y&&L||!ve&&L||!Ae)return-1}return 0}function $8(a,f,y){for(var E=-1,L=a.criteria,ie=f.criteria,ve=L.length,Ce=y.length;++E<ve;){var Ae=Tx(L[E],ie[E]);if(Ae){if(E>=Ce)return Ae;var ze=y[E];return Ae*(ze=="desc"?-1:1)}}return a.index-f.index}function Px(a,f,y,E){for(var L=-1,ie=a.length,ve=y.length,Ce=-1,Ae=f.length,ze=Ht(ie-ve,0),We=Z(Ae+ze),Xe=!E;++Ce<Ae;)We[Ce]=f[Ce];for(;++L<ve;)(Xe||L<ie)&&(We[y[L]]=a[L]);for(;ze--;)We[Ce++]=a[L++];return We}function _x(a,f,y,E){for(var L=-1,ie=a.length,ve=-1,Ce=y.length,Ae=-1,ze=f.length,We=Ht(ie-Ce,0),Xe=Z(We+ze),ot=!E;++L<We;)Xe[L]=a[L];for(var gt=L;++Ae<ze;)Xe[gt+Ae]=f[Ae];for(;++ve<Ce;)(ot||L<ie)&&(Xe[gt+y[ve]]=a[L++]);return Xe}function Qr(a,f){var y=-1,E=a.length;for(f||(f=Z(E));++y<E;)f[y]=a[y];return f}function Vs(a,f,y,E){var L=!y;y||(y={});for(var ie=-1,ve=f.length;++ie<ve;){var Ce=f[ie],Ae=E?E(y[Ce],a[Ce],Ce,y,a):n;Ae===n&&(Ae=a[Ce]),L?Eo(y,Ce,Ae):Qc(y,Ce,Ae)}return y}function x8(a,f){return Vs(a,jg(a),f)}function w8(a,f){return Vs(a,Ux(a),f)}function fh(a,f){return function(y,E){var L=_t(y)?Ms:z9,ie=f?f():{};return L(y,a,wt(E,2),ie)}}function pl(a){return Bt(function(f,y){var E=-1,L=y.length,ie=L>1?y[L-1]:n,ve=L>2?y[2]:n;for(ie=a.length>3&&typeof ie=="function"?(L--,ie):n,ve&&Br(y[0],y[1],ve)&&(ie=L<3?n:ie,L=1),f=I(f);++E<L;){var Ce=y[E];Ce&&a(f,Ce,E,ie)}return f})}function Mx(a,f){return function(y,E){if(y==null)return y;if(!ei(y))return a(y,E);for(var L=y.length,ie=f?L:-1,ve=I(y);(f?ie--:++ie<L)&&E(ve[ie],ie,ve)!==!1;);return y}}function Rx(a){return function(f,y,E){for(var L=-1,ie=I(f),ve=E(f),Ce=ve.length;Ce--;){var Ae=ve[a?Ce:++L];if(y(ie[Ae],Ae,ie)===!1)break}return f}}function C8(a,f,y){var E=f&D,L=sf(a);function ie(){var ve=this&&this!==Dn&&this instanceof ie?L:a;return ve.apply(E?y:this,arguments)}return ie}function Fx(a){return function(f){f=sn(f);var y=Er(f)?P(f):n,E=y?y[0]:f.charAt(0),L=y?ua(y,1).join(""):f.slice(1);return E[a]()+L}}function ml(a){return function(f){return ol(Mw(_w(f).replace(is,"")),a,"")}}function sf(a){return function(){var f=arguments;switch(f.length){case 0:return new a;case 1:return new a(f[0]);case 2:return new a(f[0],f[1]);case 3:return new a(f[0],f[1],f[2]);case 4:return new a(f[0],f[1],f[2],f[3]);case 5:return new a(f[0],f[1],f[2],f[3],f[4]);case 6:return new a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new a(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=hl(a.prototype),E=a.apply(y,f);return _n(E)?E:y}}function S8(a,f,y){var E=sf(a);function L(){for(var ie=arguments.length,ve=Z(ie),Ce=ie,Ae=gl(L);Ce--;)ve[Ce]=arguments[Ce];var ze=ie<3&&ve[0]!==Ae&&ve[ie-1]!==Ae?[]:Xr(ve,Ae);if(ie-=ze.length,ie<y)return Bx(a,f,dh,L.placeholder,n,ve,ze,n,n,y-ie);var We=this&&this!==Dn&&this instanceof L?E:a;return In(We,this,ve)}return L}function kx(a){return function(f,y,E){var L=I(f);if(!ei(f)){var ie=wt(y,3);f=dr(f),y=function(Ce){return ie(L[Ce],Ce,L)}}var ve=a(f,y,E);return ve>-1?L[ie?f[ve]:ve]:n}}function Ox(a){return Ao(function(f){var y=f.length,E=y,L=_i.prototype.thru;for(a&&f.reverse();E--;){var ie=f[E];if(typeof ie!="function")throw new re(o);if(L&&!ve&&gh(ie)=="wrapper")var ve=new _i([],!0)}for(E=ve?E:y;++E<y;){ie=f[E];var Ce=gh(ie),Ae=Ce=="wrapper"?Vg(ie):n;Ae&&Ug(Ae[0])&&Ae[1]==(N|T|M|F)&&!Ae[4].length&&Ae[9]==1?ve=ve[gh(Ae[0])].apply(ve,Ae[3]):ve=ie.length==1&&Ug(ie)?ve[Ce]():ve.thru(ie)}return function(){var ze=arguments,We=ze[0];if(ve&&ze.length==1&&_t(We))return ve.plant(We).value();for(var Xe=0,ot=y?f[Xe].apply(this,ze):We;++Xe<y;)ot=f[Xe].call(this,ot);return ot}})}function dh(a,f,y,E,L,ie,ve,Ce,Ae,ze){var We=f&N,Xe=f&D,ot=f&S,gt=f&(T|O),St=f&ae,Ot=ot?n:sf(a);function Et(){for(var Vt=arguments.length,qt=Z(Vt),$i=Vt;$i--;)qt[$i]=arguments[$i];if(gt)var Vr=gl(Et),xi=pg(qt,Vr);if(E&&(qt=Px(qt,E,L,gt)),ie&&(qt=_x(qt,ie,ve,gt)),Vt-=xi,gt&&Vt<ze){var zn=Xr(qt,Vr);return Bx(a,f,dh,Et.placeholder,y,qt,zn,Ce,Ae,ze-Vt)}var ps=Xe?y:this,Mo=ot?ps[a]:a;return Vt=qt.length,Ce?qt=z8(qt,Ce):St&&Vt>1&&qt.reverse(),We&&Ae<Vt&&(qt.length=Ae),this&&this!==Dn&&this instanceof Et&&(Mo=Ot||sf(Mo)),Mo.apply(ps,qt)}return Et}function Ix(a,f){return function(y,E){return J9(y,a,f(E),{})}}function hh(a,f){return function(y,E){var L;if(y===n&&E===n)return f;if(y!==n&&(L=y),E!==n){if(L===n)return E;typeof y=="string"||typeof E=="string"?(y=yi(y),E=yi(E)):(y=xx(y),E=xx(E)),L=a(y,E)}return L}}function Og(a){return Ao(function(f){return f=cn(f,Sr(wt())),Bt(function(y){var E=this;return a(f,function(L){return In(L,E,y)})})})}function ph(a,f){f=f===n?" ":yi(f);var y=f.length;if(y<2)return y?Tg(f,a):f;var E=Tg(f,fn(a/x(f)));return Er(f)?ua(P(E),0,a).join(""):E.slice(0,a)}function E8(a,f,y,E){var L=f&D,ie=sf(a);function ve(){for(var Ce=-1,Ae=arguments.length,ze=-1,We=E.length,Xe=Z(We+Ae),ot=this&&this!==Dn&&this instanceof ve?ie:a;++ze<We;)Xe[ze]=E[ze];for(;Ae--;)Xe[ze++]=arguments[++Ce];return In(ot,L?y:this,Xe)}return ve}function Lx(a){return function(f,y,E){return E&&typeof E!="number"&&Br(f,y,E)&&(y=E=n),f=_o(f),y===n?(y=f,f=0):y=_o(y),E=E===n?f<y?1:-1:_o(E),c8(f,y,E,a)}}function mh(a){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=ki(f),y=ki(y)),a(f,y)}}function Bx(a,f,y,E,L,ie,ve,Ce,Ae,ze){var We=f&T,Xe=We?ve:n,ot=We?n:ve,gt=We?ie:n,St=We?n:ie;f|=We?M:k,f&=~(We?k:M),f&C||(f&=-4);var Ot=[a,f,L,gt,Xe,St,ot,Ce,Ae,ze],Et=y.apply(n,Ot);return Ug(a)&&Zx(Et,Ot),Et.placeholder=E,Xx(Et,a,f)}function Ig(a){var f=X[a];return function(y,E){if(y=ki(y),E=E==null?0:wn(Ft(E),292),E&&mi(y)){var L=(sn(y)+"e").split("e"),ie=f(L[0]+"e"+(+L[1]+E));return L=(sn(ie)+"e").split("e"),+(L[0]+"e"+(+L[1]-E))}return f(y)}}var D8=fl&&1/ra(new fl([,-0]))[1]==j?function(a){return new fl(a)}:iv;function Vx(a){return function(f){var y=Dr(f);return y==xt?Ln(f):y==He?c(f):hg(f,a(f))}}function Do(a,f,y,E,L,ie,ve,Ce){var Ae=f&S;if(!Ae&&typeof a!="function")throw new re(o);var ze=E?E.length:0;if(ze||(f&=-97,E=L=n),ve=ve===n?ve:Ht(Ft(ve),0),Ce=Ce===n?Ce:Ft(Ce),ze-=L?L.length:0,f&k){var We=E,Xe=L;E=L=n}var ot=Ae?n:Vg(a),gt=[a,f,y,E,L,We,Xe,ie,ve,Ce];if(ot&&j8(gt,ot),a=gt[0],f=gt[1],y=gt[2],E=gt[3],L=gt[4],Ce=gt[9]=gt[9]===n?Ae?0:a.length:Ht(gt[9]-ze,0),!Ce&&f&(T|O)&&(f&=-25),!f||f==D)var St=C8(a,f,y);else f==T||f==O?St=S8(a,f,Ce):(f==M||f==(D|M))&&!L.length?St=E8(a,f,y,E):St=dh.apply(n,gt);var Ot=ot?bx:Zx;return Xx(Ot(St,gt),a,f)}function Nx(a,f,y,E){return a===n||hs(a,Oe[y])&&!Ne.call(E,y)?f:a}function jx(a,f,y,E,L,ie){return _n(a)&&_n(f)&&(ie.set(f,a),uh(a,f,n,jx,ie),ie.delete(f)),a}function A8(a){return uf(a)?n:a}function Kx(a,f,y,E,L,ie){var ve=y&$,Ce=a.length,Ae=f.length;if(Ce!=Ae&&!(ve&&Ae>Ce))return!1;var ze=ie.get(a),We=ie.get(f);if(ze&&We)return ze==f&&We==a;var Xe=-1,ot=!0,gt=y&w?new Qa:n;for(ie.set(a,f),ie.set(f,a);++Xe<Ce;){var St=a[Xe],Ot=f[Xe];if(E)var Et=ve?E(Ot,St,Xe,f,a,ie):E(St,Ot,Xe,a,f,ie);if(Et!==n){if(Et)continue;ot=!1;break}if(gt){if(!Fs(f,function(Vt,qt){if(!yn(gt,qt)&&(St===Vt||L(St,Vt,y,E,ie)))return gt.push(qt)})){ot=!1;break}}else if(!(St===Ot||L(St,Ot,y,E,ie))){ot=!1;break}}return ie.delete(a),ie.delete(f),ot}function T8(a,f,y,E,L,ie,ve){switch(y){case Ut:if(a.byteLength!=f.byteLength||a.byteOffset!=f.byteOffset)return!1;a=a.buffer,f=f.buffer;case Jt:return!(a.byteLength!=f.byteLength||!ie(new Fe(a),new Fe(f)));case De:case Ue:case ln:return hs(+a,+f);case Ve:return a.name==f.name&&a.message==f.message;case Te:case et:return a==f+"";case xt:var Ce=Ln;case He:var Ae=E&$;if(Ce||(Ce=ra),a.size!=f.size&&!Ae)return!1;var ze=ve.get(a);if(ze)return ze==f;E|=w,ve.set(a,f);var We=Kx(Ce(a),Ce(f),E,L,ie,ve);return ve.delete(a),We;case Je:if(Jc)return Jc.call(a)==Jc.call(f)}return!1}function P8(a,f,y,E,L,ie){var ve=y&$,Ce=Lg(a),Ae=Ce.length,ze=Lg(f),We=ze.length;if(Ae!=We&&!ve)return!1;for(var Xe=Ae;Xe--;){var ot=Ce[Xe];if(!(ve?ot in f:Ne.call(f,ot)))return!1}var gt=ie.get(a),St=ie.get(f);if(gt&&St)return gt==f&&St==a;var Ot=!0;ie.set(a,f),ie.set(f,a);for(var Et=ve;++Xe<Ae;){ot=Ce[Xe];var Vt=a[ot],qt=f[ot];if(E)var $i=ve?E(qt,Vt,ot,f,a,ie):E(Vt,qt,ot,a,f,ie);if(!($i===n?Vt===qt||L(Vt,qt,y,E,ie):$i)){Ot=!1;break}Et||(Et=ot=="constructor")}if(Ot&&!Et){var Vr=a.constructor,xi=f.constructor;Vr!=xi&&"constructor"in a&&"constructor"in f&&!(typeof Vr=="function"&&Vr instanceof Vr&&typeof xi=="function"&&xi instanceof xi)&&(Ot=!1)}return ie.delete(a),ie.delete(f),Ot}function Ao(a){return qg(Gx(a,n,rw),a+"")}function Lg(a){return ux(a,dr,jg)}function Bg(a){return ux(a,ti,Ux)}var Vg=nh?function(a){return nh.get(a)}:iv;function gh(a){for(var f=a.name+"",y=dl[f],E=Ne.call(dl,f)?y.length:0;E--;){var L=y[E],ie=L.func;if(ie==null||ie==a)return L.name}return f}function gl(a){var f=Ne.call(J,"placeholder")?J:a;return f.placeholder}function wt(){var a=J.iteratee||nv;return a=a===nv?fx:a,arguments.length?a(arguments[0],arguments[1]):a}function vh(a,f){var y=a.__data__;return L8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Ng(a){for(var f=dr(a),y=f.length;y--;){var E=f[y],L=a[E];f[y]=[E,L,Wx(L)]}return f}function nu(a,f){var y=gg(a,f);return cx(y)?y:n}function _8(a){var f=Ne.call(a,Bn),y=a[Bn];try{a[Bn]=n;var E=!0}catch{}var L=Be.call(a);return E&&(f?a[Bn]=y:delete a[Bn]),L}var jg=Pi?function(a){return a==null?[]:(a=I(a),Cr(Pi(a),function(f){return xn.call(a,f)}))}:sv,Ux=Pi?function(a){for(var f=[];a;)os(f,jg(a)),a=Tt(a);return f}:sv,Dr=Lr;(fs&&Dr(new fs(new ArrayBuffer(1)))!=Ut||Ls&&Dr(new Ls)!=xt||ia&&Dr(ia.resolve())!=$e||fl&&Dr(new fl)!=He||Zc&&Dr(new Zc)!=bt)&&(Dr=function(a){var f=Lr(a),y=f==Rt?a.constructor:n,E=y?ru(y):"";if(E)switch(E){case d9:return Ut;case h9:return xt;case p9:return $e;case m9:return He;case g9:return bt}return f});function M8(a,f,y){for(var E=-1,L=y.length;++E<L;){var ie=y[E],ve=ie.size;switch(ie.type){case"drop":a+=ve;break;case"dropRight":f-=ve;break;case"take":f=wn(f,a+ve);break;case"takeRight":a=Ht(a,f-ve);break}}return{start:a,end:f}}function R8(a){var f=a.match(wr);return f?f[1].split(Yu):[]}function zx(a,f,y){f=aa(f,a);for(var E=-1,L=f.length,ie=!1;++E<L;){var ve=Ns(f[E]);if(!(ie=a!=null&&y(a,ve)))break;a=a[ve]}return ie||++E!=L?ie:(L=a==null?0:a.length,!!L&&Sh(L)&&To(ve,L)&&(_t(a)||iu(a)))}function F8(a){var f=a.length,y=new a.constructor(f);return f&&typeof a[0]=="string"&&Ne.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function qx(a){return typeof a.constructor=="function"&&!of(a)?hl(Tt(a)):{}}function k8(a,f,y){var E=a.constructor;switch(f){case Jt:return kg(a);case De:case Ue:return new E(+a);case Ut:return v8(a,y);case Yr:case Fr:case rn:case Pt:case Lt:case Yt:case sr:case Qi:case es:return Ax(a,y);case xt:return new E;case ln:case et:return new E(a);case Te:return y8(a);case He:return new E;case Je:return b8(a)}}function O8(a,f){var y=f.length;if(!y)return a;var E=y-1;return f[E]=(y>1?"& ":"")+f[E],f=f.join(y>2?", ":" "),a.replace(Gu,`{
|
|
68
|
+
/* [wrapped with `+f+`] */
|
|
69
|
+
`)}function I8(a){return _t(a)||iu(a)||!!(fr&&a&&a[fr])}function To(a,f){var y=typeof a;return f=f??B,!!f&&(y=="number"||y!="symbol"&&As.test(a))&&a>-1&&a%1==0&&a<f}function Br(a,f,y){if(!_n(y))return!1;var E=typeof f;return(E=="number"?ei(y)&&To(f,y.length):E=="string"&&f in y)?hs(y[f],a):!1}function Kg(a,f){if(_t(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||bi(a)?!0:Hu.test(a)||!Oa.test(a)||f!=null&&a in I(f)}function L8(a){var f=typeof a;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?a!=="__proto__":a===null}function Ug(a){var f=gh(a),y=J[f];if(typeof y!="function"||!(f in Kt.prototype))return!1;if(a===y)return!0;var E=Vg(y);return!!E&&a===E[0]}function B8(a){return!!ft&&ft in a}var V8=tt?Po:ov;function of(a){var f=a&&a.constructor,y=typeof f=="function"&&f.prototype||Oe;return a===y}function Wx(a){return a===a&&!_n(a)}function Hx(a,f){return function(y){return y==null?!1:y[a]===f&&(f!==n||a in I(y))}}function N8(a){var f=wh(a,function(E){return y.size===d&&y.clear(),E}),y=f.cache;return f}function j8(a,f){var y=a[1],E=f[1],L=y|E,ie=L<(D|S|N),ve=E==N&&y==T||E==N&&y==F&&a[7].length<=f[8]||E==(N|F)&&f[7].length<=f[8]&&y==T;if(!(ie||ve))return a;E&D&&(a[2]=f[2],L|=y&D?0:C);var Ce=f[3];if(Ce){var Ae=a[3];a[3]=Ae?Px(Ae,Ce,f[4]):Ce,a[4]=Ae?Xr(a[3],h):f[4]}return Ce=f[5],Ce&&(Ae=a[5],a[5]=Ae?_x(Ae,Ce,f[6]):Ce,a[6]=Ae?Xr(a[5],h):f[6]),Ce=f[7],Ce&&(a[7]=Ce),E&N&&(a[8]=a[8]==null?f[8]:wn(a[8],f[8])),a[9]==null&&(a[9]=f[9]),a[0]=f[0],a[1]=L,a}function K8(a){var f=[];if(a!=null)for(var y in I(a))f.push(y);return f}function U8(a){return Be.call(a)}function Gx(a,f,y){return f=Ht(f===n?a.length-1:f,0),function(){for(var E=arguments,L=-1,ie=Ht(E.length-f,0),ve=Z(ie);++L<ie;)ve[L]=E[f+L];L=-1;for(var Ce=Z(f+1);++L<f;)Ce[L]=E[L];return Ce[f]=y(ve),In(a,this,Ce)}}function Yx(a,f){return f.length<2?a:tu(a,Ri(f,0,-1))}function z8(a,f){for(var y=a.length,E=wn(f.length,y),L=Qr(a);E--;){var ie=f[E];a[E]=To(ie,y)?L[ie]:n}return a}function zg(a,f){if(!(f==="constructor"&&typeof a[f]=="function")&&f!="__proto__")return a[f]}var Zx=Jx(bx),af=dt||function(a,f){return Dn.setTimeout(a,f)},qg=Jx(h8);function Xx(a,f,y){var E=f+"";return qg(a,O8(E,q8(R8(E),y)))}function Jx(a){var f=0,y=0;return function(){var E=Is(),L=ne-(E-y);if(y=E,L>0){if(++f>=we)return arguments[0]}else f=0;return a.apply(n,arguments)}}function yh(a,f){var y=-1,E=a.length,L=E-1;for(f=f===n?E:f;++y<f;){var ie=Ag(y,L),ve=a[ie];a[ie]=a[y],a[y]=ve}return a.length=f,a}var Qx=N8(function(a){var f=[];return a.charCodeAt(0)===46&&f.push(""),a.replace(ts,function(y,E,L,ie){f.push(L?ie.replace(Zr,"$1"):E||y)}),f});function Ns(a){if(typeof a=="string"||bi(a))return a;var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function ru(a){if(a!=null){try{return Qe.call(a)}catch{}try{return a+""}catch{}}return""}function q8(a,f){return hn(ke,function(y){var E="_."+y[0];f&y[1]&&!Rs(a,E)&&a.push(E)}),a.sort()}function ew(a){if(a instanceof Kt)return a.clone();var f=new _i(a.__wrapped__,a.__chain__);return f.__actions__=Qr(a.__actions__),f.__index__=a.__index__,f.__values__=a.__values__,f}function W8(a,f,y){(y?Br(a,f,y):f===n)?f=1:f=Ht(Ft(f),0);var E=a==null?0:a.length;if(!E||f<1)return[];for(var L=0,ie=0,ve=Z(fn(E/f));L<E;)ve[ie++]=Ri(a,L,L+=f);return ve}function H8(a){for(var f=-1,y=a==null?0:a.length,E=0,L=[];++f<y;){var ie=a[f];ie&&(L[E++]=ie)}return L}function G8(){var a=arguments.length;if(!a)return[];for(var f=Z(a-1),y=arguments[0],E=a;E--;)f[E-1]=arguments[E];return os(_t(y)?Qr(y):[y],br(f,1))}var Y8=Bt(function(a,f){return Un(a)?ef(a,br(f,1,Un,!0)):[]}),Z8=Bt(function(a,f){var y=Fi(f);return Un(y)&&(y=n),Un(a)?ef(a,br(f,1,Un,!0),wt(y,2)):[]}),X8=Bt(function(a,f){var y=Fi(f);return Un(y)&&(y=n),Un(a)?ef(a,br(f,1,Un,!0),n,y):[]});function J8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),Ri(a,f<0?0:f,E)):[]}function Q8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),f=E-f,Ri(a,0,f<0?0:f)):[]}function eL(a,f){return a&&a.length?ch(a,wt(f,3),!0,!0):[]}function tL(a,f){return a&&a.length?ch(a,wt(f,3),!0):[]}function nL(a,f,y,E){var L=a==null?0:a.length;return L?(y&&typeof y!="number"&&Br(a,f,y)&&(y=0,E=L),G9(a,f,y,E)):[]}function tw(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=y==null?0:Ft(y);return L<0&&(L=Ht(E+L,0)),Ya(a,wt(f,3),L)}function nw(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=E-1;return y!==n&&(L=Ft(y),L=y<0?Ht(E+L,0):wn(L,E-1)),Ya(a,wt(f,3),L,!0)}function rw(a){var f=a==null?0:a.length;return f?br(a,1):[]}function rL(a){var f=a==null?0:a.length;return f?br(a,j):[]}function iL(a,f){var y=a==null?0:a.length;return y?(f=f===n?1:Ft(f),br(a,f)):[]}function sL(a){for(var f=-1,y=a==null?0:a.length,E={};++f<y;){var L=a[f];E[L[0]]=L[1]}return E}function iw(a){return a&&a.length?a[0]:n}function oL(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=y==null?0:Ft(y);return L<0&&(L=Ht(E+L,0)),xo(a,f,L)}function aL(a){var f=a==null?0:a.length;return f?Ri(a,0,-1):[]}var uL=Bt(function(a){var f=cn(a,Rg);return f.length&&f[0]===a[0]?wg(f):[]}),lL=Bt(function(a){var f=Fi(a),y=cn(a,Rg);return f===Fi(y)?f=n:y.pop(),y.length&&y[0]===a[0]?wg(y,wt(f,2)):[]}),cL=Bt(function(a){var f=Fi(a),y=cn(a,Rg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===a[0]?wg(y,n,f):[]});function fL(a,f){return a==null?"":us.call(a,f)}function Fi(a){var f=a==null?0:a.length;return f?a[f-1]:n}function dL(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=E;return y!==n&&(L=Ft(y),L=L<0?Ht(E+L,0):wn(L,E-1)),f===f?v(a,f,L):Ya(a,Wc,L,!0)}function hL(a,f){return a&&a.length?mx(a,Ft(f)):n}var pL=Bt(sw);function sw(a,f){return a&&a.length&&f&&f.length?Dg(a,f):a}function mL(a,f,y){return a&&a.length&&f&&f.length?Dg(a,f,wt(y,2)):a}function gL(a,f,y){return a&&a.length&&f&&f.length?Dg(a,f,n,y):a}var vL=Ao(function(a,f){var y=a==null?0:a.length,E=yg(a,f);return yx(a,cn(f,function(L){return To(L,y)?+L:L}).sort(Tx)),E});function yL(a,f){var y=[];if(!(a&&a.length))return y;var E=-1,L=[],ie=a.length;for(f=wt(f,3);++E<ie;){var ve=a[E];f(ve,E,a)&&(y.push(ve),L.push(E))}return yx(a,L),y}function Wg(a){return a==null?a:vi.call(a)}function bL(a,f,y){var E=a==null?0:a.length;return E?(y&&typeof y!="number"&&Br(a,f,y)?(f=0,y=E):(f=f==null?0:Ft(f),y=y===n?E:Ft(y)),Ri(a,f,y)):[]}function $L(a,f){return lh(a,f)}function xL(a,f,y){return Pg(a,f,wt(y,2))}function wL(a,f){var y=a==null?0:a.length;if(y){var E=lh(a,f);if(E<y&&hs(a[E],f))return E}return-1}function CL(a,f){return lh(a,f,!0)}function SL(a,f,y){return Pg(a,f,wt(y,2),!0)}function EL(a,f){var y=a==null?0:a.length;if(y){var E=lh(a,f,!0)-1;if(hs(a[E],f))return E}return-1}function DL(a){return a&&a.length?$x(a):[]}function AL(a,f){return a&&a.length?$x(a,wt(f,2)):[]}function TL(a){var f=a==null?0:a.length;return f?Ri(a,1,f):[]}function PL(a,f,y){return a&&a.length?(f=y||f===n?1:Ft(f),Ri(a,0,f<0?0:f)):[]}function _L(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),f=E-f,Ri(a,f<0?0:f,E)):[]}function ML(a,f){return a&&a.length?ch(a,wt(f,3),!1,!0):[]}function RL(a,f){return a&&a.length?ch(a,wt(f,3)):[]}var FL=Bt(function(a){return oa(br(a,1,Un,!0))}),kL=Bt(function(a){var f=Fi(a);return Un(f)&&(f=n),oa(br(a,1,Un,!0),wt(f,2))}),OL=Bt(function(a){var f=Fi(a);return f=typeof f=="function"?f:n,oa(br(a,1,Un,!0),n,f)});function IL(a){return a&&a.length?oa(a):[]}function LL(a,f){return a&&a.length?oa(a,wt(f,2)):[]}function BL(a,f){return f=typeof f=="function"?f:n,a&&a.length?oa(a,n,f):[]}function Hg(a){if(!(a&&a.length))return[];var f=0;return a=Cr(a,function(y){if(Un(y))return f=Ht(y.length,f),!0}),ll(f,function(y){return cn(a,al(y))})}function ow(a,f){if(!(a&&a.length))return[];var y=Hg(a);return f==null?y:cn(y,function(E){return In(f,n,E)})}var VL=Bt(function(a,f){return Un(a)?ef(a,f):[]}),NL=Bt(function(a){return Mg(Cr(a,Un))}),jL=Bt(function(a){var f=Fi(a);return Un(f)&&(f=n),Mg(Cr(a,Un),wt(f,2))}),KL=Bt(function(a){var f=Fi(a);return f=typeof f=="function"?f:n,Mg(Cr(a,Un),n,f)}),UL=Bt(Hg);function zL(a,f){return Sx(a||[],f||[],Qc)}function qL(a,f){return Sx(a||[],f||[],rf)}var WL=Bt(function(a){var f=a.length,y=f>1?a[f-1]:n;return y=typeof y=="function"?(a.pop(),y):n,ow(a,y)});function aw(a){var f=J(a);return f.__chain__=!0,f}function HL(a,f){return f(a),a}function bh(a,f){return f(a)}var GL=Ao(function(a){var f=a.length,y=f?a[0]:0,E=this.__wrapped__,L=function(ie){return yg(ie,a)};return f>1||this.__actions__.length||!(E instanceof Kt)||!To(y)?this.thru(L):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:bh,args:[L],thisArg:n}),new _i(E,this.__chain__).thru(function(ie){return f&&!ie.length&&ie.push(n),ie}))});function YL(){return aw(this)}function ZL(){return new _i(this.value(),this.__chain__)}function XL(){this.__values__===n&&(this.__values__=xw(this.value()));var a=this.__index__>=this.__values__.length,f=a?n:this.__values__[this.__index__++];return{done:a,value:f}}function JL(){return this}function QL(a){for(var f,y=this;y instanceof ih;){var E=ew(y);E.__index__=0,E.__values__=n,f?L.__wrapped__=E:f=E;var L=E;y=y.__wrapped__}return L.__wrapped__=a,f}function eB(){var a=this.__wrapped__;if(a instanceof Kt){var f=a;return this.__actions__.length&&(f=new Kt(this)),f=f.reverse(),f.__actions__.push({func:bh,args:[Wg],thisArg:n}),new _i(f,this.__chain__)}return this.thru(Wg)}function tB(){return Cx(this.__wrapped__,this.__actions__)}var nB=fh(function(a,f,y){Ne.call(a,y)?++a[y]:Eo(a,y,1)});function rB(a,f,y){var E=_t(a)?$o:H9;return y&&Br(a,f,y)&&(f=n),E(a,wt(f,3))}function iB(a,f){var y=_t(a)?Cr:ox;return y(a,wt(f,3))}var sB=kx(tw),oB=kx(nw);function aB(a,f){return br($h(a,f),1)}function uB(a,f){return br($h(a,f),j)}function lB(a,f,y){return y=y===n?1:Ft(y),br($h(a,f),y)}function uw(a,f){var y=_t(a)?hn:sa;return y(a,wt(f,3))}function lw(a,f){var y=_t(a)?lr:sx;return y(a,wt(f,3))}var cB=fh(function(a,f,y){Ne.call(a,y)?a[y].push(f):Eo(a,y,[f])});function fB(a,f,y,E){a=ei(a)?a:yl(a),y=y&&!E?Ft(y):0;var L=a.length;return y<0&&(y=Ht(L+y,0)),Eh(a)?y<=L&&a.indexOf(f,y)>-1:!!L&&xo(a,f,y)>-1}var dB=Bt(function(a,f,y){var E=-1,L=typeof f=="function",ie=ei(a)?Z(a.length):[];return sa(a,function(ve){ie[++E]=L?In(f,ve,y):tf(ve,f,y)}),ie}),hB=fh(function(a,f,y){Eo(a,y,f)});function $h(a,f){var y=_t(a)?cn:dx;return y(a,wt(f,3))}function pB(a,f,y,E){return a==null?[]:(_t(f)||(f=f==null?[]:[f]),y=E?n:y,_t(y)||(y=y==null?[]:[y]),gx(a,f,y))}var mB=fh(function(a,f,y){a[y?0:1].push(f)},function(){return[[],[]]});function gB(a,f,y){var E=_t(a)?ol:Hc,L=arguments.length<3;return E(a,wt(f,4),y,L,sa)}function vB(a,f,y){var E=_t(a)?Wa:Hc,L=arguments.length<3;return E(a,wt(f,4),y,L,sx)}function yB(a,f){var y=_t(a)?Cr:ox;return y(a,Ch(wt(f,3)))}function bB(a){var f=_t(a)?tx:f8;return f(a)}function $B(a,f,y){(y?Br(a,f,y):f===n)?f=1:f=Ft(f);var E=_t(a)?K9:d8;return E(a,f)}function xB(a){var f=_t(a)?U9:p8;return f(a)}function wB(a){if(a==null)return 0;if(ei(a))return Eh(a)?x(a):a.length;var f=Dr(a);return f==xt||f==He?a.size:Sg(a).length}function CB(a,f,y){var E=_t(a)?Fs:m8;return y&&Br(a,f,y)&&(f=n),E(a,wt(f,3))}var SB=Bt(function(a,f){if(a==null)return[];var y=f.length;return y>1&&Br(a,f[0],f[1])?f=[]:y>2&&Br(f[0],f[1],f[2])&&(f=[f[0]]),gx(a,br(f,1),[])}),xh=yr||function(){return Dn.Date.now()};function EB(a,f){if(typeof f!="function")throw new re(o);return a=Ft(a),function(){if(--a<1)return f.apply(this,arguments)}}function cw(a,f,y){return f=y?n:f,f=a&&f==null?a.length:f,Do(a,N,n,n,n,n,f)}function fw(a,f){var y;if(typeof f!="function")throw new re(o);return a=Ft(a),function(){return--a>0&&(y=f.apply(this,arguments)),a<=1&&(f=n),y}}var Gg=Bt(function(a,f,y){var E=D;if(y.length){var L=Xr(y,gl(Gg));E|=M}return Do(a,E,f,y,L)}),dw=Bt(function(a,f,y){var E=D|S;if(y.length){var L=Xr(y,gl(dw));E|=M}return Do(f,E,a,y,L)});function hw(a,f,y){f=y?n:f;var E=Do(a,T,n,n,n,n,n,f);return E.placeholder=hw.placeholder,E}function pw(a,f,y){f=y?n:f;var E=Do(a,O,n,n,n,n,n,f);return E.placeholder=pw.placeholder,E}function mw(a,f,y){var E,L,ie,ve,Ce,Ae,ze=0,We=!1,Xe=!1,ot=!0;if(typeof a!="function")throw new re(o);f=ki(f)||0,_n(y)&&(We=!!y.leading,Xe="maxWait"in y,ie=Xe?Ht(ki(y.maxWait)||0,f):ie,ot="trailing"in y?!!y.trailing:ot);function gt(zn){var ps=E,Mo=L;return E=L=n,ze=zn,ve=a.apply(Mo,ps),ve}function St(zn){return ze=zn,Ce=af(Vt,f),We?gt(zn):ve}function Ot(zn){var ps=zn-Ae,Mo=zn-ze,kw=f-ps;return Xe?wn(kw,ie-Mo):kw}function Et(zn){var ps=zn-Ae,Mo=zn-ze;return Ae===n||ps>=f||ps<0||Xe&&Mo>=ie}function Vt(){var zn=xh();if(Et(zn))return qt(zn);Ce=af(Vt,Ot(zn))}function qt(zn){return Ce=n,ot&&E?gt(zn):(E=L=n,ve)}function $i(){Ce!==n&&Ex(Ce),ze=0,E=Ae=L=Ce=n}function Vr(){return Ce===n?ve:qt(xh())}function xi(){var zn=xh(),ps=Et(zn);if(E=arguments,L=this,Ae=zn,ps){if(Ce===n)return St(Ae);if(Xe)return Ex(Ce),Ce=af(Vt,f),gt(Ae)}return Ce===n&&(Ce=af(Vt,f)),ve}return xi.cancel=$i,xi.flush=Vr,xi}var DB=Bt(function(a,f){return ix(a,1,f)}),AB=Bt(function(a,f,y){return ix(a,ki(f)||0,y)});function TB(a){return Do(a,ae)}function wh(a,f){if(typeof a!="function"||f!=null&&typeof f!="function")throw new re(o);var y=function(){var E=arguments,L=f?f.apply(this,E):E[0],ie=y.cache;if(ie.has(L))return ie.get(L);var ve=a.apply(this,E);return y.cache=ie.set(L,ve)||ie,ve};return y.cache=new(wh.Cache||So),y}wh.Cache=So;function Ch(a){if(typeof a!="function")throw new re(o);return function(){var f=arguments;switch(f.length){case 0:return!a.call(this);case 1:return!a.call(this,f[0]);case 2:return!a.call(this,f[0],f[1]);case 3:return!a.call(this,f[0],f[1],f[2])}return!a.apply(this,f)}}function PB(a){return fw(2,a)}var _B=g8(function(a,f){f=f.length==1&&_t(f[0])?cn(f[0],Sr(wt())):cn(br(f,1),Sr(wt()));var y=f.length;return Bt(function(E){for(var L=-1,ie=wn(E.length,y);++L<ie;)E[L]=f[L].call(this,E[L]);return In(a,this,E)})}),Yg=Bt(function(a,f){var y=Xr(f,gl(Yg));return Do(a,M,n,f,y)}),gw=Bt(function(a,f){var y=Xr(f,gl(gw));return Do(a,k,n,f,y)}),MB=Ao(function(a,f){return Do(a,F,n,n,n,f)});function RB(a,f){if(typeof a!="function")throw new re(o);return f=f===n?f:Ft(f),Bt(a,f)}function FB(a,f){if(typeof a!="function")throw new re(o);return f=f==null?0:Ht(Ft(f),0),Bt(function(y){var E=y[f],L=ua(y,0,f);return E&&os(L,E),In(a,this,L)})}function kB(a,f,y){var E=!0,L=!0;if(typeof a!="function")throw new re(o);return _n(y)&&(E="leading"in y?!!y.leading:E,L="trailing"in y?!!y.trailing:L),mw(a,f,{leading:E,maxWait:f,trailing:L})}function OB(a){return cw(a,1)}function IB(a,f){return Yg(Fg(f),a)}function LB(){if(!arguments.length)return[];var a=arguments[0];return _t(a)?a:[a]}function BB(a){return Mi(a,b)}function VB(a,f){return f=typeof f=="function"?f:n,Mi(a,b,f)}function NB(a){return Mi(a,m|b)}function jB(a,f){return f=typeof f=="function"?f:n,Mi(a,m|b,f)}function KB(a,f){return f==null||rx(a,f,dr(f))}function hs(a,f){return a===f||a!==a&&f!==f}var UB=mh(xg),zB=mh(function(a,f){return a>=f}),iu=lx(function(){return arguments}())?lx:function(a){return Vn(a)&&Ne.call(a,"callee")&&!xn.call(a,"callee")},_t=Z.isArray,qB=bo?Sr(bo):Q9;function ei(a){return a!=null&&Sh(a.length)&&!Po(a)}function Un(a){return Vn(a)&&ei(a)}function WB(a){return a===!0||a===!1||Vn(a)&&Lr(a)==De}var la=as||ov,HB=Jd?Sr(Jd):e8;function GB(a){return Vn(a)&&a.nodeType===1&&!uf(a)}function YB(a){if(a==null)return!0;if(ei(a)&&(_t(a)||typeof a=="string"||typeof a.splice=="function"||la(a)||vl(a)||iu(a)))return!a.length;var f=Dr(a);if(f==xt||f==He)return!a.size;if(of(a))return!Sg(a).length;for(var y in a)if(Ne.call(a,y))return!1;return!0}function ZB(a,f){return nf(a,f)}function XB(a,f,y){y=typeof y=="function"?y:n;var E=y?y(a,f):n;return E===n?nf(a,f,n,y):!!E}function Zg(a){if(!Vn(a))return!1;var f=Lr(a);return f==Ve||f==_e||typeof a.message=="string"&&typeof a.name=="string"&&!uf(a)}function JB(a){return typeof a=="number"&&mi(a)}function Po(a){if(!_n(a))return!1;var f=Lr(a);return f==Le||f==nt||f==Ge||f==Ee}function vw(a){return typeof a=="number"&&a==Ft(a)}function Sh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=B}function _n(a){var f=typeof a;return a!=null&&(f=="object"||f=="function")}function Vn(a){return a!=null&&typeof a=="object"}var yw=Qd?Sr(Qd):n8;function QB(a,f){return a===f||Cg(a,f,Ng(f))}function eV(a,f,y){return y=typeof y=="function"?y:n,Cg(a,f,Ng(f),y)}function tV(a){return bw(a)&&a!=+a}function nV(a){if(V8(a))throw new fe(s);return cx(a)}function rV(a){return a===null}function iV(a){return a==null}function bw(a){return typeof a=="number"||Vn(a)&&Lr(a)==ln}function uf(a){if(!Vn(a)||Lr(a)!=Rt)return!1;var f=Tt(a);if(f===null)return!0;var y=Ne.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Qe.call(y)==be}var Xg=zc?Sr(zc):r8;function sV(a){return vw(a)&&a>=-9007199254740991&&a<=B}var $w=na?Sr(na):i8;function Eh(a){return typeof a=="string"||!_t(a)&&Vn(a)&&Lr(a)==et}function bi(a){return typeof a=="symbol"||Vn(a)&&Lr(a)==Je}var vl=ss?Sr(ss):s8;function oV(a){return a===n}function aV(a){return Vn(a)&&Dr(a)==bt}function uV(a){return Vn(a)&&Lr(a)==gn}var lV=mh(Eg),cV=mh(function(a,f){return a<=f});function xw(a){if(!a)return[];if(ei(a))return Eh(a)?P(a):Qr(a);if(Xn&&a[Xn])return Os(a[Xn]());var f=Dr(a),y=f==xt?Ln:f==He?ra:yl;return y(a)}function _o(a){if(!a)return a===0?a:0;if(a=ki(a),a===j||a===-1/0){var f=a<0?-1:1;return f*ge}return a===a?a:0}function Ft(a){var f=_o(a),y=f%1;return f===f?y?f-y:f:0}function ww(a){return a?eu(Ft(a),0,G):0}function ki(a){if(typeof a=="number")return a;if(bi(a))return U;if(_n(a)){var f=typeof a.valueOf=="function"?a.valueOf():a;a=_n(f)?f+"":f}if(typeof a!="string")return a===0?a:+a;a=th(a);var y=fi.test(a);return y||Ia.test(a)?nr(a.slice(2),y?2:8):rs.test(a)?U:+a}function Cw(a){return Vs(a,ti(a))}function fV(a){return a?eu(Ft(a),-9007199254740991,B):a===0?a:0}function sn(a){return a==null?"":yi(a)}var dV=pl(function(a,f){if(of(f)||ei(f)){Vs(f,dr(f),a);return}for(var y in f)Ne.call(f,y)&&Qc(a,y,f[y])}),Sw=pl(function(a,f){Vs(f,ti(f),a)}),Dh=pl(function(a,f,y,E){Vs(f,ti(f),a,E)}),hV=pl(function(a,f,y,E){Vs(f,dr(f),a,E)}),pV=Ao(yg);function mV(a,f){var y=hl(a);return f==null?y:nx(y,f)}var gV=Bt(function(a,f){a=I(a);var y=-1,E=f.length,L=E>2?f[2]:n;for(L&&Br(f[0],f[1],L)&&(E=1);++y<E;)for(var ie=f[y],ve=ti(ie),Ce=-1,Ae=ve.length;++Ce<Ae;){var ze=ve[Ce],We=a[ze];(We===n||hs(We,Oe[ze])&&!Ne.call(a,ze))&&(a[ze]=ie[ze])}return a}),vV=Bt(function(a){return a.push(n,jx),In(Ew,n,a)});function yV(a,f){return qc(a,wt(f,3),Bs)}function bV(a,f){return qc(a,wt(f,3),$g)}function $V(a,f){return a==null?a:bg(a,wt(f,3),ti)}function xV(a,f){return a==null?a:ax(a,wt(f,3),ti)}function wV(a,f){return a&&Bs(a,wt(f,3))}function CV(a,f){return a&&$g(a,wt(f,3))}function SV(a){return a==null?[]:ah(a,dr(a))}function EV(a){return a==null?[]:ah(a,ti(a))}function Jg(a,f,y){var E=a==null?n:tu(a,f);return E===n?y:E}function DV(a,f){return a!=null&&zx(a,f,Y9)}function Qg(a,f){return a!=null&&zx(a,f,Z9)}var AV=Ix(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),a[f]=y},tv(ni)),TV=Ix(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),Ne.call(a,f)?a[f].push(y):a[f]=[y]},wt),PV=Bt(tf);function dr(a){return ei(a)?ex(a):Sg(a)}function ti(a){return ei(a)?ex(a,!0):o8(a)}function _V(a,f){var y={};return f=wt(f,3),Bs(a,function(E,L,ie){Eo(y,f(E,L,ie),E)}),y}function MV(a,f){var y={};return f=wt(f,3),Bs(a,function(E,L,ie){Eo(y,L,f(E,L,ie))}),y}var RV=pl(function(a,f,y){uh(a,f,y)}),Ew=pl(function(a,f,y,E){uh(a,f,y,E)}),FV=Ao(function(a,f){var y={};if(a==null)return y;var E=!1;f=cn(f,function(ie){return ie=aa(ie,a),E||(E=ie.length>1),ie}),Vs(a,Bg(a),y),E&&(y=Mi(y,m|g|b,A8));for(var L=f.length;L--;)_g(y,f[L]);return y});function kV(a,f){return Dw(a,Ch(wt(f)))}var OV=Ao(function(a,f){return a==null?{}:u8(a,f)});function Dw(a,f){if(a==null)return{};var y=cn(Bg(a),function(E){return[E]});return f=wt(f),vx(a,y,function(E,L){return f(E,L[0])})}function IV(a,f,y){f=aa(f,a);var E=-1,L=f.length;for(L||(L=1,a=n);++E<L;){var ie=a==null?n:a[Ns(f[E])];ie===n&&(E=L,ie=y),a=Po(ie)?ie.call(a):ie}return a}function LV(a,f,y){return a==null?a:rf(a,f,y)}function BV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:rf(a,f,y,E)}var Aw=Vx(dr),Tw=Vx(ti);function VV(a,f,y){var E=_t(a),L=E||la(a)||vl(a);if(f=wt(f,4),y==null){var ie=a&&a.constructor;L?y=E?new ie:[]:_n(a)?y=Po(ie)?hl(Tt(a)):{}:y={}}return(L?hn:Bs)(a,function(ve,Ce,Ae){return f(y,ve,Ce,Ae)}),y}function NV(a,f){return a==null?!0:_g(a,f)}function jV(a,f,y){return a==null?a:wx(a,f,Fg(y))}function KV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:wx(a,f,Fg(y),E)}function yl(a){return a==null?[]:Gc(a,dr(a))}function UV(a){return a==null?[]:Gc(a,ti(a))}function zV(a,f,y){return y===n&&(y=f,f=n),y!==n&&(y=ki(y),y=y===y?y:0),f!==n&&(f=ki(f),f=f===f?f:0),eu(ki(a),f,y)}function qV(a,f,y){return f=_o(f),y===n?(y=f,f=0):y=_o(y),a=ki(a),X9(a,f,y)}function WV(a,f,y){if(y&&typeof y!="boolean"&&Br(a,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&f===n?(a=0,f=1):(a=_o(a),f===n?(f=a,a=0):f=_o(f)),a>f){var E=a;a=f,f=E}if(y||a%1||f%1){var L=cs();return wn(a+L*(f-a+$n("1e-"+((L+"").length-1))),f)}return Ag(a,f)}var HV=ml(function(a,f,y){return f=f.toLowerCase(),a+(y?Pw(f):f)});function Pw(a){return ev(sn(a).toLowerCase())}function _w(a){return a=sn(a),a&&a.replace(di,mg).replace(go,"")}function GV(a,f,y){a=sn(a),f=yi(f);var E=a.length;y=y===n?E:eu(Ft(y),0,E);var L=y;return y-=f.length,y>=0&&a.slice(y,L)==f}function YV(a){return a=sn(a),a&&kc.test(a)?a.replace(ci,wo):a}function ZV(a){return a=sn(a),a&&vt.test(a)?a.replace(ns,"\\$&"):a}var XV=ml(function(a,f,y){return a+(y?"-":"")+f.toLowerCase()}),JV=ml(function(a,f,y){return a+(y?" ":"")+f.toLowerCase()}),QV=Fx("toLowerCase");function eN(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;if(!f||E>=f)return a;var L=(f-E)/2;return ph(Jr(L),y)+a+ph(fn(L),y)}function tN(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;return f&&E<f?a+ph(f-E,y):a}function nN(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;return f&&E<f?ph(f-E,y)+a:a}function rN(a,f,y){return y||f==null?f=0:f&&(f=+f),gi(sn(a).replace(En,""),f||0)}function iN(a,f,y){return(y?Br(a,f,y):f===n)?f=1:f=Ft(f),Tg(sn(a),f)}function sN(){var a=arguments,f=sn(a[0]);return a.length<3?f:f.replace(a[1],a[2])}var oN=ml(function(a,f,y){return a+(y?"_":"")+f.toLowerCase()});function aN(a,f,y){return y&&typeof y!="number"&&Br(a,f,y)&&(f=y=n),y=y===n?G:y>>>0,y?(a=sn(a),a&&(typeof f=="string"||f!=null&&!Xg(f))&&(f=yi(f),!f&&Er(a))?ua(P(a),0,y):a.split(f,y)):[]}var uN=ml(function(a,f,y){return a+(y?" ":"")+ev(f)});function lN(a,f,y){return a=sn(a),y=y==null?0:eu(Ft(y),0,a.length),f=yi(f),a.slice(y,y+f.length)==f}function cN(a,f,y){var E=J.templateSettings;y&&Br(a,f,y)&&(f=n),a=sn(a),f=Dh({},f,E,Nx);var L=Dh({},f.imports,E.imports,Nx),ie=dr(L),ve=Gc(L,ie),Ce,Ae,ze=0,We=f.interpolate||On,Xe="__p += '",ot=V((f.escape||On).source+"|"+We.source+"|"+(We===Wu?st:On).source+"|"+(f.evaluate||On).source+"|$","g"),gt="//# sourceURL="+(Ne.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yo+"]")+`
|
|
70
|
+
`;a.replace(ot,function(Et,Vt,qt,$i,Vr,xi){return qt||(qt=$i),Xe+=a.slice(ze,xi).replace(Jo,pi),Vt&&(Ce=!0,Xe+=`' +
|
|
71
|
+
__e(`+Vt+`) +
|
|
72
|
+
'`),Vr&&(Ae=!0,Xe+=`';
|
|
73
|
+
`+Vr+`;
|
|
74
|
+
__p += '`),qt&&(Xe+=`' +
|
|
75
|
+
((__t = (`+qt+`)) == null ? '' : __t) +
|
|
76
|
+
'`),ze=xi+Et.length,Et}),Xe+=`';
|
|
77
|
+
`;var St=Ne.call(f,"variable")&&f.variable;if(!St)Xe=`with (obj) {
|
|
78
|
+
`+Xe+`
|
|
79
|
+
}
|
|
80
|
+
`;else if(Ic.test(St))throw new fe(u);Xe=(Ae?Xe.replace(Ci,""):Xe).replace(Ds,"$1").replace(ka,"$1;"),Xe="function("+(St||"obj")+`) {
|
|
81
|
+
`+(St?"":`obj || (obj = {});
|
|
82
|
+
`)+"var __t, __p = ''"+(Ce?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
|
|
83
|
+
function print() { __p += __j.call(arguments, '') }
|
|
84
|
+
`:`;
|
|
85
|
+
`)+Xe+`return __p
|
|
86
|
+
}`;var Ot=Rw(function(){return H(ie,gt+"return "+Xe).apply(n,ve)});if(Ot.source=Xe,Zg(Ot))throw Ot;return Ot}function fN(a){return sn(a).toLowerCase()}function dN(a){return sn(a).toUpperCase()}function hN(a,f,y){if(a=sn(a),a&&(y||f===n))return th(a);if(!a||!(f=yi(f)))return a;var E=P(a),L=P(f),ie=cl(E,L),ve=cr(E,L)+1;return ua(E,ie,ve).join("")}function pN(a,f,y){if(a=sn(a),a&&(y||f===n))return a.slice(0,_(a)+1);if(!a||!(f=yi(f)))return a;var E=P(a),L=cr(E,P(f))+1;return ua(E,0,L).join("")}function mN(a,f,y){if(a=sn(a),a&&(y||f===n))return a.replace(En,"");if(!a||!(f=yi(f)))return a;var E=P(a),L=cl(E,P(f));return ua(E,L).join("")}function gN(a,f){var y=oe,E=W;if(_n(f)){var L="separator"in f?f.separator:L;y="length"in f?Ft(f.length):y,E="omission"in f?yi(f.omission):E}a=sn(a);var ie=a.length;if(Er(a)){var ve=P(a);ie=ve.length}if(y>=ie)return a;var Ce=y-x(E);if(Ce<1)return E;var Ae=ve?ua(ve,0,Ce).join(""):a.slice(0,Ce);if(L===n)return Ae+E;if(ve&&(Ce+=Ae.length-Ce),Xg(L)){if(a.slice(Ce).search(L)){var ze,We=Ae;for(L.global||(L=V(L.source,sn(dn.exec(L))+"g")),L.lastIndex=0;ze=L.exec(We);)var Xe=ze.index;Ae=Ae.slice(0,Xe===n?Ce:Xe)}}else if(a.indexOf(yi(L),Ce)!=Ce){var ot=Ae.lastIndexOf(L);ot>-1&&(Ae=Ae.slice(0,ot))}return Ae+E}function vN(a){return a=sn(a),a&&ao.test(a)?a.replace(yt,q):a}var yN=ml(function(a,f,y){return a+(y?" ":"")+f.toUpperCase()}),ev=Fx("toUpperCase");function Mw(a,f,y){return a=sn(a),f=y?n:f,f===n?Yc(a)?ye(a):dg(a):a.match(f)||[]}var Rw=Bt(function(a,f){try{return In(a,n,f)}catch(y){return Zg(y)?y:new fe(y)}}),bN=Ao(function(a,f){return hn(f,function(y){y=Ns(y),Eo(a,y,Gg(a[y],a))}),a});function $N(a){var f=a==null?0:a.length,y=wt();return a=f?cn(a,function(E){if(typeof E[1]!="function")throw new re(o);return[y(E[0]),E[1]]}):[],Bt(function(E){for(var L=-1;++L<f;){var ie=a[L];if(In(ie[0],this,E))return In(ie[1],this,E)}})}function xN(a){return W9(Mi(a,m))}function tv(a){return function(){return a}}function wN(a,f){return a==null||a!==a?f:a}var CN=Ox(),SN=Ox(!0);function ni(a){return a}function nv(a){return fx(typeof a=="function"?a:Mi(a,m))}function EN(a){return hx(Mi(a,m))}function DN(a,f){return px(a,Mi(f,m))}var AN=Bt(function(a,f){return function(y){return tf(y,a,f)}}),TN=Bt(function(a,f){return function(y){return tf(a,y,f)}});function rv(a,f,y){var E=dr(f),L=ah(f,E);y==null&&!(_n(f)&&(L.length||!E.length))&&(y=f,f=a,a=this,L=ah(f,dr(f)));var ie=!(_n(y)&&"chain"in y)||!!y.chain,ve=Po(a);return hn(L,function(Ce){var Ae=f[Ce];a[Ce]=Ae,ve&&(a.prototype[Ce]=function(){var ze=this.__chain__;if(ie||ze){var We=a(this.__wrapped__),Xe=We.__actions__=Qr(this.__actions__);return Xe.push({func:Ae,args:arguments,thisArg:a}),We.__chain__=ze,We}return Ae.apply(a,os([this.value()],arguments))})}),a}function PN(){return Dn._===this&&(Dn._=ce),this}function iv(){}function _N(a){return a=Ft(a),Bt(function(f){return mx(f,a)})}var MN=Og(cn),RN=Og($o),FN=Og(Fs);function Fw(a){return Kg(a)?al(Ns(a)):l8(a)}function kN(a){return function(f){return a==null?n:tu(a,f)}}var ON=Lx(),IN=Lx(!0);function sv(){return[]}function ov(){return!1}function LN(){return{}}function BN(){return""}function VN(){return!0}function NN(a,f){if(a=Ft(a),a<1||a>B)return[];var y=G,E=wn(a,G);f=wt(f),a-=G;for(var L=ll(E,f);++y<a;)f(y);return L}function jN(a){return _t(a)?cn(a,Ns):bi(a)?[a]:Qr(Qx(sn(a)))}function KN(a){var f=++at;return sn(a)+f}var UN=hh(function(a,f){return a+f},0),zN=Ig("ceil"),qN=hh(function(a,f){return a/f},1),WN=Ig("floor");function HN(a){return a&&a.length?oh(a,ni,xg):n}function GN(a,f){return a&&a.length?oh(a,wt(f,2),xg):n}function YN(a){return Za(a,ni)}function ZN(a,f){return Za(a,wt(f,2))}function XN(a){return a&&a.length?oh(a,ni,Eg):n}function JN(a,f){return a&&a.length?oh(a,wt(f,2),Eg):n}var QN=hh(function(a,f){return a*f},1),ej=Ig("round"),tj=hh(function(a,f){return a-f},0);function nj(a){return a&&a.length?ks(a,ni):0}function rj(a,f){return a&&a.length?ks(a,wt(f,2)):0}return J.after=EB,J.ary=cw,J.assign=dV,J.assignIn=Sw,J.assignInWith=Dh,J.assignWith=hV,J.at=pV,J.before=fw,J.bind=Gg,J.bindAll=bN,J.bindKey=dw,J.castArray=LB,J.chain=aw,J.chunk=W8,J.compact=H8,J.concat=G8,J.cond=$N,J.conforms=xN,J.constant=tv,J.countBy=nB,J.create=mV,J.curry=hw,J.curryRight=pw,J.debounce=mw,J.defaults=gV,J.defaultsDeep=vV,J.defer=DB,J.delay=AB,J.difference=Y8,J.differenceBy=Z8,J.differenceWith=X8,J.drop=J8,J.dropRight=Q8,J.dropRightWhile=eL,J.dropWhile=tL,J.fill=nL,J.filter=iB,J.flatMap=aB,J.flatMapDeep=uB,J.flatMapDepth=lB,J.flatten=rw,J.flattenDeep=rL,J.flattenDepth=iL,J.flip=TB,J.flow=CN,J.flowRight=SN,J.fromPairs=sL,J.functions=SV,J.functionsIn=EV,J.groupBy=cB,J.initial=aL,J.intersection=uL,J.intersectionBy=lL,J.intersectionWith=cL,J.invert=AV,J.invertBy=TV,J.invokeMap=dB,J.iteratee=nv,J.keyBy=hB,J.keys=dr,J.keysIn=ti,J.map=$h,J.mapKeys=_V,J.mapValues=MV,J.matches=EN,J.matchesProperty=DN,J.memoize=wh,J.merge=RV,J.mergeWith=Ew,J.method=AN,J.methodOf=TN,J.mixin=rv,J.negate=Ch,J.nthArg=_N,J.omit=FV,J.omitBy=kV,J.once=PB,J.orderBy=pB,J.over=MN,J.overArgs=_B,J.overEvery=RN,J.overSome=FN,J.partial=Yg,J.partialRight=gw,J.partition=mB,J.pick=OV,J.pickBy=Dw,J.property=Fw,J.propertyOf=kN,J.pull=pL,J.pullAll=sw,J.pullAllBy=mL,J.pullAllWith=gL,J.pullAt=vL,J.range=ON,J.rangeRight=IN,J.rearg=MB,J.reject=yB,J.remove=yL,J.rest=RB,J.reverse=Wg,J.sampleSize=$B,J.set=LV,J.setWith=BV,J.shuffle=xB,J.slice=bL,J.sortBy=SB,J.sortedUniq=DL,J.sortedUniqBy=AL,J.split=aN,J.spread=FB,J.tail=TL,J.take=PL,J.takeRight=_L,J.takeRightWhile=ML,J.takeWhile=RL,J.tap=HL,J.throttle=kB,J.thru=bh,J.toArray=xw,J.toPairs=Aw,J.toPairsIn=Tw,J.toPath=jN,J.toPlainObject=Cw,J.transform=VV,J.unary=OB,J.union=FL,J.unionBy=kL,J.unionWith=OL,J.uniq=IL,J.uniqBy=LL,J.uniqWith=BL,J.unset=NV,J.unzip=Hg,J.unzipWith=ow,J.update=jV,J.updateWith=KV,J.values=yl,J.valuesIn=UV,J.without=VL,J.words=Mw,J.wrap=IB,J.xor=NL,J.xorBy=jL,J.xorWith=KL,J.zip=UL,J.zipObject=zL,J.zipObjectDeep=qL,J.zipWith=WL,J.entries=Aw,J.entriesIn=Tw,J.extend=Sw,J.extendWith=Dh,rv(J,J),J.add=UN,J.attempt=Rw,J.camelCase=HV,J.capitalize=Pw,J.ceil=zN,J.clamp=zV,J.clone=BB,J.cloneDeep=NB,J.cloneDeepWith=jB,J.cloneWith=VB,J.conformsTo=KB,J.deburr=_w,J.defaultTo=wN,J.divide=qN,J.endsWith=GV,J.eq=hs,J.escape=YV,J.escapeRegExp=ZV,J.every=rB,J.find=sB,J.findIndex=tw,J.findKey=yV,J.findLast=oB,J.findLastIndex=nw,J.findLastKey=bV,J.floor=WN,J.forEach=uw,J.forEachRight=lw,J.forIn=$V,J.forInRight=xV,J.forOwn=wV,J.forOwnRight=CV,J.get=Jg,J.gt=UB,J.gte=zB,J.has=DV,J.hasIn=Qg,J.head=iw,J.identity=ni,J.includes=fB,J.indexOf=oL,J.inRange=qV,J.invoke=PV,J.isArguments=iu,J.isArray=_t,J.isArrayBuffer=qB,J.isArrayLike=ei,J.isArrayLikeObject=Un,J.isBoolean=WB,J.isBuffer=la,J.isDate=HB,J.isElement=GB,J.isEmpty=YB,J.isEqual=ZB,J.isEqualWith=XB,J.isError=Zg,J.isFinite=JB,J.isFunction=Po,J.isInteger=vw,J.isLength=Sh,J.isMap=yw,J.isMatch=QB,J.isMatchWith=eV,J.isNaN=tV,J.isNative=nV,J.isNil=iV,J.isNull=rV,J.isNumber=bw,J.isObject=_n,J.isObjectLike=Vn,J.isPlainObject=uf,J.isRegExp=Xg,J.isSafeInteger=sV,J.isSet=$w,J.isString=Eh,J.isSymbol=bi,J.isTypedArray=vl,J.isUndefined=oV,J.isWeakMap=aV,J.isWeakSet=uV,J.join=fL,J.kebabCase=XV,J.last=Fi,J.lastIndexOf=dL,J.lowerCase=JV,J.lowerFirst=QV,J.lt=lV,J.lte=cV,J.max=HN,J.maxBy=GN,J.mean=YN,J.meanBy=ZN,J.min=XN,J.minBy=JN,J.stubArray=sv,J.stubFalse=ov,J.stubObject=LN,J.stubString=BN,J.stubTrue=VN,J.multiply=QN,J.nth=hL,J.noConflict=PN,J.noop=iv,J.now=xh,J.pad=eN,J.padEnd=tN,J.padStart=nN,J.parseInt=rN,J.random=WV,J.reduce=gB,J.reduceRight=vB,J.repeat=iN,J.replace=sN,J.result=IV,J.round=ej,J.runInContext=R,J.sample=bB,J.size=wB,J.snakeCase=oN,J.some=CB,J.sortedIndex=$L,J.sortedIndexBy=xL,J.sortedIndexOf=wL,J.sortedLastIndex=CL,J.sortedLastIndexBy=SL,J.sortedLastIndexOf=EL,J.startCase=uN,J.startsWith=lN,J.subtract=tj,J.sum=nj,J.sumBy=rj,J.template=cN,J.times=NN,J.toFinite=_o,J.toInteger=Ft,J.toLength=ww,J.toLower=fN,J.toNumber=ki,J.toSafeInteger=fV,J.toString=sn,J.toUpper=dN,J.trim=hN,J.trimEnd=pN,J.trimStart=mN,J.truncate=gN,J.unescape=vN,J.uniqueId=KN,J.upperCase=yN,J.upperFirst=ev,J.each=uw,J.eachRight=lw,J.first=iw,rv(J,function(){var a={};return Bs(J,function(f,y){Ne.call(J.prototype,y)||(a[y]=f)}),a}(),{chain:!1}),J.VERSION=r,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){J[a].placeholder=J}),hn(["drop","take"],function(a,f){Kt.prototype[a]=function(y){y=y===n?1:Ht(Ft(y),0);var E=this.__filtered__&&!f?new Kt(this):this.clone();return E.__filtered__?E.__takeCount__=wn(y,E.__takeCount__):E.__views__.push({size:wn(y,G),type:a+(E.__dir__<0?"Right":"")}),E},Kt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),hn(["filter","map","takeWhile"],function(a,f){var y=f+1,E=y==se||y==K;Kt.prototype[a]=function(L){var ie=this.clone();return ie.__iteratees__.push({iteratee:wt(L,3),type:y}),ie.__filtered__=ie.__filtered__||E,ie}}),hn(["head","last"],function(a,f){var y="take"+(f?"Right":"");Kt.prototype[a]=function(){return this[y](1).value()[0]}}),hn(["initial","tail"],function(a,f){var y="drop"+(f?"":"Right");Kt.prototype[a]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(ni)},Kt.prototype.find=function(a){return this.filter(a).head()},Kt.prototype.findLast=function(a){return this.reverse().find(a)},Kt.prototype.invokeMap=Bt(function(a,f){return typeof a=="function"?new Kt(this):this.map(function(y){return tf(y,a,f)})}),Kt.prototype.reject=function(a){return this.filter(Ch(wt(a)))},Kt.prototype.slice=function(a,f){a=Ft(a);var y=this;return y.__filtered__&&(a>0||f<0)?new Kt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),f!==n&&(f=Ft(f),y=f<0?y.dropRight(-f):y.take(f-a)),y)},Kt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Kt.prototype.toArray=function(){return this.take(G)},Bs(Kt.prototype,function(a,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),L=J[E?"take"+(f=="last"?"Right":""):f],ie=E||/^find/.test(f);L&&(J.prototype[f]=function(){var ve=this.__wrapped__,Ce=E?[1]:arguments,Ae=ve instanceof Kt,ze=Ce[0],We=Ae||_t(ve),Xe=function(Vt){var qt=L.apply(J,os([Vt],Ce));return E&&ot?qt[0]:qt};We&&y&&typeof ze=="function"&&ze.length!=1&&(Ae=We=!1);var ot=this.__chain__,gt=!!this.__actions__.length,St=ie&&!ot,Ot=Ae&&!gt;if(!ie&&We){ve=Ot?ve:new Kt(this);var Et=a.apply(ve,Ce);return Et.__actions__.push({func:bh,args:[Xe],thisArg:n}),new _i(Et,ot)}return St&&Ot?a.apply(this,Ce):(Et=this.thru(Xe),St?E?Et.value()[0]:Et.value():Et)})}),hn(["pop","push","shift","sort","splice","unshift"],function(a){var f=le[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);J.prototype[a]=function(){var L=arguments;if(E&&!this.__chain__){var ie=this.value();return f.apply(_t(ie)?ie:[],L)}return this[y](function(ve){return f.apply(_t(ve)?ve:[],L)})}}),Bs(Kt.prototype,function(a,f){var y=J[f];if(y){var E=y.name+"";Ne.call(dl,E)||(dl[E]=[]),dl[E].push({name:f,func:y})}}),dl[dh(n,S).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=v9,Kt.prototype.reverse=y9,Kt.prototype.value=b9,J.prototype.at=GL,J.prototype.chain=YL,J.prototype.commit=ZL,J.prototype.next=XL,J.prototype.plant=QL,J.prototype.reverse=eB,J.prototype.toJSON=J.prototype.valueOf=J.prototype.value=tB,J.prototype.first=J.prototype.head,Xn&&(J.prototype[Xn]=JL),J},Re=xe();Ai?((Ai.exports=Re)._=Re,Di._=Re):Dn._=Re}).call(bU)}(Ef,Ef.exports)),Ef.exports}var zP=$U();const xU=ws(zP);var xd=e=>e.type==="checkbox",hu=e=>e instanceof Date,jr=e=>e==null;const qP=e=>typeof e=="object";var Gn=e=>!jr(e)&&!Array.isArray(e)&&qP(e)&&!hu(e),WP=e=>Gn(e)&&e.target?xd(e.target)?e.target.checked:e.target.value:e,wU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,HP=(e,t)=>e.has(wU(t)),CU=e=>{const t=e.constructor&&e.constructor.prototype;return Gn(t)&&t.hasOwnProperty("isPrototypeOf")},B4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function rr(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(!(B4&&(e instanceof Blob||r))&&(n||Gn(e)))if(t=n?[]:{},!n&&!CU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=rr(e[i]));else return e;return t}var wd=e=>Array.isArray(e)?e.filter(Boolean):[],Sn=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Gn(e))return n;const r=wd(t.split(/[,[\].]+?/)).reduce((i,s)=>jr(i)?i:i[s],e);return Sn(r)||r===e?Sn(e[t])?n:e[t]:r},ji=e=>typeof e=="boolean",V4=e=>/^\w*$/.test(e),GP=e=>wd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Xt=(e,t,n)=>{let r=-1;const i=V4(t)?[t]:GP(t),s=i.length,o=s-1;for(;++r<s;){const u=i[r];let l=n;if(r!==o){const d=e[u];l=Gn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const Pp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},zi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ro={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},YP=A.createContext(null),Cd=()=>A.useContext(YP),SU=e=>{const{children:t,...n}=e;return A.createElement(YP.Provider,{value:n},t)};var ZP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==zi.all&&(t._proxyFormState[o]=!r||zi.all),n&&(n[o]=!0),e[o]}});return i},Nr=e=>Gn(e)&&!Object.keys(e).length,XP=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return Nr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===(!r||zi.all))},si=e=>Array.isArray(e)?e:[e],JP=(e,t,n)=>!e||!t||e===t||si(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function wm(e){const t=A.useRef(e);t.current=e,A.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function EU(e){const t=Cd(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[o,u]=A.useState(n._formState),l=A.useRef(!0),d=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=A.useRef(i);return h.current=i,wm({disabled:r,next:m=>l.current&&JP(h.current,m.name,s)&&XP(m,d.current,n._updateFormState)&&u({...n._formState,...m}),subject:n._subjects.state}),A.useEffect(()=>(l.current=!0,d.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),A.useMemo(()=>ZP(o,n,d.current,!1),[o,n])}var Hs=e=>typeof e=="string",QP=(e,t,n,r,i)=>Hs(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),rt(n,s))):(r&&(t.watchAll=!0),n);function e5(e){const t=Cd(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:o}=e||{},u=A.useRef(r);u.current=r,wm({disabled:s,subject:n._subjects.values,next:h=>{JP(u.current,h.name,o)&&d(rr(QP(u.current,n._names,h.values||n._formValues,!1,i)))}});const[l,d]=A.useState(n._getWatch(r,i));return A.useEffect(()=>n._removeUnmounted()),l}function t5(e){const t=Cd(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,o=HP(i._names.array,n),u=e5({control:i,name:n,defaultValue:rt(i._formValues,n,rt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=EU({control:i,name:n,exact:!0}),d=A.useRef(i.register(n,{...e.rules,value:u,...ji(e.disabled)?{disabled:e.disabled}:{}})),h=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rt(l.validatingFields,n)},error:{enumerable:!0,get:()=>rt(l.errors,n)}}),[l,n]),m=A.useMemo(()=>({name:n,value:u,...ji(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g=>d.current.onChange({target:{value:WP(g),name:n},type:Pp.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:rt(i._formValues,n),name:n},type:Pp.BLUR}),ref:g=>{const b=rt(i._fields,n);b&&g&&(b._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:$=>g.setCustomValidity($),reportValidity:()=>g.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return A.useEffect(()=>{const g=i._options.shouldUnregister||s,b=($,w)=>{const D=rt(i._fields,$);D&&D._f&&(D._f.mount=w)};if(b(n,!0),g){const $=rr(rt(i._options.defaultValues,n));Xt(i._defaultValues,n,$),Sn(rt(i._formValues,n))&&Xt(i._formValues,n,$)}return!o&&i.register(n),()=>{(o?g&&!i._state.action:g)?i.unregister(n):b(n,!1)}},[n,i,o,s]),A.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),A.useMemo(()=>({field:m,formState:l,fieldState:h}),[m,l,h])}const DU=e=>e.render(t5(e));var n5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ca=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},gv=(e,t,n={})=>n.shouldFocus||Sn(n.shouldFocus)?n.focusName||`${e}.${Sn(n.focusIndex)?t:n.focusIndex}.`:"",Bf=e=>({isOnSubmit:!e||e===zi.onSubmit,isOnBlur:e===zi.onBlur,isOnChange:e===zi.onChange,isOnAll:e===zi.all,isOnTouch:e===zi.onTouched}),nb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Vl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=rt(e,i);if(s){const{_f:o,...u}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Vl(u,t))break}else if(Gn(u)&&Vl(u,t))break}}};var r5=(e,t,n)=>{const r=si(rt(e,n));return Xt(r,"root",t[n]),Xt(e,n,r),e},N4=e=>e.type==="file",Ws=e=>typeof e=="function",_p=e=>{if(!B4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ip=e=>Hs(e),j4=e=>e.type==="radio",Mp=e=>e instanceof RegExp;const lC={value:!1,isValid:!1},cC={value:!0,isValid:!0};var i5=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&&!Sn(e[0].attributes.value)?Sn(e[0].value)||e[0].value===""?cC:{value:e[0].value,isValid:!0}:cC:lC}return lC};const fC={isValid:!1,value:null};var s5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,fC):fC;function dC(e,t,n="validate"){if(ip(e)||Array.isArray(e)&&e.every(ip)||ji(e)&&!e)return{type:n,message:ip(e)?e:"",ref:t}}var $l=e=>Gn(e)&&!Mp(e)?e:{value:e,message:""},rb=async(e,t,n,r,i,s)=>{const{ref:o,refs:u,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:$,name:w,valueAsNumber:D,mount:S}=e._f,C=rt(n,w);if(!S||t.has(w))return{};const T=u?u[0]:o,O=we=>{i&&T.reportValidity&&(T.setCustomValidity(ji(we)?"":we||""),T.reportValidity())},M={},k=j4(o),N=xd(o),F=k||N,ae=(D||N4(o))&&Sn(o.value)&&Sn(C)||_p(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,oe=n5.bind(null,w,r,M),W=(we,ne,se,z=Ro.maxLength,K=Ro.minLength)=>{const j=we?ne:se;M[w]={type:we?z:K,message:j,ref:o,...oe(we?z:K,j)}};if(s?!Array.isArray(C)||!C.length:l&&(!F&&(ae||jr(C))||ji(C)&&!C||N&&!i5(u).isValid||k&&!s5(u).isValid)){const{value:we,message:ne}=ip(l)?{value:!!l,message:l}:$l(l);if(we&&(M[w]={type:Ro.required,message:ne,ref:T,...oe(Ro.required,ne)},!r))return O(ne),M}if(!ae&&(!jr(m)||!jr(g))){let we,ne;const se=$l(g),z=$l(m);if(!jr(C)&&!isNaN(C)){const K=o.valueAsNumber||C&&+C;jr(se.value)||(we=K>se.value),jr(z.value)||(ne=K<z.value)}else{const K=o.valueAsDate||new Date(C),j=U=>new Date(new Date().toDateString()+" "+U),B=o.type=="time",ge=o.type=="week";Hs(se.value)&&C&&(we=B?j(C)>j(se.value):ge?C>se.value:K>new Date(se.value)),Hs(z.value)&&C&&(ne=B?j(C)<j(z.value):ge?C<z.value:K<new Date(z.value))}if((we||ne)&&(W(!!we,se.message,z.message,Ro.max,Ro.min),!r))return O(M[w].message),M}if((d||h)&&!ae&&(Hs(C)||s&&Array.isArray(C))){const we=$l(d),ne=$l(h),se=!jr(we.value)&&C.length>+we.value,z=!jr(ne.value)&&C.length<+ne.value;if((se||z)&&(W(se,we.message,ne.message),!r))return O(M[w].message),M}if(b&&!ae&&Hs(C)){const{value:we,message:ne}=$l(b);if(Mp(we)&&!C.match(we)&&(M[w]={type:Ro.pattern,message:ne,ref:o,...oe(Ro.pattern,ne)},!r))return O(ne),M}if($){if(Ws($)){const we=await $(C,n),ne=dC(we,T);if(ne&&(M[w]={...ne,...oe(Ro.validate,ne.message)},!r))return O(ne.message),M}else if(Gn($)){let we={};for(const ne in $){if(!Nr(we)&&!r)break;const se=dC(await $[ne](C,n),T,ne);se&&(we={...se,...oe(ne,se.message)},O(se.message),r&&(M[w]=we))}if(!Nr(we)&&(M[w]={ref:T,...we},!r))return M}}return O(!0),M},vv=(e,t)=>[...e,...si(t)],yv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function bv(e,t,n){return[...e.slice(0,t),...si(n),...e.slice(t)]}var $v=(e,t,n)=>Array.isArray(e)?(Sn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],xv=(e,t)=>[...si(t),...si(e)];function AU(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return wd(r).length?r:[]}var wv=(e,t)=>Sn(t)?[]:AU(e,si(t).sort((n,r)=>n-r)),Cv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function TU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Sn(e)?r++:e[t[r++]];return e}function PU(e){for(const t in e)if(e.hasOwnProperty(t)&&!Sn(e[t]))return!1;return!0}function Jn(e,t){const n=Array.isArray(t)?t:V4(t)?[t]:GP(t),r=n.length===1?e:TU(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Gn(r)&&Nr(r)||Array.isArray(r)&&PU(r))&&Jn(e,n.slice(0,-1)),e}var hC=(e,t,n)=>(e[t]=n,e);function _U(e){const t=Cd(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:o}=e,[u,l]=A.useState(n._getFieldArray(r)),d=A.useRef(n._getFieldArray(r).map(ca)),h=A.useRef(u),m=A.useRef(r),g=A.useRef(!1);m.current=r,h.current=u,n._names.array.add(r),o&&n.register(r,o),wm({next:({values:k,name:N})=>{if(N===m.current||!N){const F=rt(k,m.current);Array.isArray(F)&&(l(F),d.current=F.map(ca))}},subject:n._subjects.array});const b=A.useCallback(k=>{g.current=!0,n._updateFieldArray(r,k)},[n,r]),$=(k,N)=>{const F=si(rr(k)),ae=vv(n._getFieldArray(r),F);n._names.focus=gv(r,ae.length-1,N),d.current=vv(d.current,F.map(ca)),b(ae),l(ae),n._updateFieldArray(r,ae,vv,{argA:yv(k)})},w=(k,N)=>{const F=si(rr(k)),ae=xv(n._getFieldArray(r),F);n._names.focus=gv(r,0,N),d.current=xv(d.current,F.map(ca)),b(ae),l(ae),n._updateFieldArray(r,ae,xv,{argA:yv(k)})},D=k=>{const N=wv(n._getFieldArray(r),k);d.current=wv(d.current,k),b(N),l(N),!Array.isArray(rt(n._fields,r))&&Xt(n._fields,r,void 0),n._updateFieldArray(r,N,wv,{argA:k})},S=(k,N,F)=>{const ae=si(rr(N)),oe=bv(n._getFieldArray(r),k,ae);n._names.focus=gv(r,k,F),d.current=bv(d.current,k,ae.map(ca)),b(oe),l(oe),n._updateFieldArray(r,oe,bv,{argA:k,argB:yv(N)})},C=(k,N)=>{const F=n._getFieldArray(r);Cv(F,k,N),Cv(d.current,k,N),b(F),l(F),n._updateFieldArray(r,F,Cv,{argA:k,argB:N},!1)},T=(k,N)=>{const F=n._getFieldArray(r);$v(F,k,N),$v(d.current,k,N),b(F),l(F),n._updateFieldArray(r,F,$v,{argA:k,argB:N},!1)},O=(k,N)=>{const F=rr(N),ae=hC(n._getFieldArray(r),k,F);d.current=[...ae].map((oe,W)=>!oe||W===k?ca():d.current[W]),b(ae),l([...ae]),n._updateFieldArray(r,ae,hC,{argA:k,argB:F},!0,!1)},M=k=>{const N=si(rr(k));d.current=N.map(ca),b([...N]),l([...N]),n._updateFieldArray(r,[...N],F=>F,{},!0,!1)};return A.useEffect(()=>{if(n._state.action=!1,nb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Bf(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(k=>{const N=rt(k.errors,r),F=rt(n._formState.errors,r);(F?!N&&F.type||N&&(F.type!==N.type||F.message!==N.message):N&&N.type)&&(N?Xt(n._formState.errors,r,N):Jn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const k=rt(n._fields,r);k&&k._f&&!(Bf(n._options.reValidateMode).isOnSubmit&&Bf(n._options.mode).isOnSubmit)&&rb(k,n._names.disabled,n._formValues,n._options.criteriaMode===zi.all,n._options.shouldUseNativeValidation,!0).then(N=>!Nr(N)&&n._subjects.state.next({errors:r5(n._formState.errors,N,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&Vl(n._fields,(k,N)=>{if(n._names.focus&&N.startsWith(n._names.focus)&&k.focus)return k.focus(),1}),n._names.focus="",n._updateValid(),g.current=!1},[u,r,n]),A.useEffect(()=>(!rt(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||s)&&n.unregister(r)}),[r,n,i,s]),{swap:A.useCallback(C,[b,r,n]),move:A.useCallback(T,[b,r,n]),prepend:A.useCallback(w,[b,r,n]),append:A.useCallback($,[b,r,n]),remove:A.useCallback(D,[b,r,n]),insert:A.useCallback(S,[b,r,n]),update:A.useCallback(O,[b,r,n]),replace:A.useCallback(M,[b,r,n]),fields:A.useMemo(()=>u.map((k,N)=>({...k,[i]:d.current[N]||ca()})),[u,i])}}var Sv=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},ib=e=>jr(e)||!qP(e);function va(e,t){if(ib(e)||ib(t))return e===t;if(hu(e)&&hu(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 s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(hu(s)&&hu(o)||Gn(s)&&Gn(o)||Array.isArray(s)&&Array.isArray(o)?!va(s,o):s!==o)return!1}}return!0}var o5=e=>e.type==="select-multiple",MU=e=>j4(e)||xd(e),Ev=e=>_p(e)&&e.isConnected,a5=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Rp(e,t={}){const n=Array.isArray(e);if(Gn(e)||n)for(const r in e)Array.isArray(e[r])||Gn(e[r])&&!a5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Rp(e[r],t[r])):jr(e[r])||(t[r]=!0);return t}function u5(e,t,n){const r=Array.isArray(e);if(Gn(e)||r)for(const i in e)Array.isArray(e[i])||Gn(e[i])&&!a5(e[i])?Sn(t)||ib(n[i])?n[i]=Array.isArray(e[i])?Rp(e[i],[]):{...Rp(e[i])}:u5(e[i],jr(t)?{}:t[i],n[i]):n[i]=!va(e[i],t[i]);return n}var lf=(e,t)=>u5(e,t,Rp(t)),l5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Sn(e)?e:t?e===""?NaN:e&&+e:n&&Hs(e)?new Date(e):r?r(e):e;function Dv(e){const t=e.ref;return N4(t)?t.files:j4(t)?s5(e.refs).value:o5(t)?[...t.selectedOptions].map(({value:n})=>n):xd(t)?i5(e.refs).value:l5(Sn(t.value)?e.ref.value:t.value,e)}var RU=(e,t,n,r)=>{const i={};for(const s of e){const o=rt(t,s);o&&Xt(i,s,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},cf=e=>Sn(e)?e:Mp(e)?e.source:Gn(e)?Mp(e.value)?e.value.source:e.value:e;const pC="AsyncFunction";var FU=e=>!!e&&!!e.validate&&!!(Ws(e.validate)&&e.validate.constructor.name===pC||Gn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===pC)),kU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function mC(e,t,n){const r=rt(e,n);if(r||V4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),o=rt(t,s),u=rt(e,s);if(o&&!Array.isArray(o)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};i.pop()}return{name:n}}var OU=(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,IU=(e,t)=>!wd(rt(e,t)).length&&Jn(e,t);const LU={mode:zi.onSubmit,reValidateMode:zi.onChange,shouldFocusError:!0};function BU(e={}){let t={...LU,...e},n={submitCount:0,isDirty:!1,isLoading:Ws(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gn(t.defaultValues)||Gn(t.values)?rr(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:rr(i),o={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:Sv(),array:Sv(),state:Sv()},g=Bf(t.mode),b=Bf(t.reValidateMode),$=t.criteriaMode===zi.all,w=$e=>Ee=>{clearTimeout(d),d=setTimeout($e,Ee)},D=async $e=>{if(!t.disabled&&(h.isValid||$e)){const Ee=t.resolver?Nr((await F()).errors):await oe(r,!0);Ee!==n.isValid&&m.state.next({isValid:Ee})}},S=($e,Ee)=>{!t.disabled&&(h.isValidating||h.validatingFields)&&(($e||Array.from(u.mount)).forEach(Te=>{Te&&(Ee?Xt(n.validatingFields,Te,Ee):Jn(n.validatingFields,Te))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Nr(n.validatingFields)}))},C=($e,Ee=[],Te,He,et=!0,Je=!0)=>{if(He&&Te&&!t.disabled){if(o.action=!0,Je&&Array.isArray(rt(r,$e))){const lt=Te(rt(r,$e),He.argA,He.argB);et&&Xt(r,$e,lt)}if(Je&&Array.isArray(rt(n.errors,$e))){const lt=Te(rt(n.errors,$e),He.argA,He.argB);et&&Xt(n.errors,$e,lt),IU(n.errors,$e)}if(h.touchedFields&&Je&&Array.isArray(rt(n.touchedFields,$e))){const lt=Te(rt(n.touchedFields,$e),He.argA,He.argB);et&&Xt(n.touchedFields,$e,lt)}h.dirtyFields&&(n.dirtyFields=lf(i,s)),m.state.next({name:$e,isDirty:we($e,Ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Xt(s,$e,Ee)},T=($e,Ee)=>{Xt(n.errors,$e,Ee),m.state.next({errors:n.errors})},O=$e=>{n.errors=$e,m.state.next({errors:n.errors,isValid:!1})},M=($e,Ee,Te,He)=>{const et=rt(r,$e);if(et){const Je=rt(s,$e,Sn(Te)?rt(i,$e):Te);Sn(Je)||He&&He.defaultChecked||Ee?Xt(s,$e,Ee?Je:Dv(et._f)):z($e,Je),o.mount&&D()}},k=($e,Ee,Te,He,et)=>{let Je=!1,lt=!1;const bt={name:$e};if(!t.disabled){const gn=!!(rt(r,$e)&&rt(r,$e)._f&&rt(r,$e)._f.disabled);if(!Te||He){h.isDirty&&(lt=n.isDirty,n.isDirty=bt.isDirty=we(),Je=lt!==bt.isDirty);const Jt=gn||va(rt(i,$e),Ee);lt=!!(!gn&&rt(n.dirtyFields,$e)),Jt||gn?Jn(n.dirtyFields,$e):Xt(n.dirtyFields,$e,!0),bt.dirtyFields=n.dirtyFields,Je=Je||h.dirtyFields&<!==!Jt}if(Te){const Jt=rt(n.touchedFields,$e);Jt||(Xt(n.touchedFields,$e,Te),bt.touchedFields=n.touchedFields,Je=Je||h.touchedFields&&Jt!==Te)}Je&&et&&m.state.next(bt)}return Je?bt:{}},N=($e,Ee,Te,He)=>{const et=rt(n.errors,$e),Je=h.isValid&&ji(Ee)&&n.isValid!==Ee;if(t.delayError&&Te?(l=w(()=>T($e,Te)),l(t.delayError)):(clearTimeout(d),l=null,Te?Xt(n.errors,$e,Te):Jn(n.errors,$e)),(Te?!va(et,Te):et)||!Nr(He)||Je){const lt={...He,...Je&&ji(Ee)?{isValid:Ee}:{},errors:n.errors,name:$e};n={...n,...lt},m.state.next(lt)}},F=async $e=>{S($e,!0);const Ee=await t.resolver(s,t.context,RU($e||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S($e),Ee},ae=async $e=>{const{errors:Ee}=await F($e);if($e)for(const Te of $e){const He=rt(Ee,Te);He?Xt(n.errors,Te,He):Jn(n.errors,Te)}else n.errors=Ee;return Ee},oe=async($e,Ee,Te={valid:!0})=>{for(const He in $e){const et=$e[He];if(et){const{_f:Je,...lt}=et;if(Je){const bt=u.array.has(Je.name),gn=et._f&&FU(et._f);gn&&h.validatingFields&&S([He],!0);const Jt=await rb(et,u.disabled,s,$,t.shouldUseNativeValidation&&!Ee,bt);if(gn&&h.validatingFields&&S([He]),Jt[Je.name]&&(Te.valid=!1,Ee))break;!Ee&&(rt(Jt,Je.name)?bt?r5(n.errors,Jt,Je.name):Xt(n.errors,Je.name,Jt[Je.name]):Jn(n.errors,Je.name))}!Nr(lt)&&await oe(lt,Ee,Te)}}return Te.valid},W=()=>{for(const $e of u.unMount){const Ee=rt(r,$e);Ee&&(Ee._f.refs?Ee._f.refs.every(Te=>!Ev(Te)):!Ev(Ee._f.ref))&&Ze($e)}u.unMount=new Set},we=($e,Ee)=>!t.disabled&&($e&&Ee&&Xt(s,$e,Ee),!va(G(),i)),ne=($e,Ee,Te)=>QP($e,u,{...o.mount?s:Sn(Ee)?i:Hs($e)?{[$e]:Ee}:Ee},Te,Ee),se=$e=>wd(rt(o.mount?s:i,$e,t.shouldUnregister?rt(i,$e,[]):[])),z=($e,Ee,Te={})=>{const He=rt(r,$e);let et=Ee;if(He){const Je=He._f;Je&&(!Je.disabled&&Xt(s,$e,l5(Ee,Je)),et=_p(Je.ref)&&jr(Ee)?"":Ee,o5(Je.ref)?[...Je.ref.options].forEach(lt=>lt.selected=et.includes(lt.value)):Je.refs?xd(Je.ref)?Je.refs.length>1?Je.refs.forEach(lt=>(!lt.defaultChecked||!lt.disabled)&&(lt.checked=Array.isArray(et)?!!et.find(bt=>bt===lt.value):et===lt.value)):Je.refs[0]&&(Je.refs[0].checked=!!et):Je.refs.forEach(lt=>lt.checked=lt.value===et):N4(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||m.values.next({name:$e,values:{...s}})))}(Te.shouldDirty||Te.shouldTouch)&&k($e,et,Te.shouldTouch,Te.shouldDirty,!0),Te.shouldValidate&&U($e)},K=($e,Ee,Te)=>{for(const He in Ee){const et=Ee[He],Je=`${$e}.${He}`,lt=rt(r,Je);(u.array.has($e)||Gn(et)||lt&&!lt._f)&&!hu(et)?K(Je,et,Te):z(Je,et,Te)}},j=($e,Ee,Te={})=>{const He=rt(r,$e),et=u.array.has($e),Je=rr(Ee);Xt(s,$e,Je),et?(m.array.next({name:$e,values:{...s}}),(h.isDirty||h.dirtyFields)&&Te.shouldDirty&&m.state.next({name:$e,dirtyFields:lf(i,s),isDirty:we($e,Je)})):He&&!He._f&&!jr(Je)?K($e,Je,Te):z($e,Je,Te),nb($e,u)&&m.state.next({...n}),m.values.next({name:o.mount?$e:void 0,values:{...s}})},B=async $e=>{o.mount=!0;const Ee=$e.target;let Te=Ee.name,He=!0;const et=rt(r,Te),Je=()=>Ee.type?Dv(et._f):WP($e),lt=bt=>{He=Number.isNaN(bt)||hu(bt)&&isNaN(bt.getTime())||va(bt,rt(s,Te,bt))};if(et){let bt,gn;const Jt=Je(),Ut=$e.type===Pp.BLUR||$e.type===Pp.FOCUS_OUT,Yr=!kU(et._f)&&!t.resolver&&!rt(n.errors,Te)&&!et._f.deps||OU(Ut,rt(n.touchedFields,Te),n.isSubmitted,b,g),Fr=nb(Te,u,Ut);Xt(s,Te,Jt),Ut?(et._f.onBlur&&et._f.onBlur($e),l&&l(0)):et._f.onChange&&et._f.onChange($e);const rn=k(Te,Jt,Ut,!1),Pt=!Nr(rn)||Fr;if(!Ut&&m.values.next({name:Te,type:$e.type,values:{...s}}),Yr)return h.isValid&&(t.mode==="onBlur"&&Ut?D():Ut||D()),Pt&&m.state.next({name:Te,...Fr?{}:rn});if(!Ut&&Fr&&m.state.next({...n}),t.resolver){const{errors:Lt}=await F([Te]);if(lt(Jt),He){const Yt=mC(n.errors,r,Te),sr=mC(Lt,r,Yt.name||Te);bt=sr.error,Te=sr.name,gn=Nr(Lt)}}else S([Te],!0),bt=(await rb(et,u.disabled,s,$,t.shouldUseNativeValidation))[Te],S([Te]),lt(Jt),He&&(bt?gn=!1:h.isValid&&(gn=await oe(r,!0)));He&&(et._f.deps&&U(et._f.deps),N(Te,gn,bt,rn))}},ge=($e,Ee)=>{if(rt(n.errors,Ee)&&$e.focus)return $e.focus(),1},U=async($e,Ee={})=>{let Te,He;const et=si($e);if(t.resolver){const Je=await ae(Sn($e)?$e:et);Te=Nr(Je),He=$e?!et.some(lt=>rt(Je,lt)):Te}else $e?(He=(await Promise.all(et.map(async Je=>{const lt=rt(r,Je);return await oe(lt&<._f?{[Je]:lt}:lt)}))).every(Boolean),!(!He&&!n.isValid)&&D()):He=Te=await oe(r);return m.state.next({...!Hs($e)||h.isValid&&Te!==n.isValid?{}:{name:$e},...t.resolver||!$e?{isValid:Te}:{},errors:n.errors}),Ee.shouldFocus&&!He&&Vl(r,ge,$e?et:u.mount),He},G=$e=>{const Ee={...o.mount?s:i};return Sn($e)?Ee:Hs($e)?rt(Ee,$e):$e.map(Te=>rt(Ee,Te))},Se=($e,Ee)=>({invalid:!!rt((Ee||n).errors,$e),isDirty:!!rt((Ee||n).dirtyFields,$e),error:rt((Ee||n).errors,$e),isValidating:!!rt(n.validatingFields,$e),isTouched:!!rt((Ee||n).touchedFields,$e)}),Pe=$e=>{$e&&si($e).forEach(Ee=>Jn(n.errors,Ee)),m.state.next({errors:$e?n.errors:{}})},ke=($e,Ee,Te)=>{const He=(rt(r,$e,{_f:{}})._f||{}).ref,et=rt(n.errors,$e)||{},{ref:Je,message:lt,type:bt,...gn}=et;Xt(n.errors,$e,{...gn,...Ee,ref:He}),m.state.next({name:$e,errors:n.errors,isValid:!1}),Te&&Te.shouldFocus&&He&&He.focus&&He.focus()},Ie=($e,Ee)=>Ws($e)?m.values.subscribe({next:Te=>$e(ne(void 0,Ee),Te)}):ne($e,Ee,!0),Ze=($e,Ee={})=>{for(const Te of $e?si($e):u.mount)u.mount.delete(Te),u.array.delete(Te),Ee.keepValue||(Jn(r,Te),Jn(s,Te)),!Ee.keepError&&Jn(n.errors,Te),!Ee.keepDirty&&Jn(n.dirtyFields,Te),!Ee.keepTouched&&Jn(n.touchedFields,Te),!Ee.keepIsValidating&&Jn(n.validatingFields,Te),!t.shouldUnregister&&!Ee.keepDefaultValue&&Jn(i,Te);m.values.next({values:{...s}}),m.state.next({...n,...Ee.keepDirty?{isDirty:we()}:{}}),!Ee.keepIsValid&&D()},Ge=({disabled:$e,name:Ee,field:Te,fields:He})=>{(ji($e)&&o.mount||$e||u.disabled.has(Ee))&&($e?u.disabled.add(Ee):u.disabled.delete(Ee),k(Ee,Dv(Te?Te._f:rt(He,Ee)._f),!1,!1,!0))},De=($e,Ee={})=>{let Te=rt(r,$e);const He=ji(Ee.disabled)||ji(t.disabled);return Xt(r,$e,{...Te||{},_f:{...Te&&Te._f?Te._f:{ref:{name:$e}},name:$e,mount:!0,...Ee}}),u.mount.add($e),Te?Ge({field:Te,disabled:ji(Ee.disabled)?Ee.disabled:t.disabled,name:$e}):M($e,!0,Ee.value),{...He?{disabled:Ee.disabled||t.disabled}:{},...t.progressive?{required:!!Ee.required,min:cf(Ee.min),max:cf(Ee.max),minLength:cf(Ee.minLength),maxLength:cf(Ee.maxLength),pattern:cf(Ee.pattern)}:{},name:$e,onChange:B,onBlur:B,ref:et=>{if(et){De($e,Ee),Te=rt(r,$e);const Je=Sn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,lt=MU(Je),bt=Te._f.refs||[];if(lt?bt.find(gn=>gn===Je):Je===Te._f.ref)return;Xt(r,$e,{_f:{...Te._f,...lt?{refs:[...bt.filter(Ev),Je,...Array.isArray(rt(i,$e))?[{}]:[]],ref:{type:Je.type,name:$e}}:{ref:Je}}}),M($e,!1,void 0,Je)}else Te=rt(r,$e,{}),Te._f&&(Te._f.mount=!1),(t.shouldUnregister||Ee.shouldUnregister)&&!(HP(u.array,$e)&&o.action)&&u.unMount.add($e)}}},Ue=()=>t.shouldFocusError&&Vl(r,ge,u.mount),_e=$e=>{ji($e)&&(m.state.next({disabled:$e}),Vl(r,(Ee,Te)=>{const He=rt(r,Te);He&&(Ee.disabled=He._f.disabled||$e,Array.isArray(He._f.refs)&&He._f.refs.forEach(et=>{et.disabled=He._f.disabled||$e}))},0,!1))},Ve=($e,Ee)=>async Te=>{let He;Te&&(Te.preventDefault&&Te.preventDefault(),Te.persist&&Te.persist());let et=rr(s);if(u.disabled.size)for(const Je of u.disabled)Xt(et,Je,void 0);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:lt}=await F();n.errors=Je,et=lt}else await oe(r);if(Jn(n.errors,"root"),Nr(n.errors)){m.state.next({errors:{}});try{await $e(et,Te)}catch(Je){He=Je}}else Ee&&await Ee({...n.errors},Te),Ue(),setTimeout(Ue);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(n.errors)&&!He,submitCount:n.submitCount+1,errors:n.errors}),He)throw He},Le=($e,Ee={})=>{rt(r,$e)&&(Sn(Ee.defaultValue)?j($e,rr(rt(i,$e))):(j($e,Ee.defaultValue),Xt(i,$e,rr(Ee.defaultValue))),Ee.keepTouched||Jn(n.touchedFields,$e),Ee.keepDirty||(Jn(n.dirtyFields,$e),n.isDirty=Ee.defaultValue?we($e,rr(rt(i,$e))):we()),Ee.keepError||(Jn(n.errors,$e),h.isValid&&D()),m.state.next({...n}))},nt=($e,Ee={})=>{const Te=$e?rr($e):i,He=rr(Te),et=Nr($e),Je=et?i:He;if(Ee.keepDefaultValues||(i=Te),!Ee.keepValues){if(Ee.keepDirtyValues){const lt=new Set([...u.mount,...Object.keys(lf(i,s))]);for(const bt of Array.from(lt))rt(n.dirtyFields,bt)?Xt(Je,bt,rt(s,bt)):j(bt,rt(Je,bt))}else{if(B4&&Sn($e))for(const lt of u.mount){const bt=rt(r,lt);if(bt&&bt._f){const gn=Array.isArray(bt._f.refs)?bt._f.refs[0]:bt._f.ref;if(_p(gn)){const Jt=gn.closest("form");if(Jt){Jt.reset();break}}}}r={}}s=t.shouldUnregister?Ee.keepDefaultValues?rr(i):{}:rr(Je),m.array.next({values:{...Je}}),m.values.next({values:{...Je}})}u={mount:Ee.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Ee.keepIsValid||!!Ee.keepDirtyValues,o.watch=!!t.shouldUnregister,m.state.next({submitCount:Ee.keepSubmitCount?n.submitCount:0,isDirty:et?!1:Ee.keepDirty?n.isDirty:!!(Ee.keepDefaultValues&&!va($e,i)),isSubmitted:Ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:Ee.keepDirtyValues?Ee.keepDefaultValues&&s?lf(i,s):n.dirtyFields:Ee.keepDefaultValues&&$e?lf(i,$e):Ee.keepDirty?n.dirtyFields:{},touchedFields:Ee.keepTouched?n.touchedFields:{},errors:Ee.keepErrors?n.errors:{},isSubmitSuccessful:Ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},xt=($e,Ee)=>nt(Ws($e)?$e(s):$e,Ee);return{control:{register:De,unregister:Ze,getFieldState:Se,handleSubmit:Ve,setError:ke,_executeSchema:F,_getWatch:ne,_getDirty:we,_updateValid:D,_removeUnmounted:W,_updateFieldArray:C,_updateDisabledField:Ge,_getFieldArray:se,_reset:nt,_resetDefaultValues:()=>Ws(t.defaultValues)&&t.defaultValues().then($e=>{xt($e,t.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:$e=>{n={...n,...$e}},_disableForm:_e,_subjects:m,_proxyFormState:h,_setErrors:O,get _fields(){return r},get _formValues(){return s},get _state(){return o},set _state($e){o=$e},get _defaultValues(){return i},get _names(){return u},set _names($e){u=$e},get _formState(){return n},set _formState($e){n=$e},get _options(){return t},set _options($e){t={...t,...$e}}},trigger:U,register:De,handleSubmit:Ve,watch:Ie,setValue:j,getValues:G,reset:xt,resetField:Le,clearErrors:Pe,unregister:Ze,setError:ke,setFocus:($e,Ee={})=>{const Te=rt(r,$e),He=Te&&Te._f;if(He){const et=He.refs?He.refs[0]:He.ref;et.focus&&(et.focus(),Ee.shouldSelect&&Ws(et.select)&&et.select())}},getFieldState:Se}}function VU(e={}){const t=A.useRef(void 0),n=A.useRef(void 0),[r,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...BU(e),formState:r});const s=t.current.control;return s._options=e,wm({subject:s._subjects.state,next:o=>{XP(o,s._proxyFormState,s._updateFormState,!0)&&i({...s._formState})}}),A.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),A.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==r.isDirty&&s._subjects.state.next({isDirty:o})}},[s,r.isDirty]),A.useEffect(()=>{e.values&&!va(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(o=>({...o}))):s._resetDefaultValues()},[e.values,s]),A.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),A.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),A.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=ZP(r,s),t.current}const pn=typeof document<"u"?A.useLayoutEffect:()=>{};function Hn(e){const t=A.useRef(null);return pn(()=>{t.current=e},[e]),A.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function NU(e){let[t,n]=A.useState(e),r=A.useRef(null),i=Hn(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});pn(()=>{r.current&&i()});let s=Hn(o=>{r.current=o(t),i()});return[t,s]}const Fp={prefix:String(Math.round(Math.random()*1e10)),current:0},c5=A.createContext(Fp),jU=A.createContext(!1);let KU=!!(typeof window<"u"&&window.document&&window.document.createElement),Av=new WeakMap;function UU(e=!1){let t=A.useContext(c5),n=A.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=A.__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(s){let o=Av.get(s);o==null?Av.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Av.delete(s))}n.current=++t.current}return n.current}function zU(e){let t=A.useContext(c5);t===Fp&&!KU&&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=UU(!!e),r=t===Fp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qU(e){let t=A.useId(),[n]=A.useState(K4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Fp.prefix}`;return e||`${r}-${t}`}const WU=typeof A.useId=="function"?qU:zU;function HU(){return!1}function GU(){return!0}function YU(e){return()=>{}}function K4(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(YU,HU,GU):A.useContext(jU)}let ZU=!!(typeof window<"u"&&window.document&&window.document.createElement),Nl=new Map,Df;typeof FinalizationRegistry<"u"&&(Df=new FinalizationRegistry(e=>{Nl.delete(e)}));function Wr(e){let[t,n]=A.useState(e),r=A.useRef(null),i=WU(t),s=A.useRef(null);if(Df&&Df.register(s,i),ZU){const o=Nl.get(i);o&&!o.includes(r)?o.push(r):Nl.set(i,[r])}return pn(()=>{let o=i;return()=>{Df&&Df.unregister(s),Nl.delete(o)}},[i]),A.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function XU(e,t){if(e===t)return e;let n=Nl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Nl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function tc(e=[]){let t=Wr(),[n,r]=NU(t),i=A.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return pn(i,[t,i,...e]),n}function Ru(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const nn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},zo=e=>e&&"window"in e&&e.window===e?e:nn(e).defaultView||window;function JU(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function QU(e){return JU(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ez=!1;function Cm(){return ez}function An(e,t){if(!Cm())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:QU(n)?n=n.host:n=n.parentNode}return!1}const mr=(e=document)=>{var t;if(!Cm())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function en(e){return Cm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class tz{get currentNode(){return this._currentNode}set currentNode(t){if(!An(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,u=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(u),u.currentNode=i,this._currentSetFor.add(u),r=i=o.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return An(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var u;if(typeof this.filter=="function")return this.filter(o);if(!((u=this.filter)===null||u===void 0)&&u.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function nz(e,t,n,r){return Cm()?new tz(e,t,n,r):e.createTreeWalker(t,n,r)}function f5(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=f5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f5(e))&&(r&&(r+=" "),r+=t);return r}function Zt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],o=r[i];typeof s=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ru(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=rz(s,o):i==="id"&&s&&o?t.id=XU(s,o):t[i]=o!==void 0?o:s}}return t}const iz=new Set(["id"]),sz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),oz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),az=/^(data-.*)$/;function Go(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(iz.has(o)||n&&sz.has(o)||r&&oz.has(o)||i!=null&&i.has(o)||az.test(o))&&(s[o]=e[o]);return s}function Xi(e){if(uz())e.focus({preventScroll:!0});else{let t=lz(e);e.focus(),cz(t)}}let Mh=null;function uz(){if(Mh==null){Mh=!1;try{document.createElement("div").focus({get preventScroll(){return Mh=!0,!0}})}catch{}}return Mh}function lz(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 cz(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Sm(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 U4(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 Yo(e){let t=null;return()=>(t==null&&(t=e()),t)}const qo=Yo(function(){return U4(/^Mac/i)}),fz=Yo(function(){return U4(/^iPhone/i)}),d5=Yo(function(){return U4(/^iPad/i)||qo()&&navigator.maxTouchPoints>1}),Sd=Yo(function(){return fz()||d5()}),sp=Yo(function(){return qo()||Sd()}),z4=Yo(function(){return Sm(/AppleWebKit/i)&&!h5()}),h5=Yo(function(){return Sm(/Chrome/i)}),q4=Yo(function(){return Sm(/Android/i)}),dz=Yo(function(){return Sm(/Firefox/i)}),hz=A.createContext({isNative:!0,open:mz,useHref:e=>e});function Em(){return A.useContext(hz)}function Fu(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:u,shiftKey:l}=t;dz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(qo()?s=!0:o=!0);let d=z4()&&qo()&&!d5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});Fu.isOpening=n,Xi(e),e.dispatchEvent(d),Fu.isOpening=!1}Fu.isOpening=!1;function pz(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 mz(e,t){pz(e,n=>Fu(n,t))}function gz(e){let t=Em();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 El=new Map,sb=new Set;function gC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=El.get(r.target);i||(i=new Set,El.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=El.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),El.delete(r.target)),El.size===0)){for(let s of sb)s();sb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?gC():document.addEventListener("DOMContentLoaded",gC));function p5(e){requestAnimationFrame(()=>{El.size===0?e():sb.add(e)})}function Ma(){let e=A.useRef(new Map),t=A.useCallback((i,s,o,u)=>{let l=u!=null&&u.once?(...d)=>{e.current.delete(o),o(...d)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:u}),i.addEventListener(s,l,u)},[]),n=A.useCallback((i,s,o,u)=>{var l;let d=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,d,u),e.current.delete(o)},[]),r=A.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return A.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function nc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Wr(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 ob(e,t){const n=A.useRef(!0),r=A.useRef(null);A.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),A.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((s,o)=>!Object.is(s,i[o])))&&e(),r.current=t},t)}function vC(e,t){const n=A.useRef(!0),r=A.useRef(null);pn(()=>(n.current=!0,()=>{n.current=!1}),[]),pn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function vz(){return typeof window.ResizeObserver<"u"}function yC(e){const{ref:t,box:n,onResize:r}=e;A.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(vz()){const s=new window.ResizeObserver(o=>{o.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function m5(e,t){pn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Jf(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Dm(e,t){let n=e;for(Jf(n,t)&&(n=n.parentElement);n&&!Jf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function yz(e,t){const n=[];for(;e&&e!==document.documentElement;)Jf(e,t)&&n.push(e),e=e.parentElement;return n}let bz=0;const Tv=new Map;function Ed(e){let[t,n]=A.useState();return pn(()=>{if(!e)return;let r=Tv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${bz++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},Tv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Tv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Gs(e,t,n,r){let i=Hn(n),s=n==null;A.useEffect(()=>{if(s||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,s,i])}function g5(e,t){let n=bC(e,t,"left"),r=bC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),$=o+parseInt(d,10),w=u+parseInt(l,10),D=$+e.clientWidth,S=w+e.clientHeight,C=parseInt(h,10)||0,T=parseInt(g,10)||0,O=parseInt(m,10)||0,M=parseInt(b,10)||0;n<=o+M?o=n-parseInt(d,10)-M:n+i>D-O&&(o+=n+i-D+O),r<=w+C?u=r-parseInt(l,10)-C:r+s>S-T&&(u+=r+s-S+T),e.scrollLeft=o,e.scrollTop=u}function bC(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 kp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=yz(e);for(let d of l)g5(d,e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(d-m)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function ab(e){return e.mozInputSource===0&&e.isTrusted?!0:q4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $z(e){return!q4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function v5(e,t){let n=A.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function W4(e,t,n){let r=A.useRef(t),i=Hn(()=>{n&&n(r.current)});A.useEffect(()=>{var s;let o=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const xz="react-aria-clear-focus",wz="react-aria-focus";function Dl(e){return qo()?e.metaKey:e.ctrlKey}const H4=["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"])'],Cz=H4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";H4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Sz=H4.join(':not([hidden]):not([tabindex="-1"]),');function y5(e){return e.matches(Cz)}function Ez(e){return e.matches(Sz)}function wi(e,t,n){let[r,i]=A.useState(e||t),s=A.useRef(e!==void 0),o=e!==void 0;A.useEffect(()=>{let d=s.current;d!==o&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let u=o?e:r,l=A.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(u,g)||n(g,...b)),o||(u=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...$)=>{let w=d(o?u:b,...$);return m(w,...h),o?b:w})):(o||i(d),m(d,...h))},[o,u,n]);return[u,l]}function rc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Rh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function ff(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=Rh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(Rh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Rh((n-t)/r,r))*r),s=Rh(s,r),s}let Tl="default",ub="",op=new WeakMap;function lb(e){if(Sd()){if(Tl==="default"){const t=nn(e);ub=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Tl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";op.set(e,e.style[t]),e.style[t]="none"}}function ap(e){if(Sd()){if(Tl!=="disabled")return;Tl="restoring",setTimeout(()=>{p5(()=>{if(Tl==="restoring"){const t=nn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ub||""),ub="",Tl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&op.has(e)){let t=op.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),op.delete(e)}}const G4=A.createContext({register:()=>{}});G4.displayName="PressResponderContext";class b5{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 $5(e){let t=A.useRef({isFocused:!1,observer:null});pn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Hn(r=>{e==null||e(r)});return A.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,s=o=>{t.current.isFocused=!1,i.disabled&&n(new b5("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let 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])}let Op=!1;function $C(e){for(;e&&!y5(e);)e=e.parentElement;let t=zo(e),n=t.document.activeElement;if(!n||n===e)return;Op=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Xi(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},u=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Xi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",u,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",u,!0),t.removeEventListener("focus",o,!0),Op=!1,r=!1},d=requestAnimationFrame(l);return l}function Dz(e,t){return t.get?t.get.call(e):t.value}function x5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Az(e,t){var n=x5(e,t,"get");return Dz(e,n)}function Tz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dd(e,t,n){Tz(e,t),t.set(e,n)}function Pz(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 xC(e,t,n){var r=x5(e,t,"set");return Pz(e,r,n),n}function _z(e){let t=A.useContext(G4);if(t){let{register:n,...r}=t;e=Zt(r,e),n()}return m5(t,e.ref),e}var Fh=new WeakMap;class kh{continuePropagation(){xC(this,Fh,!1)}get shouldStopPropagation(){return Az(this,Fh)}constructor(t,n,r,i){Dd(this,Fh,{writable:!0,value:void 0}),xC(this,Fh,!0);var s;let o=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),u&&(h!=null&&m!=null?(l=h-u.left,d=m-u.top):(l=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const wC=Symbol("linkClicked");function Ad(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,isDisabled:o,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:h,ref:m,...g}=_z(e),[b,$]=A.useState(!1),w=A.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:D,removeAllGlobalListeners:S}=Ma(),C=Hn((F,ae)=>{let oe=w.current;if(o||oe.didFirePressStart)return!1;let W=!0;if(oe.isTriggeringEvent=!0,r){let we=new kh("pressstart",ae,F);r(we),W=we.shouldStopPropagation}return n&&n(!0),oe.isTriggeringEvent=!1,oe.didFirePressStart=!0,$(!0),W}),T=Hn((F,ae,oe=!0)=>{let W=w.current;if(!W.didFirePressStart)return!1;W.didFirePressStart=!1,W.isTriggeringEvent=!0;let we=!0;if(i){let ne=new kh("pressend",ae,F);i(ne),we=ne.shouldStopPropagation}if(n&&n(!1),$(!1),t&&oe&&!o){let ne=new kh("press",ae,F);t(ne),we&&(we=ne.shouldStopPropagation)}return W.isTriggeringEvent=!1,we}),O=Hn((F,ae)=>{let oe=w.current;if(o)return!1;if(s){oe.isTriggeringEvent=!0;let W=new kh("pressup",ae,F);return s(W),oe.isTriggeringEvent=!1,W.shouldStopPropagation}return!0}),M=Hn(F=>{let ae=w.current;if(ae.isPressed&&ae.target){ae.didFirePressStart&&ae.pointerType!=null&&T(xl(ae.target,F),ae.pointerType,!1),ae.isPressed=!1,ae.isOverTarget=!1,ae.activePointerId=null,ae.pointerType=null,S(),h||ap(ae.target);for(let oe of ae.disposables)oe();ae.disposables=[]}}),k=Hn(F=>{d&&M(F)}),N=A.useMemo(()=>{let F=w.current,ae={onKeyDown(W){if(Pv(W.nativeEvent,W.currentTarget)&&An(W.currentTarget,en(W.nativeEvent))){var we;EC(en(W.nativeEvent),W.key)&&W.preventDefault();let ne=!0;if(!F.isPressed&&!W.repeat){F.target=W.currentTarget,F.isPressed=!0,F.pointerType="keyboard",ne=C(W,"keyboard");let se=W.currentTarget,z=K=>{Pv(K,se)&&!K.repeat&&An(se,en(K))&&F.target&&O(xl(F.target,K),"keyboard")};D(nn(W.currentTarget),"keyup",Ru(z,oe),!0)}ne&&W.stopPropagation(),W.metaKey&&qo()&&((we=F.metaKeyEvents)===null||we===void 0||we.set(W.key,W.nativeEvent))}else W.key==="Meta"&&(F.metaKeyEvents=new Map)},onClick(W){if(!(W&&!An(W.currentTarget,en(W.nativeEvent)))&&W&&W.button===0&&!F.isTriggeringEvent&&!Fu.isOpening){let we=!0;if(o&&W.preventDefault(),!F.ignoreEmulatedMouseEvents&&!F.isPressed&&(F.pointerType==="virtual"||ab(W.nativeEvent))){let ne=C(W,"virtual"),se=O(W,"virtual"),z=T(W,"virtual");we=ne&&se&&z}else if(F.isPressed&&F.pointerType!=="keyboard"){let ne=F.pointerType||W.nativeEvent.pointerType||"virtual";we=T(xl(W.currentTarget,W),ne,!0),F.isOverTarget=!1,M(W)}F.ignoreEmulatedMouseEvents=!1,we&&W.stopPropagation()}}},oe=W=>{var we;if(F.isPressed&&F.target&&Pv(W,F.target)){var ne;EC(en(W),W.key)&&W.preventDefault();let z=en(W);T(xl(F.target,W),"keyboard",An(F.target,en(W))),S(),W.key!=="Enter"&&Y4(F.target)&&An(F.target,z)&&!W[wC]&&(W[wC]=!0,Fu(F.target,W,!1)),F.isPressed=!1,(ne=F.metaKeyEvents)===null||ne===void 0||ne.delete(W.key)}else if(W.key==="Meta"&&(!((we=F.metaKeyEvents)===null||we===void 0)&&we.size)){var se;let z=F.metaKeyEvents;F.metaKeyEvents=void 0;for(let K of z.values())(se=F.target)===null||se===void 0||se.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){ae.onPointerDown=ne=>{if(ne.button!==0||!An(ne.currentTarget,en(ne.nativeEvent)))return;if($z(ne.nativeEvent)){F.pointerType="virtual";return}F.pointerType=ne.pointerType;let se=!0;if(!F.isPressed){F.isPressed=!0,F.isOverTarget=!0,F.activePointerId=ne.pointerId,F.target=ne.currentTarget,h||lb(F.target),se=C(ne,F.pointerType);let z=en(ne.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(ne.pointerId),D(nn(ne.currentTarget),"pointerup",W,!1),D(nn(ne.currentTarget),"pointercancel",we,!1)}se&&ne.stopPropagation()},ae.onMouseDown=ne=>{if(An(ne.currentTarget,en(ne.nativeEvent))&&ne.button===0){if(l){let se=$C(ne.target);se&&F.disposables.push(se)}ne.stopPropagation()}},ae.onPointerUp=ne=>{!An(ne.currentTarget,en(ne.nativeEvent))||F.pointerType==="virtual"||ne.button===0&&O(ne,F.pointerType||ne.pointerType)},ae.onPointerEnter=ne=>{ne.pointerId===F.activePointerId&&F.target&&!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,C(xl(F.target,ne),F.pointerType))},ae.onPointerLeave=ne=>{ne.pointerId===F.activePointerId&&F.target&&F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,T(xl(F.target,ne),F.pointerType,!1),k(ne))};let W=ne=>{if(ne.pointerId===F.activePointerId&&F.isPressed&&ne.button===0&&F.target){if(An(F.target,en(ne))&&F.pointerType!=null){let se=!1,z=setTimeout(()=>{F.isPressed&&F.target instanceof HTMLElement&&(se?M(ne):(Xi(F.target),F.target.click()))},80);D(ne.currentTarget,"click",()=>se=!0,!0),F.disposables.push(()=>clearTimeout(z))}else M(ne);F.isOverTarget=!1}},we=ne=>{M(ne)};ae.onDragStart=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&M(ne)}}else{ae.onMouseDown=ne=>{if(ne.button!==0||!An(ne.currentTarget,en(ne.nativeEvent)))return;if(F.ignoreEmulatedMouseEvents){ne.stopPropagation();return}if(F.isPressed=!0,F.isOverTarget=!0,F.target=ne.currentTarget,F.pointerType=ab(ne.nativeEvent)?"virtual":"mouse",Vo.flushSync(()=>C(ne,F.pointerType))&&ne.stopPropagation(),l){let z=$C(ne.target);z&&F.disposables.push(z)}D(nn(ne.currentTarget),"mouseup",W,!1)},ae.onMouseEnter=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!0,se=C(ne,F.pointerType)),se&&ne.stopPropagation()},ae.onMouseLeave=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!1,se=T(ne,F.pointerType,!1),k(ne)),se&&ne.stopPropagation()},ae.onMouseUp=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&!F.ignoreEmulatedMouseEvents&&ne.button===0&&O(ne,F.pointerType||"mouse")};let W=ne=>{if(ne.button===0){if(F.ignoreEmulatedMouseEvents){F.ignoreEmulatedMouseEvents=!1;return}F.target&&F.target.contains(ne.target)&&F.pointerType!=null||M(ne),F.isOverTarget=!1}};ae.onTouchStart=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=Mz(ne.nativeEvent);if(!se)return;F.activePointerId=se.identifier,F.ignoreEmulatedMouseEvents=!0,F.isOverTarget=!0,F.isPressed=!0,F.target=ne.currentTarget,F.pointerType="touch",h||lb(F.target),C(fa(F.target,ne),F.pointerType)&&ne.stopPropagation(),D(zo(ne.currentTarget),"scroll",we,!0)},ae.onTouchMove=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;if(!F.isPressed){ne.stopPropagation();return}let se=CC(ne.nativeEvent,F.activePointerId),z=!0;se&&SC(se,ne.currentTarget)?!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,z=C(fa(F.target,ne),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,z=T(fa(F.target,ne),F.pointerType,!1),k(fa(F.target,ne))),z&&ne.stopPropagation()},ae.onTouchEnd=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;if(!F.isPressed){ne.stopPropagation();return}let se=CC(ne.nativeEvent,F.activePointerId),z=!0;se&&SC(se,ne.currentTarget)&&F.pointerType!=null?(O(fa(F.target,ne),F.pointerType),z=T(fa(F.target,ne),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(z=T(fa(F.target,ne),F.pointerType,!1)),z&&ne.stopPropagation(),F.isPressed=!1,F.activePointerId=null,F.isOverTarget=!1,F.ignoreEmulatedMouseEvents=!0,F.target&&!h&&ap(F.target),S()},ae.onTouchCancel=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&(ne.stopPropagation(),F.isPressed&&M(fa(F.target,ne)))};let we=ne=>{F.isPressed&&An(en(ne),F.target)&&M({currentTarget:F.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};ae.onDragStart=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&M(ne)}}return ae},[D,o,l,S,h,M,k,T,C,O]);return A.useEffect(()=>{let F=w.current;return()=>{var ae;h||ap((ae=F.target)!==null&&ae!==void 0?ae:void 0);for(let oe of F.disposables)oe();F.disposables=[]}},[h]),{isPressed:u||b,pressProps:Zt(g,N)}}function Y4(e){return e.tagName==="A"&&e.hasAttribute("href")}function Pv(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof zo(i).HTMLInputElement&&!w5(i,n)||i instanceof zo(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Y4(i))&&n!=="Enter")}function Mz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function CC(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 fa(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 xl(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Rz(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Fz(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function SC(e,t){let n=t.getBoundingClientRect(),r=Rz(e);return Fz(n,r)}function kz(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Y4(e)}function EC(e,t){return e instanceof HTMLInputElement?!w5(e,t):kz(e)}const Oz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function w5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Oz.has(e.type)}let Bu=null,Iz=new Set,Vf=new Map,ku=!1,cb=!1;function Am(e,t){for(let n of Iz)n(e,t)}function Lz(e){return!(e.metaKey||!qo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ip(e){ku=!0,Lz(e)&&(Bu="keyboard",Am("keyboard",e))}function Ki(e){Bu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ku=!0,Am("pointer",e))}function C5(e){ab(e)&&(ku=!0,Bu="virtual")}function S5(e){e.target===window||e.target===document||Op||!e.isTrusted||(!ku&&!cb&&(Bu="virtual",Am("virtual",e)),ku=!1,cb=!1)}function E5(){Op||(ku=!1,cb=!0)}function DC(e){if(typeof window>"u"||Vf.get(zo(e)))return;const t=zo(e),n=nn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ku=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ip,!0),n.addEventListener("keyup",Ip,!0),n.addEventListener("click",C5,!0),t.addEventListener("focus",S5,!0),t.addEventListener("blur",E5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ki,!0),n.addEventListener("pointermove",Ki,!0),n.addEventListener("pointerup",Ki,!0)):(n.addEventListener("mousedown",Ki,!0),n.addEventListener("mousemove",Ki,!0),n.addEventListener("mouseup",Ki,!0)),t.addEventListener("beforeunload",()=>{D5(e)},{once:!0}),Vf.set(t,{focus:r})}const D5=(e,t)=>{const n=zo(e),r=nn(e);t&&r.removeEventListener("DOMContentLoaded",t),Vf.has(n)&&(n.HTMLElement.prototype.focus=Vf.get(n).focus,r.removeEventListener("keydown",Ip,!0),r.removeEventListener("keyup",Ip,!0),r.removeEventListener("click",C5,!0),n.removeEventListener("focus",S5,!0),n.removeEventListener("blur",E5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ki,!0),r.removeEventListener("pointermove",Ki,!0),r.removeEventListener("pointerup",Ki,!0)):(r.removeEventListener("mousedown",Ki,!0),r.removeEventListener("mousemove",Ki,!0),r.removeEventListener("mouseup",Ki,!0)),Vf.delete(n))};function Bz(e){const t=nn(e);let n;return t.readyState!=="loading"?DC(e):(n=()=>{DC(e)},t.addEventListener("DOMContentLoaded",n)),()=>D5(e,n)}typeof document<"u"&&Bz();function AC(){return Bu!=="pointer"}function Qf(){return Bu}function A5(e){Bu=e,Am(e,null)}function Ou(e){const t=nn(e),n=mr(t);if(Qf()==="virtual"){let r=n;p5(()=>{mr(t)===r&&e.isConnected&&Xi(e)})}else Xi(e)}function Vz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=A.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=$5(s),u=A.useCallback(l=>{const d=nn(l.target),h=d?mr(d):mr();l.target===l.currentTarget&&h===en(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?s:void 0}}}function TC(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 T5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:TC(e.onKeyDown),onKeyUp:TC(e.onKeyUp)}}}let Nz=A.createContext(null);function jz(e){let t=A.useContext(Nz)||{};m5(t,e);let{ref:n,...r}=t;return r}function Z4(e,t){let{focusProps:n}=Vz(e),{keyboardProps:r}=T5(e),i=Zt(n,r),s=jz(t),o=e.isDisabled?{}:s,u=A.useRef(e.autoFocus);A.useEffect(()=>{u.current&&t.current&&Ou(t.current),u.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Zt({...i,tabIndex:l},o)}}function Kz({children:e}){let t=A.useMemo(()=>({register:()=>{}}),[]);return A.createElement(G4.Provider,{value:t},e)}function $c(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=A.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:u}=Ma(),l=A.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,u(),n&&n(m),i&&i(!1))},[n,i,s,u]),d=$5(l),h=A.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=nn(m.target),b=mr(g);if(!s.current.isFocusWithin&&b===en(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let $=m.currentTarget;o(g,"focus",w=>{if(s.current.isFocusWithin&&!An($,w.target)){let D=new b5("blur",new g.defaultView.FocusEvent("blur",{relatedTarget:w.target}));D.target=$,D.currentTarget=$,l(D)}},{capture:!0})}},[r,i,d,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let Lp=!1,_v=0;function fb(){Lp=!0,setTimeout(()=>{Lp=!1},50)}function PC(e){e.pointerType==="touch"&&fb()}function Uz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",PC):document.addEventListener("touchend",fb),_v++,()=>{_v--,!(_v>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",PC):document.removeEventListener("touchend",fb))}}function zz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=A.useState(!1),u=A.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;A.useEffect(Uz,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Ma(),{hoverProps:h,triggerHoverEnd:m}=A.useMemo(()=>{let g=(w,D)=>{if(u.pointerType=D,i||D==="touch"||u.isHovered||!w.currentTarget.contains(w.target))return;u.isHovered=!0;let S=w.currentTarget;u.target=S,l(nn(w.target),"pointerover",C=>{u.isHovered&&u.target&&!An(u.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:D}),n&&n(!0),o(!0)},b=(w,D)=>{let S=u.target;u.pointerType="",u.target=null,!(D==="touch"||!u.isHovered||!S)&&(u.isHovered=!1,d(),r&&r({type:"hoverend",target:S,pointerType:D}),n&&n(!1),o(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=w=>{Lp&&w.pointerType==="mouse"||g(w,w.pointerType)},$.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,w.pointerType)}):($.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=w=>{!u.ignoreEmulatedMouseEvents&&!Lp&&g(w,"mouse"),u.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,"mouse")}),{hoverProps:$,triggerHoverEnd:b}},[t,n,r,i,u,l,d]);return A.useEffect(()=>{i&&m({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:h,isHovered:s}}function qz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Hn(l=>{n&&Oh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),u=Hn(l=>{n&&n(l)});A.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=nn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Oh(g,t)&&u(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("pointerup",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("pointerup",m,!0)}}else{let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Oh(b,t)&&u(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Oh(b,t)&&u(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,u])}function Oh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function P5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=A.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=Ma(),u=Hn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=Hn((h,m)=>{ap(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:A.useMemo(()=>{let h={},m=()=>{lb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let b=S=>{if(S.button===0){var C,T,O,M;u(S,"mouse",S.pageX-((O=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&O!==void 0?O:0),S.pageY-((M=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&M!==void 0?M:0)),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY}}},$=S=>{S.button===0&&(l(S,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};h.onMouseDown=S=>{S.button===0&&(m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",$,!1))};let w=S=>{let C=[...S.changedTouches].findIndex(({identifier:N})=>N===i.current.id);if(C>=0){var T,O;let{pageX:N,pageY:F}=S.changedTouches[C];var M,k;u(S,"touch",N-((M=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageX)!==null&&M!==void 0?M:0),F-((k=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:N,pageY:F}}},D=S=>{[...S.changedTouches].findIndex(({identifier:T})=>T===i.current.id)>=0&&(l(S,"touch"),i.current.id=null,o(window,"touchmove",w),o(window,"touchend",D),o(window,"touchcancel",D))};h.onTouchStart=S=>{if(S.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:T,identifier:O}=S.changedTouches[0];m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:C,pageY:T},i.current.id=O,s(window,"touchmove",w,!1),s(window,"touchend",D,!1),s(window,"touchcancel",D,!1)}}else{let b=w=>{if(w.pointerId===i.current.id){var D,S;let O=w.pointerType||"mouse";var C,T;u(w,O,w.pageX-((C=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&C!==void 0?C:0),w.pageY-((T=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{if(w.pointerId===i.current.id){let D=w.pointerType||"mouse";l(w,D),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1)}};h.onPointerDown=w=>{w.button===0&&i.current.id==null&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",$,!1),s(window,"pointercancel",$,!1))}}let g=(b,$,w)=>{m(),u(b,"keyboard",$,w),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,s,o,u,l])}}const Wz=500;function _5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=Wz,accessibilityDescription:o}=e;const u=A.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Ma(),{pressProps:h}=Ad({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),u.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),nn(g.target).activeElement!==g.target&&Xi(g.target),i&&i({...g,type:"longpress"}),u.current=void 0},s),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){u.current&&clearTimeout(u.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Ed(i&&!t?o:void 0);return{longPressProps:Zt(h,m)}}const Hz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yz(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 Hz.has(n.script)}let t=e.split("-")[0];return Gz.has(t)}const Zz=Symbol.for("react-aria.i18n.locale");function M5(){let e=typeof window<"u"&&window[Zz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Yz(e)?"rtl":"ltr"}}let db=M5(),Af=new Set;function _C(){db=M5();for(let e of Af)e(db)}function Xz(){let e=K4(),[t,n]=A.useState(db);return A.useEffect(()=>(Af.size===0&&window.addEventListener("languagechange",_C),Af.add(n),()=>{Af.delete(n),Af.size===0&&window.removeEventListener("languagechange",_C)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Jz=A.createContext(null);function Rr(){let e=Xz();return A.useContext(Jz)||e}const Qz=Symbol.for("react-aria.i18n.locale"),eq=Symbol.for("react-aria.i18n.strings");let wl;class Ra{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=tq(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Qz];if(wl===void 0){let i=window[eq];if(!i)return null;wl={};for(let s in i)wl[s]=new Ra({[n]:i[s]},n)}let r=wl==null?void 0:wl[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 tq(e,t,n="en-US"){if(t[e])return t[e];let r=nq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function nq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const MC=new Map,RC=new Map;class R5{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 s=this.locale+":"+r,o=MC.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),MC.set(s,o));let u=o.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=RC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),RC.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 FC=new WeakMap;function rq(e){let t=FC.get(e);return t||(t=new Ra(e),FC.set(e,t)),t}function F5(e,t){return t&&Ra.getGlobalDictionaryForPackage(t)||rq(e)}function oo(e,t){let{locale:n}=Rr(),r=F5(e,t);return A.useMemo(()=>new R5(n,r),[n,r])}function jl(e,t){return e-t*Math.floor(e/t)}const k5=1721426;function pu(e,t,n,r){t=Td(e,t);let i=t-1,s=-2;return n<=2?s=0:ba(t)&&(s=-1),k5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function ba(e){return e%4===0&&(e%100!==0||e%400===0)}function Td(e,t){return e==="BC"?1-t:t}function Tm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const iq={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 Gr{fromJulianDay(t){let n=t,r=n-k5,i=Math.floor(r/146097),s=jl(r,146097),o=Math.floor(s/36524),u=jl(s,36524),l=Math.floor(u/1461),d=jl(u,1461),h=Math.floor(d/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Tm(m),$=n-pu(g,b,1,1),w=2;n<pu(g,b,3,1)?w=0:ba(b)&&(w=1);let D=Math.floor((($+w)*12+373)/367),S=n-pu(g,b,D,1)+1;return new Yn(g,b,D,S)}toJulianDay(t){return pu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return iq[ba(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ba(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 sq={"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 ir(e,t){return t=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function hb(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 O5(e,t){return ir(e,Pm(t))}const oq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function X4(e,t,n){let r=e.calendar.toJulianDay(e),i=n?oq[n]:dq(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function I5(e){return Io(Date.now(),e)}function Pm(e){return Hr(I5(e))}function L5(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function B5(e,t){return kC(e)-kC(t)}function kC(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Mv=null;function Pd(){return Mv==null&&(Mv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Mv}function _d(e){return e.subtract({days:e.day-1})}function pb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function aq(e){return _d(e.subtract({months:e.month-1}))}function uq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function lq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function ed(e,t,n){let r=X4(e,t,n);return e.subtract({days:r})}function cq(e,t,n){return ed(e,t,n).add({days:6})}const OC=new Map;function fq(e){if(Intl.Locale){let n=OC.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&OC.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function dq(e){let t=fq(e);return t&&sq[t]||0}function hq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((X4(_d(e),t,n)+r)/7)}function J4(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Q4(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ic(e){e=Fn(e,new Gr);let t=Td(e.era,e.year);return V5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function V5(e,t,n,r,i,s,o){let u=new Date;return u.setUTCHours(r,i,s,o),u.setUTCFullYear(e,t-1,n),u.getTime()}function mb(e,t){if(t==="UTC")return 0;if(e>0&&t===Pd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:o,second:u}=N5(e,t);return V5(n,r,i,s,o,u,0)-Math.floor(e/1e3)*1e3}const IC=new Map;function N5(e,t){let n=IC.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"}),IC.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let s of r)s.type!=="literal"&&(i[s.type]=s.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 LC=864e5;function pq(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>mq(e,t,s))}function mq(e,t,n){let r=N5(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 Oo(e,t,n="compatible"){let r=xs(e);if(t==="UTC")return ic(r);if(t===Pd()&&n==="compatible"){r=Fn(r,new Gr);let l=new Date,d=Td(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=ic(r),s=mb(i-LC,t),o=mb(i+LC,t),u=pq(r,t,i-s,i-o);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-s,i-o);case"compatible":case"later":return Math.max(i-s,i-o);case"reject":throw new RangeError("No such absolute time found")}}function j5(e,t,n="compatible"){return new Date(Oo(e,t,n))}function Io(e,t){let n=mb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,o=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new rd(i<1?"BC":"AD",i<1?-i+1:i,s,o,t,n,u,l,d,h)}function Hr(e){return new Yn(e.calendar,e.era,e.year,e.month,e.day)}function xs(e,t){let n=0,r=0,i=0,s=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:s}=t),new nd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function BC(e){return new Md(e.hour,e.minute,e.second,e.millisecond)}function Fn(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,Iu(r),r}function K5(e,t,n){if(e instanceof rd)return e.timeZone===t?e:vq(e,t);let r=Oo(e,t,n);return Io(r,t)}function gq(e){let t=ic(e)-e.offset;return new Date(t)}function vq(e,t){let n=ic(e)-e.offset;return Fn(Io(n,t),e.calendar)}const df=36e5;function _m(e,t){let n=e.copy(),r="hour"in n?W5(n,t):0;gb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,vb(n),U5(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,yq(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 s,o;let l=(s=(o=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let 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 gb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function vb(e){for(;e.month<1;)gb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,gb(e,1)}function yq(e){for(;e.day<1;)e.month--,vb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,vb(e)}function U5(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 Iu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),U5(e)}function e3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function z5(e,t){return _m(e,e3(t))}function t3(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),Iu(n),n}function td(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),q5(n),n}function bq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ih(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ih(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ih(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ih(e.hour,24),t}function q5(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 Ih(e,t){let n=e%t;return n<0&&(n+=t),n}function W5(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,bq(e)}function H5(e,t){let n=e.copy();return W5(n,t),n}function $q(e,t){return H5(e,e3(t))}function n3(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=Lo(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],Iu(i);break}case"year":var s,o;!((s=(o=i.calendar).isInverseEra)===null||s===void 0)&&s.call(o,i)&&(n=-n),i.year=Lo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Lo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Iu(i),i}function r3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,o=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;o=l?12:0,u=l?23:11}i.hour=Lo(s,n,o,u,r==null?void 0:r.round);break}case"minute":i.minute=Lo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Lo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Lo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function G5(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=_m(xs(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Oo(i,e.timeZone)}else n=ic(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Io(n,e.timeZone);return Fn(r,e.calendar)}function xq(e,t){return G5(e,e3(t))}function wq(e,t,n,r){switch(t){case"hour":{let i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,s=$?23:11}let o=xs(e),u=Fn(td(o,{hour:i}),new Gr),l=[Oo(u,e.timeZone,"earlier"),Oo(u,e.timeZone,"later")].filter($=>Io($,e.timeZone).day===u.day)[0],d=Fn(td(o,{hour:s}),new Gr),h=[Oo(d,e.timeZone,"earlier"),Oo(d,e.timeZone,"later")].filter($=>Io($,e.timeZone).day===d.day).pop(),m=ic(e)-e.offset,g=Math.floor(m/df),b=m%df;return m=Lo(g,n,Math.floor(l/df),Math.floor(h/df),r==null?void 0:r.round)*df+b,Fn(Io(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return r3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=n3(xs(e),t,n,r),s=Oo(i,e.timeZone);return Fn(Io(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Cq(e,t,n){let r=xs(e),i=td(t3(r,t),t);if(i.compare(r)===0)return e;let s=Oo(i,e.timeZone,n);return Fn(Io(s,e.timeZone),e.calendar)}const Sq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Eq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Dq(e){let t=e.match(Sq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yn(Ks(t[1],0,9999),Ks(t[2],1,12),1);return n.day=Ks(t[3],0,n.calendar.getDaysInMonth(n)),n}function Aq(e){let t=e.match(Eq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ks(t[1],-9999,9999),r=n<1?"BC":"AD",i=new nd(r,n<1?-n+1:n,Ks(t[2],1,12),1,t[4]?Ks(t[4],0,23):0,t[5]?Ks(t[5],0,59):0,t[6]?Ks(t[6],0,59):0,t[7]?Ks(t[7],0,1/0)*1e3:0);return i.day=Ks(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ks(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 Y5(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 Z5(e){let t=Fn(e,new Gr),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 X5(e){return`${Z5(e)}T${Y5(e)}`}function Tq(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 Pq(e){return`${X5(e)}${Tq(e.offset)}[${e.timeZone}]`}function i3(e){let t=typeof e[0]=="object"?e.shift():new Gr,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var _q=new WeakMap;class Yn{copy(){return this.era?new Yn(this.calendar,this.era,this.year,this.month,this.day):new Yn(this.calendar,this.year,this.month,this.day)}add(t){return _m(this,t)}subtract(t){return z5(this,t)}set(t){return t3(this,t)}cycle(t,n,r){return n3(this,t,n,r)}toDate(t){return j5(this,t)}toString(){return Z5(this)}compare(t){return L5(this,t)}constructor(...t){Dd(this,_q,{writable:!0,value:void 0});let[n,r,i,s,o]=i3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,Iu(this)}}var Mq=new WeakMap;class Md{copy(){return new Md(this.hour,this.minute,this.second,this.millisecond)}add(t){return H5(this,t)}subtract(t){return $q(this,t)}set(t){return td(this,t)}cycle(t,n,r){return r3(this,t,n,r)}toString(){return Y5(this)}compare(t){return B5(this,t)}constructor(t=0,n=0,r=0,i=0){Dd(this,Mq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,q5(this)}}var Rq=new WeakMap;class nd{copy(){return this.era?new nd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new nd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return _m(this,t)}subtract(t){return z5(this,t)}set(t){return t3(td(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return n3(this,t,n,r);default:return r3(this,t,n,r)}}toDate(t,n){return j5(this,t,n)}toString(){return X5(this)}compare(t){let n=L5(this,t);return n===0?B5(this,xs(t)):n}constructor(...t){Dd(this,Rq,{writable:!0,value:void 0});let[n,r,i,s,o]=i3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Iu(this)}}var Fq=new WeakMap;class rd{copy(){return this.era?new rd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new rd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return G5(this,t)}subtract(t){return xq(this,t)}set(t,n){return Cq(this,t,n)}cycle(t,n,r){return wq(this,t,n,r)}toDate(){return gq(this)}toString(){return Pq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-K5(t,this.timeZone).toDate().getTime()}constructor(...t){Dd(this,Fq,{writable:!0,value:void 0});let[n,r,i,s,o]=i3(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,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,Iu(this)}}const Kl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],kq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],up=[1867,1911,1925,1988,2018],ga=["meiji","taisho","showa","heisei","reiwa"];function VC(e){const t=Kl.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?Kl.length-1:t===0?0:t-1}function Rv(e){let t=up[ga.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yn(e.year+t,e.month,e.day)}class Oq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=VC(n);return new Yn(this,ga[r],n.year-up[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Rv(t))}balanceDate(t){let n=Rv(t),r=VC(n);ga[r]!==t.era&&(t.era=ga[r],t.year=n.year-up[r]),this.constrainDate(t)}constrainDate(t){let n=ga.indexOf(t.era),r=kq[n];if(r!=null){let[i,s,o]=r,u=i-up[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,s]=Kl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return ga}getYearsInEra(t){let n=ga.indexOf(t.era),r=Kl[n],i=Kl[n+1];if(i==null)return 9999-r[0]+1;let s=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Rv(t))}getMinimumMonthInYear(t){let n=NC(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=NC(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function NC(e){if(e.year===1){let t=ga.indexOf(e.era);return Kl[t]}}const J5=-543;class Iq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Td(n.era,n.year);return new Yn(this,r-J5,n.month,n.day)}toJulianDay(t){return super.toJulianDay(jC(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(jC(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function jC(e){let[t,n]=Tm(e.year+J5);return new Yn(t,n,e.month,e.day)}const Bp=1911;function Q5(e){return e.era==="minguo"?e.year+Bp:1-e.year+Bp}function KC(e){let t=e-Bp;return t>0?["minguo",t]:["before_minguo",1-t]}class Lq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Td(n.era,n.year),[i,s]=KC(r);return new Yn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(UC(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=KC(Q5(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(UC(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Bp}constructor(...t){super(...t),this.identifier="roc"}}function UC(e){let[t,n]=Tm(Q5(e));return new Yn(t,n,e.month,e.day)}const zC=1948320,qC=[0,31,62,93,124,155,186,216,246,276,306,336];class Bq{fromJulianDay(t){let n=t-zC,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,o=s<216?Math.floor(s/31):Math.floor((s-6)/30),u=s-qC[o]+1;return new Yn(this,r,o+1,u)}toJulianDay(t){let n=zC-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=qC[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||jl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Fv=78,WC=80;class Vq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Fv,i=t-pu(n.era,n.year,1,1),s;i<WC?(r--,s=ba(n.year-1)?31:30,i+=s+155+90+10):(s=ba(n.year)?31:30,i-=WC);let o,u;if(i<s)o=1,u=i+1;else{let l=i-s;l<155?(o=Math.floor(l/31)+2,u=l%31+1):(l-=155,o=Math.floor(l/30)+7,u=l%30+1)}return new Yn(this,r,o,u)}toJulianDay(t){let n=t.year+Fv,[r,i]=Tm(n),s,o;return ba(i)?(s=31,o=pu(r,i,3,21)):(s=30,o=pu(r,i,3,22)),t.month===1?o+t.day-1:(o+=s+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&ba(t.year+Fv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Vp=1948440,HC=1948439,Ni=1300,Cl=1600,Nq=460322;function Np(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function e_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Np(t,r,1,1)))/29.5)+1),s=n-Np(t,r,i,1)+1;return new Yn(e,r,i,s)}function GC(e){return(14+11*e)%30<11}class s3{fromJulianDay(t){return e_(this,Vp,t)}toJulianDay(t){return Np(Vp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&GC(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return GC(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class jq extends s3{fromJulianDay(t){return e_(this,HC,t)}toJulianDay(t){return Np(HC,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Kq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let yb,Ul;function lp(e){return Nq+Ul[e-Ni]}function Tf(e,t){let n=e-Ni,r=1<<11-(t-1);return(yb[n]&r)===0?29:30}function YC(e,t){let n=lp(e);for(let r=1;r<t;r++)n+=Tf(e,r);return n}function ZC(e){return Ul[e+1-Ni]-Ul[e-Ni]}class Uq extends s3{fromJulianDay(t){let n=t-Vp,r=lp(Ni),i=lp(Cl);if(n<r||n>i)return super.fromJulianDay(t);{let s=Ni-1,o=1,u=1;for(;u>0;){s++,u=n-lp(s)+1;let l=ZC(s);if(u===l){o=12;break}else if(u<l){let d=Tf(s,o);for(o=1;u>d;)u-=d,o++,d=Tf(s,o);break}}return new Yn(this,s,o,n-YC(s,o)+1)}}toJulianDay(t){return t.year<Ni||t.year>Cl?super.toJulianDay(t):Vp+YC(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ni||t.year>Cl?super.getDaysInMonth(t):Tf(t.year,t.month)}getDaysInYear(t){return t.year<Ni||t.year>Cl?super.getDaysInYear(t):ZC(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",yb||(yb=new Uint16Array(Uint8Array.from(atob(Kq),t=>t.charCodeAt(0)).buffer)),!Ul){Ul=new Uint32Array(Cl-Ni+1);let t=0;for(let n=Ni;n<=Cl;n++){Ul[n-Ni]=t;for(let r=1;r<=12;r++)t+=Tf(n,r)}}}}const XC=347997,t_=1080,n_=24*t_,zq=29,qq=12*t_+793,Wq=zq*n_+qq;function cu(e){return jl(e*7+1,19)<7}function cp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return jl(3*(r+1),7)<3&&(r+=1),r}function Hq(e){let t=cp(e-1),n=cp(e);return cp(e+1)-n===356?2:n-t===382?1:0}function Nf(e){return cp(e)+Hq(e)}function r_(e){return Nf(e+1)-Nf(e)}function Gq(e){let t=r_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Lh(e,t){if(t>=6&&!cu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=Gq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?cu(e)?30:0:30}class Yq{fromJulianDay(t){let n=t-XC,r=n*n_/Wq,i=Math.floor((19*r+234)/235)+1,s=Nf(i),o=Math.floor(n-s);for(;o<1;)i--,s=Nf(i),o=Math.floor(n-s);let u=1,l=0;for(;l<o;)l+=Lh(i,u),u++;u--,l-=Lh(i,u);let d=o-l;return new Yn(this,i,u,d)}toJulianDay(t){let n=Nf(t.year);for(let r=1;r<t.month;r++)n+=Lh(t.year,r);return n+t.day+XC}getDaysInMonth(t){return Lh(t.year,t.month)}getMonthsInYear(t){return cu(t.year)?13:12}getDaysInYear(t){return r_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(cu(n.year)&&!cu(t.year)&&n.month>6?t.month--:!cu(n.year)&&cu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const bb=1723856,JC=1824665,$b=5500;function jp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function o3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-jp(e,n,1,1))/30),i=t+1-jp(e,n,r,1);return[n,r,i]}function i_(e){return Math.floor(e%4/3)}function s_(e,t){return t%13!==0?30:i_(e)+5}class a3{fromJulianDay(t){let[n,r,i]=o3(bb,t),s="AM";return n<=0&&(s="AA",n+=$b),new Yn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=$b),jp(bb,n,t.month,t.day)}getDaysInMonth(t){return s_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+i_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Zq extends a3{fromJulianDay(t){let[n,r,i]=o3(bb,t);return n+=$b,new Yn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class Xq extends a3{fromJulianDay(t){let[n,r,i]=o3(JC,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Yn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),jp(JC,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),s_(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 Jq(e){switch(e){case"buddhist":return new Iq;case"ethiopic":return new a3;case"ethioaa":return new Zq;case"coptic":return new Xq;case"hebrew":return new Yq;case"indian":return new Vq;case"islamic-civil":return new s3;case"islamic-tbla":return new jq;case"islamic-umalqura":return new Uq;case"japanese":return new Oq;case"persian":return new Bq;case"roc":return new Lq;case"gregory":default:return new Gr}}let kv=new Map;class Wi{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(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return tW()&&(this.resolvedHourCycle||(this.resolvedHourCycle=nW(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=o_(t,n),this.options=n}}const Qq={true:{ja:"h11"},false:{}};function o_(e,t={}){if(typeof t.hour12=="boolean"&&eW()){t={...t};let i=Qq[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(kv.has(n))return kv.get(n);let r=new Intl.DateTimeFormat(e,t);return kv.set(n,r),r}let Ov=null;function eW(){return Ov==null&&(Ov=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Ov}let Iv=null;function tW(){return Iv==null&&(Iv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Iv}function nW(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=o_(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.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 Ys(e){e=v5(e??{},rW);let{locale:t}=Rr();return A.useMemo(()=>new Wi(t,e),[t,e])}function rW(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 Lv=new Map,xb=!1;try{xb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Kp=!1;try{Kp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const a_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class u_{format(t){let n="";if(!xb&&this.options.signDisplay!=null?n=sW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Kp){var r;let{unit:i,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!i)return n;let u=(r=a_[i])===null||r===void 0?void 0:r[s];n+=u[o]||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(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!xb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Kp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=iW(t,n),this.options=n}}function iW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Kp){var r;let{unit:o,unitDisplay:u="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=a_[o])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(Lv.has(i))return Lv.get(i);let s=new Intl.NumberFormat(e,t);return Lv.set(i,s),s}function sW(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),s=e.format(n),o=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return e.format(n)}}const oW=new RegExp("^.*\\(.*\\).*$"),aW=["latn","arab","hanidec","deva","beng"];class l_{parse(t){return Bv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Bv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Bv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const QC=new Map;function Bv(e,t,n){let r=eS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of aW)if(i!==r.options.numberingSystem){let s=eS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function eS(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=QC.get(n);return r||(r=new uW(e,t),QC.set(n,r)),r}class uW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Bh(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");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)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new l_(this.locale,o).parse(new u_(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&oW.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=Bh(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Bh(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=Bh(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=cW(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 tS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),lW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function cW(e,t,n,r){var i,s,o,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=lW.map(oe=>l.formatToParts(oe));var g;let b=(g=(i=d.find(oe=>oe.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(s=h.find(oe=>oe.type==="plusSign"))===null||s===void 0?void 0:s.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(oe=>oe.type==="decimal"))===null||o===void 0?void 0:o.value,S=(u=d.find(oe=>oe.type==="group"))===null||u===void 0?void 0:u.value,C=d.filter(oe=>!tS.has(oe.type)).map(oe=>nS(oe.value)),T=m.flatMap(oe=>oe.filter(W=>!tS.has(W.type)).map(W=>nS(W.value))),O=[...new Set([...C,...T])].sort((oe,W)=>W.length-oe.length),M=O.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${O.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((oe,W)=>[oe,W])),F=new RegExp(`[${k.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:D,group:S,literals:M,numeral:F,index:oe=>String(N.get(oe))}}function Bh(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function nS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fW(e={}){let{locale:t}=Rr();return A.useMemo(()=>new u_(t,e),[t,e])}let Vv=new Map;function c_(e){let{locale:t}=Rr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Vv.has(n))return Vv.get(n);let r=new Intl.Collator(t,e);return Vv.set(n,r),r}function f_(e){let t=c_({usage:"search",...e}),n=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(0,o.length),o)===0),[t]),r=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(-o.length),o)===0),[t]),i=A.useCallback((s,o)=>{if(o.length===0)return!0;s=s.normalize("NFC"),o=o.normalize("NFC");let u=0,l=o.length;for(;u+l<=s.length;u++){let d=s.slice(u,u+l);if(t.compare(o,d)===0)return!0}return!1},[t]);return A.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function dW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:o,onPressUp:u,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,type:w="button"}=e,D;n==="button"?D={type:w,disabled:r}:D={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:S,isPressed:C}=Ad({onPressStart:s,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:T}=Z4(e,t);h&&(T.tabIndex=r?-1:T.tabIndex);let O=Zt(T,S,Go(e,{labelable:!0}));return{isPressed:C,buttonProps:Zt(D,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:M=>{m&&(m(M),console.warn("onClick is deprecated, please use onPress"))}})}}function hW(e){const t=zo(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:s}=e.ownerDocument.defaultView;let{display:o,visibility:u}=s(e);i=o!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function pW(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 d_(e,t){return e.nodeName!=="#comment"&&hW(e)&&pW(e,t)&&(!e.parentElement||d_(e.parentElement,e))}const rS=A.createContext(null),wb="react-aria-focus-scope-restore";let bn=null;function mW(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=A.useRef(null),o=A.useRef(null),u=A.useRef([]),{parentNode:l}=A.useContext(rS)||{},d=A.useMemo(()=>new Sb({scopeRef:u}),[u]);pn(()=>{let g=l||Qn.root;if(Qn.getTreeNode(g.scopeRef)&&bn&&!Up(bn,g.scopeRef)){let b=Qn.getTreeNode(bn);b&&(g=b)}g.addChild(d),Qn.addNode(d)},[d,l]),pn(()=>{let g=Qn.getTreeNode(u);g&&(g.contain=!!n)},[n]),pn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,$=[],w=D=>D.stopPropagation();for(;b&&b!==o.current;)$.push(b),b.addEventListener(wb,w),b=b.nextSibling;return u.current=$,()=>{for(let D of $)D.removeEventListener(wb,w)}},[t]),$W(u,r,n),vW(u,n),xW(u,r,n),bW(u,i),A.useEffect(()=>{const g=mr(nn(u.current?u.current[0]:void 0));let b=null;if(Ji(g,u.current)){for(let $ of Qn.traverse())$.scopeRef&&Ji(g,$.scopeRef.current)&&(b=$);b===Qn.getTreeNode(u)&&(bn=b.scopeRef)}},[u]),pn(()=>()=>{var g,b,$;let w=($=(b=Qn.getTreeNode(u))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(u===bn||Up(u,bn))&&(!w||Qn.getTreeNode(w))&&(bn=w),Qn.removeTreeNode(u)},[u]);let h=A.useMemo(()=>gW(u),[]),m=A.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return A.createElement(rS.Provider,{value:m},A.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,A.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function gW(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t;var u;let l=r||mr(nn((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[0].previousElementSibling,h=mu(n),m=Kr(h,{tabbable:i,accept:o},n);m.currentNode=Ji(l,n)?l:d;let g=m.nextNode();return!g&&s&&(m.currentNode=d,g=m.nextNode()),g&&ii(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t;var u;let l=r||mr(nn((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[n.length-1].nextElementSibling,h=mu(n),m=Kr(h,{tabbable:i,accept:o},n);m.currentNode=Ji(l,n)?l:d;let g=m.previousNode();return!g&&s&&(m.currentNode=d,g=m.previousNode()),g&&ii(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),o=Kr(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&ii(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),o=Kr(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&ii(u,!0),u}}}function mu(e){return e[0].parentElement}function Pf(e){let t=Qn.getTreeNode(bn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function vW(e,t){let n=A.useRef(void 0),r=A.useRef(void 0);pn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=nn(i?i[0]:void 0);let o=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Pf(e)||d.isComposing)return;let h=mr(s),m=e.current;if(!m||!Ji(h,m))return;let g=mu(m),b=Kr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=d.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),$&&ii($,!0)},u=d=>{(!bn||Up(bn,e))&&Ji(en(d),e.current)?(bn=e,n.current=en(d)):Pf(e)&&!$a(en(d),e)?n.current?n.current.focus():bn&&bn.current&&Cb(bn.current):Pf(e)&&(n.current=en(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Qf(),m=(h==="virtual"||h===null)&&q4()&&h5(),g=mr(s);if(!m&&g&&Pf(e)&&!$a(g,e)){bn=e;let $=en(d);if($&&$.isConnected){var b;n.current=$,(b=n.current)===null||b===void 0||b.focus()}else bn.current&&Cb(bn.current)}})};return s.addEventListener("keydown",o,!1),s.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",o,!1),s.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),pn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function h_(e){return $a(e)}function Ji(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function $a(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Qn.traverse(Qn.getTreeNode(t)))if(n&&Ji(e,n.current))return!0;return!1}function yW(e){return $a(e,bn)}function Up(e,t){var n;let r=(n=Qn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ii(e,t=!1){if(e!=null&&!t)try{Ou(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function p_(e,t=!0){let n=e[0].previousElementSibling,r=mu(e),i=Kr(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=mu(e),i=Kr(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Cb(e,t=!0){ii(p_(e,t))}function bW(e,t){const n=A.useRef(t);A.useEffect(()=>{if(n.current){bn=e;const r=nn(e.current?e.current[0]:void 0);!Ji(mr(r),bn.current)&&e.current&&Cb(e.current)}n.current=!1},[e])}function $W(e,t,n){pn(()=>{if(t||n)return;let r=e.current;const i=nn(r?r[0]:void 0);let s=o=>{let u=en(o);Ji(u,e.current)?bn=e:h_(u)||(bn=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,t,n])}function iS(e){let t=Qn.getTreeNode(bn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function xW(e,t,n){const r=A.useRef(typeof document<"u"?mr(nn(e.current?e.current[0]:void 0)):null);pn(()=>{let i=e.current;const s=nn(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!bn||Up(bn,e))&&Ji(mr(s),e.current)&&(bn=e)};return s.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{s.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),pn(()=>{const i=nn(e.current?e.current[0]:void 0);if(!t)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Pf(e)||o.isComposing)return;let u=i.activeElement;if(!$a(u,e)||!iS(e))return;let l=Qn.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Kr(i.body,{tabbable:!0});h.currentNode=u;let m=o.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!$a(m,e))&&d){h.currentNode=d;do m=o.shiftKey?h.previousNode():h.nextNode();while($a(m,e));o.preventDefault(),o.stopPropagation(),m?ii(m,!0):h_(d)?ii(d,!0):u.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),pn(()=>{const i=nn(e.current?e.current[0]:void 0);if(!t)return;let s=Qn.getTreeNode(e);if(s){var o;return s.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=Qn.getTreeNode(e);if(!u)return;let l=u.nodeToRestore,d=mr(i);if(t&&l&&(d&&$a(d,e)||d===i.body&&iS(e))){let h=Qn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){sS(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Qn.getTreeNode(m.scopeRef)){let g=p_(m.scopeRef.current,!0);sS(g);return}m=m.parent}}})}}}},[e,t])}function sS(e){e.dispatchEvent(new CustomEvent(wb,{bubbles:!0,cancelable:!0}))&&ii(e)}function Kr(e,t,n){let r=t!=null&&t.tabbable?Ez:y5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=nn(i),o=nz(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(u)?NodeFilter.FILTER_REJECT:r(u)&&d_(u)&&(!n||Ji(u,n))&&(!(t!=null&&t.accept)||t.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Mm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||mr(nn(r)),d=Kr(r,{tabbable:s,accept:u});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&o&&(d.currentNode=r,h=d.nextNode()),h&&ii(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||mr(nn(r)),d=Kr(r,{tabbable:s,accept:u});if(r.contains(l))d.currentNode=l;else{let m=Nv(d);return m&&ii(m,!0),m??null}let h=d.previousNode();if(!h&&o){d.currentNode=r;let m=Nv(d);if(!m)return null;h=m}return h&&ii(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,u=Kr(r,{tabbable:i,accept:s}).nextNode();return u&&ii(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,o=Kr(r,{tabbable:i,accept:s}),u=Nv(o);return u&&ii(u,!0),u??null}}}function Nv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class u3{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 s=new Sb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.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 s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ji(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),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 u3;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 Sb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Sb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Qn=new u3;function m_(e){let t=CW(nn(e));t!==e&&(t&&wW(t,e),e&&g_(e,t))}function wW(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function g_(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function CW(e){let t=mr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var v_={};v_={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 y_={};y_={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 b_={};b_={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 $_={};$_={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 x_={};x_={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 w_={};w_={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 C_={};C_={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 S_={};S_={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 E_={};E_={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 D_={};D_={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 A_={};A_={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 T_={};T_={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var P_={};P_={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 __={};__={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 M_={};M_={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 R_={};R_={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var F_={};F_={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 k_={};k_={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 O_={};O_={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 I_={};I_={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 L_={};L_={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 B_={};B_={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 V_={};V_={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 N_={};N_={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 j_={};j_={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 K_={};K_={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var U_={};U_={dateRange:e=>`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 z_={};z_={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 q_={};q_={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 W_={};W_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 Rd={};Rd={"ar-AE":v_,"bg-BG":y_,"cs-CZ":b_,"da-DK":$_,"de-DE":x_,"el-GR":w_,"en-US":C_,"es-ES":S_,"et-EE":E_,"fi-FI":D_,"fr-FR":A_,"he-IL":T_,"hr-HR":P_,"hu-HU":__,"it-IT":M_,"ja-JP":R_,"ko-KR":F_,"lt-LT":k_,"lv-LV":O_,"nb-NO":I_,"nl-NL":L_,"pl-PL":B_,"pt-BR":V_,"pt-PT":N_,"ro-RO":j_,"ru-RU":K_,"sk-SK":U_,"sl-SI":z_,"sr-SP":q_,"sv-SE":W_,"tr-TR":H_,"uk-UA":G_,"zh-CN":Y_,"zh-TW":Z_};function X_(e){return e&&e.__esModule?e.default:e}const l3=new WeakMap;function id(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function SW(e){let t=oo(X_(Rd),"@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 s=Ys({weekday:"long",month:"long",year:"numeric",day:"numeric",era:id(n)||id(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return A.useMemo(()=>{if(!o&&n&&r)if(ir(n,r)){let u=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Db(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,o,e.timeZone,t,s])}function Eb(e,t,n,r){let i=oo(X_(Rd),"@react-aria/calendar"),s=id(e)||id(t),o=Ys({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),u=Ys({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return A.useMemo(()=>{if(ir(e,_d(e))){if(ir(t,pb(e)))return o.format(e.toDate(n));if(ir(t,pb(t)))return r?Db(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Db(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,u,i,n,r])}function Db(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")o=d;else if(h.source==="endRange")break}let u="",l="";for(let d=0;d<s.length;d++)d<o?u+=s[d].value:d>o&&(l+=s[d].value);return t.format("dateRange",{startDate:u,endDate:l})}const J_=7e3;let Bi=null;function zl(e,t="assertive",n=J_){Bi?Bi.announce(e,t,n):(Bi=new DW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Bi.announce(e,t,n):setTimeout(()=>{Bi!=null&&Bi.isAttached()&&(Bi==null||Bi.announce(e,t,n))},100))}function EW(e){Bi&&Bi.clear(e)}class DW{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=J_){var i,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function AW(e){return e&&e.__esModule?e.default:e}function Q_(e,t){let n=oo(AW(Rd),"@react-aria/calendar"),r=Go(e),i=Eb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Eb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);ob(()=>{t.isFocused||zl(s)},[s]);let o=SW(t);ob(()=>{o&&zl(o,"polite",4e3)},[o]);let u=tc([!!e.errorMessage,e.isInvalid,e.validationState]);l3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:o});let[l,d]=A.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=A.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=nc({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Zt(r,$,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:u},title:i}}function TW(e,t){return Q_(e,t)}function PW(e,t,n){let r=Q_(e,t),i=A.useRef(!1),s=A.useRef(typeof window<"u"?window:null);return Gs(s,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),Gs(s,"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()},Gs(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function _W(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),o=$=>{switch($.key){case"Enter":case" ":$.preventDefault(),t.selectFocusedDate();break;case"PageUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousSection($.shiftKey);break;case"PageDown":$.preventDefault(),$.stopPropagation(),t.focusNextSection($.shiftKey);break;case"End":$.preventDefault(),$.stopPropagation(),t.focusSectionEnd();break;case"Home":$.preventDefault(),$.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":$.preventDefault(),$.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&($.preventDefault(),t.setAnchorDate(null));break}},u=Eb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=l3.get(t),h=nc({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=Ys({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Rr(),b=A.useMemo(()=>{let $=ed(Pm(t.timeZone),g,i);return[...new Array(7).keys()].map(w=>{let S=$.add({days:w}).toDate(t.timeZone);return m.format(S)})},[g,t.timeZone,m,i]);return{gridProps:Zt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function MW(e){return e&&e.__esModule?e.default:e}function RW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:o}=l3.get(t),u=oo(MW(Rd),"@react-aria/calendar"),l=Ys({weekday:"long",day:"numeric",month:"long",year:"numeric",era:id(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r);i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ir(t.value,r));b&&(d=!0),r=v5(r,hb);let $=A.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=O5(r,t.timeZone),D=A.useMemo(()=>{let W="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ir(r,t.value.start)||ir(r,t.value.end))&&(W=o+", "),W+=l.format($),w?W=u.format(d?"todayDateSelected":"todayDate",{date:W}):d&&(W=u.format("dateSelected",{date:W})),t.minValue&&ir(r,t.minValue)?W+=", "+u.format("minimumDate"):t.maxValue&&ir(r,t.maxValue)&&(W+=", "+u.format("maximumDate")),W},[l,$,u,d,w,r,t,o]),S="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?S=u.format("finishRangeSelectionPrompt"):S=u.format("startRangeSelectionPrompt"));let C=Ed(S),T=A.useRef(!1),O=A.useRef(!1),M=A.useRef(void 0),{pressProps:k,isPressed:N}=Ad({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(W){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(W.pointerType==="mouse"||W.pointerType==="touch")){if(t.highlightedRange&&!b){if(ir(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}else if(ir(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}}let we=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(r),t.setFocusedDate(r),T.current=!0};W.pointerType==="touch"?M.current=setTimeout(we,200):we()}},onPressEnd(){O.current=!1,T.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(W){if(!t.isReadOnly&&("anchorDate"in t&&M.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(O.current)t.setAnchorDate(r);else if(t.anchorDate&&!T.current)t.selectDate(r),t.setFocusedDate(r);else if(W.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let we=r.add({days:1});t.isInvalid(we)&&(we=r.subtract({days:1})),t.isInvalid(we)||t.setFocusedDate(we)}else W.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),F;i||(F=ir(r,t.focusedDate)?0:-1),A.useEffect(()=>{h&&n.current&&(Xi(n.current),Qf()!=="pointer"&&document.activeElement===n.current&&kp(n.current,{containingElement:Dm(n.current)}))},[h,n]);let ae=Ys({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),oe=A.useMemo(()=>ae.formatToParts($).find(W=>W.type==="day").value,[ae,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Zt(k,{onFocus(){i||t.setFocusedDate(r)},tabIndex:F,role:"button","aria-disabled":!g||void 0,"aria-label":D,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(W){"highlightDate"in t&&(W.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(W){"releasePointerCapture"in W.target&&W.target.releasePointerCapture(W.pointerId)},onContextMenu(W){W.preventDefault()}}),isPressed:N,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:oe}}const Rm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},e6={...Rm,customError:!0,valid:!1},fu={isInvalid:!1,validationDetails:Rm,validationErrors:[]},FW=A.createContext({}),sc="__formValidationState"+Date.now();function Fd(e){if(e[sc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[sc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return kW(e)}function kW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:e6}:null,d=A.useMemo(()=>{if(!o||i==null)return null;let oe=OW(o,i);return oS(oe)},[o,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=A.useContext(FW),m=A.useMemo(()=>r?Array.isArray(r)?r.flatMap(oe=>Ab(h[oe])):Ab(h[r]):[],[h,r]),[g,b]=A.useState(h),[$,w]=A.useState(!1);h!==g&&(b(h),w(!1));let D=A.useMemo(()=>oS($?[]:m),[$,m]),S=A.useRef(fu),[C,T]=A.useState(fu),O=A.useRef(fu),M=()=>{if(!k)return;N(!1);let oe=d||s||S.current;jv(oe,O.current)||(O.current=oe,T(oe))},[k,N]=A.useState(!1);return A.useEffect(M),{realtimeValidation:l||D||d||s||fu,displayValidation:u==="native"?l||D||C:l||D||d||s||C,updateValidation(oe){u==="aria"&&!jv(C,oe)?T(oe):S.current=oe},resetValidation(){let oe=fu;jv(oe,O.current)||(O.current=oe,T(oe)),u==="native"&&N(!1),w(!0)},commitValidation(){u==="native"&&N(!0),w(!0)}}}function Ab(e){return e?Array.isArray(e)?e:[e]:[]}function OW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Ab(n)}return[]}function oS(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:e6}:null}function jv(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 zp(...e){let t=new Set,n=!1,r={...Rm};for(let o of e){var i,s;for(let u of o.validationErrors)t.add(u);n||(n=o.isInvalid);for(let u in r)(i=r)[s=u]||(i[s]=o.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function t6(e,t,n){let{validationBehavior:r,focus:i}=e;pn(()=>{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(LW(n.current))}});let s=Hn(()=>{t.resetValidation()}),o=Hn(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let h=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&h&&BW(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),A5("keyboard")}l.preventDefault()}),u=Hn(()=>{t.commitValidation()});A.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",u),d==null||d.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",u),d==null||d.removeEventListener("reset",s)}},[n,o,u,s,r])}function IW(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 LW(e){return{isInvalid:!e.validity.valid,validationDetails:IW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function BW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Fm(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Wr(t);let o=Wr(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:s==="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=nc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function km(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:o}=Fm(e),u=tc([!!t,!!n,r,i]),l=tc([!!t,!!n,r,i]);return o=Zt(o,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:l}}}const VW=0,NW=100,jW=1;function KW(e){const{isDisabled:t=!1,minValue:n=VW,maxValue:r=NW,numberFormatter:i,step:s=jW,orientation:o="horizontal"}=e;let u=A.useMemo(()=>{let G=(r-n)/10;return G=ff(G,0,G+s,s),Math.max(G,s)},[s,r,n]),l=A.useCallback(G=>G==null?void 0:G.map((Se,Pe)=>{let ke=Pe===0?n:G[Pe-1],Ie=Pe===G.length-1?r:G[Pe+1];return ff(Se,ke,Ie,s)}),[n,r,s]),d=A.useMemo(()=>l(uS(e.value)),[e.value]),h=A.useMemo(()=>{var G;return l((G=uS(e.defaultValue))!==null&&G!==void 0?G:[n])},[e.defaultValue,n]),m=lS(e.value,e.defaultValue,e.onChange),g=lS(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=wi(d,h,m),[w,D]=A.useState(new Array(b.length).fill(!1)),S=A.useRef(new Array(b.length).fill(!0)),[C,T]=A.useState(void 0),O=A.useRef(b),M=A.useRef(w);let k=G=>{O.current=G,$(G)},N=G=>{M.current=G,D(G)};function F(G){return(G-n)/(r-n)}function ae(G){return G===0?n:b[G-1]}function oe(G){return G===b.length-1?r:b[G+1]}function W(G){return S.current[G]}function we(G,Se){S.current[G]=Se}function ne(G,Se){if(t||!W(G))return;const Pe=ae(G),ke=oe(G);Se=ff(Se,Pe,ke,s);let Ie=aS(O.current,G,Se);k(Ie)}function se(G,Se){if(t||!W(G))return;Se&&(O.current=b);const Pe=M.current[G];M.current=aS(M.current,G,Se),N(M.current),g&&Pe&&!M.current.some(Boolean)&&g(O.current)}function z(G){return i.format(G)}function K(G,Se){ne(G,B(Se))}function j(G){return Math.round((G-n)/s)*s+n}function B(G){const Se=G*(r-n)+n;return rc(j(Se),n,r)}function ge(G,Se=1){let Pe=Math.max(Se,s);ne(G,ff(b[G]+Pe,n,r,s))}function U(G,Se=1){let Pe=Math.max(Se,s);ne(G,ff(b[G]-Pe,n,r,s))}return{values:b,getThumbValue:G=>b[G],setThumbValue:ne,setThumbPercent:K,isThumbDragging:G=>w[G],setThumbDragging:se,focusedThumb:C,setFocusedThumb:T,getThumbPercent:G=>F(b[G]),getValuePercent:F,getThumbValueLabel:G=>z(b[G]),getFormattedValue:z,getThumbMinValue:ae,getThumbMaxValue:oe,getPercentValue:B,isThumbEditable:W,setThumbEditable:we,incrementThumb:ge,decrementThumb:U,step:s,pageSize:u,orientation:o,isDisabled:t}}function aS(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function uS(e){if(e!=null)return Array.isArray(e)?e:[e]}function lS(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const cS={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 UW(e={}){let{style:t,isFocusable:n}=e,[r,i]=A.useState(!1),{focusWithinProps:s}=$c({isDisabled:!n,onFocusWithinChange:u=>i(u)}),o=A.useMemo(()=>r?t:t?{...cS,...t}:cS,[r]);return{visuallyHiddenProps:{...s,style:o}}}function zW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:o}=UW(e);return A.createElement(n,Zt(s,o),t)}const c3=new WeakMap;function Tb(e,t){let n=c3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function qW(e,t,n){let{labelProps:r,fieldProps:i}=Fm(e),s=e.orientation==="vertical";var o;c3.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Rr(),{addGlobalListener:l,removeGlobalListener:d}=Ma();const h=A.useRef(null),m=u==="rtl",g=A.useRef(null),{moveProps:b}=P5({onMoveStart(){g.current=null},onMove({deltaX:S,deltaY:C}){if(!n.current)return;let{height:T,width:O}=n.current.getBoundingClientRect(),M=s?T:O;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*M);let k=s?C:S;if((s||m)&&(k=-k),g.current+=k,h.current!=null&&n.current){const N=rc(g.current/M,0,1);t.setThumbPercent(h.current,N)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=A.useRef(void 0),w=(S,C,T,O)=>{if(n.current&&!e.isDisabled&&t.values.every((M,k)=>!t.isThumbDragging(k))){let{height:M,width:k,top:N,left:F}=n.current.getBoundingClientRect(),ae=s?M:k,ne=((s?O:T)-(s?N:F))/ae;(u==="rtl"||s)&&(ne=1-ne);let se=t.getPercentValue(ne),z,K=t.values.findIndex(j=>se-j<0);if(K===0)z=K;else if(K===-1)z=t.values.length-1;else{let j=t.values[K-1],B=t.values[K];Math.abs(j-se)<Math.abs(B-se)?z=K-1:z=K}z>=0&&t.isThumbEditable(z)?(S.preventDefault(),h.current=z,t.setFocusedThumb(z),$.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(z,se),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):h.current=null}},D=S=>{var C,T;((T=S.pointerId)!==null&&T!==void 0?T:(C=S.changedTouches)===null||C===void 0?void 0:C[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",D,!1),d(window,"touchend",D,!1),d(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var S;(S=document.getElementById(Tb(t,0)))===null||S===void 0||S.focus(),A5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Zt({onMouseDown(S){S.button!==0||S.altKey||S.ctrlKey||S.metaKey||w(S,void 0,S.clientX,S.clientY)},onPointerDown(S){S.pointerType==="mouse"&&(S.button!==0||S.altKey||S.ctrlKey||S.metaKey)||w(S,S.pointerId,S.clientX,S.clientY)},onTouchStart(S){w(S,S.changedTouches[0].identifier,S.changedTouches[0].clientX,S.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((S,C)=>Tb(t,C)).join(" "),"aria-live":"off"}}}function WW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:o,inputRef:u,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Rr(),{addGlobalListener:b,removeGlobalListener:$}=Ma(),w=c3.get(t);var D;const{labelProps:S,fieldProps:C}=Fm({...e,id:Tb(t,n),"aria-labelledby":`${w.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),T=t.values[n],O=A.useCallback(()=>{u.current&&Xi(u.current)},[u]),M=t.focusedThumb===n;A.useEffect(()=>{M&&O()},[M,O]);let k=g==="rtl",N=A.useRef(null),{keyboardProps:F}=T5({onKeyDown(K){let{getThumbMaxValue:j,getThumbMinValue:B,decrementThumb:ge,incrementThumb:U,setThumbValue:G,setThumbDragging:Se,pageSize:Pe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(K.key)){K.continuePropagation();return}switch(K.preventDefault(),Se(n,!0),K.key){case"PageUp":U(n,Pe);break;case"PageDown":ge(n,Pe);break;case"Home":G(n,B(n));break;case"End":G(n,j(n));break}Se(n,!1)}}),{moveProps:ae}=P5({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:K,deltaY:j,pointerType:B,shiftKey:ge}){const{getThumbPercent:U,setThumbPercent:G,decrementThumb:Se,incrementThumb:Pe,step:ke,pageSize:Ie}=t;if(!o.current)return;let{width:Ze,height:Ge}=o.current.getBoundingClientRect(),De=m?Ge:Ze;if(N.current==null&&(N.current=U(n)*De),B==="keyboard")K>0&&k||K<0&&!k||j>0?Se(n,ge?Ie:ke):Pe(n,ge?Ie:ke);else{let Ue=m?j:K;(m||k)&&(Ue=-Ue),N.current+=Ue,G(n,rc(N.current/De,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:oe}=Z4(Zt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let W=A.useRef(void 0),we=K=>{O(),W.current=K,t.setThumbDragging(n,!0),b(window,"mouseup",ne,!1),b(window,"touchend",ne,!1),b(window,"pointerup",ne,!1)},ne=K=>{var j,B;((B=K.pointerId)!==null&&B!==void 0?B:(j=K.changedTouches)===null||j===void 0?void 0:j[0].identifier)===W.current&&(O(),t.setThumbDragging(n,!1),$(window,"mouseup",ne,!1),$(window,"touchend",ne,!1),$(window,"pointerup",ne,!1))},se=t.getThumbPercent(n);(m||g==="rtl")&&(se=1-se);let z=h?{}:Zt(F,ae,{onMouseDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||we()},onPointerDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||we(K.pointerId)},onTouchStart:K=>{we(K.changedTouches[0].identifier)}});return W4(u,T,K=>{t.setThumbValue(n,K)}),{inputProps:Zt(oe,C,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":s||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:K=>{t.setThumbValue(n,parseFloat(K.target.value))}}),thumbProps:{...z,style:{position:"absolute",[m?"top":"left"]:`${se*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:M}}function HW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:o="text",validationBehavior:u="aria"}=e,[l,d]=wi(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=Z4(e,t),m=Fd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:w,fieldProps:D,descriptionProps:S,errorMessageProps:C}=km({...e,isInvalid:g,errorMessage:e.errorMessage||b}),T=Go(e,{labelable:!0});const O={type:o,pattern:e.pattern};return W4(t,l,d),t6(e,m,t),A.useEffect(()=>{if(t.current instanceof zo(t.current).HTMLTextAreaElement){let M=t.current;Object.defineProperty(M,"defaultValue",{get:()=>M.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:Zt(T,n==="input"?O:void 0,{disabled:r,readOnly:s,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:M=>d(M.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,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...D}),descriptionProps:S,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:$}}var n6={};n6={Empty:"فارغ"};var r6={};r6={Empty:"Изпразни"};var i6={};i6={Empty:"Prázdné"};var s6={};s6={Empty:"Tom"};var o6={};o6={Empty:"Leer"};var a6={};a6={Empty:"Άδειο"};var u6={};u6={Empty:"Empty"};var l6={};l6={Empty:"Vacío"};var c6={};c6={Empty:"Tühjenda"};var f6={};f6={Empty:"Tyhjä"};var d6={};d6={Empty:"Vide"};var h6={};h6={Empty:"ריק"};var p6={};p6={Empty:"Prazno"};var m6={};m6={Empty:"Üres"};var g6={};g6={Empty:"Vuoto"};var v6={};v6={Empty:"空"};var y6={};y6={Empty:"비어 있음"};var b6={};b6={Empty:"Tuščias"};var $6={};$6={Empty:"Tukšs"};var x6={};x6={Empty:"Tom"};var w6={};w6={Empty:"Leeg"};var C6={};C6={Empty:"Pusty"};var S6={};S6={Empty:"Vazio"};var E6={};E6={Empty:"Vazio"};var D6={};D6={Empty:"Gol"};var A6={};A6={Empty:"Не заполнено"};var T6={};T6={Empty:"Prázdne"};var P6={};P6={Empty:"Prazen"};var _6={};_6={Empty:"Prazno"};var M6={};M6={Empty:"Tomt"};var R6={};R6={Empty:"Boş"};var F6={};F6={Empty:"Пусто"};var k6={};k6={Empty:"空"};var O6={};O6={Empty:"空白"};var I6={};I6={"ar-AE":n6,"bg-BG":r6,"cs-CZ":i6,"da-DK":s6,"de-DE":o6,"el-GR":a6,"en-US":u6,"es-ES":l6,"et-EE":c6,"fi-FI":f6,"fr-FR":d6,"he-IL":h6,"hr-HR":p6,"hu-HU":m6,"it-IT":g6,"ja-JP":v6,"ko-KR":y6,"lt-LT":b6,"lv-LV":$6,"nb-NO":x6,"nl-NL":w6,"pl-PL":C6,"pt-BR":S6,"pt-PT":E6,"ro-RO":D6,"ru-RU":A6,"sk-SK":T6,"sl-SI":P6,"sr-SP":_6,"sv-SE":M6,"tr-TR":R6,"uk-UA":F6,"zh-CN":k6,"zh-TW":O6};function GW(e){return e&&e.__esModule?e.default:e}function YW(e){const t=A.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:o,isReadOnly:u,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const w=oo(GW(I6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);A.useEffect(()=>()=>D(),[]);let S=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||u))switch(W.key){case"PageUp":if(h){W.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(W.preventDefault(),d==null||d());break;case"PageDown":if(g){W.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(W.preventDefault(),m==null||m());break;case"Home":b&&(W.preventDefault(),b==null||b());break;case"End":$&&(W.preventDefault(),$==null||$());break}},C=A.useRef(!1),T=()=>{C.current=!0},O=()=>{C.current=!1},M=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");A.useEffect(()=>{C.current&&(EW("assertive"),zl(M,"assertive"))},[M]);const k=Hn(W=>{D(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&k(60)},W)}),N=Hn(W=>{D(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&N(60)},W)});let F=W=>{W.preventDefault()},{addGlobalListener:ae,removeAllGlobalListeners:oe}=Ma();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":M,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:S,onFocus:T,onBlur:O},incrementButtonProps:{onPressStart:()=>{k(400),ae(window,"contextmenu",F)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O},decrementButtonProps:{onPressStart:()=>{N(400),ae(window,"contextmenu",F)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O}}}var L6={};L6={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 B6={};B6={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 V6={};V6={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 N6={};N6={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 j6={};j6={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 K6={};K6={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 U6={};U6={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 z6={};z6={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 W6={};W6={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 H6={};H6={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 G6={};G6={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 Y6={};Y6={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 Z6={};Z6={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 X6={};X6={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 J6={};J6={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 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 eM={};eM={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 tM={};tM={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 nM={};nM={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 rM={};rM={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 iM={};iM={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 sM={};sM={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 oM={};oM={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 aM={};aM={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 uM={};uM={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 lM={};lM={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 cM={};cM={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 fM={};fM={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 dM={};dM={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 hM={};hM={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 pM={};pM={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 mM={};mM={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 gM={};gM={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 vM={};vM={"ar-AE":L6,"bg-BG":B6,"cs-CZ":V6,"da-DK":N6,"de-DE":j6,"el-GR":K6,"en-US":U6,"es-ES":z6,"et-EE":q6,"fi-FI":W6,"fr-FR":H6,"he-IL":G6,"hr-HR":Y6,"hu-HU":Z6,"it-IT":X6,"ja-JP":J6,"ko-KR":Q6,"lt-LT":eM,"lv-LV":tM,"nb-NO":nM,"nl-NL":rM,"pl-PL":iM,"pt-BR":sM,"pt-PT":oM,"ro-RO":aM,"ru-RU":uM,"sk-SK":lM,"sl-SI":cM,"sr-SP":fM,"sv-SE":dM,"tr-TR":hM,"uk-UA":pM,"zh-CN":mM,"zh-TW":gM};const Zs={top:"top",bottom:"top",left:"left",right:"left"},qp={top:"bottom",bottom:"top",left:"right",right:"left"},ZW={top:"left",left:"top"},Pb={top:"height",left:"width"},yM={width:"totalWidth",height:"totalHeight"},Vh={};let hr=typeof document<"u"?window.visualViewport:null;function fS(e){let t=0,n=0,r=0,i=0,s=0,o=0,u={};var l;let d=((l=hr==null?void 0:hr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=hr==null?void 0:hr.width)!==null&&h!==void 0?h:r;var m;n=(m=hr==null?void 0:hr.height)!==null&&m!==void 0?m:i,u.top=$.scrollTop||e.scrollTop,u.left=$.scrollLeft||e.scrollLeft,hr&&(s=hr.offsetTop,o=hr.offsetLeft)}else({width:t,height:n,top:s,left:o}=ql(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(z4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var g;s=(g=hr==null?void 0:hr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=hr==null?void 0:hr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:s,left:o}}function XW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function dS(e,t,n,r,i,s,o){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Pb[e]],h=r.scroll[Zs[e]]+s,m=d+r.scroll[Zs[e]]-s,g=t-l+o[e]-r[Zs[e]],b=t-l+n+o[e]-r[Zs[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function JW(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 hS(e){if(Vh[e])return Vh[e];let[t,n]=e.split(" "),r=Zs[t]||"right",i=ZW[r];Zs[n]||(n="center");let s=Pb[r],o=Pb[i];return Vh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:o},Vh[e]}function Kv(e,t,n,r,i,s,o,u,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:w}=r,D={};var S;D[b]=(S=e[b])!==null&&S!==void 0?S:0;var C,T,O,M;m==="center"?D[b]+=(((C=e[w])!==null&&C!==void 0?C:0)-((T=n[w])!==null&&T!==void 0?T:0))/2:m!==b&&(D[b]+=((O=e[w])!==null&&O!==void 0?O:0)-((M=n[w])!==null&&M!==void 0?M:0)),D[b]+=s;const k=e[b]-n[w]+l+d,N=e[b]+e[w]-l-d;if(D[b]=rc(D[b],k,N),h===g){const F=u?o[$]:t[yM[$]];D[qp[g]]=Math.floor(F-e[g]+i)}else D[g]=Math.floor(e[g]+e[$]+i);return D}function QW(e,t,n,r,i,s,o,u){const l=r?n.height:t[yM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-o);var m,g,b,$,w,D;let S=u!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+s)):Math.max(0,h+o-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+s));return Math.min(t.height-s*2,S)}function pS(e,t,n,r,i,s){let{placement:o,axis:u,size:l}=s;var d,h;if(o===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((h=r[u])!==null&&h!==void 0?h:0)-r[qp[u]]-i);var m;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((m=r[u])!==null&&m!==void 0?m:0)-r[qp[u]]-i)}function eH(e,t,n,r,i,s,o,u,l,d,h,m,g,b,$,w){let D=hS(e),{size:S,crossAxis:C,crossSize:T,placement:O,crossPlacement:M}=D,k=Kv(t,u,n,D,h,m,d,g,$,w),N=h,F=pS(u,d,t,i,s+h,D);if(o&&r[S]>F){let ke=hS(`${qp[O]} ${M}`),Ie=Kv(t,u,n,ke,h,m,d,g,$,w);pS(u,d,t,i,s+h,ke)>F&&(D=ke,k=Ie,N=h)}let ae="bottom";D.axis==="top"?D.placement==="top"?ae="top":D.placement==="bottom"&&(ae="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?ae="bottom":D.crossPlacement==="bottom"&&(ae="top"));let oe=dS(C,k[C],n[T],u,l,s,d);k[C]+=oe;let W=QW(k,u,d,g,i,s,n.height,ae);b&&b<W&&(W=b),n.height=Math.min(n.height,W),k=Kv(t,u,n,D,N,m,d,g,$,w),oe=dS(C,k[C],n[T],u,l,s,d),k[C]+=oe;let we={},ne=t[C]+.5*t[T]-k[C]-i[Zs[C]];const se=$/2+w;var z,K,j,B;const ge=Zs[C]==="left"?((z=i.left)!==null&&z!==void 0?z:0)+((K=i.right)!==null&&K!==void 0?K:0):((j=i.top)!==null&&j!==void 0?j:0)+((B=i.bottom)!==null&&B!==void 0?B:0),U=n[T]-ge-$/2-w,G=t[C]+$/2-(k[C]+i[Zs[C]]),Se=t[C]+t[T]-$/2-(k[C]+i[Zs[C]]),Pe=rc(ne,G,Se);return we[C]=rc(Pe,se,U),{position:k,maxHeight:W,arrowOffsetLeft:we.left,arrowOffsetTop:we.top,placement:D.placement}}function tH(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:o,boundaryElement:u,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?nH(r):document.documentElement,$=b===document.documentElement;const w=window.getComputedStyle(b).position;let D=!!w&&w!=="static",S=$?ql(n):mS(n,b);if(!$){let{marginTop:we,marginLeft:ne}=window.getComputedStyle(n);S.top+=parseInt(we,10)||0,S.left+=parseInt(ne,10)||0}let C=ql(r),T=JW(r);var O,M;C.width+=((O=T.left)!==null&&O!==void 0?O:0)+((M=T.right)!==null&&M!==void 0?M:0);var k,N;C.height+=((k=T.top)!==null&&k!==void 0?k:0)+((N=T.bottom)!==null&&N!==void 0?N:0);let F=XW(i),ae=fS(u),oe=fS(b),W=u.tagName==="BODY"?ql(b):mS(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(oe.scroll.top=0,oe.scroll.left=0),eH(t,S,C,F,T,s,o,ae,oe,W,l,d,D,h,m,g)}function ql(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:o,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+s-u,left:n+o-l,width:r,height:i}}function mS(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:o,height:u}=e.getBoundingClientRect();r={top:i,left:s,width:o,height:u}}else{r=ql(e);let i=ql(t),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.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 nH(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!gS(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!gS(t);)t=t.parentElement;return t||document.documentElement}function gS(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 bM=new WeakMap;function rH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;A.useEffect(()=>{if(!n||r===null)return;let i=s=>{let o=s.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let u=r||bM.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function iH(e){let{direction:t}=Rr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:o="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:$,maxHeight:w,arrowBoundaryOffset:D=0}=e,[S,C]=A.useState(null),T=[g,o,i.current,r.current,s.current,u,l,d,h,m,b,t,w,D,n],O=A.useRef(qn==null?void 0:qn.scale);A.useEffect(()=>{b&&(O.current=qn==null?void 0:qn.scale)},[b]);let M=A.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(qn==null?void 0:qn.scale)!==O.current)return;let oe=null;if(s.current&&s.current.contains(document.activeElement)){var W;let B=(W=document.activeElement)===null||W===void 0?void 0:W.getBoundingClientRect(),ge=s.current.getBoundingClientRect();var we;if(oe={type:"top",offset:((we=B==null?void 0:B.top)!==null&&we!==void 0?we:0)-ge.top},oe.offset>ge.height/2){oe.type="bottom";var ne;oe.offset=((ne=B==null?void 0:B.bottom)!==null&&ne!==void 0?ne:0)-ge.bottom}}let se=i.current;if(!w&&i.current){var z;se.style.top="0px",se.style.bottom="";var K;se.style.maxHeight=((K=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let j=tH({placement:oH(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:u,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:w,arrowSize:n,arrowBoundaryOffset:D});if(j.position){if(se.style.top="",se.style.bottom="",se.style.left="",se.style.right="",Object.keys(j.position).forEach(B=>se.style[B]=j.position[B]+"px"),se.style.maxHeight=j.maxHeight!=null?j.maxHeight+"px":"",oe&&document.activeElement&&s.current){let B=document.activeElement.getBoundingClientRect(),ge=s.current.getBoundingClientRect(),U=B[oe.type]-ge[oe.type];s.current.scrollTop+=U-oe.offset}C(j)}},T);pn(M,T),sH(M),yC({ref:i,onResize:M}),yC({ref:r,onResize:M});let k=A.useRef(!1);pn(()=>{let oe,W=()=>{k.current=!0,clearTimeout(oe),oe=setTimeout(()=>{k.current=!1},500),M()},we=()=>{k.current&&W()};return qn==null||qn.addEventListener("resize",W),qn==null||qn.addEventListener("scroll",we),()=>{qn==null||qn.removeEventListener("resize",W),qn==null||qn.removeEventListener("scroll",we)}},[M]);let N=A.useCallback(()=>{k.current||$==null||$()},[$,k]);rH({triggerRef:r,isOpen:b,onClose:$&&N});var F,ae;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...S==null?void 0:S.position,maxHeight:(F=S==null?void 0:S.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(ae=S==null?void 0:S.placement)!==null&&ae!==void 0?ae:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:M}}function sH(e){pn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function oH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const js=[];function aH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;A.useEffect(()=>{if(i&&!js.includes(t))return js.push(t),()=>{let $=js.indexOf(t);$>=0&&js.splice($,1)}},[i,t]);let l=()=>{js[js.length-1]===t&&n&&n()},d=$=>{(!u||u($.target))&&js[js.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!u||u($.target))&&(js[js.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!o&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};qz({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=$c({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||yW($.relatedTarget)||(!u||u($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function uH(e,t,n){let{type:r}=e,{isOpen:i}=t;A.useEffect(()=>{n&&n.current&&bM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let o=Wr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const Uv=typeof document<"u"&&window.visualViewport,lH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Nh=0,zv;function cH(e={}){let{isDisabled:t}=e;pn(()=>{if(!t)return Nh++,Nh===1&&(Sd()?zv=dH():zv=fH()),()=>{Nh--,Nh===0&&zv()}},[t])}function fH(){return Ru(Pl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Pl(document.documentElement,"overflow","hidden"))}function dH(){let e,t,n=d=>{e=Dm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Pl(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},s=d=>{let h=d.target;hH(h)&&(u(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Uv&&(Uv.height<window.innerHeight?requestAnimationFrame(()=>{vS(h)}):Uv.addEventListener("resize",()=>vS(h),{once:!0}))}))},o=null,u=()=>{if(o)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;o=Ru(hf(window,"scroll",d),Pl(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Pl(document.documentElement,"overflow","hidden"),Pl(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Ru(hf(document,"touchstart",n,{passive:!1,capture:!0}),hf(document,"touchmove",r,{passive:!1,capture:!0}),hf(document,"touchend",i,{passive:!1,capture:!0}),hf(document,"focus",s,!0));return()=>{t==null||t(),o==null||o(),l()}}function Pl(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function hf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function vS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Dm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function hH(e){return e instanceof HTMLInputElement&&!lH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let pf=new WeakMap,ri=[];function $M(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let g of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(g.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),m=d(l);if(m===NodeFilter.FILTER_ACCEPT&&s(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)s(g),g=h.nextNode()}},s=l=>{var d;let h=(d=pf.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&h===0||(h===0&&l.setAttribute("aria-hidden","true"),r.add(l),pf.set(l,h+1))};ri.length&&ri[ri.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(h=>h.contains(d.target))){for(let h of d.removedNodes)h instanceof Element&&(n.delete(h),r.delete(h));for(let h of d.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?n.add(h):h instanceof Element&&i(h)}});o.observe(t,{childList:!0,subtree:!0});let u={visibleNodes:n,hiddenNodes:r,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ri.push(u),()=>{o.disconnect();for(let l of r){let d=pf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),pf.delete(l)):pf.set(l,d-1))}u===ri[ri.length-1]?(ri.pop(),ri.length&&ri[ri.length-1].observe()):ri.splice(ri.indexOf(u),1)}}function pH(e){let t=ri[ri.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function mH(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=aH({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u},i??r),{overlayProps:g,arrowProps:b,placement:$}=iH({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return cH({isDisabled:s||!t.isOpen}),pn(()=>{if(t.isOpen&&r.current){var w,D;return s?pH((w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current):$M([(D=i==null?void 0:i.current)!==null&&D!==void 0?D:r.current])}},[s,t.isOpen,r,i]),{popoverProps:Zt(h,g),arrowProps:b,underlayProps:m,placement:$}}const gH=A.createContext({});function vH(){var e;return(e=A.useContext(gH))!==null&&e!==void 0?e:{}}const xM=A.createContext(null);function yH(e){let t=K4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=A.useState(!1),o=A.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:u}=vH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=A.createElement(mW,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=A.createElement(xM.Provider,{value:o},A.createElement(Kz,null,l)),Vo.createPortal(l,n)}function bH(){let e=A.useContext(xM),t=e==null?void 0:e.setContain;pn(()=>{t==null||t(!0)},[t])}const Om=new WeakMap;function $H(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function wM(e,t){let n=Om.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${$H(t)}`}function _b(e){return sp()?e.altKey:e.ctrlKey}function fp(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const CM=new WeakMap;function xH(e){let t=Wr();return CM.set(e,t),t}function wH(e){return CM.get(e)}const CH=1e3;function SH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=A.useRef({search:"",timeout:void 0}).current,s=o=>{let u=EH(o.key);if(!(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(u===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.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=""},CH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function EH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function SM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:h,allowsTabNavigation:m=!1,isVirtualized:g,scrollRef:b=r,linkBehavior:$="action"}=e,{direction:w}=Rr(),D=Em(),S=z=>{var K;if(z.altKey&&z.key==="Tab"&&z.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(z.target)))return;const j=(_e,Ve)=>{if(_e!=null){if(t.isLink(_e)&&$==="selection"&&l&&!_b(z)){Vo.flushSync(()=>{t.setFocusedKey(_e,Ve)});let Le=fp(r,_e),nt=t.getItemProps(_e);Le&&D.open(Le,z,nt.href,nt.routerOptions);return}if(t.setFocusedKey(_e,Ve),t.isLink(_e)&&$==="override")return;z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):l&&!_b(z)&&t.replaceSelection(_e)}};switch(z.key){case"ArrowDown":if(n.getKeyBelow){var B,ge,U;let _e=t.focusedKey!=null?(B=n.getKeyBelow)===null||B===void 0?void 0:B.call(n,t.focusedKey):(ge=n.getFirstKey)===null||ge===void 0?void 0:ge.call(n);_e==null&&s&&(_e=(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),_e!=null&&(z.preventDefault(),j(_e))}break;case"ArrowUp":if(n.getKeyAbove){var G,Se,Pe;let _e=t.focusedKey!=null?(G=n.getKeyAbove)===null||G===void 0?void 0:G.call(n,t.focusedKey):(Se=n.getLastKey)===null||Se===void 0?void 0:Se.call(n);_e==null&&s&&(_e=(Pe=n.getLastKey)===null||Pe===void 0?void 0:Pe.call(n,t.focusedKey)),_e!=null&&(z.preventDefault(),j(_e))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ke,Ie,Ze;let _e=t.focusedKey!=null?(ke=n.getKeyLeftOf)===null||ke===void 0?void 0:ke.call(n,t.focusedKey):null;_e==null&&s&&(_e=w==="rtl"?(Ie=n.getFirstKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey):(Ze=n.getLastKey)===null||Ze===void 0?void 0:Ze.call(n,t.focusedKey)),_e!=null&&(z.preventDefault(),j(_e,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,De,Ue;let _e=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;_e==null&&s&&(_e=w==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ue=n.getFirstKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),_e!=null&&(z.preventDefault(),j(_e,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let _e=n.getFirstKey(t.focusedKey,Dl(z));t.setFocusedKey(_e),_e!=null&&(Dl(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):l&&t.replaceSelection(_e))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let _e=n.getLastKey(t.focusedKey,Dl(z));t.setFocusedKey(_e),_e!=null&&(Dl(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_e):l&&t.replaceSelection(_e))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let _e=n.getKeyPageBelow(t.focusedKey);_e!=null&&(z.preventDefault(),j(_e))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let _e=n.getKeyPageAbove(t.focusedKey);_e!=null&&(z.preventDefault(),j(_e))}break;case"a":Dl(z)&&t.selectionMode==="multiple"&&u!==!0&&(z.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(z.stopPropagation(),z.preventDefault(),t.clearSelection());break;case"Tab":if(!m){if(z.shiftKey)r.current.focus();else{let _e=Kr(r.current,{tabbable:!0}),Ve,Le;do Le=_e.lastChild(),Le&&(Ve=Le);while(Le);Ve&&!Ve.contains(document.activeElement)&&Xi(Ve)}break}}},C=A.useRef({top:0,left:0});Gs(b,"scroll",g?void 0:()=>{var z,K,j,B;C.current={top:(j=(z=b.current)===null||z===void 0?void 0:z.scrollTop)!==null&&j!==void 0?j:0,left:(B=(K=b.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&B!==void 0?B:0}});let T=z=>{if(t.isFocused){z.currentTarget.contains(z.target)||t.setFocused(!1);return}if(z.currentTarget.contains(z.target)){if(t.setFocused(!0),t.focusedKey==null){var K,j;let U=Se=>{Se!=null&&(t.setFocusedKey(Se),l&&!t.isSelected(Se)&&t.replaceSelection(Se))},G=z.relatedTarget;var B,ge;G&&z.currentTarget.compareDocumentPosition(G)&Node.DOCUMENT_POSITION_FOLLOWING?U((B=t.lastSelectedKey)!==null&&B!==void 0?B:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):U((ge=t.firstSelectedKey)!==null&&ge!==void 0?ge:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else!g&&b.current&&(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(t.focusedKey!=null&&b.current){let U=fp(r,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!h&&Xi(U),Qf()==="keyboard"&&kp(U,{containingElement:r.current}))}}},O=z=>{z.currentTarget.contains(z.relatedTarget)||t.setFocused(!1)},M=A.useRef(!1);Gs(r,wz,h?z=>{let{detail:K}=z;z.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(M.current=!0)}:void 0);let k=Hn(()=>{var z,K;let j=(K=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&K!==void 0?K:null;j==null?(m_(r.current),t.collection.size>0&&(M.current=!1)):(t.setFocusedKey(j),M.current=!1)});vC(()=>{M.current&&k()},[t.collection,k]);let N=Hn(()=>{t.collection.size>0&&(M.current=!1)});vC(()=>{N()},[t.focusedKey,N]),Gs(r,xz,h?z=>{var K;z.stopPropagation(),t.setFocused(!1),!((K=z.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const F=A.useRef(i),ae=A.useRef(!1);A.useEffect(()=>{if(F.current){var z,K;let ge=null;var j;i==="first"&&(ge=(j=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&j!==void 0?j:null);var B;i==="last"&&(ge=(B=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&B!==void 0?B:null);let U=t.selectedKeys;if(U.size){for(let G of U)if(t.canSelectItem(G)){ge=G;break}}t.setFocused(!0),t.setFocusedKey(ge),ge==null&&!h&&r.current&&Ou(r.current),t.collection.size>0&&(F.current=!1,ae.current=!0)}});let oe=A.useRef(t.focusedKey);A.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==oe.current||ae.current)&&b.current&&r.current){let z=Qf(),K=fp(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(z==="keyboard"||ae.current)&&(g5(b.current,K),z!=="virtual"&&kp(K,{containingElement:r.current}))}!h&&t.isFocused&&t.focusedKey==null&&oe.current!=null&&r.current&&Ou(r.current),oe.current=t.focusedKey,ae.current=!1}),Gs(r,"react-aria-focus-scope-restore",z=>{z.preventDefault(),t.setFocused(!0)});let W={onKeyDown:S,onFocus:T,onBlur:O,onMouseDown(z){b.current===z.target&&z.preventDefault()}},{typeSelectProps:we}=SH({keyboardDelegate:n,selectionManager:t});d||(W=Zt(we,W));let ne;h||(ne=t.focusedKey==null?0:-1);let se=xH(t.collection);return{collectionProps:Zt(W,{tabIndex:ne,"data-collection":se})}}function DH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Em();t=Wr(t);let b=B=>{if(B.pointerType==="keyboard"&&_b(B))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let ge=n.getItemProps(r);g.open(i.current,B,ge.href,ge.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):B&&B.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||B&&(Dl(B)||B.pointerType==="touch"||B.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};A.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?m_(i.current):u?u():document.activeElement!==i.current&&i.current&&Ou(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let $={};!o&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(B){B.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=B=>{B.preventDefault()});let w=n.isLink(r)&&m==="override",D=n.isLink(r)&&m!=="selection"&&m!=="none",S=!l&&n.canSelectItem(r)&&!w,C=(d||D)&&!l,T=C&&(n.selectionBehavior==="replace"?!S:!S||n.isEmpty),O=C&&S&&n.selectionBehavior==="replace",M=T||O,k=A.useRef(null),N=M&&S,F=A.useRef(!1),ae=A.useRef(!1),oe=B=>{if(d&&d(),D&&i.current){let ge=n.getItemProps(r);g.open(i.current,B,ge.href,ge.routerOptions)}},W={};s?(W.onPressStart=B=>{k.current=B.pointerType,F.current=N,B.pointerType==="keyboard"&&(!M||bS())&&b(B)},h?(W.onPressUp=T?void 0:B=>{B.pointerType==="mouse"&&S&&b(B)},W.onPress=T?oe:B=>{B.pointerType!=="keyboard"&&B.pointerType!=="mouse"&&S&&b(B)}):W.onPress=B=>{if(T||O&&B.pointerType!=="mouse"){if(B.pointerType==="keyboard"&&!yS())return;oe(B)}else B.pointerType!=="keyboard"&&S&&b(B)}):(W.onPressStart=B=>{k.current=B.pointerType,F.current=N,ae.current=T,S&&(B.pointerType==="mouse"&&!T||B.pointerType==="keyboard"&&(!C||bS()))&&b(B)},W.onPress=B=>{(B.pointerType==="touch"||B.pointerType==="pen"||B.pointerType==="virtual"||B.pointerType==="keyboard"&&M&&yS()||B.pointerType==="mouse"&&ae.current)&&(M?oe(B):S&&b(B))}),$["data-collection"]=wH(n.collection),$["data-key"]=r,W.preventFocusOnPress=o,o&&(W=Zt(W,{onPressStart(B){B.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(B){B.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:we,isPressed:ne}=Ad(W),se=O?B=>{k.current==="mouse"&&(B.stopPropagation(),B.preventDefault(),oe(B))}:void 0,{longPressProps:z}=_5({isDisabled:!N,onLongPress(B){B.pointerType==="touch"&&(b(B),n.setSelectionBehavior("toggle"))}}),K=B=>{k.current==="touch"&&F.current&&B.preventDefault()},j=n.isLink(r)?B=>{Fu.isOpening||B.preventDefault()}:void 0;return{itemProps:Zt($,S||T||o?we:{},N?z:{},{onDoubleClick:se,onDragStartCapture:K,onClick:j,id:t},o?{onMouseDown:B=>B.preventDefault()}:void 0),isPressed:ne,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:S,hasAction:M}}function yS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function bS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class $S{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?fp(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.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,s;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:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class EM{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,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let o=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(o,s)&&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&&!Jf(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&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&&!Jf(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&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 s=r.getItem(i);if(!s)return null;let o=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new $S(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 $S(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function AH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:o}=e,u=c_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=A.useMemo(()=>s||new EM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:o}),[s,o,n,r,i,u,l]),{collectionProps:h}=SM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function TH(e,t,n){let r=Go(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:o}=AH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:u}=$c({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Wr(e.id);Om.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:d,fieldProps:h}=Fm({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Zt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Zt(h,o)})}}function DM(e){return null}DM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||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:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:PH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];A.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function PH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&A.Children.count(e.children)>0)}let _H=DM;class MH{build(t,n){return this.context=n,xS(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(A.isValidElement(n)&&n.type===A.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 s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];A.Children.forEach(n,o=>{o&&i.push(o)});let s=0;for(let o of i){let u=this.getFullNode({element:o,index:s},{});for(let l of u)s++,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 s=n.value;if(s!=null){var o;let u=(o=s.key)!==null&&o!==void 0?o:s.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(A.isValidElement(t.element)&&t.element.type===A.Fragment){let D=[];A.Children.forEach(t.element.props.children,C=>{D.push(C)});var s;let S=(s=t.index)!==null&&s!==void 0?s:0;for(const C of D)yield*this.getFullNode({element:C,index:S++},n,r,i);return}let o=t.element;if(!o&&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}o=n.renderer(t.value)}if(A.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let O=o.type;throw new Error(`Unknown element <${O}> in collection.`)}let S=D.getCollectionNode(o.props,this.context);var u;let C=(u=t.index)!==null&&u!==void 0?u:0,T=S.next();for(;!T.done&&T.value;){let O=T.value;t.index=C;var l;let M=(l=O.key)!==null&&l!==void 0?l:null;M==null&&(M=O.element?null:this.getKey(o,t,n,r));let N=[...this.getFullNode({...O,key:M,index:C,wrapper:RH(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${o.key}`:o.key,i)];for(let F of N){var d,h;F.value=(h=(d=O.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,F.value&&this.cache.set(F.value,F);var m;if(t.type&&F.type!==t.type)throw new Error(`Unsupported type <${qv(F.type)}> in <${qv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${qv(t.type)}> is supported.`);C++,yield F}T=S.next(N)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;let w={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:xS(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let S of t.childNodes()){S.key!=null&&(S.key=`${w.key}${S.key}`);let C=g.getFullNode({...S,index:D},g.getChildState(n,S),w.key,w);for(let T of C)D++,yield T}})};yield w}constructor(){this.cache=new WeakMap}}function xS(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 RH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function qv(e){return e[0].toUpperCase()+e.slice(1)}function FH(e,t,n){let r=A.useMemo(()=>new MH,[]),{children:i,items:s,collection:o}=e;return A.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,o,n,t])}function Im(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function kH(e){return OH(e)}function OH(e,t){for(let n of e)return n}function Wv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...wS(e,t),t],i=[...wS(e,n),n],s=r.slice(0,i.length).findIndex((o,u)=>o!==i[u]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function wS(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 CS=new WeakMap;function AM(e){let t=CS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(Im(s,e)):n++};return r(e),CS.set(e,n),n}function IH(e,t,n){var r,i;let{key:s}=e,o=Om.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(s);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(s);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:o==null?void 0:o.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var w;let D=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:o==null?void 0:o.shouldUseVirtualFocus;var S;let C=(S=e.isVirtualized)!==null&&S!==void 0?S:o==null?void 0:o.isVirtualized,T=tc(),O=tc(),M={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};qo()&&z4()||(M["aria-label"]=e["aria-label"],M["aria-labelledby"]=T,M["aria-describedby"]=O);let k=t.collection.getItem(s);if(C){let j=Number(k==null?void 0:k.index);M["aria-posinset"]=Number.isNaN(j)?void 0:j+1,M["aria-setsize"]=AM(t.collection)}let N=o!=null&&o.onAction?()=>{var j;return o==null||(j=o.onAction)===null||j===void 0?void 0:j.call(o,s)}:void 0,F=wM(t,s),{itemProps:ae,isPressed:oe,isFocused:W,hasAction:we,allowsSelection:ne}=DH({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:C,shouldUseVirtualFocus:D,isDisabled:l,onAction:N||!(k==null||(r=k.props)===null||r===void 0)&&r.onAction?Ru(k==null||(i=k.props)===null||i===void 0?void 0:i.onAction,N):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:F}),{hoverProps:se}=zz({isDisabled:l||!$,onHoverStart(){AC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),z=Go(k==null?void 0:k.props);delete z.id;let K=gz(k==null?void 0:k.props);return{optionProps:{...M,...Zt(z,ae,se,K),id:F},labelProps:{id:T},descriptionProps:{id:O},isFocused:W,isFocusVisible:W&&t.selectionManager.isFocused&&AC(),isSelected:h,isDisabled:l,isPressed:oe,allowsSelection:ne,hasAction:we}}var TM={};TM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var PM={};PM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var _M={};_M={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var MM={};MM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var RM={};RM={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var FM={};FM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var kM={};kM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var OM={};OM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var IM={};IM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var LM={};LM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var BM={};BM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var VM={};VM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var NM={};NM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var jM={};jM={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var KM={};KM={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var UM={};UM={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var zM={};zM={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var qM={};qM={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var WM={};WM={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var HM={};HM={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var GM={};GM={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var YM={};YM={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var ZM={};ZM={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var XM={};XM={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var JM={};JM={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var QM={};QM={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var eR={};eR={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var tR={};tR={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var nR={};nR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var rR={};rR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var iR={};iR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var sR={};sR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var oR={};oR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var aR={};aR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var uR={};uR={"ar-AE":TM,"bg-BG":PM,"cs-CZ":_M,"da-DK":MM,"de-DE":RM,"el-GR":FM,"en-US":kM,"es-ES":OM,"et-EE":IM,"fi-FI":LM,"fr-FR":BM,"he-IL":VM,"hr-HR":NM,"hu-HU":jM,"it-IT":KM,"ja-JP":UM,"ko-KR":zM,"lt-LT":qM,"lv-LV":WM,"nb-NO":HM,"nl-NL":GM,"pl-PL":YM,"pt-BR":ZM,"pt-PT":XM,"ro-RO":JM,"ru-RU":QM,"sk-SK":eR,"sl-SI":tR,"sr-SP":nR,"sv-SE":rR,"tr-TR":iR,"uk-UA":sR,"zh-CN":oR,"zh-TW":aR};function LH(e){return e&&e.__esModule?e.default:e}function BH(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,o=Wr(),{triggerProps:u,overlayProps:l}=uH({type:r},t,n),d=b=>{if(!i&&!(s==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=oo(LH(uR),"@react-aria/menu"),{longPressProps:m}=_5({isDisabled:i||s!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(Xi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...s==="press"?g:m,id:o,onKeyDown:d},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function VH(e){return e&&e.__esModule?e.default:e}function NH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:o,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=A.useRef(null);n=n??m;let g=oo(VH(vM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=BH({type:"listbox",isDisabled:h||d},t,n);Om.set(t,{id:$.id});let{collection:w}=t,{disabledKeys:D}=t.selectionManager,S=A.useMemo(()=>o||new EM({collection:w,disabledKeys:D,ref:s,layoutDelegate:u}),[o,u,w,D,s]),{collectionProps:C}=SM({selectionManager:t.selectionManager,keyboardDelegate:S,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),T=Em(),O=Ve=>{if(!Ve.nativeEvent.isComposing)switch(Ve.key){case"Enter":case"Tab":if(t.isOpen&&Ve.key==="Enter"&&Ve.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Le=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ve.key==="Enter"&&Le instanceof HTMLAnchorElement){let nt=t.collection.getItem(t.selectionManager.focusedKey);nt&&T.open(Le,Ve,nt.props.href,nt.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ve.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}},M=Ve=>{var Le;let nt=(n==null?void 0:n.current)&&n.current===Ve.relatedTarget,xt=(Le=r.current)===null||Le===void 0?void 0:Le.contains(Ve.relatedTarget);nt||xt||(e.onBlur&&e.onBlur(Ve),t.setFocused(!1))},k=Ve=>{t.isFocused||(e.onFocus&&e.onFocus(Ve),t.setFocused(!0))},{isInvalid:N,validationErrors:F,validationDetails:ae}=t.displayValidation,{labelProps:oe,inputProps:W,descriptionProps:we,errorMessageProps:ne}=HW({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Ru(t.isOpen&&C.onKeyDown,O,e.onKeyDown),onBlur:M,value:t.inputValue,onFocus:k,autoComplete:"off",validate:void 0,[sc]:t},i),se=Ve=>{if(Ve.pointerType==="touch"){var Le;(Le=i.current)===null||Le===void 0||Le.focus(),t.toggle(null,"manual")}},z=Ve=>{if(Ve.pointerType!=="touch"){var Le;(Le=i.current)===null||Le===void 0||Le.focus(),t.toggle(Ve.pointerType==="keyboard"||Ve.pointerType==="virtual"?"first":null,"manual")}},K=nc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),j=nc({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),B=A.useRef(0),ge=Ve=>{if(h||d)return;if(Ve.timeStamp-B.current<500){var Le;Ve.preventDefault(),(Le=i.current)===null||Le===void 0||Le.focus();return}let nt=Ve.target.getBoundingClientRect(),xt=Ve.changedTouches[0],ln=Math.ceil(nt.left+.5*nt.width),$t=Math.ceil(nt.top+.5*nt.height);if(xt.clientX===ln&&xt.clientY===$t){var Rt;Ve.preventDefault(),(Rt=i.current)===null||Rt===void 0||Rt.focus(),t.toggle(null,"manual"),B.current=Ve.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var G;let Se=(G=U==null?void 0:U.parentKey)!==null&&G!==void 0?G:null;var Pe;let ke=(Pe=t.selectionManager.focusedKey)!==null&&Pe!==void 0?Pe:null,Ie=A.useRef(Se),Ze=A.useRef(ke);A.useEffect(()=>{if(sp()&&U!=null&&ke!=null&&ke!==Ze.current){let Le=t.selectionManager.isSelected(ke),nt=Se!=null?t.collection.getItem(Se):null,xt=(nt==null?void 0:nt["aria-label"])||(typeof(nt==null?void 0:nt.rendered)=="string"?nt.rendered:"")||"";var Ve;let ln=g.format("focusAnnouncement",{isGroupChange:(Ve=nt&&Se!==Ie.current)!==null&&Ve!==void 0?Ve:!1,groupTitle:xt,groupCount:nt?[...Im(nt,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:Le});zl(ln)}Ie.current=Se,Ze.current=ke});let Ge=AM(t.collection),De=A.useRef(Ge),Ue=A.useRef(t.isOpen);A.useEffect(()=>{let Ve=t.isOpen!==Ue.current&&(t.selectionManager.focusedKey==null||sp());if(t.isOpen&&(Ve||Ge!==De.current)){let Le=g.format("countAnnouncement",{optionCount:Ge});zl(Le)}De.current=Ge,Ue.current=t.isOpen});let _e=A.useRef(t.selectedKey);return A.useEffect(()=>{if(sp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==_e.current){let Ve=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Le=g.format("selectedAnnouncement",{optionText:Ve});zl(Le)}_e.current=t.selectedKey}),A.useEffect(()=>{if(t.isOpen)return $M([i.current,r.current].filter(Ve=>Ve!=null))},[t.isOpen,i,r]),ob(()=>{!U&&i.current&&mr(nn(i.current))===i.current&&g_(i.current,null)},[U]),{labelProps:oe,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:se,onPressStart:z,isDisabled:h||d},inputProps:Zt(W,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?wM(t,U.key):void 0,onTouchEnd:ge,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Zt($,j,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:we,errorMessageProps:ne,isInvalid:N,validationErrors:F,validationDetails:ae}}var lR={};lR={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 cR={};cR={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 fR={};fR={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 dR={};dR={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 hR={};hR={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 pR={};pR={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={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 gR={};gR={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 vR={};vR={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 yR={};yR={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 bR={};bR={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 $R={};$R={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 xR={};xR={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 wR={};wR={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 CR={};CR={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 SR={};SR={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 ER={};ER={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 DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={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 _R={};_R={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 MR={};MR={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 RR={};RR={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 FR={};FR={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 kR={};kR={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 OR={};OR={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 IR={};IR={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 LR={};LR={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 BR={};BR={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 VR={};VR={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 NR={};NR={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 jR={};jR={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 KR={};KR={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 kd={};kd={"ar-AE":lR,"bg-BG":cR,"cs-CZ":fR,"da-DK":dR,"de-DE":hR,"el-GR":pR,"en-US":mR,"es-ES":gR,"et-EE":vR,"fi-FI":yR,"fr-FR":bR,"he-IL":$R,"hr-HR":xR,"hu-HU":wR,"it-IT":CR,"ja-JP":SR,"ko-KR":ER,"lt-LT":DR,"lv-LV":AR,"nb-NO":TR,"nl-NL":PR,"pl-PL":_R,"pt-BR":MR,"pt-PT":RR,"ro-RO":FR,"ru-RU":kR,"sk-SK":OR,"sl-SI":IR,"sr-SP":LR,"sv-SE":BR,"tr-TR":VR,"uk-UA":NR,"zh-CN":jR,"zh-TW":KR};function f3(e,t,n){let{direction:r}=Rr(),i=A.useMemo(()=>Mm(t),[t]),s=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=SS(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=SS(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Kr(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:u}=Ad({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Zt(u,{onKeyDown:s})}function SS(e,t,n){let r=Kr(e,{tabbable:!0}),i=r.nextNode(),s=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<o&&(s=i,o=d),i=r.nextNode()}return s}function jH(e){return e&&e.__esModule?e.default:e}const UR=new WeakMap,jf="__role_"+Date.now(),zR="__focusManager_"+Date.now();function qR(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:o}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:d,errorMessageProps:h}=km({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=A.useRef(null),{focusWithinProps:g}=$c({...e,onFocusWithin(oe){var W;m.current=t.value,(W=e.onFocus)===null||W===void 0||W.call(e,oe)},onBlurWithin:oe=>{var W;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(W=e.onBlur)===null||W===void 0||W.call(e,oe)},onFocusWithinChange:e.onFocusChange}),b=oo(jH(kd),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",D=t.value?b.format($,{[w]:t.formatValue({month:"long"})}):"",S=Ed(D),C=e[jf]==="presentation"?l["aria-describedby"]:[S["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,T=e[zR],O=A.useMemo(()=>T||Mm(n),[T,n]),M=f3(t,n,e[jf]==="presentation");UR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:O});let k=A.useRef(e.autoFocus),N;e[jf]==="presentation"?N={role:"presentation"}:N=Zt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),A.useEffect(()=>{k.current&&O.focusFirst(),k.current=!1},[O]),W4(e.inputRef,t.value,t.setValue),t6({...e,focus(){O.focusFirst()}},t,e.inputRef);let F={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(F.type="text",F.hidden=!0,F.required=e.isRequired,F.onChange=()=>{});let ae=Go(e);return{labelProps:{...u,onClick:()=>{O.focusFirst()}},fieldProps:Zt(ae,N,M,g,{onKeyDown(oe){e.onKeyDown&&e.onKeyDown(oe)},onKeyUp(oe){e.onKeyUp&&e.onKeyUp(oe)},style:{unicodeBidi:"isolate"}}),inputProps:F,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:o}}function KH(e,t,n){var r;let i=qR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function UH(e){return e&&e.__esModule?e.default:e}function zH(e,t,n){let r=Wr(),i=Wr(),s=Wr(),o=oo(UH(kd),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=km({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=f3(t,n),w=m["aria-labelledby"]||m.id,{locale:D}=Rr(),S=t.formatValue(D,{month:"long"}),C=S?o.format("selectedDateDescription",{date:S}):"",T=Ed(C),O=[T["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=Go(e),k=A.useMemo(()=>Mm(n),[n]),N=A.useRef(!1),{focusWithinProps:F}=$c({...e,isDisabled:t.isOpen,onBlurWithin:ae=>{let oe=document.getElementById(i);if(!(oe!=null&&oe.contains(ae.relatedTarget))){var W,we;N.current=!1,(W=e.onBlur)===null||W===void 0||W.call(e,ae),(we=e.onFocusChange)===null||we===void 0||we.call(e,!1)}},onFocusWithin:ae=>{if(!N.current){var oe,W;N.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,ae),(W=e.onFocusChange)===null||W===void 0||W.call(e,!0)}}});return{groupProps:Zt(M,$,m,T,F,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":O,onKeyDown(ae){t.isOpen||e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){t.isOpen||e.onKeyUp&&e.onKeyUp(ae)}}),labelProps:{...h,onClick:()=>{k.focusFirst()}},fieldProps:{...m,id:s,[jf]:"presentation","aria-describedby":O,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,[sc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...T,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":O,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},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:d}}function qH(e){return e&&e.__esModule?e.default:e}function WH(){let{locale:e}=Rr(),t=F5(qH(kd),"@react-aria/datepicker");return A.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new HH(e,t)}},[e,t])}class HH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function GH(e,t,n){let r=A.useRef(""),{locale:i,direction:s}=Rr(),o=WH(),{ariaLabel:u,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=UR.get(t),m=e.isPlaceholder?"":e.text,g=A.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Ys({month:"long",timeZone:g.timeZone}),$=Ys({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let U=b.format(t.dateValue);m=U!==m?`${m} – ${U}`:U}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:w}=YW({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),D=A.useMemo(()=>new l_(i,{maximumFractionDigits:0}),[i]),S=()=>{if(e.text===e.placeholder&&h.focusPrevious(),D.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let U=e.text.slice(0,-1),G=D.parse(U);U=G===0?"":U,U.length===0||G===0?t.clearSegment(e.type):t.setSegment(e.type,G),r.current=U}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=U=>{if(U.key==="a"&&(qo()?U.metaKey:U.ctrlKey)&&U.preventDefault(),!(U.ctrlKey||U.metaKey||U.shiftKey||U.altKey))switch(U.key){case"Backspace":case"Delete":U.preventDefault(),U.stopPropagation(),S();break}},{startsWith:T}=f_({sensitivity:"base"}),O=Ys({hour:"numeric",hour12:!0}),M=A.useMemo(()=>{let U=new Date;return U.setHours(0),O.formatToParts(U).find(G=>G.type==="dayPeriod").value},[O]),k=A.useMemo(()=>{let U=new Date;return U.setHours(12),O.formatToParts(U).find(G=>G.type==="dayPeriod").value},[O]),N=Ys({year:"numeric",era:"narrow",timeZone:"UTC"}),F=A.useMemo(()=>{if(e.type!=="era")return[];let U=Fn(new Yn(1,1,1),t.calendar),G=t.calendar.getEras().map(Pe=>{let ke=U.set({year:1,month:1,day:1,era:Pe}).toDate("UTC"),Ze=N.formatToParts(ke).find(Ge=>Ge.type==="era").value;return{era:Pe,formatted:Ze}}),Se=YH(G.map(Pe=>Pe.formatted));if(Se)for(let Pe of G)Pe.formatted=Pe.formatted.slice(Se);return G},[N,t.calendar,e.type]),ae=U=>{if(t.isDisabled||t.isReadOnly)return;let G=r.current+U;switch(e.type){case"dayPeriod":if(T(M,U))t.setSegment("dayPeriod",0);else if(T(k,U))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let Se=F.find(Pe=>T(Pe.formatted,U));Se&&(t.setSegment("era",Se.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!D.isValidPartialNumber(G))return;let Se=D.parse(G),Pe=Se,ke=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":Se>11&&(Pe=D.parse(U));break;case"h12":ke=!1,Se>12&&(Pe=D.parse(U));break}e.value!==void 0&&e.value>=12&&Se>1&&(Se+=12)}else e.maxValue!==void 0&&Se>e.maxValue&&(Pe=D.parse(U));if(isNaN(Se))return;let Ie=Pe!==0||ke;Ie&&t.setSegment(e.type,Pe),e.maxValue!==void 0&&(+(Se+"0")>e.maxValue||G.length>=String(e.maxValue).length)?(r.current="",Ie&&h.focusNext()):r.current=G;break}}},oe=()=>{r.current="",n.current&&kp(n.current,{containingElement:Dm(n.current)});let U=window.getSelection();U==null||U.collapse(n.current)},W=A.useRef(typeof document<"u"?document:null);Gs(W,"selectionchange",()=>{var U;let G=window.getSelection();G!=null&&G.anchorNode&&(!((U=n.current)===null||U===void 0)&&U.contains(G==null?void 0:G.anchorNode))&&G.collapse(n.current)});let we=A.useRef("");Gs(n,"beforeinput",U=>{if(n.current)switch(U.preventDefault(),U.inputType){case"deleteContentBackward":case"deleteContentForward":D.isValidPartialNumber(e.text)&&!t.isReadOnly&&S();break;case"insertCompositionText":we.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:U.data!=null&&ae(U.data);break}}),Gs(n,"input",U=>{let{inputType:G,data:Se}=U;switch(G){case"insertCompositionText":n.current&&(n.current.textContent=we.current),Se!=null&&(T(M,Se)||T(k,Se))&&ae(Se);break}}),pn(()=>{let U=n.current;return()=>{document.activeElement===U&&(h.focusPrevious()||h.focusNext())}},[n,h]);let ne=Sd()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},se=A.useMemo(()=>t.segments.find(U=>U.isEditable),[t.segments]);e!==se&&!t.isInvalid&&(d=void 0);let z=Wr(),K=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=e.type==="literal"?"":o.of(e.type),B=nc({"aria-label":`${j}${u?`, ${u}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let ge={caretColor:"transparent"};if(s==="rtl"){ge.unicodeBidi="embed";let U=g[e.type];(U==="numeric"||U==="2-digit")&&(ge.direction="ltr")}return{segmentProps:Zt(w,B,{id:z,...ne,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:K,suppressContentEditableWarning:K,spellCheck:K?"false":void 0,autoCorrect:K?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:K?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!K?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:oe,style:ge,onPointerDown(U){U.stopPropagation()},onMouseDown(U){U.stopPropagation()}})}}function YH(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 ZH(e){return e&&e.__esModule?e.default:e}function XH(e,t,n){var r,i,s;let o=oo(ZH(kd),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=km({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=m["aria-labelledby"]||m.id,{locale:w}=Rr(),D=t.formatValue(w,{month:"long"}),S=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",C=Ed(S),T={"aria-label":o.format("startDate"),"aria-labelledby":$},O={"aria-label":o.format("endDate"),"aria-labelledby":$},M=Wr(),k=Wr(),N=f3(t,n),F=[C["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,ae=A.useMemo(()=>Mm(n,{accept:B=>B.id!==M}),[n,M]),oe={[zR]:ae,[jf]:"presentation","aria-describedby":F,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},W=Go(e),we=A.useRef(!1),{focusWithinProps:ne}=$c({...e,isDisabled:t.isOpen,onBlurWithin:B=>{let ge=document.getElementById(k);if(!(ge!=null&&ge.contains(B.relatedTarget))){var U,G;we.current=!1,(U=e.onBlur)===null||U===void 0||U.call(e,B),(G=e.onFocusChange)===null||G===void 0||G.call(e,!1)}},onFocusWithin:B=>{if(!we.current){var ge,U;we.current=!0,(ge=e.onFocus)===null||ge===void 0||ge.call(e,B),(U=e.onFocusChange)===null||U===void 0||U.call(e,!0)}}}),se=A.useRef(fu),z=A.useRef(fu);var K,j;return{groupProps:Zt(W,N,m,C,ne,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(B){t.isOpen||e.onKeyDown&&e.onKeyDown(B)},onKeyUp(B){t.isOpen||e.onKeyUp&&e.onKeyUp(B)}}),labelProps:{...h,onClick:()=>{ae.focusFirst()}},buttonProps:{...C,id:M,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${M} ${$}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:k,"aria-labelledby":`${M} ${$}`},startFieldProps:{...T,...oe,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,onChange:B=>t.setDateTime("start",B),autoFocus:e.autoFocus,name:e.startName,[sc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){se.current=B,t.updateValidation(zp(B,z.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...O,...oe,value:(j=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&j!==void 0?j:null,onChange:B=>t.setDateTime("end",B),name:e.endName,[sc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(B){z.current=B,t.updateValidation(zp(se.current,B))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function JH(e,t){let{role:n="dialog"}=e,r=tc();r=e["aria-label"]?void 0:r;let i=A.useRef(!1);return A.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Ou(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Ou(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),bH(),{dialogProps:{...Go(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function Wl(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Mb(e,t,n,r,i){let s={};for(let u in t)s[u]=Math.floor(t[u]/2),s[u]>0&&t[u]%2===0&&s[u]--;let o=gu(e,t,n).subtract(s);return sd(e,o,t,n,r,i)}function gu(e,t,n,r,i){let s=e;return t.years?s=aq(e):t.months?s=_d(e):t.weeks&&(s=ed(e,n)),sd(e,s,t,n,r,i)}function Rb(e,t,n,r,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let o=gu(e,t,n).subtract(s);return sd(e,o,t,n,r,i)}function sd(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let o=Q4(t,gu(Hr(i),n,r));o&&(t=o)}if(s&&e.compare(s)<=0){let o=J4(t,Rb(Hr(s),n,r));o&&(t=o)}return t}function ha(e,t,n){if(t){let r=Q4(e,Hr(t));r&&(e=r)}if(n){let r=J4(e,Hr(n));r&&(e=r)}return e}function WR(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 HR(e){let t=A.useMemo(()=>new Wi(e.locale),[e.locale]),n=A.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:o,maxValue:u,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=A.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,w]=wi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),D=A.useMemo(()=>$?Fn(Hr($),g):null,[$,g]),S=A.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=A.useMemo(()=>e.focusedValue?ha(Fn(Hr(e.focusedValue),g),o,u):void 0,[e.focusedValue,g,o,u]),T=A.useMemo(()=>ha(e.defaultFocusedValue?Fn(Hr(e.defaultFocusedValue),g):D||Fn(Pm(S),g),o,u),[e.defaultFocusedValue,D,S,g,o,u]),[O,M]=wi(C,T,e.onFocusChange),[k,N]=A.useState(()=>{switch(l){case"start":return gu(O,s,r,o,u);case"end":return Rb(O,s,r,o,u);case"center":default:return Mb(O,s,r,o,u)}}),[F,ae]=A.useState(e.autoFocus||!1),oe=A.useMemo(()=>{let G={...s};return G.days?G.days--:G.days=-1,k.add(G)},[k,s]),[W,we]=A.useState(g.identifier);if(g.identifier!==W){let G=Fn(O,g);N(Mb(G,s,r,o,u)),M(G),we(g.identifier)}Wl(O,o,u)?M(ha(O,o,u)):O.compare(k)<0?N(Rb(O,s,r,o,u)):O.compare(oe)>0&&N(gu(O,s,r,o,u));function ne(G){G=ha(G,o,u),M(G)}function se(G){if(!e.isDisabled&&!e.isReadOnly){let Se=G;if(Se===null){w(null);return}if(Se=ha(Se,o,u),Se=WR(Se,k,d),!Se)return;Se=Fn(Se,($==null?void 0:$.calendar)||new Gr),$&&"hour"in $?w($.set(Se)):w(Se)}}let z=A.useMemo(()=>D?d&&d(D)?!0:Wl(D,o,u):!1,[D,d,o,u]),K=e.isInvalid||e.validationState==="invalid"||z,j=K?"invalid":null,B=A.useMemo(()=>h==="visible"?s:Hv(s),[h,s]);var ge,U;return{isDisabled:(ge=e.isDisabled)!==null&&ge!==void 0?ge:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:se,visibleRange:{start:k,end:oe},minValue:o,maxValue:u,focusedDate:O,timeZone:S,validationState:j,isValueInvalid:K,setFocusedDate(G){ne(G),ae(!0)},focusNextDay(){ne(O.add({days:1}))},focusPreviousDay(){ne(O.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&ne(O.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&ne(O.subtract({weeks:1}))},focusNextPage(){let G=k.add(B);M(ha(O.add(B),o,u)),N(gu(sd(O,G,B,r,o,u),B,r))},focusPreviousPage(){let G=k.subtract(B);M(ha(O.subtract(B),o,u)),N(gu(sd(O,G,B,r,o,u),B,r))},focusSectionStart(){s.days?ne(k):s.weeks?ne(ed(O,r)):(s.months||s.years)&&ne(_d(O))},focusSectionEnd(){s.days?ne(oe):s.weeks?ne(cq(O,r)):(s.months||s.years)&&ne(pb(O))},focusNextSection(G){if(!G&&!s.days){ne(O.add(Hv(s)));return}s.days?this.focusNextPage():s.weeks?ne(O.add({months:1})):(s.months||s.years)&&ne(O.add({years:1}))},focusPreviousSection(G){if(!G&&!s.days){ne(O.subtract(Hv(s)));return}s.days?this.focusPreviousPage():s.weeks?ne(O.subtract({months:1})):(s.months||s.years)&&ne(O.subtract({years:1}))},selectFocusedDate(){d&&d(O)||se(O)},selectDate(G){se(G)},isFocused:F,setFocused:ae,isInvalid(G){return Wl(G,o,u)},isSelected(G){return D!=null&&ir(G,D)&&!this.isCellDisabled(G)&&!this.isCellUnavailable(G)},isCellFocused(G){return F&&O&&ir(G,O)},isCellDisabled(G){return e.isDisabled||G.compare(k)<0||G.compare(oe)>0||this.isInvalid(G)},isCellUnavailable(G){return e.isDateUnavailable?e.isDateUnavailable(G):!1},isPreviousVisibleRangeInvalid(){let G=k.subtract({days:1});return ir(G,k)||this.isInvalid(G)},isNextVisibleRangeInvalid(){let G=oe.add({days:1});return ir(G,oe)||this.isInvalid(G)},getDatesInWeek(G,Se=k){let Pe=Se.add({weeks:G}),ke=[];Pe=ed(Pe,r,m);let Ie=X4(Pe,r,m);for(let Ze=0;Ze<Ie;Ze++)ke.push(null);for(;ke.length<7;){ke.push(Pe);let Ze=Pe.add({days:1});if(ir(Pe,Ze))break;Pe=Ze}for(;ke.length<7;)ke.push(null);return ke}}}function Hv(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:s,visibleDuration:o={months:1},minValue:u,maxValue:l,...d}=e,[h,m]=wi(t,n||null,r),[g,b]=A.useState(null),$="center";if(h&&h.start&&h.end){let B=Mb(Hr(h.start),o,s,u,l).add(o).subtract({days:1});h.end.compare(B)>0&&($="start")}let w=A.useRef(null),[D,S]=A.useState(null),C=A.useMemo(()=>Q4(u,D==null?void 0:D.start),[u,D]),T=A.useMemo(()=>J4(l,D==null?void 0:D.end),[l,D]),O=HR({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:o,minValue:C,maxValue:T,selectionAlignment:$}),M=j=>{if(j&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const B=DS(j,O,-1),ge=DS(j,O,1);w.current={start:B,end:ge},S(w.current)}else w.current=null,S(null)},[k,N]=A.useState(O.visibleRange);(!hb(O.visibleRange.start,k.start)||!hb(O.visibleRange.end,k.end))&&(M(g),N(O.visibleRange));let F=j=>{j?(b(j),M(j)):(b(null),M(null))},ae=g?Gv(g,O.focusedDate):h&&Gv(h.start,h.end),oe=j=>{if(e.isReadOnly)return;const B=ha(j,C,T),ge=WR(B,O.visibleRange.start,e.isDateUnavailable);if(ge)if(!g)F(ge);else{let U=Gv(g,ge);U&&m({start:ES(U.start,h==null?void 0:h.start),end:ES(U.end,h==null?void 0:h.end)}),F(null)}},[W,we]=A.useState(!1),{isDateUnavailable:ne}=e,se=A.useMemo(()=>!h||g?!1:ne&&(ne(h.start)||ne(h.end))?!0:Wl(h.start,u,l)||Wl(h.end,u,l),[ne,h,g,u,l]),z=e.isInvalid||e.validationState==="invalid"||se;return{...O,value:h,setValue:m,anchorDate:g,setAnchorDate:F,highlightedRange:ae,validationState:z?"invalid":null,isValueInvalid:z,selectFocusedDate(){oe(O.focusedDate)},selectDate:oe,highlightDate(j){g&&O.setFocusedDate(j)},isSelected(j){return!!(ae&&j.compare(ae.start)>=0&&j.compare(ae.end)<=0&&!O.isCellDisabled(j)&&!O.isCellUnavailable(j))},isInvalid(j){var B,ge;return O.isInvalid(j)||Wl(j,(B=w.current)===null||B===void 0?void 0:B.start,(ge=w.current)===null||ge===void 0?void 0:ge.end)},isDragging:W,setDragging:we}}function Gv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Hr(e),end:Hr(t)})}function ES(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new Gr),t&&"hour"in t?t.set(e):e}function DS(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 Fb{*[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=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,i=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class gs extends Set{constructor(t,n,r){super(t),t instanceof gs?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function eG(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function tG(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,o=A.useRef(!1),[,u]=A.useState(!1),l=A.useRef(null),d=A.useRef(null),[,h]=A.useState(null),m=A.useMemo(()=>AS(e.selectedKeys),[e.selectedKeys]),g=A.useMemo(()=>AS(e.defaultSelectedKeys,new gs),[e.defaultSelectedKeys]),[b,$]=wi(m,g,e.onSelectionChange),w=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,S]=A.useState(i);i==="replace"&&D==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let C=A.useRef(i);return A.useEffect(()=>{i!==C.current&&(S(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:S,get isFocused(){return o.current},setFocused(T){o.current=T,u(T)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(T,O="first"){l.current=T,d.current=O,h(T)},selectedKeys:b,setSelectedKeys(T){(r||!eG(T,b))&&$(T)},disabledKeys:w,disabledBehavior:s}}function AS(e,t){return e?e==="all"?"all":new gs(e):t}class d3{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&&Wv(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&&Wv(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 gs([n],n,n);else{let o=this.state.selectedKeys;var i;let u=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new gs(o,u,n);var s;for(let l of this.getKeyRange(u,(s=o.currentKey)!==null&&s!==void 0?s: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?Wv(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=[],s=t;for(;s!=null;){let o=this.collection.getItem(s);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}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 gs(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 gs([n],n,n):new gs;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new gs;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var s;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((s=(i=kH(Im(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s: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 gs)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new d3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function nG(e){let{filter:t,layoutDelegate:n}=e,r=tG(e),i=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=A.useCallback(d=>t?new Fb(t(d)):new Fb(d),[t]),o=A.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=FH(e,s,o),l=A.useMemo(()=>new d3(u,r,{layoutDelegate:n}),[u,r,n]);return rG(u,l),{collection:u,disabledKeys:i,selectionManager:l}}function rG(e,t){const n=A.useRef(null);A.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(S=>{const C=n.current.getItem(S);return(C==null?void 0:C.type)==="item"?C:null}).filter(S=>S!==null),g=[...e.getKeys()].map(S=>{const C=e.getItem(S);return(C==null?void 0:C.type)==="item"?C:null}).filter(S=>S!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var s,o,u;let $=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((u=g==null?void 0:g.length)!==null&&u!==void 0?u:0)-1),w=null,D=!1;for(;$>=0;){if(!t.isDisabled(g[$].key)){w=g[$];break}if($<g.length-1&&!D)$++;else{D=!0;var l,d;$>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&($=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),$--}}t.setFocusedKey(w?w.key:null)}n.current=e},[e,t])}function iG(e){var t;let[n,r]=wi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=A.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:o,selectionManager:u}=nG({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function h3(e){let[t,n]=wi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=A.useCallback(()=>{n(!0)},[n]),i=A.useCallback(()=>{n(!1)},[n]),s=A.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function sG(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:o=!0}=e,[u,l]=A.useState(!1),[d,h]=A.useState(!1),[m,g]=A.useState(null),b=Ee=>{e.onSelectionChange&&e.onSelectionChange(Ee),Ee===S&&(ke(),G())};var $;let{collection:w,selectionManager:D,selectedKey:S,setSelectedKey:C,selectedItem:T,disabledKeys:O}=iG({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),M=e.defaultInputValue;if(M==null){var k,N;S==null?M="":M=(N=(k=w.getItem(S))===null||k===void 0?void 0:k.textValue)!==null&&N!==void 0?N:""}let[F,ae]=wi(e.inputValue,M,e.onInputChange),oe=w,W=A.useMemo(()=>e.items!=null||!n?w:oG(w,F,n),[w,F,n,e.items]),[we,ne]=A.useState(W),se=A.useRef("focus"),K=h3({...e,onOpenChange:Ee=>{e.onOpenChange&&e.onOpenChange(Ee,Ee?se.current:void 0),D.setFocused(Ee),Ee||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),j=(Ee=null,Te)=>{let He=Te==="manual"||Te==="focus"&&r==="focus";(i||W.size>0||He&&oe.size>0||e.items)&&(He&&!K.isOpen&&e.items===void 0&&l(!0),se.current=Te,g(Ee),K.open())},B=(Ee=null,Te)=>{let He=Te==="manual"||Te==="focus"&&r==="focus";!(i||W.size>0||He&&oe.size>0||e.items)&&!K.isOpen||(He&&!K.isOpen&&e.items===void 0&&l(!0),K.isOpen||(se.current=Te),U(Ee))},ge=A.useCallback(()=>{ne(u?oe:W)},[u,oe,W]),U=A.useCallback((Ee=null)=>{K.isOpen&&ge(),g(Ee),K.toggle()},[K,ge]),G=A.useCallback(()=>{K.isOpen&&(ge(),K.close())},[K,ge]),[Se,Pe]=A.useState(F),ke=()=>{var Ee,Te;let He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";Pe(He),ae(He)};var Ie,Ze;let Ge=A.useRef((Ze=(Ie=e.selectedKey)!==null&&Ie!==void 0?Ie:e.defaultSelectedKey)!==null&&Ze!==void 0?Ze:null);var De;let Ue=A.useRef(S!=null&&(De=(t=w.getItem(S))===null||t===void 0?void 0:t.textValue)!==null&&De!==void 0?De:"");A.useEffect(()=>{var Ee;d&&(W.size>0||i)&&!K.isOpen&&F!==Se&&r!=="manual"&&j(null,"input"),!u&&!i&&K.isOpen&&W.size===0&&G(),S!=null&&S!==Ge.current&&G(),F!==Se&&(D.setFocusedKey(null),l(!1),F===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),S!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?ke():Se!==F&&Pe(F);var Te;let He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";!d&&S!=null&&e.inputValue===void 0&&S===Ge.current&&Ue.current!==He&&(Pe(He),ae(He)),Ge.current=S,Ue.current=He});let _e=Fd({...e,value:A.useMemo(()=>({inputValue:F,selectedKey:S}),[F,S])}),Ve=()=>{s&&S==null?Le():nt()},Le=()=>{Ge.current=null,C(null),G()},nt=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ee,Te;(Ee=e.onSelectionChange)===null||Ee===void 0||Ee.call(e,S);var He;let et=S!=null&&(He=(Te=w.getItem(S))===null||Te===void 0?void 0:Te.textValue)!==null&&He!==void 0?He:"";Pe(et),G()}else ke(),G()};const xt=()=>{if(s){var Ee,Te;const He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";F===He?nt():Le()}else nt()};let ln=()=>{K.isOpen&&D.focusedKey!=null?S===D.focusedKey?nt():C(D.focusedKey):xt()},$t=A.useRef(F),Rt=Ee=>{Ee?($t.current=F,r==="focus"&&!e.isReadOnly&&j(null,"focus")):(o&&xt(),F!==$t.current&&_e.commitValidation()),h(Ee)},$e=A.useMemo(()=>K.isOpen?u?oe:W:we,[K.isOpen,oe,W,u,we]);return{..._e,...K,focusStrategy:m,toggle:B,open:j,close:xt,selectionManager:D,selectedKey:S,setSelectedKey:C,disabledKeys:O,isFocused:d,setFocused:Rt,selectedItem:T,collection:$e,inputValue:F,setInputValue:ae,commit:ln,revert:Ve}}function oG(e,t,n){return new Fb(GR(e,e,t,n))}function GR(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let o=GR(e,Im(s,e),n,r);[...o].some(u=>u.type==="item")&&i.push({...s,childNodes:o})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}var YR={};YR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var ZR={};ZR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var XR={};XR={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 JR={};JR={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 QR={};QR={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 eF={};eF={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var tF={};tF={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 nF={};nF={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 rF={};rF={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 iF={};iF={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 sF={};sF={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 oF={};oF={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var aF={};aF={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 uF={};uF={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 lF={};lF={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 cF={};cF={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var fF={};fF={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var dF={};dF={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 hF={};hF={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 pF={};pF={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 mF={};mF={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 gF={};gF={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 vF={};vF={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 yF={};yF={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 bF={};bF={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 $F={};$F={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var xF={};xF={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 wF={};wF={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 CF={};CF={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 SF={};SF={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 EF={};EF={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 DF={};DF={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var AF={};AF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var TF={};TF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var PF={};PF={"ar-AE":YR,"bg-BG":ZR,"cs-CZ":XR,"da-DK":JR,"de-DE":QR,"el-GR":eF,"en-US":tF,"es-ES":nF,"et-EE":rF,"fi-FI":iF,"fr-FR":sF,"he-IL":oF,"hr-HR":aF,"hu-HU":uF,"it-IT":lF,"ja-JP":cF,"ko-KR":fF,"lt-LT":dF,"lv-LV":hF,"nb-NO":pF,"nl-NL":mF,"pl-PL":gF,"pt-BR":vF,"pt-PT":yF,"ro-RO":bF,"ru-RU":$F,"sk-SK":xF,"sl-SI":wF,"sr-SP":CF,"sv-SE":SF,"tr-TR":EF,"uk-UA":DF,"zh-CN":AF,"zh-TW":TF};function aG(e){return e&&e.__esModule?e.default:e}const _F=new Ra(aG(PF));function MF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Wp(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=s||o||u,d=[];if(l){let h=MF(),m=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||_F,g=new R5(h,m),b=new Wi(h,No({},i)),$=b.resolvedOptions().timeZone;o&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),s&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),u&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function uG(e,t,n,r,i){var s;let o=Wp((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var u;let l=Wp((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=zp(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||_F;d=zp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",MF())],validationDetails:{...Rm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const lG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},cG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function No(e,t){e={...t.shouldForceLeadingZeros?cG:lG,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let o=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");o<0&&(o=0);let u=i.indexOf(r);if(u<0&&(u=2),o>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,u+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function _l(e){return e&&"hour"in e?e:new Md}function RF(e,t){if(e===null)return null;if(e)return Fn(e,t)}function mf(e,t,n,r){if(e)return RF(e,n);let i=Fn(I5(r??Pd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Hr(i):r?i:xs(i)}function p3(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,s]=A.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&s([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function fG(e){let t=h3(e),[n,r]=wi(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[s,o]=p3(i,e.granularity),u=n!=null?n.toDate(o??"UTC"):null,l=s==="hour"||s==="minute"||s==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=A.useState(null),[b,$]=A.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=A.useMemo(()=>({granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[s,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,w]),{minValue:S,maxValue:C,isDateUnavailable:T}=e,O=A.useMemo(()=>Wp(n,S,C,T,D),[n,S,C,T,D]),M=Fd({...e,value:n,builtinValidation:O}),k=M.displayValidation.isInvalid,N=e.validationState||(k?"invalid":null),F=(W,we)=>{r("timeZone"in we?we.set(Hr(W)):xs(W,we)),g(null),$(null),M.commitValidation()};return{...M,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:W=>{let we=typeof h=="function"?h():h;l?b||we?F(W,b||_l(e.defaultValue||e.placeholderValue)):g(W):(r(W),M.commitValidation()),we&&t.setOpen(!1)},setTimeValue:W=>{m&&W?F(m,W):$(W)},granularity:s,hasTime:l,...t,setOpen(W){!W&&!n&&m&&l&&F(m,b||_l(e.defaultValue||e.placeholderValue)),t.setOpen(W)},validationState:N,isInvalid:k,formatValue(W,we){if(!u)return"";let ne=No(we,D);return new Wi(W,ne).format(u)},getDateFormatter(W,we){let ne={...D,...we},se=No({},ne);return new Wi(W,se)}}}const dG=new Ra({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 hG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?dG.getStringForLocale(e,n):"––"}const dp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},TS={year:5,month:2,day:7,hour:2,minute:15,second:15},pG={dayperiod:"dayPeriod"};function FF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:o=!1,minValue:u,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=p3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=A.useMemo(()=>new Wi(t),[t]),w=A.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var D;let[S,C]=wi(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),T=A.useMemo(()=>{var De;return(De=RF(S,w))!==null&&De!==void 0?De:null},[S,w]),[O,M]=A.useState(()=>mf(e.placeholderValue,m,w,g)),k=T||O,N=w.identifier==="gregory"&&k.era==="BC",F=A.useMemo(()=>{var De;return{granularity:m,maxGranularity:(De=e.maxGranularity)!==null&&De!==void 0?De:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:N,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,N]),ae=A.useMemo(()=>No({},F),[F]),oe=A.useMemo(()=>new Wi(t,ae),[t,ae]),W=A.useMemo(()=>oe.resolvedOptions(),[oe]),we=A.useMemo(()=>oe.formatToParts(new Date).filter(De=>dp[De.type]).reduce((De,Ue)=>(De[Ue.type]=!0,De),{}),[oe]),[ne,se]=A.useState(()=>e.value||e.defaultValue?{...we}:{}),z=A.useRef(null),K=A.useRef(w.identifier);A.useEffect(()=>{w.identifier!==K.current&&(K.current=w.identifier,M(De=>Object.keys(ne).length>0?Fn(De,w):mf(e.placeholderValue,m,w,g)))},[w,m,ne,g,e.placeholderValue]),S&&Object.keys(ne).length<Object.keys(we).length&&(ne={...we},se(ne)),S==null&&Object.keys(ne).length===Object.keys(we).length&&(ne={},se(ne),M(mf(e.placeholderValue,m,w,g)));let j=T&&Object.keys(ne).length>=Object.keys(we).length?T:O,B=De=>{if(e.isDisabled||e.isReadOnly)return;let Ue=Object.keys(ne),_e=Object.keys(we);De==null?(C(null),M(mf(e.placeholderValue,m,w,g)),se({})):Ue.length>=_e.length||Ue.length===_e.length-1&&we.dayPeriod&&!ne.dayPeriod&&z.current!=="dayPeriod"?(De=Fn(De,(h==null?void 0:h.calendar)||new Gr),C(De)):M(De),z.current=null},ge=A.useMemo(()=>j.toDate(b),[j,b]),U=A.useMemo(()=>mG(ge,ne,oe,W,j,w,t,m),[ge,ne,oe,W,j,w,t,m]);we.era&&ne.year&&!ne.era?(ne.era=!0,se({...ne})):!we.era&&ne.era&&(delete ne.era,se({...ne}));let G=De=>{ne[De]=!0,De==="year"&&we.era&&(ne.era=!0),se({...ne})},Se=(De,Ue)=>{if(ne[De])B(gG(j,De,Ue,W));else{G(De);let _e=Object.keys(ne),Ve=Object.keys(we);(_e.length>=Ve.length||_e.length===Ve.length-1&&we.dayPeriod&&!ne.dayPeriod)&&B(j)}},Pe=A.useMemo(()=>Wp(S,u,l,d,F),[S,u,l,d,F]),ke=Fd({...e,value:S,builtinValidation:Pe}),Ie=ke.displayValidation.isInvalid,Ze=e.validationState||(Ie?"invalid":null);var Ge;return{...ke,value:T,dateValue:ge,calendar:w,setValue:B,segments:U,dateFormatter:oe,validationState:Ze,isInvalid:Ie,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:s,isRequired:o,increment(De){Se(De,1)},decrement(De){Se(De,-1)},incrementPage(De){Se(De,TS[De]||1)},decrementPage(De){Se(De,-(TS[De]||1))},setSegment(De,Ue){G(De),B(vG(j,De,Ue,W))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let De=Object.keys(ne),Ue=Object.keys(we);De.length===Ue.length-1&&we.dayPeriod&&!ne.dayPeriod&&(ne={...we},se(ne),B(j.copy()))},clearSegment(De){delete ne[De],z.current=De,se({...ne});let Ue=mf(e.placeholderValue,m,w,g),_e=j;if(De==="dayPeriod"&&"hour"in j&&"hour"in Ue){let Ve=j.hour>=12,Le=Ue.hour>=12;Ve&&!Le?_e=j.set({hour:j.hour-12}):!Ve&&Le&&(_e=j.set({hour:j.hour+12}))}else De==="hour"&&"hour"in j&&j.hour>=12&&ne.dayPeriod?_e=j.set({hour:Ue.hour+12}):De in j&&(_e=j.set({[De]:Ue[De]}));C(null),B(_e)},formatValue(De){if(!T)return"";let Ue=No(De,F);return new Wi(t,Ue).format(ge)},getDateFormatter(De,Ue){let _e={...F,...Ue},Ve=No({},_e);return new Wi(De,Ve)}}}function mG(e,t,n,r,i,s,o,u){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=dp[m.type];m.type==="era"&&s.getEras().length===1&&(g=!1);let b=dp[m.type]&&!t[m.type],$=dp[m.type]?hG(m.type,m.value,o):null,w={type:pG[m.type]||m.type,text:b?$:m.value,...jh(i,m.type,r),isPlaceholder:b,placeholder:$,isEditable:g};m.type==="hour"?(h.push({type:"literal",text:"",...jh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(w),m.type===u&&h.push({type:"literal",text:"",...jh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(m.type)&&m.type===u?(h.push(w),h.push({type:"literal",text:"",...jh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(w)}return h}function jh(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:uq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:lq(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 gG(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,s=i>=12;return e.set({hour:s?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 vG(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,s=i>=12;return n>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(r.hour12){let s=e.hour>=12;!s&&n===12&&(n=0),s&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function yG(e){var t,n;let r=h3(e),[i,s]=wi(e.value,e.defaultValue||null,e.onChange),[o,u]=A.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},u(o));let l=i||o,d=K=>{u(K||{start:null,end:null}),su(K)?s(K):s(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=p3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var $;let w=($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:!0,[D,S]=A.useState(null),[C,T]=A.useState(null);l&&su(l)&&(D=l,"hour"in l.start&&(C=l));let O=(K,j)=>{d({start:"timeZone"in j.start?j.start.set(Hr(K.start)):xs(K.start,j.start),end:"timeZone"in j.end?j.end.set(Hr(K.end)):xs(K.end,j.end)}),S(null),T(null),ne.commitValidation()},M=K=>{let j=typeof w=="function"?w():w;b?su(K)&&(C!=null&&C.start)&&(C!=null&&C.end)?O(K,{start:(C==null?void 0:C.start)||_l(e.placeholderValue),end:(C==null?void 0:C.end)||_l(e.placeholderValue)}):S(K):su(K)?(d(K),ne.commitValidation()):S(K),j&&r.setOpen(!1)},k=K=>{su(D)&&su(K)?O(D,K):T(K)},N=(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",F=A.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:N}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,N]),{minValue:ae,maxValue:oe,isDateUnavailable:W}=e,we=A.useMemo(()=>uG(l,ae,oe,W,F),[l,ae,oe,W,F]),ne=Fd({...e,value:i,name:A.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:we}),se=ne.displayValidation.isInvalid,z=e.validationState||(se?"invalid":null);return{...ne,value:l,setValue:d,dateRange:D,timeRange:C,granularity:m,hasTime:b,setDate(K,j){var B,ge;M(K==="start"?{start:j,end:(B=D==null?void 0:D.end)!==null&&B!==void 0?B:null}:{start:(ge=D==null?void 0:D.start)!==null&&ge!==void 0?ge:null,end:j})},setTime(K,j){var B,ge;k(K==="start"?{start:j,end:(B=C==null?void 0:C.end)!==null&&B!==void 0?B:null}:{start:(ge=C==null?void 0:C.start)!==null&&ge!==void 0?ge:null,end:j})},setDateTime(K,j){var B,ge;d(K==="start"?{start:j,end:(B=l==null?void 0:l.end)!==null&&B!==void 0?B:null}:{start:(ge=l==null?void 0:l.start)!==null&&ge!==void 0?ge:null,end:j})},setDateRange:M,setTimeRange:k,...r,setOpen(K){!K&&!(l!=null&&l.start&&(l!=null&&l.end))&&su(D)&&b&&O(D,{start:(C==null?void 0:C.start)||_l(e.placeholderValue),end:(C==null?void 0:C.end)||_l(e.placeholderValue)}),r.setOpen(K)},validationState:z,isInvalid:se,formatValue(K,j){if(!l||!l.start||!l.end)return null;let B="timeZone"in l.start?l.start.timeZone:void 0,ge=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,G=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Se=No(j,{granularity:ge,timeZone:B,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"}),Pe=l.start.toDate(B||"UTC"),ke=l.end.toDate(U||"UTC"),Ie=new Wi(K,Se),Ze;if(B===U&&ge===G&&l.start.compare(l.end)!==0){try{let Ge=Ie.formatRangeToParts(Pe,ke),De=-1;for(let Ve=0;Ve<Ge.length;Ve++){let Le=Ge[Ve];if(Le.source==="shared"&&Le.type==="literal")De=Ve;else if(Le.source==="endRange")break}let Ue="",_e="";for(let Ve=0;Ve<Ge.length;Ve++)Ve<De?Ue+=Ge[Ve].value:Ve>De&&(_e+=Ge[Ve].value);return{start:Ue,end:_e}}catch{}Ze=Ie}else{let Ge=No(j,{granularity:G,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ze=new Wi(K,Ge)}return{start:Ie.format(Pe),end:Ze.format(ke)}},getDateFormatter(K,j){let B={...F,...j},ge=No({},B);return new Wi(K,ge)}}}function su(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function bG(e){let{placeholderValue:t=new Md,minValue:n,maxValue:r,granularity:i,validate:s}=e;var o;let[u,l]=wi(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),d=u||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=A.useMemo(()=>{let T=d&&"timeZone"in d?d.timeZone:void 0;return(T||m)&&t?K5(gf(t),T||m):gf(t)},[t,d,m]),b=A.useMemo(()=>gf(n,h),[n,h]),$=A.useMemo(()=>gf(r,h),[r,h]),w=A.useMemo(()=>u&&"day"in u?BC(u):u,[u]),D=A.useMemo(()=>u==null?null:gf(u),[u]);return{...FF({...e,value:D,defaultValue:void 0,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&BC(T))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Gr,validate:A.useCallback(()=>s==null?void 0:s(u),[s,u])}),timeValue:w}}function gf(e,t=Pm(Pd())){return e?"day"in e?e:xs(t,e):null}var hp={exports:{}},$G=hp.exports,PS;function xG(){return PS||(PS=1,function(e,t){(function(n,r){e.exports=r()})($G,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",$="date",w="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(se){var z=["th","st","nd","rd"],K=se%100;return"["+se+(z[(K-20)%10]||z[K]||z[0])+"]"}},T=function(se,z,K){var j=String(se);return!j||j.length>=z?se:""+Array(z+1-j.length).join(K)+se},O={s:T,z:function(se){var z=-se.utcOffset(),K=Math.abs(z),j=Math.floor(K/60),B=K%60;return(z<=0?"+":"-")+T(j,2,"0")+":"+T(B,2,"0")},m:function se(z,K){if(z.date()<K.date())return-se(K,z);var j=12*(K.year()-z.year())+(K.month()-z.month()),B=z.clone().add(j,m),ge=K-B<0,U=z.clone().add(j+(ge?-1:1),m);return+(-(j+(K-B)/(ge?B-U:U-B))||0)},a:function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},p:function(se){return{M:m,y:b,w:h,d,D:$,h:l,m:u,s:o,ms:s,Q:g}[se]||String(se||"").toLowerCase().replace(/s$/,"")},u:function(se){return se===void 0}},M="en",k={};k[M]=C;var N="$isDayjsObject",F=function(se){return se instanceof we||!(!se||!se[N])},ae=function se(z,K,j){var B;if(!z)return M;if(typeof z=="string"){var ge=z.toLowerCase();k[ge]&&(B=ge),K&&(k[ge]=K,B=ge);var U=z.split("-");if(!B&&U.length>1)return se(U[0])}else{var G=z.name;k[G]=z,B=G}return!j&&B&&(M=B),B||!j&&M},oe=function(se,z){if(F(se))return se.clone();var K=typeof z=="object"?z:{};return K.date=se,K.args=arguments,new we(K)},W=O;W.l=ae,W.i=F,W.w=function(se,z){return oe(se,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var we=function(){function se(K){this.$L=ae(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[N]=!0}var z=se.prototype;return z.parse=function(K){this.$d=function(j){var B=j.date,ge=j.utc;if(B===null)return new Date(NaN);if(W.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(D);if(U){var G=U[2]-1||0,Se=(U[7]||"0").substring(0,3);return ge?new Date(Date.UTC(U[1],G,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Se)):new Date(U[1],G,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Se)}}return new Date(B)}(K),this.init()},z.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},z.$utils=function(){return W},z.isValid=function(){return this.$d.toString()!==w},z.isSame=function(K,j){var B=oe(K);return this.startOf(j)<=B&&B<=this.endOf(j)},z.isAfter=function(K,j){return oe(K)<this.startOf(j)},z.isBefore=function(K,j){return this.endOf(j)<oe(K)},z.$g=function(K,j,B){return W.u(K)?this[j]:this.set(B,K)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(K,j){var B=this,ge=!!W.u(j)||j,U=W.p(K),G=function(Ue,_e){var Ve=W.w(B.$u?Date.UTC(B.$y,_e,Ue):new Date(B.$y,_e,Ue),B);return ge?Ve:Ve.endOf(d)},Se=function(Ue,_e){return W.w(B.toDate()[Ue].apply(B.toDate("s"),(ge?[0,0,0,0]:[23,59,59,999]).slice(_e)),B)},Pe=this.$W,ke=this.$M,Ie=this.$D,Ze="set"+(this.$u?"UTC":"");switch(U){case b:return ge?G(1,0):G(31,11);case m:return ge?G(1,ke):G(0,ke+1);case h:var Ge=this.$locale().weekStart||0,De=(Pe<Ge?Pe+7:Pe)-Ge;return G(ge?Ie-De:Ie+(6-De),ke);case d:case $:return Se(Ze+"Hours",0);case l:return Se(Ze+"Minutes",1);case u:return Se(Ze+"Seconds",2);case o:return Se(Ze+"Milliseconds",3);default:return this.clone()}},z.endOf=function(K){return this.startOf(K,!1)},z.$set=function(K,j){var B,ge=W.p(K),U="set"+(this.$u?"UTC":""),G=(B={},B[d]=U+"Date",B[$]=U+"Date",B[m]=U+"Month",B[b]=U+"FullYear",B[l]=U+"Hours",B[u]=U+"Minutes",B[o]=U+"Seconds",B[s]=U+"Milliseconds",B)[ge],Se=ge===d?this.$D+(j-this.$W):j;if(ge===m||ge===b){var Pe=this.clone().set($,1);Pe.$d[G](Se),Pe.init(),this.$d=Pe.set($,Math.min(this.$D,Pe.daysInMonth())).$d}else G&&this.$d[G](Se);return this.init(),this},z.set=function(K,j){return this.clone().$set(K,j)},z.get=function(K){return this[W.p(K)]()},z.add=function(K,j){var B,ge=this;K=Number(K);var U=W.p(j),G=function(ke){var Ie=oe(ge);return W.w(Ie.date(Ie.date()+Math.round(ke*K)),ge)};if(U===m)return this.set(m,this.$M+K);if(U===b)return this.set(b,this.$y+K);if(U===d)return G(1);if(U===h)return G(7);var Se=(B={},B[u]=r,B[l]=i,B[o]=n,B)[U]||1,Pe=this.$d.getTime()+K*Se;return W.w(Pe,this)},z.subtract=function(K,j){return this.add(-1*K,j)},z.format=function(K){var j=this,B=this.$locale();if(!this.isValid())return B.invalidDate||w;var ge=K||"YYYY-MM-DDTHH:mm:ssZ",U=W.z(this),G=this.$H,Se=this.$m,Pe=this.$M,ke=B.weekdays,Ie=B.months,Ze=B.meridiem,Ge=function(_e,Ve,Le,nt){return _e&&(_e[Ve]||_e(j,ge))||Le[Ve].slice(0,nt)},De=function(_e){return W.s(G%12||12,_e,"0")},Ue=Ze||function(_e,Ve,Le){var nt=_e<12?"AM":"PM";return Le?nt.toLowerCase():nt};return ge.replace(S,function(_e,Ve){return Ve||function(Le){switch(Le){case"YY":return String(j.$y).slice(-2);case"YYYY":return W.s(j.$y,4,"0");case"M":return Pe+1;case"MM":return W.s(Pe+1,2,"0");case"MMM":return Ge(B.monthsShort,Pe,Ie,3);case"MMMM":return Ge(Ie,Pe);case"D":return j.$D;case"DD":return W.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Ge(B.weekdaysMin,j.$W,ke,2);case"ddd":return Ge(B.weekdaysShort,j.$W,ke,3);case"dddd":return ke[j.$W];case"H":return String(G);case"HH":return W.s(G,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return Ue(G,Se,!0);case"A":return Ue(G,Se,!1);case"m":return String(Se);case"mm":return W.s(Se,2,"0");case"s":return String(j.$s);case"ss":return W.s(j.$s,2,"0");case"SSS":return W.s(j.$ms,3,"0");case"Z":return U}return null}(_e)||U.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(K,j,B){var ge,U=this,G=W.p(j),Se=oe(K),Pe=(Se.utcOffset()-this.utcOffset())*r,ke=this-Se,Ie=function(){return W.m(U,Se)};switch(G){case b:ge=Ie()/12;break;case m:ge=Ie();break;case g:ge=Ie()/3;break;case h:ge=(ke-Pe)/6048e5;break;case d:ge=(ke-Pe)/864e5;break;case l:ge=ke/i;break;case u:ge=ke/r;break;case o:ge=ke/n;break;default:ge=ke}return B?ge:W.a(ge)},z.daysInMonth=function(){return this.endOf(m).$D},z.$locale=function(){return k[this.$L]},z.locale=function(K,j){if(!K)return this.$L;var B=this.clone(),ge=ae(K,j,!0);return ge&&(B.$L=ge),B},z.clone=function(){return W.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},se}(),ne=we.prototype;return oe.prototype=ne,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",d],["$M",m],["$y",b],["$D",$]].forEach(function(se){ne[se[1]]=function(z){return this.$g(z,se[0],se[1])}}),oe.extend=function(se,z){return se.$i||(se(z,we,oe),se.$i=!0),oe},oe.locale=ae,oe.isDayjs=F,oe.unix=function(se){return oe(1e3*se)},oe.en=k[M],oe.Ls=k,oe.p={},oe})}(hp)),hp.exports}var kF=xG();const wG=ws(kF);var Yv,_S;function OF(){if(_S)return Yv;_S=1;var e=typeof qi=="object"&&qi&&qi.Object===Object&&qi;return Yv=e,Yv}var Zv,MS;function Zo(){if(MS)return Zv;MS=1;var e=OF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Zv=n,Zv}var Xv,RS;function Lm(){if(RS)return Xv;RS=1;var e=Zo(),t=e.Symbol;return Xv=t,Xv}var Jv,FS;function CG(){if(FS)return Jv;FS=1;var e=Lm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(o){var u=n.call(o,i),l=o[i];try{o[i]=void 0;var d=!0}catch{}var h=r.call(o);return d&&(u?o[i]=l:delete o[i]),h}return Jv=s,Jv}var Qv,kS;function SG(){if(kS)return Qv;kS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Qv=n,Qv}var ey,OS;function xc(){if(OS)return ey;OS=1;var e=Lm(),t=CG(),n=SG(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:r:s&&s in Object(u)?t(u):n(u)}return ey=o,ey}var ty,IS;function wc(){if(IS)return ty;IS=1;function e(t){return t!=null&&typeof t=="object"}return ty=e,ty}var ny,LS;function EG(){if(LS)return ny;LS=1;var e=xc(),t=wc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ny=r,ny}var DG=EG();const AG=ws(DG);var Vu=[["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"]],TG="react-international-phone-",IF=(...e)=>e.filter(t=>!!t).join(" ").trim(),PG=(...e)=>IF(...e).split(" ").map(t=>`${TG}${t}`).join(" "),_r=({addPrefix:e,rawClassNames:t})=>IF(PG(...e),...t),_G=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),o=e.slice(r),u=s,l=0;for(let d of t.split("")){if(l>=o.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=o[l],l+=1):u+=d}return u},Al=e=>e?/^\d+$/.test(e):!1,Bm=e=>e.replace(/\D/g,""),MG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=i.top-r.top,o=r.bottom-i.bottom;s>=0&&o>=0||(Math.abs(s)<Math.abs(o)?e.scrollTop+=s:e.scrollTop-=o),e.style.display=n},RG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),FG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,s=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):s(i);if(i=Bm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return s(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return s(`${t.prefix}${i}`)}let o=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:u,phoneRightSide:l}=o();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=_G({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),s(`${u}${l}`)},kG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(Al(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(Al(n[h]))return h;return t.length}let u=0;for(let h=0;h<o;h+=1)Al(t[h])&&(u+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,Al(n[h])&&(d+=1),!(d>=u+1));h+=1);if(s!=="backward")for(;!Al(n[l])&&l<n.length;)l+=1;return l},pp=({phone:e,prefix:t})=>e?`${t}${Bm(e)}`:"";function kb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?UG({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,w=FG(g,{prefix:s,mask:jG({phone:g,country:$,defaultMask:d,disableFormatting:m}),maskChar:LF,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:pp({phone:l?`${D.dialCode}${w}`:w,prefix:s}),inputValue:w,country:D}}var OG=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},IG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=OG(b),w=!!(b!=null&&b.startsWith("insertFrom")),D=b==="insertText",S=(g==null?void 0:g.data)||void 0,C=e.target.value,T=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:pp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!Al(S)&&C!==i)return{inputValue:r,phone:pp({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:T-((S==null?void 0:S.length)??0),country:t};if(o&&!C.startsWith(`${i}${t.dialCode}`)&&!w){let F=C?r:`${i}${t.dialCode}${s}`;return{inputValue:F,phone:pp({phone:F,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:O,inputValue:M,country:k}=kb({value:C,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:u,disableFormatting:h,defaultMask:d}),N=kG({cursorPositionAfterInput:T,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:M,leftOffset:o?i.length+t.dialCode.length+s.length:0,deletion:$});return{phone:O,inputValue:M,cursorPosition:N,country:k}},LG=(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},BG=()=>{let e=A.useRef(),t=A.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}}},VG={size:20,overrideLastItemDebounceMS:-1};function NG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...VG,...t},[s,o]=A.useState(e),[u,l]=A.useState([s]),[d,h]=A.useState(0),m=BG();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&LG(g,s)||g===s)return;let $=r>0,w=m.check(),D=$&&w!==void 0?w>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!D)l(S=>[...S.slice(0,d),g]);else{let S=u.length>=n;l(C=>[...C.slice(S?1:0,d+1),g]),S||h(C=>C+1)}o(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=u[d-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=u.length)return{success:!1};let g=u[d+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var LF=".",Oi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Vu},BF=({defaultCountry:e=Oi.defaultCountry,value:t=Oi.value,countries:n=Oi.countries,prefix:r=Oi.prefix,defaultMask:i=Oi.defaultMask,charAfterDialCode:s=Oi.charAfterDialCode,historySaveDebounceMS:o=Oi.historySaveDebounceMS,disableCountryGuess:u=Oi.disableCountryGuess,disableDialCodePrefill:l=Oi.disableDialCodePrefill,forceDialCode:d=Oi.forceDialCode,disableDialCodeAndPrefix:h=Oi.disableDialCodeAndPrefix,disableFormatting:m=Oi.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:m},w=A.useRef(null),D=b||w,S=se=>{Promise.resolve().then(()=>{var z;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((z=D.current)==null||z.setSelectionRange(se,se))})},[{phone:C,inputValue:T,country:O},M,k,N]=NG(()=>{let se=Ml({value:e,field:"iso2",countries:n});se||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let z=se||Ml({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:j,country:B}=kb({value:t,country:z,insertDialCodeOnEmpty:!l,...$});return S(j.length),{phone:K,inputValue:j,country:B.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:se,phone:z,country:K})=>{if(!g)return;let j=F(K);g({phone:z,inputValue:se,country:j})}}),F=A.useCallback(se=>Ml({value:se,field:"iso2",countries:n}),[n]),ae=A.useMemo(()=>F(O),[O,F]);A.useEffect(()=>{let se=D.current;if(!se)return;let z=K=>{if(!K.key)return;let j=K.ctrlKey,B=K.metaKey,ge=K.shiftKey;if(K.key.toLowerCase()==="z"){if(RG()){if(!B)return}else if(!j)return;ge?N():k()}};return se.addEventListener("keydown",z),()=>{se.removeEventListener("keydown",z)}},[D,k,N]);let oe=se=>{se.preventDefault();let{phone:z,inputValue:K,country:j,cursorPosition:B}=IG(se,{country:ae,phoneBeforeInput:T,insertDialCodeOnEmpty:!1,...$});return M({inputValue:K,phone:z,country:j.iso2}),S(B),t},W=(se,z={focusOnInput:!1})=>{let K=Ml({value:se,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${se}" iso2 code`);return}let j=h?"":`${r}${K.dialCode}${s}`;M({inputValue:j,phone:`${r}${K.dialCode}`,country:K.iso2}),z.focusOnInput&&Promise.resolve().then(()=>{var B;(B=D.current)==null||B.focus()})},[we,ne]=A.useState(!1);return A.useEffect(()=>{if(!we){ne(!0),t!==C&&(g==null||g({inputValue:T,phone:C,country:ae}));return}if(t===C)return;let{phone:se,inputValue:z,country:K}=kb({value:t,country:ae,insertDialCodeOnEmpty:!l,...$});M({phone:se,inputValue:z,country:K.iso2})},[t]),{phone:C,inputValue:T,country:ae,setCountry:W,handlePhoneValueChange:oe,inputRef:D}},jG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=u=>r?u.replace(new RegExp(`[^${LF}]`,"g"),""):u;if(!i)return s(n);if(typeof i=="string")return s(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),s(n);let o=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)),d=e.replace(t.dialCode,"");return l.test(Bm(d))});return s(o?i[o]:i.default)},vs=e=>{let[t,n,r,i,s,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:o}},KG=e=>`Field "${e}" is not supported`,Ml=({field:e,value:t,countries:n=Vu})=>{if(["priority"].includes(e))throw new Error(KG(e));let r=n.find(i=>{let s=vs(i);return t===s[e]});if(r)return vs(r)},UG=({phone:e,countries:t=Vu,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Bm(e);if(!i)return r;let s=r,o=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=s.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=s.country)==null?void 0:b.priority)??0);(!h||m)&&(s={country:l,fullDialCodeMatch:d})};for(let l of t){let d=vs(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=s.country?Number(h)>=Number(s.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let $ of m)if(b.startsWith($))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!s.fullDialCodeMatch)&&o({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&o({country:d,fullDialCodeMatch:!1})}if(n){let l=Ml({value:n,field:"iso2",countries:t});if(!l)return s;let d=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;s&&((u=s.country)==null?void 0:u.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},zG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},qG="abcdefghijklmnopqrstuvwxyz",WG="1f1e6",BS=qG.split("").reduce((e,t,n)=>({...e,[t]:zG(WG,n)}),{}),HG=e=>[BS[e[0]],BS[e[1]]].join("-"),m3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:o,...u})=>{if(!e)return A.createElement("img",{className:_r({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...u});let l=()=>{if(n)return n;let d=HG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return A.createElement("img",{className:_r({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...u})},GG=1e3,YG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Vu,preferredCountries:i=[],flags:s,onSelect:o,onClose:u,...l})=>{let d=A.useRef(null),h=A.useRef(),m=A.useMemo(()=>{if(!i||!i.length)return r;let k=[],N=[...r];for(let F of i){let ae=N.findIndex(oe=>vs(oe).iso2===F);if(ae!==-1){let oe=N.splice(ae,1)[0];k.push(oe)}}return k.concat(N)},[r,i]),g=A.useRef({updatedAt:void 0,value:""}),b=k=>{let N=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>GG;g.current={value:N?k:`${g.current.value}${k}`,updatedAt:new Date};let F=m.findIndex(ae=>vs(ae).name.toLowerCase().startsWith(g.current.value));F!==-1&&D(F)},$=A.useCallback(k=>m.findIndex(N=>vs(N).iso2===k),[m]),[w,D]=A.useState($(n)),S=()=>{h.current!==n&&D($(n))},C=A.useCallback(k=>{D($(k.iso2)),o==null||o(k)},[o,$]),T=k=>{let N=m.length-1,F=ae=>k==="prev"?ae-1:k==="next"?ae+1:k==="last"?N:0;D(ae=>{let oe=F(ae);return oe<0?0:oe>N?N:oe})},O=k=>{if(k.stopPropagation(),k.key==="Enter"){k.preventDefault();let N=vs(m[w]);C(N);return}if(k.key==="Escape"){u==null||u();return}if(k.key==="ArrowUp"){k.preventDefault(),T("prev");return}if(k.key==="ArrowDown"){k.preventDefault(),T("next");return}if(k.key==="PageUp"){k.preventDefault(),T("first");return}if(k.key==="PageDown"){k.preventDefault(),T("last");return}k.key===" "&&k.preventDefault(),k.key.length===1&&!k.altKey&&!k.ctrlKey&&!k.metaKey&&b(k.key.toLocaleLowerCase())},M=A.useCallback(()=>{if(!d.current||w===void 0)return;let k=vs(m[w]).iso2;if(k===h.current)return;let N=d.current.querySelector(`[data-country="${k}"]`);N&&(MG(d.current,N),h.current=k)},[w,m]);return A.useEffect(()=>{M()},[w,M]),A.useEffect(()=>{d.current&&(e?d.current.focus():S())},[e]),A.useEffect(()=>{S()},[n]),A.createElement("ul",{ref:d,role:"listbox",className:_r({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:O,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${vs(m[w]).iso2}-option`},m.map((k,N)=>{let F=vs(k),ae=F.iso2===n,oe=N===w,W=i.includes(F.iso2),we=N===i.length-1,ne=s==null?void 0:s.find(se=>se.iso2===F.iso2);return A.createElement(A.Fragment,{key:F.iso2},A.createElement("li",{"data-country":F.iso2,role:"option","aria-selected":ae,"aria-label":`${F.name} ${t}${F.dialCode}`,id:`react-international-phone__${F.iso2}-option`,className:_r({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",ae&&"country-selector-dropdown__list-item--selected",oe&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>C(F),style:l.listItemStyle,title:F.name},A.createElement(m3,{iso2:F.iso2,src:ne==null?void 0:ne.src,className:_r({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),A.createElement("span",{className:_r({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},F.name),A.createElement("span",{className:_r({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,F.dialCode)),we?A.createElement("hr",{className:_r({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},ZG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Vu,preferredCountries:s=[],flags:o,renderButtonWrapper:u,...l})=>{let[d,h]=A.useState(!1),m=A.useMemo(()=>{if(e)return Ml({value:e,field:"iso2",countries:i})},[i,e]),g=A.useRef(null),b=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),h(!0))},$=()=>{var S;let w={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},D=A.createElement("div",{className:_r({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},A.createElement(m3,{iso2:e,src:(S=o==null?void 0:o.find(C=>C.iso2===e))==null?void 0:S.src,className:_r({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&A.createElement("div",{className:_r({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:w}):A.createElement("button",{...w,type:"button",className:_r({addPrefix:["country-selector-button",d&&"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 A.createElement("div",{className:_r({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),A.createElement(YG,{show:d,countries:i,preferredCountries:s,flags:o,onSelect:w=>{h(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},XG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>A.createElement("div",{className:_r({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);A.forwardRef(({value:e,onChange:t,countries:n=Vu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:o,flags:u,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:w,disabled:D,name:S,onFocus:C,onBlur:T,required:O,autoFocus:M,...k},N)=>{let{phone:F,inputValue:ae,inputRef:oe,country:W,setCountry:we,handlePhoneValueChange:ne}=BF({value:e,countries:n,...k,onChange:z=>{t==null||t(z.phone,{country:z.country,inputValue:z.inputValue})}}),se=k.disableDialCodeAndPrefix&&s&&(W==null?void 0:W.dialCode);return A.useImperativeHandle(N,()=>oe.current?Object.assign(oe.current,{setCountry:we,state:{phone:F,inputValue:ae,country:W}}):null,[oe,we,F,ae,W]),A.createElement("div",{ref:N,className:_r({addPrefix:["input-container"],rawClassNames:[d]}),style:l},A.createElement(ZG,{onSelect:z=>we(z.iso2,{focusOnInput:!o}),flags:u,selectedCountry:W.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...g}),se&&A.createElement(XG,{dialCode:W.dialCode,prefix:k.prefix??"+",disabled:D,...b}),A.createElement("input",{onChange:ne,value:ae,type:"tel",ref:oe,className:_r({addPrefix:["input",D&&"input--disabled"],rawClassNames:[m]}),placeholder:w,disabled:D,style:h,name:S,onFocus:C,onBlur:T,autoFocus:M,required:O,...$}))});var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ob={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",u="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",$="[object Object]",w="[object Promise]",D="[object RegExp]",S="[object Set]",C="[object String]",T="[object Symbol]",O="[object WeakMap]",M="[object ArrayBuffer]",k="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",ae="[object Int8Array]",oe="[object Int16Array]",W="[object Int32Array]",we="[object Uint8Array]",ne="[object Uint8ClampedArray]",se="[object Uint16Array]",z="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,j=/\w*$/,B=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,U={};U[s]=U[o]=U[M]=U[k]=U[u]=U[l]=U[N]=U[F]=U[ae]=U[oe]=U[W]=U[g]=U[b]=U[$]=U[D]=U[S]=U[C]=U[T]=U[we]=U[ne]=U[se]=U[z]=!0,U[d]=U[h]=U[O]=!1;var G=typeof xa=="object"&&xa&&xa.Object===Object&&xa,Se=typeof self=="object"&&self&&self.Object===Object&&self,Pe=G||Se||Function("return this")(),ke=t&&!t.nodeType&&t,Ie=ke&&!0&&e&&!e.nodeType&&e,Ze=Ie&&Ie.exports===ke;function Ge(ue,Me){return ue.set(Me[0],Me[1]),ue}function De(ue,Me){return ue.add(Me),ue}function Ue(ue,Me){for(var qe=-1,pt=ue?ue.length:0;++qe<pt&&Me(ue[qe],qe,ue)!==!1;);return ue}function _e(ue,Me){for(var qe=-1,pt=Me.length,$n=ue.length;++qe<pt;)ue[$n+qe]=Me[qe];return ue}function Ve(ue,Me,qe,pt){for(var $n=-1,nr=ue?ue.length:0;++$n<nr;)qe=Me(qe,ue[$n],$n,ue);return qe}function Le(ue,Me){for(var qe=-1,pt=Array(ue);++qe<ue;)pt[qe]=Me(qe);return pt}function nt(ue,Me){return ue==null?void 0:ue[Me]}function xt(ue){var Me=!1;if(ue!=null&&typeof ue.toString!="function")try{Me=!!(ue+"")}catch{}return Me}function ln(ue){var Me=-1,qe=Array(ue.size);return ue.forEach(function(pt,$n){qe[++Me]=[$n,pt]}),qe}function $t(ue,Me){return function(qe){return ue(Me(qe))}}function Rt(ue){var Me=-1,qe=Array(ue.size);return ue.forEach(function(pt){qe[++Me]=pt}),qe}var $e=Array.prototype,Ee=Function.prototype,Te=Object.prototype,He=Pe["__core-js_shared__"],et=function(){var ue=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||"");return ue?"Symbol(src)_1."+ue:""}(),Je=Ee.toString,lt=Te.hasOwnProperty,bt=Te.toString,gn=RegExp("^"+Je.call(lt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=Ze?Pe.Buffer:void 0,Ut=Pe.Symbol,Yr=Pe.Uint8Array,Fr=$t(Object.getPrototypeOf,Object),rn=Object.create,Pt=Te.propertyIsEnumerable,Lt=$e.splice,Yt=Object.getOwnPropertySymbols,sr=Jt?Jt.isBuffer:void 0,Qi=$t(Object.keys,Object),es=hi(Pe,"DataView"),Ci=hi(Pe,"Map"),Ds=hi(Pe,"Promise"),ka=hi(Pe,"Set"),yt=hi(Pe,"WeakMap"),ci=hi(Object,"create"),ao=Ir(es),kc=Ir(Ci),qu=Ir(Ds),Oc=Ir(ka),Wu=Ir(yt),Oa=Ut?Ut.prototype:void 0,Hu=Oa?Oa.valueOf:void 0;function ts(ue){var Me=-1,qe=ue?ue.length:0;for(this.clear();++Me<qe;){var pt=ue[Me];this.set(pt[0],pt[1])}}function ns(){this.__data__=ci?ci(null):{}}function vt(ue){return this.has(ue)&&delete this.__data__[ue]}function En(ue){var Me=this.__data__;if(ci){var qe=Me[ue];return qe===r?void 0:qe}return lt.call(Me,ue)?Me[ue]:void 0}function uo(ue){var Me=this.__data__;return ci?Me[ue]!==void 0:lt.call(Me,ue)}function Gu(ue,Me){var qe=this.__data__;return qe[ue]=ci&&Me===void 0?r:Me,this}ts.prototype.clear=ns,ts.prototype.delete=vt,ts.prototype.get=En,ts.prototype.has=uo,ts.prototype.set=Gu;function wr(ue){var Me=-1,qe=ue?ue.length:0;for(this.clear();++Me<qe;){var pt=ue[Me];this.set(pt[0],pt[1])}}function Yu(){this.__data__=[]}function Zu(ue){var Me=this.__data__,qe=lo(Me,ue);if(qe<0)return!1;var pt=Me.length-1;return qe==pt?Me.pop():Lt.call(Me,qe,1),!0}function Ic(ue){var Me=this.__data__,qe=lo(Me,ue);return qe<0?void 0:Me[qe][1]}function Zr(ue){return lo(this.__data__,ue)>-1}function st(ue,Me){var qe=this.__data__,pt=lo(qe,ue);return pt<0?qe.push([ue,Me]):qe[pt][1]=Me,this}wr.prototype.clear=Yu,wr.prototype.delete=Zu,wr.prototype.get=Ic,wr.prototype.has=Zr,wr.prototype.set=st;function dn(ue){var Me=-1,qe=ue?ue.length:0;for(this.clear();++Me<qe;){var pt=ue[Me];this.set(pt[0],pt[1])}}function rs(){this.__data__={hash:new ts,map:new(Ci||wr),string:new ts}}function fi(ue){return Si(this,ue).delete(ue)}function Zn(ue){return Si(this,ue).get(ue)}function Ia(ue){return Si(this,ue).has(ue)}function As(ue,Me){return Si(this,ue).set(ue,Me),this}dn.prototype.clear=rs,dn.prototype.delete=fi,dn.prototype.get=Zn,dn.prototype.has=Ia,dn.prototype.set=As;function di(ue){this.__data__=new wr(ue)}function On(){this.__data__=new wr}function Jo(ue){return this.__data__.delete(ue)}function jt(ue){return this.__data__.get(ue)}function Lc(ue){return this.__data__.has(ue)}function Xu(ue,Me){var qe=this.__data__;if(qe instanceof wr){var pt=qe.__data__;if(!Ci||pt.length<n-1)return pt.push([ue,Me]),this;qe=this.__data__=new dn(pt)}return qe.set(ue,Me),this}di.prototype.clear=On,di.prototype.delete=Jo,di.prototype.get=jt,di.prototype.has=Lc,di.prototype.set=Xu;function Bc(ue,Me){var qe=mo(ue)||_s(ue)?Le(ue.length,String):[],pt=qe.length,$n=!!pt;for(var nr in ue)lt.call(ue,nr)&&!($n&&(nr=="length"||Ka(nr,pt)))&&qe.push(nr);return qe}function La(ue,Me,qe){var pt=ue[Me];(!(lt.call(ue,Me)&&Ps(pt,qe))||qe===void 0&&!(Me in ue))&&(ue[Me]=qe)}function lo(ue,Me){for(var qe=ue.length;qe--;)if(Ps(ue[qe][0],Me))return qe;return-1}function Ju(ue,Me){return ue&&vr(Me,yo(Me),ue)}function Ba(ue,Me,qe,pt,$n,nr,ar){var Nn;if(pt&&(Nn=nr?pt(ue,$n,nr,ar):pt(ue)),Nn!==void 0)return Nn;if(!vo(ue))return ue;var Dn=mo(ue);if(Dn){if(Nn=ja(ue),!Me)return Qo(ue,Nn)}else{var Di=Ei(ue),Ai=Di==h||Di==m;if(ea(ue))return Na(ue,Me);if(Di==$||Di==s||Ai&&!nr){if(xt(ue))return nr?ue:{};if(Nn=nl(Ai?{}:ue),!Me)return fo(ue,Ju(Nn,ue))}else{if(!U[Di])return nr?ue:{};Nn=vn(ue,Di,Ba,Me)}}ar||(ar=new di);var qa=ar.get(ue);if(qa)return qa;if(ar.set(ue,Nn),!Dn)var ta=qe?ho(ue):yo(ue);return Ue(ta||ue,function(ur,bo){ta&&(bo=ur,ur=ue[bo]),La(Nn,bo,Ba(ur,Me,qe,pt,bo,ue,ar))}),Nn}function Vc(ue){return vo(ue)?rn(ue):{}}function Nc(ue,Me,qe){var pt=Me(ue);return mo(ue)?pt:_e(pt,qe(ue))}function jc(ue){return bt.call(ue)}function Qu(ue){if(!vo(ue)||Ua(ue))return!1;var Me=il(ue)||xt(ue)?gn:B;return Me.test(Ir(ue))}function Va(ue){if(!rl(ue))return Qi(ue);var Me=[];for(var qe in Object(ue))lt.call(ue,qe)&&qe!="constructor"&&Me.push(qe);return Me}function Na(ue,Me){if(Me)return ue.slice();var qe=new ue.constructor(ue.length);return ue.copy(qe),qe}function co(ue){var Me=new ue.constructor(ue.byteLength);return new Yr(Me).set(new Yr(ue)),Me}function el(ue,Me){var qe=Me?co(ue.buffer):ue.buffer;return new ue.constructor(qe,ue.byteOffset,ue.byteLength)}function tl(ue,Me,qe){var pt=Me?qe(ln(ue),!0):ln(ue);return Ve(pt,Ge,new ue.constructor)}function kr(ue){var Me=new ue.constructor(ue.source,j.exec(ue));return Me.lastIndex=ue.lastIndex,Me}function gr(ue,Me,qe){var pt=Me?qe(Rt(ue),!0):Rt(ue);return Ve(pt,De,new ue.constructor)}function Or(ue){return Hu?Object(Hu.call(ue)):{}}function Ts(ue,Me){var qe=Me?co(ue.buffer):ue.buffer;return new ue.constructor(qe,ue.byteOffset,ue.length)}function Qo(ue,Me){var qe=-1,pt=ue.length;for(Me||(Me=Array(pt));++qe<pt;)Me[qe]=ue[qe];return Me}function vr(ue,Me,qe,pt){qe||(qe={});for(var $n=-1,nr=Me.length;++$n<nr;){var ar=Me[$n],Nn=void 0;La(qe,ar,Nn===void 0?ue[ar]:Nn)}return qe}function fo(ue,Me){return vr(ue,or(ue),Me)}function ho(ue){return Nc(ue,yo,or)}function Si(ue,Me){var qe=ue.__data__;return po(Me)?qe[typeof Me=="string"?"string":"hash"]:qe.map}function hi(ue,Me){var qe=nt(ue,Me);return Qu(qe)?qe:void 0}var or=Yt?$t(Yt,Object):Wt,Ei=jc;(es&&Ei(new es(new ArrayBuffer(1)))!=k||Ci&&Ei(new Ci)!=g||Ds&&Ei(Ds.resolve())!=w||ka&&Ei(new ka)!=S||yt&&Ei(new yt)!=O)&&(Ei=function(ue){var Me=bt.call(ue),qe=Me==$?ue.constructor:void 0,pt=qe?Ir(qe):void 0;if(pt)switch(pt){case ao:return k;case kc:return g;case qu:return w;case Oc:return S;case Wu:return O}return Me});function ja(ue){var Me=ue.length,qe=ue.constructor(Me);return Me&&typeof ue[0]=="string"&<.call(ue,"index")&&(qe.index=ue.index,qe.input=ue.input),qe}function nl(ue){return typeof ue.constructor=="function"&&!rl(ue)?Vc(Fr(ue)):{}}function vn(ue,Me,qe,pt){var $n=ue.constructor;switch(Me){case M:return co(ue);case u:case l:return new $n(+ue);case k:return el(ue,pt);case N:case F:case ae:case oe:case W:case we:case ne:case se:case z:return Ts(ue,pt);case g:return tl(ue,pt,qe);case b:case C:return new $n(ue);case D:return kr(ue);case S:return gr(ue,pt,qe);case T:return Or(ue)}}function Ka(ue,Me){return Me=Me??i,!!Me&&(typeof ue=="number"||ge.test(ue))&&ue>-1&&ue%1==0&&ue<Me}function po(ue){var Me=typeof ue;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?ue!=="__proto__":ue===null}function Ua(ue){return!!et&&et in ue}function rl(ue){var Me=ue&&ue.constructor,qe=typeof Me=="function"&&Me.prototype||Te;return ue===qe}function Ir(ue){if(ue!=null){try{return Je.call(ue)}catch{}try{return ue+""}catch{}}return""}function za(ue){return Ba(ue,!0,!0)}function Ps(ue,Me){return ue===Me||ue!==ue&&Me!==Me}function _s(ue){return go(ue)&<.call(ue,"callee")&&(!Pt.call(ue,"callee")||bt.call(ue)==s)}var mo=Array.isArray;function is(ue){return ue!=null&&Kc(ue.length)&&!il(ue)}function go(ue){return Uc(ue)&&is(ue)}var ea=sr||Qt;function il(ue){var Me=vo(ue)?bt.call(ue):"";return Me==h||Me==m}function Kc(ue){return typeof ue=="number"&&ue>-1&&ue%1==0&&ue<=i}function vo(ue){var Me=typeof ue;return!!ue&&(Me=="object"||Me=="function")}function Uc(ue){return!!ue&&typeof ue=="object"}function yo(ue){return is(ue)?Bc(ue):Va(ue)}function Wt(){return[]}function Qt(){return!1}e.exports=za})(Ob,Ob.exports);var wa=Ob.exports,Ib=function(){return Ib=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ib.apply(this,arguments)};function JG(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function u(h){try{d(r.next(h))}catch(m){o(m)}}function l(h){try{d(r.throw(h))}catch(m){o(m)}}function d(h){h.done?s(h.value):i(h.value).then(u,l)}d((r=r.apply(e,[])).next())})}function QG(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(s=d[0]&2?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Hp(e,t,n,r,i){return JG(this,void 0,void 0,function(){var s,o;return QG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];o=0,u.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(s=u.sent(),s==="canceled")return[3,4];u.label=3;case 3:return o++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Lb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Ib({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},eY=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=wa(n);Hp(t,o,r,this.htmlPluginState,i).then(function(u){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Lb(i,u);s.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=wa(t);Hp(this.imgElement,s,n,this.htmlPluginState).then(function(o){if(i.isMounted){var u=Lb(r,o);i.imgElement.setAttribute("src",s.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let kn=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},tY=class extends Error{constructor(t="Unsupported"){super(t)}};function g3(e){return new tY(e)}function nY(){return this._qualifierModel||{error:g3(`unsupported qualifier ${this.constructor.name}`)}}let rY=class{constructor(){this._qualifierModel={}}toJson(){return nY.apply(this)}},kt=class extends rY{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof kn?this.qualifierValue=n:(this.qualifierValue=new kn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Gi=class extends kt{constructor(t,n){let r;n?r=new kn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function iY(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function sY(){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:g3(`unsupported action ${this.constructor.name}`)}}let oY=class{constructor(){this._actionModel={}}toJson(){return sY.apply(this)}},Cs=class extends oY{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(),iY(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 Gi(r)):this.qualifiers.set(n,new kt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Gi(t)):t instanceof Gi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class v3 extends Cs{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Vm extends v3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new kt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new kt("h",t)),this}static fromJson(t){const n=new Vm;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 aY(){return new Vm}function VF(){return new v3("faces")}function uY(){return new v3("ocr_text")}class lY extends Cs{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 kt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new kt("e",`blur_region${t}`)),this.addQualifier(new kt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new kt("e",`blur_faces${t}`))):this.addQualifier(new kt("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(VF()),r&&r.regionType==="ocr_text"&&i.region(uY()),r&&r.regionType==="custom"&&i.region(Vm.fromJson(r)),i}}function Nu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const NF={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},cY={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},jF={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},KF={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},fY={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},UF={444:"CHROMA_444",420:"CHROMA_420"},dY={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},hY=Nu(UF);Nu(dY);const pY=Nu(NF),mY=Nu(cY),zF=Nu(jF);Nu(KF);Nu(fY);class qF extends Cs{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=zF[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new kn([t,`${n}`]).setDelimiter(":"):r=new kn(t),new kt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=jF[n]||n;return new this(s,r||i)}}class gY extends qF{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=zF[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 Nm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class vY extends Cs{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new kn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new kn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new kn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new kn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new kn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new kt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:o,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),o&&l.detailsLevel(o),u&&l.numOfColors(u),l}}class yY extends gY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class bY extends Cs{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new kt("e",new kn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new kt("e",new kn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new kt("e",new kn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,s=new this;return r==="xray"&&s.xray(),r==="stripes"&&i&&s.stripesStrength(i),s}}class $Y extends yY{color(t){return this._actionModel.color=t,this.addQualifier(new kt("co",new kn(Nm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class xY extends Cs{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 kt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new kt("e",`pixelate_region${t}`)),this.addQualifier(new kt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new kt("e",`pixelate_faces${t}`))):this.addQualifier(new kt("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(VF()),n&&n.regionType==="custom"&&i.region(aY()),i}}const wY=e=>AY(encodeURIComponent,EY,DY)(e),CY=/[!'()*~_.-]/g,SY={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},EY=e=>e.replace(CY,t=>{var n;return(n=SY[t])!==null&&n!==void 0?n:t}),DY=e=>e.replace(/%20/g," "),AY=(...e)=>t=>e.reduce((n,r)=>r(n),t);function TY(e){return new lY(e)}function PY(){return new qF("grayscale")}function VS(e){return new $Y("colorize",e)}function _Y(){return new vY}function MY(){return new bY}function RY(e){return new xY(e)}let FY=class extends Cs{constructor(t){super(),this._actionModel={},this.addQualifier(new kt("b",new kn(Nm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},NS=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:g3(`unsupported action ${this.constructor.name}`)}}};function kY(e){const t=e;return"error"in t&&!!t.error}function OY(){return new Gi("ignore_aspect_ratio")}function IY(){return new Gi("lossy")}function LY(){return new Gi("preserve_transparency")}function BY(e){return new Gi("progressive",e)}function VY(){return new Gi("region_relative")}function NY(){return new Gi("relative")}let y3=class extends kn{constructor(t){super(t),this.val=t}getValue(){return this.val}},WF=class extends Cs{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof y3?i=n.getValue():i=n,this._actionModel.actionType=mY[t],this._actionModel[r]=i,this.addQualifier(new kt(t,n))}},jY=class extends Gi{constructor(t){super("progressive",t)}},Bb=class extends WF{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(IY()),this}progressive(t){return t instanceof jY?(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(LY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}},jm=class HF{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 NS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof HF?this.actions=this.actions.concat(t.actions):this.actions.push(new NS(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 Bb("q",t)),this}format(t){return this.addAction(new Bb("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 FY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Cs;let r=t;return typeof t=="string"&&(r=new Gi(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(kY(r))return r;t.push(r)}return{actions:t}}};function jS(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 KY extends kn{}class UY extends Cs{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=pY[t]||t,this.addQualifier(new kt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new kt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new kt("w",t))}aspectRatio(t){if(t instanceof KY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new kt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=jS(t),this.addQualifier(new kt("ar",jS(t)));if(t instanceof Gi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(NY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(VY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:o,width:u,height:l}=r,d=NF[n]||n,h=new this(d,u,l);return o&&h.aspectRatio(o==="ignore_aspect_ratio"?OY():o),i&&h.relative(),s&&h.regionRelative(),h}}class b3 extends kt{constructor(t){super("g",new kn(t))}}class GF extends b3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class YF extends b3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class ZF extends b3{constructor(t){super(t)}}function zY(e){return new ZF(e)}function XF(...e){const t=[...e];return new YF(t)}function JF(){return new GF}class oc extends kn{constructor(t){super(),this.name=t}toString(){return this.name}}function qY(){return new oc("ocr_text")}function WY(e){return e&&`${e}`.split(":")[0]==="auto"}function HY(e){const t=$3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function $3(e){return`${e}`.replace("g_","")}function GY(e){return{compass:$3(e),gravityType:"direction"}}function YY(e){return $3(e)==="ocr_text"}function ZY(){return{gravityType:"ocr"}}function XY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function JY(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 QF(e){let t;const n=e==="auto"?new GF: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(JY)}}function QY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(s=>`${s}`)};if(t){const s=n[n.length-1].values.slice(1),o=JF().autoFocus(...s);i.fallbackGravity=QF(o)}return i}function eZ(e){const n=e.split(":").map(r=>new oc(r));return new YF(n)}function tZ(e){return HY(e)?GY(e):YY(e)?ZY():WY(e)||XY(e)?QF(e):QY(typeof e=="string"?eZ(e):e)}class x3 extends kn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof oc?t:new oc(t);return new x3(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 e7 extends kn{constructor(t){super(),this.val=t}toString(){return this.val}}function nZ(e){return e.gravityType==="direction"}function rZ(e){return e.gravityType==="ocr"}function iZ(e){return e.gravityType==="auto"}function sZ(e){const{object:t,weight:n,avoid:r}=e,i=new x3(new oc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function t7(e){const n=(e.autoFocus||[]).map(sZ);return JF().autoFocus(...n)}function oZ(e){const t=(e.focusOnObjects||[]).map(r=>new oc(r)),n=XF(...t);if(e.fallbackGravity){const r=t7(e.fallbackGravity);n.fallbackGravity(r)}return n}function aZ(e){return nZ(e)?new ZF(new e7(e.compass)):rZ(e)?XF(qY()):iZ(e)?t7(e):oZ(e)}class w3 extends UY{gravity(t){this._actionModel.gravity=tZ(t);const n=typeof t=="string"?new kt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(aZ(t.gravity)),n}}class Od extends kt{constructor(t){super("b"),t&&this.addValue(t)}}const n7=100,uZ=0;class lZ extends Od{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}`:`:${n7}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var r7=lZ;class C3 extends Od{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Nm(n)),this}}class i7 extends C3{toString(){return`
|
|
87
|
+
b_auto:border
|
|
88
|
+
${this._contrast?"_contrast":""}
|
|
89
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
90
|
+
`.replace(/\s+/g,"")}}class s7 extends C3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class o7 extends s7{toString(){return`
|
|
91
|
+
b_auto:border_gradient
|
|
92
|
+
${this._contrast?"_contrast":""}
|
|
93
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
94
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
95
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
96
|
+
`.replace(/\s+/g,"")}}class a7 extends s7{toString(){return`
|
|
97
|
+
b_auto:predominant_gradient
|
|
98
|
+
${this._contrast?"_contrast":""}
|
|
99
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
100
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
101
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
102
|
+
`.replace(/\s+/g,"")}}class u7 extends C3{toString(){return`
|
|
103
|
+
b_auto:predominant
|
|
104
|
+
${this._contrast?"_contrast":""}
|
|
105
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
106
|
+
`.replace(/\s+/g,"")}}class l7 extends Od{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${wY(this._prompt)}`:""}`}}function c7(e){return`${e}`.replace("b_","")}function cZ(){return{backgroundType:"auto"}}function fZ(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 S3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function dZ(e){return Object.assign(Object.assign({},S3(e)),{backgroundType:"border"})}function f7(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=S3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function hZ(e){return Object.assign(Object.assign({},f7(e)),{backgroundType:"borderGradient"})}function pZ(e){return{backgroundType:"color",color:c7(e)}}function mZ(e){return Object.assign(Object.assign({},S3(e)),{backgroundType:"predominant"})}function gZ(e){return Object.assign(Object.assign({},f7(e)),{backgroundType:"predominantGradient"})}function vZ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function yZ(e){return c7(e)==="auto"?cZ():e instanceof r7?fZ(e):e instanceof i7?dZ(e):e instanceof o7?hZ(e):e instanceof u7?mZ(e):e instanceof a7?gZ(e):e instanceof l7?vZ(e):pZ(e)}function bZ(){return new y3("svg")}function E3(){return new y3("auto")}function d7(){return new i7}function h7(){return new Od("auto")}function p7(){return new o7}function m7(){return new a7}function g7(){return new u7}function v7(e){return new Od(Nm(e))}function $Z(){return new r7}function y7(){return new l7}const b7={auto:h7,border:d7,borderGradient:p7,predominantGradient:m7,predominant:g7,color:v7,blurred:$Z,generativeFill:y7};function xZ(e){const{brightness:t,intensity:n}=e,r=b7.blurred();return r.brightness(t??uZ),r.intensity(n??n7),r}function KS(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:s}=t;return i&&e.contrast(),s&&e.palette(...s),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function US(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function wZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function CZ(e){const{backgroundType:t}=e;switch(t){case"auto":return h7();case"blurred":return xZ(e);case"border":return US(d7(),e);case"borderGradient":return KS(p7(),e);case"predominant":return US(g7(),e);case"predominantGradient":return KS(m7(),e);case"generativeFill":return wZ(y7(),e);default:return v7(e.color)}}class SZ extends w3{background(t){return this._actionModel.background=yZ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(CZ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class EZ extends w3{x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new kt("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 DZ extends w3{x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new kt("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 AZ(e,t){return new EZ("crop",e,t)}function TZ(e,t){return new DZ("fill",e,t)}function PZ(e,t){return new SZ("pad",e,t)}class _Z extends WF{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=UF[t];const n=new kn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new kt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new kn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new kt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=KF[n]||n,o=new this(s);if(r){const u=hY[r.toUpperCase()];u&&o.chromaSubSampling(+u)}return i&&o.quantization(i),o}}function Km(e){return new Bb("f",e)}function Um(e){return new _Z(e)}function MZ(){return new e7("north_east")}VS(70).color("black"),VS(40).color("white"),PY(),MY();var RZ=new jm().effect(_Y()).delivery(Um("auto")).delivery(Km(bZ())),FZ=new jm().effect(RY()).delivery(Um("auto")).delivery(Km(E3())),kZ=new jm().effect(TY(2e3)).delivery(Um("auto")).delivery(Km(E3())),OZ=new jm().resize(PZ("iw_div_2").aspectRatio(1).background(b7.auto())).resize(AZ(1,1).gravity(zY(MZ()))).resize(TZ().height("ih").width("iw")).delivery(Um("auto")).delivery(Km(E3())),zS={vectorize:RZ,pixelate:FZ,blur:kZ,"predominant-color":OZ},qS="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",WS={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},HS="?_a=",IZ=function(){function e(t,n,r,i,s,o,u){var l=this;this.mimeType="video",this.mimeSubTypes=WS,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=wa(n);Hp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,o),l.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(s){r.appendSourceTag(wa(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,o=i.codecs,u=i.transcode;return r.appendSourceTag(wa(t).transcode(u),s,r.buildMimeType(s,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var u=t.toURL(),l=u.split(HS),d=l[1]?"".concat(HS).concat(l[1]):"",h=o?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(WS[n]||n),this.videoElement.appendChild(s)},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=wa(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 s=0,o=Object.entries(t);s<o.length;s++){var u=o[s],l=u[0],d=u[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var o=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);Hp(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,s),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),LZ=typeof xa=="object"&&xa&&xa.Object===Object&&xa,BZ=typeof self=="object"&&self&&self.Object===Object&&self;LZ||BZ||Function("return this")();function D3(){return typeof window<"u"}function VZ(e){return e instanceof HTMLImageElement}function NZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return jZ.bind(null,r,s)}function jZ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),D3()?new Promise(function(o){var u=function(){return o({lazyload:!0})},l=UZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function KZ(){return window&&"IntersectionObserver"in window}function UZ(e,t,n,r){try{if(!KZ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function zZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return qZ.bind(null,r)}function qZ(e,t,n,r,i,s){zS[e]||(e="vectorize");var o=zS[e].actions,u=wa(n);if(o.forEach(function(d){u.addAction(d)}),!D3())return n.transformation=u.transformation,!0;if(VZ(t)){u.transformation.actions.forEach(function(d,h){d instanceof Cs&&d.getActionTag()==="responsive"&&delete u.transformation.actions[h]});var l=Lb(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=qS},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=qS,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function WZ(e,t,n){var r=wa(t);if(e)for(var i=0;i<e.length;i++){var s=e[i](null,r);if(!s)break}return r.toURL(n?{trackedAnalytics:n}:null)}function Gp(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
107
|
+
Copyright (c) Microsoft Corporation.
|
|
108
|
+
|
|
109
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
110
|
+
purpose with or without fee is hereby granted.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
113
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
114
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
115
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
116
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
117
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
118
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
119
|
+
***************************************************************************** */var Vb=function(e,t){return Vb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Vb(e,t)};function $7(e,t){Vb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var od=function(){return od=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},od.apply(this,arguments)};function x7(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 ry={sdkSemver:"1.14.1",techVersion:A.version,sdkCode:"J"},HZ=function(e){$7(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=A.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new eY(this.imageRef.current,this.props.cldImg,this.props.plugins,ry)},t.prototype.componentDidUpdate=function(){Gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,ry)},t.prototype.componentWillUnmount=function(){Gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=x7(n,["cldImg","plugins"]);if(D3())return A.createElement("img",od({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=WZ(this.props.plugins,this.props.cldImg,ry);return A.createElement("img",od({},r,{src:i}))},t}(A.Component),GZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){$7(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=A.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new IZ(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(){Gp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Gp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return GZ.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=x7(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return A.createElement("video",od({},r,{ref:this.attachRef}))},t})(A.Component);function YZ(e){return!(typeof e!="object"||e instanceof Array)}class ZZ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return YZ(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 GS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class A3 extends ZZ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,GS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,GS);return new A3(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 ad{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 XZ extends Error{constructor(t="Unsupported"){super(t)}}function T3(e){return new XZ(e)}function JZ(){return this._qualifierModel||{error:T3(`unsupported qualifier ${this.constructor.name}`)}}class QZ{constructor(){this._qualifierModel={}}toJson(){return JZ.apply(this)}}class zm extends QZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof ad?this.qualifierValue=n:(this.qualifierValue=new ad,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 Ca extends zm{constructor(t,n){let r;n?r=new ad([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function eX(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function tX(){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:T3(`unsupported action ${this.constructor.name}`)}}class nX{constructor(){this._actionModel={}}toJson(){return tX.apply(this)}}class P3 extends nX{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(),eX(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 Ca(r)):this.qualifiers.set(n,new zm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Ca(t)):t instanceof Ca&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function rX(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class iX extends P3{constructor(t){super(),this._actionModel={},this.addQualifier(new zm("b",new ad(rX(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class YS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:T3(`unsupported action ${this.constructor.name}`)}}}function sX(e){const t=e;return"error"in t&&!!t.error}function oX(){return new Ca("lossy")}function aX(){return new Ca("preserve_transparency")}function uX(e){return new Ca("progressive",e)}class lX extends ad{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ju(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const cX={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},fX={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},dX={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},hX={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},pX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},mX={444:"CHROMA_444",420:"CHROMA_420"},gX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ju(mX);ju(gX);ju(cX);const vX=ju(fX);ju(dX);ju(hX);ju(pX);class yX extends P3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof lX?i=n.getValue():i=n,this._actionModel.actionType=vX[t],this._actionModel[r]=i,this.addQualifier(new zm(t,n))}}class bX extends Ca{constructor(t){super("progressive",t)}}class Yp extends yX{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(oX()),this}progressive(t){return t instanceof bX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(uX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(aX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}}class qm{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 YS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof qm?this.actions=this.actions.concat(t.actions):this.actions.push(new YS(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 Yp("q",t)),this}format(t){return this.addAction(new Yp("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 iX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new P3;let r=t;return typeof t=="string"&&(r=new Ca(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(sX(r))return r;t.push(r)}return{actions:t}}}class $X extends qm{}class xX extends qm{}function wX(e){return e.match(/^https?:\//)}function CX(e){return e.indexOf("/")<0}function SX(e){return e.match(/^v[0-9]+/)}function EX(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,s=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!s&&r?`https://${e}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${e}`:n&&s&&r?`https://${s}`:n&&s?`https://${s}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function DX(e){return e||"image"}function AX(e){return e||"upload"}function TX(e,t,n){const r=n!==!1;return t?`v${t}`:SX(e)||wX(e)||CX(e)?"":r?"v1":""}function _3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=PX(i,r/i.length)),i.slice(0,r)+String(e))}function PX(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const _X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zp={};let ZS=0;_X.split("").forEach(e=>{let t=ZS.toString(2);t=_3(t,6,"0"),Zp[t]=e,ZS++});function MX(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function RX(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 _3(t,2,"0")}).join(".")}function XS(e){let t="";const r=e.split(".").length*6,i=MX(e),s=RX(i);let u=parseInt(s.split(".").join("")).toString(2);if(u=_3(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+=Zp[l]}),t}function FX(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 kX="1.21.0";function OX(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),o=i.padStart(6,"0");return Zp[s]+Zp[o]}function IX(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function LX(e){const t={techVersion:IX(),sdkCode:"T",sdkSemver:kX.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 JS(e){const t=LX(e),n=FX(t);try{const r=BX(n.techVersion),i=XS(n.sdkSemver),s=XS(r),o=OX(n.osVersion),u=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${o}${u}`}catch{return"E"}}function BX(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const QS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class VX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new A3(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=DX(this.assetType),n=AX(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=QS[`${t}/${n}`],o=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(QS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=EX(this.cloudName,this.urlConfig),i=t?t.toString():"",s=TX(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",JS(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",l&&(d+=`${d.length>0?"&":""}_a=${JS(n)}`);return d?`${u}?${d}`:u}}}class w7 extends VX{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 Yp("q",t)),this}format(t){return this.addAction(new Yp("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 NX extends w7{constructor(t,n,r){super(t,n,r,new $X)}}class jX extends w7{constructor(t,n,r){super(t,n,r,new xX),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class KX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new NX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new jX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var iy,eE;function C7(){if(eE)return iy;eE=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 iy=e,iy}var sy,tE;function UX(){if(tE)return sy;tE=1;function e(){this.__data__=[],this.size=0}return sy=e,sy}var oy,nE;function M3(){if(nE)return oy;nE=1;function e(t,n){return t===n||t!==t&&n!==n}return oy=e,oy}var ay,rE;function Wm(){if(rE)return ay;rE=1;var e=M3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return ay=t,ay}var uy,iE;function zX(){if(iE)return uy;iE=1;var e=Wm(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,o=e(s,i);if(o<0)return!1;var u=s.length-1;return o==u?s.pop():n.call(s,o,1),--this.size,!0}return uy=r,uy}var ly,sE;function qX(){if(sE)return ly;sE=1;var e=Wm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ly=t,ly}var cy,oE;function WX(){if(oE)return cy;oE=1;var e=Wm();function t(n){return e(this.__data__,n)>-1}return cy=t,cy}var fy,aE;function HX(){if(aE)return fy;aE=1;var e=Wm();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return fy=t,fy}var dy,uE;function Hm(){if(uE)return dy;uE=1;var e=UX(),t=zX(),n=qX(),r=WX(),i=HX();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,dy=s,dy}var hy,lE;function GX(){if(lE)return hy;lE=1;var e=Hm();function t(){this.__data__=new e,this.size=0}return hy=t,hy}var py,cE;function YX(){if(cE)return py;cE=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return py=e,py}var my,fE;function ZX(){if(fE)return my;fE=1;function e(t){return this.__data__.get(t)}return my=e,my}var gy,dE;function XX(){if(dE)return gy;dE=1;function e(t){return this.__data__.has(t)}return gy=e,gy}var vy,hE;function Gm(){if(hE)return vy;hE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return vy=e,vy}var yy,pE;function S7(){if(pE)return yy;pE=1;var e=xc(),t=Gm(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function o(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==s}return yy=o,yy}var by,mE;function JX(){if(mE)return by;mE=1;var e=Zo(),t=e["__core-js_shared__"];return by=t,by}var $y,gE;function QX(){if(gE)return $y;gE=1;var e=JX(),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 $y=n,$y}var xy,vE;function E7(){if(vE)return xy;vE=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 xy=n,xy}var wy,yE;function eJ(){if(yE)return wy;yE=1;var e=S7(),t=QX(),n=Gm(),r=E7(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,l=o.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:s;return b.test(r(g))}return wy=m,wy}var Cy,bE;function tJ(){if(bE)return Cy;bE=1;function e(t,n){return t==null?void 0:t[n]}return Cy=e,Cy}var Sy,$E;function Cc(){if($E)return Sy;$E=1;var e=eJ(),t=tJ();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Sy=n,Sy}var Ey,xE;function R3(){if(xE)return Ey;xE=1;var e=Cc(),t=Zo(),n=e(t,"Map");return Ey=n,Ey}var Dy,wE;function Ym(){if(wE)return Dy;wE=1;var e=Cc(),t=e(Object,"create");return Dy=t,Dy}var Ay,CE;function nJ(){if(CE)return Ay;CE=1;var e=Ym();function t(){this.__data__=e?e(null):{},this.size=0}return Ay=t,Ay}var Ty,SE;function rJ(){if(SE)return Ty;SE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ty=e,Ty}var Py,EE;function iJ(){if(EE)return Py;EE=1;var e=Ym(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var o=this.__data__;if(e){var u=o[s];return u===t?void 0:u}return r.call(o,s)?o[s]:void 0}return Py=i,Py}var _y,DE;function sJ(){if(DE)return _y;DE=1;var e=Ym(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return _y=r,_y}var My,AE;function oJ(){if(AE)return My;AE=1;var e=Ym(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return My=n,My}var Ry,TE;function aJ(){if(TE)return Ry;TE=1;var e=nJ(),t=rJ(),n=iJ(),r=sJ(),i=oJ();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Ry=s,Ry}var Fy,PE;function uJ(){if(PE)return Fy;PE=1;var e=aJ(),t=Hm(),n=R3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Fy=r,Fy}var ky,_E;function lJ(){if(_E)return ky;_E=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ky=e,ky}var Oy,ME;function Zm(){if(ME)return Oy;ME=1;var e=lJ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Oy=t,Oy}var Iy,RE;function cJ(){if(RE)return Iy;RE=1;var e=Zm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Iy=t,Iy}var Ly,FE;function fJ(){if(FE)return Ly;FE=1;var e=Zm();function t(n){return e(this,n).get(n)}return Ly=t,Ly}var By,kE;function dJ(){if(kE)return By;kE=1;var e=Zm();function t(n){return e(this,n).has(n)}return By=t,By}var Vy,OE;function hJ(){if(OE)return Vy;OE=1;var e=Zm();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Vy=t,Vy}var Ny,IE;function F3(){if(IE)return Ny;IE=1;var e=uJ(),t=cJ(),n=fJ(),r=dJ(),i=hJ();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Ny=s,Ny}var jy,LE;function pJ(){if(LE)return jy;LE=1;var e=Hm(),t=R3(),n=F3(),r=200;function i(s,o){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([s,o]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(s,o),this.size=u.size,this}return jy=i,jy}var Ky,BE;function D7(){if(BE)return Ky;BE=1;var e=Hm(),t=GX(),n=YX(),r=ZX(),i=XX(),s=pJ();function o(u){var l=this.__data__=new e(u);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=s,Ky=o,Ky}var Uy,VE;function mJ(){if(VE)return Uy;VE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Uy=t,Uy}var zy,NE;function gJ(){if(NE)return zy;NE=1;function e(t){return this.__data__.has(t)}return zy=e,zy}var qy,jE;function vJ(){if(jE)return qy;jE=1;var e=F3(),t=mJ(),n=gJ();function r(i){var s=-1,o=i==null?0:i.length;for(this.__data__=new e;++s<o;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,qy=r,qy}var Wy,KE;function yJ(){if(KE)return Wy;KE=1;function e(t,n){return t.has(n)}return Wy=e,Wy}var Hy,UE;function A7(){if(UE)return Hy;UE=1;var e=vJ(),t=C7(),n=yJ(),r=1,i=2;function s(o,u,l,d,h,m){var g=l&r,b=o.length,$=u.length;if(b!=$&&!(g&&$>b))return!1;var w=m.get(o),D=m.get(u);if(w&&D)return w==u&&D==o;var S=-1,C=!0,T=l&i?new e:void 0;for(m.set(o,u),m.set(u,o);++S<b;){var O=o[S],M=u[S];if(d)var k=g?d(M,O,S,u,o,m):d(O,M,S,o,u,m);if(k!==void 0){if(k)continue;C=!1;break}if(T){if(!t(u,function(N,F){if(!n(T,F)&&(O===N||h(O,N,l,d,m)))return T.push(F)})){C=!1;break}}else if(!(O===M||h(O,M,l,d,m))){C=!1;break}}return m.delete(o),m.delete(u),C}return Hy=s,Hy}var Gy,zE;function bJ(){if(zE)return Gy;zE=1;var e=Zo(),t=e.Uint8Array;return Gy=t,Gy}var Yy,qE;function $J(){if(qE)return Yy;qE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Yy=e,Yy}var Zy,WE;function xJ(){if(WE)return Zy;WE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Zy=e,Zy}var Xy,HE;function wJ(){if(HE)return Xy;HE=1;var e=Lm(),t=bJ(),n=M3(),r=A7(),i=$J(),s=xJ(),o=1,u=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",$="[object Set]",w="[object String]",D="[object Symbol]",S="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,O=T?T.valueOf:void 0;function M(k,N,F,ae,oe,W,we){switch(F){case C:if(k.byteLength!=N.byteLength||k.byteOffset!=N.byteOffset)return!1;k=k.buffer,N=N.buffer;case S:return!(k.byteLength!=N.byteLength||!W(new t(k),new t(N)));case l:case d:case g:return n(+k,+N);case h:return k.name==N.name&&k.message==N.message;case b:case w:return k==N+"";case m:var ne=i;case $:var se=ae&o;if(ne||(ne=s),k.size!=N.size&&!se)return!1;var z=we.get(k);if(z)return z==N;ae|=u,we.set(k,N);var K=r(ne(k),ne(N),ae,oe,W,we);return we.delete(k),K;case D:if(O)return O.call(k)==O.call(N)}return!1}return Xy=M,Xy}var Jy,GE;function CJ(){if(GE)return Jy;GE=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Jy=e,Jy}var Qy,YE;function Xo(){if(YE)return Qy;YE=1;var e=Array.isArray;return Qy=e,Qy}var e0,ZE;function SJ(){if(ZE)return e0;ZE=1;var e=CJ(),t=Xo();function n(r,i,s){var o=i(r);return t(r)?o:e(o,s(r))}return e0=n,e0}var t0,XE;function EJ(){if(XE)return t0;XE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,o=[];++r<i;){var u=t[r];n(u,r,t)&&(o[s++]=u)}return o}return t0=e,t0}var n0,JE;function DJ(){if(JE)return n0;JE=1;function e(){return[]}return n0=e,n0}var r0,QE;function AJ(){if(QE)return r0;QE=1;var e=EJ(),t=DJ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return r.call(o,u)}))}:t;return r0=s,r0}var i0,eD;function TJ(){if(eD)return i0;eD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return i0=e,i0}var s0,tD;function PJ(){if(tD)return s0;tD=1;var e=xc(),t=wc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return s0=r,s0}var o0,nD;function T7(){if(nD)return o0;nD=1;var e=PJ(),t=wc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return o0=s,o0}var _f={exports:{}},a0,rD;function _J(){if(rD)return a0;rD=1;function e(){return!1}return a0=e,a0}_f.exports;var iD;function P7(){return iD||(iD=1,function(e,t){var n=Zo(),r=_J(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,u=o?n.Buffer:void 0,l=u?u.isBuffer:void 0,d=l||r;e.exports=d}(_f,_f.exports)),_f.exports}var u0,sD;function k3(){if(sD)return u0;sD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return u0=n,u0}var l0,oD;function O3(){if(oD)return l0;oD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return l0=t,l0}var c0,aD;function MJ(){if(aD)return c0;aD=1;var e=xc(),t=O3(),n=wc(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",o="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",$="[object String]",w="[object WeakMap]",D="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",ae="[object Uint16Array]",oe="[object Uint32Array]",W={};W[C]=W[T]=W[O]=W[M]=W[k]=W[N]=W[F]=W[ae]=W[oe]=!0,W[r]=W[i]=W[D]=W[s]=W[S]=W[o]=W[u]=W[l]=W[d]=W[h]=W[m]=W[g]=W[b]=W[$]=W[w]=!1;function we(ne){return n(ne)&&t(ne.length)&&!!W[e(ne)]}return c0=we,c0}var f0,uD;function RJ(){if(uD)return f0;uD=1;function e(t){return function(n){return t(n)}}return f0=e,f0}var Mf={exports:{}};Mf.exports;var lD;function FJ(){return lD||(lD=1,function(e,t){var n=OF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,o=s&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u}(Mf,Mf.exports)),Mf.exports}var d0,cD;function _7(){if(cD)return d0;cD=1;var e=MJ(),t=RJ(),n=FJ(),r=n&&n.isTypedArray,i=r?t(r):e;return d0=i,d0}var h0,fD;function kJ(){if(fD)return h0;fD=1;var e=TJ(),t=T7(),n=Xo(),r=P7(),i=k3(),s=_7(),o=Object.prototype,u=o.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),$=!m&&!g&&!b&&s(d),w=m||g||b||$,D=w?e(d.length,String):[],S=D.length;for(var C in d)(h||u.call(d,C))&&!(w&&(C=="length"||b&&(C=="offset"||C=="parent")||$&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,S)))&&D.push(C);return D}return h0=l,h0}var p0,dD;function OJ(){if(dD)return p0;dD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return p0=t,p0}var m0,hD;function IJ(){if(hD)return m0;hD=1;function e(t,n){return function(r){return t(n(r))}}return m0=e,m0}var g0,pD;function LJ(){if(pD)return g0;pD=1;var e=IJ(),t=e(Object.keys,Object);return g0=t,g0}var v0,mD;function BJ(){if(mD)return v0;mD=1;var e=OJ(),t=LJ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var o=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&o.push(u);return o}return v0=i,v0}var y0,gD;function I3(){if(gD)return y0;gD=1;var e=S7(),t=O3();function n(r){return r!=null&&t(r.length)&&!e(r)}return y0=n,y0}var b0,vD;function L3(){if(vD)return b0;vD=1;var e=kJ(),t=BJ(),n=I3();function r(i){return n(i)?e(i):t(i)}return b0=r,b0}var $0,yD;function VJ(){if(yD)return $0;yD=1;var e=SJ(),t=AJ(),n=L3();function r(i){return e(i,n,t)}return $0=r,$0}var x0,bD;function NJ(){if(bD)return x0;bD=1;var e=VJ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,o,u,l,d,h){var m=u&t,g=e(s),b=g.length,$=e(o),w=$.length;if(b!=w&&!m)return!1;for(var D=b;D--;){var S=g[D];if(!(m?S in o:r.call(o,S)))return!1}var C=h.get(s),T=h.get(o);if(C&&T)return C==o&&T==s;var O=!0;h.set(s,o),h.set(o,s);for(var M=m;++D<b;){S=g[D];var k=s[S],N=o[S];if(l)var F=m?l(N,k,S,o,s,h):l(k,N,S,s,o,h);if(!(F===void 0?k===N||d(k,N,u,l,h):F)){O=!1;break}M||(M=S=="constructor")}if(O&&!M){var ae=s.constructor,oe=o.constructor;ae!=oe&&"constructor"in s&&"constructor"in o&&!(typeof ae=="function"&&ae instanceof ae&&typeof oe=="function"&&oe instanceof oe)&&(O=!1)}return h.delete(s),h.delete(o),O}return x0=i,x0}var w0,$D;function jJ(){if($D)return w0;$D=1;var e=Cc(),t=Zo(),n=e(t,"DataView");return w0=n,w0}var C0,xD;function KJ(){if(xD)return C0;xD=1;var e=Cc(),t=Zo(),n=e(t,"Promise");return C0=n,C0}var S0,wD;function UJ(){if(wD)return S0;wD=1;var e=Cc(),t=Zo(),n=e(t,"Set");return S0=n,S0}var E0,CD;function zJ(){if(CD)return E0;CD=1;var e=Cc(),t=Zo(),n=e(t,"WeakMap");return E0=n,E0}var D0,SD;function qJ(){if(SD)return D0;SD=1;var e=jJ(),t=R3(),n=KJ(),r=UJ(),i=zJ(),s=xc(),o=E7(),u="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=o(e),$=o(t),w=o(n),D=o(r),S=o(i),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=u||n&&C(n.resolve())!=d||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(T){var O=s(T),M=O==l?T.constructor:void 0,k=M?o(M):"";if(k)switch(k){case b:return g;case $:return u;case w:return d;case D:return h;case S:return m}return O}),D0=C,D0}var A0,ED;function WJ(){if(ED)return A0;ED=1;var e=D7(),t=A7(),n=wJ(),r=NJ(),i=qJ(),s=Xo(),o=P7(),u=_7(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function $(w,D,S,C,T,O){var M=s(w),k=s(D),N=M?h:i(w),F=k?h:i(D);N=N==d?m:N,F=F==d?m:F;var ae=N==m,oe=F==m,W=N==F;if(W&&o(w)){if(!o(D))return!1;M=!0,ae=!1}if(W&&!ae)return O||(O=new e),M||u(w)?t(w,D,S,C,T,O):n(w,D,N,S,C,T,O);if(!(S&l)){var we=ae&&b.call(w,"__wrapped__"),ne=oe&&b.call(D,"__wrapped__");if(we||ne){var se=we?w.value():w,z=ne?D.value():D;return O||(O=new e),T(se,z,S,C,O)}}return W?(O||(O=new e),r(w,D,S,C,T,O)):!1}return A0=$,A0}var T0,DD;function M7(){if(DD)return T0;DD=1;var e=WJ(),t=wc();function n(r,i,s,o,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,o,n,u)}return T0=n,T0}var P0,AD;function HJ(){if(AD)return P0;AD=1;var e=D7(),t=M7(),n=1,r=2;function i(s,o,u,l){var d=u.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=u[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=u[d];var b=g[0],$=s[b],w=g[1];if(m&&g[2]){if($===void 0&&!(b in s))return!1}else{var D=new e;if(l)var S=l($,w,b,s,o,D);if(!(S===void 0?t(w,$,n|r,l,D):S))return!1}}return!0}return P0=i,P0}var _0,TD;function R7(){if(TD)return _0;TD=1;var e=Gm();function t(n){return n===n&&!e(n)}return _0=t,_0}var M0,PD;function GJ(){if(PD)return M0;PD=1;var e=R7(),t=L3();function n(r){for(var i=t(r),s=i.length;s--;){var o=i[s],u=r[o];i[s]=[o,u,e(u)]}return i}return M0=n,M0}var R0,_D;function F7(){if(_D)return R0;_D=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return R0=e,R0}var F0,MD;function YJ(){if(MD)return F0;MD=1;var e=HJ(),t=GJ(),n=F7();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(o){return o===i||e(o,i,s)}}return F0=r,F0}var k0,RD;function B3(){if(RD)return k0;RD=1;var e=xc(),t=wc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return k0=r,k0}var O0,FD;function V3(){if(FD)return O0;FD=1;var e=Xo(),t=B3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,o){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||o!=null&&s in Object(o)}return O0=i,O0}var I0,kD;function ZJ(){if(kD)return I0;kD=1;var e=F3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var o=arguments,u=i?i.apply(this,o):o[0],l=s.cache;if(l.has(u))return l.get(u);var d=r.apply(this,o);return s.cache=l.set(u,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,I0=n,I0}var L0,OD;function XJ(){if(OD)return L0;OD=1;var e=ZJ(),t=500;function n(r){var i=e(r,function(o){return s.size===t&&s.clear(),o}),s=i.cache;return i}return L0=n,L0}var B0,ID;function JJ(){if(ID)return B0;ID=1;var e=XJ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(o,u,l,d){s.push(l?d.replace(n,"$1"):u||o)}),s});return B0=r,B0}var V0,LD;function QJ(){if(LD)return V0;LD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return V0=e,V0}var N0,BD;function eQ(){if(BD)return N0;BD=1;var e=Lm(),t=QJ(),n=Xo(),r=B3(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(n(u))return t(u,o)+"";if(r(u))return s?s.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return N0=o,N0}var j0,VD;function tQ(){if(VD)return j0;VD=1;var e=eQ();function t(n){return n==null?"":e(n)}return j0=t,j0}var K0,ND;function k7(){if(ND)return K0;ND=1;var e=Xo(),t=V3(),n=JJ(),r=tQ();function i(s,o){return e(s)?s:t(s,o)?[s]:n(r(s))}return K0=i,K0}var U0,jD;function Xm(){if(jD)return U0;jD=1;var e=B3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return U0=t,U0}var z0,KD;function O7(){if(KD)return z0;KD=1;var e=k7(),t=Xm();function n(r,i){i=e(i,r);for(var s=0,o=i.length;r!=null&&s<o;)r=r[t(i[s++])];return s&&s==o?r:void 0}return z0=n,z0}var q0,UD;function nQ(){if(UD)return q0;UD=1;var e=O7();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return q0=t,q0}var W0,zD;function rQ(){if(zD)return W0;zD=1;function e(t,n){return t!=null&&n in Object(t)}return W0=e,W0}var H0,qD;function iQ(){if(qD)return H0;qD=1;var e=k7(),t=T7(),n=Xo(),r=k3(),i=O3(),s=Xm();function o(u,l,d){l=e(l,u);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return H0=o,H0}var G0,WD;function sQ(){if(WD)return G0;WD=1;var e=rQ(),t=iQ();function n(r,i){return r!=null&&t(r,i,e)}return G0=n,G0}var Y0,HD;function oQ(){if(HD)return Y0;HD=1;var e=M7(),t=nQ(),n=sQ(),r=V3(),i=R7(),s=F7(),o=Xm(),u=1,l=2;function d(h,m){return r(h)&&i(m)?s(o(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|l)}}return Y0=d,Y0}var Z0,GD;function aQ(){if(GD)return Z0;GD=1;function e(t){return t}return Z0=e,Z0}var X0,YD;function uQ(){if(YD)return X0;YD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return X0=e,X0}var J0,ZD;function lQ(){if(ZD)return J0;ZD=1;var e=O7();function t(n){return function(r){return e(r,n)}}return J0=t,J0}var Q0,XD;function cQ(){if(XD)return Q0;XD=1;var e=uQ(),t=lQ(),n=V3(),r=Xm();function i(s){return n(s)?e(r(s)):t(s)}return Q0=i,Q0}var e1,JD;function fQ(){if(JD)return e1;JD=1;var e=YJ(),t=oQ(),n=aQ(),r=Xo(),i=cQ();function s(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return e1=s,e1}var t1,QD;function dQ(){if(QD)return t1;QD=1;function e(t){return function(n,r,i){for(var s=-1,o=Object(n),u=i(n),l=u.length;l--;){var d=u[t?l:++s];if(r(o[d],d,o)===!1)break}return n}}return t1=e,t1}var n1,eA;function hQ(){if(eA)return n1;eA=1;var e=dQ(),t=e();return n1=t,n1}var r1,tA;function pQ(){if(tA)return r1;tA=1;var e=hQ(),t=L3();function n(r,i){return r&&e(r,i,t)}return r1=n,r1}var i1,nA;function mQ(){if(nA)return i1;nA=1;var e=I3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var o=i.length,u=r?o:-1,l=Object(i);(r?u--:++u<o)&&s(l[u],u,l)!==!1;);return i}}return i1=t,i1}var s1,rA;function gQ(){if(rA)return s1;rA=1;var e=pQ(),t=mQ(),n=t(e);return s1=n,s1}var o1,iA;function vQ(){if(iA)return o1;iA=1;var e=gQ();function t(n,r){var i;return e(n,function(s,o,u){return i=r(s,o,u),!i}),!!i}return o1=t,o1}var a1,sA;function yQ(){if(sA)return a1;sA=1;var e=M3(),t=I3(),n=k3(),r=Gm();function i(s,o,u){if(!r(u))return!1;var l=typeof o;return(l=="number"?t(u)&&n(o,u.length):l=="string"&&o in u)?e(u[o],s):!1}return a1=i,a1}var u1,oA;function bQ(){if(oA)return u1;oA=1;var e=C7(),t=fQ(),n=vQ(),r=Xo(),i=yQ();function s(o,u,l){var d=r(o)?e:n;return l&&i(o,u,l)&&(u=void 0),d(o,t(u,3))}return u1=s,u1}var $Q=bQ();const xQ=ws($Q);var l1={exports:{}},aA;function wQ(){return aA||(aA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
120
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
121
|
+
*
|
|
122
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
123
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
124
|
+
* @namespace
|
|
125
|
+
* @public
|
|
126
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(T){return T instanceof l?new l(T.type,C(T.content),T.alias):Array.isArray(T)?T.map(C):T.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(T,O){O=O||{};var M,k;switch(u.util.type(T)){case"Object":if(k=u.util.objId(T),O[k])return O[k];M={},O[k]=M;for(var N in T)T.hasOwnProperty(N)&&(M[N]=C(T[N],O));return M;case"Array":return k=u.util.objId(T),O[k]?O[k]:(M=[],O[k]=M,T.forEach(function(F,ae){M[ae]=C(F,O)}),M);default:return T}},getLanguage:function(C){for(;C;){var T=i.exec(C.className);if(T)return T[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,T){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==C)return T[O]}return null}},isActive:function(C,T,O){for(var M="no-"+T;C;){var k=C.classList;if(k.contains(T))return!0;if(k.contains(M))return!1;C=C.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,T){var O=u.util.clone(u.languages[C]);for(var M in T)O[M]=T[M];return O},insertBefore:function(C,T,O,M){M=M||u.languages;var k=M[C],N={};for(var F in k)if(k.hasOwnProperty(F)){if(F==T)for(var ae in O)O.hasOwnProperty(ae)&&(N[ae]=O[ae]);O.hasOwnProperty(F)||(N[F]=k[F])}var oe=M[C];return M[C]=N,u.languages.DFS(u.languages,function(W,we){we===oe&&W!=C&&(this[W]=N)}),N},DFS:function C(T,O,M,k){k=k||{};var N=u.util.objId;for(var F in T)if(T.hasOwnProperty(F)){O.call(T,F,T[F],M||F);var ae=T[F],oe=u.util.type(ae);oe==="Object"&&!k[N(ae)]?(k[N(ae)]=!0,C(ae,O,null,k)):oe==="Array"&&!k[N(ae)]&&(k[N(ae)]=!0,C(ae,O,F,k))}}},plugins:{},highlightAll:function(C,T){u.highlightAllUnder(document,C,T)},highlightAllUnder:function(C,T,O){var M={callback:O,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),u.hooks.run("before-all-elements-highlight",M);for(var k=0,N;N=M.elements[k++];)u.highlightElement(N,T===!0,M.callback)},highlightElement:function(C,T,O){var M=u.util.getLanguage(C),k=u.languages[M];u.util.setLanguage(C,M);var N=C.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(N,M);var F=C.textContent,ae={element:C,language:M,grammar:k,code:F};function oe(we){ae.highlightedCode=we,u.hooks.run("before-insert",ae),ae.element.innerHTML=ae.highlightedCode,u.hooks.run("after-highlight",ae),u.hooks.run("complete",ae),O&&O.call(ae.element)}if(u.hooks.run("before-sanity-check",ae),N=ae.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!ae.code){u.hooks.run("complete",ae),O&&O.call(ae.element);return}if(u.hooks.run("before-highlight",ae),!ae.grammar){oe(u.util.encode(ae.code));return}if(T&&r.Worker){var W=new Worker(u.filename);W.onmessage=function(we){oe(we.data)},W.postMessage(JSON.stringify({language:ae.language,code:ae.code,immediateClose:!0}))}else oe(u.highlight(ae.code,ae.grammar,ae.language))},highlight:function(C,T,O){var M={code:C,grammar:T,language:O};if(u.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=u.tokenize(M.code,M.grammar),u.hooks.run("after-tokenize",M),l.stringify(u.util.encode(M.tokens),M.language)},tokenize:function(C,T){var O=T.rest;if(O){for(var M in O)T[M]=O[M];delete T.rest}var k=new m;return g(k,k.head,C),h(C,k,T,k.head,0),$(k)},hooks:{all:{},add:function(C,T){var O=u.hooks.all;O[C]=O[C]||[],O[C].push(T)},run:function(C,T){var O=u.hooks.all[C];if(!(!O||!O.length))for(var M=0,k;k=O[M++];)k(T)}},Token:l};r.Prism=u;function l(C,T,O,M){this.type=C,this.content=T,this.alias=O,this.length=(M||"").length|0}l.stringify=function C(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var M="";return T.forEach(function(oe){M+=C(oe,O)}),M}var k={type:T.type,content:C(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},N=T.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(k.classes,N):k.classes.push(N)),u.hooks.run("wrap",k);var F="";for(var ae in k.attributes)F+=" "+ae+'="'+(k.attributes[ae]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+F+">"+k.content+"</"+k.tag+">"};function d(C,T,O,M){C.lastIndex=T;var k=C.exec(O);if(k&&M&&k[1]){var N=k[1].length;k.index+=N,k[0]=k[0].slice(N)}return k}function h(C,T,O,M,k,N){for(var F in O)if(!(!O.hasOwnProperty(F)||!O[F])){var ae=O[F];ae=Array.isArray(ae)?ae:[ae];for(var oe=0;oe<ae.length;++oe){if(N&&N.cause==F+","+oe)return;var W=ae[oe],we=W.inside,ne=!!W.lookbehind,se=!!W.greedy,z=W.alias;if(se&&!W.pattern.global){var K=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,K+"g")}for(var j=W.pattern||W,B=M.next,ge=k;B!==T.tail&&!(N&&ge>=N.reach);ge+=B.value.length,B=B.next){var U=B.value;if(T.length>C.length)return;if(!(U instanceof l)){var G=1,Se;if(se){if(Se=d(j,ge,C,ne),!Se||Se.index>=C.length)break;var Ze=Se.index,Pe=Se.index+Se[0].length,ke=ge;for(ke+=B.value.length;Ze>=ke;)B=B.next,ke+=B.value.length;if(ke-=B.value.length,ge=ke,B.value instanceof l)continue;for(var Ie=B;Ie!==T.tail&&(ke<Pe||typeof Ie.value=="string");Ie=Ie.next)G++,ke+=Ie.value.length;G--,U=C.slice(ge,ke),Se.index-=ge}else if(Se=d(j,0,U,ne),!Se)continue;var Ze=Se.index,Ge=Se[0],De=U.slice(0,Ze),Ue=U.slice(Ze+Ge.length),_e=ge+U.length;N&&_e>N.reach&&(N.reach=_e);var Ve=B.prev;De&&(Ve=g(T,Ve,De),ge+=De.length),b(T,Ve,G);var Le=new l(F,we?u.tokenize(Ge,we):Ge,z,Ge);if(B=g(T,Ve,Le),Ue&&g(T,B,Ue),G>1){var nt={cause:F+","+oe,reach:_e};h(C,T,O,B.prev,ge,nt),N&&nt.reach>N.reach&&(N.reach=nt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},T={value:null,prev:C,next:null};C.next=T,this.head=C,this.tail=T,this.length=0}function g(C,T,O){var M=T.next,k={value:O,prev:T,next:M};return T.next=k,M.prev=k,C.length++,k}function b(C,T,O){for(var M=T.next,k=0;k<O&&M!==C.tail;k++)M=M.next;T.next=M,M.prev=T,C.length-=k}function $(C){for(var T=[],O=C.head.next;O!==C.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(C){var T=JSON.parse(C.data),O=T.language,M=T.code,k=T.immediateClose;r.postMessage(u.highlight(M,u.languages[O],O)),k&&r.close()},!1)),u;var w=u.util.currentScript();w&&(u.filename=w.src,w.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof qi<"u"&&(qi.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,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};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 s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.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(w,D){return"✖ Error "+w+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(w,D,S){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?D(C.responseText):C.status>=400?S(i(C.status,C.statusText)):S(s))},C.send(null)}function b(w){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(D){var S=Number(D[1]),C=D[2],T=D[3];return C?T?[S,Number(T)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var D=w.element;if(D.matches(m)){w.code="",D.setAttribute(u,l);var S=D.appendChild(document.createElement("CODE"));S.textContent=r;var C=D.getAttribute("data-src"),T=w.language;if(T==="none"){var O=(/\.(\w+)$/.exec(C)||[,"none"])[1];T=o[O]||O}n.util.setLanguage(S,T),n.util.setLanguage(D,T);var M=n.plugins.autoloader;M&&M.loadLanguages(T),g(C,function(k){D.setAttribute(u,d);var N=b(D.getAttribute("data-range"));if(N){var F=k.split(/\r\n?|\n/g),ae=N[0],oe=N[1]==null?F.length:N[1];ae<0&&(ae+=F.length),ae=Math.max(0,Math.min(ae-1,F.length)),oe<0&&(oe+=F.length),oe=Math.max(0,Math.min(oe,F.length)),k=F.slice(ae,oe).join(`
|
|
127
|
+
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(ae+1))}S.textContent=k,n.highlightElement(S)},function(k){D.setAttribute(u,h),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(D){for(var S=(D||document).querySelectorAll(m),C=0,T;T=S[C++];)n.highlightElement(T)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(l1)),l1.exports}var CQ=wQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function s(g){g()}var o=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var $=getComputedStyle(g),w=getComputedStyle(b);function D(S){return+S.substr(0,S.length-2)}return b.offsetTop+D(w.borderTopWidth)+D(w.paddingTop)-D($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,w){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var D=$.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,T=C(getComputedStyle(b).lineHeight),O=Prism.util.isActive(b,e),M=b.querySelector("code"),k=O?b:M||b,N=[],F=M.textContent.match(n),ae=F?F.length+1:1,oe=!M||k==M?0:u(b,M);D.forEach(function(ne){var se=ne.split("-"),z=+se[0],K=+se[1]||z;if(K=Math.min(ae+S,K),!(K<z)){var j=b.querySelector('.line-highlight[data-range="'+ne+'"]')||document.createElement("div");if(N.push(function(){j.setAttribute("aria-hidden","true"),j.setAttribute("data-range",ne),j.className=(w||"")+" line-highlight"}),O&&Prism.plugins.lineNumbers){var B=Prism.plugins.lineNumbers.getLine(b,z),ge=Prism.plugins.lineNumbers.getLine(b,K);if(B){var U=B.offsetTop+oe+"px";N.push(function(){j.style.top=U})}if(ge){var G=ge.offsetTop-B.offsetTop+ge.offsetHeight+"px";N.push(function(){j.style.height=G})}}else N.push(function(){j.setAttribute("data-start",String(z)),K>z&&j.setAttribute("data-end",String(K)),j.style.top=(z-S-1)*T+oe+"px",j.textContent=new Array(K-z+2).join(`
|
|
128
|
+
`)});N.push(function(){j.style.width=b.scrollWidth+"px"}),N.push(function(){k.appendChild(j)})}});var W=b.id;if(O&&Prism.util.isActive(b,t)&&W){i(b,t)||N.push(function(){b.classList.add(t)});var we=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(ne,se){var z=se+we;ne.onclick=function(){var K=W+"."+z;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){N.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),w=document.getElementById($);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(w,b,"temporary ");D(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(w){$+=w.textContent.length,w.parentNode.removeChild(w)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var w=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&w&&!D)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines($);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(s)})})();const I7=A.createContext({});function Id(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const N3=typeof window<"u",L7=N3?A.useLayoutEffect:A.useEffect,j3=A.createContext(null),K3=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function SQ(e=!0){const t=A.useContext(j3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=A.useId();A.useEffect(()=>{if(e)return i(s)},[e]);const o=A.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}function U3(e,t){e.indexOf(t)===-1&&e.push(t)}function z3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function EQ([...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,[s]=e.splice(t,1);e.splice(i,0,s)}return e}const ui=e=>e;let Sc=ui,io=ui;process.env.NODE_ENV!=="production"&&(Sc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},io=(e,t)=>{if(!e)throw new Error(t)});const DQ={useManualTiming:!1};function q3(e){let t;return()=>(t===void 0&&(t=e()),t)}const ac=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let W3=class{constructor(){this.subscriptions=[]}add(t){return U3(this.subscriptions,t),()=>z3(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 s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const to=e=>e*1e3,jo=e=>e/1e3;function B7(e,t){return t?e*(1e3/t):0}const uA=new Set;function Jm(e,t,n){e||uA.has(t)||(console.warn(t),uA.add(t))}const AQ=q3(()=>window.ScrollTimeline!==void 0);let TQ=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(AQ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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")}},PQ=class extends TQ{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function H3(e,t){return e?e[t]||e.default||e:void 0}const Nb=2e4;function V7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Nb;)t+=n,r=e.next(t);return t>=Nb?1/0:t}function G3(e){return typeof e=="function"}function lA(e,t){e.timeline=t,e.onfinish=null}const Y3=e=>Array.isArray(e)&&typeof e[0]=="number",_Q={linearEasing:void 0};function MQ(e,t){const n=q3(e);return()=>{var r;return(r=_Q[t])!==null&&r!==void 0?r:n()}}const Xp=MQ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),N7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(ac(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function j7(e){return!!(typeof e=="function"&&Xp()||!e||typeof e=="string"&&(e in jb||Xp())||Y3(e)||Array.isArray(e)&&e.every(j7))}const Rf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Rf([0,.65,.55,1]),circOut:Rf([.55,0,1,.45]),backIn:Rf([.31,.01,.66,-.59]),backOut:Rf([.33,1.53,.69,.99])};function K7(e,t){if(e)return typeof e=="function"&&Xp()?N7(e,t):Y3(e)?Rf(e):Array.isArray(e)?e.map(n=>K7(n,t)||jb.easeOut):jb[e]}const Kh=["read","resolveKeyframes","update","preRender","render","postRender"];function RQ(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(u=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const FQ=40;function U7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Kh.reduce((S,C)=>(S[C]=RQ(s),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,FQ),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},$=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Kh.reduce((S,C)=>{const T=o[C];return S[C]=(O,M=!1,k=!1)=>(n||$(),T.schedule(O,M,k)),S},{}),cancel:S=>{for(let C=0;C<Kh.length;C++)o[Kh[C]].cancel(S)},state:i,steps:o}}const{schedule:mn,cancel:Wo,state:$r,steps:c1}=U7(typeof requestAnimationFrame<"u"?requestAnimationFrame:ui,!0),{schedule:Z3}=U7(queueMicrotask,!1);let mp;function kQ(){mp=void 0}const no={now:()=>(mp===void 0&&no.set($r.isProcessing||DQ.useManualTiming?$r.timestamp:performance.now()),mp),set:e=>{mp=e,queueMicrotask(kQ)}},ms={x:!1,y:!1};function z7(){return ms.x||ms.y}function OQ(e){return e==="x"||e==="y"?ms[e]?null:(ms[e]=!0,()=>{ms[e]=!1}):ms.x||ms.y?null:(ms.x=ms.y=!0,()=>{ms.x=ms.y=!1})}function IQ(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function q7(e,t){const n=IQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function cA(e){return!(e.pointerType==="touch"||z7())}function LQ(e,t,n={}){const[r,i,s]=q7(e,n),o=u=>{if(!cA(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{cA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}const W7=(e,t)=>t?e===t?!0:W7(e,t.parentElement):!1,X3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,BQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function VQ(e){return BQ.has(e.tagName)||e.tabIndex!==-1}const Ff=new WeakSet;function fA(e){return t=>{t.key==="Enter"&&e(t)}}function f1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const NQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fA(()=>{if(Ff.has(n))return;f1(n,"down");const i=fA(()=>{f1(n,"up")}),s=()=>f1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dA(e){return X3(e)&&!z7()}function jQ(e,t,n={}){const[r,i,s]=q7(e,n),o=u=>{const l=u.currentTarget;if(!dA(u)||Ff.has(l))return;Ff.add(l);const d=t(l,u),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!dA(b)||!Ff.has(l))&&(Ff.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||W7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u instanceof HTMLElement&&(u.addEventListener("focus",d=>NQ(d,i)),!VQ(u)&&u.tabIndex===null&&(u.tabIndex=0))}),s}const hA=30,KQ=e=>!isNaN(parseFloat(e)),Kf={current:void 0};let UQ=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=no.now();this.updatedAt!==s&&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=no.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=KQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Jm(!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 W3);const r=this.events[t].add(n);return t==="change"?()=>{r(),mn.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 Kf.current&&Kf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=no.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hA);return B7(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 uc(e,t){return new UQ(e,t)}const H7=A.createContext({strict:!1}),pA={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"]},lc={};for(const e in pA)lc[e]={isEnabled:t=>pA[e].some(n=>!!t[n])};function zQ(e){for(const t in e)lc[t]={...lc[t],...e[t]}}const qQ=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 Jp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qQ.has(e)}let G7=e=>!Jp(e);function WQ(e){e&&(G7=t=>t.startsWith("on")?!Jp(t):e(t))}try{WQ(require("@emotion/is-prop-valid").default)}catch{}function HQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(G7(i)||n===!0&&Jp(i)||!t&&!Jp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function GQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Jm(!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 Qm=A.createContext({});function eg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ud(e){return typeof e=="string"||Array.isArray(e)}const J3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Q3=["initial",...J3];function tg(e){return eg(e.animate)||Q3.some(t=>ud(e[t]))}function Y7(e){return!!(tg(e)||e.variants)}function YQ(e,t){if(tg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ud(n)?n:void 0,animate:ud(r)?r:void 0}}return e.inherit!==!1?t:{}}function ZQ(e){const{initial:t,animate:n}=YQ(e,A.useContext(Qm));return A.useMemo(()=>({initial:t,animate:n}),[mA(t),mA(n)])}function mA(e){return Array.isArray(e)?e.join(" "):e}const XQ=Symbol.for("motionComponentSymbol");function Rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function JQ(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Rl(n)&&(n.current=r))},[t])}const e$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QQ="framerAppearId",Z7="data-"+e$(QQ),X7=A.createContext({});function eee(e,t,n,r,i){var s,o;const{visualElement:u}=A.useContext(Qm),l=A.useContext(H7),d=A.useContext(j3),h=A.useContext(K3).reducedMotion,m=A.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=A.useContext(X7);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&tee(m.current,n,i,b);const $=A.useRef(!1);A.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[Z7],D=A.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return L7(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Z3.render(g.render),D.current&&g.animationState&&g.animationState.animateChanges())}),A.useEffect(()=>{g&&(!D.current&&g.animationState&&g.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),D.current=!1))}),g}function tee(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:J7(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&Rl(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function J7(e){if(e)return e.options.allowProjection!==!1?e.projection:J7(e.parent)}function nee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&zQ(e);function u(d,h){let m;const g={...A.useContext(K3),...d,layoutId:ree(d)},{isStatic:b}=g,$=ZQ(d),w=r(d,b);if(!b&&N3){iee(g,e);const D=see(g);m=D.MeasureLayout,$.visualElement=eee(i,w,g,t,D.ProjectionNode)}return Uo.jsxs(Qm.Provider,{value:$,children:[m&&$.visualElement?Uo.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,JQ(w,$.visualElement,h),w,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=A.forwardRef(u);return l[XQ]=i,l}function ree({layoutId:e}){const t=A.useContext(I7).id;return t&&e!==void 0?t+"-"+e:e}function iee(e,t){const n=A.useContext(H7).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?Sc(!1,r):io(!1,r)}}function see(e){const{drag:t,layout:n}=lc;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 Q7=e=>t=>typeof t=="string"&&t.startsWith(e),t$=Q7("--"),oee=Q7("var(--"),n$=e=>oee(e)?aee.test(e.split("/*")[0].trim()):!1,aee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ld={};function uee(e){for(const t in e)ld[t]=e[t],t$(t)&&(ld[t].isCSSVariable=!0)}const Ec=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ku=new Set(Ec);function ek(e,{layout:t,layoutId:n}){return Ku.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ld[e]||e==="opacity")}const xr=e=>!!(e&&e.getVelocity),tk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ho=(e,t,n)=>n>t?t:n<e?e:n,Dc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cd={...Dc,transform:e=>Ho(0,1,e)},Uh={...Dc,default:1},Ld=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pa=Ld("deg"),ro=Ld("%"),Dt=Ld("px"),lee=Ld("vh"),cee=Ld("vw"),gA={...ro,parse:e=>ro.parse(e)/100,transform:e=>ro.transform(e*100)},fee={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt},dee={rotate:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:Uh,scaleX:Uh,scaleY:Uh,scaleZ:Uh,skew:pa,skewX:pa,skewY:pa,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:cd,originX:gA,originY:gA,originZ:Dt},vA={...Dc,transform:Math.round},r$={...fee,...dee,zIndex:vA,size:Dt,fillOpacity:cd,strokeOpacity:cd,numOctaves:vA},hee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pee=Ec.length;function mee(e,t,n){let r="",i=!0;for(let s=0;s<pee;s++){const o=Ec[s],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=tk(u,r$[o]);if(!l){i=!1;const h=hee[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function i$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const l in t){const d=t[l];if(Ku.has(l)){o=!0;continue}else if(t$(l)){i[l]=d;continue}else{const h=tk(d,r$[l]);l.startsWith("origin")?(u=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=mee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const s$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nk(e,t,n){for(const r in t)!xr(t[r])&&!ek(r,n)&&(e[r]=t[r])}function gee({transformTemplate:e},t){return A.useMemo(()=>{const n=s$();return i$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vee(e,t){const n=e.style||{},r={};return nk(r,n,e),Object.assign(r,gee(e,t)),r}function yee(e,t){const n={},r=vee(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 bee=["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 o$(e){return typeof e!="string"||e.includes("-")?!1:!!(bee.indexOf(e)>-1||/[A-Z]/u.test(e))}const $ee={offset:"stroke-dashoffset",array:"stroke-dasharray"},xee={offset:"strokeDashoffset",array:"strokeDasharray"};function wee(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?$ee:xee;e[s.offset]=Dt.transform(-r);const o=Dt.transform(t),u=Dt.transform(n);e[s.array]=`${o} ${u}`}function yA(e,t,n){return typeof e=="string"?e:Dt.transform(t+n*e)}function Cee(e,t,n){const r=yA(t,e.x,e.width),i=yA(n,e.y,e.height);return`${r} ${i}`}function a$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(i$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=Cee($,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&wee(g,o,u,l,!1)}const rk=()=>({...s$(),attrs:{}}),u$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function See(e,t,n,r){const i=A.useMemo(()=>{const s=rk();return a$(s,t,u$(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};nk(s,e.style,e),i.style={...s,...i.style}}return i}function Eee(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(o$(n)?See:yee)(r,s,o,n),d=HQ(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>xr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function bA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function l$(e,t,n,r){if(typeof t=="function"){const[i,s]=bA(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=bA(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Kb=e=>Array.isArray(e),Dee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Aee=e=>Kb(e)?e[e.length-1]||0:e;function gp(e){const t=xr(e)?e.get():e;return Dee(t)?t.toValue():t}function Tee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:Pee(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const ik=e=>(t,n)=>{const r=A.useContext(Qm),i=A.useContext(j3),s=()=>Tee(e,t,r,i);return n?s():Id(s)};function Pee(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=gp(s[g]);let{initial:o,animate:u}=e;const l=tg(e),d=Y7(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?u:o;if(m&&typeof m!="boolean"&&!eg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=l$(e,g[b]);if($){const{transitionEnd:w,transition:D,...S}=$;for(const C in S){let T=S[C];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[C]=T)}for(const C in w)i[C]=w[C]}}}return i}function c$(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xr(i[o])||t.style&&xr(t.style[o])||ek(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const _ee={useVisualState:ik({scrapeMotionValuesFromProps:c$,createRenderState:s$})};function sk(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 ok(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const ak=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 uk(e,t,n,r){ok(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ak.has(i)?i:e$(i),t.attrs[i])}function lk(e,t,n){const r=c$(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const s=Ec.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const $A=["x","y","width","height","cx","cy","r"],Mee={useVisualState:ik({scrapeMotionValuesFromProps:lk,createRenderState:rk,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(Ku.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<$A.length;u++){const l=$A[u];e[l]!==t[l]&&(o=!0)}o&&mn.read(()=>{sk(n,r),mn.render(()=>{a$(r,i,u$(n.tagName),e.transformTemplate),uk(n,r)})})}})};function Ree(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...o$(r)?Mee:_ee,preloadedFeatures:e,useRender:Eee(i),createVisualElement:t,Component:r};return nee(o)}}function fd(e,t,n){const r=e.getProps();return l$(r,t,n!==void 0?n:r.custom,e)}const ck=new Set(["width","height","top","left","right","bottom",...Ec]);function Fee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uc(n))}function kee(e,t){const n=fd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=Aee(s[o]);Fee(e,o,u)}}function Oee(e){return!!(xr(e)&&e.add)}function Ub(e,t){const n=e.getValue("willChange");if(Oee(n))return n.add(t)}function fk(e){return e.props[Z7]}const dk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Iee=1e-7,Lee=12;function Bee(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=dk(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Iee&&++u<Lee);return o}function Bd(e,t,n,r){if(e===t&&n===r)return ui;const i=s=>Bee(s,0,1,e,n);return s=>s===0||s===1?s:dk(i(s),t,r)}const hk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pk=e=>t=>1-e(1-t),mk=Bd(.33,1.53,.69,.99),f$=pk(mk),gk=hk(f$),vk=e=>(e*=2)<1?.5*f$(e):.5*(2-Math.pow(2,-10*(e-1))),d$=e=>1-Math.sin(Math.acos(e)),yk=pk(d$),bk=hk(d$),$k=e=>/^0[^.\s]+$/u.test(e);function Vee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$k(e):!0}const Uf=e=>Math.round(e*1e5)/1e5,h$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nee(e){return e==null}const jee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p$=(e,t)=>n=>!!(typeof n=="string"&&jee.test(n)&&n.startsWith(e)||t&&!Nee(n)&&Object.prototype.hasOwnProperty.call(n,t)),xk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(h$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Kee=e=>Ho(0,255,e),d1={...Dc,transform:e=>Math.round(Kee(e))},vu={test:p$("rgb","red"),parse:xk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+d1.transform(e)+", "+d1.transform(t)+", "+d1.transform(n)+", "+Uf(cd.transform(r))+")"};function Uee(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 zb={test:p$("#"),parse:Uee,transform:vu.transform},Fl={test:p$("hsl","hue"),parse:xk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ro.transform(Uf(t))+", "+ro.transform(Uf(n))+", "+Uf(cd.transform(r))+")"},Ar={test:e=>vu.test(e)||zb.test(e)||Fl.test(e),parse:e=>vu.test(e)?vu.parse(e):Fl.test(e)?Fl.parse(e):zb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vu.transform(e):Fl.transform(e)},zee=/(?:#[\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(h$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(zee))===null||n===void 0?void 0:n.length)||0)>0}const wk="number",Ck="color",Wee="var",Hee="var(",xA="${}",Gee=/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 dd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Gee,l=>(Ar.test(l)?(r.color.push(s),i.push(Ck),n.push(Ar.parse(l))):l.startsWith(Hee)?(r.var.push(s),i.push(Wee),n.push(l)):(r.number.push(s),i.push(wk),n.push(parseFloat(l))),++s,xA)).split(xA);return{values:n,split:u,indexes:r,types:i}}function Sk(e){return dd(e).values}function Ek(e){const{split:t,types:n}=dd(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===wk?s+=Uf(i[o]):u===Ck?s+=Ar.transform(i[o]):s+=i[o]}return s}}const Yee=e=>typeof e=="number"?0:e;function Zee(e){const t=Sk(e);return Ek(e)(t.map(Yee))}const Aa={test:qee,parse:Sk,createTransformer:Ek,getAnimatableNone:Zee},Xee=new Set(["brightness","contrast","saturate","opacity"]);function Jee(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(h$)||[];if(!r)return e;const i=n.replace(r,"");let s=Xee.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qee=/\b([a-z-]*)\(.*?\)/gu,qb={...Aa,getAnimatableNone:e=>{const t=e.match(Qee);return t?t.map(Jee).join(" "):e}},ete={...r$,color:Ar,backgroundColor:Ar,outlineColor:Ar,fill:Ar,stroke:Ar,borderColor:Ar,borderTopColor:Ar,borderRightColor:Ar,borderBottomColor:Ar,borderLeftColor:Ar,filter:qb,WebkitFilter:qb},Dk=e=>ete[e];function Ak(e,t){let n=Dk(e);return n!==qb&&(n=Aa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const tte=new Set(["auto","none","0"]);function nte(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!tte.has(s)&&dd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Ak(n,i)}const yu=e=>e*180/Math.PI,Wb=e=>{const t=yu(Math.atan2(e[1],e[0]));return Hb(t)},rte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wb,rotateZ:Wb,skewX:e=>yu(Math.atan(e[1])),skewY:e=>yu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Hb=e=>(e=e%360,e<0&&(e+=360),e),wA=Wb,CA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),SA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ite={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:CA,scaleY:SA,scale:e=>(CA(e)+SA(e))/2,rotateX:e=>Hb(yu(Math.atan2(e[6],e[5]))),rotateY:e=>Hb(yu(Math.atan2(-e[2],e[0]))),rotateZ:wA,rotate:wA,skewX:e=>yu(Math.atan(e[4])),skewY:e=>yu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function EA(e){return e.includes("scale")?1:0}function Gb(e,t){if(!e||e==="none")return EA(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ite,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=rte,i=u}if(!i)return EA(t);const s=r[t],o=i[1].split(",").map(ote);return typeof s=="function"?s(o):o[s]}const ste=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Gb(n,t)};function ote(e){return parseFloat(e.trim())}const DA=e=>e===Dc||e===Dt,ate=new Set(["x","y","z"]),ute=Ec.filter(e=>!ate.has(e));function lte(e){const t=[];return ute.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Gb(t,"x"),y:(e,{transform:t})=>Gb(t,"y")};cc.translateX=cc.x;cc.translateY=cc.y;const Eu=new Set;let Yb=!1,Zb=!1;function Tk(){if(Zb){const e=Array.from(Eu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=lte(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(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zb=!1,Yb=!1,Eu.forEach(e=>e.complete()),Eu.clear()}function Pk(){Eu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zb=!0)})}function cte(){Pk(),Tk()}let m$=class{constructor(t,n,r,i,s,o=!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=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Eu.add(this),Yb||(Yb=!0,mn.read(Pk),mn.resolveKeyframes(Tk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Eu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Eu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const _k=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dte(e){const t=fte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const hte=4;function Mk(e,t,n=1){io(n<=hte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=dte(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return _k(o)?parseFloat(o):o}return n$(i)?Mk(i,t,n+1):i}const Rk=e=>t=>t.test(e),pte={test:e=>e==="auto",parse:e=>e},Fk=[Dc,Dt,ro,pa,cee,lee,pte],AA=e=>Fk.find(Rk(e));let kk=class extends m${constructor(t,n,r,i,s){super(t,n,r,i,s,!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 d=t[l];if(typeof d=="string"&&(d=d.trim(),n$(d))){const h=Mk(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ck.has(r)||t.length!==2)return;const[i,s]=t,o=AA(i),u=AA(s);if(o!==u)if(DA(o)&&DA(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Vee(t[i])&&r.push(i);r.length&&nte(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=cc[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 s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=cc[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,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const TA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Aa.test(e)||e==="0")&&!e.startsWith("url("));function mte(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 gte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=TA(i,t),u=TA(s,t);return Sc(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:mte(e)||(n==="spring"||G3(n))&&r}const vte=e=>e!==null;function ng(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(vte),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const yte=40;let Ok=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=no.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=no.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!gte(t,r,i,s))if(o)this.options.duration=0;else{l&&l(ng(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Pn=(e,t,n)=>e+(t-e)*n;function h1(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 bte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=h1(l,u,e+1/3),s=h1(l,u,e),o=h1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Qp(e,t){return n=>n>0?t:e}const p1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$te=[zb,vu,Fl],xte=e=>$te.find(t=>t.test(e));function PA(e){const t=xte(e);if(Sc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Fl&&(n=bte(n)),n}const _A=(e,t)=>{const n=PA(e),r=PA(t);if(!n||!r)return Qp(e,t);const i={...n};return s=>(i.red=p1(n.red,r.red,s),i.green=p1(n.green,r.green,s),i.blue=p1(n.blue,r.blue,s),i.alpha=Pn(n.alpha,r.alpha,s),vu.transform(i))},wte=(e,t)=>n=>t(e(n)),Vd=(...e)=>e.reduce(wte),Xb=new Set(["none","hidden"]);function Cte(e,t){return Xb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ste(e,t){return n=>Pn(e,t,n)}function g$(e){return typeof e=="number"?Ste:typeof e=="string"?n$(e)?Qp:Ar.test(e)?_A:Ate:Array.isArray(e)?Ik:typeof e=="object"?Ar.test(e)?_A:Ete:Qp}function Ik(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>g$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Ete(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=g$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Dte(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const Ate=(e,t)=>{const n=Aa.createTransformer(t),r=dd(e),i=dd(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?Cte(e,t):Vd(Ik(Dte(r,i),i.values),n):(Sc(!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.`),Qp(e,t))};function Lk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):g$(e)(e,t)}const Tte=5;function Bk(e,t,n){const r=Math.max(t-Tte,0);return B7(n-e(r),t-r)}const Mn={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},MA=.001;function Pte({duration:e=Mn.duration,bounce:t=Mn.bounce,velocity:n=Mn.velocity,mass:r=Mn.mass}){let i,s;Sc(e<=to(Mn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Ho(Mn.minDamping,Mn.maxDamping,o),e=Ho(Mn.minDuration,Mn.maxDuration,jo(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=Jb(d,o),$=Math.exp(-m);return MA-g/b*$},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,$=Math.exp(-m),w=Jb(Math.pow(d,2),o);return(-i(d)+MA>0?-1:1)*((g-b)*$)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Mte(i,s,u);if(e=to(e),isNaN(l))return{stiffness:Mn.stiffness,damping:Mn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const _te=12;function Mte(e,t,n){let r=n;for(let i=1;i<_te;i++)r=r-e(r)/t(r);return r}function Jb(e,t){return e*Math.sqrt(1-t*t)}const Rte=["duration","bounce"],Fte=["stiffness","damping","mass"];function RA(e,t){return t.some(n=>e[n]!==void 0)}function kte(e){let t={velocity:Mn.velocity,stiffness:Mn.stiffness,damping:Mn.damping,mass:Mn.mass,isResolvedFromDuration:!1,...e};if(!RA(e,Fte)&&RA(e,Rte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ho(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Mn.mass,stiffness:i,damping:s}}else{const n=Pte(e);t={...t,...n,mass:Mn.mass},t.isResolvedFromDuration=!0}return t}function Vk(e=Mn.visualDuration,t=Mn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=kte({...n,velocity:-jo(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(l*h)),D=o-s,S=jo(Math.sqrt(l/h)),C=Math.abs(D)<5;r||(r=C?Mn.restSpeed.granular:Mn.restSpeed.default),i||(i=C?Mn.restDelta.granular:Mn.restDelta.default);let T;if(w<1){const M=Jb(S,w);T=k=>{const N=Math.exp(-w*S*k);return o-N*(($+w*S*D)/M*Math.sin(M*k)+D*Math.cos(M*k))}}else if(w===1)T=M=>o-Math.exp(-S*M)*(D+($+S*D)*M);else{const M=S*Math.sqrt(w*w-1);T=k=>{const N=Math.exp(-w*S*k),F=Math.min(M*k,300);return o-N*(($+w*S*D)*Math.sinh(F)+M*D*Math.cosh(F))/M}}const O={calculatedDuration:b&&m||null,next:M=>{const k=T(M);if(b)u.done=M>=m;else{let N=0;w<1&&(N=M===0?to($):Bk(T,M,k));const F=Math.abs(N)<=r,ae=Math.abs(o-k)<=i;u.done=F&&ae}return u.value=u.done?o:k,u},toString:()=>{const M=Math.min(V7(O),Nb),k=N7(N=>O.next(M*N).value,M,30);return M+"ms "+k}};return O}function FA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,$=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let w=n*t;const D=m+w,S=o===void 0?D:o(D);S!==D&&(w=S-m);const C=F=>-w*Math.exp(-F/r),T=F=>S+C(F),O=F=>{const ae=C(F),oe=T(F);g.done=Math.abs(ae)<=d,g.value=g.done?S:oe};let M,k;const N=F=>{b(g.value)&&(M=F,k=Vk({keyframes:[g.value,$(g.value)],velocity:Bk(T,F,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:F=>{let ae=!1;return!k&&M===void 0&&(ae=!0,O(F),N(F)),M!==void 0&&F>=M?k.next(F-M):(!ae&&O(F),g)}}}const Ote=Bd(.42,0,1,1),Ite=Bd(0,0,.58,1),Nk=Bd(.42,0,.58,1),Lte=e=>Array.isArray(e)&&typeof e[0]!="number",kA={linear:ui,easeIn:Ote,easeInOut:Nk,easeOut:Ite,circIn:d$,circInOut:bk,circOut:yk,backIn:f$,backInOut:gk,backOut:mk,anticipate:vk},OA=e=>{if(Y3(e)){io(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Bd(t,n,r,i)}else if(typeof e=="string")return io(kA[e]!==void 0,`Invalid easing type '${e}'`),kA[e];return e};function Bte(e,t,n){const r=[],i=n||Lk,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ui:t;u=Vd(l,u)}r.push(u)}return r}function jk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(io(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Bte(t,r,i),l=u.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=ac(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Ho(e[0],e[s-1],h)):d}function Vte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ac(0,t,r);e.push(Pn(n,1,i))}}function Nte(e){const t=[0];return Vte(t,e.length-1),t}function jte(e,t){return e.map(n=>n*t)}function Kte(e,t){return e.map(()=>t||Nk).splice(0,e.length-1)}function zf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Lte(r)?r.map(OA):OA(r),s={done:!1,value:t[0]},o=jte(n&&n.length===t.length?n:Nte(t),e),u=jk(o,t,{ease:Array.isArray(i)?i:Kte(t,i)});return{calculatedDuration:e,next:l=>(s.value=u(l),s.done=l>=e,s)}}const Ute=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mn.update(t,!0),stop:()=>Wo(t),now:()=>$r.isProcessing?$r.timestamp:no.now()}},zte={decay:FA,inertia:FA,tween:zf,keyframes:zf,spring:Vk},qte=e=>e/100;let v$=class extends Ok{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:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||m$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,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:s,velocity:o=0}=this.options,u=G3(n)?n:zte[n]||zf;let l,d;process.env.NODE_ENV!=="production"&&u!==zf&&io(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==zf&&typeof t[0]!="number"&&(l=Vd(qte,Lk(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});s==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=V7(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}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:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:w,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/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 S=this.currentTime-g*(this.speed>=0?1:-1),C=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const F=Math.min(this.currentTime,h)/m;let ae=Math.floor(F),oe=F%1;!oe&&F>=1&&(oe=1),oe===1&&ae--,ae=Math.min(ae,b+1),!!(ae%2)&&($==="reverse"?(oe=1-oe,w&&(oe-=w/m)):$==="mirror"&&(O=o)),T=Ho(0,1,oe)*m}const M=C?{done:!1,value:l[0]}:O.next(T);u&&(M.value=u(M.value));let{done:k}=M;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(M.value=ng(l,this.options,i)),D&&D(M.value),N&&this.finish(),M}get duration(){const{resolved:t}=this;return t?jo(t.calculatedDuration):0}get time(){return jo(this.currentTime)}set time(t){t=to(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=jo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Ute,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),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 Wte=new Set(["opacity","clipPath","filter","transform"]);function Hte(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=K7(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Gte=q3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),em=10,Yte=2e4;function Zte(e){return G3(e.type)||e.type==="spring"||!j7(e.ease)}function Xte(e,t){const n=new v$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Yte;)r=n.sample(s),i.push(r.value),s+=em;return{times:void 0,keyframes:i,duration:s-em,ease:"linear"}}const Kk={anticipate:vk,backInOut:gk,circInOut:bk};function Jte(e){return e in Kk}let IA=class extends Ok{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new kk(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&Xp()&&Jte(s)&&(s=Kk[s]),Zte(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...w}=this.options,D=Xte(t,w);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=Hte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(lA(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(ng(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=to(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 ui;const{animation:r}=n;lA(r,t)}return ui}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:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new v$({...b,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),w=to(this.time);d.setWithVelocity($.sample(w-em).value,$.sample(w).value,em)}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:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return Gte()&&r&&Wte.has(r)&&(r!=="transform"||!d)&&!l&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}};const Qte={type:"spring",stiffness:500,damping:25,restSpeed:10},ene=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tne={type:"keyframes",duration:.8},nne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rne=(e,{keyframes:t})=>t.length>2?tne:Ku.has(e)?e.startsWith("scale")?ene(t[1]):Qte:nne;function ine({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const y$=(e,t,n,r={},i,s)=>o=>{const u=H3(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-to(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};ine(u)||(h={...h,...rne(e,h)}),h.duration&&(h.duration=to(h.duration)),h.repeatDelay&&(h.repeatDelay=to(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const g=ng(h.keyframes,u);if(g!==void 0)return mn.update(()=>{h.onUpdate(g),h.onComplete()}),new PQ([])}return!s&&IA.supports(h)?new IA(h):new v$(h)};function sne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Uk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),b=l[m];if(b===void 0||h&&sne(h,m))continue;const $={delay:n,...H3(o||{},m)};let w=!1;if(window.MotionHandoffAnimation){const S=fk(e);if(S){const C=window.MotionHandoffAnimation(S,m,mn);C!==null&&($.startTime=C,w=!0)}}Ub(e,m),g.start(y$(m,g,b,e.shouldReduceMotion&&ck.has(m)?{type:!1}:$,e,w));const D=g.animation;D&&d.push(D)}return u&&Promise.all(d).then(()=>{mn.update(()=>{u&&kee(e,u)})}),d}function Qb(e,t,n={}){var r;const i=fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Uk(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=s;return one(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,h]=l==="beforeChildren"?[o,u]:[u,o];return d().then(()=>h())}else return Promise.all([o(),u(n.delay)])}function one(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(ane).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(Qb(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function ane(e,t){return e.sortNodePosition(t)}function une(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Qb(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Qb(e,t,n);else{const i=typeof t=="function"?fd(e,t,n.custom):t;r=Promise.all(Uk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function zk(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 lne=Q3.length;function qk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<lne;n++){const r=Q3[n],i=e.props[r];(ud(i)||i===!1)&&(t[r]=i)}return t}const cne=[...J3].reverse(),fne=J3.length;function dne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>une(e,n,r)))}function hne(e){let t=dne(e),n=LA(),r=!0;const i=l=>(d,h)=>{var m;const g=fd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=qk(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let D=0;D<fne;D++){const S=cne[D],C=n[S],T=d[S]!==void 0?d[S]:h[S],O=ud(T),M=S===l?C.isActive:null;M===!1&&($=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...b},!C.isActive&&M===null||!T&&!C.prevProp||eg(T)||typeof T=="boolean")continue;const N=pne(C.prevProp,T);let F=N||S===l&&C.isActive&&!k&&O||D>$&&O,ae=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(i(S),{});M===!1&&(W={});const{prevResolvedValues:we={}}=C,ne={...we,...W},se=j=>{F=!0,g.has(j)&&(ae=!0,g.delete(j)),C.needsAnimating[j]=!0;const B=e.getValue(j);B&&(B.liveStyle=!1)};for(const j in ne){const B=W[j],ge=we[j];if(b.hasOwnProperty(j))continue;let U=!1;Kb(B)&&Kb(ge)?U=!zk(B,ge):U=B!==ge,U?B!=null?se(j):g.add(j):B!==void 0&&g.has(j)?se(j):C.protectedKeys[j]=!0}C.prevProp=T,C.prevResolvedValues=W,C.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(k&&N)||ae)&&m.push(...oe.map(j=>({animation:j,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=fd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const C=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=C??null}),m.push({animation:D})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=o(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=LA(),r=!0}}}function pne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zk(t,e):!1}function ou(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LA(){return{animate:ou(!0),whileInView:ou(),whileHover:ou(),whileTap:ou(),whileDrag:ou(),whileFocus:ou(),exit:ou()}}let Fa=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},mne=class extends Fa{constructor(t){super(t),t.animationState||(t.animationState=hne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();eg(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)}},gne=0,vne=class extends Fa{constructor(){super(...arguments),this.id=gne++}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 yne={animation:{Feature:mne},exit:{Feature:vne}};function hd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Nd(e){return{point:{x:e.pageX,y:e.pageY}}}const bne=e=>t=>X3(t)&&e(t,Nd(t));function qf(e,t,n,r){return hd(e,t,bne(n),r)}function Wk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function $ne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xne(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Hk=1e-4,wne=1-Hk,Cne=1+Hk,Gk=.01,Sne=0-Gk,Ene=0+Gk;function Ur(e){return e.max-e.min}function Dne(e,t,n){return Math.abs(e-t)<=n}function BA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Ur(n)/Ur(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=wne&&e.scale<=Cne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Sne&&e.translate<=Ene||isNaN(e.translate))&&(e.translate=0)}function Wf(e,t,n,r){BA(e.x,t.x,n.x,r?r.originX:void 0),BA(e.y,t.y,n.y,r?r.originY:void 0)}function VA(e,t,n){e.min=n.min+t.min,e.max=e.min+Ur(t)}function Ane(e,t,n){VA(e.x,t.x,n.x),VA(e.y,t.y,n.y)}function NA(e,t,n){e.min=t.min-n.min,e.max=e.min+Ur(t)}function Hf(e,t,n){NA(e.x,t.x,n.x),NA(e.y,t.y,n.y)}const jA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kl=()=>({x:jA(),y:jA()}),KA=()=>({min:0,max:0}),Wn=()=>({x:KA(),y:KA()});function Vi(e){return[e("x"),e("y")]}function m1(e){return e===void 0||e===1}function e4({scale:e,scaleX:t,scaleY:n}){return!m1(e)||!m1(t)||!m1(n)}function uu(e){return e4(e)||Yk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yk(e){return UA(e.x)||UA(e.y)}function UA(e){return e&&e!=="0%"}function tm(e,t,n){const r=e-n,i=t*r;return n+i}function zA(e,t,n,r,i){return i!==void 0&&(e=tm(e,i,r)),tm(e,n,r)+t}function t4(e,t=0,n=1,r,i){e.min=zA(e.min,t,n,r,i),e.max=zA(e.max,t,n,r,i)}function Zk(e,{x:t,y:n}){t4(e.x,t.translate,t.scale,t.originPoint),t4(e.y,n.translate,n.scale,n.originPoint)}const qA=.999999999999,WA=1.0000000000001;function Tne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let u=0;u<i;u++){s=n[u],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Il(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zk(e,o)),r&&uu(s.latestValues)&&Il(e,s.latestValues))}t.x<WA&&t.x>qA&&(t.x=1),t.y<WA&&t.y>qA&&(t.y=1)}function Ol(e,t){e.min=e.min+t,e.max=e.max+t}function HA(e,t,n,r,i=.5){const s=Pn(e.min,e.max,i);t4(e,t,n,s,r)}function Il(e,t){HA(e.x,t.x,t.scaleX,t.scale,t.originX),HA(e.y,t.y,t.scaleY,t.scale,t.originY)}function Xk(e,t){return Wk(xne(e.getBoundingClientRect(),t))}function Pne(e,t,n){const r=Xk(e,n),{scroll:i}=t;return i&&(Ol(r.x,i.offset.x),Ol(r.y,i.offset.y)),r}const Jk=({current:e})=>e?e.ownerDocument.defaultView:null,GA=(e,t)=>Math.abs(e-t);function _ne(e,t){const n=GA(e.x,t.x),r=GA(e.y,t.y);return Math.sqrt(n**2+r**2)}class Qk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 m=v1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=_ne(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:$}=m,{timestamp:w}=$r;this.history.push({...$,timestamp:w});const{onStart:D,onMove:S}=this.handlers;g||(D&&D(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=g1(g,this.transformPagePoint),mn.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:b,onSessionEnd:$,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=v1(m.type==="pointercancel"?this.lastMoveEventInfo:g1(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,D),$&&$(m,D)},!X3(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Nd(t),u=g1(o,this.transformPagePoint),{point:l}=u,{timestamp:d}=$r;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,v1(u,this.history)),this.removeListeners=Vd(qf(this.contextWindow,"pointermove",this.handlePointerMove),qf(this.contextWindow,"pointerup",this.handlePointerUp),qf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function g1(e,t){return t?{point:t(e.point)}:e}function YA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function v1({point:e},t){return{point:e,delta:YA(e,eO(t)),offset:YA(e,Mne(t)),velocity:Rne(t,.1)}}function Mne(e){return e[0]}function eO(e){return e[e.length-1]}function Rne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=eO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>to(t)));)n--;if(!r)return{x:0,y:0};const s=jo(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Fne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function ZA(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 kne(e,{top:t,left:n,bottom:r,right:i}){return{x:ZA(e.x,n,i),y:ZA(e.y,t,r)}}function XA(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 One(e,t){return{x:XA(e.x,t.x),y:XA(e.y,t.y)}}function Ine(e,t){let n=.5;const r=Ur(e),i=Ur(t);return i>r?n=ac(t.min,t.max-r,e.min):r>i&&(n=ac(e.min,e.max-i,t.min)),Ho(0,1,n)}function Lne(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 n4=.35;function Bne(e=n4){return e===!1?e=0:e===!0&&(e=n4),{x:JA(e,"left","right"),y:JA(e,"top","bottom")}}function JA(e,t,n){return{min:QA(e,t),max:QA(e,n)}}function QA(e,t){return typeof e=="number"?e:e[t]||0}const Vne=new WeakMap;class Nne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Nd(h).point)},s=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:$}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OQ(g),!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),Vi(D=>{let S=this.getAxisMotionValue(D).get()||0;if(ro.test(S)){const{projection:C}=this.visualElement;if(C&&C.layout){const T=C.layout.layoutBox[D];T&&(S=Ur(T)*(parseFloat(S)/100))}}this.originPoint[D]=S}),$&&mn.postRender(()=>$(h,m)),Ub(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:$,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:D}=m;if(b&&this.currentDirection===null){this.currentDirection=jne(D),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",m.point,D),this.updateAxis("y",m.point,D),this.visualElement.render(),w&&w(h,m)},u=(h,m)=>this.stop(h,m),l=()=>Vi(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Qk(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Jk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&mn.postRender(()=>s(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||!zh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Fne(o,this.constraints[t],this.elastic[t])),s.set(o)}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,s=this.constraints;n&&Rl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=kne(i.layoutBox,n):this.constraints=!1,this.elastic=Bne(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Lne(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rl(t))return!1;const r=t.current;io(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 s=Pne(r,i.root,this.visualElement.getTransformPagePoint());let o=One(i.layout.layoutBox,s);if(n){const u=n($ne(o));this.hasMutatedConstraints=!!u,u&&(o=Wk(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=Vi(h=>{if(!zh(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ub(this.visualElement,t),r.start(y$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(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){Vi(n=>{const{drag:r}=this.getProps();if(!zh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];s.set(t[n]-Pn(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Rl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=Ine({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(o=>{if(!zh(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:d}=this.constraints[o];u.set(Pn(l,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Vne.set(this.visualElement,this);const t=this.visualElement.current,n=qf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Rl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),mn.read(r);const o=hd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=n4,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:u}}}function zh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jne(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Kne extends Fa{constructor(t){super(t),this.removeGroupControls=ui,this.removeListeners=ui,this.controls=new Nne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ui}unmount(){this.removeGroupControls(),this.removeListeners()}}const eT=e=>(t,n)=>{e&&mn.postRender(()=>e(t,n))};class Une extends Fa{constructor(){super(...arguments),this.removePointerDownListener=ui}onPointerDown(t){this.session=new Qk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:eT(t),onStart:eT(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&mn.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=qf(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 vp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=tT(e,t.target.x),r=tT(e,t.target.y);return`${n}% ${r}%`}},zne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Aa.parse(e);if(i.length>5)return r;const s=Aa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const d=Pn(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),s(i)}};class qne extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;uee(Wne),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),vp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||mn.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Z3.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 tO(e){const[t,n]=SQ(),r=A.useContext(I7);return Uo.jsx(qne,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(X7),isPresent:t,safeToRemove:n})}const Wne={borderRadius:{...vf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vf,borderTopRightRadius:vf,borderBottomLeftRadius:vf,borderBottomRightRadius:vf,boxShadow:zne};function Hne(e,t,n){const r=xr(e)?e:uc(e);return r.start(y$("",r,t,n)),r.animation}function Gne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Yne=(e,t)=>e.depth-t.depth;class Zne{constructor(){this.children=[],this.isDirty=!1}add(t){U3(this.children,t),this.isDirty=!0}remove(t){z3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Yne),this.isDirty=!1,this.children.forEach(t)}}function Xne(e,t){const n=no.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Wo(r),e(s-t))};return mn.read(r,!0),()=>Wo(r)}const nO=["TopLeft","TopRight","BottomLeft","BottomRight"],Jne=nO.length,nT=e=>typeof e=="string"?parseFloat(e):e,rT=e=>typeof e=="number"||Dt.test(e);function Qne(e,t,n,r,i,s){i?(e.opacity=Pn(0,n.opacity!==void 0?n.opacity:1,ere(r)),e.opacityExit=Pn(t.opacity!==void 0?t.opacity:1,0,tre(r))):s&&(e.opacity=Pn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Jne;o++){const u=`border${nO[o]}Radius`;let l=iT(t,u),d=iT(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||rT(l)===rT(d)?(e[u]=Math.max(Pn(nT(l),nT(d),r),0),(ro.test(d)||ro.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function iT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ere=rO(0,.5,yk),tre=rO(.5,.95,ui);function rO(e,t,n){return r=>r<e?0:r>t?1:n(ac(e,t,r))}function sT(e,t){e.min=t.min,e.max=t.max}function Ii(e,t){sT(e.x,t.x),sT(e.y,t.y)}function oT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function aT(e,t,n,r,i){return e-=t,e=tm(e,1/n,r),i!==void 0&&(e=tm(e,1/i,r)),e}function nre(e,t=0,n=1,r=.5,i,s=e,o=e){if(ro.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Pn(s.min,s.max,r);e===s&&(u-=t),e.min=aT(e.min,t,n,u,i),e.max=aT(e.max,t,n,u,i)}function uT(e,t,[n,r,i],s,o){nre(e,t[n],t[r],t[i],t.scale,s,o)}const rre=["x","scaleX","originX"],ire=["y","scaleY","originY"];function lT(e,t,n,r){uT(e.x,t,rre,n?n.x:void 0,r?r.x:void 0),uT(e.y,t,ire,n?n.y:void 0,r?r.y:void 0)}function cT(e){return e.translate===0&&e.scale===1}function iO(e){return cT(e.x)&&cT(e.y)}function fT(e,t){return e.min===t.min&&e.max===t.max}function sre(e,t){return fT(e.x,t.x)&&fT(e.y,t.y)}function dT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sO(e,t){return dT(e.x,t.x)&&dT(e.y,t.y)}function hT(e){return Ur(e.x)/Ur(e.y)}function pT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ore{constructor(){this.members=[]}add(t){U3(this.members,t),t.scheduleRender()}remove(t){if(z3(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 s=this.members[i];if(s.isPresent!==!1){r=s;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 are(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const y1=["","X","Y","Z"],ure={visibility:"hidden"},mT=1e3;let lre=0;function b1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",mn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oO(r)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=lre++,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(dre),this.nodes.forEach(vre),this.nodes.forEach(yre),this.nodes.forEach(hre)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Zne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new W3),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Gne(o),this.instance=o;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=Xne(g,250),vp.hasAnimatedSinceResize&&(vp.hasAnimatedSinceResize=!1,this.nodes.forEach(vT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:$})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||Cre,{onLayoutAnimationStart:D,onLayoutAnimationComplete:S}=h.getProps(),C=!this.targetLayout||!sO(this.targetLayout,$),T=!g&&b;if(this.options.layoutRoot||this.resumeFrom||T||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,T);const O={...H3(w,"layout"),onPlay:D,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else g||vT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=$})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&oO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gT);return}this.isUpdating||this.nodes.forEach(mre),this.isUpdating=!1,this.nodes.forEach(gre),this.nodes.forEach(cre),this.nodes.forEach(fre),this.clearAllSnapshots();const u=no.now();$r.delta=Ho(0,1e3/60,u-$r.timestamp),$r.timestamp=u,$r.isProcessing=!0,c1.update.process($r),c1.preRender.process($r),c1.render.process($r),$r.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Z3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pre),this.sharedNodes.forEach($re)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ur(this.snapshot.measuredBox.x)&&!Ur(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!iO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(u||uu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),Sre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return Wn();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Ere))){const{scroll:h}=this.root;h&&(Ol(l.x,h.offset.x),Ol(l.y,h.offset.y))}return l}removeElementScroll(o){var u;const l=Wn();if(Ii(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Ii(l,o),Ol(l.x,m.offset.x),Ol(l.y,m.offset.y))}return l}applyTransform(o,u=!1){const l=Wn();Ii(l,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Il(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),uu(h.latestValues)&&Il(l,h.latestValues)}return uu(this.latestValues)&&Il(l,this.latestValues),l}removeTransform(o){const u=Wn();Ii(u,o);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!uu(d.latestValues))continue;e4(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Ii(h,m),lT(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return uu(this.latestValues)&&lT(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$r.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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 d=!!this.resumingFrom||this!==l;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=$r.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Hf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ane(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ii(this.target,this.layout.layoutBox),Zk(this.target,this.targetDelta)):Ii(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Hf(this.relativeTargetOrigin,this.target,b.target),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||e4(this.parent.latestValues)||Yk(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 o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===$r.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Ii(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;Tne(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=Wn());const{target:$}=u;if(!$){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oT(this.prevProjectionDelta.x,this.projectionDelta.x),oT(this.prevProjectionDelta.y,this.projectionDelta.y)),Wf(this.projectionDelta,this.layoutCorrected,$,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!pT(this.projectionDelta.x,this.prevProjectionDelta.x)||!pT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",$))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kl(),this.projectionDelta=kl(),this.projectionDeltaWithTransform=kl()}setAnimationOrigin(o,u=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=kl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,w=b!==$,D=this.getStack(),S=!D||D.members.length<=1,C=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(wre));this.animationProgress=0;let T;this.mixTargetDelta=O=>{const M=O/1e3;yT(m.x,o.x,M),yT(m.y,o.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xre(this.relativeTarget,this.relativeTargetOrigin,g,M),T&&sre(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Wn()),Ii(T,this.relativeTarget)),w&&(this.animationValues=h,Qne(h,d,this.latestValues,M,C,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mn.update(()=>{vp.hasAnimatedSinceResize=!0,this.currentAnimation=Hne(0,mT,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:h}=o;if(!(!u||!l||!d)){if(this!==o&&this.layout&&d&&uO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Wn();const m=Ur(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Ur(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Ii(u,l),Il(u,h),Wf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ore),this.sharedNodes.get(o).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&b1("z",o,d,this.animationValues);for(let h=0;h<y1.length;h++)b1(`rotate${y1[h]}`,o,d,this.animationValues),b1(`skew${y1[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ure;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=gp(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=gp(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(w.transform=h?h({},""):"none",this.hasProjected=!1),w}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=are(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:b,y:$}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${$.origin*100}% 0`,m.animationValues?d.opacity=m===this?(l=(u=g.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const w in ld){if(g[w]===void 0)continue;const{correct:D,applyTo:S,isCSSVariable:C}=ld[w],T=d.transform==="none"?g[w]:D(g[w],m);if(S){const O=S.length;for(let M=0;M<O;M++)d[S[M]]=T}else C?this.options.visualElement.renderState.vars[w]=T:d[w]=T}return this.options.layoutId&&(d.pointerEvents=m===this?gp(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(gT),this.root.sharedNodes.clear()}}}function cre(e){e.updateLayout()}function fre(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:s}=e.options,o=n.source!==e.layout.source;s==="size"?Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(g);g.min=r[m].min,g.max=g.min+b}):uO(s,n.layoutBox,r)&&Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=kl();Wf(u,r,n.layoutBox);const l=kl();o?Wf(l,e.applyTransform(i,!0),n.measuredBox):Wf(l,r,n.layoutBox);const d=!iO(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Wn();Hf($,n.layoutBox,g.layoutBox);const w=Wn();Hf(w,r,b.layoutBox),sO($,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dre(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 hre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pre(e){e.clearSnapshot()}function gT(e){e.clearMeasurements()}function mre(e){e.isLayoutDirty=!1}function gre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vre(e){e.resolveTargetDelta()}function yre(e){e.calcProjection()}function bre(e){e.resetSkewAndRotation()}function $re(e){e.removeLeadSnapshot()}function yT(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bT(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function xre(e,t,n,r){bT(e.x,t.x,n.x,r),bT(e.y,t.y,n.y,r)}function wre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Cre={duration:.45,ease:[.4,0,.1,1]},$T=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xT=$T("applewebkit/")&&!$T("chrome/")?Math.round:ui;function wT(e){e.min=xT(e.min),e.max=xT(e.max)}function Sre(e){wT(e.x),wT(e.y)}function uO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Dne(hT(t),hT(n),.2)}function Ere(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Dre=aO({attachResizeListener:(e,t)=>hd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),$1={current:void 0},lO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$1.current){const e=new Dre({});e.mount(window),e.setOptions({layoutScroll:!0}),$1.current=e}return $1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Are={pan:{Feature:Une},drag:{Feature:Kne,ProjectionNode:lO,MeasureLayout:tO}};function CT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&mn.postRender(()=>s(t,Nd(t)))}let Tre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=LQ(t,(n,r)=>(CT(this.node,r,"Start"),i=>CT(this.node,i,"End"))))}unmount(){}},Pre=class extends Fa{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=Vd(hd(this.node.current,"focus",()=>this.onFocus()),hd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function ST(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),s=r[i];s&&mn.postRender(()=>s(t,Nd(t)))}let _re=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=jQ(t,(n,r)=>(ST(this.node,r,"Start"),(i,{success:s})=>ST(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const r4=new WeakMap,x1=new WeakMap,Mre=e=>{const t=r4.get(e.target);t&&t(e)},Rre=e=>{e.forEach(Mre)};function Fre({root:e,...t}){const n=e||document;x1.has(n)||x1.set(n,{});const r=x1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Rre,{root:e,...t})),r[i]}function kre(e,t,n){const r=Fre(t);return r4.set(e,n),r.observe(e),()=>{r4.delete(e),r.unobserve(e)}}const Ore={some:0,all:1};let Ire=class extends Fa{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:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ore[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return kre(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Lre(t,n))&&this.startObserver()}unmount(){}};function Lre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Bre={inView:{Feature:Ire},tap:{Feature:_re},focus:{Feature:Pre},hover:{Feature:Tre}},Vre={layout:{ProjectionNode:lO,MeasureLayout:tO}},i4={current:null},cO={current:!1};function Nre(){if(cO.current=!0,!!N3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i4.current=e.matches;e.addListener(t),t()}else i4.current=!1}const jre=[...Fk,Ar,Aa],Kre=e=>jre.find(Rk(e)),Ure=new WeakMap;function zre(e,t,n){for(const r in t){const i=t[r],s=n[r];if(xr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Jm(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(xr(s))e.addValue(r,uc(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,uc(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ET=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let qre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m$,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 b=no.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,mn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=tg(n),this.isVariantNode=Y7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&xr($)&&$.set(l[b],!1)}}mount(t){this.current=t,Ure.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),cO.current||Nre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:i4.current,process.env.NODE_ENV!=="production"&&Jm(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(),Wo(this.notifyUpdate),Wo(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=Ku.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&mn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lc){const n=lc[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ET.length;r++){const i=ET[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=zre(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=uc(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"&&(_k(i)||$k(i))?i=parseFloat(i):!Kre(i)&&Aa.test(n)&&(i=Ak(t,n)),this.setBaseTarget(t,xr(i)?i.get():i)),xr(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 o=l$(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!xr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new W3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},fO=class extends qre{constructor(){super(...arguments),this.KeyframeResolver=kk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Wre(e){return window.getComputedStyle(e)}let Hre=class extends fO{constructor(){super(...arguments),this.type="html",this.renderInstance=ok}readValueFromInstance(t,n){if(Ku.has(n))return ste(t,n);{const r=Wre(t),i=(t$(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Xk(t,n)}build(t,n,r){i$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return c$(t,n,r)}},Gre=class extends fO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&sk(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ku.has(n)){const r=Dk(n);return r&&r.default||0}return n=ak.has(n)?n:e$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return lk(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&mn.postRender(this.updateDimensions)}build(t,n,r){a$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){uk(t,n,r,i)}mount(t){this.isSVGTag=u$(t.tagName),super.mount(t)}};const Yre=(e,t)=>o$(e)?new Gre(t):new Hre(t,{allowProjection:e!==A.Fragment}),Zre=Ree({...yne,...Bre,...Are,...Vre},Yre),dO=GQ(Zre);function hO(e){const t=Id(()=>uc(e)),{isStatic:n}=A.useContext(K3);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function pO(e,t){const n=hO(t()),r=()=>n.set(t());return r(),L7(()=>{const i=()=>mn.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Wo(r)}}),n}const Xre=e=>e&&typeof e=="object"&&e.mix,Jre=e=>Xre(e)?e.mix:void 0;function Qre(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],u=jk(i,s,{mixer:Jre(s[0]),...o});return t?u(r):u}function eie(e){Kf.current=[],e();const t=pO(Kf.current,e);return Kf.current=void 0,t}function tie(e,t,n,r){if(typeof e=="function")return eie(e);const i=typeof t=="function"?t:Qre(t,n,r);return Array.isArray(e)?DT(e,i):DT([e],([s])=>i(s))}function DT(e,t){const n=Id(()=>[]);return pO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const mO=A.createContext(null);function nie(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const s=r>0?1:-1,o=e[i+s];if(!o)return e;const u=e[i],l=o.layout,d=Pn(l.min,l.max,.5);return s===1&&u.layout.max+n>d||s===-1&&u.layout.min+n<d?EQ(e,i,i+s):e}function rie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},o){const u=Id(()=>dO[t]),l=[],d=A.useRef(!1);io(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(oie)},updateOrder:(m,g,b)=>{if(d.current)return;const $=nie(l,m,g,b);l!==$&&(d.current=!0,r($.map(sie).filter(w=>i.indexOf(w)!==-1)))}};return A.useEffect(()=>{d.current=!1}),Uo.jsx(u,{...s,ref:o,ignoreStrict:!0,children:Uo.jsx(mO.Provider,{value:h,children:e})})}const iie=A.forwardRef(rie);function sie(e){return e.value}function oie(e,t){return e.layout.min-t.layout.min}function AT(e,t=0){return xr(e)?e:hO(t)}function aie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...o},u){const l=Id(()=>dO[r]),d=A.useContext(mO),h={x:AT(t.x),y:AT(t.y)},m=tie([h.x,h.y],([w,D])=>w||D?1:"unset");io(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:$}=d;return Uo.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(w,D)=>{const{velocity:S}=D;S[g]&&$(n,h[g].get(),S[g]),i&&i(w,D)},onLayoutMeasure:w=>b(n,w),ref:u,ignoreStrict:!0,children:e})}const uie=A.forwardRef(aie);var yp={exports:{}},lie=yp.exports,TT;function cie(){return TT||(TT=1,function(e,t){(function(n,r){e.exports=r()})(lie,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,s){var o=i.prototype,u=o.format;s.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,w){var D=w&&w.toUpperCase();return $||g[w]||n[w]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,C,T){return C||T.slice(1)})})}(l,d===void 0?{}:d);return u.call(this,h)}}})}(yp)),yp.exports}var fie=cie();const die=ws(fie),PT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},gO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?PT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>PT(i,n,e))}},hie=(e,t)=>{t.shouldUseNativeValidation&&gO(e,t);const n={};for(const r in e){const i=rt(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(pie(t.names||Object.keys(e),r)){const o=Object.assign({},rt(n,r));Xt(o,"root",s),Xt(n,r,o)}else Xt(n,r,s)}return n},pie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function mie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(o,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(d){return s.shouldUseNativeValidation&&gO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:hie((u=o,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=n5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var u,l}))}catch(o){return Promise.reject(o)}}}var kf={exports:{}},gie=kf.exports,_T;function vie(){return _T||(_T=1,function(e,t){(function(n,r){r(t,A)})(gie,function(n,r){function i(se){return se&&typeof se=="object"&&"default"in se?se:{default:se}}var s=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof qi<"u"?qi:typeof self<"u"?self:{},u={exports:{}};(function(se,z){typeof navigator<"u"&&function(K,j){se.exports=j()}(o,function(){var K="http://www.w3.org/2000/svg",j="",B=!1,ge=-999999,U=function(p){B=!!p},G=function(){return B},Se=function(p){j=p},Pe=function(){return j};function ke(c){return document.createElement(c)}function Ie(c,p){var v,x=c.length,P;for(v=0;v<x;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Ze(c){function p(){}return p.prototype=c,p}var Ge=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].pause()},resume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].resume()},setRate:function(v){var x,P=this.audios.length;for(x=0;x<P;x+=1)this.audios[x].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),De=function(){function c(v,x){var P=0,_=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(P=0;P<x;P+=1)_.push(q);return _}function p(v,x){return v==="float32"?new Float32Array(x):v==="int16"?new Int16Array(x):v==="uint8c"?new Uint8ClampedArray(x):c(v,x)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ue(c){return Array.apply(null,{length:c})}var _e=!0,Ve=null,Le="",nt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xt=Math.pow,ln=Math.sqrt,$t=Math.floor,Rt=Math.min,$e=150,Ee=Math.PI/180,Te=.5519;function He(c,p,v,x){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=x<0?-1:1}function et(c,p){this.type=c,this.direction=p<0?-1:1}function Je(c,p,v,x){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=x<0?-1:1}function lt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function bt(c,p){this.type=c,this.target=p}function gn(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Jt(c){this.type="configError",this.nativeError=c}var Ut=function(){var c=0;return function(){return c+=1,Le+"__lottie_element_"+c}}();function Yr(c,p,v){var x,P,_,q,pe,ee,ye,xe;switch(q=Math.floor(c*6),pe=c*6-q,ee=v*(1-p),ye=v*(1-pe*p),xe=v*(1-(1-pe)*p),q%6){case 0:x=v,P=xe,_=ee;break;case 1:x=ye,P=v,_=ee;break;case 2:x=ee,P=v,_=xe;break;case 3:x=ee,P=ye,_=v;break;case 4:x=xe,P=ee,_=v;break;case 5:x=v,P=ee,_=ye;break}return[x,P,_]}function Fr(c,p,v){var x=Math.max(c,p,v),P=Math.min(c,p,v),_=x-P,q,pe=x===0?0:_/x,ee=x/255;switch(x){case P:q=0;break;case c:q=p-v+_*(p<v?6:0),q/=6*_;break;case p:q=v-c+_*2,q/=6*_;break;case v:q=c-p+_*4,q/=6*_;break}return[q,pe,ee]}function rn(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),Yr(v[0],v[1],v[2])}function Pt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),Yr(v[0],v[1],v[2])}function Lt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),Yr(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(x,P,_){return x<0&&(x=0),P<0&&(P=0),_<0&&(_=0),"#"+c[x]+c[P]+c[_]}})();var Yt=function(p){_e=!!p},sr=function(){return _e},Qi=function(p){Ve=p},es=function(){return Ve},Ci=function(p){$e=p},Ds=function(){return $e},ka=function(p){Le=p};function yt(c){return document.createElementNS(K,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var ao=function(){var c=1,p=[],v,x,P={onmessage:function(){},postMessage:function(te){v({data:te})}},_={postMessage:function(te){P.onmessage({data:te})}};function q(R){if(window.Worker&&window.Blob&&G()){var te=new Blob(["var _workerSelf = self; self.onmessage = ",R.toString()],{type:"text/javascript"}),Z=URL.createObjectURL(te);return new Worker(Z)}return v=R,P}function pe(){x||(x=q(function(te){function Z(){function fe(Be,be){var ce,Q,me=Be.length,je,Fe,ct,Tt;for(Q=0;Q<me;Q+=1)if(ce=Be[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Ct=ce.masksProperties;for(Fe=Ct.length,je=0;je<Fe;je+=1)if(Ct[je].pt.k.i)Y(Ct[je].pt.k);else for(Tt=Ct[je].pt.k.length,ct=0;ct<Tt;ct+=1)Ct[je].pt.k[ct].s&&Y(Ct[je].pt.k[ct].s[0]),Ct[je].pt.k[ct].e&&Y(Ct[je].pt.k[ct].e[0])}ce.ty===0?(ce.layers=I(ce.refId,be),fe(ce.layers,be)):ce.ty===4?V(ce.shapes):ce.ty===5&&at(ce)}}function H(Be,be){if(Be){var ce=0,Q=Be.length;for(ce=0;ce<Q;ce+=1)Be[ce].t===1&&(Be[ce].data.layers=I(Be[ce].data.refId,be),fe(Be[ce].data.layers,be))}}function X(Be,be){for(var ce=0,Q=be.length;ce<Q;){if(be[ce].id===Be)return be[ce];ce+=1}return null}function I(Be,be){var ce=X(Be,be);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function V(Be){var be,ce=Be.length,Q,me;for(be=ce-1;be>=0;be-=1)if(Be[be].ty==="sh")if(Be[be].ks.k.i)Y(Be[be].ks.k);else for(me=Be[be].ks.k.length,Q=0;Q<me;Q+=1)Be[be].ks.k[Q].s&&Y(Be[be].ks.k[Q].s[0]),Be[be].ks.k[Q].e&&Y(Be[be].ks.k[Q].e[0]);else Be[be].ty==="gr"&&V(Be[be].it)}function Y(Be){var be,ce=Be.i.length;for(be=0;be<ce;be+=1)Be.i[be][0]+=Be.v[be][0],Be.i[be][1]+=Be.v[be][1],Be.o[be][0]+=Be.v[be][0],Be.o[be][1]+=Be.v[be][1]}function re(Be,be){var ce=be?be.split("."):[100,100,100];return Be[0]>ce[0]?!0:ce[0]>Be[0]?!1:Be[1]>ce[1]?!0:ce[1]>Be[1]?!1:Be[2]>ce[2]?!0:ce[2]>Be[2]?!1:null}var le=function(){var Be=[4,4,14];function be(Q){var me=Q.t.d;Q.t.d={k:[{s:me,t:0}]}}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),he=function(){var Be=[4,7,99];return function(be){if(be.chars&&!re(Be,be.v)){var ce,Q=be.chars.length;for(ce=0;ce<Q;ce+=1){var me=be.chars[ce];me.data&&me.data.shapes&&(V(me.data.shapes),me.data.ip=0,me.data.op=99999,me.data.st=0,me.data.sr=1,me.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},be.chars[ce].t||(me.data.shapes.push({ty:"no"}),me.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Be=[5,7,15];function be(Q){var me=Q.t.p;typeof me.a=="number"&&(me.a={a:0,k:me.a}),typeof me.p=="number"&&(me.p={a:0,k:me.p}),typeof me.r=="number"&&(me.r={a:0,k:me.r})}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),tt=function(){var Be=[4,1,9];function be(Q){var me,je=Q.length,Fe,ct;for(me=0;me<je;me+=1)if(Q[me].ty==="gr")be(Q[me].it);else if(Q[me].ty==="fl"||Q[me].ty==="st")if(Q[me].c.k&&Q[me].c.k[0].i)for(ct=Q[me].c.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].c.k[Fe].s&&(Q[me].c.k[Fe].s[0]/=255,Q[me].c.k[Fe].s[1]/=255,Q[me].c.k[Fe].s[2]/=255,Q[me].c.k[Fe].s[3]/=255),Q[me].c.k[Fe].e&&(Q[me].c.k[Fe].e[0]/=255,Q[me].c.k[Fe].e[1]/=255,Q[me].c.k[Fe].e[2]/=255,Q[me].c.k[Fe].e[3]/=255);else Q[me].c.k[0]/=255,Q[me].c.k[1]/=255,Q[me].c.k[2]/=255,Q[me].c.k[3]/=255}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===4&&be(Q[me].shapes)}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),Qe=function(){var Be=[4,4,18];function be(Q){var me,je=Q.length,Fe,ct;for(me=je-1;me>=0;me-=1)if(Q[me].ty==="sh")if(Q[me].ks.k.i)Q[me].ks.k.c=Q[me].closed;else for(ct=Q[me].ks.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].ks.k[Fe].s&&(Q[me].ks.k[Fe].s[0].c=Q[me].closed),Q[me].ks.k[Fe].e&&(Q[me].ks.k[Fe].e[0].c=Q[me].closed);else Q[me].ty==="gr"&&be(Q[me].it)}function ce(Q){var me,je,Fe=Q.length,ct,Tt,Ct,xn;for(je=0;je<Fe;je+=1){if(me=Q[je],me.hasMask){var zt=me.masksProperties;for(Tt=zt.length,ct=0;ct<Tt;ct+=1)if(zt[ct].pt.k.i)zt[ct].pt.k.c=zt[ct].cl;else for(xn=zt[ct].pt.k.length,Ct=0;Ct<xn;Ct+=1)zt[ct].pt.k[Ct].s&&(zt[ct].pt.k[Ct].s[0].c=zt[ct].cl),zt[ct].pt.k[Ct].e&&(zt[ct].pt.k[Ct].e[0].c=zt[ct].cl)}me.ty===4&&be(me.shapes)}}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}();function Ne(Be){Be.__complete||(tt(Be),le(Be),he(Be),Oe(Be),Qe(Be),fe(Be.layers,Be.assets),H(Be.chars,Be.assets),Be.__complete=!0)}function at(Be){Be.t.a.length===0&&"m"in Be.t.p}var ft={};return ft.completeData=Ne,ft.checkColors=tt,ft.checkChars=he,ft.checkPathProperties=Oe,ft.checkShapes=Qe,ft.completeLayers=fe,ft}if(_.dataManager||(_.dataManager=Z()),_.assetLoader||(_.assetLoader=function(){function fe(X){var I=X.getResponseHeader("content-type");return I&&X.responseType==="json"&&I.indexOf("json")!==-1||X.response&&ci(X.response)==="object"?X.response:X.response&&typeof X.response=="string"?JSON.parse(X.response):X.responseText?JSON.parse(X.responseText):null}function H(X,I,V,Y){var re,le=new XMLHttpRequest;try{le.responseType="json"}catch{}le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200)re=fe(le),V(re);else try{re=fe(le),V(re)}catch(he){Y&&Y(he)}};try{le.open(["G","E","T"].join(""),X,!0)}catch{le.open(["G","E","T"].join(""),I+"/"+X,!0)}le.send()}return{load:H}}()),te.data.type==="loadAnimation")_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.dataManager.completeData(fe),_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})});else if(te.data.type==="complete"){var de=te.data.animation;_.dataManager.completeData(de),_.postMessage({id:te.data.id,payload:de,status:"success"})}else te.data.type==="loadData"&&_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})})}),x.onmessage=function(R){var te=R.data,Z=te.id,de=p[Z];p[Z]=null,te.status==="success"?de.onComplete(te.payload):de.onError&&de.onError()})}function ee(R,te){c+=1;var Z="processId_"+c;return p[Z]={onComplete:R,onError:te},Z}function ye(R,te,Z){pe();var de=ee(te,Z);x.postMessage({type:"loadAnimation",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function xe(R,te,Z){pe();var de=ee(te,Z);x.postMessage({type:"loadData",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function Re(R,te,Z){pe();var de=ee(te,Z);x.postMessage({type:"complete",animation:R,id:de})}return{loadAnimation:ye,loadData:xe,completeAnimation:Re}}(),kc=function(){var c=function(){var H=ke("canvas");H.width=1,H.height=1;var X=H.getContext("2d");return X.fillStyle="rgba(0,0,0,0)",X.fillRect(0,0,1,1),H}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function x(H,X,I){var V="";if(H.e)V=H.p;else if(X){var Y=H.p;Y.indexOf("images/")!==-1&&(Y=Y.split("/")[1]),V=X+Y}else V=I,V+=H.u?H.u:"",V+=H.p;return V}function P(H){var X=0,I=setInterval((function(){var V=H.getBBox();(V.width||X>500)&&(this._imageLoaded(),clearInterval(I)),X+=1}).bind(this),50)}function _(H){var X=x(H,this.assetsPath,this.path),I=yt("image");nt?this.testImageLoaded(I):I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),I.setAttributeNS("http://www.w3.org/1999/xlink","href",X),this._elementHelper.append?this._elementHelper.append(I):this._elementHelper.appendChild(I);var V={img:I,assetData:H};return V}function q(H){var X=x(H,this.assetsPath,this.path),I=ke("img");I.crossOrigin="anonymous",I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),I.src=X;var V={img:I,assetData:H};return V}function pe(H){var X={assetData:H},I=x(H,this.assetsPath,this.path);return ao.loadData(I,(function(V){X.img=V,this._footageLoaded()}).bind(this),(function(){X.img={},this._footageLoaded()}).bind(this)),X}function ee(H,X){this.imagesLoadedCb=X;var I,V=H.length;for(I=0;I<V;I+=1)H[I].layers||(!H[I].t||H[I].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(H[I]))):H[I].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(H[I]))))}function ye(H){this.path=H||""}function xe(H){this.assetsPath=H||""}function Re(H){for(var X=0,I=this.images.length;X<I;){if(this.images[X].assetData===H)return this.images[X].img;X+=1}return null}function R(){this.imagesLoadedCb=null,this.images.length=0}function te(){return this.totalImages===this.loadedAssets}function Z(){return this.totalFootages===this.loadedFootagesCount}function de(H,X){H==="svg"?(this._elementHelper=X,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function fe(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=pe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:ee,setAssetsPath:xe,setPath:ye,loadedImages:te,loadedFootages:Z,destroy:R,getAsset:Re,createImgData:q,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:de},fe}();function qu(){}qu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var x=this._cbs[p],P=0;P<x.length;P+=1)x[P](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var x=0,P=this._cbs[p].length;x<P;)this._cbs[p][x]===v&&(this._cbs[p].splice(x,1),x-=1,P-=1),x+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Oc=function(){function c(p){for(var v=p.split(`\r
|
|
129
|
+
`),x={},P,_=0,q=0;q<v.length;q+=1)P=v[q].split(":"),P.length===2&&(x[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return x}return function(p){for(var v=[],x=0;x<p.length;x+=1){var P=p[x],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[x].cm)}catch{try{_.payload=c(p[x].cm)}catch{_.payload={name:p[x].cm}}}v.push(_)}return v}}(),Wu=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var x=0,P=this.compositions.length;x<P;){if(this.compositions[x].data&&this.compositions[x].data.nm===v)return this.compositions[x].prepareFrame&&this.compositions[x].data.xt&&this.compositions[x].prepareFrame(this.currentFrame),this.compositions[x].compInterface;x+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Oa={},Hu=function(p,v){Oa[p]=v};function ts(c){return Oa[c]}function ns(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(v){return typeof v}:ns=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ns(c)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ut(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=sr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Wu(),this.imagePreloader=new kc,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new He("drawnFrame",0,0,0)};Ie([qu],vt),vt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ts(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ao.loadAnimation(c.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(c){ao.completeAnimation(c,this.configAnimation)},vt.prototype.setData=function(c,p){p&&ns(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},x=c.attributes;v.path=x.getNamedItem("data-animation-path")?x.getNamedItem("data-animation-path").value:x.getNamedItem("data-bm-path")?x.getNamedItem("data-bm-path").value:x.getNamedItem("bm-path")?x.getNamedItem("bm-path").value:"",v.animType=x.getNamedItem("data-anim-type")?x.getNamedItem("data-anim-type").value:x.getNamedItem("data-bm-type")?x.getNamedItem("data-bm-type").value:x.getNamedItem("bm-type")?x.getNamedItem("bm-type").value:x.getNamedItem("data-bm-renderer")?x.getNamedItem("data-bm-renderer").value:x.getNamedItem("bm-renderer")?x.getNamedItem("bm-renderer").value:"canvas";var P=x.getNamedItem("data-anim-loop")?x.getNamedItem("data-anim-loop").value:x.getNamedItem("data-bm-loop")?x.getNamedItem("data-bm-loop").value:x.getNamedItem("bm-loop")?x.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=x.getNamedItem("data-anim-autoplay")?x.getNamedItem("data-anim-autoplay").value:x.getNamedItem("data-bm-autoplay")?x.getNamedItem("data-bm-autoplay").value:x.getNamedItem("bm-autoplay")?x.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=x.getNamedItem("data-name")?x.getNamedItem("data-name").value:x.getNamedItem("data-bm-name")?x.getNamedItem("data-bm-name").value:x.getNamedItem("bm-name")?x.getNamedItem("bm-name").value:"";var q=x.getNamedItem("data-anim-prerender")?x.getNamedItem("data-anim-prerender").value:x.getNamedItem("data-bm-prerender")?x.getNamedItem("data-bm-prerender").value:x.getNamedItem("bm-prerender")?x.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},vt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,x=p.length,P=c.layers,_,q=P.length;for(_=0;_<q;_+=1)for(v=0;v<x;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(x=c.assets.length,v=0;v<x;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,ao.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=es();p&&p.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ao.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=Oc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=es();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,x=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,x)},vt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},vt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},vt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop(x,p,v);this.play()}},vt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},vt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},vt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ns(c[0])==="object"){var v,x=c.length;for(v=0;v<x;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},vt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},vt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},vt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},vt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(c){this.loop=c},vt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},vt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},vt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(c,p,v){try{var x=this.renderer.getElementByPath(c);x.updateDocumentData(p,v)}catch{}},vt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new He(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Je(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new et(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new lt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new bt(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new He(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Je(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new et(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new lt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new bt(c,this))},vt.prototype.triggerRenderFrameError=function(c){var p=new gn(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},vt.prototype.triggerConfigError=function(c){var p=new Jt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var En=function(){var c={},p=[],v=0,x=0,P=0,_=!0,q=!1;function pe(be){for(var ce=0,Q=be.target;ce<x;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,x-=1,Q.isPaused||Re()),ce+=1}function ee(be,ce){if(!be)return null;for(var Q=0;Q<x;){if(p[Q].elem===be&&p[Q].elem!==null)return p[Q].animation;Q+=1}var me=new vt;return R(me,be),me.setData(be,ce),me}function ye(){var be,ce=p.length,Q=[];for(be=0;be<ce;be+=1)Q.push(p[be].animation);return Q}function xe(){P+=1,tt()}function Re(){P-=1}function R(be,ce){be.addEventListener("destroy",pe),be.addEventListener("_active",xe),be.addEventListener("_idle",Re),p.push({elem:ce,animation:be}),x+=1}function te(be){var ce=new vt;return R(ce,null),ce.setParams(be),ce}function Z(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setSpeed(be,ce)}function de(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setDirection(be,ce)}function fe(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.play(be)}function H(be){var ce=be-v,Q;for(Q=0;Q<x;Q+=1)p[Q].animation.advanceTime(ce);v=be,P&&!q?window.requestAnimationFrame(H):_=!0}function X(be){v=be,window.requestAnimationFrame(H)}function I(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.pause(be)}function V(be,ce,Q){var me;for(me=0;me<x;me+=1)p[me].animation.goToAndStop(be,ce,Q)}function Y(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.stop(be)}function re(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.togglePause(be)}function le(be){var ce;for(ce=x-1;ce>=0;ce-=1)p[ce].animation.destroy(be)}function he(be,ce,Q){var me=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,Fe=me.length;for(je=0;je<Fe;je+=1)Q&&me[je].setAttribute("data-bm-type",Q),ee(me[je],be);if(ce&&Fe===0){Q||(Q="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var Tt=ke("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",Q),ct.appendChild(Tt),ee(Tt,be)}}function Oe(){var be;for(be=0;be<x;be+=1)p[be].animation.resize()}function tt(){!q&&P&&_&&(window.requestAnimationFrame(X),_=!1)}function Qe(){q=!0}function Ne(){q=!1,tt()}function at(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setVolume(be,ce)}function ft(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.mute(be)}function Be(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.unmute(be)}return c.registerAnimation=ee,c.loadAnimation=te,c.setSpeed=Z,c.setDirection=de,c.play=fe,c.pause=I,c.stop=Y,c.togglePause=re,c.searchAnimations=he,c.resize=Oe,c.goToAndStop=V,c.destroy=le,c.freeze=Qe,c.unfreeze=Ne,c.setVolume=at,c.mute=ft,c.unmute=Be,c.getRegisteredAnimations=ye,c}(),uo=function(){var c={};c.getBezierEasing=v;var p={};function v(X,I,V,Y,re){var le=re||("bez_"+X+"_"+I+"_"+V+"_"+Y).replace(/\./g,"p");if(p[le])return p[le];var he=new H([X,I,V,Y]);return p[le]=he,he}var x=4,P=.001,_=1e-7,q=10,pe=11,ee=1/(pe-1),ye=typeof Float32Array=="function";function xe(X,I){return 1-3*I+3*X}function Re(X,I){return 3*I-6*X}function R(X){return 3*X}function te(X,I,V){return((xe(I,V)*X+Re(I,V))*X+R(I))*X}function Z(X,I,V){return 3*xe(I,V)*X*X+2*Re(I,V)*X+R(I)}function de(X,I,V,Y,re){var le,he,Oe=0;do he=I+(V-I)/2,le=te(he,Y,re)-X,le>0?V=he:I=he;while(Math.abs(le)>_&&++Oe<q);return he}function fe(X,I,V,Y){for(var re=0;re<x;++re){var le=Z(I,V,Y);if(le===0)return I;var he=te(I,V,Y)-X;I-=he/le}return I}function H(X){this._p=X,this._mSampleValues=ye?new Float32Array(pe):new Array(pe),this._precomputed=!1,this.get=this.get.bind(this)}return H.prototype={get:function(I){var V=this._p[0],Y=this._p[1],re=this._p[2],le=this._p[3];return this._precomputed||this._precompute(),V===Y&&re===le?I:I===0?0:I===1?1:te(this._getTForX(I),Y,le)},_precompute:function(){var I=this._p[0],V=this._p[1],Y=this._p[2],re=this._p[3];this._precomputed=!0,(I!==V||Y!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var I=this._p[0],V=this._p[2],Y=0;Y<pe;++Y)this._mSampleValues[Y]=te(Y*ee,I,V)},_getTForX:function(I){for(var V=this._p[0],Y=this._p[2],re=this._mSampleValues,le=0,he=1,Oe=pe-1;he!==Oe&&re[he]<=I;++he)le+=ee;--he;var tt=(I-re[he])/(re[he+1]-re[he]),Qe=le+tt*ee,Ne=Z(Qe,V,Y);return Ne>=P?fe(I,Qe,V,Y):Ne===0?Qe:de(I,le,le+ee,V,Y)}},c}(),Gu=function(){function c(p){return p.concat(Ue(p.length))}return{double:c}}(),wr=function(){return function(c,p,v){var x=0,P=c,_=Ue(P),q={newElement:pe,release:ee};function pe(){var ye;return x?(x-=1,ye=_[x]):ye=p(),ye}function ee(ye){x===P&&(_=Gu.double(_),P*=2),v&&v(ye),_[x]=ye,x+=1}return q}}(),Yu=function(){function c(){return{addedLength:0,percents:De("float32",Ds()),lengths:De("float32",Ds())}}return wr(8,c)}(),Zu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var x,P=v.lengths.length;for(x=0;x<P;x+=1)Yu.release(v.lengths[x]);v.lengths.length=0}return wr(8,c,p)}();function Ic(){var c=Math;function p(R,te,Z,de,fe,H){var X=R*de+te*fe+Z*H-fe*de-H*R-Z*te;return X>-.001&&X<.001}function v(R,te,Z,de,fe,H,X,I,V){if(Z===0&&H===0&&V===0)return p(R,te,de,fe,X,I);var Y=c.sqrt(c.pow(de-R,2)+c.pow(fe-te,2)+c.pow(H-Z,2)),re=c.sqrt(c.pow(X-R,2)+c.pow(I-te,2)+c.pow(V-Z,2)),le=c.sqrt(c.pow(X-de,2)+c.pow(I-fe,2)+c.pow(V-H,2)),he;return Y>re?Y>le?he=Y-re-le:he=le-re-Y:le>re?he=le-re-Y:he=re-Y-le,he>-1e-4&&he<1e-4}var x=function(){return function(R,te,Z,de){var fe=Ds(),H,X,I,V,Y,re=0,le,he=[],Oe=[],tt=Yu.newElement();for(I=Z.length,H=0;H<fe;H+=1){for(Y=H/(fe-1),le=0,X=0;X<I;X+=1)V=xt(1-Y,3)*R[X]+3*xt(1-Y,2)*Y*Z[X]+3*(1-Y)*xt(Y,2)*de[X]+xt(Y,3)*te[X],he[X]=V,Oe[X]!==null&&(le+=xt(he[X]-Oe[X],2)),Oe[X]=he[X];le&&(le=ln(le),re+=le),tt.percents[H]=Y,tt.lengths[H]=re}return tt.addedLength=re,tt}}();function P(R){var te=Zu.newElement(),Z=R.c,de=R.v,fe=R.o,H=R.i,X,I=R._length,V=te.lengths,Y=0;for(X=0;X<I-1;X+=1)V[X]=x(de[X],de[X+1],fe[X],H[X+1]),Y+=V[X].addedLength;return Z&&I&&(V[X]=x(de[X],de[0],fe[X],H[0]),Y+=V[X].addedLength),te.totalLength=Y,te}function _(R){this.segmentLength=0,this.points=new Array(R)}function q(R,te){this.partialLength=R,this.point=te}var pe=function(){var R={};return function(te,Z,de,fe){var H=(te[0]+"_"+te[1]+"_"+Z[0]+"_"+Z[1]+"_"+de[0]+"_"+de[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!R[H]){var X=Ds(),I,V,Y,re,le,he=0,Oe,tt,Qe=null;te.length===2&&(te[0]!==Z[0]||te[1]!==Z[1])&&p(te[0],te[1],Z[0],Z[1],te[0]+de[0],te[1]+de[1])&&p(te[0],te[1],Z[0],Z[1],Z[0]+fe[0],Z[1]+fe[1])&&(X=2);var Ne=new _(X);for(Y=de.length,I=0;I<X;I+=1){for(tt=Ue(Y),le=I/(X-1),Oe=0,V=0;V<Y;V+=1)re=xt(1-le,3)*te[V]+3*xt(1-le,2)*le*(te[V]+de[V])+3*(1-le)*xt(le,2)*(Z[V]+fe[V])+xt(le,3)*Z[V],tt[V]=re,Qe!==null&&(Oe+=xt(tt[V]-Qe[V],2));Oe=ln(Oe),he+=Oe,Ne.points[I]=new q(Oe,tt),Qe=tt}Ne.segmentLength=he,R[H]=Ne}return R[H]}}();function ee(R,te){var Z=te.percents,de=te.lengths,fe=Z.length,H=$t((fe-1)*R),X=R*te.addedLength,I=0;if(H===fe-1||H===0||X===de[H])return Z[H];for(var V=de[H]>X?-1:1,Y=!0;Y;)if(de[H]<=X&&de[H+1]>X?(I=(X-de[H])/(de[H+1]-de[H]),Y=!1):H+=V,H<0||H>=fe-1){if(H===fe-1)return Z[H];Y=!1}return Z[H]+(Z[H+1]-Z[H])*I}function ye(R,te,Z,de,fe,H){var X=ee(fe,H),I=1-X,V=c.round((I*I*I*R[0]+(X*I*I+I*X*I+I*I*X)*Z[0]+(X*X*I+I*X*X+X*I*X)*de[0]+X*X*X*te[0])*1e3)/1e3,Y=c.round((I*I*I*R[1]+(X*I*I+I*X*I+I*I*X)*Z[1]+(X*X*I+I*X*X+X*I*X)*de[1]+X*X*X*te[1])*1e3)/1e3;return[V,Y]}var xe=De("float32",8);function Re(R,te,Z,de,fe,H,X){fe<0?fe=0:fe>1&&(fe=1);var I=ee(fe,X);H=H>1?1:H;var V=ee(H,X),Y,re=R.length,le=1-I,he=1-V,Oe=le*le*le,tt=I*le*le*3,Qe=I*I*le*3,Ne=I*I*I,at=le*le*he,ft=I*le*he+le*I*he+le*le*V,Be=I*I*he+le*I*V+I*le*V,be=I*I*V,ce=le*he*he,Q=I*he*he+le*V*he+le*he*V,me=I*V*he+le*V*V+I*he*V,je=I*V*V,Fe=he*he*he,ct=V*he*he+he*V*he+he*he*V,Tt=V*V*he+he*V*V+V*he*V,Ct=V*V*V;for(Y=0;Y<re;Y+=1)xe[Y*4]=c.round((Oe*R[Y]+tt*Z[Y]+Qe*de[Y]+Ne*te[Y])*1e3)/1e3,xe[Y*4+1]=c.round((at*R[Y]+ft*Z[Y]+Be*de[Y]+be*te[Y])*1e3)/1e3,xe[Y*4+2]=c.round((ce*R[Y]+Q*Z[Y]+me*de[Y]+je*te[Y])*1e3)/1e3,xe[Y*4+3]=c.round((Fe*R[Y]+ct*Z[Y]+Tt*de[Y]+Ct*te[Y])*1e3)/1e3;return xe}return{getSegmentsLength:P,getNewSegment:Re,getPointInSegment:ye,buildBezierData:pe,pointOnLine2D:p,pointOnLine3D:v}}var Zr=Ic(),st=function(){var c=ge,p=Math.abs;function v(fe,H){var X=this.offsetTime,I;this.propType==="multidimensional"&&(I=De("float32",this.pv.length));for(var V=H.lastIndex,Y=V,re=this.keyframes.length-1,le=!0,he,Oe,tt;le;){if(he=this.keyframes[Y],Oe=this.keyframes[Y+1],Y===re-1&&fe>=Oe.t-X){he.h&&(he=Oe),V=0;break}if(Oe.t-X>fe){V=Y;break}Y<re-1?Y+=1:(V=0,le=!1)}tt=this.keyframesMetadata[Y]||{};var Qe,Ne,at,ft,Be,be,ce=Oe.t-X,Q=he.t-X,me;if(he.to){tt.bezierData||(tt.bezierData=Zr.buildBezierData(he.s,Oe.s||he.e,he.to,he.ti));var je=tt.bezierData;if(fe>=ce||fe<Q){var Fe=fe>=ce?je.points.length-1:0;for(Ne=je.points[Fe].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Fe].point[Qe]}else{tt.__fnct?be=tt.__fnct:(be=uo.getBezierEasing(he.o.x,he.o.y,he.i.x,he.i.y,he.n).get,tt.__fnct=be),at=be((fe-Q)/(ce-Q));var ct=je.segmentLength*at,Tt,Ct=H.lastFrame<fe&&H._lastKeyframeIndex===Y?H._lastAddedLength:0;for(Be=H.lastFrame<fe&&H._lastKeyframeIndex===Y?H._lastPoint:0,le=!0,ft=je.points.length;le;){if(Ct+=je.points[Be].partialLength,ct===0||at===0||Be===je.points.length-1){for(Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe];break}else if(ct>=Ct&&ct<Ct+je.points[Be+1].partialLength){for(Tt=(ct-Ct)/je.points[Be+1].partialLength,Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe]+(je.points[Be+1].point[Qe]-je.points[Be].point[Qe])*Tt;break}Be<ft-1?Be+=1:le=!1}H._lastPoint=Be,H._lastAddedLength=Ct-je.points[Be].partialLength,H._lastKeyframeIndex=Y}}else{var xn,zt,fr,Xn,Bn;if(re=he.s.length,me=Oe.s||he.e,this.sh&&he.h!==1)if(fe>=ce)I[0]=me[0],I[1]=me[1],I[2]=me[2];else if(fe<=Q)I[0]=he.s[0],I[1]=he.s[1],I[2]=he.s[2];else{var jn=_(he.s),Kn=_(me),yr=(fe-Q)/(ce-Q);P(I,x(jn,Kn,yr))}else for(Y=0;Y<re;Y+=1)he.h!==1&&(fe>=ce?at=1:fe<Q?at=0:(he.o.x.constructor===Array?(tt.__fnct||(tt.__fnct=[]),tt.__fnct[Y]?be=tt.__fnct[Y]:(xn=he.o.x[Y]===void 0?he.o.x[0]:he.o.x[Y],zt=he.o.y[Y]===void 0?he.o.y[0]:he.o.y[Y],fr=he.i.x[Y]===void 0?he.i.x[0]:he.i.x[Y],Xn=he.i.y[Y]===void 0?he.i.y[0]:he.i.y[Y],be=uo.getBezierEasing(xn,zt,fr,Xn).get,tt.__fnct[Y]=be)):tt.__fnct?be=tt.__fnct:(xn=he.o.x,zt=he.o.y,fr=he.i.x,Xn=he.i.y,be=uo.getBezierEasing(xn,zt,fr,Xn).get,he.keyframeMetadata=be),at=be((fe-Q)/(ce-Q)))),me=Oe.s||he.e,Bn=he.h===1?he.s[Y]:he.s[Y]+(me[Y]-he.s[Y])*at,this.propType==="multidimensional"?I[Y]=Bn:I=Bn}return H.lastIndex=V,I}function x(fe,H,X){var I=[],V=fe[0],Y=fe[1],re=fe[2],le=fe[3],he=H[0],Oe=H[1],tt=H[2],Qe=H[3],Ne,at,ft,Be,be;return at=V*he+Y*Oe+re*tt+le*Qe,at<0&&(at=-at,he=-he,Oe=-Oe,tt=-tt,Qe=-Qe),1-at>1e-6?(Ne=Math.acos(at),ft=Math.sin(Ne),Be=Math.sin((1-X)*Ne)/ft,be=Math.sin(X*Ne)/ft):(Be=1-X,be=X),I[0]=Be*V+be*he,I[1]=Be*Y+be*Oe,I[2]=Be*re+be*tt,I[3]=Be*le+be*Qe,I}function P(fe,H){var X=H[0],I=H[1],V=H[2],Y=H[3],re=Math.atan2(2*I*Y-2*X*V,1-2*I*I-2*V*V),le=Math.asin(2*X*I+2*V*Y),he=Math.atan2(2*X*Y-2*I*V,1-2*X*X-2*V*V);fe[0]=re/Ee,fe[1]=le/Ee,fe[2]=he/Ee}function _(fe){var H=fe[0]*Ee,X=fe[1]*Ee,I=fe[2]*Ee,V=Math.cos(H/2),Y=Math.cos(X/2),re=Math.cos(I/2),le=Math.sin(H/2),he=Math.sin(X/2),Oe=Math.sin(I/2),tt=V*Y*re-le*he*Oe,Qe=le*he*re+V*Y*Oe,Ne=le*Y*re+V*he*Oe,at=V*he*re-le*Y*Oe;return[Qe,Ne,at,tt]}function q(){var fe=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,X=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(fe===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=X&&fe>=X||this._caching.lastFrame<H&&fe<H))){this._caching.lastFrame>=fe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var I=this.interpolateValue(fe,this._caching);this.pv=I}return this._caching.lastFrame=fe,this.pv}function pe(fe){var H;if(this.propType==="unidimensional")H=fe*this.mult,p(this.v-H)>1e-5&&(this.v=H,this._mdf=!0);else for(var X=0,I=this.v.length;X<I;)H=fe[X]*this.mult,p(this.v[X]-H)>1e-5&&(this.v[X]=H,this._mdf=!0),X+=1}function ee(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var fe,H=this.effectsSequence.length,X=this.kf?this.pv:this.data.k;for(fe=0;fe<H;fe+=1)X=this.effectsSequence[fe](X);this.setVValue(X),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(fe){this.effectsSequence.push(fe),this.container.addDynamicProperty(this)}function xe(fe,H,X,I){this.propType="unidimensional",this.mult=X||1,this.data=H,this.v=X?H.k*X:H.k,this.pv=H.k,this._mdf=!1,this.elem=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function Re(fe,H,X,I){this.propType="multidimensional",this.mult=X||1,this.data=H,this._mdf=!1,this.elem=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var V,Y=H.k.length;for(this.v=De("float32",Y),this.pv=De("float32",Y),this.vel=De("float32",Y),V=0;V<Y;V+=1)this.v[V]=H.k[V]*this.mult,this.pv[V]=H.k[V];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function R(fe,H,X,I){this.propType="unidimensional",this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=H,this.mult=X||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=ye}function te(fe,H,X,I){this.propType="multidimensional";var V,Y=H.k.length,re,le,he,Oe;for(V=0;V<Y-1;V+=1)H.k[V].to&&H.k[V].s&&H.k[V+1]&&H.k[V+1].s&&(re=H.k[V].s,le=H.k[V+1].s,he=H.k[V].to,Oe=H.k[V].ti,(re.length===2&&!(re[0]===le[0]&&re[1]===le[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],re[0]+he[0],re[1]+he[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],le[0]+Oe[0],le[1]+Oe[1])||re.length===3&&!(re[0]===le[0]&&re[1]===le[1]&&re[2]===le[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],re[0]+he[0],re[1]+he[1],re[2]+he[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],le[0]+Oe[0],le[1]+Oe[1],le[2]+Oe[2]))&&(H.k[V].to=null,H.k[V].ti=null),re[0]===le[0]&&re[1]===le[1]&&he[0]===0&&he[1]===0&&Oe[0]===0&&Oe[1]===0&&(re.length===2||re[2]===le[2]&&he[2]===0&&Oe[2]===0)&&(H.k[V].to=null,H.k[V].ti=null));this.effectsSequence=[q.bind(this)],this.data=H,this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=X||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.frameId=-1;var tt=H.k[0].s.length;for(this.v=De("float32",tt),this.pv=De("float32",tt),V=0;V<tt;V+=1)this.v[V]=c,this.pv[V]=c;this._caching={lastFrame:c,lastIndex:0,value:De("float32",tt)},this.addEffect=ye}function Z(fe,H,X,I,V){var Y;if(!H.k.length)Y=new xe(fe,H,I,V);else if(typeof H.k[0]=="number")Y=new Re(fe,H,I,V);else switch(X){case 0:Y=new R(fe,H,I,V);break;case 1:Y=new te(fe,H,I,V);break}return Y.effectsSequence.length&&V.addDynamicProperty(Y),Y}var de={getProp:Z};return de}();function dn(){}dn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var rs=function(){function c(){return De("float32",2)}return wr(8,c)}();function fi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ue(this._maxLength),this.o=Ue(this._maxLength),this.i=Ue(this._maxLength)}fi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=rs.newElement(),this.o[v]=rs.newElement(),this.i[v]=rs.newElement(),v+=1},fi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},fi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ue(this._maxLength)),this.i=this.i.concat(Ue(this._maxLength)),this.o=this.o.concat(Ue(this._maxLength)),this._maxLength*=2},fi.prototype.setXYAt=function(c,p,v,x,P){var _;switch(this._length=Math.max(this._length,x+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[x]||_[x]&&!P)&&(_[x]=rs.newElement()),_[x][0]=c,_[x][1]=p},fi.prototype.setTripleAt=function(c,p,v,x,P,_,q,pe){this.setXYAt(c,p,"v",q,pe),this.setXYAt(v,x,"o",q,pe),this.setXYAt(P,_,"i",q,pe)},fi.prototype.reverse=function(){var c=new fi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,x=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],x[0][0],x[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,q=this._length,pe;for(pe=P;pe<q;pe+=1)c.setTripleAt(p[_][0],p[_][1],x[_][0],x[_][1],v[_][0],v[_][1],pe,!1),_-=1;return c},fi.prototype.length=function(){return this._length};var Zn=function(){function c(){return new fi}function p(P){var _=P._length,q;for(q=0;q<_;q+=1)rs.release(P.v[q]),rs.release(P.i[q]),rs.release(P.o[q]),P.v[q]=null,P.i[q]=null,P.o[q]=null;P._length=0,P.c=!1}function v(P){var _=x.newElement(),q,pe=P._length===void 0?P.v.length:P._length;for(_.setLength(pe),_.c=P.c,q=0;q<pe;q+=1)_.setTripleAt(P.v[q][0],P.v[q][1],P.o[q][0],P.o[q][1],P.i[q][0],P.i[q][1],q);return _}var x=wr(4,c,p);return x.clone=v,x}();function Ia(){this._length=0,this._maxLength=4,this.shapes=Ue(this._maxLength)}Ia.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ue(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Ia.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Zn.release(this.shapes[c]);this._length=0};var As=function(){var c={newShapeCollection:P,release:_},p=0,v=4,x=Ue(v);function P(){var q;return p?(p-=1,q=x[p]):q=new Ia,q}function _(q){var pe,ee=q._length;for(pe=0;pe<ee;pe+=1)Zn.release(q.shapes[pe]);q._length=0,p===v&&(x=Gu.double(x),v*=2),x[p]=q,p+=1}return c}(),di=function(){var c=-999999;function p(H,X,I){var V=I.lastIndex,Y,re,le,he,Oe,tt,Qe,Ne,at,ft=this.keyframes;if(H<ft[0].t-this.offsetTime)Y=ft[0].s[0],le=!0,V=0;else if(H>=ft[ft.length-1].t-this.offsetTime)Y=ft[ft.length-1].s?ft[ft.length-1].s[0]:ft[ft.length-2].e[0],le=!0;else{for(var Be=V,be=ft.length-1,ce=!0,Q,me,je;ce&&(Q=ft[Be],me=ft[Be+1],!(me.t-this.offsetTime>H));)Be<be-1?Be+=1:ce=!1;if(je=this.keyframesMetadata[Be]||{},le=Q.h===1,V=Be,!le){if(H>=me.t-this.offsetTime)Ne=1;else if(H<Q.t-this.offsetTime)Ne=0;else{var Fe;je.__fnct?Fe=je.__fnct:(Fe=uo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,je.__fnct=Fe),Ne=Fe((H-(Q.t-this.offsetTime))/(me.t-this.offsetTime-(Q.t-this.offsetTime)))}re=me.s?me.s[0]:Q.e[0]}Y=Q.s[0]}for(tt=X._length,Qe=Y.i[0].length,I.lastIndex=V,he=0;he<tt;he+=1)for(Oe=0;Oe<Qe;Oe+=1)at=le?Y.i[he][Oe]:Y.i[he][Oe]+(re.i[he][Oe]-Y.i[he][Oe])*Ne,X.i[he][Oe]=at,at=le?Y.o[he][Oe]:Y.o[he][Oe]+(re.o[he][Oe]-Y.o[he][Oe])*Ne,X.o[he][Oe]=at,at=le?Y.v[he][Oe]:Y.v[he][Oe]+(re.v[he][Oe]-Y.v[he][Oe])*Ne,X.v[he][Oe]=at}function v(){var H=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,I=this.keyframes[this.keyframes.length-1].t-this.offsetTime,V=this._caching.lastFrame;return V!==c&&(V<X&&H<X||V>I&&H>I)||(this._caching.lastIndex=V<H?this._caching.lastIndex:0,this.interpolateShape(H,this.pv,this._caching)),this._caching.lastFrame=H,this.pv}function x(){this.paths=this.localShapeCollection}function P(H,X){if(H._length!==X._length||H.c!==X.c)return!1;var I,V=H._length;for(I=0;I<V;I+=1)if(H.v[I][0]!==X.v[I][0]||H.v[I][1]!==X.v[I][1]||H.o[I][0]!==X.o[I][0]||H.o[I][1]!==X.o[I][1]||H.i[I][0]!==X.i[I][0]||H.i[I][1]!==X.i[I][1])return!1;return!0}function _(H){P(this.v,H)||(this.v=Zn.clone(H),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var H;this.kf?H=this.pv:this.data.ks?H=this.data.ks.k:H=this.data.pt.k;var X,I=this.effectsSequence.length;for(X=0;X<I;X+=1)H=this.effectsSequence[X](H);this.setVValue(H),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function pe(H,X,I){this.propType="shape",this.comp=H.comp,this.container=H,this.elem=H,this.data=X,this.k=!1,this.kf=!1,this._mdf=!1;var V=I===3?X.pt.k:X.ks.k;this.v=Zn.clone(V),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=x,this.effectsSequence=[]}function ee(H){this.effectsSequence.push(H),this.container.addDynamicProperty(this)}pe.prototype.interpolateShape=p,pe.prototype.getValue=q,pe.prototype.setVValue=_,pe.prototype.addEffect=ee;function ye(H,X,I){this.propType="shape",this.comp=H.comp,this.elem=H,this.container=H,this.offsetTime=H.data.st,this.keyframes=I===3?X.pt.k:X.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var V=this.keyframes[0].s[0].i.length;this.v=Zn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,V),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=x,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}ye.prototype.getValue=q,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=ee;var xe=function(){var H=Te;function X(I,V){this.v=Zn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=V.d,this.elem=I,this.comp=I.comp,this.frameId=-1,this.initDynamicPropertyContainer(I),this.p=st.getProp(I,V.p,1,0,this),this.s=st.getProp(I,V.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return X.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var V=this.p.v[0],Y=this.p.v[1],re=this.s.v[0]/2,le=this.s.v[1]/2,he=this.d!==3,Oe=this.v;Oe.v[0][0]=V,Oe.v[0][1]=Y-le,Oe.v[1][0]=he?V+re:V-re,Oe.v[1][1]=Y,Oe.v[2][0]=V,Oe.v[2][1]=Y+le,Oe.v[3][0]=he?V-re:V+re,Oe.v[3][1]=Y,Oe.i[0][0]=he?V-re*H:V+re*H,Oe.i[0][1]=Y-le,Oe.i[1][0]=he?V+re:V-re,Oe.i[1][1]=Y-le*H,Oe.i[2][0]=he?V+re*H:V-re*H,Oe.i[2][1]=Y+le,Oe.i[3][0]=he?V-re:V+re,Oe.i[3][1]=Y+le*H,Oe.o[0][0]=he?V+re*H:V-re*H,Oe.o[0][1]=Y-le,Oe.o[1][0]=he?V+re:V-re,Oe.o[1][1]=Y+le*H,Oe.o[2][0]=he?V-re*H:V+re*H,Oe.o[2][1]=Y+le,Oe.o[3][0]=he?V-re:V+re,Oe.o[3][1]=Y-le*H}},Ie([dn],X),X}(),Re=function(){function H(X,I){this.v=Zn.newElement(),this.v.setPathData(!0,0),this.elem=X,this.comp=X.comp,this.data=I,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(X),I.sy===1?(this.ir=st.getProp(X,I.ir,0,0,this),this.is=st.getProp(X,I.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(X,I.pt,0,0,this),this.p=st.getProp(X,I.p,1,0,this),this.r=st.getProp(X,I.r,0,Ee,this),this.or=st.getProp(X,I.or,0,0,this),this.os=st.getProp(X,I.os,0,.01,this),this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return H.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var I=Math.floor(this.pt.v)*2,V=Math.PI*2/I,Y=!0,re=this.or.v,le=this.ir.v,he=this.os.v,Oe=this.is.v,tt=2*Math.PI*re/(I*2),Qe=2*Math.PI*le/(I*2),Ne,at,ft,Be,be=-Math.PI/2;be+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ne=0;Ne<I;Ne+=1){at=Y?re:le,ft=Y?he:Oe,Be=Y?tt:Qe;var Q=at*Math.cos(be),me=at*Math.sin(be),je=Q===0&&me===0?0:me/Math.sqrt(Q*Q+me*me),Fe=Q===0&&me===0?0:-Q/Math.sqrt(Q*Q+me*me);Q+=+this.p.v[0],me+=+this.p.v[1],this.v.setTripleAt(Q,me,Q-je*Be*ft*ce,me-Fe*Be*ft*ce,Q+je*Be*ft*ce,me+Fe*Be*ft*ce,Ne,!0),Y=!Y,be+=V*ce}},convertPolygonToPath:function(){var I=Math.floor(this.pt.v),V=Math.PI*2/I,Y=this.or.v,re=this.os.v,le=2*Math.PI*Y/(I*4),he,Oe=-Math.PI*.5,tt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,he=0;he<I;he+=1){var Qe=Y*Math.cos(Oe),Ne=Y*Math.sin(Oe),at=Qe===0&&Ne===0?0:Ne/Math.sqrt(Qe*Qe+Ne*Ne),ft=Qe===0&&Ne===0?0:-Qe/Math.sqrt(Qe*Qe+Ne*Ne);Qe+=+this.p.v[0],Ne+=+this.p.v[1],this.v.setTripleAt(Qe,Ne,Qe-at*le*re*tt,Ne-ft*le*re*tt,Qe+at*le*re*tt,Ne+ft*le*re*tt,he,!0),Oe+=V*tt}this.paths.length=0,this.paths[0]=this.v}},Ie([dn],H),H}(),R=function(){function H(X,I){this.v=Zn.newElement(),this.v.c=!0,this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=X,this.comp=X.comp,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(X),this.p=st.getProp(X,I.p,1,0,this),this.s=st.getProp(X,I.s,1,0,this),this.r=st.getProp(X,I.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return H.prototype={convertRectToPath:function(){var I=this.p.v[0],V=this.p.v[1],Y=this.s.v[0]/2,re=this.s.v[1]/2,le=Rt(Y,re,this.r.v),he=le*(1-Te);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(I+Y,V-re+le,I+Y,V-re+le,I+Y,V-re+he,0,!0),this.v.setTripleAt(I+Y,V+re-le,I+Y,V+re-he,I+Y,V+re-le,1,!0),le!==0?(this.v.setTripleAt(I+Y-le,V+re,I+Y-le,V+re,I+Y-he,V+re,2,!0),this.v.setTripleAt(I-Y+le,V+re,I-Y+he,V+re,I-Y+le,V+re,3,!0),this.v.setTripleAt(I-Y,V+re-le,I-Y,V+re-le,I-Y,V+re-he,4,!0),this.v.setTripleAt(I-Y,V-re+le,I-Y,V-re+he,I-Y,V-re+le,5,!0),this.v.setTripleAt(I-Y+le,V-re,I-Y+le,V-re,I-Y+he,V-re,6,!0),this.v.setTripleAt(I+Y-le,V-re,I+Y-he,V-re,I+Y-le,V-re,7,!0)):(this.v.setTripleAt(I-Y,V+re,I-Y+he,V+re,I-Y,V+re,2),this.v.setTripleAt(I-Y,V-re,I-Y,V-re+he,I-Y,V-re,3))):(this.v.setTripleAt(I+Y,V-re+le,I+Y,V-re+he,I+Y,V-re+le,0,!0),le!==0?(this.v.setTripleAt(I+Y-le,V-re,I+Y-le,V-re,I+Y-he,V-re,1,!0),this.v.setTripleAt(I-Y+le,V-re,I-Y+he,V-re,I-Y+le,V-re,2,!0),this.v.setTripleAt(I-Y,V-re+le,I-Y,V-re+le,I-Y,V-re+he,3,!0),this.v.setTripleAt(I-Y,V+re-le,I-Y,V+re-he,I-Y,V+re-le,4,!0),this.v.setTripleAt(I-Y+le,V+re,I-Y+le,V+re,I-Y+he,V+re,5,!0),this.v.setTripleAt(I+Y-le,V+re,I+Y-he,V+re,I+Y-le,V+re,6,!0),this.v.setTripleAt(I+Y,V+re-le,I+Y,V+re-le,I+Y,V+re-he,7,!0)):(this.v.setTripleAt(I-Y,V-re,I-Y+he,V-re,I-Y,V-re,1,!0),this.v.setTripleAt(I-Y,V+re,I-Y,V+re-he,I-Y,V+re,2,!0),this.v.setTripleAt(I+Y,V+re,I+Y-he,V+re,I+Y,V+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:x},Ie([dn],H),H}();function te(H,X,I){var V;if(I===3||I===4){var Y=I===3?X.pt:X.ks,re=Y.k;re.length?V=new ye(H,X,I):V=new pe(H,X,I)}else I===5?V=new R(H,X):I===6?V=new xe(H,X):I===7&&(V=new Re(H,X));return V.k&&H.addDynamicProperty(V),V}function Z(){return pe}function de(){return ye}var fe={};return fe.getShapeProp=te,fe.getConstructorFunction=Z,fe.getKeyframedConstructorFunction=de,fe}();/*!
|
|
130
|
+
Transformation Matrix v2.0
|
|
131
|
+
(c) Epistemex 2014-2015
|
|
132
|
+
www.epistemex.com
|
|
133
|
+
By Ken Fyrstenberg
|
|
134
|
+
Contributions by leeoniya.
|
|
135
|
+
License: MIT, header required.
|
|
136
|
+
*/var On=function(){var c=Math.cos,p=Math.sin,v=Math.tan,x=Math.round;function P(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,-me,0,0,me,Q,0,0,0,0,1,0,0,0,0,1)}function q(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(1,0,0,0,0,Q,-me,0,0,me,Q,0,0,0,0,1)}function pe(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,0,me,0,0,1,0,0,-me,0,Q,0,0,0,0,1)}function ee(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,-me,0,0,me,Q,0,0,0,0,1,0,0,0,0,1)}function ye(ce,Q){return this._t(1,Q,ce,1,0,0)}function xe(ce,Q){return this.shear(v(ce),v(Q))}function Re(ce,Q){var me=c(Q),je=p(Q);return this._t(me,je,0,0,-je,me,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ce),1,0,0,0,0,1,0,0,0,0,1)._t(me,-je,0,0,je,me,0,0,0,0,1,0,0,0,0,1)}function R(ce,Q,me){return!me&&me!==0&&(me=1),ce===1&&Q===1&&me===1?this:this._t(ce,0,0,0,0,Q,0,0,0,0,me,0,0,0,0,1)}function te(ce,Q,me,je,Fe,ct,Tt,Ct,xn,zt,fr,Xn,Bn,jn,Kn,yr){return this.props[0]=ce,this.props[1]=Q,this.props[2]=me,this.props[3]=je,this.props[4]=Fe,this.props[5]=ct,this.props[6]=Tt,this.props[7]=Ct,this.props[8]=xn,this.props[9]=zt,this.props[10]=fr,this.props[11]=Xn,this.props[12]=Bn,this.props[13]=jn,this.props[14]=Kn,this.props[15]=yr,this}function Z(ce,Q,me){return me=me||0,ce!==0||Q!==0||me!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,Q,me,1):this}function de(ce,Q,me,je,Fe,ct,Tt,Ct,xn,zt,fr,Xn,Bn,jn,Kn,yr){var dt=this.props;if(ce===1&&Q===0&&me===0&&je===0&&Fe===0&&ct===1&&Tt===0&&Ct===0&&xn===0&&zt===0&&fr===1&&Xn===0)return dt[12]=dt[12]*ce+dt[15]*Bn,dt[13]=dt[13]*ct+dt[15]*jn,dt[14]=dt[14]*fr+dt[15]*Kn,dt[15]*=yr,this._identityCalculated=!1,this;var fn=dt[0],Jr=dt[1],Pi=dt[2],as=dt[3],mi=dt[4],us=dt[5],ls=dt[6],Ht=dt[7],wn=dt[8],Is=dt[9],gi=dt[10],cs=dt[11],vi=dt[12],fs=dt[13],Ls=dt[14],ia=dt[15];return dt[0]=fn*ce+Jr*Fe+Pi*xn+as*Bn,dt[1]=fn*Q+Jr*ct+Pi*zt+as*jn,dt[2]=fn*me+Jr*Tt+Pi*fr+as*Kn,dt[3]=fn*je+Jr*Ct+Pi*Xn+as*yr,dt[4]=mi*ce+us*Fe+ls*xn+Ht*Bn,dt[5]=mi*Q+us*ct+ls*zt+Ht*jn,dt[6]=mi*me+us*Tt+ls*fr+Ht*Kn,dt[7]=mi*je+us*Ct+ls*Xn+Ht*yr,dt[8]=wn*ce+Is*Fe+gi*xn+cs*Bn,dt[9]=wn*Q+Is*ct+gi*zt+cs*jn,dt[10]=wn*me+Is*Tt+gi*fr+cs*Kn,dt[11]=wn*je+Is*Ct+gi*Xn+cs*yr,dt[12]=vi*ce+fs*Fe+Ls*xn+ia*Bn,dt[13]=vi*Q+fs*ct+Ls*zt+ia*jn,dt[14]=vi*me+fs*Tt+Ls*fr+ia*Kn,dt[15]=vi*je+fs*Ct+Ls*Xn+ia*yr,this._identityCalculated=!1,this}function fe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function H(ce){for(var Q=0;Q<16;){if(ce.props[Q]!==this.props[Q])return!1;Q+=1}return!0}function X(ce){var Q;for(Q=0;Q<16;Q+=1)ce.props[Q]=this.props[Q];return ce}function I(ce){var Q;for(Q=0;Q<16;Q+=1)this.props[Q]=ce[Q]}function V(ce,Q,me){return{x:ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12],y:ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13],z:ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]}}function Y(ce,Q,me){return ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12]}function re(ce,Q,me){return ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13]}function le(ce,Q,me){return ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]}function he(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],Q=this.props[5]/ce,me=-this.props[1]/ce,je=-this.props[4]/ce,Fe=this.props[0]/ce,ct=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Ct=new On;return Ct.props[0]=Q,Ct.props[1]=me,Ct.props[4]=je,Ct.props[5]=Fe,Ct.props[12]=ct,Ct.props[13]=Tt,Ct}function Oe(ce){var Q=this.getInverseMatrix();return Q.applyToPointArray(ce[0],ce[1],ce[2]||0)}function tt(ce){var Q,me=ce.length,je=[];for(Q=0;Q<me;Q+=1)je[Q]=Oe(ce[Q]);return je}function Qe(ce,Q,me){var je=De("float32",6);if(this.isIdentity())je[0]=ce[0],je[1]=ce[1],je[2]=Q[0],je[3]=Q[1],je[4]=me[0],je[5]=me[1];else{var Fe=this.props[0],ct=this.props[1],Tt=this.props[4],Ct=this.props[5],xn=this.props[12],zt=this.props[13];je[0]=ce[0]*Fe+ce[1]*Tt+xn,je[1]=ce[0]*ct+ce[1]*Ct+zt,je[2]=Q[0]*Fe+Q[1]*Tt+xn,je[3]=Q[0]*ct+Q[1]*Ct+zt,je[4]=me[0]*Fe+me[1]*Tt+xn,je[5]=me[0]*ct+me[1]*Ct+zt}return je}function Ne(ce,Q,me){var je;return this.isIdentity()?je=[ce,Q,me]:je=[ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12],ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13],ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]],je}function at(ce,Q){if(this.isIdentity())return ce+","+Q;var me=this.props;return Math.round((ce*me[0]+Q*me[4]+me[12])*100)/100+","+Math.round((ce*me[1]+Q*me[5]+me[13])*100)/100}function ft(){for(var ce=0,Q=this.props,me="matrix3d(",je=1e4;ce<16;)me+=x(Q[ce]*je)/je,me+=ce===15?")":",",ce+=1;return me}function Be(ce){var Q=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?x(ce*Q)/Q:ce}function be(){var ce=this.props,Q=Be(ce[0]),me=Be(ce[1]),je=Be(ce[4]),Fe=Be(ce[5]),ct=Be(ce[12]),Tt=Be(ce[13]);return"matrix("+Q+","+me+","+je+","+Fe+","+ct+","+Tt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=q,this.rotateY=pe,this.rotateZ=ee,this.skew=xe,this.skewFromAxis=Re,this.shear=ye,this.scale=R,this.setTransform=te,this.translate=Z,this.transform=de,this.applyToPoint=V,this.applyToX=Y,this.applyToY=re,this.applyToZ=le,this.applyToPointArray=Ne,this.applyToTriplePoints=Qe,this.applyToPointStringified=at,this.toCSS=ft,this.to2dCSS=be,this.clone=X,this.cloneFromProps=I,this.equals=H,this.inversePoints=tt,this.inversePoint=Oe,this.getInverseMatrix=he,this._t=this.transform,this.isIdentity=fe,this._identity=!0,this._identityCalculated=!1,this.props=De("float32",16),this.reset()}}();function Jo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jo=function(v){return typeof v}:Jo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Jo(c)}var jt={};function Lc(c){Se(c)}function Xu(){En.searchAnimations()}function Bc(c){Yt(c)}function La(c){ka(c)}function lo(c){return En.loadAnimation(c)}function Ju(c){if(typeof c=="string")switch(c){case"high":Ci(200);break;default:case"medium":Ci(50);break;case"low":Ci(10);break}else!isNaN(c)&&c>1&&Ci(c)}function Ba(){return typeof navigator<"u"}function Vc(c,p){c==="expressions"&&Qi(p)}function Nc(c){switch(c){case"propertyFactory":return st;case"shapePropertyFactory":return di;case"matrix":return On;default:return null}}jt.play=En.play,jt.pause=En.pause,jt.setLocationHref=Lc,jt.togglePause=En.togglePause,jt.setSpeed=En.setSpeed,jt.setDirection=En.setDirection,jt.stop=En.stop,jt.searchAnimations=Xu,jt.registerAnimation=En.registerAnimation,jt.loadAnimation=lo,jt.setSubframeRendering=Bc,jt.resize=En.resize,jt.goToAndStop=En.goToAndStop,jt.destroy=En.destroy,jt.setQuality=Ju,jt.inBrowser=Ba,jt.installPlugin=Vc,jt.freeze=En.freeze,jt.unfreeze=En.unfreeze,jt.setVolume=En.setVolume,jt.mute=En.mute,jt.unmute=En.unmute,jt.getRegisteredAnimations=En.getRegisteredAnimations,jt.useWebWorker=U,jt.setIDPrefix=La,jt.__getFactory=Nc,jt.version="5.10.2";function jc(){document.readyState==="complete"&&(clearInterval(tl),Xu())}function Qu(c){for(var p=Va.split("&"),v=0;v<p.length;v+=1){var x=p[v].split("=");if(decodeURIComponent(x[0])==c)return decodeURIComponent(x[1])}return null}var Va="";{var Na=document.getElementsByTagName("script"),co=Na.length-1,el=Na[co]||{src:""};Va=el.src?el.src.replace(/^[^\?]+\??/,""):"",Qu("renderer")}var tl=setInterval(jc,100);try{Jo(z)!=="object"&&(window.bodymovin=jt)}catch{}var kr=function(){var c={},p={};c.registerModifier=v,c.getModifier=x;function v(P,_){p[P]||(p[P]=_)}function x(P,_,q){return new p[P](_,q)}return c}();function gr(){}gr.prototype.initModifierProperties=function(){},gr.prototype.addShapeToModifier=function(){},gr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:As.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},gr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=ge,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Ie([dn],gr);function Or(){}Ie([gr],Or),Or.prototype.initModifierProperties=function(c,p){this.s=st.getProp(c,p.s,0,.01,this),this.e=st.getProp(c,p.e,0,.01,this),this.o=st.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Or.prototype.addShapeToModifier=function(c){c.pathsData=[]},Or.prototype.calculateShapeEdges=function(c,p,v,x,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var q=[],pe,ee=_.length,ye;for(pe=0;pe<ee;pe+=1)if(ye=_[pe],!(ye.e*P<x||ye.s*P>x+v)){var xe,Re;ye.s*P<=x?xe=0:xe=(ye.s*P-x)/v,ye.e*P>=x+v?Re=1:Re=(ye.e*P-x)/v,q.push([xe,Re])}return q.length||q.push([0,0]),q},Or.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Zu.release(c[p]);return c.length=0,c},Or.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var x=this.o.v%360/360;if(x<0&&(x+=1),this.s.v>1?p=1+x:this.s.v<0?p=0+x:p=this.s.v+x,this.e.v>1?v=1+x:this.e.v<0?v=0+x:v=this.e.v+x,p>v){var P=p;p=v,v=P}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var _,q,pe=this.shapes.length,ee,ye,xe,Re,R,te=0;if(v===p)for(q=0;q<pe;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<pe;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var Z=[],de,fe;for(q=0;q<pe;q+=1)if(de=this.shapes[q],!de.shape._mdf&&!this._mdf&&!c&&this.m!==2)de.shape.paths=de.localShapeCollection;else{if(_=de.shape.paths,ye=_._length,R=0,!de.shape._mdf&&de.pathsData.length)R=de.totalShapeLength;else{for(xe=this.releasePathsData(de.pathsData),ee=0;ee<ye;ee+=1)Re=Zr.getSegmentsLength(_.shapes[ee]),xe.push(Re),R+=Re.totalLength;de.totalShapeLength=R,de.pathsData=xe}te+=R,de.shape._mdf=!0}var H=p,X=v,I=0,V;for(q=pe-1;q>=0;q-=1)if(de=this.shapes[q],de.shape._mdf){for(fe=de.localShapeCollection,fe.releaseShapes(),this.m===2&&pe>1?(V=this.calculateShapeEdges(p,v,de.totalShapeLength,I,te),I+=de.totalShapeLength):V=[[H,X]],ye=V.length,ee=0;ee<ye;ee+=1){H=V[ee][0],X=V[ee][1],Z.length=0,X<=1?Z.push({s:de.totalShapeLength*H,e:de.totalShapeLength*X}):H>=1?Z.push({s:de.totalShapeLength*(H-1),e:de.totalShapeLength*(X-1)}):(Z.push({s:de.totalShapeLength*H,e:de.totalShapeLength}),Z.push({s:0,e:de.totalShapeLength*(X-1)}));var Y=this.addShapes(de,Z[0]);if(Z[0].s!==Z[0].e){if(Z.length>1){var re=de.shape.paths.shapes[de.shape.paths._length-1];if(re.c){var le=Y.pop();this.addPaths(Y,fe),Y=this.addShapes(de,Z[1],le)}else this.addPaths(Y,fe),Y=this.addShapes(de,Z[1])}this.addPaths(Y,fe)}}de.shape.paths=fe}}},Or.prototype.addPaths=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)p.addShape(c[v])},Or.prototype.addSegment=function(c,p,v,x,P,_,q){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),q&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt(x[0],x[1],"v",_+1)},Or.prototype.addSegmentFromArray=function(c,p,v,x){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),x&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},Or.prototype.addShapes=function(c,p,v){var x=c.pathsData,P=c.shape.paths.shapes,_,q=c.shape.paths._length,pe,ee,ye=0,xe,Re,R,te,Z=[],de,fe=!0;for(v?(Re=v._length,de=v._length):(v=Zn.newElement(),Re=0,de=0),Z.push(v),_=0;_<q;_+=1){for(R=x[_].lengths,v.c=P[_].c,ee=P[_].c?R.length:R.length+1,pe=1;pe<ee;pe+=1)if(xe=R[pe-1],ye+xe.addedLength<p.s)ye+=xe.addedLength,v.c=!1;else if(ye>p.e){v.c=!1;break}else p.s<=ye&&p.e>=ye+xe.addedLength?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[pe],P[_].v[pe],v,Re,fe),fe=!1):(te=Zr.getNewSegment(P[_].v[pe-1],P[_].v[pe],P[_].o[pe-1],P[_].i[pe],(p.s-ye)/xe.addedLength,(p.e-ye)/xe.addedLength,R[pe-1]),this.addSegmentFromArray(te,v,Re,fe),fe=!1,v.c=!1),ye+=xe.addedLength,Re+=1;if(P[_].c&&R.length){if(xe=R[pe-1],ye<=p.e){var H=R[pe-1].addedLength;p.s<=ye&&p.e>=ye+H?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[0],P[_].v[0],v,Re,fe),fe=!1):(te=Zr.getNewSegment(P[_].v[pe-1],P[_].v[0],P[_].o[pe-1],P[_].i[0],(p.s-ye)/H,(p.e-ye)/H,R[pe-1]),this.addSegmentFromArray(te,v,Re,fe),fe=!1,v.c=!1)}else v.c=!1;ye+=xe.addedLength,Re+=1}if(v._length&&(v.setXYAt(v.v[de][0],v.v[de][1],"i",de),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),ye>p.e)break;_<q-1&&(v=Zn.newElement(),fe=!0,Z.push(v),Re=0)}return Z};function Ts(){}Ie([gr],Ts),Ts.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ts.prototype.processPath=function(c,p){var v=p/100,x=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)x[0]+=c.v[_][0],x[1]+=c.v[_][1];x[0]/=P,x[1]/=P;var q=Zn.newElement();q.c=c.c;var pe,ee,ye,xe,Re,R;for(_=0;_<P;_+=1)pe=c.v[_][0]+(x[0]-c.v[_][0])*v,ee=c.v[_][1]+(x[1]-c.v[_][1])*v,ye=c.o[_][0]+(x[0]-c.o[_][0])*-v,xe=c.o[_][1]+(x[1]-c.o[_][1])*-v,Re=c.i[_][0]+(x[0]-c.i[_][0])*-v,R=c.i[_][1]+(x[1]-c.i[_][1])*-v,q.setTripleAt(pe,ee,ye,xe,Re,R,_);return q},Ts.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amount.v;if(q!==0){var pe,ee;for(v=0;v<x;v+=1){if(pe=this.shapes[v],ee=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(ee.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)ee.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Qo=function(){var c=[0,0];function p(ee){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,this.a&&ee.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&ee.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&ee.skewFromAxis(-this.sk.v,this.sa.v),this.r?ee.rotate(-this.r.v):ee.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?ee.translate(this.px.v,this.py.v,-this.pz.v):ee.translate(this.px.v,this.py.v,0):ee.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(ee){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||ee){var ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var xe,Re;if(ye=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(xe=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ye,0),Re=this.p.getValueAtTime(this.p.keyframes[0].t/ye,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(xe=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ye,0),Re=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):(xe=this.p.pv,Re=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){xe=[],Re=[];var R=this.px,te=this.py;R._caching.lastFrame+R.offsetTime<=R.keyframes[0].t?(xe[0]=R.getValueAtTime((R.keyframes[0].t+.01)/ye,0),xe[1]=te.getValueAtTime((te.keyframes[0].t+.01)/ye,0),Re[0]=R.getValueAtTime(R.keyframes[0].t/ye,0),Re[1]=te.getValueAtTime(te.keyframes[0].t/ye,0)):R._caching.lastFrame+R.offsetTime>=R.keyframes[R.keyframes.length-1].t?(xe[0]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/ye,0),xe[1]=te.getValueAtTime(te.keyframes[te.keyframes.length-1].t/ye,0),Re[0]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/ye,0),Re[1]=te.getValueAtTime((te.keyframes[te.keyframes.length-1].t-.01)/ye,0)):(xe=[R.pv,te.pv],Re[0]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/ye,R.offsetTime),Re[1]=te.getValueAtTime((te._caching.lastFrame+te.offsetTime-.01)/ye,te.offsetTime))}else Re=c,xe=Re;this.v.rotate(-Math.atan2(xe[1]-Re[1],xe[0]-Re[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function x(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(ee){this._addDynamicProperty(ee),this.elem.addDynamicProperty(ee),this._isDirty=!0}function q(ee,ye,xe){if(this.elem=ee,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new On,this.pre=new On,this.appliedTransformations=0,this.initDynamicPropertyContainer(xe||ee),ye.p&&ye.p.s?(this.px=st.getProp(ee,ye.p.x,0,0,this),this.py=st.getProp(ee,ye.p.y,0,0,this),ye.p.z&&(this.pz=st.getProp(ee,ye.p.z,0,0,this))):this.p=st.getProp(ee,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=st.getProp(ee,ye.rx,0,Ee,this),this.ry=st.getProp(ee,ye.ry,0,Ee,this),this.rz=st.getProp(ee,ye.rz,0,Ee,this),ye.or.k[0].ti){var Re,R=ye.or.k.length;for(Re=0;Re<R;Re+=1)ye.or.k[Re].to=null,ye.or.k[Re].ti=null}this.or=st.getProp(ee,ye.or,1,Ee,this),this.or.sh=!0}else this.r=st.getProp(ee,ye.r||{k:0},0,Ee,this);ye.sk&&(this.sk=st.getProp(ee,ye.sk,0,Ee,this),this.sa=st.getProp(ee,ye.sa,0,Ee,this)),this.a=st.getProp(ee,ye.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(ee,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=st.getProp(ee,ye.o,0,.01,ee):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:x,autoOrient:P},Ie([dn],q),q.prototype.addDynamicProperty=_,q.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function pe(ee,ye,xe){return new q(ee,ye,xe)}return{getTransformProperty:pe}}();function vr(){}Ie([gr],vr),vr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=st.getProp(c,p.c,0,null,this),this.o=st.getProp(c,p.o,0,null,this),this.tr=Qo.getTransformProperty(c,p.tr,this),this.so=st.getProp(c,p.tr.so,0,.01,this),this.eo=st.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new On,this.rMatrix=new On,this.sMatrix=new On,this.tMatrix=new On,this.matrix=new On},vr.prototype.applyTransforms=function(c,p,v,x,P,_){var q=_?-1:1,pe=x.s.v[0]+(1-x.s.v[0])*(1-P),ee=x.s.v[1]+(1-x.s.v[1])*(1-P);c.translate(x.p.v[0]*q*P,x.p.v[1]*q*P,x.p.v[2]),p.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),p.rotate(-x.r.v*q*P),p.translate(x.a.v[0],x.a.v[1],x.a.v[2]),v.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),v.scale(_?1/pe:pe,_?1/ee:ee),v.translate(x.a.v[0],x.a.v[1],x.a.v[2])},vr.prototype.init=function(c,p,v,x){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=x,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},vr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},vr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},vr.prototype.changeGroupRender=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},vr.prototype.processShapes=function(c){var p,v,x,P,_,q=!1;if(this._mdf||c){var pe=Math.ceil(this.c.v);if(this._groups.length<pe){for(;this._groups.length<pe;){var ee={it:this.cloneElements(this._elements),ty:"gr"};ee.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,ee),this._groups.splice(0,0,ee),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}_=0;var ye;for(x=0;x<=this._groups.length-1;x+=1){if(ye=_<pe,this._groups[x]._render=ye,this.changeGroupRender(this._groups[x].it,ye),!ye){var xe=this.elemsData[x].it,Re=xe[xe.length-1];Re.transform.op.v!==0?(Re.transform.op._mdf=!0,Re.transform.op.v=0):Re.transform.op._mdf=!1}_+=1}this._currentCopies=pe;var R=this.o.v,te=R%1,Z=R>0?Math.floor(R):Math.ceil(R),de=this.pMatrix.props,fe=this.rMatrix.props,H=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var X=0;if(R>0){for(;X<Z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),X+=1;te&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,te,!1),X+=te)}else if(R<0){for(;X>Z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),X-=1;te&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-te,!0),X-=te)}x=this.data.m===1?0:this._currentCopies-1,P=this.data.m===1?1:-1,_=this._currentCopies;for(var I,V;_;){if(p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,V=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(x/(this._currentCopies-1)),X!==0){for((x!==0&&P===1||x!==this._currentCopies-1&&P===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),I=0;I<V;I+=1)v[I]=this.matrix.props[I];this.matrix.reset()}else for(this.matrix.reset(),I=0;I<V;I+=1)v[I]=this.matrix.props[I];X+=1,_-=1,x+=P}}else for(_=this._currentCopies,x=0,P=1;_;)p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,_-=1,x+=P;return q},vr.prototype.addShape=function(){};function fo(){}Ie([gr],fo),fo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=st.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fo.prototype.processPath=function(c,p){var v=Zn.newElement();v.c=c.c;var x,P=c._length,_,q,pe,ee,ye,xe,Re=0,R,te,Z,de,fe,H;for(x=0;x<P;x+=1)_=c.v[x],pe=c.o[x],q=c.i[x],_[0]===pe[0]&&_[1]===pe[1]&&_[0]===q[0]&&_[1]===q[1]?(x===0||x===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],pe[0],pe[1],q[0],q[1],Re),Re+=1):(x===0?ee=c.v[P-1]:ee=c.v[x-1],ye=Math.sqrt(Math.pow(_[0]-ee[0],2)+Math.pow(_[1]-ee[1],2)),xe=ye?Math.min(ye/2,p)/ye:0,fe=_[0]+(ee[0]-_[0])*xe,R=fe,H=_[1]-(_[1]-ee[1])*xe,te=H,Z=R-(R-_[0])*Te,de=te-(te-_[1])*Te,v.setTripleAt(R,te,Z,de,fe,H,Re),Re+=1,x===P-1?ee=c.v[0]:ee=c.v[x+1],ye=Math.sqrt(Math.pow(_[0]-ee[0],2)+Math.pow(_[1]-ee[1],2)),xe=ye?Math.min(ye/2,p)/ye:0,Z=_[0]+(ee[0]-_[0])*xe,R=Z,de=_[1]+(ee[1]-_[1])*xe,te=de,fe=R-(R-_[0])*Te,H=te-(te-_[1])*Te,v.setTripleAt(R,te,Z,de,fe,H,Re),Re+=1):(v.setTripleAt(c.v[x][0],c.v[x][1],c.o[x][0],c.o[x][1],c.i[x][0],c.i[x][1],Re),Re+=1);return v},fo.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.rd.v;if(q!==0){var pe,ee;for(v=0;v<x;v+=1){if(pe=this.shapes[v],ee=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(ee.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)ee.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ho(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Si(c){return Math.abs(c)<=1e-5}function hi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[hi(c[0],p[0],v),hi(c[1],p[1],v)]}function Ei(c,p,v){if(c===0)return[];var x=p*p-4*c*v;if(x<0)return[];var P=-p/(2*c);if(x===0)return[P];var _=Math.sqrt(x)/(2*c);return[P-_,P+_]}function ja(c,p,v,x){return[-c+3*p-3*v+x,3*c-6*p+3*v,-3*c+3*p,c]}function nl(c){return new vn(c,c,c,c,!1)}function vn(c,p,v,x,P){P&&is(c,p)&&(p=or(c,x,1/3)),P&&is(v,x)&&(v=or(c,x,2/3));var _=ja(c[0],p[0],v[0],x[0]),q=ja(c[1],p[1],v[1],x[1]);this.a=[_[0],q[0]],this.b=[_[1],q[1]],this.c=[_[2],q[2]],this.d=[_[3],q[3]],this.points=[c,p,v,x]}vn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},vn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},vn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},vn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},vn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Si(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var x=Math.sqrt(v);return Si(x)?x>0&&x<1?[p]:[]:[p-x,p+x].filter(function(P){return P>0&&P<1})},vn.prototype.split=function(c){if(c<=0)return[nl(this.points[0]),this];if(c>=1)return[this,nl(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),x=or(this.points[2],this.points[3],c),P=or(p,v,c),_=or(v,x,c),q=or(P,_,c);return[new vn(this.points[0],p,P,q,!0),new vn(q,_,x,this.points[3],!0)]};function Ka(c,p){var v=c.points[0][p],x=c.points[c.points.length-1][p];if(v>x){var P=x;x=v,v=P}for(var _=Ei(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<_.length;q+=1)if(_[q]>0&&_[q]<1){var pe=c.point(_[q])[p];pe<v?v=pe:pe>x&&(x=pe)}return{min:v,max:x}}vn.prototype.bounds=function(){return{x:Ka(this,0),y:Ka(this,1)}},vn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function po(c,p,v){var x=c.boundingBox();return{cx:x.cx,cy:x.cy,width:x.width,height:x.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Ua(c){var p=c.bez.split(.5);return[po(p[0],c.t1,c.t),po(p[1],c.t,c.t2)]}function rl(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Ir(c,p,v,x,P,_){if(rl(c,p)){if(v>=_||c.width<=x&&c.height<=x&&p.width<=x&&p.height<=x){P.push([c.t,p.t]);return}var q=Ua(c),pe=Ua(p);Ir(q[0],pe[0],v+1,x,P,_),Ir(q[0],pe[1],v+1,x,P,_),Ir(q[1],pe[0],v+1,x,P,_),Ir(q[1],pe[1],v+1,x,P,_)}}vn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var x=[];return Ir(po(this,0,1),po(c,0,1),0,p,x,v),x},vn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new vn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},vn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new vn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function za(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Ps(c,p,v,x){var P=[c[0],c[1],1],_=[p[0],p[1],1],q=[v[0],v[1],1],pe=[x[0],x[1],1],ee=za(za(P,_),za(q,pe));return Si(ee[2])?null:[ee[0]/ee[2],ee[1]/ee[2]]}function _s(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function mo(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function is(c,p){return ho(c[0],p[0])&&ho(c[1],p[1])}function go(){}Ie([gr],go),go.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=st.getProp(c,p.s,0,null,this),this.frequency=st.getProp(c,p.r,0,null,this),this.pointsType=st.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function ea(c,p,v,x,P,_,q){var pe=v-Math.PI/2,ee=v+Math.PI/2,ye=p[0]+Math.cos(v)*x*P,xe=p[1]-Math.sin(v)*x*P;c.setTripleAt(ye,xe,ye+Math.cos(pe)*_,xe-Math.sin(pe)*_,ye+Math.cos(ee)*q,xe-Math.sin(ee)*q,c.length())}function il(c,p){var v=[p[0]-c[0],p[1]-c[1]],x=-Math.PI*.5,P=[Math.cos(x)*v[0]-Math.sin(x)*v[1],Math.sin(x)*v[0]+Math.cos(x)*v[1]];return P}function Kc(c,p){var v=p===0?c.length()-1:p-1,x=(p+1)%c.length(),P=c.v[v],_=c.v[x],q=il(P,_);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function vo(c,p,v,x,P,_,q){var pe=Kc(p,v),ee=p.v[v%p._length],ye=p.v[v===0?p._length-1:v-1],xe=p.v[(v+1)%p._length],Re=_===2?Math.sqrt(Math.pow(ee[0]-ye[0],2)+Math.pow(ee[1]-ye[1],2)):0,R=_===2?Math.sqrt(Math.pow(ee[0]-xe[0],2)+Math.pow(ee[1]-xe[1],2)):0;ea(c,p.v[v%p._length],pe,q,x,R/((P+1)*2),Re/((P+1)*2))}function Uc(c,p,v,x,P,_){for(var q=0;q<x;q+=1){var pe=(q+1)/(x+1),ee=P===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,ye=p.normalAngle(pe),xe=p.point(pe);ea(c,xe,ye,_,v,ee/((x+1)*2),ee/((x+1)*2)),_=-_}return _}go.prototype.processPath=function(c,p,v,x){var P=c._length,_=Zn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var q=-1,pe=vn.shapeSegment(c,0);vo(_,c,0,p,v,x,q);for(var ee=0;ee<P;ee+=1)q=Uc(_,pe,p,v,x,-q),ee===P-1&&!c.c?pe=null:pe=vn.shapeSegment(c,(ee+1)%P),vo(_,c,ee+1,p,v,x,q);return _},go.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amplitude.v,pe=Math.max(0,Math.round(this.frequency.v)),ee=this.pointsType.v;if(q!==0){var ye,xe;for(v=0;v<x;v+=1){if(ye=this.shapes[v],xe=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(xe.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)xe.addShape(this.processPath(p[P],q,pe,ee));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yo(c,p,v){var x=Math.atan2(p[0]-c[0],p[1]-c[1]);return[_s(c,x,v),_s(p,x,v)]}function Wt(c,p){var v,x,P,_,q,pe,ee;ee=yo(c.points[0],c.points[1],p),v=ee[0],x=ee[1],ee=yo(c.points[1],c.points[2],p),P=ee[0],_=ee[1],ee=yo(c.points[2],c.points[3],p),q=ee[0],pe=ee[1];var ye=Ps(v,x,P,_);ye===null&&(ye=x);var xe=Ps(q,pe,P,_);return xe===null&&(xe=q),new vn(v,ye,xe,pe)}function Qt(c,p,v,x,P){var _=p.points[3],q=v.points[0];if(x===3||is(_,q))return _;if(x===2){var pe=-p.tangentAngle(1),ee=-v.tangentAngle(0)+Math.PI,ye=Ps(_,_s(_,pe+Math.PI/2,100),q,_s(q,pe+Math.PI/2,100)),xe=ye?mo(ye,_):mo(_,q)/2,Re=_s(_,pe,2*xe*Te);return c.setXYAt(Re[0],Re[1],"o",c.length()-1),Re=_s(q,ee,2*xe*Te),c.setTripleAt(q[0],q[1],q[0],q[1],Re[0],Re[1],c.length()),q}var R=is(_,p.points[2])?p.points[0]:p.points[2],te=is(q,v.points[1])?v.points[3]:v.points[1],Z=Ps(R,_,q,te);return Z&&mo(Z,_)<P?(c.setTripleAt(Z[0],Z[1],Z[0],Z[1],Z[0],Z[1],c.length()),Z):_}function ue(c,p){var v=c.intersections(p);return v.length&&ho(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),x=p.slice(),P=ue(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],x[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=ue(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,x]}function qe(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),x,P,_,q;if(v.length===0)return[Wt(c,p)];if(v.length===1||ho(v[1],1))return _=c.split(v[0]),x=_[0],P=_[1],[Wt(x,p),Wt(P,p)];_=c.split(v[0]),x=_[0];var pe=(v[1]-v[0])/(1-v[0]);return _=_[1].split(pe),q=_[0],P=_[1],[Wt(x,p),Wt(q,p),Wt(P,p)]}function $n(){}Ie([gr],$n),$n.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this.miterLimit=st.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},$n.prototype.processPath=function(c,p,v,x){var P=Zn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var q,pe,ee,ye=[];for(q=0;q<_;q+=1)ee=vn.shapeSegment(c,q),ye.push(pt(ee,p));if(!c.c)for(q=_-1;q>=0;q-=1)ee=vn.shapeSegmentInverted(c,q),ye.push(pt(ee,p));ye=qe(ye);var xe=null,Re=null;for(q=0;q<ye.length;q+=1){var R=ye[q];for(Re&&(xe=Qt(P,Re,R[0],v,x)),Re=R[R.length-1],pe=0;pe<R.length;pe+=1)ee=R[pe],xe&&is(ee.points[0],xe)?P.setXYAt(ee.points[1][0],ee.points[1][1],"o",P.length()-1):P.setTripleAt(ee.points[0][0],ee.points[0][1],ee.points[1][0],ee.points[1][1],ee.points[0][0],ee.points[0][1],P.length()),P.setTripleAt(ee.points[3][0],ee.points[3][1],ee.points[3][0],ee.points[3][1],ee.points[2][0],ee.points[2][1],P.length()),xe=ee.points[3]}return ye.length&&Qt(P,Re,ye[0][0],v,x),P},$n.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amount.v,pe=this.miterLimit.v,ee=this.lineJoin;if(q!==0){var ye,xe;for(v=0;v<x;v+=1){if(ye=this.shapes[v],xe=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(xe.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)xe.addShape(this.processPath(p[P],q,ee,pe));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",x="normal",P=p.length,_,q=0;q<P;q+=1)switch(_=p[q].toLowerCase(),_){case"italic":x="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:x,weight:c.fWeight||v}}var ar=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],P=[65039,8205];function _(V){var Y=V.split(","),re,le=Y.length,he=[];for(re=0;re<le;re+=1)Y[re]!=="sans-serif"&&Y[re]!=="monospace"&&he.push(Y[re]);return he.join(",")}function q(V,Y){var re=ke("span");re.setAttribute("aria-hidden",!0),re.style.fontFamily=Y;var le=ke("span");le.innerText="giItT1WQy@!-/#",re.style.position="absolute",re.style.left="-10000px",re.style.top="-10000px",re.style.fontSize="300px",re.style.fontVariant="normal",re.style.fontStyle="normal",re.style.fontWeight="normal",re.style.letterSpacing="0",re.appendChild(le),document.body.appendChild(re);var he=le.offsetWidth;return le.style.fontFamily=_(V)+", "+Y,{node:le,w:he,parent:re}}function pe(){var V,Y=this.fonts.length,re,le,he=Y;for(V=0;V<Y;V+=1)this.fonts[V].loaded?he-=1:this.fonts[V].fOrigin==="n"||this.fonts[V].origin===0?this.fonts[V].loaded=!0:(re=this.fonts[V].monoCase.node,le=this.fonts[V].monoCase.w,re.offsetWidth!==le?(he-=1,this.fonts[V].loaded=!0):(re=this.fonts[V].sansCase.node,le=this.fonts[V].sansCase.w,re.offsetWidth!==le&&(he-=1,this.fonts[V].loaded=!0)),this.fonts[V].loaded&&(this.fonts[V].sansCase.parent.parentNode.removeChild(this.fonts[V].sansCase.parent),this.fonts[V].monoCase.parent.parentNode.removeChild(this.fonts[V].monoCase.parent)));he!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ee(V,Y){var re=document.body&&Y?"svg":"canvas",le,he=nr(V);if(re==="svg"){var Oe=yt("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",V.fFamily),Oe.setAttribute("font-style",he.style),Oe.setAttribute("font-weight",he.weight),Oe.textContent="1",V.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",V.fClass)):Oe.style.fontFamily=V.fFamily,Y.appendChild(Oe),le=Oe}else{var tt=new OffscreenCanvas(500,500).getContext("2d");tt.font=he.style+" "+he.weight+" 100px "+V.fFamily,le=tt}function Qe(Ne){return re==="svg"?(le.textContent=Ne,le.getComputedTextLength()):le.measureText(Ne).width}return{measureText:Qe}}function ye(V,Y){if(!V){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=V.list;return}if(!document.body){this.isLoaded=!0,V.list.forEach(function(be){be.helper=ee(be),be.cache={}}),this.fonts=V.list;return}var re=V.list,le,he=re.length,Oe=he;for(le=0;le<he;le+=1){var tt=!0,Qe,Ne;if(re[le].loaded=!1,re[le].monoCase=q(re[le].fFamily,"monospace"),re[le].sansCase=q(re[le].fFamily,"sans-serif"),!re[le].fPath)re[le].loaded=!0,Oe-=1;else if(re[le].fOrigin==="p"||re[le].origin===3){if(Qe=document.querySelectorAll('style[f-forigin="p"][f-family="'+re[le].fFamily+'"], style[f-origin="3"][f-family="'+re[le].fFamily+'"]'),Qe.length>0&&(tt=!1),tt){var at=ke("style");at.setAttribute("f-forigin",re[le].fOrigin),at.setAttribute("f-origin",re[le].origin),at.setAttribute("f-family",re[le].fFamily),at.type="text/css",at.innerText="@font-face {font-family: "+re[le].fFamily+"; font-style: normal; src: url('"+re[le].fPath+"');}",Y.appendChild(at)}}else if(re[le].fOrigin==="g"||re[le].origin===1){for(Qe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ne=0;Ne<Qe.length;Ne+=1)Qe[Ne].href.indexOf(re[le].fPath)!==-1&&(tt=!1);if(tt){var ft=ke("link");ft.setAttribute("f-forigin",re[le].fOrigin),ft.setAttribute("f-origin",re[le].origin),ft.type="text/css",ft.rel="stylesheet",ft.href=re[le].fPath,document.body.appendChild(ft)}}else if(re[le].fOrigin==="t"||re[le].origin===2){for(Qe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ne=0;Ne<Qe.length;Ne+=1)re[le].fPath===Qe[Ne].src&&(tt=!1);if(tt){var Be=ke("link");Be.setAttribute("f-forigin",re[le].fOrigin),Be.setAttribute("f-origin",re[le].origin),Be.setAttribute("rel","stylesheet"),Be.setAttribute("href",re[le].fPath),Y.appendChild(Be)}}re[le].helper=ee(re[le],Y),re[le].cache={},this.fonts.push(re[le])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function xe(V){if(V){this.chars||(this.chars=[]);var Y,re=V.length,le,he=this.chars.length,Oe;for(Y=0;Y<re;Y+=1){for(le=0,Oe=!1;le<he;)this.chars[le].style===V[Y].style&&this.chars[le].fFamily===V[Y].fFamily&&this.chars[le].ch===V[Y].ch&&(Oe=!0),le+=1;Oe||(this.chars.push(V[Y]),he+=1)}}}function Re(V,Y,re){for(var le=0,he=this.chars.length;le<he;){if(this.chars[le].ch===V&&this.chars[le].style===Y&&this.chars[le].fFamily===re)return this.chars[le];le+=1}return(typeof V=="string"&&V.charCodeAt(0)!==13||!V)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",V,Y,re)),p}function R(V,Y,re){var le=this.getFontByName(Y),he=V.charCodeAt(0);if(!le.cache[he+1]){var Oe=le.helper;if(V===" "){var tt=Oe.measureText("|"+V+"|"),Qe=Oe.measureText("||");le.cache[he+1]=(tt-Qe)/100}else le.cache[he+1]=Oe.measureText(V)/100}return le.cache[he+1]*re}function te(V){for(var Y=0,re=this.fonts.length;Y<re;){if(this.fonts[Y].fName===V)return this.fonts[Y];Y+=1}return this.fonts[0]}function Z(V,Y){var re=V.toString(16)+Y.toString(16);return x.indexOf(re)!==-1}function de(V,Y){return Y?V===P[0]&&Y===P[1]:V===P[1]}function fe(V){return v.indexOf(V)!==-1}function H(){this.isLoaded=!0}var X=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};X.isModifier=Z,X.isZeroWidthJoiner=de,X.isCombinedCharacter=fe;var I={addChars:xe,addFonts:ye,getCharData:Re,getFontByName:te,measureText:R,checkLoadedFonts:pe,setIsLoaded:H};return X.prototype=I,X}();function Nn(){}Nn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Dn=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Di(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Ai(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function qa(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function ta(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function ur(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function bo(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Jd(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Qd(){this.p={}}function zc(c,p){var v=c.ef||[];this.effectElements=[];var x,P=v.length,_;for(x=0;x<P;x+=1)_=new na(v[x],p),this.effectElements.push(_)}function na(c,p){this.init(c,p)}Ie([dn],na),na.prototype.getValue=na.prototype.iterateDynamicProperties,na.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,x=this.data.ef.length,P,_=this.data.ef;for(v=0;v<x;v+=1){switch(P=null,_[v].ty){case 0:P=new Di(_[v],p,this);break;case 1:P=new Ai(_[v],p,this);break;case 2:P=new qa(_[v],p,this);break;case 3:P=new ta(_[v],p,this);break;case 4:case 7:P=new Jd(_[v],p,this);break;case 10:P=new ur(_[v],p,this);break;case 11:P=new bo(_[v],p,this);break;case 5:P=new zc(_[v],p);break;default:P=new Qd(_[v]);break}P&&this.effectElements.push(P)}};function ss(){}ss.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=Dn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,x){this.globalData=v,this.comp=x,this.data=p,this.layerId=Ut(),this.data.sr||(this.data.sr=1),this.effectsManager=new zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function In(){}In.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var x,P=this.dynamicProperties.length;for(x=0;x<P;x+=1)(v||this._isParent&&this.dynamicProperties[x].propType==="transform")&&(this.dynamicProperties[x].getValue(),this.dynamicProperties[x]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ms(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ms.prototype.prepareFrame=function(){},Ie([Nn,ss,In],Ms),Ms.prototype.getBaseElement=function(){return null},Ms.prototype.renderFrame=function(){},Ms.prototype.destroy=function(){},Ms.prototype.initExpressions=function(){},Ms.prototype.getFootageData=function(){return this.footageData};function hn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var x=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(x),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=st.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}hn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Ie([Nn,ss,In],hn),hn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},hn.prototype.show=function(){},hn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},hn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},hn.prototype.resume=function(){this._canPlay=!0},hn.prototype.setRate=function(c){this.audio.rate(c)},hn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},hn.prototype.getBaseElement=function(){return null},hn.prototype.destroy=function(){},hn.prototype.sourceRectAtTime=function(){},hn.prototype.initExpressions=function(){};function lr(){}lr.prototype.checkLayers=function(c){var p,v=this.layers.length,x;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(x=this.layers[p],x.ip-x.st<=c-this.layers[p].st&&x.op-x.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},lr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},lr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},lr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},lr.prototype.createFootage=function(c){return new Ms(c,this.globalData,this)},lr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},lr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,x,P=this.layers.length;for(p=0;p<v;p+=1)for(x=0;x<P;){if(this.layers[x].id===c[p].id){this.layers[x]=c[p];break}x+=1}},lr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},lr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},lr.prototype.buildElementParenting=function(c,p,v){for(var x=this.elements,P=this.layers,_=0,q=P.length;_<q;)P[_].ind==p&&(!x[_]||x[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push(x[_]),x[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},lr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},lr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var x=this.createComp(c[p]);x.initExpressions(),this.globalData.projectInterface.registerComposition(x)}},lr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},lr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var x,P=this.elements.length;for(x=0;x<P;x+=1)if(this.elements[x].data.nm===p){v=this.elements[x];break}}return c.length===0?v:v.getElementByPath(c)},lr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ar,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function $o(){}$o.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Qo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new On},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,x=0,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;x<P;){if(this.hierarchy[x].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}x+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),x=0;x<P;x+=1)p=this.hierarchy[x].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var x=!0,P=this.comp;x;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):x=!1;var _,q=v.length,pe;for(_=0;_<q;_+=1)pe=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-pe[0],p[1]-pe[1],0];return p},mHelper:new On};function Cr(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var x=this.globalData.defs,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ue(_),this.solidPath="";var q,pe=this.masksProperties,ee=0,ye=[],xe,Re,R=Ut(),te,Z,de,fe,H="clipPath",X="clip-path";for(P=0;P<_;P+=1)if((pe[P].mode!=="a"&&pe[P].mode!=="n"||pe[P].inv||pe[P].o.k!==100||pe[P].o.x)&&(H="mask",X="mask"),(pe[P].mode==="s"||pe[P].mode==="i")&&ee===0?(te=yt("rect"),te.setAttribute("fill","#ffffff"),te.setAttribute("width",this.element.comp.data.w||0),te.setAttribute("height",this.element.comp.data.h||0),ye.push(te)):te=null,q=yt("path"),pe[P].mode==="n")this.viewData[P]={op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:di.getShapeProp(this.element,pe[P],3),elem:q,lastPath:""},x.appendChild(q);else{ee+=1,q.setAttribute("fill",pe[P].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var I;if(pe[P].x.k!==0?(H="mask",X="mask",fe=st.getProp(this.element,pe[P].x,0,null,this.element),I=Ut(),Z=yt("filter"),Z.setAttribute("id",I),de=yt("feMorphology"),de.setAttribute("operator","erode"),de.setAttribute("in","SourceGraphic"),de.setAttribute("radius","0"),Z.appendChild(de),x.appendChild(Z),q.setAttribute("stroke",pe[P].mode==="s"?"#000000":"#ffffff")):(de=null,fe=null),this.storedData[P]={elem:q,x:fe,expan:de,lastPath:"",lastOperator:"",filterId:I,lastRadius:0},pe[P].mode==="i"){Re=ye.length;var V=yt("g");for(xe=0;xe<Re;xe+=1)V.appendChild(ye[xe]);var Y=yt("mask");Y.setAttribute("mask-type","alpha"),Y.setAttribute("id",R+"_"+ee),Y.appendChild(q),x.appendChild(Y),V.setAttribute("mask","url("+Pe()+"#"+R+"_"+ee+")"),ye.length=0,ye.push(V)}else ye.push(q);pe[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:q,lastPath:"",op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:di.getShapeProp(this.element,pe[P],3),invRect:te},this.viewData[P].prop.k||this.drawPath(pe[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=yt(H),_=ye.length,P=0;P<_;P+=1)this.maskElement.appendChild(ye[P]);ee>0&&(this.maskElement.setAttribute("id",R),this.element.maskedElement.setAttribute(X,"url("+Pe()+"#"+R+")"),x.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Cr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Cr.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,x=this.masksProperties.length;for(v=0;v<x;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var P=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Pe()+"#"+this.storedData[v].filterId+")")),P.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Cr.prototype.getMaskelement=function(){return this.maskElement},Cr.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Cr.prototype.drawPath=function(c,p,v){var x=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&(x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==x){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+x:x),v.elem.setAttribute("d",q)),v.lastPath=x}},Cr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Rs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(x,P){var _=yt("filter");return _.setAttribute("id",x),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var x=yt("feColorMatrix");return x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),x}return c}(),sl=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),cn={},os="filter_result_";function ol(c){var p,v="SourceGraphic",x=c.data.ef?c.data.ef.length:0,P=Ut(),_=Rs.createFilter(P,!0),q=0;this.filters=[];var pe;for(p=0;p<x;p+=1){pe=null;var ee=c.data.ef[p].ty;if(cn[ee]){var ye=cn[ee].effect;pe=new ye(_,c.effectsManager.effectElements[p],c,os+q,v),v=os+q,cn[ee].countsAsEffect&&(q+=1)}pe&&this.filters.push(pe)}q&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+Pe()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}ol.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=yt("g")},createContainerElements:function(){this.matteElement=yt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=yt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var x=yt("clipPath"),P=yt("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=Ut();if(x.setAttribute("id",_),x.appendChild(P),this.globalData.defs.appendChild(x),this.checkMasks()){var q=yt("g");q.setAttribute("clip-path","url("+Pe()+"#"+_+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+_+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Cr(this.data,this,this.globalData),this.renderableEffectsManager=new ol(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,x,P,_,q;if(p===1||p===3){var pe=yt("mask");pe.setAttribute("id",v),pe.setAttribute("mask-type",p===3?"luminance":"alpha"),_=yt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pe.appendChild(_),this.globalData.defs.appendChild(pe),!sl.maskType&&p===1&&(pe.setAttribute("mask-type","luminance"),x=Ut(),P=Rs.createFilter(x),this.globalData.defs.appendChild(P),P.appendChild(Rs.createAlphaToLuminanceFilter()),q=yt("g"),q.appendChild(_),pe.appendChild(q),q.setAttribute("filter","url("+Pe()+"#"+x+")"))}else if(p===2){var ee=yt("mask");ee.setAttribute("id",v),ee.setAttribute("mask-type","alpha");var ye=yt("g");ee.appendChild(ye),x=Ut(),P=Rs.createFilter(x);var xe=yt("feComponentTransfer");xe.setAttribute("in","SourceGraphic"),P.appendChild(xe);var Re=yt("feFuncA");Re.setAttribute("type","table"),Re.setAttribute("tableValues","1.0 0.0"),xe.appendChild(Re),this.globalData.defs.appendChild(P);var R=yt("rect");R.setAttribute("width",this.comp.data.w),R.setAttribute("height",this.comp.data.h),R.setAttribute("x","0"),R.setAttribute("y","0"),R.setAttribute("fill","#ffffff"),R.setAttribute("opacity","0"),ye.setAttribute("filter","url("+Pe()+"#"+x+")"),ye.appendChild(R),_=yt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(_),sl.maskType||(ee.setAttribute("mask-type","luminance"),P.appendChild(Rs.createAlphaToLuminanceFilter()),q=yt("g"),ye.appendChild(R),q.appendChild(this.layerElement),ye.appendChild(q)),this.globalData.defs.appendChild(ee)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Pe()+"#"+p+")")}};function Fs(){}Fs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ha(){}(function(){var c={initElement:function(v,x,P){this.initFrame(),this.initBaseData(v,x,P),this.initTransform(v,x,P),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Ie([Nn,Ze(c)],Ha)})();function Ga(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Ie([ss,$o,Wa,Fs,In,Ha],Ga),Ga.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=yt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Ga.prototype.sourceRectAtTime=function(){return this.sourceRect};function dg(c,p){this.elem=c,this.pos=p}function qc(){}qc.prototype={addShapeToModifiers:function(p){var v,x=this.shapeModifiers.length;for(v=0;v<x;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,x=this.shapeModifiers.length;v<x;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var x;for(p=v-1;p>=0&&(x=this.shapeModifiers[p].processShapes(this._isFirstFrame),!x);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,x=0,P=v.length;x<P;){if(v[x].elem===p)return v[x].pos;x+=1}return 0},addProcessedElement:function(p,v){for(var x=this.processedElements,P=x.length;P;)if(P-=1,x[P].elem===p){x[P].pos=v;return}x.push(new dg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ya={1:"butt",2:"round",3:"square"},xo={1:"miter",2:"round",3:"bevel"};function eh(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var x=0,P=c.length;x<P;){if(c[x].mProps.dynamicProperties.length){this._isAnimated=!0;break}x+=1}}eh.prototype.setAsAnimated=function(){this._isAnimated=!0};function Wc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=yt("path"),this.msElem=null}Wc.prototype.reset=function(){this.d="",this._mdf=!1};function Za(c,p,v,x){this.elem=c,this.frameId=-1,this.dataProps=Ue(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=De("float32",p.length?p.length-1:0),this.dashoffset=De("float32",1),this.initDynamicPropertyContainer(x);var P,_=p.length||0,q;for(P=0;P<_;P+=1)q=st.getProp(c,p[P].v,0,0,this),this.k=q.k||this.k,this.dataProps[P]={n:p[P].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}Za.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Ie([dn],Za);function al(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.w=st.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Ie([dn],al);function ul(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.c=st.getProp(c,p.c,1,255,this),this.style=v}Ie([dn],ul);function Hc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Ie([dn],Hc);function Xa(c,p,v){this.data=p,this.c=De("uint8c",p.p*4);var x=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=De("float32",x),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=x,this.initDynamicPropertyContainer(v),this.prop=st.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Xa.prototype.comparePoints=function(c,p){for(var v=0,x=this.o.length/2,P;v<x;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},Xa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Xa.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,x,P;for(p=0;p<v;p+=1)x=p%4===0?100:255,P=Math.round(this.prop.v[p]*x),this.c[p]!==P&&(this.c[p]=P,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)x=p%2===0?100:1,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Ie([dn],Xa);function ks(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}ks.prototype.initGradientData=function(c,p,v){this.o=st.getProp(c,p.o,0,.01,this),this.s=st.getProp(c,p.s,1,null,this),this.e=st.getProp(c,p.e,1,null,this),this.h=st.getProp(c,p.h||{k:0},0,.01,this),this.a=st.getProp(c,p.a||{k:0},0,Ee,this),this.g=new Xa(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},ks.prototype.setGradientData=function(c,p){var v=Ut(),x=yt(p.t===1?"linearGradient":"radialGradient");x.setAttribute("id",v),x.setAttribute("spreadMethod","pad"),x.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,q,pe;for(pe=p.g.p*4,q=0;q<pe;q+=4)_=yt("stop"),x.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+v+")"),this.gf=x,this.cst=P},ks.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,x,P,_=yt("mask"),q=yt("path");_.appendChild(q);var pe=Ut(),ee=Ut();_.setAttribute("id",ee);var ye=yt(c.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",pe),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),P=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var xe=this.stops;for(x=c.g.p*4;x<P;x+=2)v=yt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(v),xe.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+pe+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",Ya[c.lc||2]),q.setAttribute("stroke-linejoin",xo[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=ye,this.ms=_,this.ost=xe,this.maskId=ee,p.msElem=q}},Ie([dn],ks);function ll(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Ie([ks,dn],ll);function hg(){this.it=[],this.prevViewData=[],this.gr=yt("g")}function th(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Sr=function(p,v,x,P){if(v===0)return"";var _=p.o,q=p.i,pe=p.v,ee,ye=" M"+P.applyToPointStringified(pe[0][0],pe[0][1]);for(ee=1;ee<v;ee+=1)ye+=" C"+P.applyToPointStringified(_[ee-1][0],_[ee-1][1])+" "+P.applyToPointStringified(q[ee][0],q[ee][1])+" "+P.applyToPointStringified(pe[ee][0],pe[ee][1]);return x&&v&&(ye+=" C"+P.applyToPointStringified(_[ee-1][0],_[ee-1][1])+" "+P.applyToPointStringified(q[0][0],q[0][1])+" "+P.applyToPointStringified(pe[0][0],pe[0][1]),ye+="z"),ye},Gc=function(){var c=new On,p=new On,v={createRenderFunction:x};function x(Re){switch(Re.ty){case"fl":return pe;case"gf":return ye;case"gs":return ee;case"st":return xe;case"sh":case"el":case"rc":case"sr":return q;case"tr":return P;case"no":return _;default:return null}}function P(Re,R,te){(te||R.transform.op._mdf)&&R.transform.container.setAttribute("opacity",R.transform.op.v),(te||R.transform.mProps._mdf)&&R.transform.container.setAttribute("transform",R.transform.mProps.v.to2dCSS())}function _(){}function q(Re,R,te){var Z,de,fe,H,X,I,V=R.styles.length,Y=R.lvl,re,le,he,Oe,tt;for(I=0;I<V;I+=1){if(H=R.sh._mdf||te,R.styles[I].lvl<Y){for(le=p.reset(),Oe=Y-R.styles[I].lvl,tt=R.transformers.length-1;!H&&Oe>0;)H=R.transformers[tt].mProps._mdf||H,Oe-=1,tt-=1;if(H)for(Oe=Y-R.styles[I].lvl,tt=R.transformers.length-1;Oe>0;)he=R.transformers[tt].mProps.v.props,le.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),Oe-=1,tt-=1}else le=c;if(re=R.sh.paths,de=re._length,H){for(fe="",Z=0;Z<de;Z+=1)X=re.shapes[Z],X&&X._length&&(fe+=Sr(X,X._length,X.c,le));R.caches[I]=fe}else fe=R.caches[I];R.styles[I].d+=Re.hd===!0?"":fe,R.styles[I]._mdf=H||R.styles[I]._mdf}}function pe(Re,R,te){var Z=R.style;(R.c._mdf||te)&&Z.pElem.setAttribute("fill","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||te)&&Z.pElem.setAttribute("fill-opacity",R.o.v)}function ee(Re,R,te){ye(Re,R,te),xe(Re,R,te)}function ye(Re,R,te){var Z=R.gf,de=R.g._hasOpacity,fe=R.s.v,H=R.e.v;if(R.o._mdf||te){var X=Re.ty==="gf"?"fill-opacity":"stroke-opacity";R.style.pElem.setAttribute(X,R.o.v)}if(R.s._mdf||te){var I=Re.t===1?"x1":"cx",V=I==="x1"?"y1":"cy";Z.setAttribute(I,fe[0]),Z.setAttribute(V,fe[1]),de&&!R.g._collapsable&&(R.of.setAttribute(I,fe[0]),R.of.setAttribute(V,fe[1]))}var Y,re,le,he;if(R.g._cmdf||te){Y=R.cst;var Oe=R.g.c;for(le=Y.length,re=0;re<le;re+=1)he=Y[re],he.setAttribute("offset",Oe[re*4]+"%"),he.setAttribute("stop-color","rgb("+Oe[re*4+1]+","+Oe[re*4+2]+","+Oe[re*4+3]+")")}if(de&&(R.g._omdf||te)){var tt=R.g.o;for(R.g._collapsable?Y=R.cst:Y=R.ost,le=Y.length,re=0;re<le;re+=1)he=Y[re],R.g._collapsable||he.setAttribute("offset",tt[re*2]+"%"),he.setAttribute("stop-opacity",tt[re*2+1])}if(Re.t===1)(R.e._mdf||te)&&(Z.setAttribute("x2",H[0]),Z.setAttribute("y2",H[1]),de&&!R.g._collapsable&&(R.of.setAttribute("x2",H[0]),R.of.setAttribute("y2",H[1])));else{var Qe;if((R.s._mdf||R.e._mdf||te)&&(Qe=Math.sqrt(Math.pow(fe[0]-H[0],2)+Math.pow(fe[1]-H[1],2)),Z.setAttribute("r",Qe),de&&!R.g._collapsable&&R.of.setAttribute("r",Qe)),R.e._mdf||R.h._mdf||R.a._mdf||te){Qe||(Qe=Math.sqrt(Math.pow(fe[0]-H[0],2)+Math.pow(fe[1]-H[1],2)));var Ne=Math.atan2(H[1]-fe[1],H[0]-fe[0]),at=R.h.v;at>=1?at=.99:at<=-1&&(at=-.99);var ft=Qe*at,Be=Math.cos(Ne+R.a.v)*ft+fe[0],be=Math.sin(Ne+R.a.v)*ft+fe[1];Z.setAttribute("fx",Be),Z.setAttribute("fy",be),de&&!R.g._collapsable&&(R.of.setAttribute("fx",Be),R.of.setAttribute("fy",be))}}}function xe(Re,R,te){var Z=R.style,de=R.d;de&&(de._mdf||te)&&de.dashStr&&(Z.pElem.setAttribute("stroke-dasharray",de.dashStr),Z.pElem.setAttribute("stroke-dashoffset",de.dashoffset[0])),R.c&&(R.c._mdf||te)&&Z.pElem.setAttribute("stroke","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||te)&&Z.pElem.setAttribute("stroke-opacity",R.o.v),(R.w._mdf||te)&&(Z.pElem.setAttribute("stroke-width",R.w.v),Z.msElem&&Z.msElem.setAttribute("stroke-width",R.w.v))}return v}();function yn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Ie([ss,$o,Wa,qc,Fs,In,Ha],yn),yn.prototype.initSecondaryElement=function(){},yn.prototype.identityMatrix=new On,yn.prototype.buildExpressionInterface=function(){},yn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},yn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,x,P=this.stylesList.length,_,q=[],pe=!1;for(x=0;x<P;x+=1){for(_=this.stylesList[x],pe=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(q.push(v),pe=v._isAnimated||pe);q.length>1&&pe&&this.setShapesAsAnimated(q)}},yn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},yn.prototype.createStyleElement=function(c,p){var v,x=new Wc(c,p),P=x.pElem;if(c.ty==="st")v=new al(this,c,x);else if(c.ty==="fl")v=new ul(this,c,x);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?ks:ll;v=new _(this,c,x),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),P.setAttribute("mask","url("+Pe()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Hc(this,c,x));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",Ya[c.lc||2]),P.setAttribute("stroke-linejoin",xo[c.lj||2]),P.setAttribute("fill-opacity","0"),c.lj===1&&P.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&P.setAttribute("fill-rule","evenodd"),c.ln&&P.setAttribute("id",c.ln),c.cl&&P.setAttribute("class",c.cl),c.bm&&(P.style["mix-blend-mode"]=Dn(c.bm)),this.stylesList.push(x),this.addToAnimatedContents(c,v),v},yn.prototype.createGroupElement=function(c){var p=new hg;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=Dn(c.bm)),p},yn.prototype.createTransformElement=function(c,p){var v=Qo.getTransformProperty(this,c,this),x=new th(v,v.o,p);return this.addToAnimatedContents(c,x),x},yn.prototype.createShapeElement=function(c,p,v){var x=4;c.ty==="rc"?x=5:c.ty==="el"?x=6:c.ty==="sr"&&(x=7);var P=di.getShapeProp(this,c,x,this),_=new eh(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},yn.prototype.addToAnimatedContents=function(c,p){for(var v=0,x=this.animatedContents.length;v<x;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Gc.createRenderFunction(c),element:p,data:c})},yn.prototype.setElementStyles=function(c){var p=c.styles,v,x=this.stylesList.length;for(v=0;v<x;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},yn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},yn.prototype.searchShapes=function(c,p,v,x,P,_,q){var pe=[].concat(_),ee,ye=c.length-1,xe,Re,R=[],te=[],Z,de,fe;for(ee=ye;ee>=0;ee-=1){if(fe=this.searchProcessedElement(c[ee]),fe?p[ee]=v[fe-1]:c[ee]._render=q,c[ee].ty==="fl"||c[ee].ty==="st"||c[ee].ty==="gf"||c[ee].ty==="gs"||c[ee].ty==="no")fe?p[ee].style.closed=!1:p[ee]=this.createStyleElement(c[ee],P),c[ee]._render&&p[ee].style.pElem.parentNode!==x&&x.appendChild(p[ee].style.pElem),R.push(p[ee].style);else if(c[ee].ty==="gr"){if(!fe)p[ee]=this.createGroupElement(c[ee]);else for(Re=p[ee].it.length,xe=0;xe<Re;xe+=1)p[ee].prevViewData[xe]=p[ee].it[xe];this.searchShapes(c[ee].it,p[ee].it,p[ee].prevViewData,p[ee].gr,P+1,pe,q),c[ee]._render&&p[ee].gr.parentNode!==x&&x.appendChild(p[ee].gr)}else c[ee].ty==="tr"?(fe||(p[ee]=this.createTransformElement(c[ee],x)),Z=p[ee].transform,pe.push(Z)):c[ee].ty==="sh"||c[ee].ty==="rc"||c[ee].ty==="el"||c[ee].ty==="sr"?(fe||(p[ee]=this.createShapeElement(c[ee],pe,P)),this.setElementStyles(p[ee])):c[ee].ty==="tm"||c[ee].ty==="rd"||c[ee].ty==="ms"||c[ee].ty==="pb"||c[ee].ty==="zz"||c[ee].ty==="op"?(fe?(de=p[ee],de.closed=!1):(de=kr.getModifier(c[ee].ty),de.init(this,c[ee]),p[ee]=de,this.shapeModifiers.push(de)),te.push(de)):c[ee].ty==="rp"&&(fe?(de=p[ee],de.closed=!0):(de=kr.getModifier(c[ee].ty),p[ee]=de,de.init(this,c,ee,p),this.shapeModifiers.push(de),q=!1),te.push(de));this.addProcessedElement(c[ee],ee+1)}for(ye=R.length,ee=0;ee<ye;ee+=1)R[ee].closed=!0;for(ye=te.length,ee=0;ee<ye;ee+=1)te[ee].closed=!0},yn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},yn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},yn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function cl(c,p,v,x,P,_){this.o=c,this.sw=p,this.sc=v,this.fc=x,this.m=P,this.p=_,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!x,m:!0,p:!0}}cl.prototype.update=function(c,p,v,x,P,_){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==x&&(this.fc=x,this._mdf.fc=!0,q=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,q=!0),_.length&&(this.p[0]!==_[0]||this.p[1]!==_[1]||this.p[4]!==_[4]||this.p[5]!==_[5]||this.p[12]!==_[12]||this.p[13]!==_[13])&&(this.p=_,this._mdf.p=!0,q=!0),q};function cr(c,p){this._frameId=ge,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}cr.prototype.defaultBoxWidth=[0,0],cr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},cr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},cr.prototype.searchProperty=function(){return this.searchKeyframes()},cr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},cr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},cr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var x,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for(x=0;x<P;x+=1)v!==this.keysIndex?_=this.effectsSequence[x](_,_.t):_=this.effectsSequence[x](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},cr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,x=c.length;v<=x-1&&!(v===x-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},cr.prototype.buildFinalText=function(c){for(var p=[],v=0,x=c.length,P,_,q=!1;v<x;)P=c.charCodeAt(v),ar.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(q||ar.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),ar.isZeroWidthJoiner(P,_)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ar.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},cr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,x=[],P,_,q,pe=0,ee,ye=v.m.g,xe=0,Re=0,R=0,te=[],Z=0,de=0,fe,H,X=p.getFontByName(c.f),I,V=0,Y=nr(X);c.fWeight=Y.weight,c.fStyle=Y.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),_=c.finalText.length,c.finalLineHeight=c.lh;var re=c.tr/1e3*c.finalSize,le;if(c.sz)for(var he=!0,Oe=c.sz[0],tt=c.sz[1],Qe,Ne;he;){Ne=this.buildFinalText(c.t),Qe=0,Z=0,_=Ne.length,re=c.tr/1e3*c.finalSize;var at=-1;for(P=0;P<_;P+=1)le=Ne[P].charCodeAt(0),q=!1,Ne[P]===" "?at=P:(le===13||le===3)&&(Z=0,q=!0,Qe+=c.finalLineHeight||c.finalSize*1.2),p.chars?(I=p.getCharData(Ne[P],X.fStyle,X.fFamily),V=q?0:I.w*c.finalSize/100):V=p.measureText(Ne[P],c.f,c.finalSize),Z+V>Oe&&Ne[P]!==" "?(at===-1?_+=1:P=at,Qe+=c.finalLineHeight||c.finalSize*1.2,Ne.splice(P,at===P?1:0,"\r"),at=-1,Z=0):(Z+=V,Z+=re);Qe+=X.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&tt<Qe?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ne,_=c.finalText.length,he=!1)}Z=-re,V=0;var ft=0,Be;for(P=0;P<_;P+=1)if(q=!1,Be=c.finalText[P],le=Be.charCodeAt(0),le===13||le===3?(ft=0,te.push(Z),de=Z>de?Z:de,Z=-2*re,ee="",q=!0,R+=1):ee=Be,p.chars?(I=p.getCharData(Be,X.fStyle,p.getFontByName(c.f).fFamily),V=q?0:I.w*c.finalSize/100):V=p.measureText(ee,c.f,c.finalSize),Be===" "?ft+=V+re:(Z+=V+re+ft,ft=0),x.push({l:V,an:V,add:xe,n:q,anIndexes:[],val:ee,line:R,animatorJustifyOffset:0}),ye==2){if(xe+=V,ee===""||ee===" "||P===_-1){for((ee===""||ee===" ")&&(xe-=V);Re<=P;)x[Re].an=xe,x[Re].ind=pe,x[Re].extra=V,Re+=1;pe+=1,xe=0}}else if(ye==3){if(xe+=V,ee===""||P===_-1){for(ee===""&&(xe-=V);Re<=P;)x[Re].an=xe,x[Re].ind=pe,x[Re].extra=V,Re+=1;xe=0,pe+=1}}else x[pe].ind=pe,x[pe].extra=0,pe+=1;if(c.l=x,de=Z>de?Z:de,te.push(Z),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=de,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=te;var be=v.a,ce,Q;H=be.length;var me,je,Fe=[];for(fe=0;fe<H;fe+=1){for(ce=be[fe],ce.a.sc&&(c.strokeColorAnim=!0),ce.a.sw&&(c.strokeWidthAnim=!0),(ce.a.fc||ce.a.fh||ce.a.fs||ce.a.fb)&&(c.fillColorAnim=!0),je=0,me=ce.s.b,P=0;P<_;P+=1)Q=x[P],Q.anIndexes[fe]=je,(me==1&&Q.val!==""||me==2&&Q.val!==""&&Q.val!==" "||me==3&&(Q.n||Q.val==" "||P==_-1)||me==4&&(Q.n||P==_-1))&&(ce.s.rn===1&&Fe.push(je),je+=1);v.a[fe].s.totalChars=je;var ct=-1,Tt;if(ce.s.rn===1)for(P=0;P<_;P+=1)Q=x[P],ct!=Q.anIndexes[fe]&&(ct=Q.anIndexes[fe],Tt=Fe.splice(Math.floor(Math.random()*Fe.length),1)[0]),Q.anIndexes[fe]=Tt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=X.ascent*c.finalSize/100},cr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},cr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},cr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},cr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var pg=function(){var c=Math.max,p=Math.min,v=Math.floor;function x(_,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=st.getProp(_,q.s||{k:0},0,0,this),"e"in q?this.e=st.getProp(_,q.e,0,0,this):this.e={v:100},this.o=st.getProp(_,q.o||{k:0},0,0,this),this.xe=st.getProp(_,q.xe||{k:0},0,0,this),this.ne=st.getProp(_,q.ne||{k:0},0,0,this),this.sm=st.getProp(_,q.sm||{k:100},0,0,this),this.a=st.getProp(_,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}x.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pe=0,ee=0,ye=1,xe=1;this.ne.v>0?pe=this.ne.v/100:ee=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:xe=1+this.xe.v/100;var Re=uo.getBezierEasing(pe,ee,ye,xe).get,R=0,te=this.finalS,Z=this.finalE,de=this.data.sh;if(de===2)Z===te?R=q>=Z?1:0:R=c(0,p(.5/(Z-te)+(q-te)/(Z-te),1)),R=Re(R);else if(de===3)Z===te?R=q>=Z?0:1:R=1-c(0,p(.5/(Z-te)+(q-te)/(Z-te),1)),R=Re(R);else if(de===4)Z===te?R=0:(R=c(0,p(.5/(Z-te)+(q-te)/(Z-te),1)),R<.5?R*=2:R=1-2*(R-.5)),R=Re(R);else if(de===5){if(Z===te)R=0;else{var fe=Z-te;q=p(c(0,q+.5-te),Z-te);var H=-fe/2+q,X=fe/2;R=Math.sqrt(1-H*H/(X*X))}R=Re(R)}else de===6?(Z===te?R=0:(q=p(c(0,q+.5-te),Z-te),R=(1+Math.cos(Math.PI+Math.PI*2*q/(Z-te)))/2),R=Re(R)):(q>=v(te)&&(q-te<0?R=c(0,p(p(Z,1)-(te-q),1)):R=c(0,p(Z-q,1))),R=Re(R));if(this.sm.v!==100){var I=this.sm.v*.01;I===0&&(I=1e-8);var V=.5-I*.5;R<V?R=0:(R=(R-V)/I,R>1&&(R=1))}return R*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var pe=this.data.r===2?1:100/this.data.totalChars,ee=this.o.v/pe,ye=this.s.v/pe+ee,xe=this.e.v/pe+ee;if(ye>xe){var Re=ye;ye=xe,xe=Re}this.finalS=ye,this.finalE=xe}},Ie([dn],x);function P(_,q,pe){return new x(_,q)}return{getTextSelectorProp:P}}();function mg(c,p,v){var x={propType:!1},P=st.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,Ee,v):x,rx:_.rx?P(c,_.rx,0,Ee,v):x,ry:_.ry?P(c,_.ry,0,Ee,v):x,sk:_.sk?P(c,_.sk,0,Ee,v):x,sa:_.sa?P(c,_.sa,0,Ee,v):x,s:_.s?P(c,_.s,1,.01,v):x,a:_.a?P(c,_.a,1,0,v):x,o:_.o?P(c,_.o,0,.01,v):x,p:_.p?P(c,_.p,1,0,v):x,sw:_.sw?P(c,_.sw,0,0,v):x,sc:_.sc?P(c,_.sc,1,0,v):x,fc:_.fc?P(c,_.fc,1,0,v):x,fh:_.fh?P(c,_.fh,0,0,v):x,fs:_.fs?P(c,_.fs,0,.01,v):x,fb:_.fb?P(c,_.fb,0,.01,v):x,t:_.t?P(c,_.t,0,0,v):x},this.s=pg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function wo(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ue(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}wo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,x=st.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new mg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:x(this._elem,this._textData.p.a,0,0,this),f:x(this._elem,this._textData.p.f,0,0,this),l:x(this._elem,this._textData.p.l,0,0,this),r:x(this._elem,this._textData.p.r,0,0,this),p:x(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=x(this._elem,this._textData.m.a,1,0,this)},wo.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,x=this._animatorsData,P=this._textData,_=this.mHelper,q=this._renderType,pe=this.renderedLetters.length,ee,ye,xe,Re,R=c.l,te,Z,de,fe,H,X,I,V,Y,re,le,he,Oe,tt,Qe;if(this._hasMaskedPath){if(Qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ne=Qe.v;this._pathData.r.v&&(Ne=Ne.reverse()),te={tLength:0,segments:[]},Re=Ne._length-1;var at;for(he=0,xe=0;xe<Re;xe+=1)at=Zr.buildBezierData(Ne.v[xe],Ne.v[xe+1],[Ne.o[xe][0]-Ne.v[xe][0],Ne.o[xe][1]-Ne.v[xe][1]],[Ne.i[xe+1][0]-Ne.v[xe+1][0],Ne.i[xe+1][1]-Ne.v[xe+1][1]]),te.tLength+=at.segmentLength,te.segments.push(at),he+=at.segmentLength;xe=Re,Qe.v.c&&(at=Zr.buildBezierData(Ne.v[xe],Ne.v[0],[Ne.o[xe][0]-Ne.v[xe][0],Ne.o[xe][1]-Ne.v[xe][1]],[Ne.i[0][0]-Ne.v[0][0],Ne.i[0][1]-Ne.v[0][1]]),te.tLength+=at.segmentLength,te.segments.push(at),he+=at.segmentLength),this._pathData.pi=te}if(te=this._pathData.pi,Z=this._pathData.f.v,I=0,X=1,fe=0,H=!0,re=te.segments,Z<0&&Qe.v.c)for(te.tLength<Math.abs(Z)&&(Z=-Math.abs(Z)%te.tLength),I=re.length-1,Y=re[I].points,X=Y.length-1;Z<0;)Z+=Y[X].partialLength,X-=1,X<0&&(I-=1,Y=re[I].points,X=Y.length-1);Y=re[I].points,V=Y[X-1],de=Y[X],le=de.partialLength}Re=R.length,ee=0,ye=0;var ft=c.finalSize*1.2*.714,Be=!0,be,ce,Q,me,je;me=x.length;var Fe,ct=-1,Tt,Ct,xn,zt=Z,fr=I,Xn=X,Bn=-1,jn,Kn,yr,dt,fn,Jr,Pi,as,mi="",us=this.defaultPropsArray,ls;if(c.j===2||c.j===1){var Ht=0,wn=0,Is=c.j===2?-.5:-1,gi=0,cs=!0;for(xe=0;xe<Re;xe+=1)if(R[xe].n){for(Ht&&(Ht+=wn);gi<xe;)R[gi].animatorJustifyOffset=Ht,gi+=1;Ht=0,cs=!0}else{for(Q=0;Q<me;Q+=1)be=x[Q].a,be.t.propType&&(cs&&c.j===2&&(wn+=be.t.v*Is),ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?Ht+=be.t.v*Fe[0]*Is:Ht+=be.t.v*Fe*Is);cs=!1}for(Ht&&(Ht+=wn);gi<xe;)R[gi].animatorJustifyOffset=Ht,gi+=1}for(xe=0;xe<Re;xe+=1){if(_.reset(),jn=1,R[xe].n)ee=0,ye+=c.yOffset,ye+=Be?1:0,Z=zt,Be=!1,this._hasMaskedPath&&(I=fr,X=Xn,Y=re[I].points,V=Y[X-1],de=Y[X],le=de.partialLength,fe=0),mi="",as="",Jr="",ls="",us=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Bn!==R[xe].line){switch(c.j){case 1:Z+=he-c.lineWidths[R[xe].line];break;case 2:Z+=(he-c.lineWidths[R[xe].line])/2;break}Bn=R[xe].line}ct!==R[xe].ind&&(R[ct]&&(Z+=R[ct].extra),Z+=R[xe].an/2,ct=R[xe].ind),Z+=v[0]*R[xe].an*.005;var vi=0;for(Q=0;Q<me;Q+=1)be=x[Q].a,be.p.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?vi+=be.p.v[0]*Fe[0]:vi+=be.p.v[0]*Fe),be.a.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?vi+=be.a.v[0]*Fe[0]:vi+=be.a.v[0]*Fe);for(H=!0,this._pathData.a.v&&(Z=R[0].an*.5+(he-this._pathData.f.v-R[0].an*.5-R[R.length-1].an*.5)*ct/(Re-1),Z+=this._pathData.f.v);H;)fe+le>=Z+vi||!Y?(Oe=(Z+vi-fe)/de.partialLength,Ct=V.point[0]+(de.point[0]-V.point[0])*Oe,xn=V.point[1]+(de.point[1]-V.point[1])*Oe,_.translate(-v[0]*R[xe].an*.005,-(v[1]*ft)*.01),H=!1):Y&&(fe+=de.partialLength,X+=1,X>=Y.length&&(X=0,I+=1,re[I]?Y=re[I].points:Qe.v.c?(X=0,I=0,Y=re[I].points):(fe-=de.partialLength,Y=null)),Y&&(V=de,de=Y[X],le=de.partialLength));Tt=R[xe].an/2-R[xe].add,_.translate(-Tt,0,0)}else Tt=R[xe].an/2-R[xe].add,_.translate(-Tt,0,0),_.translate(-v[0]*R[xe].an*.005,-v[1]*ft*.01,0);for(Q=0;Q<me;Q+=1)be=x[Q].a,be.t.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),(ee!==0||c.j!==0)&&(this._hasMaskedPath?Fe.length?Z+=be.t.v*Fe[0]:Z+=be.t.v*Fe:Fe.length?ee+=be.t.v*Fe[0]:ee+=be.t.v*Fe));for(c.strokeWidthAnim&&(yr=c.sw||0),c.strokeColorAnim&&(c.sc?Kn=[c.sc[0],c.sc[1],c.sc[2]]:Kn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),Q=0;Q<me;Q+=1)be=x[Q].a,be.a.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?_.translate(-be.a.v[0]*Fe[0],-be.a.v[1]*Fe[1],be.a.v[2]*Fe[2]):_.translate(-be.a.v[0]*Fe,-be.a.v[1]*Fe,be.a.v[2]*Fe));for(Q=0;Q<me;Q+=1)be=x[Q].a,be.s.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?_.scale(1+(be.s.v[0]-1)*Fe[0],1+(be.s.v[1]-1)*Fe[1],1):_.scale(1+(be.s.v[0]-1)*Fe,1+(be.s.v[1]-1)*Fe,1));for(Q=0;Q<me;Q+=1){if(be=x[Q].a,ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),be.sk.propType&&(Fe.length?_.skewFromAxis(-be.sk.v*Fe[0],be.sa.v*Fe[1]):_.skewFromAxis(-be.sk.v*Fe,be.sa.v*Fe)),be.r.propType&&(Fe.length?_.rotateZ(-be.r.v*Fe[2]):_.rotateZ(-be.r.v*Fe)),be.ry.propType&&(Fe.length?_.rotateY(be.ry.v*Fe[1]):_.rotateY(be.ry.v*Fe)),be.rx.propType&&(Fe.length?_.rotateX(be.rx.v*Fe[0]):_.rotateX(be.rx.v*Fe)),be.o.propType&&(Fe.length?jn+=(be.o.v*Fe[0]-jn)*Fe[0]:jn+=(be.o.v*Fe-jn)*Fe),c.strokeWidthAnim&&be.sw.propType&&(Fe.length?yr+=be.sw.v*Fe[0]:yr+=be.sw.v*Fe),c.strokeColorAnim&&be.sc.propType)for(fn=0;fn<3;fn+=1)Fe.length?Kn[fn]+=(be.sc.v[fn]-Kn[fn])*Fe[0]:Kn[fn]+=(be.sc.v[fn]-Kn[fn])*Fe;if(c.fillColorAnim&&c.fc){if(be.fc.propType)for(fn=0;fn<3;fn+=1)Fe.length?dt[fn]+=(be.fc.v[fn]-dt[fn])*Fe[0]:dt[fn]+=(be.fc.v[fn]-dt[fn])*Fe;be.fh.propType&&(Fe.length?dt=Lt(dt,be.fh.v*Fe[0]):dt=Lt(dt,be.fh.v*Fe)),be.fs.propType&&(Fe.length?dt=rn(dt,be.fs.v*Fe[0]):dt=rn(dt,be.fs.v*Fe)),be.fb.propType&&(Fe.length?dt=Pt(dt,be.fb.v*Fe[0]):dt=Pt(dt,be.fb.v*Fe))}}for(Q=0;Q<me;Q+=1)be=x[Q].a,be.p.propType&&(ce=x[Q].s,Fe=ce.getMult(R[xe].anIndexes[Q],P.a[Q].s.totalChars),this._hasMaskedPath?Fe.length?_.translate(0,be.p.v[1]*Fe[0],-be.p.v[2]*Fe[1]):_.translate(0,be.p.v[1]*Fe,-be.p.v[2]*Fe):Fe.length?_.translate(be.p.v[0]*Fe[0],be.p.v[1]*Fe[1],-be.p.v[2]*Fe[2]):_.translate(be.p.v[0]*Fe,be.p.v[1]*Fe,-be.p.v[2]*Fe));if(c.strokeWidthAnim&&(Jr=yr<0?0:yr),c.strokeColorAnim&&(Pi="rgb("+Math.round(Kn[0]*255)+","+Math.round(Kn[1]*255)+","+Math.round(Kn[2]*255)+")"),c.fillColorAnim&&c.fc&&(as="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*ft*.01+ye,0),this._pathData.p.v){tt=(de.point[1]-V.point[1])/(de.point[0]-V.point[0]);var fs=Math.atan(tt)*180/Math.PI;de.point[0]<V.point[0]&&(fs+=180),_.rotate(-fs*Math.PI/180)}_.translate(Ct,xn,0),Z-=v[0]*R[xe].an*.005,R[xe+1]&&ct!==R[xe+1].ind&&(Z+=R[xe].an/2,Z+=c.tr*.001*c.finalSize)}else{switch(_.translate(ee,ye,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(R[xe].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[xe].line]),0,0);break;case 2:_.translate(R[xe].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[xe].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(Tt,0,0),_.translate(v[0]*R[xe].an*.005,v[1]*ft*.01,0),ee+=R[xe].l+c.tr*.001*c.finalSize}q==="html"?mi=_.toCSS():q==="svg"?mi=_.to2dCSS():us=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],ls=jn}pe<=xe?(je=new cl(ls,Jr,Pi,as,mi,us),this.renderedLetters.push(je),pe+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[xe],this.lettersChangedFlag=je.update(ls,Jr,Pi,as,mi,us)||this.lettersChangedFlag)}}},wo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},wo.prototype.mHelper=new On,wo.prototype.defaultPropsArray=[],Ie([dn],wo);function pi(){}pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new cr(this,c.t,this.dynamicProperties),this.textAnimator=new wo(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},pi.prototype.createPathShape=function(c,p){var v,x=p.length,P,_="";for(v=0;v<x;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Sr(P,P.i.length,!0,c));return _},pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,x,P){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(x,P,0)},pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},pi.prototype.emptyProp=new cl,pi.prototype.destroy=function(){};var gg={shapes:[]};function Er(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Ie([ss,$o,Wa,Fs,In,Ha,pi],Er),Er.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=yt("text"))},Er.prototype.buildTextContents=function(c){for(var p=0,v=c.length,x=[],P="";p<v;)c[p]==="\r"||c[p]===""?(x.push(P),P=""):P+=c[p],p+=1;return x.push(P),x},Er.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var x=v.it[v.it.length-1];x.s&&(x.s.k[0]=p,x.s.k[1]=p)}}return c},Er.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ue(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var x=this.globalData.fontManager.getFontByName(v.f);if(x.fClass)this.layerElement.setAttribute("class",x.fClass);else{this.layerElement.setAttribute("font-family",x.fFamily);var P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],pe=!!this.globalData.fontManager.chars;p=q.length;var ee,ye=this.mHelper,xe="",Re=this.data.singleShape,R=0,te=0,Z=!0,de=v.tr*.001*v.finalSize;if(Re&&!pe&&!v.sz){var fe=this.textContainer,H="start";switch(v.j){case 1:H="end";break;case 2:H="middle";break;default:H="start";break}fe.setAttribute("text-anchor",H),fe.setAttribute("letter-spacing",de);var X=this.buildTextContents(v.finalText);for(p=X.length,te=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)ee=this.textSpans[c].span||yt("tspan"),ee.textContent=X[c],ee.setAttribute("x",0),ee.setAttribute("y",te),ee.style.display="inherit",fe.appendChild(ee),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=ee,te+=v.finalLineHeight;this.layerElement.appendChild(fe)}else{var I=this.textSpans.length,V;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!pe||!Re||c===0){if(ee=I>c?this.textSpans[c].span:yt(pe?"g":"text"),I<=c){if(ee.setAttribute("stroke-linecap","butt"),ee.setAttribute("stroke-linejoin","round"),ee.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=ee,pe){var Y=yt("g");ee.appendChild(Y),this.textSpans[c].childSpan=Y}this.textSpans[c].span=ee,this.layerElement.appendChild(ee)}ee.style.display="inherit"}if(ye.reset(),Re&&(q[c].n&&(R=-de,te+=v.yOffset,te+=Z?1:0,Z=!1),this.applyTextPropertiesToMatrix(v,ye,q[c].line,R,te),R+=q[c].l||0,R+=de),pe){V=this.globalData.fontManager.getCharData(v.finalText[c],x.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var re;if(V.t===1)re=new Xr(V.data,this.globalData,this);else{var le=gg;V.data&&V.data.shapes&&(le=this.buildShapeData(V.data,v.finalSize)),re=new yn(le,this.globalData,this)}if(this.textSpans[c].glyph){var he=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(he.layerElement),he.destroy()}this.textSpans[c].glyph=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[c].childSpan.appendChild(re.layerElement),V.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Re&&ee.setAttribute("transform","translate("+ye.props[12]+","+ye.props[13]+")"),ee.textContent=q[c].val,ee.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Re&&ee&&ee.setAttribute("d",xe)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Er.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},Er.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Er.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,x=this.textProperty.currentData.l;p=x.length;var P,_,q;for(c=0;c<p;c+=1)x[c].n||(P=v[c],_=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function Yc(c,p,v){this.initElement(c,p,v)}Ie([Ga],Yc),Yc.prototype.createContent=function(){var c=yt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Os(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Os.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Os.prototype.renderFrame=function(){},Os.prototype.getBaseElement=function(){return null},Os.prototype.destroy=function(){},Os.prototype.sourceRectAtTime=function(){},Os.prototype.hide=function(){},Ie([ss,$o,Fs,In],Os);function Ln(){}Ie([lr],Ln),Ln.prototype.createNull=function(c){return new Os(c,this.globalData,this)},Ln.prototype.createShape=function(c){return new yn(c,this.globalData,this)},Ln.prototype.createText=function(c){return new Er(c,this.globalData,this)},Ln.prototype.createImage=function(c){return new Ga(c,this.globalData,this)},Ln.prototype.createSolid=function(c){return new Yc(c,this.globalData,this)},Ln.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=yt("clipPath"),x=yt("rect");x.setAttribute("width",c.w),x.setAttribute("height",c.h),x.setAttribute("x",0),x.setAttribute("y",0);var P=Ut();v.setAttribute("id",P),v.appendChild(x),this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ue(c.layers.length)},Ln.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ln.prototype.updateContainerSize=function(){},Ln.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},Ln.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,es()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var x="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(x===-1)return;if(!this.elements[x]||this.elements[x]===!0)this.buildItem(x),this.addPendingElement(v);else{var P=p[x],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},Ln.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var x="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,P=this.elements[x],_=P.getMatte(this.layers[p].tt);c.setMatte(_);break}p+=1}}},Ln.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},Ln.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var x=0,P;x<p;)this.elements[x]&&this.elements[x]!==!0&&this.elements[x].getBaseElement()&&(P=this.elements[x].getBaseElement()),x+=1;P?this.layerElement.insertBefore(v,P):this.layerElement.appendChild(v)}},Ln.prototype.hide=function(){this.layerElement.style.display="none"},Ln.prototype.show=function(){this.layerElement.style.display="block"};function Ti(){}Ie([ss,$o,Fs,In,Ha],Ti),Ti.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ti.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,x=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=x-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ti.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Ti.prototype.setElements=function(c){this.elements=c},Ti.prototype.getElements=function(){return this.elements},Ti.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ti.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ue(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Ie([Ln,Ti,Wa],Xr),Xr.prototype.createComp=function(c){return new Xr(c,this.globalData,this)};function ra(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=yt("svg");var v="";if(p&&p.title){var x=yt("title"),P=Ut();x.setAttribute("id",P),x.textContent=p.title,this.svgElement.appendChild(x),v+=P}if(p&&p.description){var _=yt("desc"),q=Ut();_.setAttribute("id",q),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var pe=yt("defs");this.svgElement.appendChild(pe);var ee=yt("g");this.svgElement.appendChild(ee),this.layerElement=ee,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:pe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Ie([Ln],ra),ra.prototype.createComp=function(c){return new Xr(c,this.globalData,this)},Hu("svg",ra),kr.registerModifier("tm",Or),kr.registerModifier("pb",Ts),kr.registerModifier("rp",vr),kr.registerModifier("rd",fo),kr.registerModifier("zz",go),kr.registerModifier("op",$n),jt})})(u,u.exports);var l=u.exports;function d(se,z){var K=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(K!=null){var j,B,ge,U,G=[],Se=!0,Pe=!1;try{if(ge=(K=K.call(se)).next,z!==0)for(;!(Se=(j=ge.call(K)).done)&&(G.push(j.value),G.length!==z);Se=!0);}catch(ke){Pe=!0,B=ke}finally{try{if(!Se&&K.return!=null&&(U=K.return(),Object(U)!==U))return}finally{if(Pe)throw B}}return G}}function h(se,z){var K=Object.keys(se);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(se);z&&(j=j.filter(function(B){return Object.getOwnPropertyDescriptor(se,B).enumerable})),K.push.apply(K,j)}return K}function m(se){for(var z=1;z<arguments.length;z++){var K=arguments[z]!=null?arguments[z]:{};z%2?h(Object(K),!0).forEach(function(j){g(se,j,K[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(j){Object.defineProperty(se,j,Object.getOwnPropertyDescriptor(K,j))})}return se}function g(se,z,K){return z=M(z),z in se?Object.defineProperty(se,z,{value:K,enumerable:!0,configurable:!0,writable:!0}):se[z]=K,se}function b(se,z){if(se==null)return{};var K={},j=Object.keys(se),B,ge;for(ge=0;ge<j.length;ge++)B=j[ge],!(z.indexOf(B)>=0)&&(K[B]=se[B]);return K}function $(se,z){if(se==null)return{};var K=b(se,z),j,B;if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(se);for(B=0;B<ge.length;B++)j=ge[B],!(z.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(se,j)&&(K[j]=se[j])}return K}function w(se,z){return D(se)||d(se,z)||S(se,z)||T()}function D(se){if(Array.isArray(se))return se}function S(se,z){if(se){if(typeof se=="string")return C(se,z);var K=Object.prototype.toString.call(se).slice(8,-1);if(K==="Object"&&se.constructor&&(K=se.constructor.name),K==="Map"||K==="Set")return Array.from(se);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return C(se,z)}}function C(se,z){(z==null||z>se.length)&&(z=se.length);for(var K=0,j=new Array(z);K<z;K++)j[K]=se[K];return j}function T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
137
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(se,z){if(typeof se!="object"||se===null)return se;var K=se[Symbol.toPrimitive];if(K!==void 0){var j=K.call(se,z);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(se)}function M(se){var z=O(se,"string");return typeof z=="symbol"?z:String(z)}var k=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],N=function(z,K){var j=z.animationData,B=z.loop,ge=z.autoplay,U=z.initialSegment,G=z.onComplete,Se=z.onLoopComplete,Pe=z.onEnterFrame,ke=z.onSegmentStart,Ie=z.onConfigReady,Ze=z.onDataReady,Ge=z.onDataFailed,De=z.onLoadedImages,Ue=z.onDOMLoaded,_e=z.onDestroy;z.lottieRef,z.renderer,z.name,z.assetsPath,z.rendererSettings;var Ve=$(z,k),Le=r.useState(!1),nt=w(Le,2),xt=nt[0],ln=nt[1],$t=r.useRef(),Rt=r.useRef(null),$e=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},Ee=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},Te=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},He=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setSpeed(Pt)},et=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.goToAndPlay(Pt,Lt)},Je=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.goToAndStop(Pt,Lt)},lt=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setDirection(Pt)},bt=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.playSegments(Pt,Lt)},gn=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setSubframe(Pt)},Jt=function(Pt){var Lt;return(Lt=$t.current)===null||Lt===void 0?void 0:Lt.getDuration(Pt)},Ut=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},Yr=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Lt;if(Rt.current){(Lt=$t.current)===null||Lt===void 0||Lt.destroy();var Yt=m(m(m({},z),Pt),{},{container:Rt.current});return $t.current=l.loadAnimation(Yt),ln(!!$t.current),function(){var sr;(sr=$t.current)===null||sr===void 0||sr.destroy(),$t.current=void 0}}};r.useEffect(function(){var rn=Yr();return function(){return rn==null?void 0:rn()}},[j,B]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!ge)},[ge]),r.useEffect(function(){if($t.current){if(!U){$t.current.resetSegments(!0);return}!Array.isArray(U)||!U.length||(($t.current.currentRawFrame<U[0]||$t.current.currentRawFrame>U[1])&&($t.current.currentRawFrame=U[0]),$t.current.setSegment(U[0],U[1]))}},[U]),r.useEffect(function(){var rn=[{name:"complete",handler:G},{name:"loopComplete",handler:Se},{name:"enterFrame",handler:Pe},{name:"segmentStart",handler:ke},{name:"config_ready",handler:Ie},{name:"data_ready",handler:Ze},{name:"data_failed",handler:Ge},{name:"loaded_images",handler:De},{name:"DOMLoaded",handler:Ue},{name:"destroy",handler:_e}],Pt=rn.filter(function(Yt){return Yt.handler!=null});if(Pt.length){var Lt=Pt.map(function(Yt){var sr;return(sr=$t.current)===null||sr===void 0||sr.addEventListener(Yt.name,Yt.handler),function(){var Qi;(Qi=$t.current)===null||Qi===void 0||Qi.removeEventListener(Yt.name,Yt.handler)}});return function(){Lt.forEach(function(Yt){return Yt()})}}},[G,Se,Pe,ke,Ie,Ze,Ge,De,Ue,_e]);var Fr=s.default.createElement("div",m({style:K,ref:Rt},Ve));return{View:Fr,play:$e,stop:Ee,pause:Te,setSpeed:He,goToAndStop:Je,goToAndPlay:et,setDirection:lt,playSegments:bt,setSubframe:gn,getDuration:Jt,destroy:Ut,animationContainerRef:Rt,animationLoaded:xt,animationItem:$t.current}};function F(se){var z=se.getBoundingClientRect(),K=z.top,j=z.height,B=window.innerHeight-K,ge=window.innerHeight+j;return B/ge}function ae(se,z,K){var j=se.getBoundingClientRect(),B=j.top,ge=j.left,U=j.width,G=j.height,Se=(z-ge)/U,Pe=(K-B)/G;return{x:Se,y:Pe}}var oe=function(z){var K=z.wrapperRef,j=z.animationItem,B=z.mode,ge=z.actions;r.useEffect(function(){var U=K.current;if(!(!U||!j||!ge.length)){j.stop();var G=function(){var ke=null,Ie=function(){var Ge=F(U),De=ge.find(function(_e){var Ve=_e.visibility;return Ve&&Ge>=Ve[0]&&Ge<=Ve[1]});if(De){if(De.type==="seek"&&De.visibility&&De.frames.length===2){var Ue=De.frames[0]+Math.ceil((Ge-De.visibility[0])/(De.visibility[1]-De.visibility[0])*De.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
138
|
+
j.goToAndStop(Ue-j.firstFrame-1,!0)}De.type==="loop"&&(ke===null||ke!==De.frames||j.isPaused)&&(j.playSegments(De.frames,!0),ke=De.frames),De.type==="play"&&j.isPaused&&(j.resetSegments(!0),j.play()),De.type==="stop"&&j.goToAndStop(De.frames[0]-j.firstFrame-1,!0)}};return document.addEventListener("scroll",Ie),function(){document.removeEventListener("scroll",Ie)}},Se=function(){var ke=function(De,Ue){var _e=De,Ve=Ue;if(_e!==-1&&Ve!==-1){var Le=ae(U,_e,Ve);_e=Le.x,Ve=Le.y}var nt=ge.find(function($t){var Rt=$t.position;return Rt&&Array.isArray(Rt.x)&&Array.isArray(Rt.y)?_e>=Rt.x[0]&&_e<=Rt.x[1]&&Ve>=Rt.y[0]&&Ve<=Rt.y[1]:Rt&&!Number.isNaN(Rt.x)&&!Number.isNaN(Rt.y)?_e===Rt.x&&Ve===Rt.y:!1});if(nt){if(nt.type==="seek"&&nt.position&&Array.isArray(nt.position.x)&&Array.isArray(nt.position.y)&&nt.frames.length===2){var xt=(_e-nt.position.x[0])/(nt.position.x[1]-nt.position.x[0]),ln=(Ve-nt.position.y[0])/(nt.position.y[1]-nt.position.y[0]);j.playSegments(nt.frames,!0),j.goToAndStop(Math.ceil((xt+ln)/2*(nt.frames[1]-nt.frames[0])),!0)}nt.type==="loop"&&j.playSegments(nt.frames,!0),nt.type==="play"&&(j.isPaused&&j.resetSegments(!1),j.playSegments(nt.frames)),nt.type==="stop"&&j.goToAndStop(nt.frames[0],!0)}},Ie=function(De){ke(De.clientX,De.clientY)},Ze=function(){ke(-1,-1)};return U.addEventListener("mousemove",Ie),U.addEventListener("mouseout",Ze),function(){U.removeEventListener("mousemove",Ie),U.removeEventListener("mouseout",Ze)}};switch(B){case"scroll":return G();case"cursor":return Se()}}},[B,j])},W=function(z){var K=z.actions,j=z.mode,B=z.lottieObj,ge=B.animationItem,U=B.View,G=B.animationContainerRef;return oe({actions:K,animationItem:ge,mode:j,wrapperRef:G}),U},we=["style","interactivity"],ne=function(z){var K,j,B,ge=z.style,U=z.interactivity,G=$(z,we),Se=N(G,ge),Pe=Se.View,ke=Se.play,Ie=Se.stop,Ze=Se.pause,Ge=Se.setSpeed,De=Se.goToAndStop,Ue=Se.goToAndPlay,_e=Se.setDirection,Ve=Se.playSegments,Le=Se.setSubframe,nt=Se.getDuration,xt=Se.destroy,ln=Se.animationContainerRef,$t=Se.animationLoaded,Rt=Se.animationItem;return r.useEffect(function(){z.lottieRef&&(z.lottieRef.current={play:ke,stop:Ie,pause:Ze,setSpeed:Ge,goToAndPlay:Ue,goToAndStop:De,setDirection:_e,playSegments:Ve,setSubframe:Le,getDuration:nt,destroy:xt,animationContainerRef:ln,animationLoaded:$t,animationItem:Rt})},[(K=z.lottieRef)===null||K===void 0?void 0:K.current]),W({lottieObj:{View:Pe,play:ke,stop:Ie,pause:Ze,setSpeed:Ge,goToAndStop:De,goToAndPlay:Ue,setDirection:_e,playSegments:Ve,setSubframe:Le,getDuration:nt,destroy:xt,animationContainerRef:ln,animationLoaded:$t,animationItem:Rt},actions:(j=U==null?void 0:U.actions)!==null&&j!==void 0?j:[],mode:(B=U==null?void 0:U.mode)!==null&&B!==void 0?B:"scroll"})};n.LottiePlayer=l,n.default=ne,n.useLottie=N,n.useLottieInteractivity=W,Object.defineProperty(n,"__esModule",{value:!0})})}(kf,kf.exports)),kf.exports}var yie=vie();const bie=ws(yie),$ie=A.createContext({});function xie(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const b$=typeof window<"u",wie=b$?A.useLayoutEffect:A.useEffect,vO=A.createContext(null),yO=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ta=e=>e;let jd=Ta,fc=Ta;process.env.NODE_ENV!=="production"&&(jd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},fc=(e,t)=>{if(!e)throw new Error(t)});const Cie={useManualTiming:!1},qh=["read","resolveKeyframes","update","preRender","render","postRender"];function Sie(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(u=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const Eie=40;function bO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=qh.reduce((S,C)=>(S[C]=Sie(s),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Eie),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},$=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:qh.reduce((S,C)=>{const T=o[C];return S[C]=(O,M=!1,k=!1)=>(n||$(),T.schedule(O,M,k)),S},{}),cancel:S=>{for(let C=0;C<qh.length;C++)o[qh[C]].cancel(S)},state:i,steps:o}}const{schedule:li,cancel:s4,state:nm}=bO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ta,!0),$$=A.createContext({strict:!1}),MT={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"]},dc={};for(const e in MT)dc[e]={isEnabled:t=>MT[e].some(n=>!!t[n])};function RT(e){for(const t in e)dc[t]={...dc[t],...e[t]}}function Die({children:e,features:t,strict:n=!1}){const[,r]=A.useState(!w1(t)),i=A.useRef(void 0);if(!w1(t)){const{renderer:s,...o}=t;i.current=s,RT(o)}return A.useEffect(()=>{w1(t)&&t().then(({renderer:s,...o})=>{RT(o),i.current=s,r(!0)})},[]),Uo.jsx($$.Provider,{value:{renderer:i.current,strict:n},children:e})}function w1(e){return typeof e=="function"}const Aie=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 rm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Aie.has(e)}let $O=e=>!rm(e);function Tie(e){e&&($O=t=>t.startsWith("on")?!rm(t):e(t))}try{Tie(require("@emotion/is-prop-valid").default)}catch{}function Pie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||($O(i)||n===!0&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const FT=new Set;function rg(e,t,n){e||FT.has(t)||(console.warn(t),FT.add(t))}function _ie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&rg(!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 ig=A.createContext({});function sg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pd(e){return typeof e=="string"||Array.isArray(e)}const x$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],w$=["initial",...x$];function og(e){return sg(e.animate)||w$.some(t=>pd(e[t]))}function xO(e){return!!(og(e)||e.variants)}function Mie(e,t){if(og(e)){const{initial:n,animate:r}=e;return{initial:n===!1||pd(n)?n:void 0,animate:pd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rie(e){const{initial:t,animate:n}=Mie(e,A.useContext(ig));return A.useMemo(()=>({initial:t,animate:n}),[kT(t),kT(n)])}function kT(e){return Array.isArray(e)?e.join(" "):e}const Fie=Symbol.for("motionComponentSymbol");function wO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kie(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):wO(n)&&(n.current=r))},[t])}const{schedule:Oie}=bO(queueMicrotask,!1),C$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Iie="framerAppearId",CO="data-"+C$(Iie),Lie=A.createContext({});function Bie(e,t,n,r,i){var s,o;const{visualElement:u}=A.useContext(ig),l=A.useContext($$),d=A.useContext(vO),h=A.useContext(yO).reducedMotion,m=A.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=A.useContext(Lie);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&Vie(m.current,n,i,b);const $=A.useRef(!1);A.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[CO],D=A.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return wie(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Oie.render(g.render),D.current&&g.animationState&&g.animationState.animateChanges())}),A.useEffect(()=>{g&&(!D.current&&g.animationState&&g.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),D.current=!1))}),g}function Vie(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:SO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&wO(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function SO(e){if(e)return e.options.allowProjection!==!1?e.projection:SO(e.parent)}function Nie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;function u(d,h){let m;const g={...A.useContext(yO),...d,layoutId:jie(d)},{isStatic:b}=g,$=Rie(d),w=r(d,b);if(!b&&b$){Kie(g,e);const D=Uie(g);m=D.MeasureLayout,$.visualElement=Bie(i,w,g,t,D.ProjectionNode)}return Uo.jsxs(ig.Provider,{value:$,children:[m&&$.visualElement?Uo.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,kie(w,$.visualElement,h),w,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=A.forwardRef(u);return l[Fie]=i,l}function jie({layoutId:e}){const t=A.useContext($ie).id;return t&&e!==void 0?t+"-"+e:e}function Kie(e,t){A.useContext($$).strict,process.env.NODE_ENV}function Uie(e){const{drag:t,layout:n}=dc;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 EO=e=>t=>typeof t=="string"&&t.startsWith(e),DO=EO("--"),zie=EO("var(--"),S$=e=>zie(e)?qie.test(e.split("/*")[0].trim()):!1,qie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wie={},Ac=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Uu=new Set(Ac);function AO(e,{layout:t,layoutId:n}){return Uu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Wie[e]||e==="opacity")}const zr=e=>!!(e&&e.getVelocity),TO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lu=(e,t,n)=>n>t?t:n<e?e:n,Tc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},md={...Tc,transform:e=>Lu(0,1,e)},Wh={...Tc,default:1},Kd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ma=Kd("deg"),Hl=Kd("%"),At=Kd("px"),Hie=Kd("vh"),Gie=Kd("vw"),OT={...Hl,parse:e=>Hl.parse(e)/100,transform:e=>Hl.transform(e*100)},Yie={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At},Zie={rotate:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:Wh,scaleX:Wh,scaleY:Wh,scaleZ:Wh,skew:ma,skewX:ma,skewY:ma,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:md,originX:OT,originY:OT,originZ:At},IT={...Tc,transform:Math.round},E$={...Yie,...Zie,zIndex:IT,size:At,fillOpacity:md,strokeOpacity:md,numOctaves:IT},Xie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jie=Ac.length;function Qie(e,t,n){let r="",i=!0;for(let s=0;s<Jie;s++){const o=Ac[s],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=TO(u,E$[o]);if(!l){i=!1;const h=Xie[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function D$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const l in t){const d=t[l];if(Uu.has(l)){o=!0;continue}else if(DO(l)){i[l]=d;continue}else{const h=TO(d,E$[l]);l.startsWith("origin")?(u=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Qie(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const A$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function PO(e,t,n){for(const r in t)!zr(t[r])&&!AO(r,n)&&(e[r]=t[r])}function ese({transformTemplate:e},t){return A.useMemo(()=>{const n=A$();return D$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tse(e,t){const n=e.style||{},r={};return PO(r,n,e),Object.assign(r,ese(e,t)),r}function nse(e,t){const n={},r=tse(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 rse=["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 T$(e){return typeof e!="string"||e.includes("-")?!1:!!(rse.indexOf(e)>-1||/[A-Z]/u.test(e))}const ise={offset:"stroke-dashoffset",array:"stroke-dasharray"},sse={offset:"strokeDashoffset",array:"strokeDasharray"};function ose(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?ise:sse;e[s.offset]=At.transform(-r);const o=At.transform(t),u=At.transform(n);e[s.array]=`${o} ${u}`}function LT(e,t,n){return typeof e=="string"?e:At.transform(t+n*e)}function ase(e,t,n){const r=LT(t,e.x,e.width),i=LT(n,e.y,e.height);return`${r} ${i}`}function P$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(D$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=ase($,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&ose(g,o,u,l,!1)}const _O=()=>({...A$(),attrs:{}}),_$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function use(e,t,n,r){const i=A.useMemo(()=>{const s=_O();return P$(s,t,_$(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};PO(s,e.style,e),i.style={...s,...i.style}}return i}function lse(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(T$(n)?use:nse)(r,s,o,n),d=Pie(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>zr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function BT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function M$(e,t,n,r){if(typeof t=="function"){const[i,s]=BT(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=BT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const o4=e=>Array.isArray(e),cse=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fse=e=>o4(e)?e[e.length-1]||0:e;function dse(e){const t=zr(e)?e.get():e;return cse(t)?t.toValue():t}function hse({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:pse(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const MO=e=>(t,n)=>{const r=A.useContext(ig),i=A.useContext(vO),s=()=>hse(e,t,r,i);return n?s():xie(s)};function pse(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=dse(s[g]);let{initial:o,animate:u}=e;const l=og(e),d=xO(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?u:o;if(m&&typeof m!="boolean"&&!sg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=M$(e,g[b]);if($){const{transitionEnd:w,transition:D,...S}=$;for(const C in S){let T=S[C];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[C]=T)}for(const C in w)i[C]=w[C]}}}return i}function R$(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(zr(i[o])||t.style&&zr(t.style[o])||AO(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const mse={useVisualState:MO({scrapeMotionValuesFromProps:R$,createRenderState:A$})};function RO(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 FO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const kO=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 OO(e,t,n,r){FO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(kO.has(i)?i:C$(i),t.attrs[i])}function IO(e,t,n){const r=R$(e,t,n);for(const i in e)if(zr(e[i])||zr(t[i])){const s=Ac.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const VT=["x","y","width","height","cx","cy","r"],gse={useVisualState:MO({scrapeMotionValuesFromProps:IO,createRenderState:_O,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(Uu.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<VT.length;u++){const l=VT[u];e[l]!==t[l]&&(o=!0)}o&&li.read(()=>{RO(n,r),li.render(()=>{P$(r,i,_$(n.tagName),e.transformTemplate),OO(n,r)})})}})};function vse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...T$(r)?gse:mse,preloadedFeatures:e,useRender:lse(i),createVisualElement:t,Component:r};return Nie(o)}}const yse=vse(),bse=_ie(yse);function gd(e,t,n){const r=e.getProps();return M$(r,t,n!==void 0?n:r.custom,e)}function LO(e,t){return e?e[t]||e.default||e:void 0}const BO=new Set(["width","height","top","left","right","bottom",...Ac]);function $se(e,t){e.indexOf(t)===-1&&e.push(t)}function xse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class VO{constructor(){this.subscriptions=[]}add(t){return $se(this.subscriptions,t),()=>xse(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 s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function NO(e,t){return t?e*(1e3/t):0}let bp;function wse(){bp=void 0}const Sa={now:()=>(bp===void 0&&Sa.set(nm.isProcessing||Cie.useManualTiming?nm.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(wse)}},NT=30,Cse=e=>!isNaN(parseFloat(e));class Sse{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Sa.now();this.updatedAt!==s&&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=Sa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Cse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&rg(!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 VO);const r=this.events[t].add(n);return t==="change"?()=>{r(),li.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=Sa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>NT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,NT);return NO(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 im(e,t){return new Sse(e,t)}function Ese(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,im(n))}function Dse(e,t){const n=gd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=fse(s[o]);Ese(e,o,u)}}function Ase(e){return!!(zr(e)&&e.add)}function Tse(e,t){const n=e.getValue("willChange");if(Ase(n))return n.add(t)}function Pse(e){return e.props[CO]}function F$(e){let t;return()=>(t===void 0&&(t=e()),t)}const _se=F$(()=>window.ScrollTimeline!==void 0);class Mse{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(_se()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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 Rse extends Mse{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ko=e=>e*1e3,Ea=e=>e/1e3;function k$(e){return typeof e=="function"}function jT(e,t){e.timeline=t,e.onfinish=null}const O$=e=>Array.isArray(e)&&typeof e[0]=="number",Fse={linearEasing:void 0};function kse(e,t){const n=F$(e);return()=>{var r;return(r=Fse[t])!==null&&r!==void 0?r:n()}}const sm=kse(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),I$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},jO=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(I$(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function KO(e){return!!(typeof e=="function"&&sm()||!e||typeof e=="string"&&(e in a4||sm())||O$(e)||Array.isArray(e)&&e.every(KO))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,a4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function UO(e,t){if(e)return typeof e=="function"&&sm()?jO(e,t):O$(e)?Of(e):Array.isArray(e)?e.map(n=>UO(n,t)||a4.easeOut):a4[e]}const zO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ose=1e-7,Ise=12;function Lse(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=zO(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Ose&&++u<Ise);return o}function Ud(e,t,n,r){if(e===t&&n===r)return Ta;const i=s=>Lse(s,0,1,e,n);return s=>s===0||s===1?s:zO(i(s),t,r)}const qO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,WO=e=>t=>1-e(1-t),HO=Ud(.33,1.53,.69,.99),L$=WO(HO),GO=qO(L$),YO=e=>(e*=2)<1?.5*L$(e):.5*(2-Math.pow(2,-10*(e-1))),B$=e=>1-Math.sin(Math.acos(e)),Bse=WO(B$),ZO=qO(B$),XO=e=>/^0[^.\s]+$/u.test(e);function Vse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||XO(e):!0}const Gf=e=>Math.round(e*1e5)/1e5,V$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nse(e){return e==null}const jse=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N$=(e,t)=>n=>!!(typeof n=="string"&&jse.test(n)&&n.startsWith(e)||t&&!Nse(n)&&Object.prototype.hasOwnProperty.call(n,t)),JO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(V$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Kse=e=>Lu(0,255,e),C1={...Tc,transform:e=>Math.round(Kse(e))},bu={test:N$("rgb","red"),parse:JO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+C1.transform(e)+", "+C1.transform(t)+", "+C1.transform(n)+", "+Gf(md.transform(r))+")"};function Use(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 u4={test:N$("#"),parse:Use,transform:bu.transform},Ll={test:N$("hsl","hue"),parse:JO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Hl.transform(Gf(t))+", "+Hl.transform(Gf(n))+", "+Gf(md.transform(r))+")"},Tr={test:e=>bu.test(e)||u4.test(e)||Ll.test(e),parse:e=>bu.test(e)?bu.parse(e):Ll.test(e)?Ll.parse(e):u4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?bu.transform(e):Ll.transform(e)},zse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(zse))===null||n===void 0?void 0:n.length)||0)>0}const QO="number",eI="color",Wse="var",Hse="var(",KT="${}",Gse=/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 vd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Gse,l=>(Tr.test(l)?(r.color.push(s),i.push(eI),n.push(Tr.parse(l))):l.startsWith(Hse)?(r.var.push(s),i.push(Wse),n.push(l)):(r.number.push(s),i.push(QO),n.push(parseFloat(l))),++s,KT)).split(KT);return{values:n,split:u,indexes:r,types:i}}function tI(e){return vd(e).values}function nI(e){const{split:t,types:n}=vd(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===QO?s+=Gf(i[o]):u===eI?s+=Tr.transform(i[o]):s+=i[o]}return s}}const Yse=e=>typeof e=="number"?0:e;function Zse(e){const t=tI(e);return nI(e)(t.map(Yse))}const Pc={test:qse,parse:tI,createTransformer:nI,getAnimatableNone:Zse},Xse=new Set(["brightness","contrast","saturate","opacity"]);function Jse(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V$)||[];if(!r)return e;const i=n.replace(r,"");let s=Xse.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Qse=/\b([a-z-]*)\(.*?\)/gu,l4={...Pc,getAnimatableNone:e=>{const t=e.match(Qse);return t?t.map(Jse).join(" "):e}},eoe={...E$,color:Tr,backgroundColor:Tr,outlineColor:Tr,fill:Tr,stroke:Tr,borderColor:Tr,borderTopColor:Tr,borderRightColor:Tr,borderBottomColor:Tr,borderLeftColor:Tr,filter:l4,WebkitFilter:l4},rI=e=>eoe[e];function iI(e,t){let n=rI(e);return n!==l4&&(n=Pc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const toe=new Set(["auto","none","0"]);function noe(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!toe.has(s)&&vd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=iI(n,i)}const $u=e=>e*180/Math.PI,c4=e=>{const t=$u(Math.atan2(e[1],e[0]));return f4(t)},roe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:c4,rotateZ:c4,skewX:e=>$u(Math.atan(e[1])),skewY:e=>$u(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},f4=e=>(e=e%360,e<0&&(e+=360),e),UT=c4,zT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ioe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zT,scaleY:qT,scale:e=>(zT(e)+qT(e))/2,rotateX:e=>f4($u(Math.atan2(e[6],e[5]))),rotateY:e=>f4($u(Math.atan2(-e[2],e[0]))),rotateZ:UT,rotate:UT,skewX:e=>$u(Math.atan(e[4])),skewY:e=>$u(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function WT(e){return e.includes("scale")?1:0}function d4(e,t){if(!e||e==="none")return WT(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ioe,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=roe,i=u}if(!i)return WT(t);const s=r[t],o=i[1].split(",").map(ooe);return typeof s=="function"?s(o):o[s]}const soe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return d4(n,t)};function ooe(e){return parseFloat(e.trim())}const HT=e=>e===Tc||e===At,aoe=new Set(["x","y","z"]),uoe=Ac.filter(e=>!aoe.has(e));function loe(e){const t=[];return uoe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const hc={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>d4(t,"x"),y:(e,{transform:t})=>d4(t,"y")};hc.translateX=hc.x;hc.translateY=hc.y;const Du=new Set;let h4=!1,p4=!1;function sI(){if(p4){const e=Array.from(Du).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=loe(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(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}p4=!1,h4=!1,Du.forEach(e=>e.complete()),Du.clear()}function oI(){Du.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(p4=!0)})}function coe(){oI(),sI()}class j${constructor(t,n,r,i,s,o=!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=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Du.add(this),h4||(h4=!0,li.read(oI),li.resolveKeyframes(sI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Du.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Du.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const aI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),foe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function doe(e){const t=foe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const hoe=4;function uI(e,t,n=1){fc(n<=hoe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=doe(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return aI(o)?parseFloat(o):o}return S$(i)?uI(i,t,n+1):i}const lI=e=>t=>t.test(e),poe={test:e=>e==="auto",parse:e=>e},cI=[Tc,At,Hl,ma,Gie,Hie,poe],GT=e=>cI.find(lI(e));class fI extends j${constructor(t,n,r,i,s){super(t,n,r,i,s,!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 d=t[l];if(typeof d=="string"&&(d=d.trim(),S$(d))){const h=uI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!BO.has(r)||t.length!==2)return;const[i,s]=t,o=GT(i),u=GT(s);if(o!==u)if(HT(o)&&HT(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Vse(t[i])&&r.push(i);r.length&&noe(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=hc[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 s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=hc[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,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}const YT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pc.test(e)||e==="0")&&!e.startsWith("url("));function moe(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 goe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=YT(i,t),u=YT(s,t);return jd(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:moe(e)||(n==="spring"||k$(n))&&r}const voe=e=>e!==null;function ag(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(voe),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const yoe=40;class dI{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Sa.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>yoe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&coe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Sa.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!goe(t,r,i,s))if(o)this.options.duration=0;else{l&&l(ag(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const m4=2e4;function hI(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<m4;)t+=n,r=e.next(t);return t>=m4?1/0:t}const ug=(e,t,n)=>e+(t-e)*n;function S1(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 boe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=S1(l,u,e+1/3),s=S1(l,u,e),o=S1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function om(e,t){return n=>n>0?t:e}const E1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},$oe=[u4,bu,Ll],xoe=e=>$oe.find(t=>t.test(e));function ZT(e){const t=xoe(e);if(jd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ll&&(n=boe(n)),n}const XT=(e,t)=>{const n=ZT(e),r=ZT(t);if(!n||!r)return om(e,t);const i={...n};return s=>(i.red=E1(n.red,r.red,s),i.green=E1(n.green,r.green,s),i.blue=E1(n.blue,r.blue,s),i.alpha=ug(n.alpha,r.alpha,s),bu.transform(i))},woe=(e,t)=>n=>t(e(n)),lg=(...e)=>e.reduce(woe),g4=new Set(["none","hidden"]);function Coe(e,t){return g4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Soe(e,t){return n=>ug(e,t,n)}function K$(e){return typeof e=="number"?Soe:typeof e=="string"?S$(e)?om:Tr.test(e)?XT:Aoe:Array.isArray(e)?pI:typeof e=="object"?Tr.test(e)?XT:Eoe:om}function pI(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>K$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Eoe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=K$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function Doe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const Aoe=(e,t)=>{const n=Pc.createTransformer(t),r=vd(e),i=vd(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?g4.has(e)&&!i.values.length||g4.has(t)&&!r.values.length?Coe(e,t):lg(pI(Doe(r,i),i.values),n):(jd(!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.`),om(e,t))};function mI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ug(e,t,n):K$(e)(e,t)}const Toe=5;function gI(e,t,n){const r=Math.max(t-Toe,0);return NO(n-e(r),t-r)}const Rn={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},JT=.001;function Poe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;jd(e<=Ko(Rn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Lu(Rn.minDamping,Rn.maxDamping,o),e=Lu(Rn.minDuration,Rn.maxDuration,Ea(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=v4(d,o),$=Math.exp(-m);return JT-g/b*$},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,$=Math.exp(-m),w=v4(Math.pow(d,2),o);return(-i(d)+JT>0?-1:1)*((g-b)*$)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Moe(i,s,u);if(e=Ko(e),isNaN(l))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const _oe=12;function Moe(e,t,n){let r=n;for(let i=1;i<_oe;i++)r=r-e(r)/t(r);return r}function v4(e,t){return e*Math.sqrt(1-t*t)}const Roe=["duration","bounce"],Foe=["stiffness","damping","mass"];function QT(e,t){return t.some(n=>e[n]!==void 0)}function koe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!QT(e,Foe)&&QT(e,Roe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Lu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=Poe(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function vI(e=Rn.visualDuration,t=Rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=koe({...n,velocity:-Ea(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(l*h)),D=o-s,S=Ea(Math.sqrt(l/h)),C=Math.abs(D)<5;r||(r=C?Rn.restSpeed.granular:Rn.restSpeed.default),i||(i=C?Rn.restDelta.granular:Rn.restDelta.default);let T;if(w<1){const M=v4(S,w);T=k=>{const N=Math.exp(-w*S*k);return o-N*(($+w*S*D)/M*Math.sin(M*k)+D*Math.cos(M*k))}}else if(w===1)T=M=>o-Math.exp(-S*M)*(D+($+S*D)*M);else{const M=S*Math.sqrt(w*w-1);T=k=>{const N=Math.exp(-w*S*k),F=Math.min(M*k,300);return o-N*(($+w*S*D)*Math.sinh(F)+M*D*Math.cosh(F))/M}}const O={calculatedDuration:b&&m||null,next:M=>{const k=T(M);if(b)u.done=M>=m;else{let N=0;w<1&&(N=M===0?Ko($):gI(T,M,k));const F=Math.abs(N)<=r,ae=Math.abs(o-k)<=i;u.done=F&&ae}return u.value=u.done?o:k,u},toString:()=>{const M=Math.min(hI(O),m4),k=jO(N=>O.next(M*N).value,M,30);return M+"ms "+k}};return O}function e2({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,$=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let w=n*t;const D=m+w,S=o===void 0?D:o(D);S!==D&&(w=S-m);const C=F=>-w*Math.exp(-F/r),T=F=>S+C(F),O=F=>{const ae=C(F),oe=T(F);g.done=Math.abs(ae)<=d,g.value=g.done?S:oe};let M,k;const N=F=>{b(g.value)&&(M=F,k=vI({keyframes:[g.value,$(g.value)],velocity:gI(T,F,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:F=>{let ae=!1;return!k&&M===void 0&&(ae=!0,O(F),N(F)),M!==void 0&&F>=M?k.next(F-M):(!ae&&O(F),g)}}}const Ooe=Ud(.42,0,1,1),Ioe=Ud(0,0,.58,1),yI=Ud(.42,0,.58,1),Loe=e=>Array.isArray(e)&&typeof e[0]!="number",t2={linear:Ta,easeIn:Ooe,easeInOut:yI,easeOut:Ioe,circIn:B$,circInOut:ZO,circOut:Bse,backIn:L$,backInOut:GO,backOut:HO,anticipate:YO},n2=e=>{if(O$(e)){fc(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Ud(t,n,r,i)}else if(typeof e=="string")return fc(t2[e]!==void 0,`Invalid easing type '${e}'`),t2[e];return e};function Boe(e,t,n){const r=[],i=n||mI,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ta:t;u=lg(l,u)}r.push(u)}return r}function Voe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(fc(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Boe(t,r,i),l=u.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=I$(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Lu(e[0],e[s-1],h)):d}function Noe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=I$(0,t,r);e.push(ug(n,1,i))}}function joe(e){const t=[0];return Noe(t,e.length-1),t}function Koe(e,t){return e.map(n=>n*t)}function Uoe(e,t){return e.map(()=>t||yI).splice(0,e.length-1)}function Yf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Loe(r)?r.map(n2):n2(r),s={done:!1,value:t[0]},o=Koe(n&&n.length===t.length?n:joe(t),e),u=Voe(o,t,{ease:Array.isArray(i)?i:Uoe(t,i)});return{calculatedDuration:e,next:l=>(s.value=u(l),s.done=l>=e,s)}}const zoe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>li.update(t,!0),stop:()=>s4(t),now:()=>nm.isProcessing?nm.timestamp:Sa.now()}},qoe={decay:e2,inertia:e2,tween:Yf,keyframes:Yf,spring:vI},Woe=e=>e/100;class U$ extends dI{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:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||j$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,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:s,velocity:o=0}=this.options,u=k$(n)?n:qoe[n]||Yf;let l,d;process.env.NODE_ENV!=="production"&&u!==Yf&&fc(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==Yf&&typeof t[0]!="number"&&(l=lg(Woe,mI(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});s==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=hI(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}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:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:w,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/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 S=this.currentTime-g*(this.speed>=0?1:-1),C=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const F=Math.min(this.currentTime,h)/m;let ae=Math.floor(F),oe=F%1;!oe&&F>=1&&(oe=1),oe===1&&ae--,ae=Math.min(ae,b+1),!!(ae%2)&&($==="reverse"?(oe=1-oe,w&&(oe-=w/m)):$==="mirror"&&(O=o)),T=Lu(0,1,oe)*m}const M=C?{done:!1,value:l[0]}:O.next(T);u&&(M.value=u(M.value));let{done:k}=M;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(M.value=ag(l,this.options,i)),D&&D(M.value),N&&this.finish(),M}get duration(){const{resolved:t}=this;return t?Ea(t.calculatedDuration):0}get time(){return Ea(this.currentTime)}set time(t){t=Ko(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=Ea(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zoe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),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 Hoe=new Set(["opacity","clipPath","filter","transform"]);function Goe(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=UO(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Yoe=F$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),am=10,Zoe=2e4;function Xoe(e){return k$(e.type)||e.type==="spring"||!KO(e.ease)}function Joe(e,t){const n=new U$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Zoe;)r=n.sample(s),i.push(r.value),s+=am;return{times:void 0,keyframes:i,duration:s-am,ease:"linear"}}const bI={anticipate:YO,backInOut:GO,circInOut:ZO};function Qoe(e){return e in bI}class r2 extends dI{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new fI(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&sm()&&Qoe(s)&&(s=bI[s]),Xoe(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...w}=this.options,D=Joe(t,w);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=Goe(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(jT(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(ag(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ea(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ea(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ko(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 Ta;const{animation:r}=n;jT(r,t)}return Ta}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:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new U$({...b,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),w=Ko(this.time);d.setWithVelocity($.sample(w-am).value,$.sample(w).value,am)}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:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return Yoe()&&r&&Hoe.has(r)&&(r!=="transform"||!d)&&!l&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}}const eae={type:"spring",stiffness:500,damping:25,restSpeed:10},tae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nae={type:"keyframes",duration:.8},rae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iae=(e,{keyframes:t})=>t.length>2?nae:Uu.has(e)?e.startsWith("scale")?tae(t[1]):eae:rae;function sae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const oae=(e,t,n,r={},i,s)=>o=>{const u=LO(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ko(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};sae(u)||(h={...h,...iae(e,h)}),h.duration&&(h.duration=Ko(h.duration)),h.repeatDelay&&(h.repeatDelay=Ko(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!u.type&&!u.ease,m&&!s&&t.get()!==void 0){const g=ag(h.keyframes,u);if(g!==void 0)return li.update(()=>{h.onUpdate(g),h.onComplete()}),new Rse([])}return!s&&r2.supports(h)?new r2(h):new U$(h)};function aae({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $I(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),b=l[m];if(b===void 0||h&&aae(h,m))continue;const $={delay:n,...LO(o||{},m)};let w=!1;if(window.MotionHandoffAnimation){const S=Pse(e);if(S){const C=window.MotionHandoffAnimation(S,m,li);C!==null&&($.startTime=C,w=!0)}}Tse(e,m),g.start(oae(m,g,b,e.shouldReduceMotion&&BO.has(m)?{type:!1}:$,e,w));const D=g.animation;D&&d.push(D)}return u&&Promise.all(d).then(()=>{li.update(()=>{u&&Dse(e,u)})}),d}function y4(e,t,n={}){var r;const i=gd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all($I(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=s;return uae(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,h]=l==="beforeChildren"?[o,u]:[u,o];return d().then(()=>h())}else return Promise.all([o(),u(n.delay)])}function uae(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(lae).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(y4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function lae(e,t){return e.sortNodePosition(t)}function cae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>y4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=y4(e,t,n);else{const i=typeof t=="function"?gd(e,t,n.custom):t;r=Promise.all($I(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function xI(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 fae=w$.length;function wI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fae;n++){const r=w$[n],i=e.props[r];(pd(i)||i===!1)&&(t[r]=i)}return t}const dae=[...x$].reverse(),hae=x$.length;function pae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cae(e,n,r)))}function mae(e){let t=pae(e),n=i2(),r=!0;const i=l=>(d,h)=>{var m;const g=gd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=wI(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let D=0;D<hae;D++){const S=dae[D],C=n[S],T=d[S]!==void 0?d[S]:h[S],O=pd(T),M=S===l?C.isActive:null;M===!1&&($=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...b},!C.isActive&&M===null||!T&&!C.prevProp||sg(T)||typeof T=="boolean")continue;const N=gae(C.prevProp,T);let F=N||S===l&&C.isActive&&!k&&O||D>$&&O,ae=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(i(S),{});M===!1&&(W={});const{prevResolvedValues:we={}}=C,ne={...we,...W},se=j=>{F=!0,g.has(j)&&(ae=!0,g.delete(j)),C.needsAnimating[j]=!0;const B=e.getValue(j);B&&(B.liveStyle=!1)};for(const j in ne){const B=W[j],ge=we[j];if(b.hasOwnProperty(j))continue;let U=!1;o4(B)&&o4(ge)?U=!xI(B,ge):U=B!==ge,U?B!=null?se(j):g.add(j):B!==void 0&&g.has(j)?se(j):C.protectedKeys[j]=!0}C.prevProp=T,C.prevResolvedValues=W,C.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(k&&N)||ae)&&m.push(...oe.map(j=>({animation:j,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=gd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const C=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=C??null}),m.push({animation:D})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=o(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=i2(),r=!0}}}function gae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xI(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i2(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class _c{constructor(t){this.isMounted=!1,this.node=t}update(){}}class vae extends _c{constructor(t){super(t),t.animationState||(t.animationState=mae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();sg(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 yae=0;class bae extends _c{constructor(){super(...arguments),this.id=yae++}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 $ae={animation:{Feature:vae},exit:{Feature:bae}},xae={y:!1};function wae(){return xae.y}function s2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Cae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function CI(e){return{point:{x:e.pageX,y:e.pageY}}}function Sae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Eae(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const o2=()=>({min:0,max:0}),SI=()=>({x:o2(),y:o2()});function Dae(e,t){return Sae(Eae(e.getBoundingClientRect(),t))}function Aae(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function EI(e,t){const n=Aae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function a2(e){return!(e.pointerType==="touch"||wae())}function Tae(e,t,n={}){const[r,i,s]=EI(e,n),o=u=>{if(!a2(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{a2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}function u2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&li.postRender(()=>s(t,CI(t)))}class Pae extends _c{mount(){const{current:t}=this.node;t&&(this.unmount=Tae(t,(n,r)=>(u2(this.node,r,"Start"),i=>u2(this.node,i,"End"))))}unmount(){}}class _ae extends _c{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=lg(s2(this.node.current,"focus",()=>this.onFocus()),s2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const DI=(e,t)=>t?e===t?!0:DI(e,t.parentElement):!1,Mae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rae(e){return Mae.has(e.tagName)||e.tabIndex!==-1}const If=new WeakSet;function l2(e){return t=>{t.key==="Enter"&&e(t)}}function D1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=l2(()=>{if(If.has(n))return;D1(n,"down");const i=l2(()=>{D1(n,"up")}),s=()=>D1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function c2(e){return Cae(e)&&!0}function kae(e,t,n={}){const[r,i,s]=EI(e,n),o=u=>{const l=u.currentTarget;if(!c2(u)||If.has(l))return;If.add(l);const d=t(l,u),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!c2(b)||!If.has(l))&&(If.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||DI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u instanceof HTMLElement&&(u.addEventListener("focus",d=>Fae(d,i)),!Rae(u)&&u.tabIndex===null&&(u.tabIndex=0))}),s}function f2(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),s=r[i];s&&li.postRender(()=>s(t,CI(t)))}class Oae extends _c{mount(){const{current:t}=this.node;t&&(this.unmount=kae(t,(n,r)=>(f2(this.node,r,"Start"),(i,{success:s})=>f2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const b4=new WeakMap,A1=new WeakMap,Iae=e=>{const t=b4.get(e.target);t&&t(e)},Lae=e=>{e.forEach(Iae)};function Bae({root:e,...t}){const n=e||document;A1.has(n)||A1.set(n,{});const r=A1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Lae,{root:e,...t})),r[i]}function Vae(e,t,n){const r=Bae(t);return b4.set(e,n),r.observe(e),()=>{b4.delete(e),r.unobserve(e)}}const Nae={some:0,all:1};class jae extends _c{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nae[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Vae(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Kae(t,n))&&this.startObserver()}unmount(){}}function Kae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Uae={inView:{Feature:jae},tap:{Feature:Oae},focus:{Feature:_ae},hover:{Feature:Pae}},$4={current:null},AI={current:!1};function zae(){if(AI.current=!0,!!b$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$4.current=e.matches;e.addListener(t),t()}else $4.current=!1}const qae=[...cI,Tr,Pc],Wae=e=>qae.find(lI(e)),Hae=new WeakMap;function Gae(e,t,n){for(const r in t){const i=t[r],s=n[r];if(zr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&rg(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(zr(s))e.addValue(r,im(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,im(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const d2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Yae{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=j$,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 b=Sa.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,li.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=og(n),this.isVariantNode=xO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&zr($)&&$.set(l[b],!1)}}mount(t){this.current=t,Hae.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)),AI.current||zae(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$4.current,process.env.NODE_ENV!=="production"&&rg(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(),s4(this.notifyUpdate),s4(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=Uu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&li.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in dc){const n=dc[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):SI()}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<d2.length;r++){const i=d2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Gae(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=im(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"&&(aI(i)||XO(i))?i=parseFloat(i):!Wae(i)&&Pc.test(n)&&(i=iI(t,n)),this.setBaseTarget(t,zr(i)?i.get():i)),zr(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 o=M$(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!zr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new VO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class TI extends Yae{constructor(){super(...arguments),this.KeyframeResolver=fI}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;zr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Zae(e){return window.getComputedStyle(e)}class Xae extends TI{constructor(){super(...arguments),this.type="html",this.renderInstance=FO}readValueFromInstance(t,n){if(Uu.has(n))return soe(t,n);{const r=Zae(t),i=(DO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Dae(t,n)}build(t,n,r){D$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return R$(t,n,r)}}class Jae extends TI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=SI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&RO(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Uu.has(n)){const r=rI(n);return r&&r.default||0}return n=kO.has(n)?n:C$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return IO(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&li.postRender(this.updateDimensions)}build(t,n,r){P$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){OO(t,n,r,i)}mount(t){this.isSVGTag=_$(t.tagName),super.mount(t)}}const Qae=(e,t)=>T$(e)?new Jae(t):new Xae(t,{allowProjection:e!==A.Fragment}),eue={renderer:Qae,...$ae,...Uae};function PI(e){return t=>typeof t===e}var tue=PI("function"),nue=e=>e===null,h2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",p2=e=>!rue(e)&&!nue(e)&&(tue(e)||typeof e=="object"),rue=PI("undefined");function iue(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!qr(e[r],t[r]))return!1;return!0}function sue(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(!qr(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 qr(e,t){if(e===t)return!0;if(e&&p2(e)&&t&&p2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return iue(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 sue(e,t);if(h2(e)&&h2(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 s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!qr(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var uue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lue=["bigint","boolean","null","number","string","symbol","undefined"];function cg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cue(t))return t}function Ss(e){return t=>cg(t)===e}function cue(e){return uue.includes(e)}function Mc(e){return t=>typeof t===e}function fue(e){return lue.includes(e)}var due=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=cg(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>cg(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ss("AsyncFunction");ut.bigint=Mc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ss("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&due.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ss("Error");ut.function=Mc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ss("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ss("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Mc("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ss("Function");ut.plainObject=e=>{if(cg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||fue(typeof e);ut.promise=Ss("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ss("RegExp");ut.set=Ss("Set");ut.string=Mc("string");ut.symbol=Mc("symbol");ut.undefined=Mc("undefined");ut.weakMap=Ss("WeakMap");ut.weakSet=Ss("WeakSet");var ht=ut;function hue(...e){return e.every(t=>ht.string(t)||ht.array(t)||ht.plainObject(t))}function pue(e,t,n){return _I(e,t)?[e,t].every(ht.array)?!e.some(b2(n))&&t.some(b2(n)):[e,t].every(ht.plainObject)?!Object.entries(e).some(y2(n))&&Object.entries(t).some(y2(n)):t===n:!1}function m2(e,t,n){const{actual:r,key:i,previous:s,type:o}=n,u=Xs(e,i),l=Xs(t,i);let d=[u,l].every(ht.number)&&(o==="increased"?u<l:u>l);return ht.undefined(r)||(d=d&&l===r),ht.undefined(s)||(d=d&&u===s),d}function g2(e,t,n){const{key:r,type:i,value:s}=n,o=Xs(e,r),u=Xs(t,r),l=i==="added"?o:u,d=i==="added"?u:o;if(!ht.nullOrUndefined(s)){if(ht.defined(l)){if(ht.array(l)||ht.plainObject(l))return pue(l,d,s)}else return qr(d,s);return!1}return[o,u].every(ht.array)?!d.every(z$(l)):[o,u].every(ht.plainObject)?mue(Object.keys(l),Object.keys(d)):![o,u].every(h=>ht.primitive(h)&&ht.defined(h))&&(i==="added"?!ht.defined(o)&&ht.defined(u):ht.defined(o)&&!ht.defined(u))}function v2(e,t,{key:n}={}){let r=Xs(e,n),i=Xs(t,n);if(!_I(r,i))throw new TypeError("Inputs have different types");if(!hue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ht.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function y2(e){return([t,n])=>ht.array(e)?qr(e,n)||e.some(r=>qr(r,n)||ht.array(n)&&z$(n)(r)):ht.plainObject(e)&&e[t]?!!e[t]&&qr(e[t],n):qr(e,n)}function mue(e,t){return t.some(n=>!e.includes(n))}function b2(e){return t=>ht.array(e)?e.some(n=>qr(n,t)||ht.array(t)&&z$(t)(n)):qr(e,t)}function yf(e,t){return ht.array(e)?e.some(n=>qr(n,t)):qr(e,t)}function z$(e){return t=>e.some(n=>qr(n,t))}function _I(...e){return e.every(ht.array)||e.every(ht.number)||e.every(ht.plainObject)||e.every(ht.string)}function Xs(e,t){return ht.plainObject(e)||ht.array(e)?ht.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ht.number(t)?e[t]:e:e}function um(e,t){if([e,t].some(ht.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ht.plainObject(h)||ht.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return g2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Xs(e,h),$=Xs(t,h),w=ht.defined(m),D=ht.defined(g);if(w||D){const S=D?yf(g,b):!yf(m,b),C=yf(m,$);return S&&C}return[b,$].every(ht.array)||[b,$].every(ht.plainObject)?!qr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ht.defined(h))return!1;try{const b=Xs(e,h),$=Xs(t,h),w=ht.defined(g);return yf(m,b)&&(w?yf(g,$):!w)}catch{return!1}},decreased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return m2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=v2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=v2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return m2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return g2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var T1,$2;function gue(){if($2)return T1;$2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;T1={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=d[u],w=m.ease||s,D=isNaN(m.duration)?350:+m.duration,S=!1;return $===h?g(e,d[u]):requestAnimationFrame(T),C;function C(){S=!0}function T(O){if(S)return g(t,d[u]);var M=r(),k=n(1,(M-b)/D),N=w(k);d[u]=N*(h-$)+$,k<1?requestAnimationFrame(T):requestAnimationFrame(function(){g(null,d[u])})}}}function s(u){return .5*(1-Math.cos(Math.PI*u))}function o(){}return T1}var vue=gue();const yue=ws(vue);var $p={exports:{}},bue=$p.exports,x2;function $ue(){return x2||(x2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(bue,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})}($p)),$p.exports}var xue=$ue();const MI=ws(xue);var P1,w2;function wue(){if(w2)return P1;w2=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,P1=n,P1}var Cue=wue();const C2=ws(Cue);var _1,S2;function Sue(){if(S2)return _1;S2=1;var e=function(C){return t(C)&&!n(C)};function t(S){return!!S&&typeof S=="object"}function n(S){var C=Object.prototype.toString.call(S);return C==="[object RegExp]"||C==="[object Date]"||s(S)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(S){return S.$$typeof===i}function o(S){return Array.isArray(S)?[]:{}}function u(S,C){return C.clone!==!1&&C.isMergeableObject(S)?w(o(S),S,C):S}function l(S,C,T){return S.concat(C).map(function(O){return u(O,T)})}function d(S,C){if(!C.customMerge)return w;var T=C.customMerge(S);return typeof T=="function"?T:w}function h(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(C){return Object.propertyIsEnumerable.call(S,C)}):[]}function m(S){return Object.keys(S).concat(h(S))}function g(S,C){try{return C in S}catch{return!1}}function b(S,C){return g(S,C)&&!(Object.hasOwnProperty.call(S,C)&&Object.propertyIsEnumerable.call(S,C))}function $(S,C,T){var O={};return T.isMergeableObject(S)&&m(S).forEach(function(M){O[M]=u(S[M],T)}),m(C).forEach(function(M){b(S,M)||(g(S,M)&&T.isMergeableObject(C[M])?O[M]=d(M,T)(S[M],C[M],T):O[M]=u(C[M],T))}),O}function w(S,C,T){T=T||{},T.arrayMerge=T.arrayMerge||l,T.isMergeableObject=T.isMergeableObject||e,T.cloneUnlessOtherwiseSpecified=u;var O=Array.isArray(C),M=Array.isArray(S),k=O===M;return k?O?T.arrayMerge(S,C,T):$(S,C,T):u(C,T)}w.all=function(C,T){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(O,M){return w(O,M,T)},{})};var D=w;return _1=D,_1}var Eue=Sue();const ys=ws(Eue);var Hh={exports:{}},Gh={exports:{}},on={};/** @license React v16.13.1
|
|
139
|
+
* react-is.production.min.js
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the MIT license found in the
|
|
144
|
+
* LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/var E2;function Due(){if(E2)return on;E2=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,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case t:switch(M=M.type,M){case l:case d:case r:case s:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case u:case h:case $:case b:case o:return M;default:return k}}case n:return k}}}function O(M){return T(M)===d}return on.AsyncMode=l,on.ConcurrentMode=d,on.ContextConsumer=u,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=s,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(M){return O(M)||T(M)===l},on.isConcurrentMode=O,on.isContextConsumer=function(M){return T(M)===u},on.isContextProvider=function(M){return T(M)===o},on.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},on.isForwardRef=function(M){return T(M)===h},on.isFragment=function(M){return T(M)===r},on.isLazy=function(M){return T(M)===$},on.isMemo=function(M){return T(M)===b},on.isPortal=function(M){return T(M)===n},on.isProfiler=function(M){return T(M)===s},on.isStrictMode=function(M){return T(M)===i},on.isSuspense=function(M){return T(M)===m},on.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===s||M===i||M===m||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===$||M.$$typeof===b||M.$$typeof===o||M.$$typeof===u||M.$$typeof===h||M.$$typeof===D||M.$$typeof===S||M.$$typeof===C||M.$$typeof===w)},on.typeOf=T,on}var an={};/** @license React v16.13.1
|
|
146
|
+
* react-is.development.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 D2;function Aue(){return D2||(D2=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,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(Le){return typeof Le=="string"||typeof Le=="function"||Le===r||Le===d||Le===s||Le===i||Le===m||Le===g||typeof Le=="object"&&Le!==null&&(Le.$$typeof===$||Le.$$typeof===b||Le.$$typeof===o||Le.$$typeof===u||Le.$$typeof===h||Le.$$typeof===D||Le.$$typeof===S||Le.$$typeof===C||Le.$$typeof===w)}function O(Le){if(typeof Le=="object"&&Le!==null){var nt=Le.$$typeof;switch(nt){case t:var xt=Le.type;switch(xt){case l:case d:case r:case s:case i:case m:return xt;default:var ln=xt&&xt.$$typeof;switch(ln){case u:case h:case $:case b:case o:return ln;default:return nt}}case n:return nt}}}var M=l,k=d,N=u,F=o,ae=t,oe=h,W=r,we=$,ne=b,se=n,z=s,K=i,j=m,B=!1;function ge(Le){return B||(B=!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(Le)||O(Le)===l}function U(Le){return O(Le)===d}function G(Le){return O(Le)===u}function Se(Le){return O(Le)===o}function Pe(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===t}function ke(Le){return O(Le)===h}function Ie(Le){return O(Le)===r}function Ze(Le){return O(Le)===$}function Ge(Le){return O(Le)===b}function De(Le){return O(Le)===n}function Ue(Le){return O(Le)===s}function _e(Le){return O(Le)===i}function Ve(Le){return O(Le)===m}an.AsyncMode=M,an.ConcurrentMode=k,an.ContextConsumer=N,an.ContextProvider=F,an.Element=ae,an.ForwardRef=oe,an.Fragment=W,an.Lazy=we,an.Memo=ne,an.Portal=se,an.Profiler=z,an.StrictMode=K,an.Suspense=j,an.isAsyncMode=ge,an.isConcurrentMode=U,an.isContextConsumer=G,an.isContextProvider=Se,an.isElement=Pe,an.isForwardRef=ke,an.isFragment=Ie,an.isLazy=Ze,an.isMemo=Ge,an.isPortal=De,an.isProfiler=Ue,an.isStrictMode=_e,an.isSuspense=Ve,an.isValidElementType=T,an.typeOf=O}()),an}var A2;function RI(){return A2||(A2=1,process.env.NODE_ENV==="production"?Gh.exports=Due():Gh.exports=Aue()),Gh.exports}/*
|
|
153
|
+
object-assign
|
|
154
|
+
(c) Sindre Sorhus
|
|
155
|
+
@license MIT
|
|
156
|
+
*/var M1,T2;function Tue(){if(T2)return M1;T2=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return M1=i()?Object.assign:function(s,o){for(var u,l=r(s),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(l[m]=u[m]);if(e){d=e(u);for(var g=0;g<d.length;g++)n.call(u,d[g])&&(l[d[g]]=u[d[g]])}}return l},M1}var R1,P2;function q$(){if(P2)return R1;P2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return R1=e,R1}var F1,_2;function FI(){return _2||(_2=1,F1=Function.call.bind(Object.prototype.hasOwnProperty)),F1}var k1,M2;function Pue(){if(M2)return k1;M2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=q$(),n={},r=FI();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,u,l,d){if(process.env.NODE_ENV!=="production"){for(var h in s)if(r(s,h)){var m;try{if(typeof s[h]!="function"){var g=Error((l||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=s[h](o,h,l,u,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},k1=i,k1}var O1,R2;function _ue(){if(R2)return O1;R2=1;var e=RI(),t=Tue(),n=q$(),r=FI(),i=Pue(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return O1=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(U){var G=U&&(d&&U[d]||U[h]);if(typeof G=="function")return G}var g="<<anonymous>>",b={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:T,element:O(),elementType:M(),instanceOf:k,node:oe(),objectOf:F,oneOf:N,oneOfType:ae,shape:we,exact:ne};function $(U,G){return U===G?U!==0||1/U===1/G:U!==U&&G!==G}function w(U,G){this.message=U,this.data=G&&typeof G=="object"?G:{},this.stack=""}w.prototype=Error.prototype;function D(U){if(process.env.NODE_ENV!=="production")var G={},Se=0;function Pe(Ie,Ze,Ge,De,Ue,_e,Ve){if(De=De||g,_e=_e||Ge,Ve!==n){if(l){var Le=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 Le.name="Invariant Violation",Le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var nt=De+":"+Ge;!G[nt]&&Se<3&&(s("You are manually calling a React.PropTypes validation function for the `"+_e+"` prop on `"+De+"`. 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."),G[nt]=!0,Se++)}}return Ze[Ge]==null?Ie?Ze[Ge]===null?new w("The "+Ue+" `"+_e+"` is marked as required "+("in `"+De+"`, but its value is `null`.")):new w("The "+Ue+" `"+_e+"` is marked as required in "+("`"+De+"`, but its value is `undefined`.")):null:U(Ze,Ge,De,Ue,_e)}var ke=Pe.bind(null,!1);return ke.isRequired=Pe.bind(null,!0),ke}function S(U){function G(Se,Pe,ke,Ie,Ze,Ge){var De=Se[Pe],Ue=K(De);if(Ue!==U){var _e=j(De);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+_e+"` supplied to `"+ke+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return D(G)}function C(){return D(o)}function T(U){function G(Se,Pe,ke,Ie,Ze){if(typeof U!="function")return new w("Property `"+Ze+"` of component `"+ke+"` has invalid PropType notation inside arrayOf.");var Ge=Se[Pe];if(!Array.isArray(Ge)){var De=K(Ge);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+ke+"`, expected an array."))}for(var Ue=0;Ue<Ge.length;Ue++){var _e=U(Ge,Ue,ke,Ie,Ze+"["+Ue+"]",n);if(_e instanceof Error)return _e}return null}return D(G)}function O(){function U(G,Se,Pe,ke,Ie){var Ze=G[Se];if(!u(Ze)){var Ge=K(Ze);return new w("Invalid "+ke+" `"+Ie+"` of type "+("`"+Ge+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return D(U)}function M(){function U(G,Se,Pe,ke,Ie){var Ze=G[Se];if(!e.isValidElementType(Ze)){var Ge=K(Ze);return new w("Invalid "+ke+" `"+Ie+"` of type "+("`"+Ge+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return D(U)}function k(U){function G(Se,Pe,ke,Ie,Ze){if(!(Se[Pe]instanceof U)){var Ge=U.name||g,De=ge(Se[Pe]);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+ke+"`, expected ")+("instance of `"+Ge+"`."))}return null}return D(G)}function N(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function G(Se,Pe,ke,Ie,Ze){for(var Ge=Se[Pe],De=0;De<U.length;De++)if($(Ge,U[De]))return null;var Ue=JSON.stringify(U,function(Ve,Le){var nt=j(Le);return nt==="symbol"?String(Le):Le});return new w("Invalid "+Ie+" `"+Ze+"` of value `"+String(Ge)+"` "+("supplied to `"+ke+"`, expected one of "+Ue+"."))}return D(G)}function F(U){function G(Se,Pe,ke,Ie,Ze){if(typeof U!="function")return new w("Property `"+Ze+"` of component `"+ke+"` has invalid PropType notation inside objectOf.");var Ge=Se[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+ke+"`, expected an object."));for(var Ue in Ge)if(r(Ge,Ue)){var _e=U(Ge,Ue,ke,Ie,Ze+"."+Ue,n);if(_e instanceof Error)return _e}return null}return D(G)}function ae(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var G=0;G<U.length;G++){var Se=U[G];if(typeof Se!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(Se)+" at index "+G+"."),o}function Pe(ke,Ie,Ze,Ge,De){for(var Ue=[],_e=0;_e<U.length;_e++){var Ve=U[_e],Le=Ve(ke,Ie,Ze,Ge,De,n);if(Le==null)return null;Le.data&&r(Le.data,"expectedType")&&Ue.push(Le.data.expectedType)}var nt=Ue.length>0?", expected one of type ["+Ue.join(", ")+"]":"";return new w("Invalid "+Ge+" `"+De+"` supplied to "+("`"+Ze+"`"+nt+"."))}return D(Pe)}function oe(){function U(G,Se,Pe,ke,Ie){return se(G[Se])?null:new w("Invalid "+ke+" `"+Ie+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return D(U)}function W(U,G,Se,Pe,ke){return new w((U||"React class")+": "+G+" type `"+Se+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ke+"`.")}function we(U){function G(Se,Pe,ke,Ie,Ze){var Ge=Se[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type `"+De+"` "+("supplied to `"+ke+"`, expected `object`."));for(var Ue in U){var _e=U[Ue];if(typeof _e!="function")return W(ke,Ie,Ze,Ue,j(_e));var Ve=_e(Ge,Ue,ke,Ie,Ze+"."+Ue,n);if(Ve)return Ve}return null}return D(G)}function ne(U){function G(Se,Pe,ke,Ie,Ze){var Ge=Se[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type `"+De+"` "+("supplied to `"+ke+"`, expected `object`."));var Ue=t({},Se[Pe],U);for(var _e in Ue){var Ve=U[_e];if(r(U,_e)&&typeof Ve!="function")return W(ke,Ie,Ze,_e,j(Ve));if(!Ve)return new w("Invalid "+Ie+" `"+Ze+"` key `"+_e+"` supplied to `"+ke+"`.\nBad object: "+JSON.stringify(Se[Pe],null," ")+`
|
|
157
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var Le=Ve(Ge,_e,ke,Ie,Ze+"."+_e,n);if(Le)return Le}return null}return D(G)}function se(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(se);if(U===null||u(U))return!0;var G=m(U);if(G){var Se=G.call(U),Pe;if(G!==U.entries){for(;!(Pe=Se.next()).done;)if(!se(Pe.value))return!1}else for(;!(Pe=Se.next()).done;){var ke=Pe.value;if(ke&&!se(ke[1]))return!1}}else return!1;return!0;default:return!1}}function z(U,G){return U==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function K(U){var G=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":z(G,U)?"symbol":G}function j(U){if(typeof U>"u"||U===null)return""+U;var G=K(U);if(G==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return G}function B(U){var G=j(U);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function ge(U){return!U.constructor||!U.constructor.name?g:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},O1}var I1,F2;function Mue(){if(F2)return I1;F2=1;var e=q$();function t(){}function n(){}return n.resetWarningCache=t,I1=function(){function r(o,u,l,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={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 s.PropTypes=s,s},I1}var k2;function Rue(){if(k2)return Hh.exports;if(k2=1,process.env.NODE_ENV!=="production"){var e=RI(),t=!0;Hh.exports=_ue()(e.isElement,t)}else Hh.exports=Mue()();return Hh.exports}var Fue=Rue();const it=ws(Fue);/**!
|
|
158
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
159
|
+
* @version 1.16.1
|
|
160
|
+
* @license
|
|
161
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
162
|
+
*
|
|
163
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
164
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
165
|
+
* in the Software without restriction, including without limitation the rights
|
|
166
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
167
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
168
|
+
* furnished to do so, subject to the following conditions:
|
|
169
|
+
*
|
|
170
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
171
|
+
* copies or substantial portions of the Software.
|
|
172
|
+
*
|
|
173
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
174
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
175
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
176
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
177
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
178
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
179
|
+
* SOFTWARE.
|
|
180
|
+
*/var zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",kue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Oue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Iue(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},kue))}}var Lue=zd&&window.Promise,Bue=Lue?Oue:Iue;function kI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function W$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function qd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:qd(W$(e))}function OI(e){return e&&e.referenceNode?e.referenceNode:e}var O2=zd&&!!(window.MSInputMethodContext&&document.documentMode),I2=zd&&/MSIE 10/.test(navigator.userAgent);function Rc(e){return e===11?O2:e===10?I2:O2||I2}function pc(e){if(!e)return document.documentElement;for(var t=Rc(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&&zu(n,"position")==="static"?pc(n):n}function Vue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||pc(e.firstElementChild)===e}function x4(e){return e.parentNode!==null?x4(e.parentNode):e}function lm(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,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var o=s.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Vue(o)?o:pc(o);var u=x4(e);return u.host?lm(u.host,t):lm(e,x4(t).host)}function mc(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,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function Nue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=mc(t,"top"),i=mc(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function L2(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 B2(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Rc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function II(e){var t=e.body,n=e.documentElement,r=Rc(10)&&getComputedStyle(n);return{height:B2("Height",t,n,r),width:B2("Width",t,n,r)}}var jue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Kue=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}}(),gc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Hi=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 Pa(e){return Hi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function w4(e){var t={};try{if(Rc(10)){t=e.getBoundingClientRect();var n=mc(e,"top"),r=mc(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},s=e.nodeName==="HTML"?II(e.ownerDocument):{},o=s.width||e.clientWidth||i.width,u=s.height||e.clientHeight||i.height,l=e.offsetWidth-o,d=e.offsetHeight-u;if(l||d){var h=zu(e);l-=L2(h,"x"),d-=L2(h,"y"),i.width-=l,i.height-=d}return Pa(i)}function H$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Rc(10),i=t.nodeName==="HTML",s=w4(e),o=w4(t),u=qd(e),l=zu(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=Pa({top:s.top-o.top-d,left:s.left-o.left-h,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(m=Nue(m,t)),m}function Uue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=H$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:mc(n),u=t?0:mc(n,"left"),l={top:o-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:s};return Pa(l)}function LI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zu(e,"position")==="fixed")return!0;var n=W$(e);return n?LI(n):!1}function BI(e){if(!e||!e.parentElement||Rc())return document.documentElement;for(var t=e.parentElement;t&&zu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function G$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},o=i?BI(e):lm(e,OI(t));if(r==="viewport")s=Uue(o,i);else{var u=void 0;r==="scrollParent"?(u=qd(W$(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=H$(u,o,i);if(u.nodeName==="HTML"&&!LI(o)){var d=II(e.ownerDocument),h=d.height,m=d.width;s.top+=l.top-l.marginTop,s.bottom=h+l.top,s.left+=l.left-l.marginLeft,s.right=m+l.left}else s=l}n=n||0;var g=typeof n=="number";return s.left+=g?n:n.left||0,s.top+=g?n:n.top||0,s.right-=g?n:n.right||0,s.bottom-=g?n:n.bottom||0,s}function zue(e){var t=e.width,n=e.height;return t*n}function VI(e,t,n,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=G$(n,r,s,i),u={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(u).map(function(g){return Hi({key:g},u[g],{area:zue(u[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function NI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?BI(t):lm(t,OI(n));return H$(n,i,r)}function jI(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),s={width:e.offsetWidth+i,height:e.offsetHeight+r};return s}function cm(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 KI(e,t,n){n=n.split("-")[0];var r=jI(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,o=s?"top":"left",u=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[cm(u)],i}function Wd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function que(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Wd(e,function(i){return i[t]===n});return e.indexOf(r)}function UI(e,t,n){var r=n===void 0?e:e.slice(0,que(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&kI(s)&&(t.offsets.popper=Pa(t.offsets.popper),t.offsets.reference=Pa(t.offsets.reference),t=s(t,i))}),t}function Wue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=NI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=VI(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=KI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=UI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function zI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Y$(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],s=i?""+i+n:e;if(typeof document.body.style[s]<"u")return s}return null}function Hue(){return this.state.isDestroyed=!0,zI(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[Y$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function qI(e){var t=e.ownerDocument;return t?t.defaultView:window}function WI(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||WI(qd(s.parentNode),t,n,r),r.push(s)}function Gue(e,t,n,r){n.updateBound=r,qI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=qd(e);return WI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Yue(){this.state.eventsEnabled||(this.state=Gue(this.reference,this.options,this.state,this.scheduleUpdate))}function Zue(e,t){return qI(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 Xue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Zue(this.reference,this.state))}function Z$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function C4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Z$(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 Que(e){return C4(e.instance.popper,e.styles),Jue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&C4(e.arrowElement,e.arrowStyles),e}function ele(e,t,n,r,i){var s=NI(i,t,e,n.positionFixed),o=VI(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),C4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function tle(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,o=Math.floor,u=function(S){return S},l=s(i.width),d=s(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,$=t?h||m||g?s:o:u,w=t?s:u;return{left:$(b&&!m&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:$(r.right)}}var nle=zd&&/Firefox/i.test(navigator.userAgent);function rle(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Wd(e.instance.modifiers,function(T){return T.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=s!==void 0?s:t.gpuAcceleration,u=pc(e.instance.popper),l=w4(u),d={position:i.position},h=tle(e,window.devicePixelRatio<2||!nle),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=Y$("transform"),$=void 0,w=void 0;if(m==="bottom"?u.nodeName==="HTML"?w=-u.clientHeight+h.bottom:w=-l.height+h.bottom:w=h.top,g==="right"?u.nodeName==="HTML"?$=-u.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)d[b]="translate3d("+$+"px, "+w+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var D=m==="bottom"?-1:1,S=g==="right"?-1:1;d[m]=w*D,d[g]=$*S,d.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Hi({},C,e.attributes),e.styles=Hi({},d,e.styles),e.arrowStyles=Hi({},e.offsets.arrow,e.arrowStyles),e}function HI(e,t,n){var r=Wd(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 s="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function ile(e,t){var n;if(!HI(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],s=e.offsets,o=s.popper,u=s.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=jI(r)[d];u[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(u[b]-$)),u[m]+$>o[b]&&(e.offsets.popper[m]+=u[m]+$-o[b]),e.offsets.popper=Pa(e.offsets.popper);var w=u[m]+u[d]/2-$/2,D=zu(e.instance.popper),S=parseFloat(D["margin"+h]),C=parseFloat(D["border"+h+"Width"]),T=w-e.offsets.popper[m]-S-C;return T=Math.max(Math.min(o[d]-$,T),0),e.arrowElement=r,e.offsets.arrow=(n={},gc(n,m,Math.round(T)),gc(n,g,""),n),e}function sle(e){return e==="end"?"start":e==="start"?"end":e}var GI=["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"],L1=GI.slice(3);function V2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=L1.indexOf(e),r=L1.slice(n+1).concat(L1.slice(0,n));return t?r.reverse():r}var B1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function ole(e,t){if(zI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=G$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=cm(r),s=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case B1.FLIP:o=[r,i];break;case B1.CLOCKWISE:o=V2(r);break;case B1.COUNTERCLOCKWISE:o=V2(r,!0);break;default:o=t.behavior}return o.forEach(function(u,l){if(r!==u||o.length===l+1)return e;r=e.placement.split("-")[0],i=cm(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),$=m(d.right)>m(n.right),w=m(d.top)<m(n.top),D=m(d.bottom)>m(n.bottom),S=r==="left"&&b||r==="right"&&$||r==="top"&&w||r==="bottom"&&D,C=["top","bottom"].indexOf(r)!==-1,T=!!t.flipVariations&&(C&&s==="start"&&b||C&&s==="end"&&$||!C&&s==="start"&&w||!C&&s==="end"&&D),O=!!t.flipVariationsByContent&&(C&&s==="start"&&$||C&&s==="end"&&b||!C&&s==="start"&&D||!C&&s==="end"&&w),M=T||O;(g||S||M)&&(e.flipped=!0,(g||S)&&(r=o[l+1]),M&&(s=sle(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Hi({},e.offsets.popper,KI(e.instance.popper,e.offsets.reference,e.placement)),e=UI(e.instance.modifiers,e,"flip"))}),e}function ale(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,o=["top","bottom"].indexOf(i)!==-1,u=o?"right":"bottom",l=o?"left":"top",d=o?"width":"height";return n[u]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[u])&&(e.offsets.popper[l]=s(r[u])),e}function ule(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],o=i[2];if(!s)return e;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=Pa(u);return l[t]/100*s}else if(o==="vh"||o==="vw"){var d=void 0;return o==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*s}else return s}function lle(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),u=o.indexOf(Wd(o,function(h){return h.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=u!==-1?[o.slice(0,u).concat([o[u].split(l)[0]]),[o[u].split(l)[1]].concat(o.slice(u+1))]:[o];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function($,w){return $[$.length-1]===""&&["+","-"].indexOf(w)!==-1?($[$.length-1]=w,b=!0,$):b?($[$.length-1]+=w,b=!1,$):$.concat(w)},[]).map(function($){return ule($,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){Z$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function cle(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,o=i.reference,u=r.split("-")[0],l=void 0;return Z$(+n)?l=[+n,0]:l=lle(n,s,o,u),u==="left"?(s.top+=l[0],s.left-=l[1]):u==="right"?(s.top+=l[0],s.left+=l[1]):u==="top"?(s.left+=l[0],s.top-=l[1]):u==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function fle(e,t){var n=t.boundariesElement||pc(e.instance.popper);e.instance.reference===n&&(n=pc(n));var r=Y$("transform"),i=e.instance.popper.style,s=i.top,o=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=G$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=o,i[r]=u,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),gc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",w=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(w=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),gc({},$,w)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Hi({},h,m[b](g))}),e.offsets.popper=h,e}function dle(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,o=i.popper,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",d=u?"width":"height",h={start:gc({},l,s[l]),end:gc({},l,s[l]+s[d]-o[d])};e.offsets.popper=Hi({},o,h[r])}return e}function hle(e){if(!HI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Wd(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 ple(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,o=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=s[n]-(u?i[o?"width":"height"]:0),e.placement=cm(t),e.offsets.popper=Pa(i),e}var mle={shift:{order:100,enabled:!0,fn:dle},offset:{order:200,enabled:!0,fn:cle,offset:0},preventOverflow:{order:300,enabled:!0,fn:fle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ale},arrow:{order:500,enabled:!0,fn:ile,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:ple},hide:{order:800,enabled:!0,fn:hle},computeStyle:{order:850,enabled:!0,fn:rle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Que,onLoad:ele,gpuAcceleration:void 0}},gle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:mle},yd=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};jue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Bue(this.update.bind(this)),this.options=Hi({},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(Hi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Hi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Hi({name:o},r.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&kI(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Kue(e,[{key:"update",value:function(){return Wue.call(this)}},{key:"destroy",value:function(){return Hue.call(this)}},{key:"enableEventListeners",value:function(){return Yue.call(this)}},{key:"disableEventListeners",value:function(){return Xue.call(this)}}]),e}();yd.Utils=(typeof window<"u"?window:global).PopperUtils;yd.placements=GI;yd.Defaults=gle;var vle=["innerHTML","ownerDocument","style","attributes","nodeValue"],yle=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ble=["bigint","boolean","null","number","string","symbol","undefined"];function fg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if($le(t))return t}function Es(e){return function(t){return fg(t)===e}}function $le(e){return yle.includes(e)}function Fc(e){return function(t){return typeof t===e}}function xle(e){return ble.includes(e)}function Ke(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(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=fg(e);return t||"Object"}Ke.array=Array.isArray;Ke.arrayOf=function(e,t){return!Ke.array(e)&&!Ke.function(t)?!1:e.every(function(n){return t(n)})};Ke.asyncGeneratorFunction=function(e){return fg(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Es("AsyncFunction");Ke.bigint=Fc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Es("Date");Ke.defined=function(e){return!Ke.undefined(e)};Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&e.nodeType===1&&Ke.string(e.nodeName)&&vle.every(function(t){return t in e})};Ke.empty=function(e){return Ke.string(e)&&e.length===0||Ke.array(e)&&e.length===0||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&Object.keys(e).length===0||Ke.set(e)&&e.size===0||Ke.map(e)&&e.size===0};Ke.error=Es("Error");Ke.function=Fc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Es("GeneratorFunction");Ke.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])};Ke.map=Es("Map");Ke.nan=function(e){return Number.isNaN(e)};Ke.null=function(e){return e===null};Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)};Ke.number=function(e){return Fc("number")(e)&&!Ke.nan(e)};Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))};Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||typeof e=="object")};Ke.oneOf=function(e,t){return Ke.array(e)?e.indexOf(t)>-1:!1};Ke.plainFunction=Es("Function");Ke.plainObject=function(e){if(fg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||xle(typeof e)};Ke.promise=Es("Promise");Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)};Ke.regexp=Es("RegExp");Ke.set=Es("Set");Ke.string=Fc("string");Ke.symbol=Fc("symbol");Ke.undefined=Fc("undefined");Ke.weakMap=Es("WeakMap");Ke.weakSet=Es("WeakSet");function YI(e){return function(t){return typeof t===e}}var wle=YI("function"),Cle=function(e){return e===null},N2=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},j2=function(e){return!Sle(e)&&!Cle(e)&&(wle(e)||typeof e=="object")},Sle=YI("undefined"),S4=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 Ele(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!oi(e[r],t[r]))return!1;return!0}function Dle(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 Ale(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var o=S4(e.entries()),u=o.next();!u.done;u=o.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var d=S4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!oi(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}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=S4(e.entries()),s=i.next();!s.done;s=i.next()){var o=s.value;if(!t.has(o[0]))return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function oi(e,t){if(e===t)return!0;if(e&&j2(e)&&t&&j2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Ele(e,t);if(e instanceof Map&&t instanceof Map)return Ale(e,t);if(e instanceof Set&&t instanceof Set)return Tle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Dle(e,t);if(N2(e)&&N2(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 s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!oi(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Ple(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return Ke.string(n)||Ke.array(n)||Ke.plainObject(n)})}function _le(e,t,n){return ZI(e,t)?[e,t].every(Ke.array)?!e.some(W2(n))&&t.some(W2(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(q2(n))&&Object.entries(t).some(q2(n)):t===n:!1}function K2(e,t,n){var r=n.actual,i=n.key,s=n.previous,o=n.type,u=Js(e,i),l=Js(t,i),d=[u,l].every(Ke.number)&&(o==="increased"?u<l:u>l);return Ke.undefined(r)||(d=d&&l===r),Ke.undefined(s)||(d=d&&u===s),d}function U2(e,t,n){var r=n.key,i=n.type,s=n.value,o=Js(e,r),u=Js(t,r),l=i==="added"?o:u,d=i==="added"?u:o;if(!Ke.nullOrUndefined(s)){if(Ke.defined(l)){if(Ke.array(l)||Ke.plainObject(l))return _le(l,d,s)}else return oi(d,s);return!1}return[o,u].every(Ke.array)?!d.every(X$(l)):[o,u].every(Ke.plainObject)?Mle(Object.keys(l),Object.keys(d)):![o,u].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(o)&&Ke.defined(u):Ke.defined(o)&&!Ke.defined(u))}function z2(e,t,n){var r=n===void 0?{}:n,i=r.key,s=Js(e,i),o=Js(t,i);if(!ZI(s,o))throw new TypeError("Inputs have different types");if(!Ple(s,o))throw new TypeError("Inputs don't have length");return[s,o].every(Ke.plainObject)&&(s=Object.keys(s),o=Object.keys(o)),[s,o]}function q2(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?oi(e,r)||e.some(function(i){return oi(i,r)||Ke.array(r)&&X$(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&oi(e[n],r):oi(e,r)}}function Mle(e,t){return t.some(function(n){return!e.includes(n)})}function W2(e){return function(t){return Ke.array(e)?e.some(function(n){return oi(n,t)||Ke.array(t)&&X$(t)(n)}):oi(e,t)}}function bf(e,t){return Ke.array(e)?e.some(function(n){return oi(n,t)}):oi(e,t)}function X$(e){return function(t){return e.some(function(n){return oi(n,t)})}}function ZI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Js(e,t){if(Ke.plainObject(e)||Ke.array(e)){if(Ke.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return Ke.number(t)?e[t]:e}return e}function Rle(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return Ke.plainObject(m)||Ke.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return U2(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Js(e,m),w=Js(t,m),D=Ke.defined(g),S=Ke.defined(b);if(D||S){var C=S?bf(b,$):!bf(g,$),T=bf(g,w);return C&&T}return[$,w].every(Ke.array)||[$,w].every(Ke.plainObject)?!oi($,w):$!==w}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var $=Js(e,m),w=Js(t,m),D=Ke.defined(b);return bf(g,$)&&(D?bf(b,w):!D)}catch{return!1}},s=function(m,g){return Ke.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!Ke.defined(m))return!1;try{return K2(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},u=function(m){try{var g=z2(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=z2(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return K2(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return U2(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:o,emptied:u,filled:l,increased:d,removed:h}}function H2(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H2(Object(n),!0).forEach(function(r){Pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fle(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,JI(r.key),r)}}function Gd(e,t,n){return t&&Fle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pr(e,t,n){return t=JI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yd(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&&E4(e,t)}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fm(e)}function E4(e,t){return E4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},E4(e,t)}function kle(){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 Ole(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function XI(e,t){if(e==null)return{};var n=Ole(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ile(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 Fo(e)}function Zd(e){var t=kle();return function(){var r=fm(e),i;if(t){var s=fm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Ile(this,i)}}function Lle(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 JI(e){var t=Lle(e,"string");return typeof t=="symbol"?t:String(t)}var Ble={flip:{padding:20},preventOverflow:{padding:10}},Vle="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Nle="The error message is optional, but must be a string if provided.";function jle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Kle(e,t){return Object.hasOwnProperty.call(e,t)}function Ule(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function zle(e,t){if(typeof e!="function")throw new TypeError(Vle);if(t)throw new TypeError(Nle)}function G2(e,t,n){return zle(e,n),function(r,i,s){for(var o=arguments.length,u=new Array(o>3?o-3:0),l=3;l<o;l++)u[l-3]=arguments[l];return jle(t,r,i,s)?Kle(r,i)?e.apply(void 0,[r,i,s].concat(u)):Ule(r,i,s):e.apply(void 0,[r,i,s].concat(u))}}var Gt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},$f=Vo.createPortal!==void 0;function zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function V1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Yh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,o=s===void 0?!1:s,u=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){Ke.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function qle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Wle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Hle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Wle(e,t,i)},qle(e,t,i,r)}function Y2(){}var QI=function(e){Yd(n,e);var t=Zd(n);function n(){return Hd(this,n),t.apply(this,arguments)}return Gd(n,[{key:"componentDidMount",value:function(){zs()&&(this.node||this.appendNode(),$f||this.renderPortal())}},{key:"componentDidUpdate",value:function(){zs()&&($f||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!zs()||!this.node||($f||Vo.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,s=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!zs())return null;var i=this.props,s=i.children,o=i.setRef;if(this.node||this.appendNode(),$f)return Vo.createPortal(s,this.node);var u=Vo.unstable_renderSubtreeIntoContainer(this,s.length>1?A.createElement("div",null,s):s[0],this.node);return o(u),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,o=i.placement,u=i.target;return s?this.renderPortal():u||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return $f?this.renderReact16():null}}]),n}(A.Component);Pr(QI,"propTypes",{children:it.oneOfType([it.element,it.array]),hasChildren:it.bool,id:it.oneOfType([it.string,it.number]),placement:it.string,setRef:it.func.isRequired,target:it.oneOfType([it.object,it.string]),zIndex:it.number});var e9=function(e){Yd(n,e);var t=Zd(n);function n(){return Hd(this,n),t.apply(this,arguments)}return Gd(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,o=i.styles,u=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):s.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):s.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,s=i.placement,o=i.setArrowRef,u=i.styles,l=u.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,w={display:h,position:b},D,S=$,C=m;return s.startsWith("top")?(D="0,0 ".concat(S/2,",").concat(C," ").concat(S,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):s.startsWith("bottom")?(D="".concat(S,",").concat(C," ").concat(S/2,",0 0,").concat(C),w.top=0,w.marginLeft=g,w.marginRight=g):s.startsWith("left")?(C=$,S=m,D="0,0 ".concat(S,",").concat(C/2," 0,").concat(C),w.right=0,w.marginTop=g,w.marginBottom=g):s.startsWith("right")&&(C=$,S=m,D="".concat(S,",").concat(C," ").concat(S,",0 0,").concat(C/2),w.left=0,w.marginTop=g,w.marginBottom=g),A.createElement("div",{className:"__floater__arrow",style:this.parentStyle},A.createElement("span",{ref:o,style:w},A.createElement("svg",{width:S,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},A.createElement("polygon",{points:D,fill:d}))))}}]),n}(A.Component);Pr(e9,"propTypes",{placement:it.string.isRequired,setArrowRef:it.func.isRequired,styles:it.object.isRequired});var Gle=["color","height","width"];function t9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,o=XI(n,Gle);return A.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},A.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},A.createElement("g",null,A.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}))))}t9.propTypes={handleClick:it.func.isRequired,styles:it.object.isRequired};function n9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,o=e.showCloseButton,u=e.title,l=e.styles,d={content:A.isValidElement(t)?t:A.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(d.title=A.isValidElement(u)?u:A.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(d.footer=A.isValidElement(n)?n:A.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||s)&&!Ke.boolean(i)&&(d.close=A.createElement(t9,{styles:l.close,handleClick:r})),A.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}n9.propTypes={content:it.node.isRequired,footer:it.node,handleClick:it.func.isRequired,open:it.bool,positionWrapper:it.bool.isRequired,showCloseButton:it.bool.isRequired,styles:it.object.isRequired,title:it.node};var r9=function(e){Yd(n,e);var t=Zd(n);function n(){return Hd(this,n),t.apply(this,arguments)}return Gd(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,o=i.component,u=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,w=h.floaterOpening,D=h.floaterWithAnimation,S=h.floaterWithComponent,C={};return l||(u.startsWith("top")?C.padding="0 0 ".concat(m,"px"):u.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):u.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):u.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Gt.OPENING,Gt.OPEN].indexOf(d)!==-1&&(C=Tn(Tn({},C),w)),d===Gt.CLOSING&&(C=Tn(Tn({},C),$)),d===Gt.OPEN&&!s&&(C=Tn(Tn({},C),D)),u==="center"&&(C=Tn(Tn({},C),b)),o&&(C=Tn(Tn({},C),S)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,s=i.component,o=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?A.isValidElement(s)?h.content=A.cloneElement(s,{closeFn:o}):h.content=s({closeFn:o}):h.content=A.createElement(n9,this.props),d===Gt.OPEN&&m.push("__floater__open"),u||(h.arrow=A.createElement(e9,this.props)),A.createElement("div",{ref:l,className:m.join(" "),style:this.style},A.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(A.Component);Pr(r9,"propTypes",{component:it.oneOfType([it.func,it.element]),content:it.node,disableAnimation:it.bool.isRequired,footer:it.node,handleClick:it.func.isRequired,hideArrow:it.bool.isRequired,open:it.bool,placement:it.string.isRequired,positionWrapper:it.bool.isRequired,setArrowRef:it.func.isRequired,setFloaterRef:it.func.isRequired,showCloseButton:it.bool,status:it.string.isRequired,styles:it.object.isRequired,title:it.node});var i9=function(e){Yd(n,e);var t=Zd(n);function n(){return Hd(this,n),t.apply(this,arguments)}return Gd(n,[{key:"render",value:function(){var i=this.props,s=i.children,o=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(s)if(A.Children.count(s)===1)if(!A.isValidElement(s))b=A.createElement("span",null,s);else{var $=Ke.function(s.type)?"innerRef":"ref";b=A.cloneElement(A.Children.only(s),Pr({},$,d))}else b=s;return b?A.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:o,onMouseEnter:u,onMouseLeave:l},b):null}}]),n}(A.Component);Pr(i9,"propTypes",{children:it.node,handleClick:it.func.isRequired,handleMouseEnter:it.func.isRequired,handleMouseLeave:it.func.isRequired,setChildRef:it.func.isRequired,setWrapperRef:it.func.isRequired,style:it.object,styles:it.object.isRequired});var Yle={zIndex:100};function Zle(e){var t=ys(Yle,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 Xle=["arrow","flip","offset"],Jle=["position","top","right","bottom","left"],J$=function(e){Yd(n,e);var t=Zd(n);function n(r){var i;return Hd(this,n),i=t.call(this,r),Pr(Fo(i),"setArrowRef",function(s){i.arrowRef=s}),Pr(Fo(i),"setChildRef",function(s){i.childRef=s}),Pr(Fo(i),"setFloaterRef",function(s){i.floaterRef=s}),Pr(Fo(i),"setWrapperRef",function(s){i.wrapperRef=s}),Pr(Fo(i),"handleTransitionEnd",function(){var s=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Gt.OPENING?Gt.OPEN:Gt.IDLE},function(){var u=i.state.status;o(u===Gt.OPEN?"open":"close",i.props)})}),Pr(Fo(i),"handleClick",function(){var s=i.props,o=s.event,u=s.open;if(!Ke.boolean(u)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Yh({title:"click",data:[{event:o,status:h===Gt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Pr(Fo(i),"handleMouseEnter",function(){var s=i.props,o=s.event,u=s.open;if(!(Ke.boolean(u)||V1())){var l=i.state.status;i.event==="hover"&&l===Gt.IDLE&&(Yh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Pr(Fo(i),"handleMouseLeave",function(){var s=i.props,o=s.event,u=s.eventDelay,l=s.open;if(!(Ke.boolean(l)||V1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Yh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),u?[Gt.OPENING,Gt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(Gt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Gt.INIT,statusWrapper:Gt.INIT},i._isMounted=!1,i.hasMounted=!1,zs()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Gd(n,[{key:"componentDidMount",value:function(){if(zs()){var i=this.state.positionWrapper,s=this.props,o=s.children,u=s.open,l=s.target;this._isMounted=!0,Yh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:Ke.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&Ke.boolean(u)}}},{key:"componentDidUpdate",value:function(i,s){if(zs()){var o=this.props,u=o.autoOpen,l=o.open,d=o.target,h=o.wrapperOptions,m=Rle(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;Ke.boolean(l)&&($=l?Gt.OPENING:Gt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Gt.IDLE)&&l?this.toggle(Gt.OPEN):g("status",Gt.INIT,Gt.IDLE)&&u&&this.toggle(Gt.OPEN),this.popper&&b("status",Gt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Gt.OPENING)||b("status",Gt.CLOSING))&&Hle(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){zs()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,u=this.props,l=u.disableFlip,d=u.getPopper,h=u.hideArrow,m=u.offset,g=u.placement,b=u.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Gt.IDLE});else if(s&&this.floaterRef){var w=this.options,D=w.arrow,S=w.flip,C=w.offset,T=XI(w,Xle);new yd(s,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},D),flip:Tn({enabled:!l,behavior:$},S),offset:Tn({offset:"0, ".concat(m,"px")},C)},T),onCreate:function(k){var N;if(i.popper=k,!((N=i.floaterRef)!==null&&N!==void 0&&N.isConnected)){i.setState({needsUpdate:!0});return}d(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:Gt.IDLE}),g!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var N=i.state.currentPlacement;i._isMounted&&k.placement!==N&&i.setState({currentPlacement:k.placement})}})}if(o){var O=Ke.undefined(b.offset)?0:b.offset;new yd(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(O,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:Gt.IDLE}),d(k,"wrapper"),g!==k.placement&&setTimeout(function(){k.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var s;(s=i.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var s=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,o=s===Gt.OPEN?Gt.CLOSING:Gt.OPENING;Ke.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||zs()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,o=i.event;return o==="hover"&&V1()&&!s?"click":o}},{key:"options",get:function(){var i=this.props.options;return ys(Ble,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,o=s.status,u=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=ys(Zle(d),d);if(u){var m;[Gt.IDLE].indexOf(o)===-1||[Gt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},u||(Jle.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!zs())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,o=i.positionWrapper,u=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,w=l.id,D=l.open,S=l.showCloseButton,C=l.style,T=l.target,O=l.title,M=A.createElement(i9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},d),k={};return o?k.wrapperInPortal=M:k.wrapperAsChildren=M,A.createElement("span",null,A.createElement(QI,{hasChildren:!!d,id:w,placement:s,setRef:this.setFloaterRef,target:T,zIndex:this.styles.options.zIndex},A.createElement(r9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||s==="center",open:D,placement:s,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:u,styles:this.styles,title:O}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n}(A.Component);Pr(J$,"propTypes",{autoOpen:it.bool,callback:it.func,children:it.node,component:G2(it.oneOfType([it.func,it.element]),function(e){return!e.content}),content:G2(it.node,function(e){return!e.component}),debug:it.bool,disableAnimation:it.bool,disableFlip:it.bool,disableHoverToClick:it.bool,event:it.oneOf(["hover","click"]),eventDelay:it.number,footer:it.node,getPopper:it.func,hideArrow:it.bool,id:it.oneOfType([it.string,it.number]),offset:it.number,open:it.bool,options:it.object,placement:it.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:it.bool,style:it.object,styles:it.object,target:it.oneOfType([it.object,it.string]),title:it.node,wrapperOptions:it.shape({offset:it.number,placement:it.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:it.bool})});Pr(J$,"defaultProps",{autoOpen:!1,callback:Y2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Y2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Qle=Object.defineProperty,ece=(e,t,n)=>t in e?Qle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>ece(e,typeof t!="symbol"?t+"":t,n),tn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ui={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Mt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ya(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function s9(e){return e?e.getBoundingClientRect():null}function tce(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((s,o)=>s-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Bo(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 nce(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function bd(e,t,n){if(!e)return xu();const r=MI(e);if(r){if(r.isSameNode(xu()))return n?document:xu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",xu()}return r}function Xd(e,t){if(!e)return!1;const n=bd(e,t);return n?!n.isSameNode(xu()):!1}function rce(e){return e.offsetParent!==document.body}function vc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=nce(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?vc(e.parentNode,t):!1}function ice(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 sce(e,t,n){var r,i,s;const o=s9(e),u=bd(e,n),l=Xd(e,n),d=vc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=u==null?void 0:u.scrollTop)!=null?s:0;m=g-b}else u instanceof HTMLElement&&(h=u.scrollTop,!l&&!vc(e)&&(m+=h),u.isSameNode(xu())||(m+=xu().scrollTop));return Math.floor(m-t)}function oce(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=MI(e))!=null?r:{};let o=e.getBoundingClientRect().top+s;i&&(Xd(e,n)||rce(e))&&(o-=i);const u=Math.floor(o-t);return u<0?0:u}function xu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function ace(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:o}=r,u=e>o?e-o:o-e;yue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var xf=Vo.createPortal!==void 0;function o9(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 xp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=C2(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(A.isValidElement(e)&&!Object.values(e.props).length&&xp(e.type)==="function"){const o=e.type({});s=qs(o,t)}else s=C2(n);return s}function uce(e,t){return!ht.plainObject(e)||!ht.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function lce(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,o,u)=>s+s+o+o+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 Z2(e){return e.disableBeacon||e.placement==="center"}function X2(){return!["chrome","safari","firefox","opera"].includes(o9())}function _a({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(s=>{ht.plainObject(s)&&s.key?i.apply(console,[s.key,s.value]):i.apply(console,[s])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function cce(e){return Object.keys(e)}function a9(e,...t){if(!ht.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 fce(e,...t){if(!ht.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 D4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(xp(e)==="string")return r(e);if(!A.isValidElement(e))return e;const{children:i}=e.props;if(xp(i)==="string"&&i.includes("{step}"))return A.cloneElement(e,{children:r(i)});if(Array.isArray(i))return A.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):D4(s,t,n))});if(xp(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return D4(s,t,n)}return e}function dce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:o}=e;return!s.disableScrolling&&(!t||i||n===Mt.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!vc(o))&&r!==n&&[Mt.BEACON,Mt.TOOLTIP].includes(n)}var hce={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},u9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},pce={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:u9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},mce={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:[]},gce={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},wf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},J2={borderRadius:4,position:"absolute"};function vce(e,t){var n,r,i,s,o;const{floaterProps:u,styles:l}=e,d=ys((n=t.floaterProps)!=null?n:{},u??{}),h=ys(l??{},(r=t.styles)!=null?r:{}),m=ys(gce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},w={beacon:{...wf,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${lce(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...wf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...wf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...wf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...wf,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...J2,backgroundColor:"gray"},spotlightLegacy:{...J2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ys(w,h)}function yce(e){return fce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Sl(e,t){var n,r,i,s,o,u;const l=t??{},d=ys.all([pce,yce(e),l],{isMergeableObject:ht.plainObject}),h=vce(e,d),m=Xd(Bo(d.target),d.disableScrollParentFix),g=ys.all([hce,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ys((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?o:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ys.all([u9,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:g,styles:a9(h,"floaterStyles")}}function l9(e,t=!1){return ht.plainObject(e)?e.target?!0:(_a({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(_a({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Q2(e,t=!1){return ht.array(e)?e.every(n=>l9(n,t)):(_a({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var c9={action:"init",controlled:!1,index:0,lifecycle:Mt.INIT,origin:null,size:0,status:Nt.IDLE},eP=cce(a9(c9,"controlled","size")),bce=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:s,status:o}=this.getState(),u={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!s&&i.length&&(u.status=Nt.RUNNING),this.setState(u)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:s,status:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.CLOSE,index:s+1,origin:i})})}),mt(this,"go",i=>{const{controlled:s,status:o}=this.getState();if(s||o!==Nt.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:tn.GO,index:i}),status:u?o:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:s}=this.getState();s===Nt.RUNNING&&this.setState(this.getNextState({action:tn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.UPDATE,lifecycle:Mt.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:tn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:tn.SKIP,lifecycle:Mt.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:s,size:o}=this.getState();this.setState({...this.getNextState({action:tn.START,index:ht.number(i)?i:s},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:s,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:tn.STOP,index:s+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var s,o;if(!uce(i,eP))throw new Error(`State is not valid. Valid keys: ${eP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:tn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:tn.INIT,controlled:ht.number(n),continuous:t,index:ht.number(n)?n:0,lifecycle:Mt.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...c9}}getNextState(e,t=!1){var n,r,i,s,o;const{action:u,controlled:l,index:d,size:h,status:m}=this.getState(),g=ht.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:u,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Mt.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?Nt.FINISHED:(o=e.status)!=null?o:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:s,origin:o=null,size:u,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",o),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 $ce(e){return new bce(e)}function xce({styles:e}){return Ye.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var wce=xce,Cce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Mt.INIT,Mt.BEACON,Mt.COMPLETE,Mt.ERROR];return t||(e?r.includes(n):n!==Mt.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:o}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=u>=s&&u<=s+n,m=l>=r&&l<=r+o&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Bo(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 vc(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Bo(r);this.scrollParent=bd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Xd(i,!0)&&_a({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:s}=this.props,{changed:o}=um(e,this.props);if(o("target")||o("disableScrollParentFix")){const u=Bo(s);this.scrollParent=bd(u??document.body,n,!0)}o("lifecycle",Mt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Mt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Mt.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 X2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:tce(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:o=0,styles:u,target:l}=this.props,d=Bo(l),h=s9(d),m=vc(d),g=sce(d,o,i);return{...X2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:s?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:s}=this;if(r())return null;let o=n!=="center"&&e&&Ye.createElement(wce,{styles:s});if(o9()==="safari"){const{mixBlendMode:u,zIndex:l,...d}=i;o=Ye.createElement("div",{style:{...d}},o),delete i.backgroundColor}return Ye.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},Sce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;ya()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),xf||this.renderReact15())}componentDidUpdate(){ya()&&(xf||this.renderReact15())}componentWillUnmount(){!ya()||!this.node||(xf||Zh.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ya())return;const{children:e}=this.props;this.node&&Zh.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ya()||!xf)return null;const{children:e}=this.props;return this.node?Zh.createPortal(e,this.node):null}render(){return xf?this.renderReact16():null}},Ece=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!i&&s+1===r.length?s=0:i&&s===0?s=r.length-1:s+=i?-1:1,r[s].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Dce=class extends Ye.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
181
|
+
@keyframes joyride-beacon-inner {
|
|
182
|
+
20% {
|
|
183
|
+
opacity: 0.9;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
90% {
|
|
187
|
+
opacity: 0.7;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@keyframes joyride-beacon-outer {
|
|
192
|
+
0% {
|
|
193
|
+
transform: scale(1);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
45% {
|
|
197
|
+
opacity: 0.7;
|
|
198
|
+
transform: scale(0.75);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
100% {
|
|
202
|
+
opacity: 0.9;
|
|
203
|
+
transform: scale(1);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ht.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ht.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:s,size:o,step:u,styles:l}=this.props,d=qs(i.open),h={"aria-label":d,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=Ye.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:u,...h})}else m=Ye.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},Ye.createElement("span",{style:l.beaconInner}),Ye.createElement("span",{style:l.beaconOuter}));return m}};function Ace({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return A.createElement("button",{style:s,type:"button",...t},A.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"},A.createElement("g",null,A.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=Ace;function Pce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:o,step:u,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:w}=u,D={};return D.primary=Ye.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...s}),b&&!i&&(D.skip=Ye.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(D.back=Ye.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),D.close=!m&&Ye.createElement(Tce,{"data-test-id":"button-close",styles:$.buttonClose,...n}),Ye.createElement("div",{key:"JoyrideTooltip","aria-label":qs(w??d),className:"react-joyride__tooltip",style:$.tooltip,...l},Ye.createElement("div",{style:$.tooltipContainer},w&&Ye.createElement("h1",{"aria-label":qs(w),style:$.tooltipTitle},w),Ye.createElement("div",{style:$.tooltipContent},d)),!g&&Ye.createElement("div",{style:$.tooltipFooter},Ye.createElement("div",{style:$.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var _ce=Pce,Mce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:o,close:u,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=qs(o),b=qs(u),$=qs(l),w=qs(d),D=qs(m);let S=u,C=b;if(e){if(S=d,C=w,s.showProgress&&!n){const T=qs(h,{step:t+1,steps:i});S=D4(h,t+1,i),C=T}n&&(S=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":D,children:m,"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:s}=this.props,{beaconComponent:o,tooltipComponent:u,...l}=s;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=u;d=Ye.createElement(m,{...h})}else d=Ye.createElement(_ce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},Rce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Mt.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||s.placement==="center")&&i===Mt.INIT&&o.update({action:r,lifecycle:Mt.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return Ye.createElement(Mce,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;_a({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:s,debug:o,helpers:u,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:w}=um(e,this.props),D=u.info(),S=i&&n!==tn.CLOSE&&(l>0||n===tn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),T=w("lifecycle",[Mt.TOOLTIP,Mt.INIT],Mt.INIT),O=$("action",[tn.NEXT,tn.PREV,tn.SKIP,tn.CLOSE]),M=s&&l===e.index;if(O&&(T||M)&&r({...D,index:e.index,lifecycle:Mt.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==tn.START&&d===Mt.INIT&&b.update({lifecycle:Mt.READY}),C){const k=Bo(g.target),N=!!k;N&&ice(k)?(w("status",Nt.READY,Nt.RUNNING)||w("lifecycle",Mt.INIT,Mt.READY))&&r({...D,step:g,type:Ui.STEP_BEFORE}):(console.warn(N?"Target not visible":"Target not mounted",g),r({...D,type:Ui.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===tn.PREV?-1:1)}))}w("lifecycle",Mt.INIT,Mt.READY)&&b.update({lifecycle:Z2(g)||S?Mt.TOOLTIP:Mt.BEACON}),$("index")&&_a({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Mt.BEACON)&&r({...D,step:g,type:Ui.BEACON}),$("lifecycle",Mt.TOOLTIP)&&(r({...D,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new Ece(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Mt.TOOLTIP,Mt.INIT],Mt.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Z2(t)||e===Mt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:o}=this.props,u=Bo(o.target);return!l9(o)||!ht.domElement(u)?null:Ye.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ye.createElement(J$,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},Ye.createElement(Dce,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:o,styles:o.styles})))}},f9=class extends Ye.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:u}=this.props;ht.function(u)&&u(o)}),mt(this,"handleKeyboard",o=>{const{index:u,lifecycle:l}=this.state,{steps:d}=this.props,h=d[u];l===Mt.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:u}=this.props;Sl(this.props,u[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=$ce({...e,controlled:r&&ht.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;_a({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ya())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;Q2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ya())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:o,run:u,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:w,update:D}=this.store,{changed:S}=um(e,this.props),{changed:C,changedFrom:T}=um(t,this.state),O=Sl(this.props,d[i]),M=!qr(m,d),k=ht.number(l)&&S("stepIndex"),N=Bo(O.target);if(M&&(Q2(d,o)?b(d):console.warn("Steps are not valid",d)),S("run")&&(u?$(l):w()),k){let oe=ht.number(h)&&h<l?tn.NEXT:tn.PREV;n===tn.STOP&&(oe=tn.START),[Nt.FINISHED,Nt.SKIPPED].includes(s)||D({action:n===tn.CLOSE?tn.CLOSE:oe,index:l,lifecycle:Mt.INIT})}!r&&s===Nt.RUNNING&&i===0&&!N&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:O}));const F={...this.state,index:i,step:O};if(C("action",[tn.NEXT,tn.PREV,tn.SKIP,tn.CLOSE])&&C("status",Nt.PAUSED)){const oe=Sl(this.props,d[t.index]);this.callback({...F,index:t.index,lifecycle:Mt.COMPLETE,step:oe,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=Sl(this.props,d[t.index]);r||this.callback({...F,index:t.index,lifecycle:Mt.COMPLETE,step:oe,type:Ui.STEP_AFTER}),this.callback({...F,type:Ui.TOUR_END,step:oe,index:t.index}),g()}else T("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...F,type:Ui.TOUR_START}):(C("status")||C("action",tn.RESET))&&this.callback({...F,type:Ui.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:s=!1,scrollDuration:o,scrollOffset:u=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Sl(this.props,d[t]),m=Bo(h.target),g=dce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Xd(m,s),$=bd(m,s);let w=Math.floor(oce(m,u,s))||0;_a({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===Mt.BEACON&&D){const{offsets:C,placement:T}=D;!["bottom"].includes(T)&&!b&&(w=Math.floor(C.popper.top-u))}else if(n===Mt.TOOLTIP&&S){const{flipped:C,offsets:T,placement:O}=S;["top","right","left"].includes(O)&&!C&&!b?w=Math.floor(T.popper.top-u):w-=h.spotlightPadding}w=w>=0?w:0,r===Nt.RUNNING&&ace(w,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!ya())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:o=!1,steps:u}=this.props,l=n===Nt.RUNNING,d={};if(l&&u[e]){const h=Sl(this.props,u[e]);d.step=Ye.createElement(Rce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),d.overlay=Ye.createElement(Sce,{id:"react-joyride-portal"},Ye.createElement(Cce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ye.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(f9,"defaultProps",mce);var Fce=f9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=HR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=O5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Pd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=hq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=ir;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=KH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=KW;exports.$293f70390ea03370$export$497855f14858aa34=IH;exports.$32489daedd52963e$export$1315d136e6f7581=GH;exports.$337b884510726a0d$export$c6fdb837b070b4ff=yH;exports.$36a0ac60f04457c5$export$136073280381448e=RW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=FF;exports.$40df3f8667284809$export$d55e7ee900f34e93=JH;exports.$46a4342aab3d8076$export$87e0539f600c24e5=PW;exports.$47b897dc8cdb026b$export$8d15029008292ae=WW;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=zW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=zH;exports.$64244302c3013299$export$dd0bbc9b26defe37=Jq;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=dW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=XH;exports.$93c38a5e28be6249$export$e50a61c1de9f574=yG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=TW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=QH;exports.$a916eb452884faea$export$b7a616150fdb9f44=fW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=sG;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=fG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=f_;exports.$bcca50147b47f54d$export$56b2c08e277f365=qW;exports.$c132121280ec012d$export$50eacbbf140a3141=TH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=_H;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=NH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=_W;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=bG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=mH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Aq;exports.$fae977aafc393c5c$export$6b862160d295c8e=Dq;exports.ACTIONS=tn;exports.AdvancedImage=HZ;exports.Cloudinary=KX;exports.Controller=DU;exports.EVENTS=Ui;exports.FormProvider=SU;exports.Je=aK;exports.LazyMotion=Die;exports.Lottie=bie;exports.M=vs;exports.R=Vu;exports.ReorderGroup=iie;exports.ReorderItem=uie;exports.STATUS=Nt;exports.Xe=uK;exports._=xU;exports.autoUpdate=GK;exports.components_default=Fce;exports.ct=cK;exports.dayjs=wG;exports.dayjs_minExports=kF;exports.domAnimation=eue;exports.ee=BF;exports.flip=tU;exports.isNumber=AG;exports.lazyload=NZ;exports.localizedFormat=die;exports.lodashExports=zP;exports.m=bse;exports.nt=R4;exports.o=mie;exports.offset=QK;exports.placeholder=zZ;exports.prismExports=CQ;exports.q=m3;exports.shift=eU;exports.some=xQ;exports.st=CP;exports.useController=t5;exports.useFieldArray=_U;exports.useFloating=pU;exports.useFloating$1=VP;exports.useFocus=mU;exports.useForm=VU;exports.useFormContext=Cd;exports.useHover=fU;exports.useInteractions=gU;exports.useRole=yU;exports.useWatch=e5;
|