@fluidattacks/design 3.26.6 → 3.27.1-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/components/@core/index.js +1 -1
- package/dist/components/@core/types.d.ts +1 -0
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/card-container/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/grid-layout/index.stories.d.ts +1 -10
- package/dist/components/grid-layout/styles.d.ts +1 -8
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input-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-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/fields/text-input/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/notification-sign/index.stories.d.ts +3 -2
- package/dist/components/notification-sign/styles.d.ts +270 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-aNnlLvUi.js → components-D3E3WbDk.js} +17 -7
- package/dist/{components-BWE4Q-KL.mjs → components-DJdC-dCJ.mjs} +111 -100
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-n0YlGhIk.mjs → vendor-C4aloG3g.mjs} +11034 -11014
- package/dist/vendor-p_HN3CLJ.js +223 -0
- package/package.json +8 -8
- package/dist/vendor-aX2fiAjI.js +0 -223
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');var Ij=Object.defineProperty;var Lj=(e,t,n)=>t in e?Ij(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gf=(e,t,n)=>Lj(e,typeof t!="symbol"?t+"":t,n);const A=require("react"),la=require("react/jsx-runtime"),Wa=require("react-dom");function FP(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=FP(A),np=FP(Wa);var Fr=function(){return Fr=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},Fr.apply(this,arguments)};function Iu(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 Vj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bj=/^((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|fetchpriority|fetchPriority|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)-.*))$/,Nj=Vj(function(e){return Bj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn="-ms-",zf="-moz-",ln="-webkit-",RP="comm",bm="rule",z4="decl",jj="@import",kP="@keyframes",Kj="@layer",OP=Math.abs,q4=String.fromCharCode,Q1=Object.assign;function Uj(e,t){return mr(e,0)^45?(((t<<2^mr(e,0))<<2^mr(e,1))<<2^mr(e,2))<<2^mr(e,3):0}function IP(e){return e.trim()}function Na(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function rp(e,t,n){return e.indexOf(t,n)}function mr(e,t){return e.charCodeAt(t)|0}function rc(e,t,n){return e.slice(t,n)}function Ys(e){return e.length}function LP(e){return e.length}function Mf(e,t){return t.push(e),e}function zj(e,t){return e.map(t).join("")}function sC(e,t){return e.filter(function(n){return!Na(n,t)})}var $m=1,ic=1,VP=0,ts=0,rr=0,xc="";function xm(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:$m,column:ic,length:a,return:"",siblings:o}}function yo(e,t){return Q1(xm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Al(e){for(;e.root;)e=yo(e.root,{children:[e]});Mf(e,e.siblings)}function qj(){return rr}function Wj(){return rr=ts>0?mr(xc,--ts):0,ic--,rr===10&&(ic=1,$m--),rr}function Cs(){return rr=ts<VP?mr(xc,ts++):0,ic++,rr===10&&(ic=1,$m++),rr}function Pu(){return mr(xc,ts)}function ip(){return ts}function wm(e,t){return rc(xc,e,t)}function eb(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 $m=ic=1,VP=Ys(xc=e),ts=0,[]}function Gj(e){return xc="",e}function dv(e){return IP(wm(ts-1,tb(e===91?e+2:e===40?e+1:e)))}function Yj(e){for(;(rr=Pu())&&rr<33;)Cs();return eb(e)>2||eb(rr)>3?"":" "}function Zj(e,t){for(;--t&&Cs()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return wm(e,ip()+(t<6&&Pu()==32&&Cs()==32))}function tb(e){for(;Cs();)switch(rr){case e:return ts;case 34:case 39:e!==34&&e!==39&&tb(rr);break;case 40:e===41&&tb(e);break;case 92:Cs();break}return ts}function Xj(e,t){for(;Cs()&&e+rr!==57;)if(e+rr===84&&Pu()===47)break;return"/*"+wm(t,ts-1)+"*"+q4(e===47?e:Cs())}function Jj(e){for(;!eb(Pu());)Cs();return wm(e,ts)}function Qj(e){return Gj(sp("",null,null,null,[""],e=Hj(e),0,[0],e))}function sp(e,t,n,r,i,s,a,o,l){for(var d=0,h=0,m=a,g=0,b=0,w=0,$=1,D=1,C=1,E=0,S="",k=i,P=s,F=r,U=S;D;)switch(w=E,E=Cs()){case 40:if(w!=108&&mr(U,m-1)==58){rp(U+=Vt(dv(E),"&","&\f"),"&\f",OP(d?o[d-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:U+=dv(E);break;case 9:case 10:case 13:case 32:U+=Yj(w);break;case 92:U+=Zj(ip()-1,7);continue;case 47:switch(Pu()){case 42:case 47:Mf(eK(Xj(Cs(),ip()),t,n,l),l);break;default:U+="/"}break;case 123*$:o[d++]=Ys(U)*C;case 125*$:case 59:case 0:switch(E){case 0:case 125:D=0;case 59+h:C==-1&&(U=Vt(U,/\f/g,"")),b>0&&Ys(U)-m&&Mf(b>32?oC(U+";",r,n,m-1,l):oC(Vt(U," ","")+";",r,n,m-2,l),l);break;case 59:U+=";";default:if(Mf(F=aC(U,t,n,d,h,i,o,S,k=[],P=[],m,s),s),E===123)if(h===0)sp(U,t,F,F,k,s,m,o,P);else switch(g===99&&mr(U,3)===110?100:g){case 100:case 108:case 109:case 115:sp(e,F,F,r&&Mf(aC(e,F,F,0,0,i,o,S,i,k=[],m,P),P),i,P,m,o,r?k:P);break;default:sp(U,F,F,F,[""],P,0,o,P)}}d=h=b=0,$=C=1,S=U="",m=a;break;case 58:m=1+Ys(U),b=w;default:if($<1){if(E==123)--$;else if(E==125&&$++==0&&Wj()==125)continue}switch(U+=q4(E),E*$){case 38:C=h>0?1:(U+="\f",-1);break;case 44:o[d++]=(Ys(U)-1)*C,C=1;break;case 64:Pu()===45&&(U+=dv(Cs())),g=Pu(),h=m=Ys(S=U+=Jj(ip())),E++;break;case 45:w===45&&Ys(U)==2&&($=0)}}return s}function aC(e,t,n,r,i,s,a,o,l,d,h,m){for(var g=i-1,b=i===0?s:[""],w=LP(b),$=0,D=0,C=0;$<r;++$)for(var E=0,S=rc(e,g+1,g=OP(D=a[$])),k=e;E<w;++E)(k=IP(D>0?b[E]+" "+S:Vt(S,/&\f/g,b[E])))&&(l[C++]=k);return xm(e,t,n,i===0?bm:o,l,d,h,m)}function eK(e,t,n,r){return xm(e,t,n,RP,q4(qj()),rc(e,2,-2),0,r)}function oC(e,t,n,r,i){return xm(e,t,n,z4,rc(e,0,r),rc(e,r+1,-1),r,i)}function BP(e,t,n){switch(Uj(e,t)){case 5103:return ln+"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 ln+e+e;case 4789:return zf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+zf+e+wn+e+e;case 5936:switch(mr(e,t+11)){case 114:return ln+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ln+e+wn+e+e;case 6165:return ln+e+wn+"flex-"+e+e;case 5187:return ln+e+Vt(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return ln+e+wn+"flex-item-"+Vt(e,/flex-|-self/g,"")+(Na(e,/flex-|baseline/)?"":wn+"grid-row-"+Vt(e,/flex-|-self/g,""))+e;case 4675:return ln+e+wn+"flex-line-pack"+Vt(e,/align-content|flex-|-self/g,"")+e;case 5548:return ln+e+wn+Vt(e,"shrink","negative")+e;case 5292:return ln+e+wn+Vt(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+Vt(e,"-grow","")+ln+e+wn+Vt(e,"grow","positive")+e;case 4554:return ln+Vt(e,/([^-])(transform)/g,"$1"+ln+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,ln+"$1"),/(image-set)/,ln+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,ln+"box-pack:$3"+wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ln+e+e;case 4200:if(!Na(e,/flex-|baseline/))return wn+"grid-column-align"+rc(e,t)+e;break;case 2592:case 3360:return wn+Vt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Na(r.props,/grid-\w+-end/)})?~rp(e+(n=n[t].value),"span",0)?e:wn+Vt(e,"-start","")+e+wn+"grid-row-span:"+(~rp(n,"span",0)?Na(n,/\d+/):+Na(n,/\d+/)-+Na(e,/\d+/))+";":wn+Vt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Na(r.props,/grid-\w+-start/)})?e:wn+Vt(Vt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,ln+"$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(Ys(e)-1-t>6)switch(mr(e,t+1)){case 109:if(mr(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+zf+(mr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rp(e,"stretch",0)?BP(Vt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Vt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,o,l,d){return wn+i+":"+s+d+(a?wn+i+"-span:"+(o?l:+l-+s)+d:"")+e});case 4949:if(mr(e,t+6)===121)return Vt(e,":",":"+ln)+e;break;case 6444:switch(mr(e,mr(e,14)===45?18:11)){case 120:return Vt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ln+(mr(e,14)===45?"inline-":"")+"box$3$1"+ln+"$2$3$1"+wn+"$2box$3")+e;case 100:return Vt(e,":",":"+wn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Vt(e,"scroll-","scroll-snap-")+e}return e}function Pp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function tK(e,t,n,r){switch(e.type){case Kj:if(e.children.length)break;case jj:case z4:return e.return=e.return||e.value;case RP:return"";case kP:return e.return=e.value+"{"+Pp(e.children,r)+"}";case bm:if(!Ys(e.value=e.props.join(",")))return""}return Ys(n=Pp(e.children,r))?e.return=e.value+"{"+n+"}":""}function nK(e){var t=LP(e);return function(n,r,i,s){for(var a="",o=0;o<t;o++)a+=e[o](n,r,i,s)||"";return a}}function rK(e){return function(t){t.root||(t=t.return)&&e(t)}}function iK(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z4:e.return=BP(e.value,e.length,n);return;case kP:return Pp([yo(e,{value:Vt(e.value,"@","@"+ln)})],r);case bm:if(e.length)return zj(n=e.props,function(i){switch(Na(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Al(yo(e,{props:[Vt(i,/:(read-\w+)/,":"+zf+"$1")]})),Al(yo(e,{props:[i]})),Q1(e,{props:sC(n,r)});break;case"::placeholder":Al(yo(e,{props:[Vt(i,/:(plac\w+)/,":"+ln+"input-$1")]})),Al(yo(e,{props:[Vt(i,/:(plac\w+)/,":"+zf+"$1")]})),Al(yo(e,{props:[Vt(i,/:(plac\w+)/,wn+"input-$1")]})),Al(yo(e,{props:[i]})),Q1(e,{props:sC(n,r)});break}return""})}}var sK={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},Lu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",W4=typeof window<"u"&&"HTMLElement"in window,aK=!!(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"),uC=/invalid hook call/i,Mh=new Set,oK=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(a){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];uC.test(a)?(s=!1,Mh.delete(r)):i.apply(void 0,Iu([a],o,!1))},A.useRef(),s&&!Mh.has(r)&&(console.warn(r),Mh.add(r))}catch(a){uC.test(a.message)&&Mh.delete(r)}finally{console.error=i}}},Cm=Object.freeze([]),sc=Object.freeze({});function uK(e,t,n){return n===void 0&&(n=sc),e.theme!==n.theme&&e.theme||t||n.theme}var nb=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"]),lK=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,cK=/(^-|-$)/g;function lC(e){return e.replace(lK,"-").replace(cK,"")}var fK=/(a)(d)/gi,cC=function(e){return String.fromCharCode(e+(e>25?39:97))};function rb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=cC(t%52)+n;return(cC(t%52)+n).replace(fK,"$1-$2")}var hv,mu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},NP=function(e){return mu(5381,e)};function jP(e){return rb(NP(e)>>>0)}function KP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function pv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var UP=typeof Symbol=="function"&&Symbol.for,zP=UP?Symbol.for("react.memo"):60115,dK=UP?Symbol.for("react.forward_ref"):60112,hK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},qP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mK=((hv={})[dK]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},hv[zP]=qP,hv);function fC(e){return("type"in(t=e)&&t.type.$$typeof)===zP?qP:"$$typeof"in e?mK[e.$$typeof]:hK;var t}var gK=Object.defineProperty,vK=Object.getOwnPropertyNames,dC=Object.getOwnPropertySymbols,yK=Object.getOwnPropertyDescriptor,bK=Object.getPrototypeOf,hC=Object.prototype;function WP(e,t,n){if(typeof t!="string"){if(hC){var r=bK(t);r&&r!==hC&&WP(e,r,n)}var i=vK(t);dC&&(i=i.concat(dC(t)));for(var s=fC(e),a=fC(t),o=0;o<i.length;++o){var l=i[o];if(!(l in pK||n&&n[l]||a&&l in a||s&&l in s)){var d=yK(t,l);try{gK(e,l,d)}catch{}}}}return e}function Vu(e){return typeof e=="function"}function H4(e){return typeof e=="object"&&"styledComponentId"in e}function yu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ib(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function ac(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function sb(e,t,n){if(n===void 0&&(n=!1),!n&&!ac(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=sb(e[r],t[r]);else if(ac(t))for(var r in t)e[r]=sb(e[r],t[r]);return e}function G4(e,t){Object.defineProperty(e,"toString",{value:t})}var $K=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 xK(){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(a){n=n.replace(/%[a-z]/,a)}),n}function ia(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(xK.apply(void 0,Iu([$K[e]],t,!1)).trim())}var wK=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 ia(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=i;a<s;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(o,n[a])&&(this.groupSizes[t]++,o++)},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,a=i;a<s;a++)n+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
|
|
45
|
+
`);return n},e}(),ap=new Map,_p=new Map,op=1,Fh=function(e){if(ap.has(e))return ap.get(e);for(;_p.has(op);)op++;var t=op++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw ia(16,"".concat(t));return ap.set(e,t),_p.set(t,e),t},CK=function(e,t){op=t+1,ap.set(e,t),_p.set(t,e)},EK="style[".concat(Lu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),SK=new RegExp("^".concat(Lu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),DK=function(e,t,n){for(var r,i=n.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&e.registerName(t,r)},AK=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(`/*!sc*/
|
|
46
|
+
`),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(SK);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(CK(h,d),DK(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(o)}}};function TK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var HP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(o){var l=Array.from(o.querySelectorAll("style[".concat(Lu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Lu,"active"),r.setAttribute("data-styled-version","6.1.1");var a=TK();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},PK=function(){function e(t){this.element=HP(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 a=r[i];if(a.ownerNode===n)return a}throw ia(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}(),_K=function(){function e(t){this.element=HP(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}(),MK=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}(),pC=W4,FK={isServer:!W4,useCSSOMInjection:!aK},GP=function(){function e(t,n,r){t===void 0&&(t=sc),n===void 0&&(n={});var i=this;this.options=Fr(Fr({},FK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&W4&&pC&&(pC=!1,function(s){for(var a=document.querySelectorAll(EK),o=0,l=a.length;o<l;o++){var d=a[o];d&&d.getAttribute(Lu)!=="active"&&(AK(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),G4(this,function(){return function(s){for(var a=s.getTag(),o=a.length,l="",d=function(m){var g=function(C){return _p.get(C)}(m);if(g===void 0)return"continue";var b=s.names.get(g),w=a.getGroup(m);if(b===void 0||w.length===0)return"continue";var $="".concat(Lu,".g").concat(m,'[id="').concat(g,'"]'),D="";b!==void 0&&b.forEach(function(C){C.length>0&&(D+="".concat(C,","))}),l+="".concat(w).concat($,'{content:"').concat(D,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},h=0;h<o;h++)d(h);return l}(i)})}return e.registerId=function(t){return Fh(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Fr(Fr({},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 MK(i):r?new PK(i):new _K(i)}(this.options),new wK(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(Fh(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(Fh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Fh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),RK=/&/g,kK=/^\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 OK(e){var t,n,r,i=sc,s=i.options,a=s===void 0?sc:s,o=i.plugins,l=o===void 0?Cm:o,d=function(g,b,w){return w===n||w.startsWith(n)&&w.endsWith(n)&&w.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===bm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(RK,n).replace(r,d))}),a.prefix&&h.push(iK),h.push(tK);var m=function(g,b,w,$){b===void 0&&(b=""),w===void 0&&(w=""),$===void 0&&($="&"),t=$,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var D=g.replace(kK,""),C=Qj(w||b?"".concat(w," ").concat(b," { ").concat(D," }"):D);a.namespace&&(C=YP(C,a.namespace));var E=[];return Pp(C,nK(h.concat(rK(function(S){return E.push(S)})))),E};return m.hash=l.length?l.reduce(function(g,b){return b.name||ia(15),mu(g,b.name)},5381).toString():"",m}var IK=new GP,ab=OK(),ZP=A.createContext({shouldForwardProp:void 0,styleSheet:IK,stylis:ab});ZP.Consumer;A.createContext(void 0);function mC(){return A.useContext(ZP)}var ob=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=ab);var a=r.name+s.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,G4(this,function(){throw ia(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ab),this.name+t.hash},e}(),LK=function(e){return e>="A"&&e<="Z"};function gC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;LK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var XP=function(e){return e==null||e===!1||e===""},JP=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!XP(s)&&(Array.isArray(s)&&s.isCss||Vu(s)?r.push("".concat(gC(i),":"),s,";"):ac(s)?r.push.apply(r,Iu(Iu(["".concat(i," {")],JP(s),!1),["}"],!1)):r.push("".concat(gC(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in sK||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _u(e,t,n,r){if(XP(e))return[];if(H4(e))return[".".concat(e.styledComponentId)];if(Vu(e)){if(!Vu(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 ob||ac(i)||i===null||console.error("".concat(KP(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.")),_u(i,t,n,r)}var s;return e instanceof ob?n?(e.inject(n,r),[e.getName(r)]):[e]:ac(e)?JP(e):Array.isArray(e)?Array.prototype.concat.apply(Cm,e.map(function(a){return _u(a,t,n,r)})):[e.toString()]}function VK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vu(n)&&!H4(n))return!1}return!0}var BK=NP("6.1.1"),NK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&VK(t),this.componentId=n,this.baseHash=mu(BK,n),this.baseStyle=r,GP.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=yu(i,this.staticRulesId);else{var s=ib(_u(this.rules,t,n,r)),a=rb(mu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,a)){var o=r(s,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,o)}i=yu(i,a),this.staticRulesId=a}else{for(var l=mu(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=mu(l,m));else if(m){var g=ib(_u(m,t,n,r));l=mu(l,g+h),d+=g}}if(d){var b=rb(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=yu(i,b)}}return i},e}(),ed=A.createContext(void 0);ed.Consumer;function jK(){var e=A.useContext(ed);if(!e)throw ia(18);return e}function KK(e){var t=A.useContext(ed),n=A.useMemo(function(){return function(r,i){if(!r)throw ia(14);if(Vu(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw ia(7);return s}if(Array.isArray(r)||typeof r!="object")throw ia(8);return i?Fr(Fr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?A.createElement(ed.Provider,{value:n},e.children):null}var mv={},vC=new Set;function UK(e,t,n){var r=H4(e),i=e,s=!pv(e),a=t.attrs,o=a===void 0?Cm:a,l=t.componentId,d=l===void 0?function(k,P){var F=typeof k!="string"?"sc":lC(k);mv[F]=(mv[F]||0)+1;var U="".concat(F,"-").concat(jP("6.1.1"+F+mv[F]));return P?"".concat(P,"-").concat(U):U}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(k){return pv(k)?"styled.".concat(k):"Styled(".concat(KP(k),")")}(e):h,g=t.displayName&&t.componentId?"".concat(lC(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,w=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;w=function(k,P){return $(k,P)&&D(k,P)}}else w=$}var C=new NK(n,g,r?i.componentStyle:void 0);function E(k,P){return function(F,U,ie){var de=F.attrs,ae=F.componentStyle,I=F.defaultProps,xe=F.foldedComponentIds,Ce=F.styledComponentId,z=F.target,ee=A.useContext(ed),K=mC(),O=F.shouldForwardProp||K.shouldForwardProp;process.env.NODE_ENV!=="production"&&A.useDebugValue(Ce);var V=function(Pe,Fe,We){for(var Xe,Be=Fr(Fr({},Fe),{className:void 0,theme:We}),He=0;He<Pe.length;He+=1){var Me=Vu(Xe=Pe[He])?Xe(Be):Xe;for(var Le in Me)Be[Le]=Le==="className"?yu(Be[Le],Me[Le]):Le==="style"?Fr(Fr({},Be[Le]),Me[Le]):Me[Le]}return Fe.className&&(Be.className=yu(Be.className,Fe.className)),Be}(de,U,uK(U,ee,I)||sc),te=V.as||z,j={};for(var le in V)V[le]===void 0||le[0]==="$"||le==="as"||le==="theme"||(le==="forwardedAs"?j.as=V.forwardedAs:O&&!O(le,te)||(j[le]=V[le],O||process.env.NODE_ENV!=="development"||Nj(le)||vC.has(le)||!nb.has(te)||(vC.add(le),console.warn('styled-components: it looks like an unknown prop "'.concat(le,'" 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 ue=function(Pe,Fe){var We=mC(),Xe=Pe.generateAndInjectStyles(Fe,We.styleSheet,We.stylis);return process.env.NODE_ENV!=="production"&&A.useDebugValue(Xe),Xe}(ae,V);process.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(ue);var De=yu(xe,Ce);return ue&&(De+=" "+ue),V.className&&(De+=" "+V.className),j[pv(te)&&!nb.has(te)?"class":"className"]=De,j.ref=ie,A.createElement(te,j)}(S,k,P)}E.displayName=m;var S=A.forwardRef(E);return S.attrs=b,S.componentStyle=C,S.displayName=m,S.shouldForwardProp=w,S.foldedComponentIds=r?yu(i.foldedComponentIds,i.styledComponentId):"",S.styledComponentId=g,S.target=r?i.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?function(P){for(var F=[],U=1;U<arguments.length;U++)F[U-1]=arguments[U];for(var ie=0,de=F;ie<de.length;ie++)sb(P,de[ie],!0);return P}({},i.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(oK(m,g),S.warnTooManyClasses=function(k,P){var F={},U=!1;return function(ie){if(!U&&(F[ie]=!0,Object.keys(F).length>=200)){var de=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(de,`.
|
|
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 />`),U=!0,F={}}}}(m,g)),G4(S,function(){return".".concat(S.styledComponentId)}),s&&WP(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function yC(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 bC=function(e){return Object.assign(e,{isCss:!0})};function Y4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vu(e)||ac(e)){var r=e;return bC(_u(yC(Cm,Iu([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?_u(i):bC(_u(yC(i,t)))}function ub(e,t,n){if(n===void 0&&(n=sc),!t)throw ia(1,t);var r=function(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return e(t,n,Y4.apply(void 0,Iu([i],s,!1)))};return r.attrs=function(i){return ub(e,t,Fr(Fr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ub(e,t,Fr(Fr({},n),i))},r}var QP=function(e){return ub(UK,e)},e5=QP;nb.forEach(function(e){e5[e]=QP(e)});function zK(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=ib(Y4.apply(void 0,Iu([e],t,!1))),i=jP(r);return new ob(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 Rh="__sc-".concat(Lu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Rh]||(window[Rh]=0),window[Rh]===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[Rh]+=1);function Em(){return typeof window<"u"}function wc(e){return t5(e)?(e.nodeName||"").toLowerCase():"#document"}function ci(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fa(e){var t;return(t=(t5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function t5(e){return Em()?e instanceof Node||e instanceof ci(e).Node:!1}function ir(e){return Em()?e instanceof Element||e instanceof ci(e).Element:!1}function ns(e){return Em()?e instanceof HTMLElement||e instanceof ci(e).HTMLElement:!1}function lb(e){return!Em()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ci(e).ShadowRoot}const qK=new Set(["inline","contents"]);function Sd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ss(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qK.has(i)}const WK=new Set(["table","td","th"]);function HK(e){return WK.has(wc(e))}const GK=[":popover-open",":modal"];function Sm(e){return GK.some(t=>{try{return e.matches(t)}catch{return!1}})}const YK=["transform","translate","scale","rotate","perspective"],ZK=["transform","translate","scale","rotate","perspective","filter"],XK=["paint","layout","strict","content"];function Z4(e){const t=X4(),n=ir(e)?Ss(e):e;return YK.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)||ZK.some(r=>(n.willChange||"").includes(r))||XK.some(r=>(n.contain||"").includes(r))}function JK(e){let t=Mo(e);for(;ns(t)&&!oc(t);){if(Z4(t))return t;if(Sm(t))return null;t=Mo(t)}return null}function X4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QK=new Set(["html","body","#document"]);function oc(e){return QK.has(wc(e))}function Ss(e){return ci(e).getComputedStyle(e)}function Dm(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mo(e){if(wc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lb(e)&&e.host||fa(e);return lb(t)?t.host:t}function n5(e){const t=Mo(e);return oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:ns(t)&&Sd(t)?t:n5(t)}function td(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=n5(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=ci(i);if(s){const o=cb(a);return t.concat(a,a.visualViewport||[],Sd(i)?i:[],o&&n?td(o):[])}return t.concat(i,td(i,[],n))}function cb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Mp=Math.min,Mu=Math.max,Fp=Math.round,kh=Math.floor,sa=e=>({x:e,y:e}),eU={left:"right",right:"left",bottom:"top",top:"bottom"},tU={start:"end",end:"start"};function $C(e,t,n){return Mu(e,Mp(t,n))}function Am(e,t){return typeof e=="function"?e(t):e}function Bu(e){return e.split("-")[0]}function Tm(e){return e.split("-")[1]}function r5(e){return e==="x"?"y":"x"}function i5(e){return e==="y"?"height":"width"}const nU=new Set(["top","bottom"]);function So(e){return nU.has(Bu(e))?"y":"x"}function s5(e){return r5(So(e))}function rU(e,t,n){n===void 0&&(n=!1);const r=Tm(e),i=s5(e),s=i5(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Rp(a)),[a,Rp(a)]}function iU(e){const t=Rp(e);return[fb(e),t,fb(t)]}function fb(e){return e.replace(/start|end/g,t=>tU[t])}const xC=["left","right"],wC=["right","left"],sU=["top","bottom"],aU=["bottom","top"];function oU(e,t,n){switch(e){case"top":case"bottom":return n?t?wC:xC:t?xC:wC;case"left":case"right":return t?sU:aU;default:return[]}}function uU(e,t,n,r){const i=Tm(e);let s=oU(Bu(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(fb)))),s}function Rp(e){return e.replace(/left|right|bottom|top/g,t=>eU[t])}function lU(e){return{top:0,right:0,bottom:0,left:0,...e}}function cU(e){return typeof e!="number"?lU(e):{top:e,right:e,bottom:e,left:e}}function kp(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 fU(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function dU(){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 hU(){return/apple/i.test(navigator.vendor)}function pU(){return fU().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function mU(){return dU().includes("jsdom/")}const CC="data-floating-ui-focusable",gU="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function EC(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 db(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&lb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function vU(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ff(e){return(e==null?void 0:e.ownerDocument)||document}function yU(e){return ns(e)&&e.matches(gU)}function bU(e){if(!e||mU())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function $U(e){return e?e.hasAttribute(CC)?e:e.querySelector("["+CC+"]")||e:null}function hb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var xU=typeof document<"u",wU=function(){},uc=xU?A.useLayoutEffect:wU;const CU={...Ye};function Oh(e){const t=Ye.useRef(e);return uc(()=>{t.current=e}),t}const EU=CU.useInsertionEffect,SU=EU||(e=>e());function Rf(e){const t=Ye.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return SU(()=>{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)},[])}function SC(e,t,n){let{reference:r,floating:i}=e;const s=So(t),a=s5(t),o=i5(a),l=Bu(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[o]/2-i[o]/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(Tm(t)){case"start":b[a]-=g*(n&&d?-1:1);break;case"end":b[a]+=g*(n&&d?-1:1);break}return b}const DU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=SC(d,r,l),g=r,b={},w=0;for(let $=0;$<o.length;$++){const{name:D,fn:C}=o[$],{x:E,y:S,data:k,reset:P}=await C({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:a,elements:{reference:e,floating:t}});h=E??h,m=S??m,b={...b,[D]:{...b[D],...k}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=SC(d,g,l)),$=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function a5(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Am(t,e),w=cU(b),D=o[g?m==="floating"?"reference":"floating":m],C=kp(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(o.floating)),boundary:d,rootBoundary:h,strategy:l})),E=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),k=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},P=kp(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:S,strategy:l}):E);return{top:(C.top-P.top+w.top)/k.y,bottom:(P.bottom-C.bottom+w.bottom)/k.y,left:(C.left-P.left+w.left)/k.x,right:(P.right-C.right+w.right)/k.x}}const AU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:$=!0,...D}=Am(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Bu(i),E=So(o),S=Bu(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(d.floating)),P=g||(S||!$?[Rp(o)]:iU(o)),F=w!=="none";!g&&F&&P.push(...uU(o,$,w,k));const U=[o,...P],ie=await a5(t,D),de=[];let ae=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&de.push(ie[C]),m){const z=rU(i,a,k);de.push(ie[z[0]],ie[z[1]])}if(ae=[...ae,{placement:i,overflows:de}],!de.every(z=>z<=0)){var I,xe;const z=(((I=s.flip)==null?void 0:I.index)||0)+1,ee=U[z];if(ee&&(!(m==="alignment"?E!==So(ee):!1)||ae.every(V=>So(V.placement)===E?V.overflows[0]>0:!0)))return{data:{index:z,overflows:ae},reset:{placement:ee}};let K=(xe=ae.filter(O=>O.overflows[0]<=0).sort((O,V)=>O.overflows[1]-V.overflows[1])[0])==null?void 0:xe.placement;if(!K)switch(b){case"bestFit":{var Ce;const O=(Ce=ae.filter(V=>{if(F){const te=So(V.placement);return te===E||te==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(te=>te>0).reduce((te,j)=>te+j,0)]).sort((V,te)=>V[1]-te[1])[0])==null?void 0:Ce[0];O&&(K=O);break}case"initialPlacement":K=o;break}if(i!==K)return{reset:{placement:K}}}return{}}}},TU=new Set(["left","top"]);async function PU(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Bu(n),o=Tm(n),l=So(n)==="y",d=TU.has(a)?-1:1,h=s&&l?-1:1,m=Am(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return o&&typeof w=="number"&&(b=o==="end"?w*-1:w),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const _U=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await PU(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},MU=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:a=!1,limiter:o={fn:D=>{let{x:C,y:E}=D;return{x:C,y:E}}},...l}=Am(e,t),d={x:n,y:r},h=await a5(t,l),m=So(Bu(i)),g=r5(m);let b=d[g],w=d[m];if(s){const D=g==="y"?"top":"left",C=g==="y"?"bottom":"right",E=b+h[D],S=b-h[C];b=$C(E,b,S)}if(a){const D=m==="y"?"top":"left",C=m==="y"?"bottom":"right",E=w+h[D],S=w-h[C];w=$C(E,w,S)}const $=o.fn({...t,[g]:b,[m]:w});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[g]:s,[m]:a}}}}}};function o5(e){const t=Ss(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ns(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=Fp(n)!==s||Fp(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function J4(e){return ir(e)?e:e.contextElement}function Hl(e){const t=J4(e);if(!ns(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=o5(t);let a=(s?Fp(n.width):n.width)/r,o=(s?Fp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const FU=sa(0);function u5(e){const t=ci(e);return!X4()||!t.visualViewport?FU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ci(e)?!1:t}function Nu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=J4(e);let a=sa(1);t&&(r?ir(r)&&(a=Hl(r)):a=Hl(e));const o=RU(s,n,r)?u5(s):sa(0);let l=(i.left+o.x)/a.x,d=(i.top+o.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(s){const g=ci(s),b=r&&ir(r)?ci(r):r;let w=g,$=cb(w);for(;$&&r&&b!==w;){const D=Hl($),C=$.getBoundingClientRect(),E=Ss($),S=C.left+($.clientLeft+parseFloat(E.paddingLeft))*D.x,k=C.top+($.clientTop+parseFloat(E.paddingTop))*D.y;l*=D.x,d*=D.y,h*=D.x,m*=D.y,l+=S,d+=k,w=ci($),$=cb(w)}}return kp({width:h,height:m,x:l,y:d})}function Q4(e,t){const n=Dm(e).scrollLeft;return t?t.left+n:Nu(fa(e)).left+n}function l5(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Q4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function kU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=fa(r),o=t?Sm(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},d=sa(1);const h=sa(0),m=ns(r);if((m||!m&&!s)&&((wc(r)!=="body"||Sd(a))&&(l=Dm(r)),ns(r))){const b=Nu(r);d=Hl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=a&&!m&&!s?l5(a,l,!0):sa(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 OU(e){return Array.from(e.getClientRects())}function IU(e){const t=fa(e),n=Dm(e),r=e.ownerDocument.body,i=Mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Q4(e);const o=-n.scrollTop;return Ss(r).direction==="rtl"&&(a+=Mu(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}function LU(e,t){const n=ci(e),r=fa(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const d=X4();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}const VU=new Set(["absolute","fixed"]);function BU(e,t){const n=Nu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ns(e)?Hl(e):sa(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:a,height:o,x:l,y:d}}function DC(e,t,n){let r;if(t==="viewport")r=LU(e,n);else if(t==="document")r=IU(fa(e));else if(ir(t))r=BU(t,n);else{const i=u5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return kp(r)}function c5(e,t){const n=Mo(e);return n===t||!ir(n)||oc(n)?!1:Ss(n).position==="fixed"||c5(n,t)}function NU(e,t){const n=t.get(e);if(n)return n;let r=td(e,[],!1).filter(o=>ir(o)&&wc(o)!=="body"),i=null;const s=Ss(e).position==="fixed";let a=s?Mo(e):e;for(;ir(a)&&!oc(a);){const o=Ss(a),l=Z4(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&VU.has(i.position)||Sd(a)&&!l&&c5(e,a))?r=r.filter(h=>h!==a):i=o,a=Mo(a)}return t.set(e,r),r}function jU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Sm(t)?[]:NU(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((d,h)=>{const m=DC(t,h,i);return d.top=Mu(m.top,d.top),d.right=Mp(m.right,d.right),d.bottom=Mp(m.bottom,d.bottom),d.left=Mu(m.left,d.left),d},DC(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function KU(e){const{width:t,height:n}=o5(e);return{width:t,height:n}}function UU(e,t,n){const r=ns(t),i=fa(t),s=n==="fixed",a=Nu(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=sa(0);function d(){l.x=Q4(i)}if(r||!r&&!s)if((wc(t)!=="body"||Sd(i))&&(o=Dm(t)),r){const b=Nu(t,!0,s,t);l.x=b.x+t.clientLeft,l.y=b.y+t.clientTop}else i&&d();s&&!r&&i&&d();const h=i&&!r&&!s?l5(i,o):sa(0),m=a.left+o.scrollLeft-l.x-h.x,g=a.top+o.scrollTop-l.y-h.y;return{x:m,y:g,width:a.width,height:a.height}}function gv(e){return Ss(e).position==="static"}function AC(e,t){if(!ns(e)||Ss(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fa(e)===n&&(n=n.ownerDocument.body),n}function f5(e,t){const n=ci(e);if(Sm(e))return n;if(!ns(e)){let i=Mo(e);for(;i&&!oc(i);){if(ir(i)&&!gv(i))return i;i=Mo(i)}return n}let r=AC(e,t);for(;r&&HK(r)&&gv(r);)r=AC(r,t);return r&&oc(r)&&gv(r)&&!Z4(r)?n:r||JK(e)||n}const zU=async function(e){const t=this.getOffsetParent||f5,n=this.getDimensions,r=await n(e.floating);return{reference:UU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function qU(e){return Ss(e).direction==="rtl"}const WU={convertOffsetParentRelativeRectToViewportRelativeRect:kU,getDocumentElement:fa,getClippingRect:jU,getOffsetParent:f5,getElementRects:zU,getClientRects:OU,getDimensions:KU,getScale:Hl,isElement:ir,isRTL:qU};function d5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function HU(e,t){let n=null,r;const i=fa(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(o||t(),!g||!b)return;const w=kh(m),$=kh(i.clientWidth-(h+g)),D=kh(i.clientHeight-(m+b)),C=kh(h),S={rootMargin:-w+"px "+-$+"px "+-D+"px "+-C+"px",threshold:Mu(0,Mp(1,l))||1};let k=!0;function P(F){const U=F[0].intersectionRatio;if(U!==l){if(!k)return a();U?a(!1,U):r=setTimeout(()=>{a(!1,1e-7)},1e3)}U===1&&!d5(d,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(P,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,S)}n.observe(e)}return a(!0),s}function GU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=J4(e),h=i||s?[...d?td(d):[],...td(t)]:[];h.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const m=d&&o?HU(d,n):null;let g=-1,b=null;a&&(b=new ResizeObserver(C=>{let[E]=C;E&&E.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var S;(S=b)==null||S.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let w,$=l?Nu(e):null;l&&D();function D(){const C=Nu(e);$&&!d5($,C)&&n(),$=C,w=requestAnimationFrame(D)}return n(),()=>{var C;h.forEach(E=>{i&&E.removeEventListener("scroll",n),s&&E.removeEventListener("resize",n)}),m==null||m(),(C=b)==null||C.disconnect(),b=null,l&&cancelAnimationFrame(w)}}const YU=_U,ZU=MU,XU=AU,JU=(e,t,n)=>{const r=new Map,i={platform:WU,...n},s={...i.platform,_c:r};return DU(e,t,{...i,platform:s})};var QU=typeof document<"u",ez=function(){},up=QU?A.useLayoutEffect:ez;function Op(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(!Op(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)&&!Op(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function h5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function TC(e,t){const n=h5(e);return Math.round(t*n)/n}function vv(e){const t=Ye.useRef(e);return up(()=>{t.current=e}),t}function p5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!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);Op(g,r)||b(r);const[w,$]=Ye.useState(null),[D,C]=Ye.useState(null),E=Ye.useCallback(V=>{V!==F.current&&(F.current=V,$(V))},[]),S=Ye.useCallback(V=>{V!==U.current&&(U.current=V,C(V))},[]),k=s||w,P=a||D,F=Ye.useRef(null),U=Ye.useRef(null),ie=Ye.useRef(h),de=l!=null,ae=vv(l),I=vv(i),xe=vv(d),Ce=Ye.useCallback(()=>{if(!F.current||!U.current)return;const V={placement:t,strategy:n,middleware:g};I.current&&(V.platform=I.current),JU(F.current,U.current,V).then(te=>{const j={...te,isPositioned:xe.current!==!1};z.current&&!Op(ie.current,j)&&(ie.current=j,np.flushSync(()=>{m(j)}))})},[g,t,n,I,xe]);up(()=>{d===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,m(V=>({...V,isPositioned:!1})))},[d]);const z=Ye.useRef(!1);up(()=>(z.current=!0,()=>{z.current=!1}),[]),up(()=>{if(k&&(F.current=k),P&&(U.current=P),k&&P){if(ae.current)return ae.current(k,P,Ce);Ce()}},[k,P,Ce,ae,de]);const ee=Ye.useMemo(()=>({reference:F,floating:U,setReference:E,setFloating:S}),[E,S]),K=Ye.useMemo(()=>({reference:k,floating:P}),[k,P]),O=Ye.useMemo(()=>{const V={position:n,left:0,top:0};if(!K.floating)return V;const te=TC(K.floating,h.x),j=TC(K.floating,h.y);return o?{...V,transform:"translate("+te+"px, "+j+"px)",...h5(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:j}},[n,o,K.floating,h.x,h.y]);return Ye.useMemo(()=>({...h,update:Ce,refs:ee,elements:K,floatingStyles:O}),[h,Ce,ee,K,O])}const tz=(e,t)=>({...YU(e),options:[e,t]}),nz=(e,t)=>({...ZU(e),options:[e,t]}),rz=(e,t)=>({...XU(e),options:[e,t]}),iz="data-floating-ui-focusable",PC="active",_C="selected",sz={...Ye};let MC=!1,az=0;const FC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+az++;function oz(){const[e,t]=Ye.useState(()=>MC?FC():void 0);return uc(()=>{e==null&&t(FC())},[]),Ye.useEffect(()=>{MC=!0},[]),e}const uz=sz.useId,m5=uz||oz;let pb;process.env.NODE_ENV!=="production"&&(pb=new Set);function lz(){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=pb)!=null&&e.has(i))){var s;(s=pb)==null||s.add(i),console.error(i)}}function cz(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const fz=Ye.createContext(null),dz=Ye.createContext(null),e3=()=>{var e;return((e=Ye.useContext(fz))==null?void 0:e.id)||null},g5=()=>Ye.useContext(dz);function v5(e){return"data-floating-ui-"+e}function Ki(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const RC=v5("safe-polygon");function yv(e,t,n){if(n&&!hb(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function bv(e){return typeof e=="function"?e():e}function hz(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:s,elements:a}=e,{enabled:o=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=g5(),w=e3(),$=Oh(d),D=Oh(l),C=Oh(n),E=Oh(m),S=Ye.useRef(),k=Ye.useRef(-1),P=Ye.useRef(),F=Ye.useRef(-1),U=Ye.useRef(!0),ie=Ye.useRef(!1),de=Ye.useRef(()=>{}),ae=Ye.useRef(!1),I=Rf(()=>{var O;const V=(O=i.current.openEvent)==null?void 0:O.type;return(V==null?void 0:V.includes("mouse"))&&V!=="mousedown"});Ye.useEffect(()=>{if(!o)return;function O(V){let{open:te}=V;te||(Ki(k),Ki(F),U.current=!0,ae.current=!1)}return s.on("openchange",O),()=>{s.off("openchange",O)}},[o,s]),Ye.useEffect(()=>{if(!o||!$.current||!n)return;function O(te){I()&&r(!1,te,"hover")}const V=Ff(a.floating).documentElement;return V.addEventListener("mouseleave",O),()=>{V.removeEventListener("mouseleave",O)}},[a.floating,n,r,o,$,I]);const xe=Ye.useCallback(function(O,V,te){V===void 0&&(V=!0),te===void 0&&(te="hover");const j=yv(D.current,"close",S.current);j&&!P.current?(Ki(k),k.current=window.setTimeout(()=>r(!1,O,te),j)):V&&(Ki(k),r(!1,O,te))},[D,r]),Ce=Rf(()=>{de.current(),P.current=void 0}),z=Rf(()=>{if(ie.current){const O=Ff(a.floating).body;O.style.pointerEvents="",O.removeAttribute(RC),ie.current=!1}}),ee=Rf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Ye.useEffect(()=>{if(!o)return;function O(ue){if(Ki(k),U.current=!1,h&&!hb(S.current)||bv(E.current)>0&&!yv(D.current,"open"))return;const De=yv(D.current,"open",S.current);De?k.current=window.setTimeout(()=>{C.current||r(!0,ue,"hover")},De):n||r(!0,ue,"hover")}function V(ue){if(ee()){z();return}de.current();const De=Ff(a.floating);if(Ki(F),ae.current=!1,$.current&&i.current.floatingContext){n||Ki(k),P.current=$.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){z(),Ce(),ee()||xe(ue,!0,"safe-polygon")}});const Fe=P.current;De.addEventListener("mousemove",Fe),de.current=()=>{De.removeEventListener("mousemove",Fe)};return}(S.current==="touch"?!db(a.floating,ue.relatedTarget):!0)&&xe(ue)}function te(ue){ee()||i.current.floatingContext&&($.current==null||$.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){z(),Ce(),ee()||xe(ue)}})(ue))}function j(){Ki(k)}function le(ue){ee()||xe(ue,!1)}if(ir(a.domReference)){const ue=a.domReference,De=a.floating;return n&&ue.addEventListener("mouseleave",te),g&&ue.addEventListener("mousemove",O,{once:!0}),ue.addEventListener("mouseenter",O),ue.addEventListener("mouseleave",V),De&&(De.addEventListener("mouseleave",te),De.addEventListener("mouseenter",j),De.addEventListener("mouseleave",le)),()=>{n&&ue.removeEventListener("mouseleave",te),g&&ue.removeEventListener("mousemove",O),ue.removeEventListener("mouseenter",O),ue.removeEventListener("mouseleave",V),De&&(De.removeEventListener("mouseleave",te),De.removeEventListener("mouseenter",j),De.removeEventListener("mouseleave",le))}}},[a,o,e,h,g,xe,Ce,z,r,n,C,b,D,$,i,ee,E]),uc(()=>{var O;if(o&&n&&(O=$.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&I()){ie.current=!0;const te=a.floating;if(ir(a.domReference)&&te){var V;const j=Ff(a.floating).body;j.setAttribute(RC,"");const le=a.domReference,ue=b==null||(V=b.nodesRef.current.find(De=>De.id===w))==null||(V=V.context)==null?void 0:V.elements.floating;return ue&&(ue.style.pointerEvents=""),j.style.pointerEvents="none",le.style.pointerEvents="auto",te.style.pointerEvents="auto",()=>{j.style.pointerEvents="",le.style.pointerEvents="",te.style.pointerEvents=""}}}},[o,n,w,a,b,$,I]),uc(()=>{n||(S.current=void 0,ae.current=!1,Ce(),z())},[n,Ce,z]),Ye.useEffect(()=>()=>{Ce(),Ki(k),Ki(F),z()},[o,a.domReference,Ce,z]);const K=Ye.useMemo(()=>{function O(V){S.current=V.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(V){const{nativeEvent:te}=V;function j(){!U.current&&!C.current&&r(!0,te,"hover")}h&&!hb(S.current)||n||bv(E.current)===0||ae.current&&V.movementX**2+V.movementY**2<2||(Ki(F),S.current==="touch"?j():(ae.current=!0,F.current=window.setTimeout(j,bv(E.current))))}}},[h,r,n,C,E]);return Ye.useMemo(()=>o?{reference:K}:{},[o,K])}function pz(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=m5(),s=Ye.useRef({}),[a]=Ye.useState(()=>cz()),o=e3()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!ir(b)&&lz("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=Rf((b,w,$)=>{s.current.openEvent=b?w:void 0,a.emit("openchange",{open:b,event:w,reason:$,nested:o}),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:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function mz(e){e===void 0&&(e={});const{nodeId:t}=e,n=pz({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=Ye.useState(null),[o,l]=Ye.useState(null),h=(i==null?void 0:i.domReference)||s,m=Ye.useRef(null),g=g5();uc(()=>{h&&(m.current=h)},[h]);const b=p5({...e,elements:{...i,...o&&{reference:o}}}),w=Ye.useCallback(S=>{const k=ir(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;l(k),b.refs.setReference(k)},[b.refs]),$=Ye.useCallback(S=>{(ir(S)||S===null)&&(m.current=S,a(S)),(ir(b.refs.reference.current)||b.refs.reference.current===null||S!==null&&!ir(S))&&b.refs.setReference(S)},[b.refs]),D=Ye.useMemo(()=>({...b.refs,setReference:$,setPositionReference:w,domReference:m}),[b.refs,$,w]),C=Ye.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),E=Ye.useMemo(()=>({...b,...r,refs:D,elements:C,nodeId:t}),[b,D,C,t,r]);return uc(()=>{r.dataRef.current.floatingContext=E;const S=g==null?void 0:g.nodesRef.current.find(k=>k.id===t);S&&(S.context=E)}),Ye.useMemo(()=>({...b,context:E,refs:D,elements:C}),[b,D,C,E])}function $v(){return pU()&&hU()}function gz(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:a}=e,{enabled:o=!0,visibleOnly:l=!0}=t,d=Ye.useRef(!1),h=Ye.useRef(-1),m=Ye.useRef(!0);Ye.useEffect(()=>{if(!o)return;const b=ci(a.domReference);function w(){!n&&ns(a.domReference)&&a.domReference===EC(Ff(a.domReference))&&(d.current=!0)}function $(){m.current=!0}function D(){m.current=!1}return b.addEventListener("blur",w),$v()&&(b.addEventListener("keydown",$,!0),b.addEventListener("pointerdown",D,!0)),()=>{b.removeEventListener("blur",w),$v()&&(b.removeEventListener("keydown",$,!0),b.removeEventListener("pointerdown",D,!0))}},[a.domReference,n,o]),Ye.useEffect(()=>{if(!o)return;function b(w){let{reason:$}=w;($==="reference-press"||$==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),Ye.useEffect(()=>()=>{Ki(h)},[]);const g=Ye.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const w=vU(b.nativeEvent);if(l&&ir(w)){if($v()&&!b.relatedTarget){if(!m.current&&!yU(w))return}else if(!bU(w))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const w=b.relatedTarget,$=b.nativeEvent,D=ir(w)&&w.hasAttribute(v5("focus-guard"))&&w.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var C;const E=EC(a.domReference?a.domReference.ownerDocument:document);!w&&E===a.domReference||db((C=s.current.floatingContext)==null?void 0:C.refs.floating.current,E)||db(a.domReference,E)||D||r(!1,$,"focus")})}}),[s,a.domReference,r,l]);return Ye.useMemo(()=>o?{reference:g}:{},[o,g])}function xv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[PC]:a,[_C]:o,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[iz]:""},...s,...t.map(a=>{const o=a?a[n]:null;return typeof o=="function"?e?o(e):null:o}).concat(e).reduce((a,o)=>(o&&Object.entries(o).forEach(l=>{let[d,h]=l;if(!(i&&[PC,_C].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),a[d]=function(){for(var g,b=arguments.length,w=new Array(b),$=0;$<b;$++)w[$]=arguments[$];return(g=r.get(d))==null?void 0:g.map(D=>D(...w)).find(D=>D!==void 0)}}}else a[d]=h}),a),{})}}function vz(e){e===void 0&&(e=[]);const t=e.map(o=>o==null?void 0:o.reference),n=e.map(o=>o==null?void 0:o.floating),r=e.map(o=>o==null?void 0:o.item),i=Ye.useCallback(o=>xv(o,e,"reference"),t),s=Ye.useCallback(o=>xv(o,e,"floating"),n),a=Ye.useCallback(o=>xv(o,e,"item"),r);return Ye.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const yz=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function bz(e,t){var n,r;t===void 0&&(t={});const{open:i,elements:s,floatingId:a}=e,{enabled:o=!0,role:l="dialog"}=t,d=m5(),h=((n=s.domReference)==null?void 0:n.id)||d,m=Ye.useMemo(()=>{var E;return((E=$U(s.floating))==null?void 0:E.id)||a},[s.floating,a]),g=(r=yz.get(l))!=null?r:l,w=e3()!=null,$=Ye.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:i?m:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":i?m:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:h},...g==="menu"&&w&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,m,w,i,h,l]),D=Ye.useMemo(()=>{const E={id:m,...g&&{role:g}};return g==="tooltip"||l==="label"?E:{...E,...g==="menu"&&{"aria-labelledby":h}}},[g,m,h,l]),C=Ye.useCallback(E=>{let{active:S,selected:k}=E;const P={role:"option",...S&&{id:m+"-fui-option"}};switch(l){case"select":case"combobox":return{...P,"aria-selected":k}}return{}},[m,l]);return Ye.useMemo(()=>o?{reference:$,floating:D,item:C}:{},[o,$,D,C])}var kf={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 $z=kf.exports,kC;function xz(){return kC||(kC=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.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,w=1,$=2,D=1,C=2,E=4,S=8,k=16,P=32,F=64,U=128,ie=256,de=512,ae=30,I="...",xe=800,Ce=16,z=1,ee=2,K=3,O=1/0,V=9007199254740991,te=17976931348623157e292,j=NaN,le=4294967295,ue=le-1,De=le>>>1,Pe=[["ary",U],["bind",D],["bindKey",C],["curry",S],["curryRight",k],["flip",de],["partial",P],["partialRight",F],["rearg",ie]],Fe="[object Arguments]",We="[object Array]",Xe="[object AsyncFunction]",Be="[object Boolean]",He="[object Date]",Me="[object DOMException]",Le="[object Error]",Ae="[object Function]",Ge="[object GeneratorFunction]",ht="[object Map]",Gt="[object Number]",$t="[object Null]",_t="[object Object]",Zr="[object Promise]",en="[object Proxy]",ye="[object RegExp]",Se="[object Set]",_e="[object String]",Je="[object Symbol]",tt="[object Undefined]",Qe="[object WeakMap]",gt="[object WeakSet]",Rt="[object ArrayBuffer]",xt="[object DataView]",yn="[object Float32Array]",Cr="[object Float64Array]",zt="[object Int8Array]",Pt="[object Int16Array]",It="[object Int32Array]",qt="[object Uint8Array]",gr="[object Uint8ClampedArray]",Xr="[object Uint16Array]",di="[object Uint32Array]",kr=/\b__p \+= '';/g,Fs=/\b(__p \+=) '' \+/g,Bo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,hi=/[&<>"']/g,pa=RegExp(bt.source),jc=RegExp(hi.source),Qu=/<%-([\s\S]+?)%>/g,Kc=/<%([\s\S]+?)%>/g,el=/<%=([\s\S]+?)%>/g,No=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tl=/^\w*$/,is=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ss=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(ss.source),Dn=/^\s+/,ma=/\s/,nl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Er=/\{\n\/\* \[wrapped with (.+)\] \*/,rl=/,? & /,il=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Uc=/[()=,{}\[\]\/\s]/,Jr=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,as=/^[-+]0x[0-9a-f]+$/i,pi=/^0b[01]+$/i,Jn=/^\[object .+?Constructor\]$/,jo=/^0o[0-7]+$/i,Rs=/^(?:0|[1-9]\d*)$/,mi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,ro=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",zc="\\u0300-\\u036f",sl="\\ufe20-\\ufe2f",qc="\\u20d0-\\u20ff",Ko=zc+sl+qc,ga="\\u2700-\\u27bf",al="a-z\\xdf-\\xf6\\xf8-\\xff",Uo="\\xac\\xb1\\xd7\\xf7",Wc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hc="\\u2000-\\u206f",Gc=" \\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",ol="A-Z\\xc0-\\xd6\\xd8-\\xde",zo="\\ufe0e\\ufe0f",qo=Uo+Wc+Hc+Gc,va="['’]",ul="["+Kt+"]",ll="["+qo+"]",Or="["+Ko+"]",vr="\\d+",Ir="["+ga+"]",ks="["+al+"]",io="[^"+Kt+qo+vr+ga+al+ol+"]",yr="\\ud83c[\\udffb-\\udfff]",ya="(?:"+Or+"|"+yr+")",ba="[^"+Kt+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",gi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+ol+"]",_i="\\u200d",Wo="(?:"+ks+"|"+io+")",cl="(?:"+or+"|"+io+")",pn="(?:"+va+"(?:d|ll|m|re|s|t|ve))?",Ho="(?:"+va+"(?:D|LL|M|RE|S|T|VE))?",$a=ya+"?",Go="["+zo+"]?",fl="(?:"+_i+"(?:"+[ba,Pi,gi].join("|")+")"+Go+$a+")*",Lr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Yo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Os=Go+$a+fl,Is="(?:"+[Ir,Pi,gi].join("|")+")"+Os,xa="(?:"+[ba+Or+"?",Or,Pi,gi,ul].join("|")+")",os=RegExp(va,"g"),wa=RegExp(Or,"g"),so=RegExp(yr+"(?="+yr+")|"+xa+Os,"g"),dl=RegExp([or+"?"+ks+"+"+pn+"(?="+[ll,or,"$"].join("|")+")",cl+"+"+Ho+"(?="+[ll,or+Wo,"$"].join("|")+")",or+"?"+Wo+"+"+pn,or+"+"+Ho,Yo,Lr,vr,Is].join("|"),"g"),Yc=RegExp("["+_i+Kt+Ko+zo+"]"),Ca=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zc=["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"],Ea=-1,Yt={};Yt[yn]=Yt[Cr]=Yt[zt]=Yt[Pt]=Yt[It]=Yt[qt]=Yt[gr]=Yt[Xr]=Yt[di]=!0,Yt[Fe]=Yt[We]=Yt[Rt]=Yt[Be]=Yt[xt]=Yt[He]=Yt[Le]=Yt[Ae]=Yt[ht]=Yt[Gt]=Yt[_t]=Yt[ye]=Yt[Se]=Yt[_e]=Yt[Qe]=!1;var tn={};tn[Fe]=tn[We]=tn[Rt]=tn[xt]=tn[Be]=tn[He]=tn[yn]=tn[Cr]=tn[zt]=tn[Pt]=tn[It]=tn[ht]=tn[Gt]=tn[_t]=tn[ye]=tn[Se]=tn[_e]=tn[Je]=tn[qt]=tn[gr]=tn[Xr]=tn[di]=!0,tn[Le]=tn[Ae]=tn[Qe]=!1;var se={À:"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"},Re={"&":"&","<":"<",">":">",'"':""","'":"'"},ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bn=parseFloat,sr=parseInt,ur=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi,Kn=typeof self=="object"&&self&&self.Object===Object&&self,An=ur||Kn||Function("return this")(),Mi=t&&!t.nodeType&&t,Fi=Mi&&!0&&e&&!e.nodeType&&e,Zo=Fi&&Fi.exports===Mi,ao=Zo&&ur.process,lr=function(){try{var R=Fi&&Fi.require&&Fi.require("util").types;return R||ao&&ao.binding&&ao.binding("util")}catch{}}(),Sa=lr&&lr.isArrayBuffer,nh=lr&&lr.isDate,rh=lr&&lr.isMap,Xc=lr&&lr.isRegExp,oo=lr&&lr.isSet,us=lr&&lr.isTypedArray;function Vn(R,Q,G){switch(G.length){case 0:return R.call(Q);case 1:return R.call(Q,G[0]);case 2:return R.call(Q,G[0],G[1]);case 3:return R.call(Q,G[0],G[1],G[2])}return R.apply(Q,G)}function Ls(R,Q,G,he){for(var fe=-1,W=R==null?0:R.length;++fe<W;){var Y=R[fe];Q(he,Y,G(Y),R)}return he}function hn(R,Q){for(var G=-1,he=R==null?0:R.length;++G<he&&Q(R[G],G,R)!==!1;);return R}function cr(R,Q){for(var G=R==null?0:R.length;G--&&Q(R[G],G,R)!==!1;);return R}function Da(R,Q){for(var G=-1,he=R==null?0:R.length;++G<he;)if(!Q(R[G],G,R))return!1;return!0}function Sr(R,Q){for(var G=-1,he=R==null?0:R.length,fe=0,W=[];++G<he;){var Y=R[G];Q(Y,G,R)&&(W[fe++]=Y)}return W}function Vs(R,Q){var G=R==null?0:R.length;return!!G&&Aa(R,Q,0)>-1}function hl(R,Q,G){for(var he=-1,fe=R==null?0:R.length;++he<fe;)if(G(Q,R[he]))return!0;return!1}function cn(R,Q){for(var G=-1,he=R==null?0:R.length,fe=Array(he);++G<he;)fe[G]=Q(R[G],G,R);return fe}function ls(R,Q){for(var G=-1,he=Q.length,fe=R.length;++G<he;)R[fe+G]=Q[G];return R}function pl(R,Q,G,he){var fe=-1,W=R==null?0:R.length;for(he&&W&&(G=R[++fe]);++fe<W;)G=Q(G,R[fe],fe,R);return G}function Xo(R,Q,G,he){var fe=R==null?0:R.length;for(he&&fe&&(G=R[--fe]);fe--;)G=Q(G,R[fe],fe,R);return G}function Bs(R,Q){for(var G=-1,he=R==null?0:R.length;++G<he;)if(Q(R[G],G,R))return!0;return!1}var Jo=ml("length");function Qo(R){return R.split("")}function vg(R){return R.match(il)||[]}function Jc(R,Q,G){var he;return G(R,function(fe,W,Y){if(Q(fe,W,Y))return he=W,!1}),he}function eu(R,Q,G,he){for(var fe=R.length,W=G+(he?1:-1);he?W--:++W<fe;)if(Q(R[W],W,R))return W;return-1}function Aa(R,Q,G){return Q===Q?p(R,Q,G):eu(R,Qc,G)}function ih(R,Q,G,he){for(var fe=G-1,W=R.length;++fe<W;)if(he(R[fe],Q))return fe;return-1}function Qc(R){return R!==R}function tu(R,Q){var G=R==null?0:R.length;return G?Ns(R,Q)/G:j}function ml(R){return function(Q){return Q==null?n:Q[R]}}function gl(R){return function(Q){return R==null?n:R[Q]}}function ef(R,Q,G,he,fe){return fe(R,function(W,Y,L){G=he?(he=!1,W):Q(G,W,Y,L)}),G}function nu(R,Q){var G=R.length;for(R.sort(Q);G--;)R[G]=R[G].value;return R}function Ns(R,Q){for(var G,he=-1,fe=R.length;++he<fe;){var W=Q(R[he]);W!==n&&(G=G===n?W:G+W)}return G}function vl(R,Q){for(var G=-1,he=Array(R);++G<R;)he[G]=Q(G);return he}function yg(R,Q){return cn(Q,function(G){return[G,R[G]]})}function sh(R){return R&&R.slice(0,M(R)+1).replace(Dn,"")}function Dr(R){return function(Q){return R(Q)}}function tf(R,Q){return cn(Q,function(G){return R[G]})}function mn(R,Q){return R.has(Q)}function yl(R,Q){for(var G=-1,he=R.length;++G<he&&Aa(Q,R[G],0)>-1;);return G}function fr(R,Q){for(var G=R.length;G--&&Aa(Q,R[G],0)>-1;);return G}function bg(R,Q){for(var G=R.length,he=0;G--;)R[G]===Q&&++he;return he}var $g=gl(se),Ta=gl(Re);function vi(R){return"\\"+pt[R]}function xg(R,Q){return R==null?n:R[Q]}function Ar(R){return Yc.test(R)}function nf(R){return Ca.test(R)}function js(R){for(var Q,G=[];!(Q=R.next()).done;)G.push(Q.value);return G}function Bn(R){var Q=-1,G=Array(R.size);return R.forEach(function(he,fe){G[++Q]=[fe,he]}),G}function Ri(R,Q){return function(G){return R(Q(G))}}function Qr(R,Q){for(var G=-1,he=R.length,fe=0,W=[];++G<he;){var Y=R[G];(Y===Q||Y===h)&&(R[G]=h,W[fe++]=G)}return W}function uo(R){var Q=-1,G=Array(R.size);return R.forEach(function(he){G[++Q]=he}),G}function c(R){var Q=-1,G=Array(R.size);return R.forEach(function(he){G[++Q]=[he,he]}),G}function p(R,Q,G){for(var he=G-1,fe=R.length;++he<fe;)if(R[he]===Q)return he;return-1}function v(R,Q,G){for(var he=G+1;he--;)if(R[he]===Q)return he;return he}function x(R){return Ar(R)?me(R):Jo(R)}function _(R){return Ar(R)?J(R):Qo(R)}function M(R){for(var Q=R.length;Q--&&ma.test(R.charAt(Q)););return Q}var q=gl(ze);function me(R){for(var Q=so.lastIndex=0;so.test(R);)++Q;return Q}function J(R){return R.match(so)||[]}function be(R){return R.match(dl)||[]}var we=function R(Q){Q=Q==null?An:ke.defaults(An.Object(),Q,ke.pick(An,Zc));var G=Q.Array,he=Q.Date,fe=Q.Error,W=Q.Function,Y=Q.Math,L=Q.Object,N=Q.RegExp,H=Q.String,ne=Q.TypeError,oe=G.prototype,pe=W.prototype,Ie=L.prototype,nt=Q["__core-js_shared__"],et=pe.toString,Ne=Ie.hasOwnProperty,ot=0,ct=function(){var u=/[^.]+$/.exec(nt&&nt.keys&&nt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ve=Ie.toString,$e=et.call(L),ce=An._,X=N("^"+et.call(Ne).replace(ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Zo?Q.Buffer:n,je=Q.Symbol,Oe=Q.Uint8Array,lt=ge?ge.allocUnsafe:n,At=Ri(L.getPrototypeOf,L),Ct=L.create,$n=Ie.propertyIsEnumerable,Wt=oe.splice,dr=je?je.isConcatSpreadable:n,Qn=je?je.iterator:n,Nn=je?je.toStringTag:n,Un=function(){try{var u=ou(L,"defineProperty");return u({},"",{}),u}catch{}}(),zn=Q.clearTimeout!==An.clearTimeout&&Q.clearTimeout,br=he&&he.now!==An.Date.now&&he.now,ft=Q.setTimeout!==An.setTimeout&&Q.setTimeout,fn=Y.ceil,ei=Y.floor,ki=L.getOwnPropertySymbols,cs=ge?ge.isBuffer:n,yi=Q.isFinite,fs=oe.join,ds=Ri(L.keys,L),Zt=Y.max,xn=Y.min,Ks=he.now,bi=Q.parseInt,hs=Y.random,$i=oe.reverse,ps=ou(Q,"DataView"),Us=ou(Q,"Map"),lo=ou(Q,"Promise"),bl=ou(Q,"Set"),rf=ou(Q,"WeakMap"),sf=ou(L,"create"),ah=rf&&new rf,$l={},z9=uu(ps),q9=uu(Us),W9=uu(lo),H9=uu(bl),G9=uu(rf),oh=je?je.prototype:n,af=oh?oh.valueOf:n,Cx=oh?oh.toString:n;function Z(u){if(jn(u)&&!Mt(u)&&!(u instanceof Ut)){if(u instanceof Oi)return u;if(Ne.call(u,"__wrapped__"))return Ew(u)}return new Oi(u)}var xl=function(){function u(){}return function(f){if(!Mn(f))return{};if(Ct)return Ct(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function uh(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}Z.templateSettings={escape:Qu,evaluate:Kc,interpolate:el,variable:"",imports:{_:Z}},Z.prototype=uh.prototype,Z.prototype.constructor=Z,Oi.prototype=xl(uh.prototype),Oi.prototype.constructor=Oi;function Ut(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=le,this.__views__=[]}function Y9(){var u=new Ut(this.__wrapped__);return u.__actions__=ti(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=ti(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=ti(this.__views__),u}function Z9(){if(this.__filtered__){var u=new Ut(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function X9(){var u=this.__wrapped__.value(),f=this.__dir__,y=Mt(u),T=f<0,B=y?u.length:0,re=l8(0,B,this.__views__),ve=re.start,Ee=re.end,Te=Ee-ve,Ue=T?Ee:ve-1,qe=this.__iteratees__,Ze=qe.length,at=0,vt=xn(Te,this.__takeCount__);if(!y||!T&&B==Te&&vt==Te)return Hx(u,this.__actions__);var Et=[];e:for(;Te--&&at<vt;){Ue+=f;for(var Lt=-1,St=u[Ue];++Lt<Ze;){var Nt=qe[Lt],Ht=Nt.iteratee,Ci=Nt.type,Nr=Ht(St);if(Ci==ee)St=Nr;else if(!Nr){if(Ci==z)continue e;break e}}Et[at++]=St}return Et}Ut.prototype=xl(uh.prototype),Ut.prototype.constructor=Ut;function ru(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var T=u[f];this.set(T[0],T[1])}}function J9(){this.__data__=sf?sf(null):{},this.size=0}function Q9(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function eL(u){var f=this.__data__;if(sf){var y=f[u];return y===l?n:y}return Ne.call(f,u)?f[u]:n}function tL(u){var f=this.__data__;return sf?f[u]!==n:Ne.call(f,u)}function nL(u,f){var y=this.__data__;return this.size+=this.has(u)?0:1,y[u]=sf&&f===n?l:f,this}ru.prototype.clear=J9,ru.prototype.delete=Q9,ru.prototype.get=eL,ru.prototype.has=tL,ru.prototype.set=nL;function Pa(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var T=u[f];this.set(T[0],T[1])}}function rL(){this.__data__=[],this.size=0}function iL(u){var f=this.__data__,y=lh(f,u);if(y<0)return!1;var T=f.length-1;return y==T?f.pop():Wt.call(f,y,1),--this.size,!0}function sL(u){var f=this.__data__,y=lh(f,u);return y<0?n:f[y][1]}function aL(u){return lh(this.__data__,u)>-1}function oL(u,f){var y=this.__data__,T=lh(y,u);return T<0?(++this.size,y.push([u,f])):y[T][1]=f,this}Pa.prototype.clear=rL,Pa.prototype.delete=iL,Pa.prototype.get=sL,Pa.prototype.has=aL,Pa.prototype.set=oL;function _a(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var T=u[f];this.set(T[0],T[1])}}function uL(){this.size=0,this.__data__={hash:new ru,map:new(Us||Pa),string:new ru}}function lL(u){var f=xh(this,u).delete(u);return this.size-=f?1:0,f}function cL(u){return xh(this,u).get(u)}function fL(u){return xh(this,u).has(u)}function dL(u,f){var y=xh(this,u),T=y.size;return y.set(u,f),this.size+=y.size==T?0:1,this}_a.prototype.clear=uL,_a.prototype.delete=lL,_a.prototype.get=cL,_a.prototype.has=fL,_a.prototype.set=dL;function iu(u){var f=-1,y=u==null?0:u.length;for(this.__data__=new _a;++f<y;)this.add(u[f])}function hL(u){return this.__data__.set(u,l),this}function pL(u){return this.__data__.has(u)}iu.prototype.add=iu.prototype.push=hL,iu.prototype.has=pL;function ms(u){var f=this.__data__=new Pa(u);this.size=f.size}function mL(){this.__data__=new Pa,this.size=0}function gL(u){var f=this.__data__,y=f.delete(u);return this.size=f.size,y}function vL(u){return this.__data__.get(u)}function yL(u){return this.__data__.has(u)}function bL(u,f){var y=this.__data__;if(y instanceof Pa){var T=y.__data__;if(!Us||T.length<i-1)return T.push([u,f]),this.size=++y.size,this;y=this.__data__=new _a(T)}return y.set(u,f),this.size=y.size,this}ms.prototype.clear=mL,ms.prototype.delete=gL,ms.prototype.get=vL,ms.prototype.has=yL,ms.prototype.set=bL;function Ex(u,f){var y=Mt(u),T=!y&&lu(u),B=!y&&!T&&mo(u),re=!y&&!T&&!B&&Sl(u),ve=y||T||B||re,Ee=ve?vl(u.length,H):[],Te=Ee.length;for(var Ue in u)(f||Ne.call(u,Ue))&&!(ve&&(Ue=="length"||B&&(Ue=="offset"||Ue=="parent")||re&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||ka(Ue,Te)))&&Ee.push(Ue);return Ee}function Sx(u){var f=u.length;return f?u[Fg(0,f-1)]:n}function $L(u,f){return wh(ti(u),su(f,0,u.length))}function xL(u){return wh(ti(u))}function wg(u,f,y){(y!==n&&!gs(u[f],y)||y===n&&!(f in u))&&Ma(u,f,y)}function of(u,f,y){var T=u[f];(!(Ne.call(u,f)&&gs(T,y))||y===n&&!(f in u))&&Ma(u,f,y)}function lh(u,f){for(var y=u.length;y--;)if(gs(u[y][0],f))return y;return-1}function wL(u,f,y,T){return co(u,function(B,re,ve){f(T,B,y(B),ve)}),T}function Dx(u,f){return u&&qs(f,hr(f),u)}function CL(u,f){return u&&qs(f,ri(f),u)}function Ma(u,f,y){f=="__proto__"&&Un?Un(u,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):u[f]=y}function Cg(u,f){for(var y=-1,T=f.length,B=G(T),re=u==null;++y<T;)B[y]=re?n:rv(u,f[y]);return B}function su(u,f,y){return u===u&&(y!==n&&(u=u<=y?u:y),f!==n&&(u=u>=f?u:f)),u}function Ii(u,f,y,T,B,re){var ve,Ee=f&m,Te=f&g,Ue=f&b;if(y&&(ve=B?y(u,T,B,re):y(u)),ve!==n)return ve;if(!Mn(u))return u;var qe=Mt(u);if(qe){if(ve=f8(u),!Ee)return ti(u,ve)}else{var Ze=Tr(u),at=Ze==Ae||Ze==Ge;if(mo(u))return Zx(u,Ee);if(Ze==_t||Ze==Fe||at&&!B){if(ve=Te||at?{}:mw(u),!Ee)return Te?e8(u,CL(ve,u)):QL(u,Dx(ve,u))}else{if(!tn[Ze])return B?u:{};ve=d8(u,Ze,Ee)}}re||(re=new ms);var vt=re.get(u);if(vt)return vt;re.set(u,ve),zw(u)?u.forEach(function(St){ve.add(Ii(St,f,y,St,u,re))}):Kw(u)&&u.forEach(function(St,Nt){ve.set(Nt,Ii(St,f,y,Nt,u,re))});var Et=Ue?Te?Ug:Kg:Te?ri:hr,Lt=qe?n:Et(u);return hn(Lt||u,function(St,Nt){Lt&&(Nt=St,St=u[Nt]),of(ve,Nt,Ii(St,f,y,Nt,u,re))}),ve}function EL(u){var f=hr(u);return function(y){return Ax(y,u,f)}}function Ax(u,f,y){var T=y.length;if(u==null)return!T;for(u=L(u);T--;){var B=y[T],re=f[B],ve=u[B];if(ve===n&&!(B in u)||!re(ve))return!1}return!0}function Tx(u,f,y){if(typeof u!="function")throw new ne(a);return pf(function(){u.apply(n,y)},f)}function uf(u,f,y,T){var B=-1,re=Vs,ve=!0,Ee=u.length,Te=[],Ue=f.length;if(!Ee)return Te;y&&(f=cn(f,Dr(y))),T?(re=hl,ve=!1):f.length>=i&&(re=mn,ve=!1,f=new iu(f));e:for(;++B<Ee;){var qe=u[B],Ze=y==null?qe:y(qe);if(qe=T||qe!==0?qe:0,ve&&Ze===Ze){for(var at=Ue;at--;)if(f[at]===Ze)continue e;Te.push(qe)}else re(f,Ze,T)||Te.push(qe)}return Te}var co=tw(zs),Px=tw(Sg,!0);function SL(u,f){var y=!0;return co(u,function(T,B,re){return y=!!f(T,B,re),y}),y}function ch(u,f,y){for(var T=-1,B=u.length;++T<B;){var re=u[T],ve=f(re);if(ve!=null&&(Ee===n?ve===ve&&!wi(ve):y(ve,Ee)))var Ee=ve,Te=re}return Te}function DL(u,f,y,T){var B=u.length;for(y=kt(y),y<0&&(y=-y>B?0:B+y),T=T===n||T>B?B:kt(T),T<0&&(T+=B),T=y>T?0:Ww(T);y<T;)u[y++]=f;return u}function _x(u,f){var y=[];return co(u,function(T,B,re){f(T,B,re)&&y.push(T)}),y}function $r(u,f,y,T,B){var re=-1,ve=u.length;for(y||(y=p8),B||(B=[]);++re<ve;){var Ee=u[re];f>0&&y(Ee)?f>1?$r(Ee,f-1,y,T,B):ls(B,Ee):T||(B[B.length]=Ee)}return B}var Eg=nw(),Mx=nw(!0);function zs(u,f){return u&&Eg(u,f,hr)}function Sg(u,f){return u&&Mx(u,f,hr)}function fh(u,f){return Sr(f,function(y){return Oa(u[y])})}function au(u,f){f=ho(f,u);for(var y=0,T=f.length;u!=null&&y<T;)u=u[Ws(f[y++])];return y&&y==T?u:n}function Fx(u,f,y){var T=f(u);return Mt(u)?T:ls(T,y(u))}function Vr(u){return u==null?u===n?tt:$t:Nn&&Nn in L(u)?u8(u):x8(u)}function Dg(u,f){return u>f}function AL(u,f){return u!=null&&Ne.call(u,f)}function TL(u,f){return u!=null&&f in L(u)}function PL(u,f,y){return u>=xn(f,y)&&u<Zt(f,y)}function Ag(u,f,y){for(var T=y?hl:Vs,B=u[0].length,re=u.length,ve=re,Ee=G(re),Te=1/0,Ue=[];ve--;){var qe=u[ve];ve&&f&&(qe=cn(qe,Dr(f))),Te=xn(qe.length,Te),Ee[ve]=!y&&(f||B>=120&&qe.length>=120)?new iu(ve&&qe):n}qe=u[0];var Ze=-1,at=Ee[0];e:for(;++Ze<B&&Ue.length<Te;){var vt=qe[Ze],Et=f?f(vt):vt;if(vt=y||vt!==0?vt:0,!(at?mn(at,Et):T(Ue,Et,y))){for(ve=re;--ve;){var Lt=Ee[ve];if(!(Lt?mn(Lt,Et):T(u[ve],Et,y)))continue e}at&&at.push(Et),Ue.push(vt)}}return Ue}function _L(u,f,y,T){return zs(u,function(B,re,ve){f(T,y(B),re,ve)}),T}function lf(u,f,y){f=ho(f,u),u=bw(u,f);var T=u==null?u:u[Ws(Vi(f))];return T==null?n:Vn(T,u,y)}function Rx(u){return jn(u)&&Vr(u)==Fe}function ML(u){return jn(u)&&Vr(u)==Rt}function FL(u){return jn(u)&&Vr(u)==He}function cf(u,f,y,T,B){return u===f?!0:u==null||f==null||!jn(u)&&!jn(f)?u!==u&&f!==f:RL(u,f,y,T,cf,B)}function RL(u,f,y,T,B,re){var ve=Mt(u),Ee=Mt(f),Te=ve?We:Tr(u),Ue=Ee?We:Tr(f);Te=Te==Fe?_t:Te,Ue=Ue==Fe?_t:Ue;var qe=Te==_t,Ze=Ue==_t,at=Te==Ue;if(at&&mo(u)){if(!mo(f))return!1;ve=!0,qe=!1}if(at&&!qe)return re||(re=new ms),ve||Sl(u)?dw(u,f,y,T,B,re):a8(u,f,Te,y,T,B,re);if(!(y&w)){var vt=qe&&Ne.call(u,"__wrapped__"),Et=Ze&&Ne.call(f,"__wrapped__");if(vt||Et){var Lt=vt?u.value():u,St=Et?f.value():f;return re||(re=new ms),B(Lt,St,y,T,re)}}return at?(re||(re=new ms),o8(u,f,y,T,B,re)):!1}function kL(u){return jn(u)&&Tr(u)==ht}function Tg(u,f,y,T){var B=y.length,re=B,ve=!T;if(u==null)return!re;for(u=L(u);B--;){var Ee=y[B];if(ve&&Ee[2]?Ee[1]!==u[Ee[0]]:!(Ee[0]in u))return!1}for(;++B<re;){Ee=y[B];var Te=Ee[0],Ue=u[Te],qe=Ee[1];if(ve&&Ee[2]){if(Ue===n&&!(Te in u))return!1}else{var Ze=new ms;if(T)var at=T(Ue,qe,Te,u,f,Ze);if(!(at===n?cf(qe,Ue,w|$,T,Ze):at))return!1}}return!0}function kx(u){if(!Mn(u)||g8(u))return!1;var f=Oa(u)?X:Jn;return f.test(uu(u))}function OL(u){return jn(u)&&Vr(u)==ye}function IL(u){return jn(u)&&Tr(u)==Se}function LL(u){return jn(u)&&Th(u.length)&&!!Yt[Vr(u)]}function Ox(u){return typeof u=="function"?u:u==null?ii:typeof u=="object"?Mt(u)?Vx(u[0],u[1]):Lx(u):rC(u)}function Pg(u){if(!hf(u))return ds(u);var f=[];for(var y in L(u))Ne.call(u,y)&&y!="constructor"&&f.push(y);return f}function VL(u){if(!Mn(u))return $8(u);var f=hf(u),y=[];for(var T in u)T=="constructor"&&(f||!Ne.call(u,T))||y.push(T);return y}function _g(u,f){return u<f}function Ix(u,f){var y=-1,T=ni(u)?G(u.length):[];return co(u,function(B,re,ve){T[++y]=f(B,re,ve)}),T}function Lx(u){var f=qg(u);return f.length==1&&f[0][2]?vw(f[0][0],f[0][1]):function(y){return y===u||Tg(y,u,f)}}function Vx(u,f){return Hg(u)&&gw(f)?vw(Ws(u),f):function(y){var T=rv(y,u);return T===n&&T===f?iv(y,u):cf(f,T,w|$)}}function dh(u,f,y,T,B){u!==f&&Eg(f,function(re,ve){if(B||(B=new ms),Mn(re))BL(u,f,ve,y,dh,T,B);else{var Ee=T?T(Yg(u,ve),re,ve+"",u,f,B):n;Ee===n&&(Ee=re),wg(u,ve,Ee)}},ri)}function BL(u,f,y,T,B,re,ve){var Ee=Yg(u,y),Te=Yg(f,y),Ue=ve.get(Te);if(Ue){wg(u,y,Ue);return}var qe=re?re(Ee,Te,y+"",u,f,ve):n,Ze=qe===n;if(Ze){var at=Mt(Te),vt=!at&&mo(Te),Et=!at&&!vt&&Sl(Te);qe=Te,at||vt||Et?Mt(Ee)?qe=Ee:qn(Ee)?qe=ti(Ee):vt?(Ze=!1,qe=Zx(Te,!0)):Et?(Ze=!1,qe=Xx(Te,!0)):qe=[]:mf(Te)||lu(Te)?(qe=Ee,lu(Ee)?qe=Hw(Ee):(!Mn(Ee)||Oa(Ee))&&(qe=mw(Te))):Ze=!1}Ze&&(ve.set(Te,qe),B(qe,Te,T,re,ve),ve.delete(Te)),wg(u,y,qe)}function Bx(u,f){var y=u.length;if(y)return f+=f<0?y:0,ka(f,y)?u[f]:n}function Nx(u,f,y){f.length?f=cn(f,function(re){return Mt(re)?function(ve){return au(ve,re.length===1?re[0]:re)}:re}):f=[ii];var T=-1;f=cn(f,Dr(wt()));var B=Ix(u,function(re,ve,Ee){var Te=cn(f,function(Ue){return Ue(re)});return{criteria:Te,index:++T,value:re}});return nu(B,function(re,ve){return JL(re,ve,y)})}function NL(u,f){return jx(u,f,function(y,T){return iv(u,T)})}function jx(u,f,y){for(var T=-1,B=f.length,re={};++T<B;){var ve=f[T],Ee=au(u,ve);y(Ee,ve)&&ff(re,ho(ve,u),Ee)}return re}function jL(u){return function(f){return au(f,u)}}function Mg(u,f,y,T){var B=T?ih:Aa,re=-1,ve=f.length,Ee=u;for(u===f&&(f=ti(f)),y&&(Ee=cn(u,Dr(y)));++re<ve;)for(var Te=0,Ue=f[re],qe=y?y(Ue):Ue;(Te=B(Ee,qe,Te,T))>-1;)Ee!==u&&Wt.call(Ee,Te,1),Wt.call(u,Te,1);return u}function Kx(u,f){for(var y=u?f.length:0,T=y-1;y--;){var B=f[y];if(y==T||B!==re){var re=B;ka(B)?Wt.call(u,B,1):Og(u,B)}}return u}function Fg(u,f){return u+ei(hs()*(f-u+1))}function KL(u,f,y,T){for(var B=-1,re=Zt(fn((f-u)/(y||1)),0),ve=G(re);re--;)ve[T?re:++B]=u,u+=y;return ve}function Rg(u,f){var y="";if(!u||f<1||f>V)return y;do f%2&&(y+=u),f=ei(f/2),f&&(u+=u);while(f);return y}function Bt(u,f){return Zg(yw(u,f,ii),u+"")}function UL(u){return Sx(Dl(u))}function zL(u,f){var y=Dl(u);return wh(y,su(f,0,y.length))}function ff(u,f,y,T){if(!Mn(u))return u;f=ho(f,u);for(var B=-1,re=f.length,ve=re-1,Ee=u;Ee!=null&&++B<re;){var Te=Ws(f[B]),Ue=y;if(Te==="__proto__"||Te==="constructor"||Te==="prototype")return u;if(B!=ve){var qe=Ee[Te];Ue=T?T(qe,Te,Ee):n,Ue===n&&(Ue=Mn(qe)?qe:ka(f[B+1])?[]:{})}of(Ee,Te,Ue),Ee=Ee[Te]}return u}var Ux=ah?function(u,f){return ah.set(u,f),u}:ii,qL=Un?function(u,f){return Un(u,"toString",{configurable:!0,enumerable:!1,value:av(f),writable:!0})}:ii;function WL(u){return wh(Dl(u))}function Li(u,f,y){var T=-1,B=u.length;f<0&&(f=-f>B?0:B+f),y=y>B?B:y,y<0&&(y+=B),B=f>y?0:y-f>>>0,f>>>=0;for(var re=G(B);++T<B;)re[T]=u[T+f];return re}function HL(u,f){var y;return co(u,function(T,B,re){return y=f(T,B,re),!y}),!!y}function hh(u,f,y){var T=0,B=u==null?T:u.length;if(typeof f=="number"&&f===f&&B<=De){for(;T<B;){var re=T+B>>>1,ve=u[re];ve!==null&&!wi(ve)&&(y?ve<=f:ve<f)?T=re+1:B=re}return B}return kg(u,f,ii,y)}function kg(u,f,y,T){var B=0,re=u==null?0:u.length;if(re===0)return 0;f=y(f);for(var ve=f!==f,Ee=f===null,Te=wi(f),Ue=f===n;B<re;){var qe=ei((B+re)/2),Ze=y(u[qe]),at=Ze!==n,vt=Ze===null,Et=Ze===Ze,Lt=wi(Ze);if(ve)var St=T||Et;else Ue?St=Et&&(T||at):Ee?St=Et&&at&&(T||!vt):Te?St=Et&&at&&!vt&&(T||!Lt):vt||Lt?St=!1:St=T?Ze<=f:Ze<f;St?B=qe+1:re=qe}return xn(re,ue)}function zx(u,f){for(var y=-1,T=u.length,B=0,re=[];++y<T;){var ve=u[y],Ee=f?f(ve):ve;if(!y||!gs(Ee,Te)){var Te=Ee;re[B++]=ve===0?0:ve}}return re}function qx(u){return typeof u=="number"?u:wi(u)?j:+u}function xi(u){if(typeof u=="string")return u;if(Mt(u))return cn(u,xi)+"";if(wi(u))return Cx?Cx.call(u):"";var f=u+"";return f=="0"&&1/u==-O?"-0":f}function fo(u,f,y){var T=-1,B=Vs,re=u.length,ve=!0,Ee=[],Te=Ee;if(y)ve=!1,B=hl;else if(re>=i){var Ue=f?null:i8(u);if(Ue)return uo(Ue);ve=!1,B=mn,Te=new iu}else Te=f?[]:Ee;e:for(;++T<re;){var qe=u[T],Ze=f?f(qe):qe;if(qe=y||qe!==0?qe:0,ve&&Ze===Ze){for(var at=Te.length;at--;)if(Te[at]===Ze)continue e;f&&Te.push(Ze),Ee.push(qe)}else B(Te,Ze,y)||(Te!==Ee&&Te.push(Ze),Ee.push(qe))}return Ee}function Og(u,f){return f=ho(f,u),u=bw(u,f),u==null||delete u[Ws(Vi(f))]}function Wx(u,f,y,T){return ff(u,f,y(au(u,f)),T)}function ph(u,f,y,T){for(var B=u.length,re=T?B:-1;(T?re--:++re<B)&&f(u[re],re,u););return y?Li(u,T?0:re,T?re+1:B):Li(u,T?re+1:0,T?B:re)}function Hx(u,f){var y=u;return y instanceof Ut&&(y=y.value()),pl(f,function(T,B){return B.func.apply(B.thisArg,ls([T],B.args))},y)}function Ig(u,f,y){var T=u.length;if(T<2)return T?fo(u[0]):[];for(var B=-1,re=G(T);++B<T;)for(var ve=u[B],Ee=-1;++Ee<T;)Ee!=B&&(re[B]=uf(re[B]||ve,u[Ee],f,y));return fo($r(re,1),f,y)}function Gx(u,f,y){for(var T=-1,B=u.length,re=f.length,ve={};++T<B;){var Ee=T<re?f[T]:n;y(ve,u[T],Ee)}return ve}function Lg(u){return qn(u)?u:[]}function Vg(u){return typeof u=="function"?u:ii}function ho(u,f){return Mt(u)?u:Hg(u,f)?[u]:Cw(an(u))}var GL=Bt;function po(u,f,y){var T=u.length;return y=y===n?T:y,!f&&y>=T?u:Li(u,f,y)}var Yx=zn||function(u){return An.clearTimeout(u)};function Zx(u,f){if(f)return u.slice();var y=u.length,T=lt?lt(y):new u.constructor(y);return u.copy(T),T}function Bg(u){var f=new u.constructor(u.byteLength);return new Oe(f).set(new Oe(u)),f}function YL(u,f){var y=f?Bg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function ZL(u){var f=new u.constructor(u.source,dn.exec(u));return f.lastIndex=u.lastIndex,f}function XL(u){return af?L(af.call(u)):{}}function Xx(u,f){var y=f?Bg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Jx(u,f){if(u!==f){var y=u!==n,T=u===null,B=u===u,re=wi(u),ve=f!==n,Ee=f===null,Te=f===f,Ue=wi(f);if(!Ee&&!Ue&&!re&&u>f||re&&ve&&Te&&!Ee&&!Ue||T&&ve&&Te||!y&&Te||!B)return 1;if(!T&&!re&&!Ue&&u<f||Ue&&y&&B&&!T&&!re||Ee&&y&&B||!ve&&B||!Te)return-1}return 0}function JL(u,f,y){for(var T=-1,B=u.criteria,re=f.criteria,ve=B.length,Ee=y.length;++T<ve;){var Te=Jx(B[T],re[T]);if(Te){if(T>=Ee)return Te;var Ue=y[T];return Te*(Ue=="desc"?-1:1)}}return u.index-f.index}function Qx(u,f,y,T){for(var B=-1,re=u.length,ve=y.length,Ee=-1,Te=f.length,Ue=Zt(re-ve,0),qe=G(Te+Ue),Ze=!T;++Ee<Te;)qe[Ee]=f[Ee];for(;++B<ve;)(Ze||B<re)&&(qe[y[B]]=u[B]);for(;Ue--;)qe[Ee++]=u[B++];return qe}function ew(u,f,y,T){for(var B=-1,re=u.length,ve=-1,Ee=y.length,Te=-1,Ue=f.length,qe=Zt(re-Ee,0),Ze=G(qe+Ue),at=!T;++B<qe;)Ze[B]=u[B];for(var vt=B;++Te<Ue;)Ze[vt+Te]=f[Te];for(;++ve<Ee;)(at||B<re)&&(Ze[vt+y[ve]]=u[B++]);return Ze}function ti(u,f){var y=-1,T=u.length;for(f||(f=G(T));++y<T;)f[y]=u[y];return f}function qs(u,f,y,T){var B=!y;y||(y={});for(var re=-1,ve=f.length;++re<ve;){var Ee=f[re],Te=T?T(y[Ee],u[Ee],Ee,y,u):n;Te===n&&(Te=u[Ee]),B?Ma(y,Ee,Te):of(y,Ee,Te)}return y}function QL(u,f){return qs(u,Wg(u),f)}function e8(u,f){return qs(u,hw(u),f)}function mh(u,f){return function(y,T){var B=Mt(y)?Ls:wL,re=f?f():{};return B(y,u,wt(T,2),re)}}function wl(u){return Bt(function(f,y){var T=-1,B=y.length,re=B>1?y[B-1]:n,ve=B>2?y[2]:n;for(re=u.length>3&&typeof re=="function"?(B--,re):n,ve&&Br(y[0],y[1],ve)&&(re=B<3?n:re,B=1),f=L(f);++T<B;){var Ee=y[T];Ee&&u(f,Ee,T,re)}return f})}function tw(u,f){return function(y,T){if(y==null)return y;if(!ni(y))return u(y,T);for(var B=y.length,re=f?B:-1,ve=L(y);(f?re--:++re<B)&&T(ve[re],re,ve)!==!1;);return y}}function nw(u){return function(f,y,T){for(var B=-1,re=L(f),ve=T(f),Ee=ve.length;Ee--;){var Te=ve[u?Ee:++B];if(y(re[Te],Te,re)===!1)break}return f}}function t8(u,f,y){var T=f&D,B=df(u);function re(){var ve=this&&this!==An&&this instanceof re?B:u;return ve.apply(T?y:this,arguments)}return re}function rw(u){return function(f){f=an(f);var y=Ar(f)?_(f):n,T=y?y[0]:f.charAt(0),B=y?po(y,1).join(""):f.slice(1);return T[u]()+B}}function Cl(u){return function(f){return pl(tC(eC(f).replace(os,"")),u,"")}}function df(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=xl(u.prototype),T=u.apply(y,f);return Mn(T)?T:y}}function n8(u,f,y){var T=df(u);function B(){for(var re=arguments.length,ve=G(re),Ee=re,Te=El(B);Ee--;)ve[Ee]=arguments[Ee];var Ue=re<3&&ve[0]!==Te&&ve[re-1]!==Te?[]:Qr(ve,Te);if(re-=Ue.length,re<y)return uw(u,f,gh,B.placeholder,n,ve,Ue,n,n,y-re);var qe=this&&this!==An&&this instanceof B?T:u;return Vn(qe,this,ve)}return B}function iw(u){return function(f,y,T){var B=L(f);if(!ni(f)){var re=wt(y,3);f=hr(f),y=function(Ee){return re(B[Ee],Ee,B)}}var ve=u(f,y,T);return ve>-1?B[re?f[ve]:ve]:n}}function sw(u){return Ra(function(f){var y=f.length,T=y,B=Oi.prototype.thru;for(u&&f.reverse();T--;){var re=f[T];if(typeof re!="function")throw new ne(a);if(B&&!ve&&$h(re)=="wrapper")var ve=new Oi([],!0)}for(T=ve?T:y;++T<y;){re=f[T];var Ee=$h(re),Te=Ee=="wrapper"?zg(re):n;Te&&Gg(Te[0])&&Te[1]==(U|S|P|ie)&&!Te[4].length&&Te[9]==1?ve=ve[$h(Te[0])].apply(ve,Te[3]):ve=re.length==1&&Gg(re)?ve[Ee]():ve.thru(re)}return function(){var Ue=arguments,qe=Ue[0];if(ve&&Ue.length==1&&Mt(qe))return ve.plant(qe).value();for(var Ze=0,at=y?f[Ze].apply(this,Ue):qe;++Ze<y;)at=f[Ze].call(this,at);return at}})}function gh(u,f,y,T,B,re,ve,Ee,Te,Ue){var qe=f&U,Ze=f&D,at=f&C,vt=f&(S|k),Et=f&de,Lt=at?n:df(u);function St(){for(var Nt=arguments.length,Ht=G(Nt),Ci=Nt;Ci--;)Ht[Ci]=arguments[Ci];if(vt)var Nr=El(St),Ei=bg(Ht,Nr);if(T&&(Ht=Qx(Ht,T,B,vt)),re&&(Ht=ew(Ht,re,ve,vt)),Nt-=Ei,vt&&Nt<Ue){var Wn=Qr(Ht,Nr);return uw(u,f,gh,St.placeholder,y,Ht,Wn,Ee,Te,Ue-Nt)}var vs=Ze?y:this,La=at?vs[u]:u;return Nt=Ht.length,Ee?Ht=w8(Ht,Ee):Et&&Nt>1&&Ht.reverse(),qe&&Te<Nt&&(Ht.length=Te),this&&this!==An&&this instanceof St&&(La=Lt||df(La)),La.apply(vs,Ht)}return St}function aw(u,f){return function(y,T){return _L(y,u,f(T),{})}}function vh(u,f){return function(y,T){var B;if(y===n&&T===n)return f;if(y!==n&&(B=y),T!==n){if(B===n)return T;typeof y=="string"||typeof T=="string"?(y=xi(y),T=xi(T)):(y=qx(y),T=qx(T)),B=u(y,T)}return B}}function Ng(u){return Ra(function(f){return f=cn(f,Dr(wt())),Bt(function(y){var T=this;return u(f,function(B){return Vn(B,T,y)})})})}function yh(u,f){f=f===n?" ":xi(f);var y=f.length;if(y<2)return y?Rg(f,u):f;var T=Rg(f,fn(u/x(f)));return Ar(f)?po(_(T),0,u).join(""):T.slice(0,u)}function r8(u,f,y,T){var B=f&D,re=df(u);function ve(){for(var Ee=-1,Te=arguments.length,Ue=-1,qe=T.length,Ze=G(qe+Te),at=this&&this!==An&&this instanceof ve?re:u;++Ue<qe;)Ze[Ue]=T[Ue];for(;Te--;)Ze[Ue++]=arguments[++Ee];return Vn(at,B?y:this,Ze)}return ve}function ow(u){return function(f,y,T){return T&&typeof T!="number"&&Br(f,y,T)&&(y=T=n),f=Ia(f),y===n?(y=f,f=0):y=Ia(y),T=T===n?f<y?1:-1:Ia(T),KL(f,y,T,u)}}function bh(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Bi(f),y=Bi(y)),u(f,y)}}function uw(u,f,y,T,B,re,ve,Ee,Te,Ue){var qe=f&S,Ze=qe?ve:n,at=qe?n:ve,vt=qe?re:n,Et=qe?n:re;f|=qe?P:F,f&=~(qe?F:P),f&E||(f&=-4);var Lt=[u,f,B,vt,Ze,Et,at,Ee,Te,Ue],St=y.apply(n,Lt);return Gg(u)&&$w(St,Lt),St.placeholder=T,xw(St,u,f)}function jg(u){var f=Y[u];return function(y,T){if(y=Bi(y),T=T==null?0:xn(kt(T),292),T&&yi(y)){var B=(an(y)+"e").split("e"),re=f(B[0]+"e"+(+B[1]+T));return B=(an(re)+"e").split("e"),+(B[0]+"e"+(+B[1]-T))}return f(y)}}var i8=bl&&1/uo(new bl([,-0]))[1]==O?function(u){return new bl(u)}:lv;function lw(u){return function(f){var y=Tr(f);return y==ht?Bn(f):y==Se?c(f):yg(f,u(f))}}function Fa(u,f,y,T,B,re,ve,Ee){var Te=f&C;if(!Te&&typeof u!="function")throw new ne(a);var Ue=T?T.length:0;if(Ue||(f&=-97,T=B=n),ve=ve===n?ve:Zt(kt(ve),0),Ee=Ee===n?Ee:kt(Ee),Ue-=B?B.length:0,f&F){var qe=T,Ze=B;T=B=n}var at=Te?n:zg(u),vt=[u,f,y,T,B,qe,Ze,re,ve,Ee];if(at&&b8(vt,at),u=vt[0],f=vt[1],y=vt[2],T=vt[3],B=vt[4],Ee=vt[9]=vt[9]===n?Te?0:u.length:Zt(vt[9]-Ue,0),!Ee&&f&(S|k)&&(f&=-25),!f||f==D)var Et=t8(u,f,y);else f==S||f==k?Et=n8(u,f,Ee):(f==P||f==(D|P))&&!B.length?Et=r8(u,f,y,T):Et=gh.apply(n,vt);var Lt=at?Ux:$w;return xw(Lt(Et,vt),u,f)}function cw(u,f,y,T){return u===n||gs(u,Ie[y])&&!Ne.call(T,y)?f:u}function fw(u,f,y,T,B,re){return Mn(u)&&Mn(f)&&(re.set(f,u),dh(u,f,n,fw,re),re.delete(f)),u}function s8(u){return mf(u)?n:u}function dw(u,f,y,T,B,re){var ve=y&w,Ee=u.length,Te=f.length;if(Ee!=Te&&!(ve&&Te>Ee))return!1;var Ue=re.get(u),qe=re.get(f);if(Ue&&qe)return Ue==f&&qe==u;var Ze=-1,at=!0,vt=y&$?new iu:n;for(re.set(u,f),re.set(f,u);++Ze<Ee;){var Et=u[Ze],Lt=f[Ze];if(T)var St=ve?T(Lt,Et,Ze,f,u,re):T(Et,Lt,Ze,u,f,re);if(St!==n){if(St)continue;at=!1;break}if(vt){if(!Bs(f,function(Nt,Ht){if(!mn(vt,Ht)&&(Et===Nt||B(Et,Nt,y,T,re)))return vt.push(Ht)})){at=!1;break}}else if(!(Et===Lt||B(Et,Lt,y,T,re))){at=!1;break}}return re.delete(u),re.delete(f),at}function a8(u,f,y,T,B,re,ve){switch(y){case xt:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case Rt:return!(u.byteLength!=f.byteLength||!re(new Oe(u),new Oe(f)));case Be:case He:case Gt:return gs(+u,+f);case Le:return u.name==f.name&&u.message==f.message;case ye:case _e:return u==f+"";case ht:var Ee=Bn;case Se:var Te=T&w;if(Ee||(Ee=uo),u.size!=f.size&&!Te)return!1;var Ue=ve.get(u);if(Ue)return Ue==f;T|=$,ve.set(u,f);var qe=dw(Ee(u),Ee(f),T,B,re,ve);return ve.delete(u),qe;case Je:if(af)return af.call(u)==af.call(f)}return!1}function o8(u,f,y,T,B,re){var ve=y&w,Ee=Kg(u),Te=Ee.length,Ue=Kg(f),qe=Ue.length;if(Te!=qe&&!ve)return!1;for(var Ze=Te;Ze--;){var at=Ee[Ze];if(!(ve?at in f:Ne.call(f,at)))return!1}var vt=re.get(u),Et=re.get(f);if(vt&&Et)return vt==f&&Et==u;var Lt=!0;re.set(u,f),re.set(f,u);for(var St=ve;++Ze<Te;){at=Ee[Ze];var Nt=u[at],Ht=f[at];if(T)var Ci=ve?T(Ht,Nt,at,f,u,re):T(Nt,Ht,at,u,f,re);if(!(Ci===n?Nt===Ht||B(Nt,Ht,y,T,re):Ci)){Lt=!1;break}St||(St=at=="constructor")}if(Lt&&!St){var Nr=u.constructor,Ei=f.constructor;Nr!=Ei&&"constructor"in u&&"constructor"in f&&!(typeof Nr=="function"&&Nr instanceof Nr&&typeof Ei=="function"&&Ei instanceof Ei)&&(Lt=!1)}return re.delete(u),re.delete(f),Lt}function Ra(u){return Zg(yw(u,n,Aw),u+"")}function Kg(u){return Fx(u,hr,Wg)}function Ug(u){return Fx(u,ri,hw)}var zg=ah?function(u){return ah.get(u)}:lv;function $h(u){for(var f=u.name+"",y=$l[f],T=Ne.call($l,f)?y.length:0;T--;){var B=y[T],re=B.func;if(re==null||re==u)return B.name}return f}function El(u){var f=Ne.call(Z,"placeholder")?Z:u;return f.placeholder}function wt(){var u=Z.iteratee||ov;return u=u===ov?Ox:u,arguments.length?u(arguments[0],arguments[1]):u}function xh(u,f){var y=u.__data__;return m8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function qg(u){for(var f=hr(u),y=f.length;y--;){var T=f[y],B=u[T];f[y]=[T,B,gw(B)]}return f}function ou(u,f){var y=xg(u,f);return kx(y)?y:n}function u8(u){var f=Ne.call(u,Nn),y=u[Nn];try{u[Nn]=n;var T=!0}catch{}var B=Ve.call(u);return T&&(f?u[Nn]=y:delete u[Nn]),B}var Wg=ki?function(u){return u==null?[]:(u=L(u),Sr(ki(u),function(f){return $n.call(u,f)}))}:cv,hw=ki?function(u){for(var f=[];u;)ls(f,Wg(u)),u=At(u);return f}:cv,Tr=Vr;(ps&&Tr(new ps(new ArrayBuffer(1)))!=xt||Us&&Tr(new Us)!=ht||lo&&Tr(lo.resolve())!=Zr||bl&&Tr(new bl)!=Se||rf&&Tr(new rf)!=Qe)&&(Tr=function(u){var f=Vr(u),y=f==_t?u.constructor:n,T=y?uu(y):"";if(T)switch(T){case z9:return xt;case q9:return ht;case W9:return Zr;case H9:return Se;case G9:return Qe}return f});function l8(u,f,y){for(var T=-1,B=y.length;++T<B;){var re=y[T],ve=re.size;switch(re.type){case"drop":u+=ve;break;case"dropRight":f-=ve;break;case"take":f=xn(f,u+ve);break;case"takeRight":u=Zt(u,f-ve);break}}return{start:u,end:f}}function c8(u){var f=u.match(Er);return f?f[1].split(rl):[]}function pw(u,f,y){f=ho(f,u);for(var T=-1,B=f.length,re=!1;++T<B;){var ve=Ws(f[T]);if(!(re=u!=null&&y(u,ve)))break;u=u[ve]}return re||++T!=B?re:(B=u==null?0:u.length,!!B&&Th(B)&&ka(ve,B)&&(Mt(u)||lu(u)))}function f8(u){var f=u.length,y=new u.constructor(f);return f&&typeof u[0]=="string"&&Ne.call(u,"index")&&(y.index=u.index,y.input=u.input),y}function mw(u){return typeof u.constructor=="function"&&!hf(u)?xl(At(u)):{}}function d8(u,f,y){var T=u.constructor;switch(f){case Rt:return Bg(u);case Be:case He:return new T(+u);case xt:return YL(u,y);case yn:case Cr:case zt:case Pt:case It:case qt:case gr:case Xr:case di:return Xx(u,y);case ht:return new T;case Gt:case _e:return new T(u);case ye:return ZL(u);case Se:return new T;case Je:return XL(u)}}function h8(u,f){var y=f.length;if(!y)return u;var T=y-1;return f[T]=(y>1?"& ":"")+f[T],f=f.join(y>2?", ":" "),u.replace(nl,`{
|
|
68
|
+
/* [wrapped with `+f+`] */
|
|
69
|
+
`)}function p8(u){return Mt(u)||lu(u)||!!(dr&&u&&u[dr])}function ka(u,f){var y=typeof u;return f=f??V,!!f&&(y=="number"||y!="symbol"&&Rs.test(u))&&u>-1&&u%1==0&&u<f}function Br(u,f,y){if(!Mn(y))return!1;var T=typeof f;return(T=="number"?ni(y)&&ka(f,y.length):T=="string"&&f in y)?gs(y[f],u):!1}function Hg(u,f){if(Mt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||wi(u)?!0:tl.test(u)||!No.test(u)||f!=null&&u in L(f)}function m8(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function Gg(u){var f=$h(u),y=Z[f];if(typeof y!="function"||!(f in Ut.prototype))return!1;if(u===y)return!0;var T=zg(y);return!!T&&u===T[0]}function g8(u){return!!ct&&ct in u}var v8=nt?Oa:fv;function hf(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Ie;return u===y}function gw(u){return u===u&&!Mn(u)}function vw(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in L(y))}}function y8(u){var f=Dh(u,function(T){return y.size===d&&y.clear(),T}),y=f.cache;return f}function b8(u,f){var y=u[1],T=f[1],B=y|T,re=B<(D|C|U),ve=T==U&&y==S||T==U&&y==ie&&u[7].length<=f[8]||T==(U|ie)&&f[7].length<=f[8]&&y==S;if(!(re||ve))return u;T&D&&(u[2]=f[2],B|=y&D?0:E);var Ee=f[3];if(Ee){var Te=u[3];u[3]=Te?Qx(Te,Ee,f[4]):Ee,u[4]=Te?Qr(u[3],h):f[4]}return Ee=f[5],Ee&&(Te=u[5],u[5]=Te?ew(Te,Ee,f[6]):Ee,u[6]=Te?Qr(u[5],h):f[6]),Ee=f[7],Ee&&(u[7]=Ee),T&U&&(u[8]=u[8]==null?f[8]:xn(u[8],f[8])),u[9]==null&&(u[9]=f[9]),u[0]=f[0],u[1]=B,u}function $8(u){var f=[];if(u!=null)for(var y in L(u))f.push(y);return f}function x8(u){return Ve.call(u)}function yw(u,f,y){return f=Zt(f===n?u.length-1:f,0),function(){for(var T=arguments,B=-1,re=Zt(T.length-f,0),ve=G(re);++B<re;)ve[B]=T[f+B];B=-1;for(var Ee=G(f+1);++B<f;)Ee[B]=T[B];return Ee[f]=y(ve),Vn(u,this,Ee)}}function bw(u,f){return f.length<2?u:au(u,Li(f,0,-1))}function w8(u,f){for(var y=u.length,T=xn(f.length,y),B=ti(u);T--;){var re=f[T];u[T]=ka(re,y)?B[re]:n}return u}function Yg(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var $w=ww(Ux),pf=ft||function(u,f){return An.setTimeout(u,f)},Zg=ww(qL);function xw(u,f,y){var T=f+"";return Zg(u,h8(T,C8(c8(T),y)))}function ww(u){var f=0,y=0;return function(){var T=Ks(),B=Ce-(T-y);if(y=T,B>0){if(++f>=xe)return arguments[0]}else f=0;return u.apply(n,arguments)}}function wh(u,f){var y=-1,T=u.length,B=T-1;for(f=f===n?T:f;++y<f;){var re=Fg(y,B),ve=u[re];u[re]=u[y],u[y]=ve}return u.length=f,u}var Cw=y8(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(is,function(y,T,B,re){f.push(B?re.replace(Jr,"$1"):T||y)}),f});function Ws(u){if(typeof u=="string"||wi(u))return u;var f=u+"";return f=="0"&&1/u==-O?"-0":f}function uu(u){if(u!=null){try{return et.call(u)}catch{}try{return u+""}catch{}}return""}function C8(u,f){return hn(Pe,function(y){var T="_."+y[0];f&y[1]&&!Vs(u,T)&&u.push(T)}),u.sort()}function Ew(u){if(u instanceof Ut)return u.clone();var f=new Oi(u.__wrapped__,u.__chain__);return f.__actions__=ti(u.__actions__),f.__index__=u.__index__,f.__values__=u.__values__,f}function E8(u,f,y){(y?Br(u,f,y):f===n)?f=1:f=Zt(kt(f),0);var T=u==null?0:u.length;if(!T||f<1)return[];for(var B=0,re=0,ve=G(fn(T/f));B<T;)ve[re++]=Li(u,B,B+=f);return ve}function S8(u){for(var f=-1,y=u==null?0:u.length,T=0,B=[];++f<y;){var re=u[f];re&&(B[T++]=re)}return B}function D8(){var u=arguments.length;if(!u)return[];for(var f=G(u-1),y=arguments[0],T=u;T--;)f[T-1]=arguments[T];return ls(Mt(y)?ti(y):[y],$r(f,1))}var A8=Bt(function(u,f){return qn(u)?uf(u,$r(f,1,qn,!0)):[]}),T8=Bt(function(u,f){var y=Vi(f);return qn(y)&&(y=n),qn(u)?uf(u,$r(f,1,qn,!0),wt(y,2)):[]}),P8=Bt(function(u,f){var y=Vi(f);return qn(y)&&(y=n),qn(u)?uf(u,$r(f,1,qn,!0),n,y):[]});function _8(u,f,y){var T=u==null?0:u.length;return T?(f=y||f===n?1:kt(f),Li(u,f<0?0:f,T)):[]}function M8(u,f,y){var T=u==null?0:u.length;return T?(f=y||f===n?1:kt(f),f=T-f,Li(u,0,f<0?0:f)):[]}function F8(u,f){return u&&u.length?ph(u,wt(f,3),!0,!0):[]}function R8(u,f){return u&&u.length?ph(u,wt(f,3),!0):[]}function k8(u,f,y,T){var B=u==null?0:u.length;return B?(y&&typeof y!="number"&&Br(u,f,y)&&(y=0,T=B),DL(u,f,y,T)):[]}function Sw(u,f,y){var T=u==null?0:u.length;if(!T)return-1;var B=y==null?0:kt(y);return B<0&&(B=Zt(T+B,0)),eu(u,wt(f,3),B)}function Dw(u,f,y){var T=u==null?0:u.length;if(!T)return-1;var B=T-1;return y!==n&&(B=kt(y),B=y<0?Zt(T+B,0):xn(B,T-1)),eu(u,wt(f,3),B,!0)}function Aw(u){var f=u==null?0:u.length;return f?$r(u,1):[]}function O8(u){var f=u==null?0:u.length;return f?$r(u,O):[]}function I8(u,f){var y=u==null?0:u.length;return y?(f=f===n?1:kt(f),$r(u,f)):[]}function L8(u){for(var f=-1,y=u==null?0:u.length,T={};++f<y;){var B=u[f];T[B[0]]=B[1]}return T}function Tw(u){return u&&u.length?u[0]:n}function V8(u,f,y){var T=u==null?0:u.length;if(!T)return-1;var B=y==null?0:kt(y);return B<0&&(B=Zt(T+B,0)),Aa(u,f,B)}function B8(u){var f=u==null?0:u.length;return f?Li(u,0,-1):[]}var N8=Bt(function(u){var f=cn(u,Lg);return f.length&&f[0]===u[0]?Ag(f):[]}),j8=Bt(function(u){var f=Vi(u),y=cn(u,Lg);return f===Vi(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Ag(y,wt(f,2)):[]}),K8=Bt(function(u){var f=Vi(u),y=cn(u,Lg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Ag(y,n,f):[]});function U8(u,f){return u==null?"":fs.call(u,f)}function Vi(u){var f=u==null?0:u.length;return f?u[f-1]:n}function z8(u,f,y){var T=u==null?0:u.length;if(!T)return-1;var B=T;return y!==n&&(B=kt(y),B=B<0?Zt(T+B,0):xn(B,T-1)),f===f?v(u,f,B):eu(u,Qc,B,!0)}function q8(u,f){return u&&u.length?Bx(u,kt(f)):n}var W8=Bt(Pw);function Pw(u,f){return u&&u.length&&f&&f.length?Mg(u,f):u}function H8(u,f,y){return u&&u.length&&f&&f.length?Mg(u,f,wt(y,2)):u}function G8(u,f,y){return u&&u.length&&f&&f.length?Mg(u,f,n,y):u}var Y8=Ra(function(u,f){var y=u==null?0:u.length,T=Cg(u,f);return Kx(u,cn(f,function(B){return ka(B,y)?+B:B}).sort(Jx)),T});function Z8(u,f){var y=[];if(!(u&&u.length))return y;var T=-1,B=[],re=u.length;for(f=wt(f,3);++T<re;){var ve=u[T];f(ve,T,u)&&(y.push(ve),B.push(T))}return Kx(u,B),y}function Xg(u){return u==null?u:$i.call(u)}function X8(u,f,y){var T=u==null?0:u.length;return T?(y&&typeof y!="number"&&Br(u,f,y)?(f=0,y=T):(f=f==null?0:kt(f),y=y===n?T:kt(y)),Li(u,f,y)):[]}function J8(u,f){return hh(u,f)}function Q8(u,f,y){return kg(u,f,wt(y,2))}function eV(u,f){var y=u==null?0:u.length;if(y){var T=hh(u,f);if(T<y&&gs(u[T],f))return T}return-1}function tV(u,f){return hh(u,f,!0)}function nV(u,f,y){return kg(u,f,wt(y,2),!0)}function rV(u,f){var y=u==null?0:u.length;if(y){var T=hh(u,f,!0)-1;if(gs(u[T],f))return T}return-1}function iV(u){return u&&u.length?zx(u):[]}function sV(u,f){return u&&u.length?zx(u,wt(f,2)):[]}function aV(u){var f=u==null?0:u.length;return f?Li(u,1,f):[]}function oV(u,f,y){return u&&u.length?(f=y||f===n?1:kt(f),Li(u,0,f<0?0:f)):[]}function uV(u,f,y){var T=u==null?0:u.length;return T?(f=y||f===n?1:kt(f),f=T-f,Li(u,f<0?0:f,T)):[]}function lV(u,f){return u&&u.length?ph(u,wt(f,3),!1,!0):[]}function cV(u,f){return u&&u.length?ph(u,wt(f,3)):[]}var fV=Bt(function(u){return fo($r(u,1,qn,!0))}),dV=Bt(function(u){var f=Vi(u);return qn(f)&&(f=n),fo($r(u,1,qn,!0),wt(f,2))}),hV=Bt(function(u){var f=Vi(u);return f=typeof f=="function"?f:n,fo($r(u,1,qn,!0),n,f)});function pV(u){return u&&u.length?fo(u):[]}function mV(u,f){return u&&u.length?fo(u,wt(f,2)):[]}function gV(u,f){return f=typeof f=="function"?f:n,u&&u.length?fo(u,n,f):[]}function Jg(u){if(!(u&&u.length))return[];var f=0;return u=Sr(u,function(y){if(qn(y))return f=Zt(y.length,f),!0}),vl(f,function(y){return cn(u,ml(y))})}function _w(u,f){if(!(u&&u.length))return[];var y=Jg(u);return f==null?y:cn(y,function(T){return Vn(f,n,T)})}var vV=Bt(function(u,f){return qn(u)?uf(u,f):[]}),yV=Bt(function(u){return Ig(Sr(u,qn))}),bV=Bt(function(u){var f=Vi(u);return qn(f)&&(f=n),Ig(Sr(u,qn),wt(f,2))}),$V=Bt(function(u){var f=Vi(u);return f=typeof f=="function"?f:n,Ig(Sr(u,qn),n,f)}),xV=Bt(Jg);function wV(u,f){return Gx(u||[],f||[],of)}function CV(u,f){return Gx(u||[],f||[],ff)}var EV=Bt(function(u){var f=u.length,y=f>1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,_w(u,y)});function Mw(u){var f=Z(u);return f.__chain__=!0,f}function SV(u,f){return f(u),u}function Ch(u,f){return f(u)}var DV=Ra(function(u){var f=u.length,y=f?u[0]:0,T=this.__wrapped__,B=function(re){return Cg(re,u)};return f>1||this.__actions__.length||!(T instanceof Ut)||!ka(y)?this.thru(B):(T=T.slice(y,+y+(f?1:0)),T.__actions__.push({func:Ch,args:[B],thisArg:n}),new Oi(T,this.__chain__).thru(function(re){return f&&!re.length&&re.push(n),re}))});function AV(){return Mw(this)}function TV(){return new Oi(this.value(),this.__chain__)}function PV(){this.__values__===n&&(this.__values__=qw(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function _V(){return this}function MV(u){for(var f,y=this;y instanceof uh;){var T=Ew(y);T.__index__=0,T.__values__=n,f?B.__wrapped__=T:f=T;var B=T;y=y.__wrapped__}return B.__wrapped__=u,f}function FV(){var u=this.__wrapped__;if(u instanceof Ut){var f=u;return this.__actions__.length&&(f=new Ut(this)),f=f.reverse(),f.__actions__.push({func:Ch,args:[Xg],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(Xg)}function RV(){return Hx(this.__wrapped__,this.__actions__)}var kV=mh(function(u,f,y){Ne.call(u,y)?++u[y]:Ma(u,y,1)});function OV(u,f,y){var T=Mt(u)?Da:SL;return y&&Br(u,f,y)&&(f=n),T(u,wt(f,3))}function IV(u,f){var y=Mt(u)?Sr:_x;return y(u,wt(f,3))}var LV=iw(Sw),VV=iw(Dw);function BV(u,f){return $r(Eh(u,f),1)}function NV(u,f){return $r(Eh(u,f),O)}function jV(u,f,y){return y=y===n?1:kt(y),$r(Eh(u,f),y)}function Fw(u,f){var y=Mt(u)?hn:co;return y(u,wt(f,3))}function Rw(u,f){var y=Mt(u)?cr:Px;return y(u,wt(f,3))}var KV=mh(function(u,f,y){Ne.call(u,y)?u[y].push(f):Ma(u,y,[f])});function UV(u,f,y,T){u=ni(u)?u:Dl(u),y=y&&!T?kt(y):0;var B=u.length;return y<0&&(y=Zt(B+y,0)),Ph(u)?y<=B&&u.indexOf(f,y)>-1:!!B&&Aa(u,f,y)>-1}var zV=Bt(function(u,f,y){var T=-1,B=typeof f=="function",re=ni(u)?G(u.length):[];return co(u,function(ve){re[++T]=B?Vn(f,ve,y):lf(ve,f,y)}),re}),qV=mh(function(u,f,y){Ma(u,y,f)});function Eh(u,f){var y=Mt(u)?cn:Ix;return y(u,wt(f,3))}function WV(u,f,y,T){return u==null?[]:(Mt(f)||(f=f==null?[]:[f]),y=T?n:y,Mt(y)||(y=y==null?[]:[y]),Nx(u,f,y))}var HV=mh(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function GV(u,f,y){var T=Mt(u)?pl:ef,B=arguments.length<3;return T(u,wt(f,4),y,B,co)}function YV(u,f,y){var T=Mt(u)?Xo:ef,B=arguments.length<3;return T(u,wt(f,4),y,B,Px)}function ZV(u,f){var y=Mt(u)?Sr:_x;return y(u,Ah(wt(f,3)))}function XV(u){var f=Mt(u)?Sx:UL;return f(u)}function JV(u,f,y){(y?Br(u,f,y):f===n)?f=1:f=kt(f);var T=Mt(u)?$L:zL;return T(u,f)}function QV(u){var f=Mt(u)?xL:WL;return f(u)}function eB(u){if(u==null)return 0;if(ni(u))return Ph(u)?x(u):u.length;var f=Tr(u);return f==ht||f==Se?u.size:Pg(u).length}function tB(u,f,y){var T=Mt(u)?Bs:HL;return y&&Br(u,f,y)&&(f=n),T(u,wt(f,3))}var nB=Bt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&Br(u,f[0],f[1])?f=[]:y>2&&Br(f[0],f[1],f[2])&&(f=[f[0]]),Nx(u,$r(f,1),[])}),Sh=br||function(){return An.Date.now()};function rB(u,f){if(typeof f!="function")throw new ne(a);return u=kt(u),function(){if(--u<1)return f.apply(this,arguments)}}function kw(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Fa(u,U,n,n,n,n,f)}function Ow(u,f){var y;if(typeof f!="function")throw new ne(a);return u=kt(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var Qg=Bt(function(u,f,y){var T=D;if(y.length){var B=Qr(y,El(Qg));T|=P}return Fa(u,T,f,y,B)}),Iw=Bt(function(u,f,y){var T=D|C;if(y.length){var B=Qr(y,El(Iw));T|=P}return Fa(f,T,u,y,B)});function Lw(u,f,y){f=y?n:f;var T=Fa(u,S,n,n,n,n,n,f);return T.placeholder=Lw.placeholder,T}function Vw(u,f,y){f=y?n:f;var T=Fa(u,k,n,n,n,n,n,f);return T.placeholder=Vw.placeholder,T}function Bw(u,f,y){var T,B,re,ve,Ee,Te,Ue=0,qe=!1,Ze=!1,at=!0;if(typeof u!="function")throw new ne(a);f=Bi(f)||0,Mn(y)&&(qe=!!y.leading,Ze="maxWait"in y,re=Ze?Zt(Bi(y.maxWait)||0,f):re,at="trailing"in y?!!y.trailing:at);function vt(Wn){var vs=T,La=B;return T=B=n,Ue=Wn,ve=u.apply(La,vs),ve}function Et(Wn){return Ue=Wn,Ee=pf(Nt,f),qe?vt(Wn):ve}function Lt(Wn){var vs=Wn-Te,La=Wn-Ue,iC=f-vs;return Ze?xn(iC,re-La):iC}function St(Wn){var vs=Wn-Te,La=Wn-Ue;return Te===n||vs>=f||vs<0||Ze&&La>=re}function Nt(){var Wn=Sh();if(St(Wn))return Ht(Wn);Ee=pf(Nt,Lt(Wn))}function Ht(Wn){return Ee=n,at&&T?vt(Wn):(T=B=n,ve)}function Ci(){Ee!==n&&Yx(Ee),Ue=0,T=Te=B=Ee=n}function Nr(){return Ee===n?ve:Ht(Sh())}function Ei(){var Wn=Sh(),vs=St(Wn);if(T=arguments,B=this,Te=Wn,vs){if(Ee===n)return Et(Te);if(Ze)return Yx(Ee),Ee=pf(Nt,f),vt(Te)}return Ee===n&&(Ee=pf(Nt,f)),ve}return Ei.cancel=Ci,Ei.flush=Nr,Ei}var iB=Bt(function(u,f){return Tx(u,1,f)}),sB=Bt(function(u,f,y){return Tx(u,Bi(f)||0,y)});function aB(u){return Fa(u,de)}function Dh(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new ne(a);var y=function(){var T=arguments,B=f?f.apply(this,T):T[0],re=y.cache;if(re.has(B))return re.get(B);var ve=u.apply(this,T);return y.cache=re.set(B,ve)||re,ve};return y.cache=new(Dh.Cache||_a),y}Dh.Cache=_a;function Ah(u){if(typeof u!="function")throw new ne(a);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function oB(u){return Ow(2,u)}var uB=GL(function(u,f){f=f.length==1&&Mt(f[0])?cn(f[0],Dr(wt())):cn($r(f,1),Dr(wt()));var y=f.length;return Bt(function(T){for(var B=-1,re=xn(T.length,y);++B<re;)T[B]=f[B].call(this,T[B]);return Vn(u,this,T)})}),ev=Bt(function(u,f){var y=Qr(f,El(ev));return Fa(u,P,n,f,y)}),Nw=Bt(function(u,f){var y=Qr(f,El(Nw));return Fa(u,F,n,f,y)}),lB=Ra(function(u,f){return Fa(u,ie,n,n,n,f)});function cB(u,f){if(typeof u!="function")throw new ne(a);return f=f===n?f:kt(f),Bt(u,f)}function fB(u,f){if(typeof u!="function")throw new ne(a);return f=f==null?0:Zt(kt(f),0),Bt(function(y){var T=y[f],B=po(y,0,f);return T&&ls(B,T),Vn(u,this,B)})}function dB(u,f,y){var T=!0,B=!0;if(typeof u!="function")throw new ne(a);return Mn(y)&&(T="leading"in y?!!y.leading:T,B="trailing"in y?!!y.trailing:B),Bw(u,f,{leading:T,maxWait:f,trailing:B})}function hB(u){return kw(u,1)}function pB(u,f){return ev(Vg(f),u)}function mB(){if(!arguments.length)return[];var u=arguments[0];return Mt(u)?u:[u]}function gB(u){return Ii(u,b)}function vB(u,f){return f=typeof f=="function"?f:n,Ii(u,b,f)}function yB(u){return Ii(u,m|b)}function bB(u,f){return f=typeof f=="function"?f:n,Ii(u,m|b,f)}function $B(u,f){return f==null||Ax(u,f,hr(f))}function gs(u,f){return u===f||u!==u&&f!==f}var xB=bh(Dg),wB=bh(function(u,f){return u>=f}),lu=Rx(function(){return arguments}())?Rx:function(u){return jn(u)&&Ne.call(u,"callee")&&!$n.call(u,"callee")},Mt=G.isArray,CB=Sa?Dr(Sa):ML;function ni(u){return u!=null&&Th(u.length)&&!Oa(u)}function qn(u){return jn(u)&&ni(u)}function EB(u){return u===!0||u===!1||jn(u)&&Vr(u)==Be}var mo=cs||fv,SB=nh?Dr(nh):FL;function DB(u){return jn(u)&&u.nodeType===1&&!mf(u)}function AB(u){if(u==null)return!0;if(ni(u)&&(Mt(u)||typeof u=="string"||typeof u.splice=="function"||mo(u)||Sl(u)||lu(u)))return!u.length;var f=Tr(u);if(f==ht||f==Se)return!u.size;if(hf(u))return!Pg(u).length;for(var y in u)if(Ne.call(u,y))return!1;return!0}function TB(u,f){return cf(u,f)}function PB(u,f,y){y=typeof y=="function"?y:n;var T=y?y(u,f):n;return T===n?cf(u,f,n,y):!!T}function tv(u){if(!jn(u))return!1;var f=Vr(u);return f==Le||f==Me||typeof u.message=="string"&&typeof u.name=="string"&&!mf(u)}function _B(u){return typeof u=="number"&&yi(u)}function Oa(u){if(!Mn(u))return!1;var f=Vr(u);return f==Ae||f==Ge||f==Xe||f==en}function jw(u){return typeof u=="number"&&u==kt(u)}function Th(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=V}function Mn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function jn(u){return u!=null&&typeof u=="object"}var Kw=rh?Dr(rh):kL;function MB(u,f){return u===f||Tg(u,f,qg(f))}function FB(u,f,y){return y=typeof y=="function"?y:n,Tg(u,f,qg(f),y)}function RB(u){return Uw(u)&&u!=+u}function kB(u){if(v8(u))throw new fe(s);return kx(u)}function OB(u){return u===null}function IB(u){return u==null}function Uw(u){return typeof u=="number"||jn(u)&&Vr(u)==Gt}function mf(u){if(!jn(u)||Vr(u)!=_t)return!1;var f=At(u);if(f===null)return!0;var y=Ne.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&et.call(y)==$e}var nv=Xc?Dr(Xc):OL;function LB(u){return jw(u)&&u>=-V&&u<=V}var zw=oo?Dr(oo):IL;function Ph(u){return typeof u=="string"||!Mt(u)&&jn(u)&&Vr(u)==_e}function wi(u){return typeof u=="symbol"||jn(u)&&Vr(u)==Je}var Sl=us?Dr(us):LL;function VB(u){return u===n}function BB(u){return jn(u)&&Tr(u)==Qe}function NB(u){return jn(u)&&Vr(u)==gt}var jB=bh(_g),KB=bh(function(u,f){return u<=f});function qw(u){if(!u)return[];if(ni(u))return Ph(u)?_(u):ti(u);if(Qn&&u[Qn])return js(u[Qn]());var f=Tr(u),y=f==ht?Bn:f==Se?uo:Dl;return y(u)}function Ia(u){if(!u)return u===0?u:0;if(u=Bi(u),u===O||u===-O){var f=u<0?-1:1;return f*te}return u===u?u:0}function kt(u){var f=Ia(u),y=f%1;return f===f?y?f-y:f:0}function Ww(u){return u?su(kt(u),0,le):0}function Bi(u){if(typeof u=="number")return u;if(wi(u))return j;if(Mn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=Mn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=sh(u);var y=pi.test(u);return y||jo.test(u)?sr(u.slice(2),y?2:8):as.test(u)?j:+u}function Hw(u){return qs(u,ri(u))}function UB(u){return u?su(kt(u),-V,V):u===0?u:0}function an(u){return u==null?"":xi(u)}var zB=wl(function(u,f){if(hf(f)||ni(f)){qs(f,hr(f),u);return}for(var y in f)Ne.call(f,y)&&of(u,y,f[y])}),Gw=wl(function(u,f){qs(f,ri(f),u)}),_h=wl(function(u,f,y,T){qs(f,ri(f),u,T)}),qB=wl(function(u,f,y,T){qs(f,hr(f),u,T)}),WB=Ra(Cg);function HB(u,f){var y=xl(u);return f==null?y:Dx(y,f)}var GB=Bt(function(u,f){u=L(u);var y=-1,T=f.length,B=T>2?f[2]:n;for(B&&Br(f[0],f[1],B)&&(T=1);++y<T;)for(var re=f[y],ve=ri(re),Ee=-1,Te=ve.length;++Ee<Te;){var Ue=ve[Ee],qe=u[Ue];(qe===n||gs(qe,Ie[Ue])&&!Ne.call(u,Ue))&&(u[Ue]=re[Ue])}return u}),YB=Bt(function(u){return u.push(n,fw),Vn(Yw,n,u)});function ZB(u,f){return Jc(u,wt(f,3),zs)}function XB(u,f){return Jc(u,wt(f,3),Sg)}function JB(u,f){return u==null?u:Eg(u,wt(f,3),ri)}function QB(u,f){return u==null?u:Mx(u,wt(f,3),ri)}function eN(u,f){return u&&zs(u,wt(f,3))}function tN(u,f){return u&&Sg(u,wt(f,3))}function nN(u){return u==null?[]:fh(u,hr(u))}function rN(u){return u==null?[]:fh(u,ri(u))}function rv(u,f,y){var T=u==null?n:au(u,f);return T===n?y:T}function iN(u,f){return u!=null&&pw(u,f,AL)}function iv(u,f){return u!=null&&pw(u,f,TL)}var sN=aw(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ve.call(f)),u[f]=y},av(ii)),aN=aw(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ve.call(f)),Ne.call(u,f)?u[f].push(y):u[f]=[y]},wt),oN=Bt(lf);function hr(u){return ni(u)?Ex(u):Pg(u)}function ri(u){return ni(u)?Ex(u,!0):VL(u)}function uN(u,f){var y={};return f=wt(f,3),zs(u,function(T,B,re){Ma(y,f(T,B,re),T)}),y}function lN(u,f){var y={};return f=wt(f,3),zs(u,function(T,B,re){Ma(y,B,f(T,B,re))}),y}var cN=wl(function(u,f,y){dh(u,f,y)}),Yw=wl(function(u,f,y,T){dh(u,f,y,T)}),fN=Ra(function(u,f){var y={};if(u==null)return y;var T=!1;f=cn(f,function(re){return re=ho(re,u),T||(T=re.length>1),re}),qs(u,Ug(u),y),T&&(y=Ii(y,m|g|b,s8));for(var B=f.length;B--;)Og(y,f[B]);return y});function dN(u,f){return Zw(u,Ah(wt(f)))}var hN=Ra(function(u,f){return u==null?{}:NL(u,f)});function Zw(u,f){if(u==null)return{};var y=cn(Ug(u),function(T){return[T]});return f=wt(f),jx(u,y,function(T,B){return f(T,B[0])})}function pN(u,f,y){f=ho(f,u);var T=-1,B=f.length;for(B||(B=1,u=n);++T<B;){var re=u==null?n:u[Ws(f[T])];re===n&&(T=B,re=y),u=Oa(re)?re.call(u):re}return u}function mN(u,f,y){return u==null?u:ff(u,f,y)}function gN(u,f,y,T){return T=typeof T=="function"?T:n,u==null?u:ff(u,f,y,T)}var Xw=lw(hr),Jw=lw(ri);function vN(u,f,y){var T=Mt(u),B=T||mo(u)||Sl(u);if(f=wt(f,4),y==null){var re=u&&u.constructor;B?y=T?new re:[]:Mn(u)?y=Oa(re)?xl(At(u)):{}:y={}}return(B?hn:zs)(u,function(ve,Ee,Te){return f(y,ve,Ee,Te)}),y}function yN(u,f){return u==null?!0:Og(u,f)}function bN(u,f,y){return u==null?u:Wx(u,f,Vg(y))}function $N(u,f,y,T){return T=typeof T=="function"?T:n,u==null?u:Wx(u,f,Vg(y),T)}function Dl(u){return u==null?[]:tf(u,hr(u))}function xN(u){return u==null?[]:tf(u,ri(u))}function wN(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Bi(y),y=y===y?y:0),f!==n&&(f=Bi(f),f=f===f?f:0),su(Bi(u),f,y)}function CN(u,f,y){return f=Ia(f),y===n?(y=f,f=0):y=Ia(y),u=Bi(u),PL(u,f,y)}function EN(u,f,y){if(y&&typeof y!="boolean"&&Br(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Ia(u),f===n?(f=u,u=0):f=Ia(f)),u>f){var T=u;u=f,f=T}if(y||u%1||f%1){var B=hs();return xn(u+B*(f-u+bn("1e-"+((B+"").length-1))),f)}return Fg(u,f)}var SN=Cl(function(u,f,y){return f=f.toLowerCase(),u+(y?Qw(f):f)});function Qw(u){return sv(an(u).toLowerCase())}function eC(u){return u=an(u),u&&u.replace(mi,$g).replace(wa,"")}function DN(u,f,y){u=an(u),f=xi(f);var T=u.length;y=y===n?T:su(kt(y),0,T);var B=y;return y-=f.length,y>=0&&u.slice(y,B)==f}function AN(u){return u=an(u),u&&jc.test(u)?u.replace(hi,Ta):u}function TN(u){return u=an(u),u&&yt.test(u)?u.replace(ss,"\\$&"):u}var PN=Cl(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),_N=Cl(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),MN=rw("toLowerCase");function FN(u,f,y){u=an(u),f=kt(f);var T=f?x(u):0;if(!f||T>=f)return u;var B=(f-T)/2;return yh(ei(B),y)+u+yh(fn(B),y)}function RN(u,f,y){u=an(u),f=kt(f);var T=f?x(u):0;return f&&T<f?u+yh(f-T,y):u}function kN(u,f,y){u=an(u),f=kt(f);var T=f?x(u):0;return f&&T<f?yh(f-T,y)+u:u}function ON(u,f,y){return y||f==null?f=0:f&&(f=+f),bi(an(u).replace(Dn,""),f||0)}function IN(u,f,y){return(y?Br(u,f,y):f===n)?f=1:f=kt(f),Rg(an(u),f)}function LN(){var u=arguments,f=an(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var VN=Cl(function(u,f,y){return u+(y?"_":"")+f.toLowerCase()});function BN(u,f,y){return y&&typeof y!="number"&&Br(u,f,y)&&(f=y=n),y=y===n?le:y>>>0,y?(u=an(u),u&&(typeof f=="string"||f!=null&&!nv(f))&&(f=xi(f),!f&&Ar(u))?po(_(u),0,y):u.split(f,y)):[]}var NN=Cl(function(u,f,y){return u+(y?" ":"")+sv(f)});function jN(u,f,y){return u=an(u),y=y==null?0:su(kt(y),0,u.length),f=xi(f),u.slice(y,y+f.length)==f}function KN(u,f,y){var T=Z.templateSettings;y&&Br(u,f,y)&&(f=n),u=an(u),f=_h({},f,T,cw);var B=_h({},f.imports,T.imports,cw),re=hr(B),ve=tf(B,re),Ee,Te,Ue=0,qe=f.interpolate||Ln,Ze="__p += '",at=N((f.escape||Ln).source+"|"+qe.source+"|"+(qe===el?st:Ln).source+"|"+(f.evaluate||Ln).source+"|$","g"),vt="//# sourceURL="+(Ne.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ea+"]")+`
|
|
70
|
+
`;u.replace(at,function(St,Nt,Ht,Ci,Nr,Ei){return Ht||(Ht=Ci),Ze+=u.slice(Ue,Ei).replace(ro,vi),Nt&&(Ee=!0,Ze+=`' +
|
|
71
|
+
__e(`+Nt+`) +
|
|
72
|
+
'`),Nr&&(Te=!0,Ze+=`';
|
|
73
|
+
`+Nr+`;
|
|
74
|
+
__p += '`),Ht&&(Ze+=`' +
|
|
75
|
+
((__t = (`+Ht+`)) == null ? '' : __t) +
|
|
76
|
+
'`),Ue=Ei+St.length,St}),Ze+=`';
|
|
77
|
+
`;var Et=Ne.call(f,"variable")&&f.variable;if(!Et)Ze=`with (obj) {
|
|
78
|
+
`+Ze+`
|
|
79
|
+
}
|
|
80
|
+
`;else if(Uc.test(Et))throw new fe(o);Ze=(Te?Ze.replace(kr,""):Ze).replace(Fs,"$1").replace(Bo,"$1;"),Ze="function("+(Et||"obj")+`) {
|
|
81
|
+
`+(Et?"":`obj || (obj = {});
|
|
82
|
+
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(Te?`, __j = Array.prototype.join;
|
|
83
|
+
function print() { __p += __j.call(arguments, '') }
|
|
84
|
+
`:`;
|
|
85
|
+
`)+Ze+`return __p
|
|
86
|
+
}`;var Lt=nC(function(){return W(re,vt+"return "+Ze).apply(n,ve)});if(Lt.source=Ze,tv(Lt))throw Lt;return Lt}function UN(u){return an(u).toLowerCase()}function zN(u){return an(u).toUpperCase()}function qN(u,f,y){if(u=an(u),u&&(y||f===n))return sh(u);if(!u||!(f=xi(f)))return u;var T=_(u),B=_(f),re=yl(T,B),ve=fr(T,B)+1;return po(T,re,ve).join("")}function WN(u,f,y){if(u=an(u),u&&(y||f===n))return u.slice(0,M(u)+1);if(!u||!(f=xi(f)))return u;var T=_(u),B=fr(T,_(f))+1;return po(T,0,B).join("")}function HN(u,f,y){if(u=an(u),u&&(y||f===n))return u.replace(Dn,"");if(!u||!(f=xi(f)))return u;var T=_(u),B=yl(T,_(f));return po(T,B).join("")}function GN(u,f){var y=ae,T=I;if(Mn(f)){var B="separator"in f?f.separator:B;y="length"in f?kt(f.length):y,T="omission"in f?xi(f.omission):T}u=an(u);var re=u.length;if(Ar(u)){var ve=_(u);re=ve.length}if(y>=re)return u;var Ee=y-x(T);if(Ee<1)return T;var Te=ve?po(ve,0,Ee).join(""):u.slice(0,Ee);if(B===n)return Te+T;if(ve&&(Ee+=Te.length-Ee),nv(B)){if(u.slice(Ee).search(B)){var Ue,qe=Te;for(B.global||(B=N(B.source,an(dn.exec(B))+"g")),B.lastIndex=0;Ue=B.exec(qe);)var Ze=Ue.index;Te=Te.slice(0,Ze===n?Ee:Ze)}}else if(u.indexOf(xi(B),Ee)!=Ee){var at=Te.lastIndexOf(B);at>-1&&(Te=Te.slice(0,at))}return Te+T}function YN(u){return u=an(u),u&&pa.test(u)?u.replace(bt,q):u}var ZN=Cl(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),sv=rw("toUpperCase");function tC(u,f,y){return u=an(u),f=y?n:f,f===n?nf(u)?be(u):vg(u):u.match(f)||[]}var nC=Bt(function(u,f){try{return Vn(u,n,f)}catch(y){return tv(y)?y:new fe(y)}}),XN=Ra(function(u,f){return hn(f,function(y){y=Ws(y),Ma(u,y,Qg(u[y],u))}),u});function JN(u){var f=u==null?0:u.length,y=wt();return u=f?cn(u,function(T){if(typeof T[1]!="function")throw new ne(a);return[y(T[0]),T[1]]}):[],Bt(function(T){for(var B=-1;++B<f;){var re=u[B];if(Vn(re[0],this,T))return Vn(re[1],this,T)}})}function QN(u){return EL(Ii(u,m))}function av(u){return function(){return u}}function ej(u,f){return u==null||u!==u?f:u}var tj=sw(),nj=sw(!0);function ii(u){return u}function ov(u){return Ox(typeof u=="function"?u:Ii(u,m))}function rj(u){return Lx(Ii(u,m))}function ij(u,f){return Vx(u,Ii(f,m))}var sj=Bt(function(u,f){return function(y){return lf(y,u,f)}}),aj=Bt(function(u,f){return function(y){return lf(u,y,f)}});function uv(u,f,y){var T=hr(f),B=fh(f,T);y==null&&!(Mn(f)&&(B.length||!T.length))&&(y=f,f=u,u=this,B=fh(f,hr(f)));var re=!(Mn(y)&&"chain"in y)||!!y.chain,ve=Oa(u);return hn(B,function(Ee){var Te=f[Ee];u[Ee]=Te,ve&&(u.prototype[Ee]=function(){var Ue=this.__chain__;if(re||Ue){var qe=u(this.__wrapped__),Ze=qe.__actions__=ti(this.__actions__);return Ze.push({func:Te,args:arguments,thisArg:u}),qe.__chain__=Ue,qe}return Te.apply(u,ls([this.value()],arguments))})}),u}function oj(){return An._===this&&(An._=ce),this}function lv(){}function uj(u){return u=kt(u),Bt(function(f){return Bx(f,u)})}var lj=Ng(cn),cj=Ng(Da),fj=Ng(Bs);function rC(u){return Hg(u)?ml(Ws(u)):jL(u)}function dj(u){return function(f){return u==null?n:au(u,f)}}var hj=ow(),pj=ow(!0);function cv(){return[]}function fv(){return!1}function mj(){return{}}function gj(){return""}function vj(){return!0}function yj(u,f){if(u=kt(u),u<1||u>V)return[];var y=le,T=xn(u,le);f=wt(f),u-=le;for(var B=vl(T,f);++y<u;)f(y);return B}function bj(u){return Mt(u)?cn(u,Ws):wi(u)?[u]:ti(Cw(an(u)))}function $j(u){var f=++ot;return an(u)+f}var xj=vh(function(u,f){return u+f},0),wj=jg("ceil"),Cj=vh(function(u,f){return u/f},1),Ej=jg("floor");function Sj(u){return u&&u.length?ch(u,ii,Dg):n}function Dj(u,f){return u&&u.length?ch(u,wt(f,2),Dg):n}function Aj(u){return tu(u,ii)}function Tj(u,f){return tu(u,wt(f,2))}function Pj(u){return u&&u.length?ch(u,ii,_g):n}function _j(u,f){return u&&u.length?ch(u,wt(f,2),_g):n}var Mj=vh(function(u,f){return u*f},1),Fj=jg("round"),Rj=vh(function(u,f){return u-f},0);function kj(u){return u&&u.length?Ns(u,ii):0}function Oj(u,f){return u&&u.length?Ns(u,wt(f,2)):0}return Z.after=rB,Z.ary=kw,Z.assign=zB,Z.assignIn=Gw,Z.assignInWith=_h,Z.assignWith=qB,Z.at=WB,Z.before=Ow,Z.bind=Qg,Z.bindAll=XN,Z.bindKey=Iw,Z.castArray=mB,Z.chain=Mw,Z.chunk=E8,Z.compact=S8,Z.concat=D8,Z.cond=JN,Z.conforms=QN,Z.constant=av,Z.countBy=kV,Z.create=HB,Z.curry=Lw,Z.curryRight=Vw,Z.debounce=Bw,Z.defaults=GB,Z.defaultsDeep=YB,Z.defer=iB,Z.delay=sB,Z.difference=A8,Z.differenceBy=T8,Z.differenceWith=P8,Z.drop=_8,Z.dropRight=M8,Z.dropRightWhile=F8,Z.dropWhile=R8,Z.fill=k8,Z.filter=IV,Z.flatMap=BV,Z.flatMapDeep=NV,Z.flatMapDepth=jV,Z.flatten=Aw,Z.flattenDeep=O8,Z.flattenDepth=I8,Z.flip=aB,Z.flow=tj,Z.flowRight=nj,Z.fromPairs=L8,Z.functions=nN,Z.functionsIn=rN,Z.groupBy=KV,Z.initial=B8,Z.intersection=N8,Z.intersectionBy=j8,Z.intersectionWith=K8,Z.invert=sN,Z.invertBy=aN,Z.invokeMap=zV,Z.iteratee=ov,Z.keyBy=qV,Z.keys=hr,Z.keysIn=ri,Z.map=Eh,Z.mapKeys=uN,Z.mapValues=lN,Z.matches=rj,Z.matchesProperty=ij,Z.memoize=Dh,Z.merge=cN,Z.mergeWith=Yw,Z.method=sj,Z.methodOf=aj,Z.mixin=uv,Z.negate=Ah,Z.nthArg=uj,Z.omit=fN,Z.omitBy=dN,Z.once=oB,Z.orderBy=WV,Z.over=lj,Z.overArgs=uB,Z.overEvery=cj,Z.overSome=fj,Z.partial=ev,Z.partialRight=Nw,Z.partition=HV,Z.pick=hN,Z.pickBy=Zw,Z.property=rC,Z.propertyOf=dj,Z.pull=W8,Z.pullAll=Pw,Z.pullAllBy=H8,Z.pullAllWith=G8,Z.pullAt=Y8,Z.range=hj,Z.rangeRight=pj,Z.rearg=lB,Z.reject=ZV,Z.remove=Z8,Z.rest=cB,Z.reverse=Xg,Z.sampleSize=JV,Z.set=mN,Z.setWith=gN,Z.shuffle=QV,Z.slice=X8,Z.sortBy=nB,Z.sortedUniq=iV,Z.sortedUniqBy=sV,Z.split=BN,Z.spread=fB,Z.tail=aV,Z.take=oV,Z.takeRight=uV,Z.takeRightWhile=lV,Z.takeWhile=cV,Z.tap=SV,Z.throttle=dB,Z.thru=Ch,Z.toArray=qw,Z.toPairs=Xw,Z.toPairsIn=Jw,Z.toPath=bj,Z.toPlainObject=Hw,Z.transform=vN,Z.unary=hB,Z.union=fV,Z.unionBy=dV,Z.unionWith=hV,Z.uniq=pV,Z.uniqBy=mV,Z.uniqWith=gV,Z.unset=yN,Z.unzip=Jg,Z.unzipWith=_w,Z.update=bN,Z.updateWith=$N,Z.values=Dl,Z.valuesIn=xN,Z.without=vV,Z.words=tC,Z.wrap=pB,Z.xor=yV,Z.xorBy=bV,Z.xorWith=$V,Z.zip=xV,Z.zipObject=wV,Z.zipObjectDeep=CV,Z.zipWith=EV,Z.entries=Xw,Z.entriesIn=Jw,Z.extend=Gw,Z.extendWith=_h,uv(Z,Z),Z.add=xj,Z.attempt=nC,Z.camelCase=SN,Z.capitalize=Qw,Z.ceil=wj,Z.clamp=wN,Z.clone=gB,Z.cloneDeep=yB,Z.cloneDeepWith=bB,Z.cloneWith=vB,Z.conformsTo=$B,Z.deburr=eC,Z.defaultTo=ej,Z.divide=Cj,Z.endsWith=DN,Z.eq=gs,Z.escape=AN,Z.escapeRegExp=TN,Z.every=OV,Z.find=LV,Z.findIndex=Sw,Z.findKey=ZB,Z.findLast=VV,Z.findLastIndex=Dw,Z.findLastKey=XB,Z.floor=Ej,Z.forEach=Fw,Z.forEachRight=Rw,Z.forIn=JB,Z.forInRight=QB,Z.forOwn=eN,Z.forOwnRight=tN,Z.get=rv,Z.gt=xB,Z.gte=wB,Z.has=iN,Z.hasIn=iv,Z.head=Tw,Z.identity=ii,Z.includes=UV,Z.indexOf=V8,Z.inRange=CN,Z.invoke=oN,Z.isArguments=lu,Z.isArray=Mt,Z.isArrayBuffer=CB,Z.isArrayLike=ni,Z.isArrayLikeObject=qn,Z.isBoolean=EB,Z.isBuffer=mo,Z.isDate=SB,Z.isElement=DB,Z.isEmpty=AB,Z.isEqual=TB,Z.isEqualWith=PB,Z.isError=tv,Z.isFinite=_B,Z.isFunction=Oa,Z.isInteger=jw,Z.isLength=Th,Z.isMap=Kw,Z.isMatch=MB,Z.isMatchWith=FB,Z.isNaN=RB,Z.isNative=kB,Z.isNil=IB,Z.isNull=OB,Z.isNumber=Uw,Z.isObject=Mn,Z.isObjectLike=jn,Z.isPlainObject=mf,Z.isRegExp=nv,Z.isSafeInteger=LB,Z.isSet=zw,Z.isString=Ph,Z.isSymbol=wi,Z.isTypedArray=Sl,Z.isUndefined=VB,Z.isWeakMap=BB,Z.isWeakSet=NB,Z.join=U8,Z.kebabCase=PN,Z.last=Vi,Z.lastIndexOf=z8,Z.lowerCase=_N,Z.lowerFirst=MN,Z.lt=jB,Z.lte=KB,Z.max=Sj,Z.maxBy=Dj,Z.mean=Aj,Z.meanBy=Tj,Z.min=Pj,Z.minBy=_j,Z.stubArray=cv,Z.stubFalse=fv,Z.stubObject=mj,Z.stubString=gj,Z.stubTrue=vj,Z.multiply=Mj,Z.nth=q8,Z.noConflict=oj,Z.noop=lv,Z.now=Sh,Z.pad=FN,Z.padEnd=RN,Z.padStart=kN,Z.parseInt=ON,Z.random=EN,Z.reduce=GV,Z.reduceRight=YV,Z.repeat=IN,Z.replace=LN,Z.result=pN,Z.round=Fj,Z.runInContext=R,Z.sample=XV,Z.size=eB,Z.snakeCase=VN,Z.some=tB,Z.sortedIndex=J8,Z.sortedIndexBy=Q8,Z.sortedIndexOf=eV,Z.sortedLastIndex=tV,Z.sortedLastIndexBy=nV,Z.sortedLastIndexOf=rV,Z.startCase=NN,Z.startsWith=jN,Z.subtract=Rj,Z.sum=kj,Z.sumBy=Oj,Z.template=KN,Z.times=yj,Z.toFinite=Ia,Z.toInteger=kt,Z.toLength=Ww,Z.toLower=UN,Z.toNumber=Bi,Z.toSafeInteger=UB,Z.toString=an,Z.toUpper=zN,Z.trim=qN,Z.trimEnd=WN,Z.trimStart=HN,Z.truncate=GN,Z.unescape=YN,Z.uniqueId=$j,Z.upperCase=ZN,Z.upperFirst=sv,Z.each=Fw,Z.eachRight=Rw,Z.first=Tw,uv(Z,function(){var u={};return zs(Z,function(f,y){Ne.call(Z.prototype,y)||(u[y]=f)}),u}(),{chain:!1}),Z.VERSION=r,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){Z[u].placeholder=Z}),hn(["drop","take"],function(u,f){Ut.prototype[u]=function(y){y=y===n?1:Zt(kt(y),0);var T=this.__filtered__&&!f?new Ut(this):this.clone();return T.__filtered__?T.__takeCount__=xn(y,T.__takeCount__):T.__views__.push({size:xn(y,le),type:u+(T.__dir__<0?"Right":"")}),T},Ut.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),hn(["filter","map","takeWhile"],function(u,f){var y=f+1,T=y==z||y==K;Ut.prototype[u]=function(B){var re=this.clone();return re.__iteratees__.push({iteratee:wt(B,3),type:y}),re.__filtered__=re.__filtered__||T,re}}),hn(["head","last"],function(u,f){var y="take"+(f?"Right":"");Ut.prototype[u]=function(){return this[y](1).value()[0]}}),hn(["initial","tail"],function(u,f){var y="drop"+(f?"":"Right");Ut.prototype[u]=function(){return this.__filtered__?new Ut(this):this[y](1)}}),Ut.prototype.compact=function(){return this.filter(ii)},Ut.prototype.find=function(u){return this.filter(u).head()},Ut.prototype.findLast=function(u){return this.reverse().find(u)},Ut.prototype.invokeMap=Bt(function(u,f){return typeof u=="function"?new Ut(this):this.map(function(y){return lf(y,u,f)})}),Ut.prototype.reject=function(u){return this.filter(Ah(wt(u)))},Ut.prototype.slice=function(u,f){u=kt(u);var y=this;return y.__filtered__&&(u>0||f<0)?new Ut(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=kt(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},Ut.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Ut.prototype.toArray=function(){return this.take(le)},zs(Ut.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),B=Z[T?"take"+(f=="last"?"Right":""):f],re=T||/^find/.test(f);B&&(Z.prototype[f]=function(){var ve=this.__wrapped__,Ee=T?[1]:arguments,Te=ve instanceof Ut,Ue=Ee[0],qe=Te||Mt(ve),Ze=function(Nt){var Ht=B.apply(Z,ls([Nt],Ee));return T&&at?Ht[0]:Ht};qe&&y&&typeof Ue=="function"&&Ue.length!=1&&(Te=qe=!1);var at=this.__chain__,vt=!!this.__actions__.length,Et=re&&!at,Lt=Te&&!vt;if(!re&&qe){ve=Lt?ve:new Ut(this);var St=u.apply(ve,Ee);return St.__actions__.push({func:Ch,args:[Ze],thisArg:n}),new Oi(St,at)}return Et&&Lt?u.apply(this,Ee):(St=this.thru(Ze),Et?T?St.value()[0]:St.value():St)})}),hn(["pop","push","shift","sort","splice","unshift"],function(u){var f=oe[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",T=/^(?:pop|shift)$/.test(u);Z.prototype[u]=function(){var B=arguments;if(T&&!this.__chain__){var re=this.value();return f.apply(Mt(re)?re:[],B)}return this[y](function(ve){return f.apply(Mt(ve)?ve:[],B)})}}),zs(Ut.prototype,function(u,f){var y=Z[f];if(y){var T=y.name+"";Ne.call($l,T)||($l[T]=[]),$l[T].push({name:f,func:y})}}),$l[gh(n,C).name]=[{name:"wrapper",func:n}],Ut.prototype.clone=Y9,Ut.prototype.reverse=Z9,Ut.prototype.value=X9,Z.prototype.at=DV,Z.prototype.chain=AV,Z.prototype.commit=TV,Z.prototype.next=PV,Z.prototype.plant=MV,Z.prototype.reverse=FV,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=RV,Z.prototype.first=Z.prototype.head,Qn&&(Z.prototype[Qn]=_V),Z},ke=we();Fi?((Fi.exports=ke)._=ke,Mi._=ke):An._=ke}).call($z)}(kf,kf.exports)),kf.exports}var y5=xz();const wz=fi(y5);var Dd=e=>e.type==="checkbox",bu=e=>e instanceof Date,Kr=e=>e==null;const b5=e=>typeof e=="object";var Zn=e=>!Kr(e)&&!Array.isArray(e)&&b5(e)&&!bu(e),$5=e=>Zn(e)&&e.target?Dd(e.target)?e.target.checked:e.target.value:e,Cz=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,x5=(e,t)=>e.has(Cz(t)),Ez=e=>{const t=e.constructor&&e.constructor.prototype;return Zn(t)&&t.hasOwnProperty("isPrototypeOf")},t3=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Cn(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(!(t3&&(e instanceof Blob||r))&&(n||Zn(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!Ez(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Cn(e[i]));else return e;return t}var Pm=e=>/^\w*$/.test(e),En=e=>e===void 0,_m=e=>Array.isArray(e)?e.filter(Boolean):[],n3=e=>_m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,t,n)=>{if(!t||!Zn(e))return n;const r=(Pm(t)?[t]:n3(t)).reduce((i,s)=>Kr(i)?i:i[s],e);return En(r)||r===e?En(e[t])?n:e[t]:r},Di=e=>typeof e=="boolean",rn=(e,t,n)=>{let r=-1;const i=Pm(t)?[t]:n3(t),s=i.length,a=s-1;for(;++r<s;){const o=i[r];let l=n;if(r!==a){const d=e[o];l=Zn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const Ip={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Gi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Va={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},r3=A.createContext(null);r3.displayName="HookFormContext";const Ad=()=>A.useContext(r3),Sz=e=>{const{children:t,...n}=e;return A.createElement(r3.Provider,{value:n},t)};var w5=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const a=s;return t._proxyFormState[a]!==Gi.all&&(t._proxyFormState[a]=!r||Gi.all),n&&(n[a]=!0),e[a]}});return i};const Mm=typeof window<"u"?A.useLayoutEffect:A.useEffect;function Dz(e){const t=Ad(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[a,o]=A.useState(n._formState),l=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Mm(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,s]),A.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),A.useMemo(()=>w5(a,n,l.current,!1),[a,n])}var Js=e=>typeof e=="string",C5=(e,t,n,r,i)=>Js(e)?(r&&t.watch.add(e),it(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),it(n,s))):(r&&(t.watchAll=!0),n),mb=e=>Kr(e)||!b5(e);function ja(e,t,n=new WeakSet){if(mb(e)||mb(t))return e===t;if(bu(e)&&bu(t))return e.getTime()===t.getTime();const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const a=e[s];if(!i.includes(s))return!1;if(s!=="ref"){const o=t[s];if(bu(a)&&bu(o)||Zn(a)&&Zn(o)||Array.isArray(a)&&Array.isArray(o)?!ja(a,o,n):a!==o)return!1}}return!0}function E5(e){const t=Ad(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:a,compute:o}=e||{},l=A.useRef(i),d=A.useRef(o),h=A.useRef(void 0);d.current=o;const m=A.useMemo(()=>n._getWatch(r,l.current),[n,r]),[g,b]=A.useState(d.current?d.current(m):m);return Mm(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:w=>{if(!s){const $=C5(r,n._names,w.values||n._formValues,!1,l.current);if(d.current){const D=d.current($);ja(D,h.current)||(b(D),h.current=D)}else b($)}}}),[n,s,r,a]),A.useEffect(()=>n._removeUnmounted()),g}function S5(e){const t=Ad(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s,defaultValue:a}=e,o=x5(i._names.array,n),l=A.useMemo(()=>it(i._formValues,n,it(i._defaultValues,n,a)),[i,n,a]),d=E5({control:i,name:n,defaultValue:l,exact:!0}),h=Dz({control:i,name:n,exact:!0}),m=A.useRef(e),g=A.useRef(i.register(n,{...e.rules,value:d,...Di(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const b=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(h.validatingFields,n)},error:{enumerable:!0,get:()=>it(h.errors,n)}}),[h,n]),w=A.useCallback(E=>g.current.onChange({target:{value:$5(E),name:n},type:Ip.CHANGE}),[n]),$=A.useCallback(()=>g.current.onBlur({target:{value:it(i._formValues,n),name:n},type:Ip.BLUR}),[n,i._formValues]),D=A.useCallback(E=>{const S=it(i._fields,n);S&&E&&(S._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:k=>E.setCustomValidity(k),reportValidity:()=>E.reportValidity()})},[i._fields,n]),C=A.useMemo(()=>({name:n,value:d,...Di(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:w,onBlur:$,ref:D}),[n,r,h.disabled,w,$,D,d]);return A.useEffect(()=>{const E=i._options.shouldUnregister||s;i.register(n,{...m.current.rules,...Di(m.current.disabled)?{disabled:m.current.disabled}:{}});const S=(k,P)=>{const F=it(i._fields,k);F&&F._f&&(F._f.mount=P)};if(S(n,!0),E){const k=Cn(it(i._options.defaultValues,n));rn(i._defaultValues,n,k),En(it(i._formValues,n))&&rn(i._formValues,n,k)}return!o&&i.register(n),()=>{(o?E&&!i._state.action:E)?i.unregister(n):S(n,!1)}},[n,i,o,s]),A.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),A.useMemo(()=>({field:C,formState:h,fieldState:b}),[C,h,b])}const Az=e=>e.render(S5(e));var D5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},oi=e=>Array.isArray(e)?e:[e],OC=()=>{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=[]}}},jr=e=>Zn(e)&&!Object.keys(e).length,i3=e=>e.type==="file",xs=e=>typeof e=="function",Lp=e=>{if(!t3)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},A5=e=>e.type==="select-multiple",s3=e=>e.type==="radio",Tz=e=>s3(e)||Dd(e),wv=e=>Lp(e)&&e.isConnected;function Pz(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=En(e)?r++:e[t[r++]];return e}function _z(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}function Gn(e,t){const n=Array.isArray(t)?t:Pm(t)?[t]:n3(t),r=n.length===1?e:Pz(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Zn(r)&&jr(r)||Array.isArray(r)&&_z(r))&&Gn(e,n.slice(0,-1)),e}var T5=e=>{for(const t in e)if(xs(e[t]))return!0;return!1};function Vp(e,t={}){const n=Array.isArray(e);if(Zn(e)||n)for(const r in e)Array.isArray(e[r])||Zn(e[r])&&!T5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Vp(e[r],t[r])):Kr(e[r])||(t[r]=!0);return t}function P5(e,t,n){const r=Array.isArray(e);if(Zn(e)||r)for(const i in e)Array.isArray(e[i])||Zn(e[i])&&!T5(e[i])?En(t)||mb(n[i])?n[i]=Array.isArray(e[i])?Vp(e[i],[]):{...Vp(e[i])}:P5(e[i],Kr(t)?{}:t[i],n[i]):n[i]=!ja(e[i],t[i]);return n}var vf=(e,t)=>P5(e,t,Vp(t));const IC={value:!1,isValid:!1},LC={value:!0,isValid:!0};var _5=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&&!En(e[0].attributes.value)?En(e[0].value)||e[0].value===""?LC:{value:e[0].value,isValid:!0}:LC:IC}return IC},M5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>En(e)?e:t?e===""?NaN:e&&+e:n&&Js(e)?new Date(e):r?r(e):e;const VC={isValid:!1,value:null};var F5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,VC):VC;function BC(e){const t=e.ref;return i3(t)?t.files:s3(t)?F5(e.refs).value:A5(t)?[...t.selectedOptions].map(({value:n})=>n):Dd(t)?_5(e.refs).value:M5(En(t.value)?e.ref.value:t.value,e)}var Mz=(e,t,n,r)=>{const i={};for(const s of e){const a=it(t,s);a&&rn(i,s,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Bp=e=>e instanceof RegExp,yf=e=>En(e)?e:Bp(e)?e.source:Zn(e)?Bp(e.value)?e.value.source:e.value:e,Ol=e=>({isOnSubmit:!e||e===Gi.onSubmit,isOnBlur:e===Gi.onBlur,isOnChange:e===Gi.onChange,isOnAll:e===Gi.all,isOnTouch:e===Gi.onTouched});const NC="AsyncFunction";var Fz=e=>!!e&&!!e.validate&&!!(xs(e.validate)&&e.validate.constructor.name===NC||Zn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===NC)),Rz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),gb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=it(e,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Gl(o,t))break}else if(Zn(o)&&Gl(o,t))break}}};function jC(e,t,n){const r=it(e,n);if(r||Pm(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),a=it(t,s),o=it(e,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(o&&o.type)return{name:s,error:o};if(o&&o.root&&o.root.type)return{name:`${s}.root`,error:o.root};i.pop()}return{name:n}}var kz=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return jr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(a=>t[a]===(!r||Gi.all))},Oz=(e,t,n)=>!e||!t||e===t||oi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Iz=(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,Lz=(e,t)=>!_m(it(e,t)).length&&Gn(e,t),R5=(e,t,n)=>{const r=oi(it(e,n));return rn(r,"root",t[n]),rn(e,n,r),e},lp=e=>Js(e);function KC(e,t,n="validate"){if(lp(e)||Array.isArray(e)&&e.every(lp)||Di(e)&&!e)return{type:n,message:lp(e)?e:"",ref:t}}var Tl=e=>Zn(e)&&!Bp(e)?e:{value:e,message:""},vb=async(e,t,n,r,i,s)=>{const{ref:a,refs:o,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:w,name:$,valueAsNumber:D,mount:C}=e._f,E=it(n,$);if(!C||t.has($))return{};const S=o?o[0]:a,k=xe=>{i&&S.reportValidity&&(S.setCustomValidity(Di(xe)?"":xe||""),S.reportValidity())},P={},F=s3(a),U=Dd(a),ie=F||U,de=(D||i3(a))&&En(a.value)&&En(E)||Lp(a)&&a.value===""||E===""||Array.isArray(E)&&!E.length,ae=D5.bind(null,$,r,P),I=(xe,Ce,z,ee=Va.maxLength,K=Va.minLength)=>{const O=xe?Ce:z;P[$]={type:xe?ee:K,message:O,ref:a,...ae(xe?ee:K,O)}};if(s?!Array.isArray(E)||!E.length:l&&(!ie&&(de||Kr(E))||Di(E)&&!E||U&&!_5(o).isValid||F&&!F5(o).isValid)){const{value:xe,message:Ce}=lp(l)?{value:!!l,message:l}:Tl(l);if(xe&&(P[$]={type:Va.required,message:Ce,ref:S,...ae(Va.required,Ce)},!r))return k(Ce),P}if(!de&&(!Kr(m)||!Kr(g))){let xe,Ce;const z=Tl(g),ee=Tl(m);if(!Kr(E)&&!isNaN(E)){const K=a.valueAsNumber||E&&+E;Kr(z.value)||(xe=K>z.value),Kr(ee.value)||(Ce=K<ee.value)}else{const K=a.valueAsDate||new Date(E),O=j=>new Date(new Date().toDateString()+" "+j),V=a.type=="time",te=a.type=="week";Js(z.value)&&E&&(xe=V?O(E)>O(z.value):te?E>z.value:K>new Date(z.value)),Js(ee.value)&&E&&(Ce=V?O(E)<O(ee.value):te?E<ee.value:K<new Date(ee.value))}if((xe||Ce)&&(I(!!xe,z.message,ee.message,Va.max,Va.min),!r))return k(P[$].message),P}if((d||h)&&!de&&(Js(E)||s&&Array.isArray(E))){const xe=Tl(d),Ce=Tl(h),z=!Kr(xe.value)&&E.length>+xe.value,ee=!Kr(Ce.value)&&E.length<+Ce.value;if((z||ee)&&(I(z,xe.message,Ce.message),!r))return k(P[$].message),P}if(b&&!de&&Js(E)){const{value:xe,message:Ce}=Tl(b);if(Bp(xe)&&!E.match(xe)&&(P[$]={type:Va.pattern,message:Ce,ref:a,...ae(Va.pattern,Ce)},!r))return k(Ce),P}if(w){if(xs(w)){const xe=await w(E,n),Ce=KC(xe,S);if(Ce&&(P[$]={...Ce,...ae(Va.validate,Ce.message)},!r))return k(Ce.message),P}else if(Zn(w)){let xe={};for(const Ce in w){if(!jr(xe)&&!r)break;const z=KC(await w[Ce](E,n),S,Ce);z&&(xe={...z,...ae(Ce,z.message)},k(z.message),r&&(P[$]=xe))}if(!jr(xe)&&(P[$]={ref:S,...xe},!r))return P}}return k(!0),P};const Vz={mode:Gi.onSubmit,reValidateMode:Gi.onChange,shouldFocusError:!0};function Bz(e={}){let t={...Vz,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:xs(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Zn(t.defaultValues)||Zn(t.values)?Cn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Cn(i),a={action:!1,mount:!1,watch:!1},o={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};let m={...h};const g={array:OC(),state:OC()},b=t.criteriaMode===Gi.all,w=ye=>Se=>{clearTimeout(d),d=setTimeout(ye,Se)},$=async ye=>{if(!t.disabled&&(h.isValid||m.isValid||ye)){const Se=t.resolver?jr((await U()).errors):await de(r,!0);Se!==n.isValid&&g.state.next({isValid:Se})}},D=(ye,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((ye||Array.from(o.mount)).forEach(_e=>{_e&&(Se?rn(n.validatingFields,_e,Se):Gn(n.validatingFields,_e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!jr(n.validatingFields)}))},C=(ye,Se=[],_e,Je,tt=!0,Qe=!0)=>{if(Je&&_e&&!t.disabled){if(a.action=!0,Qe&&Array.isArray(it(r,ye))){const gt=_e(it(r,ye),Je.argA,Je.argB);tt&&rn(r,ye,gt)}if(Qe&&Array.isArray(it(n.errors,ye))){const gt=_e(it(n.errors,ye),Je.argA,Je.argB);tt&&rn(n.errors,ye,gt),Lz(n.errors,ye)}if((h.touchedFields||m.touchedFields)&&Qe&&Array.isArray(it(n.touchedFields,ye))){const gt=_e(it(n.touchedFields,ye),Je.argA,Je.argB);tt&&rn(n.touchedFields,ye,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=vf(i,s)),g.state.next({name:ye,isDirty:I(ye,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else rn(s,ye,Se)},E=(ye,Se)=>{rn(n.errors,ye,Se),g.state.next({errors:n.errors})},S=ye=>{n.errors=ye,g.state.next({errors:n.errors,isValid:!1})},k=(ye,Se,_e,Je)=>{const tt=it(r,ye);if(tt){const Qe=it(s,ye,En(_e)?it(i,ye):_e);En(Qe)||Je&&Je.defaultChecked||Se?rn(s,ye,Se?Qe:BC(tt._f)):z(ye,Qe),a.mount&&$()}},P=(ye,Se,_e,Je,tt)=>{let Qe=!1,gt=!1;const Rt={name:ye};if(!t.disabled){if(!_e||Je){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=Rt.isDirty=I(),Qe=gt!==Rt.isDirty);const xt=ja(it(i,ye),Se);gt=!!it(n.dirtyFields,ye),xt?Gn(n.dirtyFields,ye):rn(n.dirtyFields,ye,!0),Rt.dirtyFields=n.dirtyFields,Qe=Qe||(h.dirtyFields||m.dirtyFields)&>!==!xt}if(_e){const xt=it(n.touchedFields,ye);xt||(rn(n.touchedFields,ye,_e),Rt.touchedFields=n.touchedFields,Qe=Qe||(h.touchedFields||m.touchedFields)&&xt!==_e)}Qe&&tt&&g.state.next(Rt)}return Qe?Rt:{}},F=(ye,Se,_e,Je)=>{const tt=it(n.errors,ye),Qe=(h.isValid||m.isValid)&&Di(Se)&&n.isValid!==Se;if(t.delayError&&_e?(l=w(()=>E(ye,_e)),l(t.delayError)):(clearTimeout(d),l=null,_e?rn(n.errors,ye,_e):Gn(n.errors,ye)),(_e?!ja(tt,_e):tt)||!jr(Je)||Qe){const gt={...Je,...Qe&&Di(Se)?{isValid:Se}:{},errors:n.errors,name:ye};n={...n,...gt},g.state.next(gt)}},U=async ye=>{D(ye,!0);const Se=await t.resolver(s,t.context,Mz(ye||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return D(ye),Se},ie=async ye=>{const{errors:Se}=await U(ye);if(ye)for(const _e of ye){const Je=it(Se,_e);Je?rn(n.errors,_e,Je):Gn(n.errors,_e)}else n.errors=Se;return Se},de=async(ye,Se,_e={valid:!0})=>{for(const Je in ye){const tt=ye[Je];if(tt){const{_f:Qe,...gt}=tt;if(Qe){const Rt=o.array.has(Qe.name),xt=tt._f&&Fz(tt._f);xt&&h.validatingFields&&D([Je],!0);const yn=await vb(tt,o.disabled,s,b,t.shouldUseNativeValidation&&!Se,Rt);if(xt&&h.validatingFields&&D([Je]),yn[Qe.name]&&(_e.valid=!1,Se))break;!Se&&(it(yn,Qe.name)?Rt?R5(n.errors,yn,Qe.name):rn(n.errors,Qe.name,yn[Qe.name]):Gn(n.errors,Qe.name))}!jr(gt)&&await de(gt,Se,_e)}}return _e.valid},ae=()=>{for(const ye of o.unMount){const Se=it(r,ye);Se&&(Se._f.refs?Se._f.refs.every(_e=>!wv(_e)):!wv(Se._f.ref))&&Xe(ye)}o.unMount=new Set},I=(ye,Se)=>!t.disabled&&(ye&&Se&&rn(s,ye,Se),!ja(j(),i)),xe=(ye,Se,_e)=>C5(ye,o,{...a.mount?s:En(Se)?i:Js(ye)?{[ye]:Se}:Se},_e,Se),Ce=ye=>_m(it(a.mount?s:i,ye,t.shouldUnregister?it(i,ye,[]):[])),z=(ye,Se,_e={})=>{const Je=it(r,ye);let tt=Se;if(Je){const Qe=Je._f;Qe&&(!Qe.disabled&&rn(s,ye,M5(Se,Qe)),tt=Lp(Qe.ref)&&Kr(Se)?"":Se,A5(Qe.ref)?[...Qe.ref.options].forEach(gt=>gt.selected=tt.includes(gt.value)):Qe.refs?Dd(Qe.ref)?Qe.refs.forEach(gt=>{(!gt.defaultChecked||!gt.disabled)&&(Array.isArray(tt)?gt.checked=!!tt.find(Rt=>Rt===gt.value):gt.checked=tt===gt.value||!!tt)}):Qe.refs.forEach(gt=>gt.checked=gt.value===tt):i3(Qe.ref)?Qe.ref.value="":(Qe.ref.value=tt,Qe.ref.type||g.state.next({name:ye,values:Cn(s)})))}(_e.shouldDirty||_e.shouldTouch)&&P(ye,tt,_e.shouldTouch,_e.shouldDirty,!0),_e.shouldValidate&&te(ye)},ee=(ye,Se,_e)=>{for(const Je in Se){if(!Se.hasOwnProperty(Je))return;const tt=Se[Je],Qe=ye+"."+Je,gt=it(r,Qe);(o.array.has(ye)||Zn(tt)||gt&&!gt._f)&&!bu(tt)?ee(Qe,tt,_e):z(Qe,tt,_e)}},K=(ye,Se,_e={})=>{const Je=it(r,ye),tt=o.array.has(ye),Qe=Cn(Se);rn(s,ye,Qe),tt?(g.array.next({name:ye,values:Cn(s)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&_e.shouldDirty&&g.state.next({name:ye,dirtyFields:vf(i,s),isDirty:I(ye,Qe)})):Je&&!Je._f&&!Kr(Qe)?ee(ye,Qe,_e):z(ye,Qe,_e),gb(ye,o)&&g.state.next({...n,name:ye}),g.state.next({name:a.mount?ye:void 0,values:Cn(s)})},O=async ye=>{a.mount=!0;const Se=ye.target;let _e=Se.name,Je=!0;const tt=it(r,_e),Qe=xt=>{Je=Number.isNaN(xt)||bu(xt)&&isNaN(xt.getTime())||ja(xt,it(s,_e,xt))},gt=Ol(t.mode),Rt=Ol(t.reValidateMode);if(tt){let xt,yn;const Cr=Se.type?BC(tt._f):$5(ye),zt=ye.type===Ip.BLUR||ye.type===Ip.FOCUS_OUT,Pt=!Rz(tt._f)&&!t.resolver&&!it(n.errors,_e)&&!tt._f.deps||Iz(zt,it(n.touchedFields,_e),n.isSubmitted,Rt,gt),It=gb(_e,o,zt);rn(s,_e,Cr),zt?(!Se||!Se.readOnly)&&(tt._f.onBlur&&tt._f.onBlur(ye),l&&l(0)):tt._f.onChange&&tt._f.onChange(ye);const qt=P(_e,Cr,zt),gr=!jr(qt)||It;if(!zt&&g.state.next({name:_e,type:ye.type,values:Cn(s)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&$():zt||$()),gr&&g.state.next({name:_e,...It?{}:qt});if(!zt&&It&&g.state.next({...n}),t.resolver){const{errors:Xr}=await U([_e]);if(Qe(Cr),Je){const di=jC(n.errors,r,_e),kr=jC(Xr,r,di.name||_e);xt=kr.error,_e=kr.name,yn=jr(Xr)}}else D([_e],!0),xt=(await vb(tt,o.disabled,s,b,t.shouldUseNativeValidation))[_e],D([_e]),Qe(Cr),Je&&(xt?yn=!1:(h.isValid||m.isValid)&&(yn=await de(r,!0)));Je&&(tt._f.deps&&te(tt._f.deps),F(_e,yn,xt,qt))}},V=(ye,Se)=>{if(it(n.errors,Se)&&ye.focus)return ye.focus(),1},te=async(ye,Se={})=>{let _e,Je;const tt=oi(ye);if(t.resolver){const Qe=await ie(En(ye)?ye:tt);_e=jr(Qe),Je=ye?!tt.some(gt=>it(Qe,gt)):_e}else ye?(Je=(await Promise.all(tt.map(async Qe=>{const gt=it(r,Qe);return await de(gt&>._f?{[Qe]:gt}:gt)}))).every(Boolean),!(!Je&&!n.isValid)&&$()):Je=_e=await de(r);return g.state.next({...!Js(ye)||(h.isValid||m.isValid)&&_e!==n.isValid?{}:{name:ye},...t.resolver||!ye?{isValid:_e}:{},errors:n.errors}),Se.shouldFocus&&!Je&&Gl(r,V,ye?tt:o.mount),Je},j=ye=>{const Se={...a.mount?s:i};return En(ye)?Se:Js(ye)?it(Se,ye):ye.map(_e=>it(Se,_e))},le=(ye,Se)=>({invalid:!!it((Se||n).errors,ye),isDirty:!!it((Se||n).dirtyFields,ye),error:it((Se||n).errors,ye),isValidating:!!it(n.validatingFields,ye),isTouched:!!it((Se||n).touchedFields,ye)}),ue=ye=>{ye&&oi(ye).forEach(Se=>Gn(n.errors,Se)),g.state.next({errors:ye?n.errors:{}})},De=(ye,Se,_e)=>{const Je=(it(r,ye,{_f:{}})._f||{}).ref,tt=it(n.errors,ye)||{},{ref:Qe,message:gt,type:Rt,...xt}=tt;rn(n.errors,ye,{...xt,...Se,ref:Je}),g.state.next({name:ye,errors:n.errors,isValid:!1}),_e&&_e.shouldFocus&&Je&&Je.focus&&Je.focus()},Pe=(ye,Se)=>xs(ye)?g.state.subscribe({next:_e=>"values"in _e&&ye(xe(void 0,Se),_e)}):xe(ye,Se,!0),Fe=ye=>g.state.subscribe({next:Se=>{Oz(ye.name,Se.name,ye.exact)&&kz(Se,ye.formState||h,_t,ye.reRenderRoot)&&ye.callback({values:{...s},...n,...Se,defaultValues:i})}}).unsubscribe,We=ye=>(a.mount=!0,m={...m,...ye.formState},Fe({...ye,formState:m})),Xe=(ye,Se={})=>{for(const _e of ye?oi(ye):o.mount)o.mount.delete(_e),o.array.delete(_e),Se.keepValue||(Gn(r,_e),Gn(s,_e)),!Se.keepError&&Gn(n.errors,_e),!Se.keepDirty&&Gn(n.dirtyFields,_e),!Se.keepTouched&&Gn(n.touchedFields,_e),!Se.keepIsValidating&&Gn(n.validatingFields,_e),!t.shouldUnregister&&!Se.keepDefaultValue&&Gn(i,_e);g.state.next({values:Cn(s)}),g.state.next({...n,...Se.keepDirty?{isDirty:I()}:{}}),!Se.keepIsValid&&$()},Be=({disabled:ye,name:Se})=>{(Di(ye)&&a.mount||ye||o.disabled.has(Se))&&(ye?o.disabled.add(Se):o.disabled.delete(Se))},He=(ye,Se={})=>{let _e=it(r,ye);const Je=Di(Se.disabled)||Di(t.disabled);return rn(r,ye,{..._e||{},_f:{..._e&&_e._f?_e._f:{ref:{name:ye}},name:ye,mount:!0,...Se}}),o.mount.add(ye),_e?Be({disabled:Di(Se.disabled)?Se.disabled:t.disabled,name:ye}):k(ye,!0,Se.value),{...Je?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:yf(Se.min),max:yf(Se.max),minLength:yf(Se.minLength),maxLength:yf(Se.maxLength),pattern:yf(Se.pattern)}:{},name:ye,onChange:O,onBlur:O,ref:tt=>{if(tt){He(ye,Se),_e=it(r,ye);const Qe=En(tt.value)&&tt.querySelectorAll&&tt.querySelectorAll("input,select,textarea")[0]||tt,gt=Tz(Qe),Rt=_e._f.refs||[];if(gt?Rt.find(xt=>xt===Qe):Qe===_e._f.ref)return;rn(r,ye,{_f:{..._e._f,...gt?{refs:[...Rt.filter(wv),Qe,...Array.isArray(it(i,ye))?[{}]:[]],ref:{type:Qe.type,name:ye}}:{ref:Qe}}}),k(ye,!1,void 0,Qe)}else _e=it(r,ye,{}),_e._f&&(_e._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(x5(o.array,ye)&&a.action)&&o.unMount.add(ye)}}},Me=()=>t.shouldFocusError&&Gl(r,V,o.mount),Le=ye=>{Di(ye)&&(g.state.next({disabled:ye}),Gl(r,(Se,_e)=>{const Je=it(r,_e);Je&&(Se.disabled=Je._f.disabled||ye,Array.isArray(Je._f.refs)&&Je._f.refs.forEach(tt=>{tt.disabled=Je._f.disabled||ye}))},0,!1))},Ae=(ye,Se)=>async _e=>{let Je;_e&&(_e.preventDefault&&_e.preventDefault(),_e.persist&&_e.persist());let tt=Cn(s);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Qe,values:gt}=await U();n.errors=Qe,tt=Cn(gt)}else await de(r);if(o.disabled.size)for(const Qe of o.disabled)Gn(tt,Qe);if(Gn(n.errors,"root"),jr(n.errors)){g.state.next({errors:{}});try{await ye(tt,_e)}catch(Qe){Je=Qe}}else Se&&await Se({...n.errors},_e),Me(),setTimeout(Me);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jr(n.errors)&&!Je,submitCount:n.submitCount+1,errors:n.errors}),Je)throw Je},Ge=(ye,Se={})=>{it(r,ye)&&(En(Se.defaultValue)?K(ye,Cn(it(i,ye))):(K(ye,Se.defaultValue),rn(i,ye,Cn(Se.defaultValue))),Se.keepTouched||Gn(n.touchedFields,ye),Se.keepDirty||(Gn(n.dirtyFields,ye),n.isDirty=Se.defaultValue?I(ye,Cn(it(i,ye))):I()),Se.keepError||(Gn(n.errors,ye),h.isValid&&$()),g.state.next({...n}))},ht=(ye,Se={})=>{const _e=ye?Cn(ye):i,Je=Cn(_e),tt=jr(ye),Qe=tt?i:Je;if(Se.keepDefaultValues||(i=_e),!Se.keepValues){if(Se.keepDirtyValues){const gt=new Set([...o.mount,...Object.keys(vf(i,s))]);for(const Rt of Array.from(gt))it(n.dirtyFields,Rt)?rn(Qe,Rt,it(s,Rt)):K(Rt,it(Qe,Rt))}else{if(t3&&En(ye))for(const gt of o.mount){const Rt=it(r,gt);if(Rt&&Rt._f){const xt=Array.isArray(Rt._f.refs)?Rt._f.refs[0]:Rt._f.ref;if(Lp(xt)){const yn=xt.closest("form");if(yn){yn.reset();break}}}}if(Se.keepFieldsRef)for(const gt of o.mount)K(gt,it(Qe,gt));else r={}}s=t.shouldUnregister?Se.keepDefaultValues?Cn(i):{}:Cn(Qe),g.array.next({values:{...Qe}}),g.state.next({values:{...Qe}})}o={mount:Se.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!h.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues,a.watch=!!t.shouldUnregister,g.state.next({submitCount:Se.keepSubmitCount?n.submitCount:0,isDirty:tt?!1:Se.keepDirty?n.isDirty:!!(Se.keepDefaultValues&&!ja(ye,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:tt?{}:Se.keepDirtyValues?Se.keepDefaultValues&&s?vf(i,s):n.dirtyFields:Se.keepDefaultValues&&ye?vf(i,ye):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Gt=(ye,Se)=>ht(xs(ye)?ye(s):ye,Se),$t=(ye,Se={})=>{const _e=it(r,ye),Je=_e&&_e._f;if(Je){const tt=Je.refs?Je.refs[0]:Je.ref;tt.focus&&(tt.focus(),Se.shouldSelect&&xs(tt.select)&&tt.select())}},_t=ye=>{n={...n,...ye}},en={control:{register:He,unregister:Xe,getFieldState:le,handleSubmit:Ae,setError:De,_subscribe:Fe,_runSchema:U,_focusError:Me,_getWatch:xe,_getDirty:I,_setValid:$,_setFieldArray:C,_setDisabledField:Be,_setErrors:S,_getFieldArray:Ce,_reset:ht,_resetDefaultValues:()=>xs(t.defaultValues)&&t.defaultValues().then(ye=>{Gt(ye,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ae,_disableForm:Le,_subjects:g,_proxyFormState:h,get _fields(){return r},get _formValues(){return s},get _state(){return a},set _state(ye){a=ye},get _defaultValues(){return i},get _names(){return o},set _names(ye){o=ye},get _formState(){return n},get _options(){return t},set _options(ye){t={...t,...ye}}},subscribe:We,trigger:te,register:He,handleSubmit:Ae,watch:Pe,setValue:K,getValues:j,reset:Gt,resetField:Ge,clearErrors:ue,unregister:Xe,setError:De,setFocus:$t,getFieldState:le};return{...en,formControl:en}}var go=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Cv=(e,t,n={})=>n.shouldFocus||En(n.shouldFocus)?n.focusName||`${e}.${En(n.focusIndex)?t:n.focusIndex}.`:"",Ev=(e,t)=>[...e,...oi(t)],Sv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Dv(e,t,n){return[...e.slice(0,t),...oi(n),...e.slice(t)]}var Av=(e,t,n)=>Array.isArray(e)?(En(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Tv=(e,t)=>[...oi(t),...oi(e)];function Nz(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return _m(r).length?r:[]}var Pv=(e,t)=>En(t)?[]:Nz(e,oi(t).sort((n,r)=>n-r)),_v=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},UC=(e,t,n)=>(e[t]=n,e);function jz(e){const t=Ad(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:a}=e,[o,l]=A.useState(n._getFieldArray(r)),d=A.useRef(n._getFieldArray(r).map(go)),h=A.useRef(o),m=A.useRef(!1);h.current=o,n._names.array.add(r),A.useMemo(()=>a&&n.register(r,a),[n,a,r]),Mm(()=>n._subjects.array.subscribe({next:({values:P,name:F})=>{if(F===r||!F){const U=it(P,r);Array.isArray(U)&&(l(U),d.current=U.map(go))}}}).unsubscribe,[n,r]);const g=A.useCallback(P=>{m.current=!0,n._setFieldArray(r,P)},[n,r]),b=(P,F)=>{const U=oi(Cn(P)),ie=Ev(n._getFieldArray(r),U);n._names.focus=Cv(r,ie.length-1,F),d.current=Ev(d.current,U.map(go)),g(ie),l(ie),n._setFieldArray(r,ie,Ev,{argA:Sv(P)})},w=(P,F)=>{const U=oi(Cn(P)),ie=Tv(n._getFieldArray(r),U);n._names.focus=Cv(r,0,F),d.current=Tv(d.current,U.map(go)),g(ie),l(ie),n._setFieldArray(r,ie,Tv,{argA:Sv(P)})},$=P=>{const F=Pv(n._getFieldArray(r),P);d.current=Pv(d.current,P),g(F),l(F),!Array.isArray(it(n._fields,r))&&rn(n._fields,r,void 0),n._setFieldArray(r,F,Pv,{argA:P})},D=(P,F,U)=>{const ie=oi(Cn(F)),de=Dv(n._getFieldArray(r),P,ie);n._names.focus=Cv(r,P,U),d.current=Dv(d.current,P,ie.map(go)),g(de),l(de),n._setFieldArray(r,de,Dv,{argA:P,argB:Sv(F)})},C=(P,F)=>{const U=n._getFieldArray(r);_v(U,P,F),_v(d.current,P,F),g(U),l(U),n._setFieldArray(r,U,_v,{argA:P,argB:F},!1)},E=(P,F)=>{const U=n._getFieldArray(r);Av(U,P,F),Av(d.current,P,F),g(U),l(U),n._setFieldArray(r,U,Av,{argA:P,argB:F},!1)},S=(P,F)=>{const U=Cn(F),ie=UC(n._getFieldArray(r),P,U);d.current=[...ie].map((de,ae)=>!de||ae===P?go():d.current[ae]),g(ie),l([...ie]),n._setFieldArray(r,ie,UC,{argA:P,argB:U},!0,!1)},k=P=>{const F=oi(Cn(P));d.current=F.map(go),g([...F]),l([...F]),n._setFieldArray(r,[...F],U=>U,{},!0,!1)};return A.useEffect(()=>{if(n._state.action=!1,gb(r,n._names)&&n._subjects.state.next({...n._formState}),m.current&&(!Ol(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Ol(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(P=>{const F=it(P.errors,r),U=it(n._formState.errors,r);(U?!F&&U.type||F&&(U.type!==F.type||U.message!==F.message):F&&F.type)&&(F?rn(n._formState.errors,r,F):Gn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const P=it(n._fields,r);P&&P._f&&!(Ol(n._options.reValidateMode).isOnSubmit&&Ol(n._options.mode).isOnSubmit)&&vb(P,n._names.disabled,n._formValues,n._options.criteriaMode===Gi.all,n._options.shouldUseNativeValidation,!0).then(F=>!jr(F)&&n._subjects.state.next({errors:R5(n._formState.errors,F,r)}))}n._subjects.state.next({name:r,values:Cn(n._formValues)}),n._names.focus&&Gl(n._fields,(P,F)=>{if(n._names.focus&&F.startsWith(n._names.focus)&&P.focus)return P.focus(),1}),n._names.focus="",n._setValid(),m.current=!1},[o,r,n]),A.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const P=(F,U)=>{const ie=it(n._fields,F);ie&&ie._f&&(ie._f.mount=U)};n._options.shouldUnregister||s?n.unregister(r):P(r,!1)}),[r,n,i,s]),{swap:A.useCallback(C,[g,r,n]),move:A.useCallback(E,[g,r,n]),prepend:A.useCallback(w,[g,r,n]),append:A.useCallback(b,[g,r,n]),remove:A.useCallback($,[g,r,n]),insert:A.useCallback(D,[g,r,n]),update:A.useCallback(S,[g,r,n]),replace:A.useCallback(k,[g,r,n]),fields:A.useMemo(()=>o.map((P,F)=>({...P,[i]:d.current[F]||go()})),[o,i])}}function Kz(e={}){const t=A.useRef(void 0),n=A.useRef(void 0),[r,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:xs(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:xs(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!xs(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...o}=Bz(e);t.current={...o,formState:r}}const s=t.current.control;return s._options=e,Mm(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),s._formState.isReady=!0,a},[s]),A.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),A.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),A.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),A.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),A.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),A.useEffect(()=>{e.values&&!ja(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,i(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),A.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=w5(r,s),t.current}const vn=typeof document<"u"?A.useLayoutEffect:()=>{};var Mv;const Uz=(Mv=A.useInsertionEffect)!==null&&Mv!==void 0?Mv:vn;function kn(e){const t=A.useRef(null);return Uz(()=>{t.current=e},[e]),A.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function zz(e){let[t,n]=A.useState(e),r=A.useRef(null),i=kn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});vn(()=>{r.current&&i()});let s=kn(a=>{r.current=a(t),i()});return[t,s]}const Np={prefix:String(Math.round(Math.random()*1e10)),current:0},k5=A.createContext(Np),qz=A.createContext(!1);let Wz=!!(typeof window<"u"&&window.document&&window.document.createElement),Fv=new WeakMap;function Hz(e=!1){let t=A.useContext(k5),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 a=Fv.get(s);a==null?Fv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Fv.delete(s))}n.current=++t.current}return n.current}function Gz(e){let t=A.useContext(k5);t===Np&&!Wz&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Hz(!!e),r=t===Np&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Yz(e){let t=A.useId(),[n]=A.useState(a3()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Np.prefix}`;return e||`${r}-${t}`}const Zz=typeof A.useId=="function"?Yz:Gz;function Xz(){return!1}function Jz(){return!0}function Qz(e){return()=>{}}function a3(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(Qz,Xz,Jz):A.useContext(qz)}let eq=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new Map,Of;typeof FinalizationRegistry<"u"&&(Of=new FinalizationRegistry(e=>{Yl.delete(e)}));function Hr(e){let[t,n]=A.useState(e),r=A.useRef(null),i=Zz(t),s=A.useRef(null);if(Of&&Of.register(s,i),eq){const a=Yl.get(i);a&&!a.includes(r)?a.push(r):Yl.set(i,[r])}return vn(()=>{let a=i;return()=>{Of&&Of.unregister(s),Yl.delete(a)}},[i]),A.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function tq(e,t){if(e===t)return e;let n=Yl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Yl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function lc(e=[]){let t=Hr(),[n,r]=zz(t),i=A.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return vn(i,[t,i,...e]),n}function Fo(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Jt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ca=e=>e&&"window"in e&&e.window===e?e:Jt(e).defaultView||window;function nq(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function rq(e){return nq(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let iq=!1;function Fm(){return iq}function Tn(e,t){if(!Fm())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:rq(n)?n=n.host:n=n.parentNode}return!1}const ar=(e=document)=>{var t;if(!Fm())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 nn(e){return Fm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class sq{get currentNode(){return this._currentNode}set currentNode(t){if(!Tn(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 a=r,o=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});n.push(o),o.currentNode=i,this._currentSetFor.add(o),r=i=a.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 Tn(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 a=this.lastChild();return a&&(this.currentNode=a),a}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=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var o;if(typeof this.filter=="function")return this.filter(a);if(!((o=this.filter)===null||o===void 0)&&o.acceptNode)return this.filter.acceptNode(a);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 a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function aq(e,t,n,r){return Fm()?new sq(e,t,n,r):e.createTreeWalker(t,n,r)}function O5(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=O5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function oq(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=O5(e))&&(r&&(r+=" "),r+=t);return r}function Qt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],a=r[i];typeof s=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Fo(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=oq(s,a):i==="id"&&s&&a?t.id=tq(s,a):t[i]=a!==void 0?a:s}}return t}const uq=new Set(["id"]),lq=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cq=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),fq=new Set(["dir","lang","hidden","inert","translate"]),zC=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),dq=/^(data-.*)$/;function eo(e,t={}){let{labelable:n,isLink:r,global:i,events:s=i,propNames:a}=t,o={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(uq.has(l)||n&&lq.has(l)||r&&cq.has(l)||i&&fq.has(l)||s&&zC.has(l)||l.endsWith("Capture")&&zC.has(l.slice(0,-7))||a!=null&&a.has(l)||dq.test(l))&&(o[l]=e[l]);return o}function Ai(e){if(hq())e.focus({preventScroll:!0});else{let t=pq(e);e.focus(),mq(t)}}let Ih=null;function hq(){if(Ih==null){Ih=!1;try{document.createElement("div").focus({get preventScroll(){return Ih=!0,!0}})}catch{}}return Ih}function pq(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 mq(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Rm(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function o3(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 to(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ya=to(function(){return o3(/^Mac/i)}),gq=to(function(){return o3(/^iPhone/i)}),I5=to(function(){return o3(/^iPad/i)||Ya()&&navigator.maxTouchPoints>1}),Td=to(function(){return gq()||I5()}),cp=to(function(){return Ya()||Td()}),u3=to(function(){return Rm(/AppleWebKit/i)&&!L5()}),L5=to(function(){return Rm(/Chrome/i)}),l3=to(function(){return Rm(/Android/i)}),vq=to(function(){return Rm(/Firefox/i)}),yq=A.createContext({isNative:!0,open:$q,useHref:e=>e});function km(){return A.useContext(yq)}function ju(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}=t;vq()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ya()?s=!0:a=!0);let d=u3()&&Ya()&&!I5()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l,bubbles:!0,cancelable:!0});ju.isOpening=n,Ai(e),e.dispatchEvent(d),ju.isOpening=!1}ju.isOpening=!1;function bq(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 $q(e,t){bq(e,n=>ju(n,t))}function xq(e){let t=km();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 Co=new Map,yb=new Set;function qC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Co.get(r.target);i||(i=new Set,Co.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=Co.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Co.delete(r.target)),Co.size===0)){for(let s of yb)s();yb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?qC():document.addEventListener("DOMContentLoaded",qC));function wq(){for(const[e]of Co)"isConnected"in e&&!e.isConnected&&Co.delete(e)}function V5(e){requestAnimationFrame(()=>{wq(),Co.size===0?e():yb.add(e)})}function Io(){let e=A.useRef(new Map),t=A.useCallback((i,s,a,o)=>{let l=o!=null&&o.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:s,eventTarget:i,fn:l,options:o}),i.addEventListener(s,l,o)},[]),n=A.useCallback((i,s,a,o)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(s,d,o),e.current.delete(a)},[]),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 cc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Hr(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 bb(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,a)=>!Object.is(s,i[a])))&&e(),r.current=t},t)}function WC(e,t){const n=A.useRef(!0),r=A.useRef(null);vn(()=>(n.current=!0,()=>{n.current=!1}),[]),vn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function Cq(){return typeof window.ResizeObserver<"u"}function HC(e){const{ref:t,box:n,onResize:r}=e;A.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(Cq()){const s=new window.ResizeObserver(a=>{a.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 B5(e,t){vn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function nd(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 Om(e,t){let n=e;for(nd(n,t)&&(n=n.parentElement);n&&!nd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Eq(e,t){const n=[];for(;e&&e!==document.documentElement;)nd(e,t)&&n.push(e),e=e.parentElement;return n}let Sq=0;const Rv=new Map;function Pd(e){let[t,n]=A.useState();return vn(()=>{if(!e)return;let r=Rv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Sq++}`;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},Rv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Rv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Qs(e,t,n,r){let i=kn(n),s=n==null;A.useEffect(()=>{if(s||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,s,i])}function N5(e,t){let n=GC(e,t,"left"),r=GC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,a=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),w=a+parseInt(d,10),$=o+parseInt(l,10),D=w+e.clientWidth,C=$+e.clientHeight,E=parseInt(h,10)||0,S=parseInt(g,10)||0,k=parseInt(m,10)||0,P=parseInt(b,10)||0;n<=a+P?a=n-parseInt(d,10)-P:n+i>D-k&&(a+=n+i-D+k),r<=$+E?o=r-parseInt(l,10)-E:r+s>C-S&&(o+=r+s-C+S),e.scrollLeft=a,e.scrollTop=o}function GC(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 jp(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=Eq(e);for(let d of l)N5(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 $b(e){return e.mozInputSource===0&&e.isTrusted?!0:l3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Dq(e){return!l3()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function j5(e,t){let n=A.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function c3(e,t,n){let r=kn(()=>{n&&n(t)});A.useEffect(()=>{var i;let s=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return s==null||s.addEventListener("reset",r),()=>{s==null||s.removeEventListener("reset",r)}},[e,r])}const Aq="react-aria-clear-focus",Tq="react-aria-focus";function Rl(e){return Ya()?e.metaKey:e.ctrlKey}const Pq=typeof Element<"u"&&"checkVisibility"in Element.prototype;function _q(e){const t=ca(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:a,visibility:o}=s(e);i=a!=="none"&&o!=="hidden"&&o!=="collapse"}return i}function Mq(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 f3(e,t){return Pq?e.checkVisibility():e.nodeName!=="#comment"&&_q(e)&&Mq(e,t)&&(!e.parentElement||f3(e.parentElement,e))}const d3=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],Fq=d3.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";d3.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Rq=d3.join(':not([hidden]):not([tabindex="-1"]),');function K5(e){return e.matches(Fq)&&f3(e)&&!U5(e)}function kq(e){return e.matches(Rq)&&f3(e)&&!U5(e)}function U5(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Ti(e,t,n){let[r,i]=A.useState(e||t),s=A.useRef(e!==void 0),a=e!==void 0;A.useEffect(()=>{let d=s.current;d!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),s.current=a},[a]);let o=a?e:r,l=A.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(o,g)||n(g,...b)),a||(o=g)};typeof d=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...w)=>{let $=d(a?o:b,...w);return m($,...h),a?b:$})):(a||i(d),m(d,...h))},[a,o,n]);return[o,l]}function fc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Lh(e,t){let n=e,r=0,i=t.toString(),s=i.toLowerCase().indexOf("e-");if(s>0)r=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let a=i.indexOf(".");a>=0&&(r=i.length-a)}if(r>0){let a=Math.pow(10,r);n=Math.round(n*a)/a}return n}function bf(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=Lh(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(Lh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Lh((n-t)/r,r))*r),s=Lh(s,r),s}function h3(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function z5(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function q5(e){let t=A.useRef({isFocused:!1,observer:null});vn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kn(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=a=>{if(t.current.isFocused=!1,i.disabled){let o=h3(a);n(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 a;(a=t.current.observer)===null||a===void 0||a.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Kp=!1;function YC(e){for(;e&&!K5(e);)e=e.parentElement;let t=ca(e),n=t.document.activeElement;if(!n||n===e)return;Kp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Ai(n),l()))},a=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},o=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Ai(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",a,!0),Kp=!1,r=!1},d=requestAnimationFrame(l);return l}let Il="default",xb="",fp=new WeakMap;function wb(e){if(Td()){if(Il==="default"){const t=Jt(e);xb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Il="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";fp.set(e,e.style[t]),e.style[t]="none"}}function dp(e){if(Td()){if(Il!=="disabled")return;Il="restoring",setTimeout(()=>{V5(()=>{if(Il==="restoring"){const t=Jt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=xb||""),xb="",Il="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&fp.has(e)){let t=fp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),fp.delete(e)}}const p3=A.createContext({register:()=>{}});p3.displayName="PressResponderContext";function Oq(e,t){return t.get?t.get.call(e):t.value}function W5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Iq(e,t){var n=W5(e,t,"get");return Oq(e,n)}function Lq(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _d(e,t,n){Lq(e,t),t.set(e,n)}function Vq(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 ZC(e,t,n){var r=W5(e,t,"set");return Vq(e,r,n),n}function Bq(e){let t=A.useContext(p3);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return B5(t,e.ref),e}var Vh=new WeakMap;class Bh{continuePropagation(){ZC(this,Vh,!1)}get shouldStopPropagation(){return Iq(this,Vh)}constructor(t,n,r,i){_d(this,Vh,{writable:!0,value:void 0}),ZC(this,Vh,!0);var s;let a=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const o=a==null?void 0:a.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),o&&(h!=null&&m!=null?(l=h-o.left,d=m-o.top):(l=o.width/2,d=o.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 XC=Symbol("linkClicked"),JC="react-aria-pressable-style",QC="data-react-aria-pressable";function Md(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:a,isDisabled:o,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...b}=Bq(e),[w,$]=A.useState(!1),D=A.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:E}=Io(),S=kn((I,xe)=>{let Ce=D.current;if(o||Ce.didFirePressStart)return!1;let z=!0;if(Ce.isTriggeringEvent=!0,r){let ee=new Bh("pressstart",xe,I);r(ee),z=ee.shouldStopPropagation}return n&&n(!0),Ce.isTriggeringEvent=!1,Ce.didFirePressStart=!0,$(!0),z}),k=kn((I,xe,Ce=!0)=>{let z=D.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let ee=!0;if(i){let K=new Bh("pressend",xe,I);i(K),ee=K.shouldStopPropagation}if(n&&n(!1),$(!1),t&&Ce&&!o){let K=new Bh("press",xe,I);t(K),ee&&(ee=K.shouldStopPropagation)}return z.isTriggeringEvent=!1,ee}),P=kn((I,xe)=>{let Ce=D.current;if(o)return!1;if(s){Ce.isTriggeringEvent=!0;let z=new Bh("pressup",xe,I);return s(z),Ce.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),F=kn(I=>{let xe=D.current;if(xe.isPressed&&xe.target){xe.didFirePressStart&&xe.pointerType!=null&&k(cu(xe.target,I),xe.pointerType,!1),xe.isPressed=!1,xe.isOverTarget=!1,xe.activePointerId=null,xe.pointerType=null,E(),m||dp(xe.target);for(let Ce of xe.disposables)Ce();xe.disposables=[]}}),U=kn(I=>{h&&F(I)}),ie=kn(I=>{a==null||a(I)}),de=kn((I,xe)=>{if(a){let Ce=new MouseEvent("click",I);z5(Ce,xe),a(h3(Ce))}}),ae=A.useMemo(()=>{let I=D.current,xe={onKeyDown(z){if(kv(z.nativeEvent,z.currentTarget)&&Tn(z.currentTarget,nn(z.nativeEvent))){var ee;nE(nn(z.nativeEvent),z.key)&&z.preventDefault();let K=!0;if(!I.isPressed&&!z.repeat){I.target=z.currentTarget,I.isPressed=!0,I.pointerType="keyboard",K=S(z,"keyboard");let O=z.currentTarget,V=te=>{kv(te,O)&&!te.repeat&&Tn(O,nn(te))&&I.target&&P(cu(I.target,te),"keyboard")};C(Jt(z.currentTarget),"keyup",Fo(V,Ce),!0)}K&&z.stopPropagation(),z.metaKey&&Ya()&&((ee=I.metaKeyEvents)===null||ee===void 0||ee.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(I.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Tn(z.currentTarget,nn(z.nativeEvent)))&&z&&z.button===0&&!I.isTriggeringEvent&&!ju.isOpening){let ee=!0;if(o&&z.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||$b(z.nativeEvent))){let K=S(z,"virtual"),O=P(z,"virtual"),V=k(z,"virtual");ie(z),ee=K&&O&&V}else if(I.isPressed&&I.pointerType!=="keyboard"){let K=I.pointerType||z.nativeEvent.pointerType||"virtual",O=P(cu(z.currentTarget,z),K),V=k(cu(z.currentTarget,z),K,!0);ee=O&&V,I.isOverTarget=!1,ie(z),F(z)}I.ignoreEmulatedMouseEvents=!1,ee&&z.stopPropagation()}}},Ce=z=>{var ee;if(I.isPressed&&I.target&&kv(z,I.target)){var K;nE(nn(z),z.key)&&z.preventDefault();let V=nn(z),te=Tn(I.target,nn(z));k(cu(I.target,z),"keyboard",te),te&&de(z,I.target),E(),z.key!=="Enter"&&m3(I.target)&&Tn(I.target,V)&&!z[XC]&&(z[XC]=!0,ju(I.target,z,!1)),I.isPressed=!1,(K=I.metaKeyEvents)===null||K===void 0||K.delete(z.key)}else if(z.key==="Meta"&&(!((ee=I.metaKeyEvents)===null||ee===void 0)&&ee.size)){var O;let V=I.metaKeyEvents;I.metaKeyEvents=void 0;for(let te of V.values())(O=I.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",te))}};if(typeof PointerEvent<"u"){xe.onPointerDown=K=>{if(K.button!==0||!Tn(K.currentTarget,nn(K.nativeEvent)))return;if(Dq(K.nativeEvent)){I.pointerType="virtual";return}I.pointerType=K.pointerType;let O=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=K.pointerId,I.target=K.currentTarget,m||wb(I.target),O=S(K,I.pointerType);let V=nn(K.nativeEvent);"releasePointerCapture"in V&&V.releasePointerCapture(K.pointerId),C(Jt(K.currentTarget),"pointerup",z,!1),C(Jt(K.currentTarget),"pointercancel",ee,!1)}O&&K.stopPropagation()},xe.onMouseDown=K=>{if(Tn(K.currentTarget,nn(K.nativeEvent))&&K.button===0){if(d){let O=YC(K.target);O&&I.disposables.push(O)}K.stopPropagation()}},xe.onPointerUp=K=>{!Tn(K.currentTarget,nn(K.nativeEvent))||I.pointerType==="virtual"||K.button===0&&!I.isPressed&&P(K,I.pointerType||K.pointerType)},xe.onPointerEnter=K=>{K.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(cu(I.target,K),I.pointerType))},xe.onPointerLeave=K=>{K.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(cu(I.target,K),I.pointerType,!1),U(K))};let z=K=>{if(K.pointerId===I.activePointerId&&I.isPressed&&K.button===0&&I.target){if(Tn(I.target,nn(K))&&I.pointerType!=null){let O=!1,V=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(O?F(K):(Ai(I.target),I.target.click()))},80);C(K.currentTarget,"click",()=>O=!0,!0),I.disposables.push(()=>clearTimeout(V))}else F(K);I.isOverTarget=!1}},ee=K=>{F(K)};xe.onDragStart=K=>{Tn(K.currentTarget,nn(K.nativeEvent))&&F(K)}}else if(process.env.NODE_ENV==="test"){xe.onMouseDown=K=>{if(K.button!==0||!Tn(K.currentTarget,nn(K.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){K.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=K.currentTarget,I.pointerType=$b(K.nativeEvent)?"virtual":"mouse",Wa.flushSync(()=>S(K,I.pointerType))&&K.stopPropagation(),d){let V=YC(K.target);V&&I.disposables.push(V)}C(Jt(K.currentTarget),"mouseup",z,!1)},xe.onMouseEnter=K=>{if(!Tn(K.currentTarget,nn(K.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,O=S(K,I.pointerType)),O&&K.stopPropagation()},xe.onMouseLeave=K=>{if(!Tn(K.currentTarget,nn(K.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,O=k(K,I.pointerType,!1),U(K)),O&&K.stopPropagation()},xe.onMouseUp=K=>{Tn(K.currentTarget,nn(K.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&K.button===0&&!I.isPressed&&P(K,I.pointerType||"mouse")};let z=K=>{if(K.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(K.target)&&I.pointerType!=null||F(K),I.isOverTarget=!1}};xe.onTouchStart=K=>{if(!Tn(K.currentTarget,nn(K.nativeEvent)))return;let O=Nq(K.nativeEvent);if(!O)return;I.activePointerId=O.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=K.currentTarget,I.pointerType="touch",m||wb(I.target),S(vo(I.target,K),I.pointerType)&&K.stopPropagation(),C(ca(K.currentTarget),"scroll",ee,!0)},xe.onTouchMove=K=>{if(!Tn(K.currentTarget,nn(K.nativeEvent)))return;if(!I.isPressed){K.stopPropagation();return}let O=eE(K.nativeEvent,I.activePointerId),V=!0;O&&tE(O,K.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,V=S(vo(I.target,K),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,V=k(vo(I.target,K),I.pointerType,!1),U(vo(I.target,K))),V&&K.stopPropagation()},xe.onTouchEnd=K=>{if(!Tn(K.currentTarget,nn(K.nativeEvent)))return;if(!I.isPressed){K.stopPropagation();return}let O=eE(K.nativeEvent,I.activePointerId),V=!0;O&&tE(O,K.currentTarget)&&I.pointerType!=null?(P(vo(I.target,K),I.pointerType),V=k(vo(I.target,K),I.pointerType),de(K.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(V=k(vo(I.target,K),I.pointerType,!1)),V&&K.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&dp(I.target),E()},xe.onTouchCancel=K=>{Tn(K.currentTarget,nn(K.nativeEvent))&&(K.stopPropagation(),I.isPressed&&F(vo(I.target,K)))};let ee=K=>{I.isPressed&&Tn(nn(K),I.target)&&F({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};xe.onDragStart=K=>{Tn(K.currentTarget,nn(K.nativeEvent))&&F(K)}}return xe},[C,o,d,E,m,F,U,k,S,P,ie,de]);return A.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=Jt(g.current);if(!I||!I.head||I.getElementById(JC))return;const xe=I.createElement("style");xe.id=JC,xe.textContent=`
|
|
87
|
+
@layer {
|
|
88
|
+
[${QC}] {
|
|
89
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`.trim(),I.head.prepend(xe)},[g]),A.useEffect(()=>{let I=D.current;return()=>{var xe;m||dp((xe=I.target)!==null&&xe!==void 0?xe:void 0);for(let Ce of I.disposables)Ce();I.disposables=[]}},[m]),{isPressed:l||w,pressProps:Qt(b,ae,{[QC]:!0})}}function m3(e){return e.tagName==="A"&&e.hasAttribute("href")}function kv(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ca(i).HTMLInputElement&&!H5(i,n)||i instanceof ca(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&m3(i))&&n!=="Enter")}function Nq(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function eE(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 vo(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 cu(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 jq(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 Kq(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function tE(e,t){let n=t.getBoundingClientRect(),r=jq(e);return Kq(n,r)}function Uq(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!m3(e)}function nE(e,t){return e instanceof HTMLInputElement?!H5(e,t):Uq(e)}const zq=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function H5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":zq.has(e.type)}let Gu=null,qq=new Set,qf=new Map,Ku=!1,Cb=!1;function Im(e,t){for(let n of qq)n(e,t)}function Wq(e){return!(e.metaKey||!Ya()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Up(e){Ku=!0,Wq(e)&&(Gu="keyboard",Im("keyboard",e))}function Wi(e){Gu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ku=!0,Im("pointer",e))}function G5(e){$b(e)&&(Ku=!0,Gu="virtual")}function Y5(e){e.target===window||e.target===document||Kp||!e.isTrusted||(!Ku&&!Cb&&(Gu="virtual",Im("virtual",e)),Ku=!1,Cb=!1)}function Z5(){Kp||(Ku=!1,Cb=!0)}function rE(e){if(typeof window>"u"||typeof document>"u"||qf.get(ca(e)))return;const t=ca(e),n=Jt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ku=!0,r.apply(this,arguments)},n.addEventListener("keydown",Up,!0),n.addEventListener("keyup",Up,!0),n.addEventListener("click",G5,!0),t.addEventListener("focus",Y5,!0),t.addEventListener("blur",Z5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Wi,!0),n.addEventListener("pointermove",Wi,!0),n.addEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(n.addEventListener("mousedown",Wi,!0),n.addEventListener("mousemove",Wi,!0),n.addEventListener("mouseup",Wi,!0)),t.addEventListener("beforeunload",()=>{X5(e)},{once:!0}),qf.set(t,{focus:r})}const X5=(e,t)=>{const n=ca(e),r=Jt(e);t&&r.removeEventListener("DOMContentLoaded",t),qf.has(n)&&(n.HTMLElement.prototype.focus=qf.get(n).focus,r.removeEventListener("keydown",Up,!0),r.removeEventListener("keyup",Up,!0),r.removeEventListener("click",G5,!0),n.removeEventListener("focus",Y5,!0),n.removeEventListener("blur",Z5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Wi,!0),r.removeEventListener("pointermove",Wi,!0),r.removeEventListener("pointerup",Wi,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",Wi,!0),r.removeEventListener("mousemove",Wi,!0),r.removeEventListener("mouseup",Wi,!0)),qf.delete(n))};function Hq(e){const t=Jt(e);let n;return t.readyState!=="loading"?rE(e):(n=()=>{rE(e)},t.addEventListener("DOMContentLoaded",n)),()=>X5(e,n)}typeof document<"u"&&Hq();function iE(){return Gu!=="pointer"}function rd(){return Gu}function J5(e){Gu=e,Im(e,null)}function Uu(e){const t=Jt(e),n=ar(t);if(rd()==="virtual"){let r=n;V5(()=>{ar(t)===r&&e.isConnected&&Ai(e)})}else Ai(e)}function Gq(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]),a=q5(s),o=A.useCallback(l=>{const d=Jt(l.target),h=d?ar(d):ar();l.target===l.currentTarget&&h===nn(l.nativeEvent)&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?o:void 0,onBlur:!t&&(r||i)?s:void 0}}}function sE(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function Q5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:sE(e.onKeyDown),onKeyUp:sE(e.onKeyUp)}}}let Yq=A.createContext(null);function Zq(e){let t=A.useContext(Yq)||{};B5(t,e);let{ref:n,...r}=t;return r}function g3(e,t){let{focusProps:n}=Gq(e),{keyboardProps:r}=Q5(e),i=Qt(n,r),s=Zq(t),a=e.isDisabled?{}:s,o=A.useRef(e.autoFocus);A.useEffect(()=>{o.current&&t.current&&Uu(t.current),o.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Qt({...i,tabIndex:l},a)}}function Xq({children:e}){let t=A.useMemo(()=>({register:()=>{}}),[]);return A.createElement(p3.Provider,{value:t},e)}function Cc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=A.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:o}=Io(),l=A.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,o(),n&&n(m),i&&i(!1))},[n,i,s,o]),d=q5(l),h=A.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Jt(m.target),b=ar(g);if(!s.current.isFocusWithin&&b===nn(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let w=m.currentTarget;a(g,"focus",$=>{if(s.current.isFocusWithin&&!Tn(w,$.target)){let D=new g.defaultView.FocusEvent("blur",{relatedTarget:$.target});z5(D,w);let C=h3(D);l(C)}},{capture:!0})}},[r,i,d,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let zp=!1,Nh=0;function Eb(){zp=!0,setTimeout(()=>{zp=!1},50)}function aE(e){e.pointerType==="touch"&&Eb()}function Jq(){if(!(typeof document>"u"))return Nh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",aE):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Eb)),Nh++,()=>{Nh--,!(Nh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",aE):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Eb))}}function Qq(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=A.useState(!1),o=A.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;A.useEffect(Jq,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Io(),{hoverProps:h,triggerHoverEnd:m}=A.useMemo(()=>{let g=($,D)=>{if(o.pointerType=D,i||D==="touch"||o.isHovered||!$.currentTarget.contains($.target))return;o.isHovered=!0;let C=$.currentTarget;o.target=C,l(Jt($.target),"pointerover",E=>{o.isHovered&&o.target&&!Tn(o.target,E.target)&&b(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:D}),n&&n(!0),a(!0)},b=($,D)=>{let C=o.target;o.pointerType="",o.target=null,!(D==="touch"||!o.isHovered||!C)&&(o.isHovered=!1,d(),r&&r({type:"hoverend",target:C,pointerType:D}),n&&n(!1),a(!1))},w={};return typeof PointerEvent<"u"?(w.onPointerEnter=$=>{zp&&$.pointerType==="mouse"||g($,$.pointerType)},w.onPointerLeave=$=>{!i&&$.currentTarget.contains($.target)&&b($,$.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=$=>{!o.ignoreEmulatedMouseEvents&&!zp&&g($,"mouse"),o.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=$=>{!i&&$.currentTarget.contains($.target)&&b($,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,n,r,i,o,l,d]);return A.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:s}}function eW(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=kn(l=>{n&&jh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),o=kn(l=>{n&&n(l)});A.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=Jt(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&jh(g,t)&&o(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",a,!0),h.addEventListener("click",m,!0),()=>{h.removeEventListener("pointerdown",a,!0),h.removeEventListener("click",m,!0)}}else if(process.env.NODE_ENV==="test"){let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&jh(b,t)&&o(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&jh(b,t)&&o(b),l.isPointerDown=!1};return h.addEventListener("mousedown",a,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",a,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",a,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",a,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,a,o])}function jh(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 e_(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=A.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=Io(),o=kn((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=kn((h,m)=>{dp(),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=()=>{wb(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=C=>{if(C.button===0){var E,S,k,P;o(C,"mouse",C.pageX-((k=(E=i.current.lastPosition)===null||E===void 0?void 0:E.pageX)!==null&&k!==void 0?k:0),C.pageY-((P=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&P!==void 0?P:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},w=C=>{C.button===0&&(l(C,"mouse"),a(window,"mousemove",b,!1),a(window,"mouseup",w,!1))};h.onMouseDown=C=>{C.button===0&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",w,!1))};let $=C=>{let E=[...C.changedTouches].findIndex(({identifier:U})=>U===i.current.id);if(E>=0){var S,k;let{pageX:U,pageY:ie}=C.changedTouches[E];var P,F;o(C,"touch",U-((P=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&P!==void 0?P:0),ie-((F=(k=i.current.lastPosition)===null||k===void 0?void 0:k.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:U,pageY:ie}}},D=C=>{[...C.changedTouches].findIndex(({identifier:S})=>S===i.current.id)>=0&&(l(C,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",D),a(window,"touchcancel",D))};h.onTouchStart=C=>{if(C.changedTouches.length===0||i.current.id!=null)return;let{pageX:E,pageY:S,identifier:k}=C.changedTouches[0];m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:E,pageY:S},i.current.id=k,s(window,"touchmove",$,!1),s(window,"touchend",D,!1),s(window,"touchcancel",D,!1)}}else{let b=$=>{if($.pointerId===i.current.id){var D,C;let k=$.pointerType||"mouse";var E,S;o($,k,$.pageX-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),$.pageY-((S=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},w=$=>{if($.pointerId===i.current.id){let D=$.pointerType||"mouse";l($,D),i.current.id=null,a(window,"pointermove",b,!1),a(window,"pointerup",w,!1),a(window,"pointercancel",w,!1)}};h.onPointerDown=$=>{$.button===0&&i.current.id==null&&(m(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",w,!1),s(window,"pointercancel",w,!1))}}let g=(b,w,$)=>{m(),o(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,a,o,l])}}const tW=500;function t_(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=tW,accessibilityDescription:a}=e;const o=A.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Io(),{pressProps:h}=Md({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),o.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Jt(g.target).activeElement!==g.target&&Ai(g.target),i&&i({...g,type:"longpress"}),o.current=void 0},s),g.pointerType==="touch")){let b=w=>{w.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){o.current&&clearTimeout(o.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Pd(i&&!t?a:void 0);return{longPressProps:Qt(h,m)}}const nW=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),rW=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function iW(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 nW.has(n.script)}let t=e.split("-")[0];return rW.has(t)}const sW=Symbol.for("react-aria.i18n.locale");function n_(){let e=typeof window<"u"&&window[sW]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:iW(e)?"rtl":"ltr"}}let Sb=n_(),If=new Set;function oE(){Sb=n_();for(let e of If)e(Sb)}function aW(){let e=a3(),[t,n]=A.useState(Sb);return A.useEffect(()=>(If.size===0&&window.addEventListener("languagechange",oE),If.add(n),()=>{If.delete(n),If.size===0&&window.removeEventListener("languagechange",oE)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const oW=A.createContext(null);function Rr(){let e=aW();return A.useContext(oW)||e}const uW=Symbol.for("react-aria.i18n.locale"),lW=Symbol.for("react-aria.i18n.strings");let Pl;class Lo{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=cW(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[uW];if(Pl===void 0){let i=window[lW];if(!i)return null;Pl={};for(let s in i)Pl[s]=new Lo({[n]:i[s]},n)}let r=Pl==null?void 0:Pl[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function cW(e,t,n="en-US"){if(t[e])return t[e];let r=fW(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function fW(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const uE=new Map,lE=new Map;class r_{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,a=uE.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),uE.set(s,a));let o=a.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=lE.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),lE.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 cE=new WeakMap;function dW(e){let t=cE.get(e);return t||(t=new Lo(e),cE.set(e,t)),t}function i_(e,t){return t&&Lo.getGlobalDictionaryForPackage(t)||dW(e)}function da(e,t){let{locale:n}=Rr(),r=i_(e,t);return A.useMemo(()=>new r_(n,r),[n,r])}function Zl(e,t){return e-t*Math.floor(e/t)}const s_=1721426;function $u(e,t,n,r){t=Fd(e,t);let i=t-1,s=-2;return n<=2?s=0:Do(t)&&(s=-1),s_-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function Do(e){return e%4===0&&(e%100!==0||e%400===0)}function Fd(e,t){return e==="BC"?1-t:t}function Lm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const hW={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 Yr{fromJulianDay(t){let n=t,r=n-s_,i=Math.floor(r/146097),s=Zl(r,146097),a=Math.floor(s/36524),o=Zl(s,36524),l=Math.floor(o/1461),d=Zl(o,1461),h=Math.floor(d/365),m=i*400+a*100+l*4+h+(a!==4&&h!==4?1:0),[g,b]=Lm(m),w=n-$u(g,b,1,1),$=2;n<$u(g,b,3,1)?$=0:Do(b)&&($=1);let D=Math.floor(((w+$)*12+373)/367),C=n-$u(g,b,D,1)+1;return new Xn(g,b,D,C)}toJulianDay(t){return $u(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return hW[Do(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Do(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 pW={"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 nr(e,t){return t=On(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Db(e,t){return Vm(e.calendar,t.calendar)&&nr(e,t)}function Vm(e,t){var n,r,i,s;return(s=(i=(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&i!==void 0?i:(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&s!==void 0?s:e.identifier===t.identifier}function a_(e,t){return nr(e,Bm(t))}const mW={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function v3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?mW[n]:xW(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function o_(e){return Ua(Date.now(),e)}function Bm(e){return Gr(o_(e))}function u_(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function l_(e,t){return fE(e)-fE(t)}function fE(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Ov=null;function Rd(){return Ov==null&&(Ov=new Intl.DateTimeFormat().resolvedOptions().timeZone),Ov}function kd(e){return e.subtract({days:e.day-1})}function Ab(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function gW(e){return kd(e.subtract({months:e.month-1}))}function vW(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function yW(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function id(e,t,n){let r=v3(e,t,n);return e.subtract({days:r})}function bW(e,t,n){return id(e,t,n).add({days:6})}const dE=new Map;function $W(e){if(Intl.Locale){let n=dE.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&dE.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function xW(e){let t=$W(e);return t&&pW[t]||0}function c_(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((v3(kd(e),t,n)+r)/7)}function y3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function b3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function dc(e){e=On(e,new Yr);let t=Fd(e.era,e.year);return f_(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function f_(e,t,n,r,i,s,a){let o=new Date;return o.setUTCHours(r,i,s,a),o.setUTCFullYear(e,t-1,n),o.getTime()}function Tb(e,t){if(t==="UTC")return 0;if(e>0&&t===Rd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:a,second:o}=d_(e,t);return f_(n,r,i,s,a,o,0)-Math.floor(e/1e3)*1e3}const hE=new Map;function d_(e,t){let n=hE.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"}),hE.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 pE=864e5;function wW(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>CW(e,t,s))}function CW(e,t,n){let r=d_(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 Ka(e,t,n="compatible"){let r=Ds(e);if(t==="UTC")return dc(r);if(t===Rd()&&n==="compatible"){r=On(r,new Yr);let l=new Date,d=Fd(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=dc(r),s=Tb(i-pE,t),a=Tb(i+pE,t),o=wW(r,t,i-s,i-a);if(o.length===1)return o[0];if(o.length>1)switch(n){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-s,i-a);case"compatible":case"later":return Math.max(i-s,i-a);case"reject":throw new RangeError("No such absolute time found")}}function h_(e,t,n="compatible"){return new Date(Ka(e,t,n))}function Ua(e,t){let n=Tb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,a=r.getUTCDate(),o=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new od(i<1?"BC":"AD",i<1?-i+1:i,s,a,t,n,o,l,d,h)}function Gr(e){return new Xn(e.calendar,e.era,e.year,e.month,e.day)}function Ds(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 ad(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function mE(e){return new Od(e.hour,e.minute,e.second,e.millisecond)}function On(e,t){if(Vm(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,zu(r),r}function p_(e,t,n){if(e instanceof od)return e.timeZone===t?e:SW(e,t);let r=Ka(e,t,n);return Ua(r,t)}function EW(e){let t=dc(e)-e.offset;return new Date(t)}function SW(e,t){let n=dc(e)-e.offset;return On(Ua(n,t),e.calendar)}const $f=36e5;function Nm(e,t){let n=e.copy(),r="hour"in n?y_(n,t):0;Pb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,_b(n),m_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,DW(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,a;let l=(s=(a=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let o=n.calendar.getMonthsInYear(n);return n.month>o&&(n.month=o,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Pb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function _b(e){for(;e.month<1;)Pb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Pb(e,1)}function DW(e){for(;e.day<1;)e.month--,_b(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,_b(e)}function m_(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 zu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),m_(e)}function $3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function g_(e,t){return Nm(e,$3(t))}function x3(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),zu(n),n}function sd(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),v_(n),n}function AW(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Kh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Kh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Kh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Kh(e.hour,24),t}function v_(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 Kh(e,t){let n=e%t;return n<0&&(n+=t),n}function y_(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,AW(e)}function b_(e,t){let n=e.copy();return y_(n,t),n}function TW(e,t){return b_(e,$3(t))}function w3(e,t,n,r){let i=e.copy();switch(t){case"era":{let o=e.calendar.getEras(),l=o.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=za(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],zu(i);break}case"year":var s,a;!((s=(a=i.calendar).isInverseEra)===null||s===void 0)&&s.call(a,i)&&(n=-n),i.year=za(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=za(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=za(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),zu(i),i}function C3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,a=0,o=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;a=l?12:0,o=l?23:11}i.hour=za(s,n,a,o,r==null?void 0:r.round);break}case"minute":i.minute=za(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=za(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=za(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function za(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 $_(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=Nm(Ds(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Ka(i,e.timeZone)}else n=dc(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ua(n,e.timeZone);return On(r,e.calendar)}function PW(e,t){return $_(e,$3(t))}function _W(e,t,n,r){switch(t){case"hour":{let i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let w=e.hour>=12;i=w?12:0,s=w?23:11}let a=Ds(e),o=On(sd(a,{hour:i}),new Yr),l=[Ka(o,e.timeZone,"earlier"),Ka(o,e.timeZone,"later")].filter(w=>Ua(w,e.timeZone).day===o.day)[0],d=On(sd(a,{hour:s}),new Yr),h=[Ka(d,e.timeZone,"earlier"),Ka(d,e.timeZone,"later")].filter(w=>Ua(w,e.timeZone).day===d.day).pop(),m=dc(e)-e.offset,g=Math.floor(m/$f),b=m%$f;return m=za(g,n,Math.floor(l/$f),Math.floor(h/$f),r==null?void 0:r.round)*$f+b,On(Ua(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return C3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=w3(Ds(e),t,n,r),s=Ka(i,e.timeZone);return On(Ua(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function MW(e,t,n){let r=Ds(e),i=sd(x3(r,t),t);if(i.compare(r)===0)return e;let s=Ka(i,e.timeZone,n);return On(Ua(s,e.timeZone),e.calendar)}const FW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,RW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function kW(e){let t=e.match(FW);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Xn(Gs(t[1],0,9999),Gs(t[2],1,12),1);return n.day=Gs(t[3],1,n.calendar.getDaysInMonth(n)),n}function OW(e){let t=e.match(RW);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Gs(t[1],-9999,9999),r=n<1?"BC":"AD",i=new ad(r,n<1?-n+1:n,Gs(t[2],1,12),1,t[4]?Gs(t[4],0,23):0,t[5]?Gs(t[5],0,59):0,t[6]?Gs(t[6],0,59):0,t[7]?Gs(t[7],0,1/0)*1e3:0);return i.day=Gs(t[3],0,i.calendar.getDaysInMonth(i)),i}function Gs(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 x_(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 w_(e){let t=On(e,new Yr),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 C_(e){return`${w_(e)}T${x_(e)}`}function IW(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 LW(e){return`${C_(e)}${IW(e.offset)}[${e.timeZone}]`}function E3(e){let t=typeof e[0]=="object"?e.shift():new Yr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var VW=new WeakMap;class Xn{copy(){return this.era?new Xn(this.calendar,this.era,this.year,this.month,this.day):new Xn(this.calendar,this.year,this.month,this.day)}add(t){return Nm(this,t)}subtract(t){return g_(this,t)}set(t){return x3(this,t)}cycle(t,n,r){return w3(this,t,n,r)}toDate(t){return h_(this,t)}toString(){return w_(this)}compare(t){return u_(this,t)}constructor(...t){_d(this,VW,{writable:!0,value:void 0});let[n,r,i,s,a]=E3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,zu(this)}}var BW=new WeakMap;class Od{copy(){return new Od(this.hour,this.minute,this.second,this.millisecond)}add(t){return b_(this,t)}subtract(t){return TW(this,t)}set(t){return sd(this,t)}cycle(t,n,r){return C3(this,t,n,r)}toString(){return x_(this)}compare(t){return l_(this,t)}constructor(t=0,n=0,r=0,i=0){_d(this,BW,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,v_(this)}}var NW=new WeakMap;class ad{copy(){return this.era?new ad(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ad(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Nm(this,t)}subtract(t){return g_(this,t)}set(t){return x3(sd(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return w3(this,t,n,r);default:return C3(this,t,n,r)}}toDate(t,n){return h_(this,t,n)}toString(){return C_(this)}compare(t){let n=u_(this,t);return n===0?l_(this,Ds(t)):n}constructor(...t){_d(this,NW,{writable:!0,value:void 0});let[n,r,i,s,a]=E3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,zu(this)}}var jW=new WeakMap;class od{copy(){return this.era?new od(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new od(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return $_(this,t)}subtract(t){return PW(this,t)}set(t,n){return MW(this,t,n)}cycle(t,n,r){return _W(this,t,n,r)}toDate(){return EW(this)}toString(){return LW(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-p_(t,this.timeZone).toDate().getTime()}constructor(...t){_d(this,jW,{writable:!0,value:void 0});let[n,r,i,s,a]=E3(t),o=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,this.timeZone=o,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,zu(this)}}const Xl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],KW=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],hp=[1867,1911,1925,1988,2018],wo=["meiji","taisho","showa","heisei","reiwa"];function gE(e){const t=Xl.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?Xl.length-1:t===0?0:t-1}function Iv(e){let t=hp[wo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Xn(e.year+t,e.month,e.day)}class UW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=gE(n);return new Xn(this,wo[r],n.year-hp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Iv(t))}balanceDate(t){let n=Iv(t),r=gE(n);wo[r]!==t.era&&(t.era=wo[r],t.year=n.year-hp[r]),this.constrainDate(t)}constrainDate(t){let n=wo.indexOf(t.era),r=KW[n];if(r!=null){let[i,s,a]=r,o=i-hp[n];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,s]=Xl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return wo}getYearsInEra(t){let n=wo.indexOf(t.era),r=Xl[n],i=Xl[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(Iv(t))}getMinimumMonthInYear(t){let n=vE(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=vE(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function vE(e){if(e.year===1){let t=wo.indexOf(e.era);return Xl[t]}}const E_=-543;class zW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fd(n.era,n.year);return new Xn(this,r-E_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(yE(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(yE(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function yE(e){let[t,n]=Lm(e.year+E_);return new Xn(t,n,e.month,e.day)}const qp=1911;function S_(e){return e.era==="minguo"?e.year+qp:1-e.year+qp}function bE(e){let t=e-qp;return t>0?["minguo",t]:["before_minguo",1-t]}class qW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Fd(n.era,n.year),[i,s]=bE(r);return new Xn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay($E(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=bE(S_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth($E(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-qp}constructor(...t){super(...t),this.identifier="roc"}}function $E(e){let[t,n]=Lm(S_(e));return new Xn(t,n,e.month,e.day)}const xE=1948320,wE=[0,31,62,93,124,155,186,216,246,276,306,336];class WW{fromJulianDay(t){let n=t-xE,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,a=s<216?Math.floor(s/31):Math.floor((s-6)/30),o=s-wE[a]+1;return new Xn(this,r,a+1,o)}toJulianDay(t){let n=xE-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=wE[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Zl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Lv=78,CE=80;class HW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Lv,i=t-$u(n.era,n.year,1,1),s;i<CE?(r--,s=Do(n.year-1)?31:30,i+=s+155+90+10):(s=Do(n.year)?31:30,i-=CE);let a,o;if(i<s)a=1,o=i+1;else{let l=i-s;l<155?(a=Math.floor(l/31)+2,o=l%31+1):(l-=155,a=Math.floor(l/30)+7,o=l%30+1)}return new Xn(this,r,a,o)}toJulianDay(t){let n=t.year+Lv,[r,i]=Lm(n),s,a;return Do(i)?(s=31,a=$u(r,i,3,21)):(s=30,a=$u(r,i,3,22)),t.month===1?a+t.day-1:(a+=s+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&Do(t.year+Lv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Wp=1948440,EE=1948439,qi=1300,_l=1600,GW=460322;function Hp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function D_(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Hp(t,r,1,1)))/29.5)+1),s=n-Hp(t,r,i,1)+1;return new Xn(e,r,i,s)}function SE(e){return(14+11*e)%30<11}class S3{fromJulianDay(t){return D_(this,Wp,t)}toJulianDay(t){return Hp(Wp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&SE(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return SE(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class YW extends S3{fromJulianDay(t){return D_(this,EE,t)}toJulianDay(t){return Hp(EE,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const ZW="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Mb,Jl;function pp(e){return GW+Jl[e-qi]}function Lf(e,t){let n=e-qi,r=1<<11-(t-1);return(Mb[n]&r)===0?29:30}function DE(e,t){let n=pp(e);for(let r=1;r<t;r++)n+=Lf(e,r);return n}function AE(e){return Jl[e+1-qi]-Jl[e-qi]}class XW extends S3{fromJulianDay(t){let n=t-Wp,r=pp(qi),i=pp(_l);if(n<r||n>i)return super.fromJulianDay(t);{let s=qi-1,a=1,o=1;for(;o>0;){s++,o=n-pp(s)+1;let l=AE(s);if(o===l){a=12;break}else if(o<l){let d=Lf(s,a);for(a=1;o>d;)o-=d,a++,d=Lf(s,a);break}}return new Xn(this,s,a,n-DE(s,a)+1)}}toJulianDay(t){return t.year<qi||t.year>_l?super.toJulianDay(t):Wp+DE(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<qi||t.year>_l?super.getDaysInMonth(t):Lf(t.year,t.month)}getDaysInYear(t){return t.year<qi||t.year>_l?super.getDaysInYear(t):AE(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Mb||(Mb=new Uint16Array(Uint8Array.from(atob(ZW),t=>t.charCodeAt(0)).buffer)),!Jl){Jl=new Uint32Array(_l-qi+1);let t=0;for(let n=qi;n<=_l;n++){Jl[n-qi]=t;for(let r=1;r<=12;r++)t+=Lf(n,r)}}}}const TE=347997,A_=1080,T_=24*A_,JW=29,QW=12*A_+793,eH=JW*T_+QW;function gu(e){return Zl(e*7+1,19)<7}function mp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Zl(3*(r+1),7)<3&&(r+=1),r}function tH(e){let t=mp(e-1),n=mp(e);return mp(e+1)-n===356?2:n-t===382?1:0}function Wf(e){return mp(e)+tH(e)}function P_(e){return Wf(e+1)-Wf(e)}function nH(e){let t=P_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Uh(e,t){if(t>=6&&!gu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=nH(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?gu(e)?30:0:30}class rH{fromJulianDay(t){let n=t-TE,r=n*T_/eH,i=Math.floor((19*r+234)/235)+1,s=Wf(i),a=Math.floor(n-s);for(;a<1;)i--,s=Wf(i),a=Math.floor(n-s);let o=1,l=0;for(;l<a;)l+=Uh(i,o),o++;o--,l-=Uh(i,o);let d=a-l;return new Xn(this,i,o,d)}toJulianDay(t){let n=Wf(t.year);for(let r=1;r<t.month;r++)n+=Uh(t.year,r);return n+t.day+TE}getDaysInMonth(t){return Uh(t.year,t.month)}getMonthsInYear(t){return gu(t.year)?13:12}getDaysInYear(t){return P_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(gu(n.year)&&!gu(t.year)&&n.month>6?t.month--:!gu(n.year)&&gu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Fb=1723856,PE=1824665,Rb=5500;function Gp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function D3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Gp(e,n,1,1))/30),i=t+1-Gp(e,n,r,1);return[n,r,i]}function __(e){return Math.floor(e%4/3)}function M_(e,t){return t%13!==0?30:__(e)+5}class A3{fromJulianDay(t){let[n,r,i]=D3(Fb,t),s="AM";return n<=0&&(s="AA",n+=Rb),new Xn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Rb),Gp(Fb,n,t.month,t.day)}getDaysInMonth(t){return M_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+__(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class iH extends A3{fromJulianDay(t){let[n,r,i]=D3(Fb,t);return n+=Rb,new Xn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class sH extends A3{fromJulianDay(t){let[n,r,i]=D3(PE,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Xn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Gp(PE,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),M_(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 aH(e){switch(e){case"buddhist":return new zW;case"ethiopic":return new A3;case"ethioaa":return new iH;case"coptic":return new sH;case"hebrew":return new rH;case"indian":return new HW;case"islamic-civil":return new S3;case"islamic-tbla":return new YW;case"islamic-umalqura":return new XW;case"japanese":return new UW;case"persian":return new WW;case"roc":return new qW;case"gregory":default:return new Yr}}let Vv=new Map;class Zi{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 lH()&&(this.resolvedHourCycle||(this.resolvedHourCycle=cH(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=F_(t,n),this.options=n}}const oH={true:{ja:"h11"},false:{}};function F_(e,t={}){if(typeof t.hour12=="boolean"&&uH()){t={...t};let i=oH[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(Vv.has(n))return Vv.get(n);let r=new Intl.DateTimeFormat(e,t);return Vv.set(n,r),r}let Bv=null;function uH(){return Bv==null&&(Bv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Bv}let Nv=null;function lH(){return Nv==null&&(Nv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Nv}function cH(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=F_(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 ea(e){e=j5(e??{},fH);let{locale:t}=Rr();return A.useMemo(()=>new Zi(t,e),[t,e])}function fH(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 jv=new Map,kb=!1;try{kb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Yp=!1;try{Yp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const R_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class k_{format(t){let n="";if(!kb&&this.options.signDisplay!=null?n=hH(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Yp){var r;let{unit:i,unitDisplay:s="short",locale:a}=this.resolvedOptions();if(!i)return n;let o=(r=R_[i])===null||r===void 0?void 0:r[s];n+=o[a]||o.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!kb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Yp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=dH(t,n),this.options=n}}function dH(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Yp){var r;let{unit:a,unitDisplay:o="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=R_[a])===null||r===void 0)&&r[o]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,o)=>a[0]<o[0]?-1:1).join():"");if(jv.has(i))return jv.get(i);let s=new Intl.NumberFormat(e,t);return jv.set(i,s),s}function hH(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),a=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(a,"+").replace("!!!",s)}else return e.format(n)}}const pH=new RegExp("^.*\\(.*\\).*$"),mH=["latn","arab","hanidec","deva","beng","fullwide"];class O_{parse(t){return Kv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Kv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Kv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const _E=new Map;function Kv(e,t,n){let r=ME(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of mH)if(i!==r.options.numberingSystem){let s=ME(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function ME(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=_E.get(n);return r||(r=new gH(e,t),_E.set(n,r)),r}class gH{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=xf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let o=n.indexOf(".");o===-1&&(o=n.length),n=n.replace(".",""),o-2===0?n=`0.${n}`:o-2===-1?n=`0.0${n}`:o-2===-2?n="0.00":n=`${n.slice(0,o-2)}.${n.slice(o-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let a={...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 O_(this.locale,a).parse(new k_(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&pH.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=xf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=xf(t," ",this.symbols.group),t=xf(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=xf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=yH(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 FE=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),vH=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function yH(e,t,n,r){var i,s,a,o;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=vH.map(ae=>l.formatToParts(ae));var g;let b=(g=(i=d.find(ae=>ae.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",w=(s=h.find(ae=>ae.type==="plusSign"))===null||s===void 0?void 0:s.value;!w&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(w="+");let D=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||a===void 0?void 0:a.value,C=(o=d.find(ae=>ae.type==="group"))===null||o===void 0?void 0:o.value,E=d.filter(ae=>!FE.has(ae.type)).map(ae=>RE(ae.value)),S=m.flatMap(ae=>ae.filter(I=>!FE.has(I.type)).map(I=>RE(I.value))),k=[...new Set([...E,...S])].sort((ae,I)=>I.length-ae.length),P=k.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${k.join("|")}|[\\p{White_Space}]`,"gu"),F=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),U=new Map(F.map((ae,I)=>[ae,I])),ie=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:w,decimal:D,group:C,literals:P,numeral:ie,index:ae=>String(U.get(ae))}}function xf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function RE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function bH(e={}){let{locale:t}=Rr();return A.useMemo(()=>new k_(t,e),[t,e])}let Uv=new Map;function I_(e){let{locale:t}=Rr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Uv.has(n))return Uv.get(n);let r=new Intl.Collator(t,e);return Uv.set(n,r),r}function L_(e){let t=I_({usage:"search",...e}),n=A.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(0,a.length),a)===0),[t]),r=A.useCallback((s,a)=>a.length===0?!0:(s=s.normalize("NFC"),a=a.normalize("NFC"),t.compare(s.slice(-a.length),a)===0),[t]),i=A.useCallback((s,a)=>{if(a.length===0)return!0;s=s.normalize("NFC"),a=a.normalize("NFC");let o=0,l=a.length;for(;o+l<=s.length;o++){let d=s.slice(o,o+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return A.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function $H(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:a,onPressUp:o,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:w,type:$="button"}=e,D;n==="button"?D={type:$,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:D={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:C,isPressed:E}=Md({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:S}=g3(e,t);h&&(S.tabIndex=r?-1:S.tabIndex);let k=Qt(S,C,eo(e,{labelable:!0}));return{isPressed:E,buttonProps:Qt(D,k,{"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"]})}}const kE=A.createContext(null),Ob="react-aria-focus-scope-restore";let gn=null;function xH(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=A.useRef(null),a=A.useRef(null),o=A.useRef([]),{parentNode:l}=A.useContext(kE)||{},d=A.useMemo(()=>new Lb({scopeRef:o}),[o]);vn(()=>{let g=l||er.root;if(er.getTreeNode(g.scopeRef)&&gn&&!Zp(gn,g.scopeRef)){let b=er.getTreeNode(gn);b&&(g=b)}g.addChild(d),er.addNode(d)},[d,l]),vn(()=>{let g=er.getTreeNode(o);g&&(g.contain=!!n)},[n]),vn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,w=[],$=D=>D.stopPropagation();for(;b&&b!==a.current;)w.push(b),b.addEventListener(Ob,$),b=b.nextSibling;return o.current=w,()=>{for(let D of w)D.removeEventListener(Ob,$)}},[t]),AH(o,r,n),EH(o,n),TH(o,r,n),DH(o,i),A.useEffect(()=>{const g=ar(Jt(o.current?o.current[0]:void 0));let b=null;if(rs(g,o.current)){for(let w of er.traverse())w.scopeRef&&rs(g,w.scopeRef.current)&&(b=w);b===er.getTreeNode(o)&&(gn=b.scopeRef)}},[o]),vn(()=>()=>{var g,b,w;let $=(w=(b=er.getTreeNode(o))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&w!==void 0?w:null;(o===gn||Zp(o,gn))&&(!$||er.getTreeNode($))&&(gn=$),er.removeTreeNode(o)},[o]);let h=A.useMemo(()=>wH(o),[]),m=A.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return A.createElement(kE.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:a}))}function wH(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||ar(Jt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.nextNode();return!g&&s&&(m.currentNode=d,g=m.nextNode()),g&&ai(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||ar(Jt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=xu(n),m=Ur(h,{tabbable:i,accept:a},n);m.currentNode=rs(l,n)?l:d;let g=m.previousNode();return!g&&s&&(m.currentNode=d,g=m.previousNode()),g&&ai(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let o=a.nextNode();return o&&ai(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=xu(n),a=Ur(s,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let o=a.previousNode();return o&&ai(o,!0),o}}}function xu(e){return e[0].parentElement}function Vf(e){let t=er.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function CH(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Jt(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var n,r;let s=(r=e.form)===null||r===void 0||(n=r.elements)===null||n===void 0?void 0:n.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function EH(e,t){let n=A.useRef(void 0),r=A.useRef(void 0);vn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=Jt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Vf(e)||d.isComposing)return;let h=ar(s),m=e.current;if(!m||!rs(h,m))return;let g=xu(m),b=Ur(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let w=d.shiftKey?b.previousNode():b.nextNode();w||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,w=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),w&&ai(w,!0)},o=d=>{(!gn||Zp(gn,e))&&rs(nn(d),e.current)?(gn=e,n.current=nn(d)):Vf(e)&&!Ao(nn(d),e)?n.current?n.current.focus():gn&&gn.current&&Ib(gn.current):Vf(e)&&(n.current=nn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=rd(),m=(h==="virtual"||h===null)&&l3()&&L5(),g=ar(s);if(!m&&g&&Vf(e)&&!Ao(g,e)){gn=e;let w=nn(d);if(w&&w.isConnected){var b;n.current=w,(b=n.current)===null||b===void 0||b.focus()}else gn.current&&Ib(gn.current)}})};return s.addEventListener("keydown",a,!1),s.addEventListener("focusin",o,!1),i==null||i.forEach(d=>d.addEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",a,!1),s.removeEventListener("focusin",o,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",o,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),vn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function V_(e){return Ao(e)}function rs(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function Ao(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of er.traverse(er.getTreeNode(t)))if(n&&rs(e,n.current))return!0;return!1}function SH(e){return Ao(e,gn)}function Zp(e,t){var n;let r=(n=er.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ai(e,t=!1){if(e!=null&&!t)try{Uu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function B_(e,t=!0){let n=e[0].previousElementSibling,r=xu(e),i=Ur(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=xu(e),i=Ur(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Ib(e,t=!0){ai(B_(e,t))}function DH(e,t){const n=A.useRef(t);A.useEffect(()=>{if(n.current){gn=e;const r=Jt(e.current?e.current[0]:void 0);!rs(ar(r),gn.current)&&e.current&&Ib(e.current)}n.current=!1},[e])}function AH(e,t,n){vn(()=>{if(t||n)return;let r=e.current;const i=Jt(r?r[0]:void 0);let s=a=>{let o=nn(a);rs(o,e.current)?gn=e:V_(o)||(gn=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,t,n])}function OE(e){let t=er.getTreeNode(gn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function TH(e,t,n){const r=A.useRef(typeof document<"u"?ar(Jt(e.current?e.current[0]:void 0)):null);vn(()=>{let i=e.current;const s=Jt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!gn||Zp(gn,e))&&rs(ar(s),e.current)&&(gn=e)};return s.addEventListener("focusin",a,!1),i==null||i.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{s.removeEventListener("focusin",a,!1),i==null||i.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,n]),vn(()=>{const i=Jt(e.current?e.current[0]:void 0);if(!t)return;let s=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Vf(e)||a.isComposing)return;let o=i.activeElement;if(!Ao(o,e)||!OE(e))return;let l=er.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Ur(i.body,{tabbable:!0});h.currentNode=o;let m=a.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!Ao(m,e))&&d){h.currentNode=d;do m=a.shiftKey?h.previousNode():h.nextNode();while(Ao(m,e));a.preventDefault(),a.stopPropagation(),m?ai(m,!0):V_(d)?ai(d,!0):o.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),vn(()=>{const i=Jt(e.current?e.current[0]:void 0);if(!t)return;let s=er.getTreeNode(e);if(s){var a;return s.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let o=er.getTreeNode(e);if(!o)return;let l=o.nodeToRestore,d=ar(i);if(t&&l&&(d&&Ao(d,e)||d===i.body&&OE(e))){let h=er.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){IE(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&er.getTreeNode(m.scopeRef)){let g=B_(m.scopeRef.current,!0);IE(g);return}m=m.parent}}})}}}},[e,t])}function IE(e){e.dispatchEvent(new CustomEvent(Ob,{bubbles:!0,cancelable:!0}))&&ai(e)}function Ur(e,t,n){let r=t!=null&&t.tabbable?kq:K5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=Jt(i),a=aq(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(o)||t!=null&&t.tabbable&&o.tagName==="INPUT"&&o.getAttribute("type")==="radio"&&(!CH(o)||a.currentNode.tagName==="INPUT"&&a.currentNode.type==="radio"&&a.currentNode.name===o.name)?NodeFilter.FILTER_REJECT:r(o)&&(!n||rs(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function jm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||ar(Jt(r)),d=Ur(r,{tabbable:s,accept:o});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&a&&(d.currentNode=r,h=d.nextNode()),h&&ai(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:o=t.accept}=n,l=i||ar(Jt(r)),d=Ur(r,{tabbable:s,accept:o});if(r.contains(l))d.currentNode=l;else{let m=zv(d);return m&&ai(m,!0),m??null}let h=d.previousNode();if(!h&&a){d.currentNode=r;let m=zv(d);if(!m)return null;h=m}return h&&ai(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,o=Ur(r,{tabbable:i,accept:s}).nextNode();return o&&ai(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,a=Ur(r,{tabbable:i,accept:s}),o=zv(a);return o&&ai(o,!0),o??null}}}function zv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class T3{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 Lb({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&&rs(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 T3;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 Lb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Lb{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 er=new T3;function N_(e){let t=_H(Jt(e));t!==e&&(t&&PH(t,e),e&&P3(e,t))}function PH(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function P3(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function _H(e){let t=ar(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var j_={};j_={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=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var U_={};U_={dateRange:e=>`${e.startDate} 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 z_={};z_={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 q_={};q_={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 H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 X_={};X_={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 J_={};J_={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 Q_={};Q_={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 e6={};e6={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 t6={};t6={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 n6={};n6={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var r6={};r6={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var i6={};i6={dateRange:e=>`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 s6={};s6={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 a6={};a6={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 o6={};o6={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 u6={};u6={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 l6={};l6={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 c6={};c6={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 f6={};f6={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 d6={};d6={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 h6={};h6={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 p6={};p6={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 m6={};m6={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 g6={};g6={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 v6={};v6={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 y6={};y6={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 b6={};b6={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 $6={};$6={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 Id={};Id={"ar-AE":j_,"bg-BG":K_,"cs-CZ":U_,"da-DK":z_,"de-DE":q_,"el-GR":W_,"en-US":H_,"es-ES":G_,"et-EE":Y_,"fi-FI":Z_,"fr-FR":X_,"he-IL":J_,"hr-HR":Q_,"hu-HU":e6,"it-IT":t6,"ja-JP":n6,"ko-KR":r6,"lt-LT":i6,"lv-LV":s6,"nb-NO":a6,"nl-NL":o6,"pl-PL":u6,"pt-BR":l6,"pt-PT":c6,"ro-RO":f6,"ru-RU":d6,"sk-SK":h6,"sl-SI":p6,"sr-SP":m6,"sv-SE":g6,"tr-TR":v6,"uk-UA":y6,"zh-CN":b6,"zh-TW":$6};function x6(e){return e&&e.__esModule?e.default:e}const _3=new WeakMap;function ud(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function MH(e){let t=da(x6(Id),"@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=ea({weekday:"long",month:"long",year:"numeric",day:"numeric",era:ud(n)||ud(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return A.useMemo(()=>{if(!a&&n&&r)if(nr(n,r)){let o=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:o})}else{let o=Bb(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,s])}function Vb(e,t,n,r){let i=da(x6(Id),"@react-aria/calendar"),s=ud(e)||ud(t),a=ea({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),o=ea({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return A.useMemo(()=>{if(nr(e,kd(e))){let l=e,d=t;if(e.calendar.getFormattableMonth&&(l=e.calendar.getFormattableMonth(e)),t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),nr(t,Ab(e)))return a.format(l.toDate(n));if(nr(t,Ab(t)))return r?Bb(a,i,l,d,n):a.formatRange(l.toDate(n),d.toDate(n))}return r?Bb(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,o,i,n,r])}function Bb(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")a=d;else if(h.source==="endRange")break}let o="",l="";for(let d=0;d<s.length;d++)d<a?o+=s[d].value:d>a&&(l+=s[d].value);return t.format("dateRange",{startDate:o,endDate:l})}const w6=7e3;let Ui=null;function Ql(e,t="assertive",n=w6){Ui?Ui.announce(e,t,n):(Ui=new RH,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ui.announce(e,t,n):setTimeout(()=>{Ui!=null&&Ui.isAttached()&&(Ui==null||Ui.announce(e,t,n))},100))}function FH(e){Ui&&Ui.clear(e)}class RH{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=w6){var i,s;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(s=this.politeLog)===null||s===void 0||s.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function kH(e){return e&&e.__esModule?e.default:e}function C6(e,t){let n=da(kH(Id),"@react-aria/calendar"),r=eo(e),i=Vb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Vb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);bb(()=>{t.isFocused||Ql(s)},[s]);let a=MH(t);bb(()=>{a&&Ql(a,"polite",4e3)},[a]);let o=lc([!!e.errorMessage,e.isInvalid,e.validationState]);_3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:a});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 w=cc({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Qt(r,w,{role:"application","aria-details":e["aria-details"]||void 0,"aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:o},title:i}}function OH(e,t){return C6(e,t)}function IH(e,t,n){let r=C6(e,t),i=A.useRef(!1),s=A.useRef(typeof window<"u"?window:null);return Qs(s,"pointerdown",o=>{i.current=o.width===0&&o.height===0}),Qs(s,"pointerup",o=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=o.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=o=>{n.current&&(!o.relatedTarget||!n.current.contains(o.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Qs(n,"touchmove",o=>{t.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function LH(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),a=$=>{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}},o=Vb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=_3.get(t),h=cc({"aria-label":[l,o].filter(Boolean).join(", "),"aria-labelledby":d}),m=ea({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Rr(),b=A.useMemo(()=>{let $=id(Bm(t.timeZone),g,i);return[...new Array(7).keys()].map(D=>{let E=$.add({days:D}).toDate(t.timeZone);return m.format(E)})},[g,t.timeZone,m,i]),w=c_(n,g,i);return{gridProps:Qt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b,weeksInMonth:w}}function VH(e){return e&&e.__esModule?e.default:e}function BH(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:a}=_3.get(t),o=da(VH(Id),"@react-aria/calendar"),l=ea({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ud(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r)&&!e.isOutsideMonth;i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&nr(t.value,r));b&&(d=!0),r=j5(r,Db);let w=A.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=a_(r,t.timeZone),D=A.useMemo(()=>{let I="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(nr(r,t.value.start)||nr(r,t.value.end))&&(I=a+", "),I+=l.format(w),$?I=o.format(d?"todayDateSelected":"todayDate",{date:I}):d&&(I=o.format("dateSelected",{date:I})),t.minValue&&nr(r,t.minValue)?I+=", "+o.format("minimumDate"):t.maxValue&&nr(r,t.maxValue)&&(I+=", "+o.format("maximumDate")),I},[l,w,o,d,$,r,t,a]),C="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?C=o.format("finishRangeSelectionPrompt"):C=o.format("startRangeSelectionPrompt"));let E=Pd(C),S=A.useRef(!1),k=A.useRef(!1),P=A.useRef(void 0),{pressProps:F,isPressed:U}=Md({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(I){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(I.pointerType==="mouse"||I.pointerType==="touch")){if(t.highlightedRange&&!b){if(nr(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}else if(nr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),k.current=!0;return}}let xe=()=>{t.setDragging(!0),P.current=void 0,t.selectDate(r),t.setFocusedDate(r),S.current=!0};I.pointerType==="touch"?P.current=setTimeout(xe,200):xe()}},onPressEnd(){k.current=!1,S.current=!1,clearTimeout(P.current),P.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&P.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(k.current)t.setAnchorDate(r);else if(t.anchorDate&&!S.current)t.selectDate(r),t.setFocusedDate(r);else if(I.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let xe=r.add({days:1});t.isInvalid(xe)&&(xe=r.subtract({days:1})),t.isInvalid(xe)||t.setFocusedDate(xe)}else I.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),ie;i||(ie=nr(r,t.focusedDate)?0:-1),A.useEffect(()=>{h&&n.current&&(Ai(n.current),rd()!=="pointer"&&document.activeElement===n.current&&jp(n.current,{containingElement:Om(n.current)}))},[h,n]);let de=ea({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=A.useMemo(()=>de.formatToParts(w).find(I=>I.type==="day").value,[de,w]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Qt(F,{onFocus(){i||t.setFocusedDate(r)},tabIndex:ie,role:"button","aria-disabled":!g||void 0,"aria-label":D,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,E["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(I){"highlightDate"in t&&(I.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(I){"releasePointerCapture"in I.target&&I.target.releasePointerCapture(I.pointerId)},onContextMenu(I){I.preventDefault()}}),isPressed:U,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const Km={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},E6={...Km,customError:!0,valid:!1},vu={isInvalid:!1,validationDetails:Km,validationErrors:[]},NH=A.createContext({}),hc="__formValidationState"+Date.now();function Ld(e){if(e[hc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[hc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return jH(e)}function jH(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:a,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:E6}:null,d=A.useMemo(()=>{if(!a||i==null)return null;let ae=KH(a,i);return LE(ae)},[a,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=A.useContext(NH),m=A.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>Nb(h[ae])):Nb(h[r]):[],[h,r]),[g,b]=A.useState(h),[w,$]=A.useState(!1);h!==g&&(b(h),$(!1));let D=A.useMemo(()=>LE(w?[]:m),[w,m]),C=A.useRef(vu),[E,S]=A.useState(vu),k=A.useRef(vu),P=()=>{if(!F)return;U(!1);let ae=d||s||C.current;qv(ae,k.current)||(k.current=ae,S(ae))},[F,U]=A.useState(!1);return A.useEffect(P),{realtimeValidation:l||D||d||s||vu,displayValidation:o==="native"?l||D||E:l||D||d||s||E,updateValidation(ae){o==="aria"&&!qv(E,ae)?S(ae):C.current=ae},resetValidation(){let ae=vu;qv(ae,k.current)||(k.current=ae,S(ae)),o==="native"&&U(!1),$(!0)},commitValidation(){o==="native"&&U(!0),$(!0)}}}function Nb(e){return e?Array.isArray(e)?e:[e]:[]}function KH(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Nb(n)}return[]}function LE(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:E6}:null}function qv(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 Xp(...e){let t=new Set,n=!1,r={...Km};for(let a of e){var i,s;for(let o of a.validationErrors)t.add(o);n||(n=a.isInvalid);for(let o in r)(i=r)[s=o]||(i[s]=a.validationDetails[o])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function S6(e,t,n){let{validationBehavior:r,focus:i}=e;vn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(zH(n.current))}});let s=A.useRef(!1),a=kn(()=>{s.current||t.resetValidation()}),o=kn(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&qH(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),J5("keyboard")}d.preventDefault()}),l=kn(()=>{t.commitValidation()});A.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let h=d.form,m=h==null?void 0:h.reset;return h&&(h.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,m==null||m.call(h),s.current=!1}),d.addEventListener("invalid",o),d.addEventListener("change",l),h==null||h.addEventListener("reset",a),()=>{d.removeEventListener("invalid",o),d.removeEventListener("change",l),h==null||h.removeEventListener("reset",a),h&&(h.reset=m)}},[n,o,l,a,r])}function UH(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 zH(e){return{isInvalid:!e.validity.valid,validationDetails:UH(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function qH(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Um(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Hr(t);let a=Hr(),o={};n?(r=r?`${a} ${r}`:a,o={id:a,htmlFor:s==="label"?t:void 0}):!r&&!i&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=cc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function zm(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=Um(e),o=lc([!!t,!!n,r,i]),l=lc([!!t,!!n,r,i]);return a=Qt(a,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:a,descriptionProps:{id:o},errorMessageProps:{id:l}}}const WH=0,HH=100,GH=1;function YH(e){const{isDisabled:t=!1,minValue:n=WH,maxValue:r=HH,numberFormatter:i,step:s=GH,orientation:a="horizontal"}=e;let o=A.useMemo(()=>{let ue=(r-n)/10;return ue=bf(ue,0,ue+s,s),Math.max(ue,s)},[s,r,n]),l=A.useCallback(ue=>ue==null?void 0:ue.map((De,Pe)=>{let Fe=Pe===0?n:ue[Pe-1],We=Pe===ue.length-1?r:ue[Pe+1];return bf(De,Fe,We,s)}),[n,r,s]),d=A.useMemo(()=>l(BE(e.value)),[e.value,l]),h=A.useMemo(()=>{var ue;return l((ue=BE(e.defaultValue))!==null&&ue!==void 0?ue:[n])},[e.defaultValue,n,l]),m=NE(e.value,e.defaultValue,e.onChange),g=NE(e.value,e.defaultValue,e.onChangeEnd);const[b,w]=Ti(d,h,m);let[$]=A.useState(b);const[D,C]=A.useState(new Array(b.length).fill(!1)),E=A.useRef(new Array(b.length).fill(!0)),[S,k]=A.useState(void 0),P=A.useRef(b),F=A.useRef(D);let U=ue=>{P.current=ue,w(ue)},ie=ue=>{F.current=ue,C(ue)};function de(ue){return(ue-n)/(r-n)}function ae(ue){return ue===0?n:b[ue-1]}function I(ue){return ue===b.length-1?r:b[ue+1]}function xe(ue){return E.current[ue]}function Ce(ue,De){E.current[ue]=De}function z(ue,De){if(t||!xe(ue))return;const Pe=ae(ue),Fe=I(ue);De=bf(De,Pe,Fe,s);let We=VE(P.current,ue,De);U(We)}function ee(ue,De){if(t||!xe(ue))return;De&&(P.current=b);const Pe=F.current[ue];F.current=VE(F.current,ue,De),ie(F.current),g&&Pe&&!F.current.some(Boolean)&&g(P.current)}function K(ue){return i.format(ue)}function O(ue,De){z(ue,te(De))}function V(ue){return Math.round((ue-n)/s)*s+n}function te(ue){const De=ue*(r-n)+n;return fc(V(De),n,r)}function j(ue,De=1){let Pe=Math.max(De,s);z(ue,bf(b[ue]+Pe,n,r,s))}function le(ue,De=1){let Pe=Math.max(De,s);z(ue,bf(b[ue]-Pe,n,r,s))}return{values:b,defaultValues:e.defaultValue!==void 0?h:$,getThumbValue:ue=>b[ue],setThumbValue:z,setThumbPercent:O,isThumbDragging:ue=>D[ue],setThumbDragging:ee,focusedThumb:S,setFocusedThumb:k,getThumbPercent:ue=>de(b[ue]),getValuePercent:de,getThumbValueLabel:ue=>K(b[ue]),getFormattedValue:K,getThumbMinValue:ae,getThumbMaxValue:I,getPercentValue:te,isThumbEditable:xe,setThumbEditable:Ce,incrementThumb:j,decrementThumb:le,step:s,pageSize:o,orientation:a,isDisabled:t}}function VE(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function BE(e){if(e!=null)return Array.isArray(e)?e:[e]}function NE(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const jE={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 ZH(e={}){let{style:t,isFocusable:n}=e,[r,i]=A.useState(!1),{focusWithinProps:s}=Cc({isDisabled:!n,onFocusWithinChange:o=>i(o)}),a=A.useMemo(()=>r?t:t?{...jE,...t}:jE,[r]);return{visuallyHiddenProps:{...s,style:a}}}function XH(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=ZH(e);return A.createElement(n,Qt(s,a),t)}const M3=new WeakMap;function jb(e,t){let n=M3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function JH(e,t,n){let{labelProps:r,fieldProps:i}=Um(e),s=e.orientation==="vertical";var a;M3.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:o}=Rr(),{addGlobalListener:l,removeGlobalListener:d}=Io();const h=A.useRef(null),m=o==="rtl",g=A.useRef(null),{moveProps:b}=e_({onMoveStart(){g.current=null},onMove({deltaX:C,deltaY:E}){if(!n.current)return;let{height:S,width:k}=n.current.getBoundingClientRect(),P=s?S:k;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*P);let F=s?E:C;if((s||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const U=fc(g.current/P,0,1);t.setThumbPercent(h.current,U)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let w=A.useRef(void 0),$=(C,E,S,k)=>{if(n.current&&!e.isDisabled&&t.values.every((P,F)=>!t.isThumbDragging(F))){let{height:P,width:F,top:U,left:ie}=n.current.getBoundingClientRect(),de=s?P:F,Ce=((s?k:S)-(s?U:ie))/de;(o==="rtl"||s)&&(Ce=1-Ce);let z=t.getPercentValue(Ce),ee,K=t.values.findIndex(O=>z-O<0);if(K===0)ee=K;else if(K===-1)ee=t.values.length-1;else{let O=t.values[K-1],V=t.values[K];Math.abs(O-z)<Math.abs(V-z)?ee=K-1:ee=K}ee>=0&&t.isThumbEditable(ee)?(C.preventDefault(),h.current=ee,t.setFocusedThumb(ee),w.current=E,t.setThumbDragging(h.current,!0),t.setThumbValue(ee,z),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):h.current=null}},D=C=>{var E,S;((S=C.pointerId)!==null&&S!==void 0?S:(E=C.changedTouches)===null||E===void 0?void 0:E[0].identifier)===w.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 C;(C=document.getElementById(jb(t,0)))===null||C===void 0||C.focus(),J5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Qt({onMouseDown(C){C.button!==0||C.altKey||C.ctrlKey||C.metaKey||$(C,void 0,C.clientX,C.clientY)},onPointerDown(C){C.pointerType==="mouse"&&(C.button!==0||C.altKey||C.ctrlKey||C.metaKey)||$(C,C.pointerId,C.clientX,C.clientY)},onTouchStart(C){$(C,C.changedTouches[0].identifier,C.changedTouches[0].clientX,C.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((C,E)=>jb(t,E)).join(" "),"aria-live":"off"}}}function QH(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:a,inputRef:o,orientation:l=t.orientation,name:d,form:h}=e,m=e.isDisabled||t.isDisabled,g=l==="vertical",{direction:b}=Rr(),{addGlobalListener:w,removeGlobalListener:$}=Io(),D=M3.get(t);var C;const{labelProps:E,fieldProps:S}=Um({...e,id:jb(t,n),"aria-labelledby":`${D.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),k=t.values[n],P=A.useCallback(()=>{o.current&&Ai(o.current)},[o]),F=t.focusedThumb===n;A.useEffect(()=>{F&&P()},[F,P]);let U=b==="rtl",ie=A.useRef(null),{keyboardProps:de}=Q5({onKeyDown(O){let{getThumbMaxValue:V,getThumbMinValue:te,decrementThumb:j,incrementThumb:le,setThumbValue:ue,setThumbDragging:De,pageSize:Pe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(O.key)){O.continuePropagation();return}switch(O.preventDefault(),De(n,!0),O.key){case"PageUp":le(n,Pe);break;case"PageDown":j(n,Pe);break;case"Home":ue(n,te(n));break;case"End":ue(n,V(n));break}De(n,!1)}}),{moveProps:ae}=e_({onMoveStart(){ie.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:V,pointerType:te,shiftKey:j}){const{getThumbPercent:le,setThumbPercent:ue,decrementThumb:De,incrementThumb:Pe,step:Fe,pageSize:We}=t;if(!a.current)return;let{width:Xe,height:Be}=a.current.getBoundingClientRect(),He=g?Be:Xe;if(ie.current==null&&(ie.current=le(n)*He),te==="keyboard")O>0&&U||O<0&&!U||V>0?De(n,j?We:Fe):Pe(n,j?We:Fe);else{let Me=g?V:O;(g||U)&&(Me=-Me),ie.current+=Me,ue(n,fc(ie.current/He,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:I}=g3(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let xe=A.useRef(void 0),Ce=O=>{P(),xe.current=O,t.setThumbDragging(n,!0),w(window,"mouseup",z,!1),w(window,"touchend",z,!1),w(window,"pointerup",z,!1)},z=O=>{var V,te;((te=O.pointerId)!==null&&te!==void 0?te:(V=O.changedTouches)===null||V===void 0?void 0:V[0].identifier)===xe.current&&(P(),t.setThumbDragging(n,!1),$(window,"mouseup",z,!1),$(window,"touchend",z,!1),$(window,"pointerup",z,!1))},ee=t.getThumbPercent(n);(g||b==="rtl")&&(ee=1-ee);let K=m?{}:Qt(de,ae,{onMouseDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||Ce()},onPointerDown:O=>{O.button!==0||O.altKey||O.ctrlKey||O.metaKey||Ce(O.pointerId)},onTouchStart:O=>{Ce(O.changedTouches[0].identifier)}});return c3(o,t.defaultValues[n],O=>{t.setThumbValue(n,O)}),{inputProps:Qt(I,S,{type:"range",tabIndex:m?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:k,name:d,form:h,disabled:m,"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":[D["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[D["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:O=>{t.setThumbValue(n,parseFloat(O.target.value))}}),thumbProps:{...K,style:{position:"absolute",[g?"top":"left"]:`${ee*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:E,isDragging:t.isThumbDragging(n),isDisabled:m,isFocused:F}}function eG(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:a="text",validationBehavior:o="aria"}=e,[l,d]=Ti(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=g3(e,t),m=Ld({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:w}=m.displayValidation,{labelProps:$,fieldProps:D,descriptionProps:C,errorMessageProps:E}=zm({...e,isInvalid:g,errorMessage:e.errorMessage||b}),S=eo(e,{labelable:!0});const k={type:a,pattern:e.pattern};let[P]=A.useState(l);var F;return c3(t,(F=e.defaultValue)!==null&&F!==void 0?F:P,d),S6(e,m,t),A.useEffect(()=>{if(t.current instanceof ca(t.current).HTMLTextAreaElement){let U=t.current;Object.defineProperty(U,"defaultValue",{get:()=>U.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:Qt(S,n==="input"?k:void 0,{disabled:r,readOnly:s,required:i&&o==="native","aria-required":i&&o==="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:U=>d(U.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(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:C,errorMessageProps:E,isInvalid:g,validationErrors:b,validationDetails:w}}var D6={};D6={Empty:"فارغ"};var A6={};A6={Empty:"Изпразни"};var T6={};T6={Empty:"Prázdné"};var P6={};P6={Empty:"Tom"};var _6={};_6={Empty:"Leer"};var M6={};M6={Empty:"Άδειο"};var F6={};F6={Empty:"Empty"};var R6={};R6={Empty:"Vacío"};var k6={};k6={Empty:"Tühjenda"};var O6={};O6={Empty:"Tyhjä"};var I6={};I6={Empty:"Vide"};var L6={};L6={Empty:"ריק"};var V6={};V6={Empty:"Prazno"};var B6={};B6={Empty:"Üres"};var N6={};N6={Empty:"Vuoto"};var j6={};j6={Empty:"空"};var K6={};K6={Empty:"비어 있음"};var U6={};U6={Empty:"Tuščias"};var z6={};z6={Empty:"Tukšs"};var q6={};q6={Empty:"Tom"};var W6={};W6={Empty:"Leeg"};var H6={};H6={Empty:"Pusty"};var G6={};G6={Empty:"Vazio"};var Y6={};Y6={Empty:"Vazio"};var Z6={};Z6={Empty:"Gol"};var X6={};X6={Empty:"Не заполнено"};var J6={};J6={Empty:"Prázdne"};var Q6={};Q6={Empty:"Prazen"};var eM={};eM={Empty:"Prazno"};var tM={};tM={Empty:"Tomt"};var nM={};nM={Empty:"Boş"};var rM={};rM={Empty:"Пусто"};var iM={};iM={Empty:"空"};var sM={};sM={Empty:"空白"};var aM={};aM={"ar-AE":D6,"bg-BG":A6,"cs-CZ":T6,"da-DK":P6,"de-DE":_6,"el-GR":M6,"en-US":F6,"es-ES":R6,"et-EE":k6,"fi-FI":O6,"fr-FR":I6,"he-IL":L6,"hr-HR":V6,"hu-HU":B6,"it-IT":N6,"ja-JP":j6,"ko-KR":K6,"lt-LT":U6,"lv-LV":z6,"nb-NO":q6,"nl-NL":W6,"pl-PL":H6,"pt-BR":G6,"pt-PT":Y6,"ro-RO":Z6,"ru-RU":X6,"sk-SK":J6,"sl-SI":Q6,"sr-SP":eM,"sv-SE":tM,"tr-TR":nM,"uk-UA":rM,"zh-CN":iM,"zh-TW":sM};function tG(e){return e&&e.__esModule?e.default:e}function nG(e){const t=A.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:a,isReadOnly:o,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:w}=e;const $=da(tG(aM),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);A.useEffect(()=>()=>D(),[]);let C=I=>{if(!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey||o||I.nativeEvent.isComposing))switch(I.key){case"PageUp":if(h){I.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(I.preventDefault(),d==null||d());break;case"PageDown":if(g){I.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(I.preventDefault(),m==null||m());break;case"Home":b&&(I.preventDefault(),b==null||b());break;case"End":w&&(I.preventDefault(),w==null||w());break}},E=A.useRef(!1),S=()=>{E.current=!0},k=()=>{E.current=!1},P=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");A.useEffect(()=>{E.current&&(FH("assertive"),Ql(P,"assertive"))},[P]);const F=kn(I=>{D(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&F(60)},I)}),U=kn(I=>{D(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&U(60)},I)});let ie=I=>{I.preventDefault()},{addGlobalListener:de,removeAllGlobalListeners:ae}=Io();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":a||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:C,onFocus:S,onBlur:k},incrementButtonProps:{onPressStart:()=>{F(400),de(window,"contextmenu",ie)},onPressEnd:()=>{D(),ae()},onFocus:S,onBlur:k},decrementButtonProps:{onPressStart:()=>{U(400),de(window,"contextmenu",ie)},onPressEnd:()=>{D(),ae()},onFocus:S,onBlur:k}}}var oM={};oM={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 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:"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 cM={};cM={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 fM={};fM={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 dM={};dM={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 hM={};hM={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 pM={};pM={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 mM={};mM={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 gM={};gM={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 vM={};vM={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 yM={};yM={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 bM={};bM={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 $M={};$M={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 xM={};xM={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 wM={};wM={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 CM={};CM={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 SM={};SM={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 DM={};DM={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 AM={};AM={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 TM={};TM={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 PM={};PM={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 _M={};_M={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 MM={};MM={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 FM={};FM={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 RM={};RM={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 kM={};kM={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 OM={};OM={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 IM={};IM={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 LM={};LM={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 VM={};VM={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 BM={};BM={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 NM={};NM={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 jM={};jM={"ar-AE":oM,"bg-BG":uM,"cs-CZ":lM,"da-DK":cM,"de-DE":fM,"el-GR":dM,"en-US":hM,"es-ES":pM,"et-EE":mM,"fi-FI":gM,"fr-FR":vM,"he-IL":yM,"hr-HR":bM,"hu-HU":$M,"it-IT":xM,"ja-JP":wM,"ko-KR":CM,"lt-LT":EM,"lv-LV":SM,"nb-NO":DM,"nl-NL":AM,"pl-PL":TM,"pt-BR":PM,"pt-PT":_M,"ro-RO":MM,"ru-RU":FM,"sk-SK":RM,"sl-SI":kM,"sr-SP":OM,"sv-SE":IM,"tr-TR":LM,"uk-UA":VM,"zh-CN":BM,"zh-TW":NM};const ta={top:"top",bottom:"top",left:"left",right:"left"},Jp={top:"bottom",bottom:"top",left:"right",right:"left"},rG={top:"left",left:"top"},Kb={top:"height",left:"width"},KM={width:"totalWidth",height:"totalHeight"},zh={};let pr=typeof document<"u"?window.visualViewport:null;function KE(e){let t=0,n=0,r=0,i=0,s=0,a=0,o={};var l;let d=((l=pr==null?void 0:pr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let w=document.documentElement;r=w.clientWidth,i=w.clientHeight;var h;t=(h=pr==null?void 0:pr.width)!==null&&h!==void 0?h:r;var m;n=(m=pr==null?void 0:pr.height)!==null&&m!==void 0?m:i,o.top=w.scrollTop||e.scrollTop,o.left=w.scrollLeft||e.scrollLeft,pr&&(s=pr.offsetTop,a=pr.offsetLeft)}else({width:t,height:n,top:s,left:a}=ec(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(u3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;s=(g=pr==null?void 0:pr.pageTop)!==null&&g!==void 0?g:0;var b;a=(b=pr==null?void 0:pr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:s,left:a}}function iG(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function UE(e,t,n,r,i,s,a){var o;let l=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[Kb[e]],h=r.scroll[ta[e]]+s,m=d+r.scroll[ta[e]]-s,g=t-l+a[e]-r[ta[e]],b=t-l+n+a[e]-r[ta[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function sG(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 zE(e){if(zh[e])return zh[e];let[t,n]=e.split(" "),r=ta[t]||"right",i=rG[r];ta[n]||(n="center");let s=Kb[r],a=Kb[i];return zh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},zh[e]}function Wv(e,t,n,r,i,s,a,o,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:w,crossSize:$}=r,D={};var C;D[b]=(C=e[b])!==null&&C!==void 0?C:0;var E,S,k,P;m==="center"?D[b]+=(((E=e[$])!==null&&E!==void 0?E:0)-((S=n[$])!==null&&S!==void 0?S:0))/2:m!==b&&(D[b]+=((k=e[$])!==null&&k!==void 0?k:0)-((P=n[$])!==null&&P!==void 0?P:0)),D[b]+=s;const F=e[b]-n[$]+l+d,U=e[b]+e[$]-l-d;if(D[b]=fc(D[b],F,U),h===g){const ie=o?a[w]:t[KM[w]];D[Jp[g]]=Math.floor(ie-e[g]+i)}else D[g]=Math.floor(e[g]+e[w]+i);return D}function aG(e,t,n,r,i,s,a,o){const l=r?n.height:t[KM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var m,g,b,w,$,D;let C=o!=="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+a-(t.top+((w=t.scroll.top)!==null&&w!==void 0?w:0))-((($=i.top)!==null&&$!==void 0?$:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+s));return Math.min(t.height-s*2,C)}function qE(e,t,n,r,i,s){let{placement:a,axis:o,size:l}=s;var d,h;if(a===o)return Math.max(0,n[o]-e[o]-((d=e.scroll[o])!==null&&d!==void 0?d:0)+t[o]-((h=r[o])!==null&&h!==void 0?h:0)-r[Jp[o]]-i);var m;return Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-n[o]-n[l]-((m=r[o])!==null&&m!==void 0?m:0)-r[Jp[o]]-i)}function oG(e,t,n,r,i,s,a,o,l,d,h,m,g,b,w,$){let D=zE(e),{size:C,crossAxis:E,crossSize:S,placement:k,crossPlacement:P}=D,F=Wv(t,o,n,D,h,m,d,g,w,$),U=h,ie=qE(o,d,t,i,s+h,D);if(a&&r[C]>ie){let Pe=zE(`${Jp[k]} ${P}`),Fe=Wv(t,o,n,Pe,h,m,d,g,w,$);qE(o,d,t,i,s+h,Pe)>ie&&(D=Pe,F=Fe,U=h)}let de="bottom";D.axis==="top"?D.placement==="top"?de="top":D.placement==="bottom"&&(de="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?de="bottom":D.crossPlacement==="bottom"&&(de="top"));let ae=UE(E,F[E],n[S],o,l,s,d);F[E]+=ae;let I=aG(F,o,d,g,i,s,n.height,de);b&&b<I&&(I=b),n.height=Math.min(n.height,I),F=Wv(t,o,n,D,U,m,d,g,w,$),ae=UE(E,F[E],n[S],o,l,s,d),F[E]+=ae;let xe={},Ce=t[E]+.5*t[S]-F[E]-i[ta[E]];const z=w/2+$;var ee,K,O,V;const te=ta[E]==="left"?((ee=i.left)!==null&&ee!==void 0?ee:0)+((K=i.right)!==null&&K!==void 0?K:0):((O=i.top)!==null&&O!==void 0?O:0)+((V=i.bottom)!==null&&V!==void 0?V:0),j=n[S]-te-w/2-$,le=t[E]+w/2-(F[E]+i[ta[E]]),ue=t[E]+t[S]-w/2-(F[E]+i[ta[E]]),De=fc(Ce,le,ue);return xe[E]=fc(De,z,j),{position:F,maxHeight:I,arrowOffsetLeft:xe.left,arrowOffsetTop:xe.top,placement:D.placement}}function uG(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:a,boundaryElement:o,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?lG(r):document.documentElement,w=b===document.documentElement;const $=window.getComputedStyle(b).position;let D=!!$&&$!=="static",C=w?ec(n):WE(n,b);if(!w){let{marginTop:xe,marginLeft:Ce}=window.getComputedStyle(n);C.top+=parseInt(xe,10)||0,C.left+=parseInt(Ce,10)||0}let E=ec(r),S=sG(r);var k,P;E.width+=((k=S.left)!==null&&k!==void 0?k:0)+((P=S.right)!==null&&P!==void 0?P:0);var F,U;E.height+=((F=S.top)!==null&&F!==void 0?F:0)+((U=S.bottom)!==null&&U!==void 0?U:0);let ie=iG(i),de=KE(o),ae=KE(b),I=o.tagName==="BODY"?ec(b):WE(b,o);return b.tagName==="HTML"&&o.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),oG(t,C,E,ie,S,s,a,de,ae,I,l,d,D,h,m,g)}function ec(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:a,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+s-o,left:n+a-l,width:r,height:i}}function WE(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:a,height:o}=e.getBoundingClientRect();r={top:i,left:s,width:a,height:o}}else{r=ec(e);let i=ec(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 lG(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!HE(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!HE(t);)t=t.parentElement;return t||document.documentElement}function HE(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 UM=new WeakMap;function cG(e){let{triggerRef:t,isOpen:n,onClose:r}=e;A.useEffect(()=>{if(!n||r===null)return;let i=s=>{let a=s.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let o=r||UM.get(t.current);o&&o()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Hn=typeof document<"u"?window.visualViewport:null;function fG(e){let{direction:t}=Rr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:a="bottom",containerPadding:o=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:w,maxHeight:$,arrowBoundaryOffset:D=0}=e,[C,E]=A.useState(null),S=[g,a,i.current,r.current,s.current,o,l,d,h,m,b,t,$,D,n],k=A.useRef(Hn==null?void 0:Hn.scale);A.useEffect(()=>{b&&(k.current=Hn==null?void 0:Hn.scale)},[b]);let P=A.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(Hn==null?void 0:Hn.scale)!==k.current)return;let ae=null;if(s.current&&s.current.contains(document.activeElement)){var I;let V=(I=document.activeElement)===null||I===void 0?void 0:I.getBoundingClientRect(),te=s.current.getBoundingClientRect();var xe;if(ae={type:"top",offset:((xe=V==null?void 0:V.top)!==null&&xe!==void 0?xe:0)-te.top},ae.offset>te.height/2){ae.type="bottom";var Ce;ae.offset=((Ce=V==null?void 0:V.bottom)!==null&&Ce!==void 0?Ce:0)-te.bottom}}let z=i.current;if(!$&&i.current){var ee;z.style.top="0px",z.style.bottom="";var K;z.style.maxHeight=((K=(ee=window.visualViewport)===null||ee===void 0?void 0:ee.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let O=uG({placement:hG(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:o,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:$,arrowSize:n,arrowBoundaryOffset:D});if(O.position){if(z.style.top="",z.style.bottom="",z.style.left="",z.style.right="",Object.keys(O.position).forEach(V=>z.style[V]=O.position[V]+"px"),z.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":"",ae&&document.activeElement&&s.current){let V=document.activeElement.getBoundingClientRect(),te=s.current.getBoundingClientRect(),j=V[ae.type]-te[ae.type];s.current.scrollTop+=j-ae.offset}E(O)}},S);vn(P,S),dG(P),HC({ref:i,onResize:P}),HC({ref:r,onResize:P});let F=A.useRef(!1);vn(()=>{let ae,I=()=>{F.current=!0,clearTimeout(ae),ae=setTimeout(()=>{F.current=!1},500),P()},xe=()=>{F.current&&I()};return Hn==null||Hn.addEventListener("resize",I),Hn==null||Hn.addEventListener("scroll",xe),()=>{Hn==null||Hn.removeEventListener("resize",I),Hn==null||Hn.removeEventListener("scroll",xe)}},[P]);let U=A.useCallback(()=>{F.current||w==null||w()},[w,F]);cG({triggerRef:r,isOpen:b,onClose:w&&U});var ie,de;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(ie=C==null?void 0:C.maxHeight)!==null&&ie!==void 0?ie:"100vh"}},placement:(de=C==null?void 0:C.placement)!==null&&de!==void 0?de:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:P}}function dG(e){vn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function hG(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Hs=[];function pG(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:o}=e;A.useEffect(()=>{if(i&&!Hs.includes(t))return Hs.push(t),()=>{let w=Hs.indexOf(t);w>=0&&Hs.splice(w,1)}},[i,t]);let l=()=>{Hs[Hs.length-1]===t&&n&&n()},d=w=>{(!o||o(w.target))&&Hs[Hs.length-1]===t&&(w.stopPropagation(),w.preventDefault())},h=w=>{(!o||o(w.target))&&(Hs[Hs.length-1]===t&&(w.stopPropagation(),w.preventDefault()),l())},m=w=>{w.key==="Escape"&&!a&&!w.nativeEvent.isComposing&&(w.stopPropagation(),w.preventDefault(),l())};eW({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=Cc({isDisabled:!r,onBlurWithin:w=>{!w.relatedTarget||SH(w.relatedTarget)||(!o||o(w.relatedTarget))&&(n==null||n())}}),b=w=>{w.target===w.currentTarget&&w.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function mG(e,t,n){let{type:r}=e,{isOpen:i}=t;A.useEffect(()=>{n&&n.current&&UM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let a=Hr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const Hv=typeof document<"u"&&window.visualViewport,gG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qh=0,Gv;function vG(e={}){let{isDisabled:t}=e;vn(()=>{if(!t)return qh++,qh===1&&(Td()?Gv=bG():Gv=yG()),()=>{qh--,qh===0&&Gv()}},[t])}function yG(){let e=window.innerWidth-document.documentElement.clientWidth;return Fo(e>0&&("scrollbarGutter"in document.documentElement.style?wu(document.documentElement,"scrollbarGutter","stable"):wu(document.documentElement,"paddingRight",`${e}px`)),wu(document.documentElement,"overflow","hidden"))}function bG(){let e,t,n=d=>{e=Om(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=wu(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;$G(h)&&(o(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Hv&&(Hv.height<window.innerHeight?requestAnimationFrame(()=>{GE(h)}):Hv.addEventListener("resize",()=>GE(h),{once:!0}))}))},a=null,o=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;a=Fo(wf(window,"scroll",d),wu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),wu(document.documentElement,"overflow","hidden"),wu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Fo(wf(document,"touchstart",n,{passive:!1,capture:!0}),wf(document,"touchmove",r,{passive:!1,capture:!0}),wf(document,"touchend",i,{passive:!1,capture:!0}),wf(document,"focus",s,!0));return()=>{t==null||t(),a==null||a(),l()}}function wu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function wf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function GE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Om(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 $G(e){return e instanceof HTMLInputElement&&!gG.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const xG=A.createContext({});function wG(){var e;return(e=A.useContext(xG))!==null&&e!==void 0?e:{}}const CG=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Cf=new WeakMap,si=[];function zM(e,t){let n=ca(e==null?void 0:e[0]),r=t instanceof n.Element?{root:t}:t;var i;let s=(i=r==null?void 0:r.root)!==null&&i!==void 0?i:document.body,a=(r==null?void 0:r.shouldUseInert)&&CG,o=new Set(e),l=new Set,d=$=>a&&$ instanceof n.HTMLElement?$.inert:$.getAttribute("aria-hidden")==="true",h=($,D)=>{a&&$ instanceof n.HTMLElement?$.inert=D:D?$.setAttribute("aria-hidden","true"):$.removeAttribute("aria-hidden")},m=$=>{for(let S of $.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))o.add(S);let D=S=>{if(l.has(S)||o.has(S)||S.parentElement&&l.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let k of o)if(S.contains(k))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},C=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:D}),E=D($);if(E===NodeFilter.FILTER_ACCEPT&&g($),E!==NodeFilter.FILTER_REJECT){let S=C.nextNode();for(;S!=null;)g(S),S=C.nextNode()}},g=$=>{var D;let C=(D=Cf.get($))!==null&&D!==void 0?D:0;d($)&&C===0||(C===0&&h($,!0),l.add($),Cf.set($,C+1))};si.length&&si[si.length-1].disconnect(),m(s);let b=new MutationObserver($=>{for(let D of $)if(D.type==="childList"&&![...o,...l].some(C=>C.contains(D.target)))for(let C of D.addedNodes)(C instanceof HTMLElement||C instanceof SVGElement)&&(C.dataset.liveAnnouncer==="true"||C.dataset.reactAriaTopLayer==="true")?o.add(C):C instanceof Element&&m(C)});b.observe(s,{childList:!0,subtree:!0});let w={visibleNodes:o,hiddenNodes:l,observe(){b.observe(s,{childList:!0,subtree:!0})},disconnect(){b.disconnect()}};return si.push(w),()=>{b.disconnect();for(let $ of l){let D=Cf.get($);D!=null&&(D===1?(h($,!1),Cf.delete($)):Cf.set($,D-1))}w===si[si.length-1]?(si.pop(),si.length&&si[si.length-1].observe()):si.splice(si.indexOf(w),1)}}function EG(e){let t=si[si.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function SG(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=pG({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:w}=fG({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return vG({isDisabled:s||!t.isOpen}),A.useEffect(()=>{if(t.isOpen&&r.current){var $,D;return s?EG(($=i==null?void 0:i.current)!==null&&$!==void 0?$:r.current):zM([(D=i==null?void 0:i.current)!==null&&D!==void 0?D:r.current],{shouldUseInert:!0})}},[s,t.isOpen,r,i]),{popoverProps:Qt(h,g),arrowProps:b,underlayProps:m,placement:w}}const qM=A.createContext(null);function DG(e){let t=a3(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=A.useState(!1),a=A.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:o}=wG();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=A.createElement(xH,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=A.createElement(qM.Provider,{value:a},A.createElement(Xq,null,l)),Wa.createPortal(l,n)}function AG(){let e=A.useContext(qM),t=e==null?void 0:e.setContain;vn(()=>{t==null||t(!0)},[t])}const qm=new WeakMap;function TG(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function WM(e,t){let n=qm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${TG(t)}`}function Ub(e){return cp()?e.altKey:e.ctrlKey}function gp(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 HM=new WeakMap;function PG(e){let t=Hr();return HM.set(e,t),t}function _G(e){return HM.get(e)}const MG=1e3;function FG(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=A.useRef({search:"",timeout:void 0}).current,s=a=>{let o=RG(a.key);if(!(!o||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target)||i.search.length===0&&o===" ")){if(o===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=o,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=""},MG)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function RG(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function GM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:o=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:b,scrollRef:w=r,linkBehavior:$="action"}=e,{direction:D}=Rr(),C=km(),E=O=>{var V;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((V=r.current)===null||V===void 0)&&V.contains(O.target)))return;const te=(Ae,Ge)=>{if(Ae!=null){if(t.isLink(Ae)&&$==="selection"&&d&&!Ub(O)){Wa.flushSync(()=>{t.setFocusedKey(Ae,Ge)});let ht=gp(r,Ae),Gt=t.getItemProps(Ae);ht&&C.open(ht,O,Gt.href,Gt.routerOptions);return}if(t.setFocusedKey(Ae,Ge),t.isLink(Ae)&&$==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&!Ub(O)&&t.replaceSelection(Ae)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var j,le,ue;let Ae=t.focusedKey!=null?(j=n.getKeyBelow)===null||j===void 0?void 0:j.call(n,t.focusedKey):(le=n.getFirstKey)===null||le===void 0?void 0:le.call(n);Ae==null&&s&&(Ae=(ue=n.getFirstKey)===null||ue===void 0?void 0:ue.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),te(Ae))}break;case"ArrowUp":if(n.getKeyAbove){var De,Pe,Fe;let Ae=t.focusedKey!=null?(De=n.getKeyAbove)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Pe=n.getLastKey)===null||Pe===void 0?void 0:Pe.call(n);Ae==null&&s&&(Ae=(Fe=n.getLastKey)===null||Fe===void 0?void 0:Fe.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),te(Ae))}break;case"ArrowLeft":if(n.getKeyLeftOf){var We,Xe,Be;let Ae=t.focusedKey!=null?(We=n.getKeyLeftOf)===null||We===void 0?void 0:We.call(n,t.focusedKey):null;Ae==null&&s&&(Ae=D==="rtl"?(Xe=n.getFirstKey)===null||Xe===void 0?void 0:Xe.call(n,t.focusedKey):(Be=n.getLastKey)===null||Be===void 0?void 0:Be.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),te(Ae,D==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var He,Me,Le;let Ae=t.focusedKey!=null?(He=n.getKeyRightOf)===null||He===void 0?void 0:He.call(n,t.focusedKey):null;Ae==null&&s&&(Ae=D==="rtl"?(Me=n.getLastKey)===null||Me===void 0?void 0:Me.call(n,t.focusedKey):(Le=n.getFirstKey)===null||Le===void 0?void 0:Le.call(n,t.focusedKey)),Ae!=null&&(O.preventDefault(),te(Ae,D==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Ae=n.getFirstKey(t.focusedKey,Rl(O));t.setFocusedKey(Ae),Ae!=null&&(Rl(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Ae=n.getLastKey(t.focusedKey,Rl(O));t.setFocusedKey(Ae),Ae!=null&&(Rl(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&t.replaceSelection(Ae))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Ae=n.getKeyPageBelow(t.focusedKey);Ae!=null&&(O.preventDefault(),te(Ae))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Ae=n.getKeyPageAbove(t.focusedKey);Ae!=null&&(O.preventDefault(),te(Ae))}break;case"a":Rl(O)&&t.selectionMode==="multiple"&&o!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!g){if(O.shiftKey)r.current.focus();else{let Ae=Ur(r.current,{tabbable:!0}),Ge,ht;do ht=Ae.lastChild(),ht&&(Ge=ht);while(ht);Ge&&!Ge.contains(document.activeElement)&&Ai(Ge)}break}}},S=A.useRef({top:0,left:0});Qs(w,"scroll",b?void 0:()=>{var O,V,te,j;S.current={top:(te=(O=w.current)===null||O===void 0?void 0:O.scrollTop)!==null&&te!==void 0?te:0,left:(j=(V=w.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&j!==void 0?j:0}});let k=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var V,te;let ue=Pe=>{Pe!=null&&(t.setFocusedKey(Pe),d&&!t.isSelected(Pe)&&t.replaceSelection(Pe))},De=O.relatedTarget;var j,le;De&&O.currentTarget.compareDocumentPosition(De)&Node.DOCUMENT_POSITION_FOLLOWING?ue((j=t.lastSelectedKey)!==null&&j!==void 0?j:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):ue((le=t.firstSelectedKey)!==null&&le!==void 0?le:(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n))}else!b&&w.current&&(w.current.scrollTop=S.current.top,w.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&w.current){let ue=gp(r,t.focusedKey);ue instanceof HTMLElement&&(!ue.contains(document.activeElement)&&!m&&Ai(ue),rd()==="keyboard"&&jp(ue,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},F=A.useRef(!1);Qs(r,Tq,m?O=>{let{detail:V}=O;O.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(F.current=!0)}:void 0);let U=kn(()=>{var O,V;let te=(V=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&V!==void 0?V:null;if(te==null){let j=ar();N_(r.current),P3(j,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(te),F.current=!1});WC(()=>{F.current&&U()},[t.collection,U]);let ie=kn(()=>{t.collection.size>0&&(F.current=!1)});WC(()=>{ie()},[t.focusedKey,ie]),Qs(r,Aq,m?O=>{var V;O.stopPropagation(),t.setFocused(!1),!((V=O.detail)===null||V===void 0)&&V.clearFocusKey&&t.setFocusedKey(null)}:void 0);const de=A.useRef(i),ae=A.useRef(!1);A.useEffect(()=>{if(de.current){var O,V;let le=null;var te;i==="first"&&(le=(te=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&te!==void 0?te:null);var j;i==="last"&&(le=(j=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&j!==void 0?j:null);let ue=t.selectedKeys;if(ue.size){for(let De of ue)if(t.canSelectItem(De)){le=De;break}}t.setFocused(!0),t.setFocusedKey(le),le==null&&!m&&r.current&&Uu(r.current),t.collection.size>0&&(de.current=!1,ae.current=!0)}});let I=A.useRef(t.focusedKey),xe=A.useRef(null);A.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||ae.current)&&w.current&&r.current){let O=rd(),V=gp(r,t.focusedKey);if(!(V instanceof HTMLElement))return;(O==="keyboard"||ae.current)&&(xe.current&&cancelAnimationFrame(xe.current),xe.current=requestAnimationFrame(()=>{w.current&&(N5(w.current,V),O!=="virtual"&&jp(V,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&Uu(r.current),I.current=t.focusedKey,ae.current=!1}),A.useEffect(()=>()=>{xe.current&&cancelAnimationFrame(xe.current)},[]),Qs(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let Ce={onKeyDown:E,onFocus:k,onBlur:P,onMouseDown(O){w.current===O.target&&O.preventDefault()}},{typeSelectProps:z}=FG({keyboardDelegate:n,selectionManager:t});h||(Ce=Qt(z,Ce));let ee;m||(ee=t.focusedKey==null?0:-1);let K=PG(t.collection);return{collectionProps:Qt(Ce,{tabIndex:ee,"data-collection":K})}}function kG(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=km();t=Hr(t);let b=te=>{if(te.pointerType==="keyboard"&&Ub(te))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let j=n.getItemProps(r);g.open(i.current,te,j.href,j.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):te&&te.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||te&&(Rl(te)||te.pointerType==="touch"||te.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};A.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?N_(i.current):o?o():document.activeElement!==i.current&&i.current&&Uu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let w={};!a&&!l?w={tabIndex:r===n.focusedKey?0:-1,onFocus(te){te.target===i.current&&n.setFocusedKey(r)}}:l&&(w.onMouseDown=te=>{te.preventDefault()});let $=n.isLink(r)&&m==="override",D=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!$,E=(d||D)&&!l,S=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),k=E&&C&&n.selectionBehavior==="replace",P=S||k,F=A.useRef(null),U=P&&C,ie=A.useRef(!1),de=A.useRef(!1),ae=n.getItemProps(r),I=te=>{d&&d(),D&&i.current&&g.open(i.current,te,ae.href,ae.routerOptions)},xe={ref:i};if(s?(xe.onPressStart=te=>{F.current=te.pointerType,ie.current=U,te.pointerType==="keyboard"&&(!P||ZE())&&b(te)},h?(xe.onPressUp=S?void 0:te=>{te.pointerType==="mouse"&&C&&b(te)},xe.onPress=S?I:te=>{te.pointerType!=="keyboard"&&te.pointerType!=="mouse"&&C&&b(te)}):xe.onPress=te=>{if(S||k&&te.pointerType!=="mouse"){if(te.pointerType==="keyboard"&&!YE())return;I(te)}else te.pointerType!=="keyboard"&&C&&b(te)}):(xe.onPressStart=te=>{F.current=te.pointerType,ie.current=U,de.current=S,C&&(te.pointerType==="mouse"&&!S||te.pointerType==="keyboard"&&(!E||ZE()))&&b(te)},xe.onPress=te=>{(te.pointerType==="touch"||te.pointerType==="pen"||te.pointerType==="virtual"||te.pointerType==="keyboard"&&P&&YE()||te.pointerType==="mouse"&&de.current)&&(P?I(te):C&&b(te))}),w["data-collection"]=_G(n.collection),w["data-key"]=r,xe.preventFocusOnPress=a,a&&(xe=Qt(xe,{onPressStart(te){te.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(te){te.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ae)for(let te of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ae[te]&&(xe[te]=Fo(xe[te],ae[te]));let{pressProps:Ce,isPressed:z}=Md(xe),ee=k?te=>{F.current==="mouse"&&(te.stopPropagation(),te.preventDefault(),I(te))}:void 0,{longPressProps:K}=t_({isDisabled:!U,onLongPress(te){te.pointerType==="touch"&&(b(te),n.setSelectionBehavior("toggle"))}}),O=te=>{F.current==="touch"&&ie.current&&te.preventDefault()},V=m!=="none"&&n.isLink(r)?te=>{ju.isOpening||te.preventDefault()}:void 0;return{itemProps:Qt(w,C||S||a&&!l?Ce:{},U?K:{},{onDoubleClick:ee,onDragStartCapture:O,onClick:V,id:t},a?{onMouseDown:te=>te.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:P}}function YE(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function ZE(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class XE{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?gp(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 YM{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 a=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(a,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&&!nd(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&&!nd(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 a=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new XE(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 XE(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function OG(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:a}=e,o=I_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=A.useMemo(()=>s||new YM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o,layoutDelegate:a}),[s,a,n,r,i,o,l]),{collectionProps:h}=GM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function IG(e,t,n){let r=eo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:a}=OG({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:o}=Cc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Hr(e.id);qm.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}=Um({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Qt(r,o,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Qt(h,a)})}}function ZM(e){return null}ZM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,a=t.title||t.children,o=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!o&&!(n!=null&&n.suppressTextValueWarning)&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:o,"aria-label":t["aria-label"],hasChildNodes:LG(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 LG(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&A.Children.count(e.children)>0)}let VG=ZM;class BG{build(t,n){return this.context=n,JE(()=>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,a=>{a&&i.push(a)});let s=0;for(let a of i){let o=this.getFullNode({element:a,index:s},{});for(let l of o)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 a;let o=(a=s.key)!==null&&a!==void 0?a:s.id;if(o==null)throw new Error("No key found for item");return o}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,E=>{D.push(E)});var s;let C=(s=t.index)!==null&&s!==void 0?s:0;for(const E of D)yield*this.getFullNode({element:E,index:C++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}a=n.renderer(t.value)}if(A.isValidElement(a)){let D=a.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let k=a.type;throw new Error(`Unknown element <${k}> in collection.`)}let C=D.getCollectionNode(a.props,this.context);var o;let E=(o=t.index)!==null&&o!==void 0?o:0,S=C.next();for(;!S.done&&S.value;){let k=S.value;t.index=E;var l;let P=(l=k.key)!==null&&l!==void 0?l:null;P==null&&(P=k.element?null:this.getKey(a,t,n,r));let U=[...this.getFullNode({...k,key:P,index:E,wrapper:NG(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${a.key}`:a.key,i)];for(let ie of U){var d,h;ie.value=(h=(d=k.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,ie.value&&this.cache.set(ie.value,ie);var m;if(t.type&&ie.type!==t.type)throw new Error(`Unsupported type <${Yv(ie.type)}> in <${Yv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Yv(t.type)}> is supported.`);E++,yield ie}S=C.next(U)}return}if(t.key==null||t.type==null)return;let g=this;var b,w;let $={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:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:JE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${$.key}${C.key}`);let E=g.getFullNode({...C,index:D},g.getChildState(n,C),$.key,$);for(let S of E)D++,yield S}})};yield $}constructor(){this.cache=new WeakMap}}function JE(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 NG(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Yv(e){return e[0].toUpperCase()+e.slice(1)}function jG(e,t,n){let r=A.useMemo(()=>new BG,[]),{children:i,items:s,collection:a}=e;return A.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,a,n,t])}function Wm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function KG(e){return UG(e)}function UG(e,t){for(let n of e)return n}function Zv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...QE(e,t),t],i=[...QE(e,n),n],s=r.slice(0,i.length).findIndex((a,o)=>a!==i[o]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function QE(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 eS=new WeakMap;function XM(e){let t=eS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(Wm(s,e)):s.type==="item"&&n++};return r(e),eS.set(e,n),n}function zG(e,t,n){var r,i;let{key:s}=e,a=qm.get(t);var o;let l=(o=e.isDisabled)!==null&&o!==void 0?o: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:a==null?void 0:a.shouldSelectOnPressUp;var b;let w=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:a==null?void 0:a.shouldFocusOnHover;var $;let D=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var C;let E=(C=e.isVirtualized)!==null&&C!==void 0?C:a==null?void 0:a.isVirtualized,S=lc(),k=lc(),P={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Ya()&&u3()||(P["aria-label"]=e["aria-label"],P["aria-labelledby"]=S,P["aria-describedby"]=k);let F=t.collection.getItem(s);if(E){let O=Number(F==null?void 0:F.index);P["aria-posinset"]=Number.isNaN(O)?void 0:O+1,P["aria-setsize"]=XM(t.collection)}let U=a!=null&&a.onAction?()=>{var O;return a==null||(O=a.onAction)===null||O===void 0?void 0:O.call(a,s)}:void 0,ie=WM(t,s),{itemProps:de,isPressed:ae,isFocused:I,hasAction:xe,allowsSelection:Ce}=kG({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&w,isVirtualized:E,shouldUseVirtualFocus:D,isDisabled:l,onAction:U||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?Fo(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,U):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:ie}),{hoverProps:z}=Qq({isDisabled:l||!w,onHoverStart(){iE()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),ee=eo(F==null?void 0:F.props);delete ee.id;let K=xq(F==null?void 0:F.props);return{optionProps:{...P,...Qt(ee,de,z,K),id:ie},labelProps:{id:S},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&iE(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:Ce,hasAction:xe}}var JM={};JM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var QM={};QM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var eF={};eF={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var tF={};tF={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var nF={};nF={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var rF={};rF={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var iF={};iF={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var sF={};sF={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var aF={};aF={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var oF={};oF={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var uF={};uF={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var lF={};lF={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var cF={};cF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var fF={};fF={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var dF={};dF={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var hF={};hF={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var pF={};pF={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var mF={};mF={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var gF={};gF={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var vF={};vF={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var yF={};yF={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var bF={};bF={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var $F={};$F={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var xF={};xF={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var wF={};wF={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var CF={};CF={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var EF={};EF={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var SF={};SF={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var DF={};DF={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var AF={};AF={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var TF={};TF={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var PF={};PF={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var _F={};_F={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var MF={};MF={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var FF={};FF={"ar-AE":JM,"bg-BG":QM,"cs-CZ":eF,"da-DK":tF,"de-DE":nF,"el-GR":rF,"en-US":iF,"es-ES":sF,"et-EE":aF,"fi-FI":oF,"fr-FR":uF,"he-IL":lF,"hr-HR":cF,"hu-HU":fF,"it-IT":dF,"ja-JP":hF,"ko-KR":pF,"lt-LT":mF,"lv-LV":gF,"nb-NO":vF,"nl-NL":yF,"pl-PL":bF,"pt-BR":$F,"pt-PT":xF,"ro-RO":wF,"ru-RU":CF,"sk-SK":EF,"sl-SI":SF,"sr-SP":DF,"sv-SE":AF,"tr-TR":TF,"uk-UA":PF,"zh-CN":_F,"zh-TW":MF};function qG(e){return e&&e.__esModule?e.default:e}function WG(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,a=Hr(),{triggerProps:o,overlayProps:l}=mG({type:r},t,n),d=b=>{if(!i&&!(s==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(s==="longPress"||b.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=da(qG(FF),"@react-aria/menu"),{longPressProps:m}=t_({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&&(Ai(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&(Ai(b.target),t.toggle())}};return delete o.onPress,{menuTriggerProps:{...o,...s==="press"?g:m,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function HG(e){return e&&e.__esModule?e.default:e}function GG(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:a,layoutDelegate:o,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=A.useRef(null);n=n??m;let g=da(HG(jM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:w}=WG({type:"listbox",isDisabled:h||d},t,n);qm.set(t,{id:w.id});let{collection:$}=t,{disabledKeys:D}=t.selectionManager,C=A.useMemo(()=>a||new YM({collection:$,disabledKeys:D,ref:s,layoutDelegate:o}),[a,o,$,D,s]),{collectionProps:E}=GM({selectionManager:t.selectionManager,keyboardDelegate:C,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),S=km(),k=Le=>{if(!Le.nativeEvent.isComposing)switch(Le.key){case"Enter":case"Tab":if(t.isOpen&&Le.key==="Enter"&&Le.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Ae=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Le.key==="Enter"&&Ae instanceof HTMLAnchorElement){let Ge=t.collection.getItem(t.selectionManager.focusedKey);Ge&&S.open(Ae,Le,Ge.props.href,Ge.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Le.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},P=Le=>{var Ae;let Ge=(n==null?void 0:n.current)&&n.current===Le.relatedTarget,ht=(Ae=r.current)===null||Ae===void 0?void 0:Ae.contains(Le.relatedTarget);Ge||ht||(e.onBlur&&e.onBlur(Le),t.setFocused(!1))},F=Le=>{t.isFocused||(e.onFocus&&e.onFocus(Le),t.setFocused(!0))},{isInvalid:U,validationErrors:ie,validationDetails:de}=t.displayValidation,{labelProps:ae,inputProps:I,descriptionProps:xe,errorMessageProps:Ce}=eG({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Fo(t.isOpen&&E.onKeyDown,k,e.onKeyDown),onBlur:P,value:t.inputValue,defaultValue:t.defaultInputValue,onFocus:F,autoComplete:"off",validate:void 0,[hc]:t},i),z=Le=>{if(Le.pointerType==="touch"){var Ae;(Ae=i.current)===null||Ae===void 0||Ae.focus(),t.toggle(null,"manual")}},ee=Le=>{if(Le.pointerType!=="touch"){var Ae;(Ae=i.current)===null||Ae===void 0||Ae.focus(),t.toggle(Le.pointerType==="keyboard"||Le.pointerType==="virtual"?"first":null,"manual")}},K=cc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),O=cc({id:w.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),V=A.useRef(0),te=Le=>{if(h||d)return;if(Le.timeStamp-V.current<500){var Ae;Le.preventDefault(),(Ae=i.current)===null||Ae===void 0||Ae.focus();return}let Ge=Le.target.getBoundingClientRect(),ht=Le.changedTouches[0],Gt=Math.ceil(Ge.left+.5*Ge.width),$t=Math.ceil(Ge.top+.5*Ge.height);if(ht.clientX===Gt&&ht.clientY===$t){var _t;Le.preventDefault(),(_t=i.current)===null||_t===void 0||_t.focus(),t.toggle(null,"manual"),V.current=Le.timeStamp}},j=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var le;let ue=(le=j==null?void 0:j.parentKey)!==null&&le!==void 0?le:null;var De;let Pe=(De=t.selectionManager.focusedKey)!==null&&De!==void 0?De:null,Fe=A.useRef(ue),We=A.useRef(Pe);A.useEffect(()=>{if(cp()&&j!=null&&Pe!=null&&Pe!==We.current){let Ae=t.selectionManager.isSelected(Pe),Ge=ue!=null?t.collection.getItem(ue):null,ht=(Ge==null?void 0:Ge["aria-label"])||(typeof(Ge==null?void 0:Ge.rendered)=="string"?Ge.rendered:"")||"";var Le;let Gt=g.format("focusAnnouncement",{isGroupChange:(Le=Ge&&ue!==Fe.current)!==null&&Le!==void 0?Le:!1,groupTitle:ht,groupCount:Ge?[...Wm(Ge,t.collection)].length:0,optionText:j["aria-label"]||j.textValue||"",isSelected:Ae});Ql(Gt)}Fe.current=ue,We.current=Pe});let Xe=XM(t.collection),Be=A.useRef(Xe),He=A.useRef(t.isOpen);A.useEffect(()=>{let Le=t.isOpen!==He.current&&(t.selectionManager.focusedKey==null||cp());if(t.isOpen&&(Le||Xe!==Be.current)){let Ae=g.format("countAnnouncement",{optionCount:Xe});Ql(Ae)}Be.current=Xe,He.current=t.isOpen});let Me=A.useRef(t.selectedKey);return A.useEffect(()=>{if(cp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Me.current){let Le=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Ae=g.format("selectedAnnouncement",{optionText:Le});Ql(Ae)}Me.current=t.selectedKey}),A.useEffect(()=>{if(t.isOpen)return zM([i.current,r.current].filter(Le=>Le!=null))},[t.isOpen,i,r]),bb(()=>{!j&&i.current&&ar(Jt(i.current))===i.current&&P3(i.current,null)},[j]),{labelProps:ae,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:z,onPressStart:ee,isDisabled:h||d},inputProps:Qt(I,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?w.id:void 0,"aria-autocomplete":"list","aria-activedescendant":j?WM(t,j.key):void 0,onTouchEnd:te,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Qt(w,O,{autoFocus:t.focusStrategy||!0,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:xe,errorMessageProps:Ce,isInvalid:U,validationErrors:ie,validationDetails:de}}var RF={};RF={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var kF={};kF={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var OF={};OF={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 IF={};IF={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 LF={};LF={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Startdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var VF={};VF={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var BF={};BF={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 NF={};NF={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 jF={};jF={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 KF={};KF={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 UF={};UF={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 zF={};zF={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var qF={};qF={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 WF={};WF={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 HF={};HF={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 GF={};GF={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 YF={};YF={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var ZF={};ZF={calendar:"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 XF={};XF={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var JF={};JF={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var QF={};QF={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 eR={};eR={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 tR={};tR={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 nR={};nR={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 rR={};rR={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 iR={};iR={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 sR={};sR={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 aR={};aR={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 oR={};oR={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 uR={};uR={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 lR={};lR={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 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:"日历",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:"日曆",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 Vd={};Vd={"ar-AE":RF,"bg-BG":kF,"cs-CZ":OF,"da-DK":IF,"de-DE":LF,"el-GR":VF,"en-US":BF,"es-ES":NF,"et-EE":jF,"fi-FI":KF,"fr-FR":UF,"he-IL":zF,"hr-HR":qF,"hu-HU":WF,"it-IT":HF,"ja-JP":GF,"ko-KR":YF,"lt-LT":ZF,"lv-LV":XF,"nb-NO":JF,"nl-NL":QF,"pl-PL":eR,"pt-BR":tR,"pt-PT":nR,"ro-RO":rR,"ru-RU":iR,"sk-SK":sR,"sl-SI":aR,"sr-SP":oR,"sv-SE":uR,"tr-TR":lR,"uk-UA":cR,"zh-CN":fR,"zh-TW":dR};function F3(e,t,n){let{direction:r}=Rr(),i=A.useMemo(()=>jm(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=tS(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=tS(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},a=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Ur(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:o}=Md({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){(l.pointerType==="touch"||l.pointerType==="pen")&&a()}});return Qt(o,{onKeyDown:s})}function tS(e,t,n){let r=Ur(e,{tabbable:!0}),i=r.nextNode(),s=null,a=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<a&&(s=i,a=d),i=r.nextNode()}return s}function YG(e){return e&&e.__esModule?e.default:e}const hR=new WeakMap,Hf="__role_"+Date.now(),pR="__focusManager_"+Date.now();function mR(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:a}=t.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:h}=zm({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=A.useRef(null),{focusWithinProps:g}=Cc({...e,onFocusWithin(ae){var I;m.current=t.value,(I=e.onFocus)===null||I===void 0||I.call(e,ae)},onBlurWithin:ae=>{var I;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(I=e.onBlur)===null||I===void 0||I.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=da(YG(Vd),"@react-aria/datepicker"),w=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",D=t.value?b.format(w,{[$]:t.formatValue({month:"long"})}):"",C=Pd(D),E=e[Hf]==="presentation"?l["aria-describedby"]:[C["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=e[pR],k=A.useMemo(()=>S||jm(n),[S,n]),P=F3(t,n,e[Hf]==="presentation");hR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[o.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:E,focusManager:k});let F=A.useRef(e.autoFocus),U;e[Hf]==="presentation"?U={role:"presentation"}:U=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":E}),A.useEffect(()=>{F.current&&k.focusFirst(),F.current=!1},[k]),c3(e.inputRef,t.defaultValue,t.setValue),S6({...e,focus(){k.focusFirst()}},t,e.inputRef);let ie={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(ie.type="text",ie.hidden=!0,ie.required=e.isRequired,ie.onChange=()=>{});let de=eo(e);return{labelProps:{...o,onClick:()=>{k.focusFirst()}},fieldProps:Qt(de,U,P,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:ie,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:a}}function ZG(e,t,n){var r;let i=mR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function XG(e){return e&&e.__esModule?e.default:e}function JG(e,t,n){let r=Hr(),i=Hr(),s=Hr(),a=da(XG(Vd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=zm({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),w=F3(t,n),$=m["aria-labelledby"]||m.id,{locale:D}=Rr(),C=t.formatValue(D,{month:"long"}),E=C?a.format("selectedDateDescription",{date:C}):"",S=Pd(E),k=[S["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=eo(e),F=A.useMemo(()=>jm(n),[n]),U=A.useRef(!1),{focusWithinProps:ie}=Cc({...e,isDisabled:t.isOpen,onBlurWithin:de=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(de.relatedTarget))){var I,xe;U.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,de),(xe=e.onFocusChange)===null||xe===void 0||xe.call(e,!1)}},onFocusWithin:de=>{if(!U.current){var ae,I;U.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,de),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Qt(P,w,m,S,ie,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":k,onKeyDown(de){t.isOpen||e.onKeyDown&&e.onKeyDown(de)},onKeyUp(de){t.isOpen||e.onKeyUp&&e.onKeyUp(de)}}),labelProps:{...h,onClick:()=>{F.focusFirst()}},fieldProps:{...m,id:s,[Hf]:"presentation","aria-describedby":k,value:t.value,defaultValue:t.defaultValue,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[hc]:t,autoFocus:e.autoFocus,name:e.name,form:e.form},descriptionProps:g,errorMessageProps:b,buttonProps:{...S,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},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:o,validationErrors:l,validationDetails:d}}function QG(e){return e&&e.__esModule?e.default:e}function eY(){let{locale:e}=Rr(),t=i_(QG(Vd),"@react-aria/datepicker");return A.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new tY(e,t)}},[e,t])}class tY{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function nY(e,t,n){let r=A.useRef(""),{locale:i,direction:s}=Rr(),a=eY(),{ariaLabel:o,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=hR.get(t),m=e.isPlaceholder?"":e.text,g=A.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=ea({month:"long",timeZone:g.timeZone}),w=ea({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let j=b.format(t.dateValue);m=j!==m?`${m} – ${j}`:j}else e.type==="hour"&&!e.isPlaceholder&&(m=w.format(t.dateValue));let{spinButtonProps:$}=nG({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 O_(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&h.focusPrevious(),D.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let j=e.text.slice(0,-1),le=D.parse(j);j=le===0?"":j,j.length===0||le===0?t.clearSegment(e.type):t.setSegment(e.type,le),r.current=j}else e.type==="dayPeriod"&&t.clearSegment(e.type)},E=j=>{if(j.key==="a"&&(Ya()?j.metaKey:j.ctrlKey)&&j.preventDefault(),!(j.ctrlKey||j.metaKey||j.shiftKey||j.altKey))switch(j.key){case"Backspace":case"Delete":j.preventDefault(),j.stopPropagation(),C();break}},{startsWith:S}=L_({sensitivity:"base"}),k=ea({hour:"numeric",hour12:!0}),P=A.useMemo(()=>{let j=new Date;return j.setHours(0),k.formatToParts(j).find(le=>le.type==="dayPeriod").value},[k]),F=A.useMemo(()=>{let j=new Date;return j.setHours(12),k.formatToParts(j).find(le=>le.type==="dayPeriod").value},[k]),U=ea({year:"numeric",era:"narrow",timeZone:"UTC"}),ie=A.useMemo(()=>{if(e.type!=="era")return[];let j=On(new Xn(1,1,1),t.calendar),le=t.calendar.getEras().map(De=>{let Pe=j.set({year:1,month:1,day:1,era:De}).toDate("UTC"),We=U.formatToParts(Pe).find(Xe=>Xe.type==="era").value;return{era:De,formatted:We}}),ue=rY(le.map(De=>De.formatted));if(ue)for(let De of le)De.formatted=De.formatted.slice(ue);return le},[U,t.calendar,e.type]),de=j=>{if(t.isDisabled||t.isReadOnly)return;let le=r.current+j;switch(e.type){case"dayPeriod":if(S(P,j))t.setSegment("dayPeriod",0);else if(S(F,j))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let ue=ie.find(De=>S(De.formatted,j));ue&&(t.setSegment("era",ue.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!D.isValidPartialNumber(le))return;let ue=D.parse(le),De=ue,Pe=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":ue>11&&(De=D.parse(j));break;case"h12":Pe=!1,ue>12&&(De=D.parse(j));break}e.value!==void 0&&e.value>=12&&ue>1&&(ue+=12)}else e.maxValue!==void 0&&ue>e.maxValue&&(De=D.parse(j));if(isNaN(ue))return;let Fe=De!==0||Pe;Fe&&t.setSegment(e.type,De),e.maxValue!==void 0&&(+(ue+"0")>e.maxValue||le.length>=String(e.maxValue).length)?(r.current="",Fe&&h.focusNext()):Fe&&(r.current=le);break}}},ae=()=>{r.current="",n.current&&jp(n.current,{containingElement:Om(n.current)});let j=window.getSelection();j==null||j.collapse(n.current)},I=A.useRef(typeof document<"u"?document:null);Qs(I,"selectionchange",()=>{var j;let le=window.getSelection();le!=null&&le.anchorNode&&(!((j=n.current)===null||j===void 0)&&j.contains(le==null?void 0:le.anchorNode))&&le.collapse(n.current)});let xe=A.useRef("");Qs(n,"beforeinput",j=>{if(n.current)switch(j.preventDefault(),j.inputType){case"deleteContentBackward":case"deleteContentForward":D.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":xe.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:j.data!=null&&de(j.data);break}}),Qs(n,"input",j=>{let{inputType:le,data:ue}=j;switch(le){case"insertCompositionText":n.current&&(n.current.textContent=xe.current),ue!=null&&(S(P,ue)||S(F,ue))&&de(ue);break}}),vn(()=>{let j=n.current;return()=>{document.activeElement===j&&(h.focusPrevious()||h.focusNext())}},[n,h]);let Ce=Td()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=A.useMemo(()=>t.segments.find(j=>j.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(d=void 0);let ee=Hr(),K=!t.isDisabled&&!t.isReadOnly&&e.isEditable,O=e.type==="literal"?"":a.of(e.type),V=cc({"aria-label":`${O}${o?`, ${o}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let te={caretColor:"transparent"};if(s==="rtl"){te.unicodeBidi="embed";let j=g[e.type];(j==="numeric"||j==="2-digit")&&(te.direction="ltr")}return{segmentProps:Qt($,V,{id:ee,...Ce,"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:E,onFocus:ae,style:te,onPointerDown(j){j.stopPropagation()},onMouseDown(j){j.stopPropagation()}})}}function rY(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 iY(e){return e&&e.__esModule?e.default:e}function sY(e,t,n){var r,i,s,a,o;let l=da(iY(Vd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:w,errorMessageProps:$}=zm({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h}),D=b["aria-labelledby"]||b.id,{locale:C}=Rr(),E=t.formatValue(C,{month:"long"}),S=E?l.format("selectedRangeDescription",{startDate:E.start,endDate:E.end}):"",k=Pd(S),P={"aria-label":l.format("startDate"),"aria-labelledby":D},F={"aria-label":l.format("endDate"),"aria-labelledby":D},U=Hr(),ie=Hr(),de=F3(t,n),ae=[k["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=A.useMemo(()=>jm(n,{accept:j=>j.id!==U}),[n,U]),xe={[pR]:I,[Hf]:"presentation","aria-describedby":ae,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},Ce=eo(e),z=A.useRef(!1),{focusWithinProps:ee}=Cc({...e,isDisabled:t.isOpen,onBlurWithin:j=>{let le=document.getElementById(ie);if(!(le!=null&&le.contains(j.relatedTarget))){var ue,De;z.current=!1,(ue=e.onBlur)===null||ue===void 0||ue.call(e,j),(De=e.onFocusChange)===null||De===void 0||De.call(e,!1)}},onFocusWithin:j=>{if(!z.current){var le,ue;z.current=!0,(le=e.onFocus)===null||le===void 0||le.call(e,j),(ue=e.onFocusChange)===null||ue===void 0||ue.call(e,!0)}}}),K=A.useRef(vu),O=A.useRef(vu);var V,te;return{groupProps:Qt(Ce,de,b,k,ee,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":ae,onKeyDown(j){t.isOpen||e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){t.isOpen||e.onKeyUp&&e.onKeyUp(j)}}),labelProps:{...g,onClick:()=>{I.focusFirst()}},buttonProps:{...k,id:U,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${U} ${D}`,"aria-describedby":ae,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:ie,"aria-labelledby":`${U} ${D}`},startFieldProps:{...P,...xe,value:(V=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&V!==void 0?V:null,defaultValue:(i=t.defaultValue)===null||i===void 0?void 0:i.start,onChange:j=>t.setDateTime("start",j),autoFocus:e.autoFocus,name:e.startName,form:e.form,[hc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){K.current=j,t.updateValidation(Xp(j,O.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...xe,value:(te=(s=t.value)===null||s===void 0?void 0:s.end)!==null&&te!==void 0?te:null,defaultValue:(a=t.defaultValue)===null||a===void 0?void 0:a.end,onChange:j=>t.setDateTime("end",j),name:e.endName,form:e.form,[hc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(j){O.current=j,t.updateValidation(Xp(K.current,j))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:w,errorMessageProps:$,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:d,validationErrors:h,validationDetails:m}}function aY(e,t){let{role:n="dialog"}=e,r=lc();r=e["aria-label"]?void 0:r;let i=A.useRef(!1);return A.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Uu(t.current);let s=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),Uu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),AG(),{dialogProps:{...eo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function tc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function zb(e,t,n,r,i){let s={};for(let o in t)s[o]=Math.floor(t[o]/2),s[o]>0&&t[o]%2===0&&s[o]--;let a=Cu(e,t,n).subtract(s);return ld(e,a,t,n,r,i)}function Cu(e,t,n,r,i){let s=e;return t.years?s=gW(e):t.months?s=kd(e):t.weeks&&(s=id(e,n)),ld(e,s,t,n,r,i)}function qb(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 a=Cu(e,t,n).subtract(s);return ld(e,a,t,n,r,i)}function ld(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let a=b3(t,Cu(Gr(i),n,r));a&&(t=a)}if(s&&e.compare(s)<=0){let a=y3(t,qb(Gr(s),n,r));a&&(t=a)}return t}function bo(e,t,n){if(t){let r=b3(e,Gr(t));r&&(e=r)}if(n){let r=y3(e,Gr(n));r&&(e=r)}return e}function gR(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 vR(e){let t=A.useMemo(()=>new Zi(e.locale),[e.locale]),n=A.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:a,maxValue:o,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=A.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[w,$]=Ti(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),D=A.useMemo(()=>w?On(Gr(w),g):null,[w,g]),C=A.useMemo(()=>w&&"timeZone"in w?w.timeZone:n.timeZone,[w,n.timeZone]),E=A.useMemo(()=>e.focusedValue?bo(On(Gr(e.focusedValue),g),a,o):void 0,[e.focusedValue,g,a,o]),S=A.useMemo(()=>bo(e.defaultFocusedValue?On(Gr(e.defaultFocusedValue),g):D||On(Bm(C),g),a,o),[e.defaultFocusedValue,D,C,g,a,o]),[k,P]=Ti(E,S,e.onFocusChange),[F,U]=A.useState(()=>{switch(l){case"start":return Cu(k,s,r,a,o);case"end":return qb(k,s,r,a,o);case"center":default:return zb(k,s,r,a,o)}}),[ie,de]=A.useState(e.autoFocus||!1),ae=A.useMemo(()=>{let le={...s};return le.days?le.days--:le.days=-1,F.add(le)},[F,s]),[I,xe]=A.useState(g);if(!Vm(g,I)){let le=On(k,g);U(zb(le,s,r,a,o)),P(le),xe(g)}tc(k,a,o)?P(bo(k,a,o)):k.compare(F)<0?U(qb(k,s,r,a,o)):k.compare(ae)>0&&U(Cu(k,s,r,a,o));function Ce(le){le=bo(le,a,o),P(le)}function z(le){if(!e.isDisabled&&!e.isReadOnly){let ue=le;if(ue===null){$(null);return}if(ue=bo(ue,a,o),ue=gR(ue,F,d),!ue)return;ue=On(ue,(w==null?void 0:w.calendar)||new Yr),w&&"hour"in w?$(w.set(ue)):$(ue)}}let ee=A.useMemo(()=>D?d&&d(D)?!0:tc(D,a,o):!1,[D,d,a,o]),K=e.isInvalid||e.validationState==="invalid"||ee,O=K?"invalid":null,V=A.useMemo(()=>h==="visible"?s:Xv(s),[h,s]);var te,j;return{isDisabled:(te=e.isDisabled)!==null&&te!==void 0?te:!1,isReadOnly:(j=e.isReadOnly)!==null&&j!==void 0?j:!1,value:D,setValue:z,visibleRange:{start:F,end:ae},minValue:a,maxValue:o,focusedDate:k,timeZone:C,validationState:O,isValueInvalid:K,setFocusedDate(le){Ce(le),de(!0)},focusNextDay(){Ce(k.add({days:1}))},focusPreviousDay(){Ce(k.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&Ce(k.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&Ce(k.subtract({weeks:1}))},focusNextPage(){let le=F.add(V);P(bo(k.add(V),a,o)),U(Cu(ld(k,le,V,r,a,o),V,r))},focusPreviousPage(){let le=F.subtract(V);P(bo(k.subtract(V),a,o)),U(Cu(ld(k,le,V,r,a,o),V,r))},focusSectionStart(){s.days?Ce(F):s.weeks?Ce(id(k,r)):(s.months||s.years)&&Ce(kd(k))},focusSectionEnd(){s.days?Ce(ae):s.weeks?Ce(bW(k,r)):(s.months||s.years)&&Ce(Ab(k))},focusNextSection(le){if(!le&&!s.days){Ce(k.add(Xv(s)));return}s.days?this.focusNextPage():s.weeks?Ce(k.add({months:1})):(s.months||s.years)&&Ce(k.add({years:1}))},focusPreviousSection(le){if(!le&&!s.days){Ce(k.subtract(Xv(s)));return}s.days?this.focusPreviousPage():s.weeks?Ce(k.subtract({months:1})):(s.months||s.years)&&Ce(k.subtract({years:1}))},selectFocusedDate(){d&&d(k)||z(k)},selectDate(le){z(le)},isFocused:ie,setFocused:de,isInvalid(le){return tc(le,a,o)},isSelected(le){return D!=null&&nr(le,D)&&!this.isCellDisabled(le)&&!this.isCellUnavailable(le)},isCellFocused(le){return ie&&k&&nr(le,k)},isCellDisabled(le){return e.isDisabled||le.compare(F)<0||le.compare(ae)>0||this.isInvalid(le)},isCellUnavailable(le){return e.isDateUnavailable?e.isDateUnavailable(le):!1},isPreviousVisibleRangeInvalid(){let le=F.subtract({days:1});return nr(le,F)||this.isInvalid(le)},isNextVisibleRangeInvalid(){let le=ae.add({days:1});return nr(le,ae)||this.isInvalid(le)},getDatesInWeek(le,ue=F){let De=ue.add({weeks:le}),Pe=[];De=id(De,r,m);let Fe=v3(De,r,m);for(let We=0;We<Fe;We++)Pe.push(null);for(;Pe.length<7;){Pe.push(De);let We=De.add({days:1});if(nr(De,We))break;De=We}for(;Pe.length<7;)Pe.push(null);return Pe}}}function Xv(e){let t={...e};for(let n in e)t[n]=1;return t}function oY(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:s,visibleDuration:a={months:1},minValue:o,maxValue:l,...d}=e,[h,m]=Ti(t,n||null,r),[g,b]=A.useState(null),w="center";if(h&&h.start&&h.end){let V=zb(Gr(h.start),a,s,o,l).add(a).subtract({days:1});h.end.compare(V)>0&&(w="start")}let $=A.useRef(null),[D,C]=A.useState(null),E=A.useMemo(()=>b3(o,D==null?void 0:D.start),[o,D]),S=A.useMemo(()=>y3(l,D==null?void 0:D.end),[l,D]),k=vR({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:a,minValue:E,maxValue:S,selectionAlignment:w}),P=O=>{if(O&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const V=rS(O,k,-1),te=rS(O,k,1);$.current={start:V,end:te},C($.current)}else $.current=null,C(null)},[F,U]=A.useState(k.visibleRange);(!Db(k.visibleRange.start,F.start)||!Db(k.visibleRange.end,F.end))&&(P(g),U(k.visibleRange));let ie=O=>{O?(b(O),P(O)):(b(null),P(null))},de=g?Jv(g,k.focusedDate):h&&Jv(h.start,h.end),ae=O=>{if(e.isReadOnly)return;const V=bo(O,E,S),te=gR(V,k.visibleRange.start,e.isDateUnavailable);if(te)if(!g)ie(te);else{let j=Jv(g,te);j&&m({start:nS(j.start,h==null?void 0:h.start),end:nS(j.end,h==null?void 0:h.end)}),ie(null)}},[I,xe]=A.useState(!1),{isDateUnavailable:Ce}=e,z=A.useMemo(()=>!h||g?!1:Ce&&(Ce(h.start)||Ce(h.end))?!0:tc(h.start,o,l)||tc(h.end,o,l),[Ce,h,g,o,l]),ee=e.isInvalid||e.validationState==="invalid"||z;return{...k,value:h,setValue:m,anchorDate:g,setAnchorDate:ie,highlightedRange:de,validationState:ee?"invalid":null,isValueInvalid:ee,selectFocusedDate(){ae(k.focusedDate)},selectDate:ae,highlightDate(O){g&&k.setFocusedDate(O)},isSelected(O){return!!(de&&O.compare(de.start)>=0&&O.compare(de.end)<=0&&!k.isCellDisabled(O)&&!k.isCellUnavailable(O))},isInvalid(O){var V,te;return k.isInvalid(O)||tc(O,(V=$.current)===null||V===void 0?void 0:V.start,(te=$.current)===null||te===void 0?void 0:te.end)},isDragging:I,setDragging:xe}}function Jv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Gr(e),end:Gr(t)})}function nS(e,t){return e=On(e,(t==null?void 0:t.calendar)||new Yr),t&&"hour"in t?t.set(e):e}function rS(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 Wb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)n(o)};for(let a of t)n(a);let r=null,i=0;for(let[a,o]of this.keyMap)r?(r.nextKey=a,o.prevKey=r.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class bs extends Set{constructor(t,n,r){super(t),t instanceof bs?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function uY(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function lY(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=A.useRef(!1),[,o]=A.useState(!1),l=A.useRef(null),d=A.useRef(null),[,h]=A.useState(null),m=A.useMemo(()=>iS(e.selectedKeys),[e.selectedKeys]),g=A.useMemo(()=>iS(e.defaultSelectedKeys,new bs),[e.defaultSelectedKeys]),[b,w]=Ti(m,g,e.onSelectionChange),$=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,C]=A.useState(i);i==="replace"&&D==="toggle"&&typeof b=="object"&&b.size===0&&C("replace");let E=A.useRef(i);return A.useEffect(()=>{i!==E.current&&(C(i),E.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:C,get isFocused(){return a.current},setFocused(S){a.current=S,o(S)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(S,k="first"){l.current=S,d.current=k,h(S)},selectedKeys:b,setSelectedKeys(S){(r||!uY(S,b))&&w(S)},disabledKeys:$,disabledBehavior:s}}function iS(e,t){return e?e==="all"?"all":new bs(e):t}class R3{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&&Zv(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&&Zv(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 bs([n],n,n);else{let a=this.state.selectedKeys;var i;let o=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new bs(a,o,n);var s;for(let l of this.getKeyRange(o,(s=a.currentKey)!==null&&s!==void 0?s:n))r.delete(l);for(let l of this.getKeyRange(n,o))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?Zv(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 a=this.collection.getItem(s);if(a&&(a.type==="item"||a.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 bs(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 bs([n],n,n):new bs;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new bs;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var s;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((s=(i=KG(Wm(a,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 bs)}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 R3(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 cY(e){let{filter:t,layoutDelegate:n}=e,r=lY(e),i=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=A.useCallback(d=>t?new Wb(t(d)):new Wb(d),[t]),a=A.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=jG(e,s,a),l=A.useMemo(()=>new R3(o,r,{layoutDelegate:n}),[o,r,n]);return fY(o,l),{collection:o,disabledKeys:i,selectionManager:l}}function fY(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(C=>{const E=n.current.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==null),g=[...e.getKeys()].map(C=>{const E=e.getItem(C);return(E==null?void 0:E.type)==="item"?E:null}).filter(C=>C!==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,a,o;let w=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(a=h==null?void 0:h.index)!==null&&a!==void 0?a:0,((o=g==null?void 0:g.length)!==null&&o!==void 0?o:0)-1),$=null,D=!1;for(;w>=0;){if(!t.isDisabled(g[w].key)){$=g[w];break}if(w<g.length-1&&!D)w++;else{D=!0;var l,d;w>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&(w=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),w--}}t.setFocusedKey($?$.key:null)}n.current=e},[e,t])}function dY(e){var t;let[n,r]=Ti(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=A.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:a,selectionManager:o}=cY({...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:a,selectionManager:o,selectedKey:n,setSelectedKey:r,selectedItem:l}}function k3(e){let[t,n]=Ti(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 hY(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[o,l]=A.useState(!1),[d,h]=A.useState(!1),[m,g]=A.useState(null),b=Se=>{e.onSelectionChange&&e.onSelectionChange(Se),Se===C&&(De(),j())};var w;let{collection:$,selectionManager:D,selectedKey:C,setSelectedKey:E,selectedItem:S,disabledKeys:k}=dY({...e,onSelectionChange:b,items:(w=e.items)!==null&&w!==void 0?w:e.defaultItems}),[P,F]=Ti(e.inputValue,sS(e.defaultInputValue,C,$)||"",e.onInputChange),[U]=A.useState(C),[ie]=A.useState(P),de=$,ae=A.useMemo(()=>e.items!=null||!n?$:pY($,P,n),[$,P,n,e.items]),[I,xe]=A.useState(ae),Ce=A.useRef("focus"),ee=k3({...e,onOpenChange:Se=>{e.onOpenChange&&e.onOpenChange(Se,Se?Ce.current:void 0),D.setFocused(Se),Se||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),K=(Se=null,_e)=>{let Je=_e==="manual"||_e==="focus"&&r==="focus";(i||ae.size>0||Je&&de.size>0||e.items)&&(Je&&!ee.isOpen&&e.items===void 0&&l(!0),Ce.current=_e,g(Se),ee.open())},O=(Se=null,_e)=>{let Je=_e==="manual"||_e==="focus"&&r==="focus";!(i||ae.size>0||Je&&de.size>0||e.items)&&!ee.isOpen||(Je&&!ee.isOpen&&e.items===void 0&&l(!0),ee.isOpen||(Ce.current=_e),te(Se))},V=A.useCallback(()=>{xe(o?de:ae)},[o,de,ae]),te=A.useCallback((Se=null)=>{ee.isOpen&&V(),g(Se),ee.toggle()},[ee,V]),j=A.useCallback(()=>{ee.isOpen&&(V(),ee.close())},[ee,V]),[le,ue]=A.useState(P),De=()=>{var Se,_e;let Je=C!=null&&(_e=(Se=$.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";ue(Je),F(Je)};var Pe,Fe;let We=A.useRef((Fe=(Pe=e.selectedKey)!==null&&Pe!==void 0?Pe:e.defaultSelectedKey)!==null&&Fe!==void 0?Fe:null);var Xe;let Be=A.useRef(C!=null&&(Xe=(t=$.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");A.useEffect(()=>{var Se;d&&(ae.size>0||i)&&!ee.isOpen&&P!==le&&r!=="manual"&&K(null,"input"),!o&&!i&&ee.isOpen&&ae.size===0&&j(),C!=null&&C!==We.current&&j(),P!==le&&(D.setFocusedKey(null),l(!1),P===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&E(null)),C!==We.current&&(e.inputValue===void 0||e.selectedKey===void 0)?De():le!==P&&ue(P);var _e;let Je=C!=null&&(_e=(Se=$.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";!d&&C!=null&&e.inputValue===void 0&&C===We.current&&Be.current!==Je&&(ue(Je),F(Je)),We.current=C,Be.current=Je});let He=Ld({...e,value:A.useMemo(()=>({inputValue:P,selectedKey:C}),[P,C])}),Me=()=>{s&&C==null?Le():Ae()},Le=()=>{We.current=null,E(null),j()},Ae=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Se,_e;(Se=e.onSelectionChange)===null||Se===void 0||Se.call(e,C);var Je;let tt=C!=null&&(Je=(_e=$.getItem(C))===null||_e===void 0?void 0:_e.textValue)!==null&&Je!==void 0?Je:"";ue(tt),j()}else De(),j()};const Ge=()=>{if(s){var Se,_e;const Je=C!=null&&(_e=(Se=$.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";P===Je?Ae():Le()}else Ae()};let ht=()=>{ee.isOpen&&D.focusedKey!=null?C===D.focusedKey?Ae():E(D.focusedKey):Ge()},Gt=A.useRef(P),$t=Se=>{Se?(Gt.current=P,r==="focus"&&!e.isReadOnly&&K(null,"focus")):(a&&Ge(),P!==Gt.current&&He.commitValidation()),h(Se)},_t=A.useMemo(()=>ee.isOpen?o?de:ae:I,[ee.isOpen,de,ae,o,I]);var Zr;let en=(Zr=e.defaultSelectedKey)!==null&&Zr!==void 0?Zr:U;var ye;return{...He,...ee,focusStrategy:m,toggle:O,open:K,close:Ge,selectionManager:D,selectedKey:C,defaultSelectedKey:en,setSelectedKey:E,disabledKeys:k,isFocused:d,setFocused:$t,selectedItem:S,collection:_t,inputValue:P,defaultInputValue:(ye=sS(e.defaultInputValue,en,$))!==null&&ye!==void 0?ye:ie,setInputValue:F,commit:ht,revert:Me}}function pY(e,t,n){return new Wb(yR(e,e,t,n))}function yR(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let a=yR(e,Wm(s,e),n,r);[...a].some(o=>o.type==="item")&&i.push({...s,childNodes:a})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}function sS(e,t,n){if(e==null){var r,i;if(t!=null)return(i=(r=n.getItem(t))===null||r===void 0?void 0:r.textValue)!==null&&i!==void 0?i:""}return e}var bR={};bR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var $R={};$R={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 wR={};wR={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 CR={};CR={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Startdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ER={};ER={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var SR={};SR={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 DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={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 _R={};_R={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var MR={};MR={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 FR={};FR={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 RR={};RR={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 kR={};kR={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var OR={};OR={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var IR={};IR={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 LR={};LR={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 VR={};VR={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 BR={};BR={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 NR={};NR={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 jR={};jR={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 KR={};KR={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 UR={};UR={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 zR={};zR={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var qR={};qR={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 WR={};WR={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 HR={};HR={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 GR={};GR={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 YR={};YR={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 ZR={};ZR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var XR={};XR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var JR={};JR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var QR={};QR={"ar-AE":bR,"bg-BG":$R,"cs-CZ":xR,"da-DK":wR,"de-DE":CR,"el-GR":ER,"en-US":SR,"es-ES":DR,"et-EE":AR,"fi-FI":TR,"fr-FR":PR,"he-IL":_R,"hr-HR":MR,"hu-HU":FR,"it-IT":RR,"ja-JP":kR,"ko-KR":OR,"lt-LT":IR,"lv-LV":LR,"nb-NO":VR,"nl-NL":BR,"pl-PL":NR,"pt-BR":jR,"pt-PT":KR,"ro-RO":UR,"ru-RU":zR,"sk-SK":qR,"sl-SI":WR,"sr-SP":HR,"sv-SE":GR,"tr-TR":YR,"uk-UA":ZR,"zh-CN":XR,"zh-TW":JR};function mY(e){return e&&e.__esModule?e.default:e}const ek=new Lo(mY(QR));function tk(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Qp(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,o=e!=null&&(r==null?void 0:r(e))||!1,l=s||a||o,d=[];if(l){let h=tk(),m=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||ek,g=new r_(h,m),b=new Zi(h,Ha({},i)),w=b.resolvedOptions().timeZone;a&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate(w))})),s&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate(w))})),o&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:o,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function gY(e,t,n,r,i){var s;let a=Qp((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var o;let l=Qp((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=Xp(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Lo.getGlobalDictionaryForPackage("@react-stately/datepicker")||ek;d=Xp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",tk())],validationDetails:{...Km,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const vY={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},yY={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Ha(e,t){e={...t.shouldForceLeadingZeros?yY:vY,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let a=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");a<0&&(a=0);let o=i.indexOf(r);if(o<0&&(o=2),a>o)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,o+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&&a===0&&(l.era="short"),l}function Ll(e){return e&&"hour"in e?e:new Od}function nk(e,t){if(e===null)return null;if(e)return On(e,t)}function Ef(e,t,n,r){if(e)return nk(e,n);let i=On(o_(r??Rd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Gr(i):r?i:Ds(i)}function O3(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 a=e?n:i[1];return[t,a]}function bY(e){let t=k3(e),[n,r]=Ti(e.value,e.defaultValue||null,e.onChange),[i]=A.useState(n),s=n||e.placeholderValue||null,[a,o]=O3(s,e.granularity),l=n!=null?n.toDate(o??"UTC"):null,d=a==="hour"||a==="minute"||a==="second";var h;let m=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[g,b]=A.useState(null),[w,$]=A.useState(null);if(n&&(g=n,"hour"in n&&(w=n)),s&&!(a in s))throw new Error("Invalid granularity "+a+" for value "+s.toString());let D=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=A.useMemo(()=>({granularity:a,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:D}),[a,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,D]),{minValue:E,maxValue:S,isDateUnavailable:k}=e,P=A.useMemo(()=>Qp(n,E,S,k,C),[n,E,S,k,C]),F=Ld({...e,value:n,builtinValidation:P}),U=F.displayValidation.isInvalid,ie=e.validationState||(U?"invalid":null),de=(Ce,z)=>{r("timeZone"in z?z.set(Gr(Ce)):Ds(Ce,z)),b(null),$(null),F.commitValidation()},ae=Ce=>{let z=typeof m=="function"?m():m;d?w||z?de(Ce,w||Ll(e.defaultValue||e.placeholderValue)):b(Ce):(r(Ce),F.commitValidation()),z&&t.setOpen(!1)},I=Ce=>{g&&Ce?de(g,Ce):$(Ce)};var xe;return{...F,value:n,defaultValue:(xe=e.defaultValue)!==null&&xe!==void 0?xe:i,setValue:r,dateValue:g,timeValue:w,setDateValue:ae,setTimeValue:I,granularity:a,hasTime:d,...t,setOpen(Ce){!Ce&&!n&&g&&d&&de(g,w||Ll(e.defaultValue||e.placeholderValue)),t.setOpen(Ce)},validationState:ie,isInvalid:U,formatValue(Ce,z){if(!l)return"";let ee=Ha(z,C);return new Zi(Ce,ee).format(l)},getDateFormatter(Ce,z){let ee={...C,...z},K=Ha({},ee);return new Zi(Ce,K)}}}const $Y=new Lo({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 xY(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?$Y.getStringForLocale(e,n):"––"}const vp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},aS={year:5,month:2,day:7,hour:2,minute:15,second:15},rk={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function ik(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:a=!1,minValue:o,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=O3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let w=A.useMemo(()=>new Zi(t),[t]),$=A.useMemo(()=>n(w.resolvedOptions().calendar),[n,w]);var D;let[C,E]=Ti(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),[S]=A.useState(C),k=A.useMemo(()=>{var Me;return(Me=nk(C,$))!==null&&Me!==void 0?Me:null},[C,$]),[P,F]=A.useState(()=>Ef(e.placeholderValue,m,$,g)),U=k||P,ie=$.identifier==="gregory"&&U.era==="BC",de=A.useMemo(()=>{var Me;return{granularity:m,maxGranularity:(Me=e.maxGranularity)!==null&&Me!==void 0?Me:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:ie,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,ie]),ae=A.useMemo(()=>Ha({},de),[de]),I=A.useMemo(()=>new Zi(t,ae),[t,ae]),xe=A.useMemo(()=>I.resolvedOptions(),[I]),Ce=A.useMemo(()=>I.formatToParts(new Date).filter(Me=>vp[Me.type]).reduce((Me,Le)=>(Me[rk[Le.type]||Le.type]=!0,Me),{}),[I]),[z,ee]=A.useState(()=>e.value||e.defaultValue?{...Ce}:{}),K=A.useRef(null),O=A.useRef($);A.useEffect(()=>{Vm($,O.current)||(O.current=$,F(Me=>Object.keys(z).length>0?On(Me,$):Ef(e.placeholderValue,m,$,g)))},[$,m,z,g,e.placeholderValue]),C&&Object.keys(z).length<Object.keys(Ce).length&&(z={...Ce},ee(z)),C==null&&Object.keys(z).length===Object.keys(Ce).length&&(z={},ee(z),F(Ef(e.placeholderValue,m,$,g)));let V=k&&Object.keys(z).length>=Object.keys(Ce).length?k:P,te=Me=>{if(e.isDisabled||e.isReadOnly)return;let Le=Object.keys(z),Ae=Object.keys(Ce);Me==null?(E(null),F(Ef(e.placeholderValue,m,$,g)),ee({})):Le.length===0&&K.current==null||Le.length>=Ae.length||Le.length===Ae.length-1&&Ce.dayPeriod&&!z.dayPeriod&&K.current!=="dayPeriod"?(Le.length===0&&(z={...Ce},ee(z)),Me=On(Me,(h==null?void 0:h.calendar)||new Yr),E(Me)):F(Me),K.current=null},j=A.useMemo(()=>V.toDate(b),[V,b]),le=A.useMemo(()=>wY(j,z,I,xe,V,$,t,m),[j,z,I,xe,V,$,t,m]);Ce.era&&z.year&&!z.era?(z.era=!0,ee({...z})):!Ce.era&&z.era&&(delete z.era,ee({...z}));let ue=Me=>{z[Me]=!0,Me==="year"&&Ce.era&&(z.era=!0),ee({...z})},De=(Me,Le)=>{if(z[Me])te(CY(V,Me,Le,xe));else{ue(Me);let Ae=Object.keys(z),Ge=Object.keys(Ce);(Ae.length>=Ge.length||Ae.length===Ge.length-1&&Ce.dayPeriod&&!z.dayPeriod)&&te(V)}},Pe=A.useMemo(()=>Qp(C,o,l,d,de),[C,o,l,d,de]),Fe=Ld({...e,value:C,builtinValidation:Pe}),We=Fe.displayValidation.isInvalid,Xe=e.validationState||(We?"invalid":null);var Be,He;return{...Fe,value:k,defaultValue:(Be=e.defaultValue)!==null&&Be!==void 0?Be:S,dateValue:j,calendar:$,setValue:te,segments:le,dateFormatter:I,validationState:Xe,isInvalid:We,granularity:m,maxGranularity:(He=e.maxGranularity)!==null&&He!==void 0?He:"year",isDisabled:i,isReadOnly:s,isRequired:a,increment(Me){De(Me,1)},decrement(Me){De(Me,-1)},incrementPage(Me){De(Me,aS[Me]||1)},decrementPage(Me){De(Me,-(aS[Me]||1))},setSegment(Me,Le){ue(Me),te(EY(V,Me,Le,xe))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Me=Object.keys(z),Le=Object.keys(Ce);Me.length===Le.length-1&&Ce.dayPeriod&&!z.dayPeriod&&(z={...Ce},ee(z),te(V.copy()))},clearSegment(Me){delete z[Me],K.current=Me,ee({...z});let Le=Ef(e.placeholderValue,m,$,g),Ae=V;if(Me==="dayPeriod"&&"hour"in V&&"hour"in Le){let Ge=V.hour>=12,ht=Le.hour>=12;Ge&&!ht?Ae=V.set({hour:V.hour-12}):!Ge&&ht&&(Ae=V.set({hour:V.hour+12}))}else Me==="hour"&&"hour"in V&&V.hour>=12&&z.dayPeriod?Ae=V.set({hour:Le.hour+12}):Me in V&&(Ae=V.set({[Me]:Le[Me]}));E(null),te(Ae)},formatValue(Me){if(!k)return"";let Le=Ha(Me,de);return new Zi(t,Le).format(j)},getDateFormatter(Me,Le){let Ae={...de,...Le},Ge=Ha({},Ae);return new Zi(Me,Ge)}}}function wY(e,t,n,r,i,s,a,o){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=rk[m.type]||m.type,b=vp[g];g==="era"&&s.getEras().length===1&&(b=!1);let w=vp[g]&&!t[g],$=vp[g]?xY(g,m.value,a):null,D={type:g,text:w?$:m.value,...Wh(i,g,r),isPlaceholder:w,placeholder:$,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...Wh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(D),g===o&&h.push({type:"literal",text:"",...Wh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===o?(h.push(D),h.push({type:"literal",text:"",...Wh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(D)}return h}function Wh(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:vW(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:yW(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 CY(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 EY(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 SY(e){var t,n;let r=k3(e),[i,s]=Ti(e.value,e.defaultValue||null,e.onChange),[a]=A.useState(i),[o,l]=A.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},l(o));let d=i||o,h=V=>{d=V||{start:null,end:null},l(d),fu(d)?s(d):s(null)},m=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[g,b]=O3(m,e.granularity),w=g==="hour"||g==="minute"||g==="second";var $;let D=($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:!0,[C,E]=A.useState(null),[S,k]=A.useState(null);d&&fu(d)&&(C=d,"hour"in d.start&&(S=d));let P=(V,te)=>{h({start:"timeZone"in te.start?te.start.set(Gr(V.start)):Ds(V.start,te.start),end:"timeZone"in te.end?te.end.set(Gr(V.end)):Ds(V.end,te.end)}),E(null),k(null),z.commitValidation()},F=V=>{let te=typeof D=="function"?D():D;w?fu(V)&&(te||S!=null&&S.start&&(S!=null&&S.end))?P(V,{start:(S==null?void 0:S.start)||Ll(e.placeholderValue),end:(S==null?void 0:S.end)||Ll(e.placeholderValue)}):E(V):fu(V)?(h(V),z.commitValidation()):E(V),te&&r.setOpen(!1)},U=V=>{fu(C)&&fu(V)?P(C,V):k(V)},ie=(d==null||(t=d.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&d.start.era==="BC"||(d==null||(n=d.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&d.end.era==="BC",de=A.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:ie}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,ie]),{minValue:ae,maxValue:I,isDateUnavailable:xe}=e,Ce=A.useMemo(()=>gY(d,ae,I,xe,de),[d,ae,I,xe,de]),z=Ld({...e,value:i,name:A.useMemo(()=>[e.startName,e.endName].filter(V=>V!=null),[e.startName,e.endName]),builtinValidation:Ce}),ee=z.displayValidation.isInvalid,K=e.validationState||(ee?"invalid":null);var O;return{...z,value:d,defaultValue:(O=e.defaultValue)!==null&&O!==void 0?O:a,setValue:h,dateRange:C,timeRange:S,granularity:g,hasTime:w,setDate(V,te){var j,le;F(V==="start"?{start:te,end:(j=C==null?void 0:C.end)!==null&&j!==void 0?j:null}:{start:(le=C==null?void 0:C.start)!==null&&le!==void 0?le:null,end:te})},setTime(V,te){var j,le;U(V==="start"?{start:te,end:(j=S==null?void 0:S.end)!==null&&j!==void 0?j:null}:{start:(le=S==null?void 0:S.start)!==null&&le!==void 0?le:null,end:te})},setDateTime(V,te){var j,le;h(V==="start"?{start:te,end:(j=d==null?void 0:d.end)!==null&&j!==void 0?j:null}:{start:(le=d==null?void 0:d.start)!==null&&le!==void 0?le:null,end:te})},setDateRange:F,setTimeRange:U,...r,setOpen(V){!V&&!(d!=null&&d.start&&(d!=null&&d.end))&&fu(C)&&w&&P(C,{start:(S==null?void 0:S.start)||Ll(e.placeholderValue),end:(S==null?void 0:S.end)||Ll(e.placeholderValue)}),r.setOpen(V)},validationState:K,isInvalid:ee,formatValue(V,te){if(!d||!d.start||!d.end)return null;let j="timeZone"in d.start?d.start.timeZone:void 0,le=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),ue="timeZone"in d.end?d.end.timeZone:void 0,De=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),Pe=Ha(te,{granularity:le,timeZone:j,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:d.start.calendar.identifier==="gregory"&&d.start.era==="BC"||d.end.calendar.identifier==="gregory"&&d.end.era==="BC"}),Fe=d.start.toDate(j||"UTC"),We=d.end.toDate(ue||"UTC"),Xe=new Zi(V,Pe),Be;if(j===ue&&le===De&&d.start.compare(d.end)!==0){try{let He=Xe.formatRangeToParts(Fe,We),Me=-1;for(let Ge=0;Ge<He.length;Ge++){let ht=He[Ge];if(ht.source==="shared"&&ht.type==="literal")Me=Ge;else if(ht.source==="endRange")break}let Le="",Ae="";for(let Ge=0;Ge<He.length;Ge++)Ge<Me?Le+=He[Ge].value:Ge>Me&&(Ae+=He[Ge].value);return{start:Le,end:Ae}}catch{}Be=Xe}else{let He=Ha(te,{granularity:De,timeZone:ue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Be=new Zi(V,He)}return{start:Xe.format(Fe),end:Be.format(We)}},getDateFormatter(V,te){let j={...de,...te},le=Ha({},j);return new Zi(V,le)}}}function fu(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function DY(e){let{placeholderValue:t=new Od,minValue:n,maxValue:r,defaultValue:i,granularity:s,validate:a}=e,[o,l]=Ti(e.value,i??null,e.onChange),d=o||t,h=d&&"day"in d?d:void 0,m=i&&"timeZone"in i?i.timeZone:void 0,g=A.useMemo(()=>{let k=d&&"timeZone"in d?d.timeZone:void 0;return(k||m)&&t?p_(Ml(t),k||m):Ml(t)},[t,d,m]),b=A.useMemo(()=>Ml(n,h),[n,h]),w=A.useMemo(()=>Ml(r,h),[r,h]),$=A.useMemo(()=>o&&"day"in o?mE(o):o,[o]),D=A.useMemo(()=>o==null?null:Ml(o),[o]),C=A.useMemo(()=>i==null?null:Ml(i),[i]);return{...ik({...e,value:D,defaultValue:C,minValue:b,maxValue:w,onChange:k=>{l(h||m?k:k&&mE(k))},granularity:s||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Yr,validate:A.useCallback(()=>a==null?void 0:a(o),[a,o])}),timeValue:$}}function Ml(e,t=Bm(Rd())){return e?"day"in e?e:Ds(t,e):null}var Qv,oS;function AY(){if(oS)return Qv;oS=1;function e(){this.__data__=[],this.size=0}return Qv=e,Qv}var ey,uS;function I3(){if(uS)return ey;uS=1;function e(t,n){return t===n||t!==t&&n!==n}return ey=e,ey}var ty,lS;function Hm(){if(lS)return ty;lS=1;var e=I3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return ty=t,ty}var ny,cS;function TY(){if(cS)return ny;cS=1;var e=Hm(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,a=e(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():n.call(s,a,1),--this.size,!0}return ny=r,ny}var ry,fS;function PY(){if(fS)return ry;fS=1;var e=Hm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ry=t,ry}var iy,dS;function _Y(){if(dS)return iy;dS=1;var e=Hm();function t(n){return e(this.__data__,n)>-1}return iy=t,iy}var sy,hS;function MY(){if(hS)return sy;hS=1;var e=Hm();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 sy=t,sy}var ay,pS;function Gm(){if(pS)return ay;pS=1;var e=AY(),t=TY(),n=PY(),r=_Y(),i=MY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];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,ay=s,ay}var oy,mS;function FY(){if(mS)return oy;mS=1;var e=Gm();function t(){this.__data__=new e,this.size=0}return oy=t,oy}var uy,gS;function RY(){if(gS)return uy;gS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return uy=e,uy}var ly,vS;function kY(){if(vS)return ly;vS=1;function e(t){return this.__data__.get(t)}return ly=e,ly}var cy,yS;function OY(){if(yS)return cy;yS=1;function e(t){return this.__data__.has(t)}return cy=e,cy}var fy,bS;function sk(){if(bS)return fy;bS=1;var e=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi;return fy=e,fy}var dy,$S;function no(){if($S)return dy;$S=1;var e=sk(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return dy=n,dy}var hy,xS;function Ym(){if(xS)return hy;xS=1;var e=no(),t=e.Symbol;return hy=t,hy}var py,wS;function IY(){if(wS)return py;wS=1;var e=Ym(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=n.call(a,i),l=a[i];try{a[i]=void 0;var d=!0}catch{}var h=r.call(a);return d&&(o?a[i]=l:delete a[i]),h}return py=s,py}var my,CS;function LY(){if(CS)return my;CS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return my=n,my}var gy,ES;function Ec(){if(ES)return gy;ES=1;var e=Ym(),t=IY(),n=LY(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:r:s&&s in Object(o)?t(o):n(o)}return gy=a,gy}var vy,SS;function Sc(){if(SS)return vy;SS=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return vy=e,vy}var yy,DS;function L3(){if(DS)return yy;DS=1;var e=Ec(),t=Sc(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var l=e(o);return l==r||l==i||l==n||l==s}return yy=a,yy}var by,AS;function VY(){if(AS)return by;AS=1;var e=no(),t=e["__core-js_shared__"];return by=t,by}var $y,TS;function BY(){if(TS)return $y;TS=1;var e=VY(),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,PS;function ak(){if(PS)return xy;PS=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,_S;function NY(){if(_S)return wy;_S=1;var e=L3(),t=BY(),n=Sc(),r=ak(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,l=a.toString,d=o.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,MS;function jY(){if(MS)return Cy;MS=1;function e(t,n){return t==null?void 0:t[n]}return Cy=e,Cy}var Ey,FS;function Dc(){if(FS)return Ey;FS=1;var e=NY(),t=jY();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Ey=n,Ey}var Sy,RS;function V3(){if(RS)return Sy;RS=1;var e=Dc(),t=no(),n=e(t,"Map");return Sy=n,Sy}var Dy,kS;function Zm(){if(kS)return Dy;kS=1;var e=Dc(),t=e(Object,"create");return Dy=t,Dy}var Ay,OS;function KY(){if(OS)return Ay;OS=1;var e=Zm();function t(){this.__data__=e?e(null):{},this.size=0}return Ay=t,Ay}var Ty,IS;function UY(){if(IS)return Ty;IS=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,LS;function zY(){if(LS)return Py;LS=1;var e=Zm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return r.call(a,s)?a[s]:void 0}return Py=i,Py}var _y,VS;function qY(){if(VS)return _y;VS=1;var e=Zm(),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,BS;function WY(){if(BS)return My;BS=1;var e=Zm(),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 Fy,NS;function HY(){if(NS)return Fy;NS=1;var e=KY(),t=UY(),n=zY(),r=qY(),i=WY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];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,Fy=s,Fy}var Ry,jS;function GY(){if(jS)return Ry;jS=1;var e=HY(),t=Gm(),n=V3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Ry=r,Ry}var ky,KS;function YY(){if(KS)return ky;KS=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,US;function Xm(){if(US)return Oy;US=1;var e=YY();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,zS;function ZY(){if(zS)return Iy;zS=1;var e=Xm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Iy=t,Iy}var Ly,qS;function XY(){if(qS)return Ly;qS=1;var e=Xm();function t(n){return e(this,n).get(n)}return Ly=t,Ly}var Vy,WS;function JY(){if(WS)return Vy;WS=1;var e=Xm();function t(n){return e(this,n).has(n)}return Vy=t,Vy}var By,HS;function QY(){if(HS)return By;HS=1;var e=Xm();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 By=t,By}var Ny,GS;function B3(){if(GS)return Ny;GS=1;var e=GY(),t=ZY(),n=XY(),r=JY(),i=QY();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var d=a[o];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,YS;function eZ(){if(YS)return jy;YS=1;var e=Gm(),t=V3(),n=B3(),r=200;function i(s,a){var o=this.__data__;if(o instanceof e){var l=o.__data__;if(!t||l.length<r-1)return l.push([s,a]),this.size=++o.size,this;o=this.__data__=new n(l)}return o.set(s,a),this.size=o.size,this}return jy=i,jy}var Ky,ZS;function ok(){if(ZS)return Ky;ZS=1;var e=Gm(),t=FY(),n=RY(),r=kY(),i=OY(),s=eZ();function a(o){var l=this.__data__=new e(o);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,Ky=a,Ky}var Uy,XS;function tZ(){if(XS)return Uy;XS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Uy=t,Uy}var zy,JS;function nZ(){if(JS)return zy;JS=1;function e(t){return this.__data__.has(t)}return zy=e,zy}var qy,QS;function rZ(){if(QS)return qy;QS=1;var e=B3(),t=tZ(),n=nZ();function r(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,qy=r,qy}var Wy,eD;function uk(){if(eD)return Wy;eD=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 Wy=e,Wy}var Hy,tD;function iZ(){if(tD)return Hy;tD=1;function e(t,n){return t.has(n)}return Hy=e,Hy}var Gy,nD;function lk(){if(nD)return Gy;nD=1;var e=rZ(),t=uk(),n=iZ(),r=1,i=2;function s(a,o,l,d,h,m){var g=l&r,b=a.length,w=o.length;if(b!=w&&!(g&&w>b))return!1;var $=m.get(a),D=m.get(o);if($&&D)return $==o&&D==a;var C=-1,E=!0,S=l&i?new e:void 0;for(m.set(a,o),m.set(o,a);++C<b;){var k=a[C],P=o[C];if(d)var F=g?d(P,k,C,o,a,m):d(k,P,C,a,o,m);if(F!==void 0){if(F)continue;E=!1;break}if(S){if(!t(o,function(U,ie){if(!n(S,ie)&&(k===U||h(k,U,l,d,m)))return S.push(ie)})){E=!1;break}}else if(!(k===P||h(k,P,l,d,m))){E=!1;break}}return m.delete(a),m.delete(o),E}return Gy=s,Gy}var Yy,rD;function sZ(){if(rD)return Yy;rD=1;var e=no(),t=e.Uint8Array;return Yy=t,Yy}var Zy,iD;function aZ(){if(iD)return Zy;iD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Zy=e,Zy}var Xy,sD;function oZ(){if(sD)return Xy;sD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Xy=e,Xy}var Jy,aD;function uZ(){if(aD)return Jy;aD=1;var e=Ym(),t=sZ(),n=I3(),r=lk(),i=aZ(),s=oZ(),a=1,o=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",w="[object Set]",$="[object String]",D="[object Symbol]",C="[object ArrayBuffer]",E="[object DataView]",S=e?e.prototype:void 0,k=S?S.valueOf:void 0;function P(F,U,ie,de,ae,I,xe){switch(ie){case E:if(F.byteLength!=U.byteLength||F.byteOffset!=U.byteOffset)return!1;F=F.buffer,U=U.buffer;case C:return!(F.byteLength!=U.byteLength||!I(new t(F),new t(U)));case l:case d:case g:return n(+F,+U);case h:return F.name==U.name&&F.message==U.message;case b:case $:return F==U+"";case m:var Ce=i;case w:var z=de&a;if(Ce||(Ce=s),F.size!=U.size&&!z)return!1;var ee=xe.get(F);if(ee)return ee==U;de|=o,xe.set(F,U);var K=r(Ce(F),Ce(U),de,ae,I,xe);return xe.delete(F),K;case D:if(k)return k.call(F)==k.call(U)}return!1}return Jy=P,Jy}var Qy,oD;function lZ(){if(oD)return Qy;oD=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 Qy=e,Qy}var e0,uD;function ha(){if(uD)return e0;uD=1;var e=Array.isArray;return e0=e,e0}var t0,lD;function cZ(){if(lD)return t0;lD=1;var e=lZ(),t=ha();function n(r,i,s){var a=i(r);return t(r)?a:e(a,s(r))}return t0=n,t0}var n0,cD;function fZ(){if(cD)return n0;cD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,a=[];++r<i;){var o=t[r];n(o,r,t)&&(a[s++]=o)}return a}return n0=e,n0}var r0,fD;function dZ(){if(fD)return r0;fD=1;function e(){return[]}return r0=e,r0}var i0,dD;function hZ(){if(dD)return i0;dD=1;var e=fZ(),t=dZ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return r.call(a,o)}))}:t;return i0=s,i0}var s0,hD;function pZ(){if(hD)return s0;hD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return s0=e,s0}var a0,pD;function Ac(){if(pD)return a0;pD=1;function e(t){return t!=null&&typeof t=="object"}return a0=e,a0}var o0,mD;function mZ(){if(mD)return o0;mD=1;var e=Ec(),t=Ac(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return o0=r,o0}var u0,gD;function ck(){if(gD)return u0;gD=1;var e=mZ(),t=Ac(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return u0=s,u0}var Bf={exports:{}},l0,vD;function gZ(){if(vD)return l0;vD=1;function e(){return!1}return l0=e,l0}Bf.exports;var yD;function N3(){return yD||(yD=1,function(e,t){var n=no(),r=gZ(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?n.Buffer:void 0,l=o?o.isBuffer:void 0,d=l||r;e.exports=d}(Bf,Bf.exports)),Bf.exports}var c0,bD;function j3(){if(bD)return c0;bD=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 c0=n,c0}var f0,$D;function K3(){if($D)return f0;$D=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return f0=t,f0}var d0,xD;function vZ(){if(xD)return d0;xD=1;var e=Ec(),t=K3(),n=Ac(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",w="[object String]",$="[object WeakMap]",D="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",k="[object Int8Array]",P="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",ie="[object Uint8ClampedArray]",de="[object Uint16Array]",ae="[object Uint32Array]",I={};I[E]=I[S]=I[k]=I[P]=I[F]=I[U]=I[ie]=I[de]=I[ae]=!0,I[r]=I[i]=I[D]=I[s]=I[C]=I[a]=I[o]=I[l]=I[d]=I[h]=I[m]=I[g]=I[b]=I[w]=I[$]=!1;function xe(Ce){return n(Ce)&&t(Ce.length)&&!!I[e(Ce)]}return d0=xe,d0}var h0,wD;function yZ(){if(wD)return h0;wD=1;function e(t){return function(n){return t(n)}}return h0=e,h0}var Nf={exports:{}};Nf.exports;var CD;function bZ(){return CD||(CD=1,function(e,t){var n=sk(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,a=s&&n.process,o=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=o}(Nf,Nf.exports)),Nf.exports}var p0,ED;function U3(){if(ED)return p0;ED=1;var e=vZ(),t=yZ(),n=bZ(),r=n&&n.isTypedArray,i=r?t(r):e;return p0=i,p0}var m0,SD;function $Z(){if(SD)return m0;SD=1;var e=pZ(),t=ck(),n=ha(),r=N3(),i=j3(),s=U3(),a=Object.prototype,o=a.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),w=!m&&!g&&!b&&s(d),$=m||g||b||w,D=$?e(d.length,String):[],C=D.length;for(var E in d)(h||o.call(d,E))&&!($&&(E=="length"||b&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&D.push(E);return D}return m0=l,m0}var g0,DD;function xZ(){if(DD)return g0;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 g0=t,g0}var v0,AD;function fk(){if(AD)return v0;AD=1;function e(t,n){return function(r){return t(n(r))}}return v0=e,v0}var y0,TD;function wZ(){if(TD)return y0;TD=1;var e=fk(),t=e(Object.keys,Object);return y0=t,y0}var b0,PD;function CZ(){if(PD)return b0;PD=1;var e=xZ(),t=wZ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))r.call(s,o)&&o!="constructor"&&a.push(o);return a}return b0=i,b0}var $0,_D;function z3(){if(_D)return $0;_D=1;var e=L3(),t=K3();function n(r){return r!=null&&t(r.length)&&!e(r)}return $0=n,$0}var x0,MD;function q3(){if(MD)return x0;MD=1;var e=$Z(),t=CZ(),n=z3();function r(i){return n(i)?e(i):t(i)}return x0=r,x0}var w0,FD;function EZ(){if(FD)return w0;FD=1;var e=cZ(),t=hZ(),n=q3();function r(i){return e(i,n,t)}return w0=r,w0}var C0,RD;function SZ(){if(RD)return C0;RD=1;var e=EZ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,a,o,l,d,h){var m=o&t,g=e(s),b=g.length,w=e(a),$=w.length;if(b!=$&&!m)return!1;for(var D=b;D--;){var C=g[D];if(!(m?C in a:r.call(a,C)))return!1}var E=h.get(s),S=h.get(a);if(E&&S)return E==a&&S==s;var k=!0;h.set(s,a),h.set(a,s);for(var P=m;++D<b;){C=g[D];var F=s[C],U=a[C];if(l)var ie=m?l(U,F,C,a,s,h):l(F,U,C,s,a,h);if(!(ie===void 0?F===U||d(F,U,o,l,h):ie)){k=!1;break}P||(P=C=="constructor")}if(k&&!P){var de=s.constructor,ae=a.constructor;de!=ae&&"constructor"in s&&"constructor"in a&&!(typeof de=="function"&&de instanceof de&&typeof ae=="function"&&ae instanceof ae)&&(k=!1)}return h.delete(s),h.delete(a),k}return C0=i,C0}var E0,kD;function DZ(){if(kD)return E0;kD=1;var e=Dc(),t=no(),n=e(t,"DataView");return E0=n,E0}var S0,OD;function AZ(){if(OD)return S0;OD=1;var e=Dc(),t=no(),n=e(t,"Promise");return S0=n,S0}var D0,ID;function TZ(){if(ID)return D0;ID=1;var e=Dc(),t=no(),n=e(t,"Set");return D0=n,D0}var A0,LD;function PZ(){if(LD)return A0;LD=1;var e=Dc(),t=no(),n=e(t,"WeakMap");return A0=n,A0}var T0,VD;function _Z(){if(VD)return T0;VD=1;var e=DZ(),t=V3(),n=AZ(),r=TZ(),i=PZ(),s=Ec(),a=ak(),o="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=a(e),w=a(t),$=a(n),D=a(r),C=a(i),E=s;return(e&&E(new e(new ArrayBuffer(1)))!=g||t&&E(new t)!=o||n&&E(n.resolve())!=d||r&&E(new r)!=h||i&&E(new i)!=m)&&(E=function(S){var k=s(S),P=k==l?S.constructor:void 0,F=P?a(P):"";if(F)switch(F){case b:return g;case w:return o;case $:return d;case D:return h;case C:return m}return k}),T0=E,T0}var P0,BD;function MZ(){if(BD)return P0;BD=1;var e=ok(),t=lk(),n=uZ(),r=SZ(),i=_Z(),s=ha(),a=N3(),o=U3(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w($,D,C,E,S,k){var P=s($),F=s(D),U=P?h:i($),ie=F?h:i(D);U=U==d?m:U,ie=ie==d?m:ie;var de=U==m,ae=ie==m,I=U==ie;if(I&&a($)){if(!a(D))return!1;P=!0,de=!1}if(I&&!de)return k||(k=new e),P||o($)?t($,D,C,E,S,k):n($,D,U,C,E,S,k);if(!(C&l)){var xe=de&&b.call($,"__wrapped__"),Ce=ae&&b.call(D,"__wrapped__");if(xe||Ce){var z=xe?$.value():$,ee=Ce?D.value():D;return k||(k=new e),S(z,ee,C,E,k)}}return I?(k||(k=new e),r($,D,C,E,S,k)):!1}return P0=w,P0}var _0,ND;function W3(){if(ND)return _0;ND=1;var e=MZ(),t=Ac();function n(r,i,s,a,o){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,a,n,o)}return _0=n,_0}var M0,jD;function FZ(){if(jD)return M0;jD=1;var e=W3();function t(n,r){return e(n,r)}return M0=t,M0}var RZ=FZ();const kZ=fi(RZ);var yp={exports:{}},OZ=yp.exports,KD;function IZ(){return KD||(KD=1,function(e,t){(function(n,r){e.exports=r()})(OZ,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",w="date",$="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var ee=["th","st","nd","rd"],K=z%100;return"["+z+(ee[(K-20)%10]||ee[K]||ee[0])+"]"}},S=function(z,ee,K){var O=String(z);return!O||O.length>=ee?z:""+Array(ee+1-O.length).join(K)+z},k={s:S,z:function(z){var ee=-z.utcOffset(),K=Math.abs(ee),O=Math.floor(K/60),V=K%60;return(ee<=0?"+":"-")+S(O,2,"0")+":"+S(V,2,"0")},m:function z(ee,K){if(ee.date()<K.date())return-z(K,ee);var O=12*(K.year()-ee.year())+(K.month()-ee.month()),V=ee.clone().add(O,m),te=K-V<0,j=ee.clone().add(O+(te?-1:1),m);return+(-(O+(K-V)/(te?V-j:j-V))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:m,y:b,w:h,d,D:w,h:l,m:o,s:a,ms:s,Q:g}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},P="en",F={};F[P]=E;var U="$isDayjsObject",ie=function(z){return z instanceof xe||!(!z||!z[U])},de=function z(ee,K,O){var V;if(!ee)return P;if(typeof ee=="string"){var te=ee.toLowerCase();F[te]&&(V=te),K&&(F[te]=K,V=te);var j=ee.split("-");if(!V&&j.length>1)return z(j[0])}else{var le=ee.name;F[le]=ee,V=le}return!O&&V&&(P=V),V||!O&&P},ae=function(z,ee){if(ie(z))return z.clone();var K=typeof ee=="object"?ee:{};return K.date=z,K.args=arguments,new xe(K)},I=k;I.l=de,I.i=ie,I.w=function(z,ee){return ae(z,{locale:ee.$L,utc:ee.$u,x:ee.$x,$offset:ee.$offset})};var xe=function(){function z(K){this.$L=de(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[U]=!0}var ee=z.prototype;return ee.parse=function(K){this.$d=function(O){var V=O.date,te=O.utc;if(V===null)return new Date(NaN);if(I.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var j=V.match(D);if(j){var le=j[2]-1||0,ue=(j[7]||"0").substring(0,3);return te?new Date(Date.UTC(j[1],le,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)):new Date(j[1],le,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ue)}}return new Date(V)}(K),this.init()},ee.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()},ee.$utils=function(){return I},ee.isValid=function(){return this.$d.toString()!==$},ee.isSame=function(K,O){var V=ae(K);return this.startOf(O)<=V&&V<=this.endOf(O)},ee.isAfter=function(K,O){return ae(K)<this.startOf(O)},ee.isBefore=function(K,O){return this.endOf(O)<ae(K)},ee.$g=function(K,O,V){return I.u(K)?this[O]:this.set(V,K)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(K,O){var V=this,te=!!I.u(O)||O,j=I.p(K),le=function(He,Me){var Le=I.w(V.$u?Date.UTC(V.$y,Me,He):new Date(V.$y,Me,He),V);return te?Le:Le.endOf(d)},ue=function(He,Me){return I.w(V.toDate()[He].apply(V.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(Me)),V)},De=this.$W,Pe=this.$M,Fe=this.$D,We="set"+(this.$u?"UTC":"");switch(j){case b:return te?le(1,0):le(31,11);case m:return te?le(1,Pe):le(0,Pe+1);case h:var Xe=this.$locale().weekStart||0,Be=(De<Xe?De+7:De)-Xe;return le(te?Fe-Be:Fe+(6-Be),Pe);case d:case w:return ue(We+"Hours",0);case l:return ue(We+"Minutes",1);case o:return ue(We+"Seconds",2);case a:return ue(We+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(K){return this.startOf(K,!1)},ee.$set=function(K,O){var V,te=I.p(K),j="set"+(this.$u?"UTC":""),le=(V={},V[d]=j+"Date",V[w]=j+"Date",V[m]=j+"Month",V[b]=j+"FullYear",V[l]=j+"Hours",V[o]=j+"Minutes",V[a]=j+"Seconds",V[s]=j+"Milliseconds",V)[te],ue=te===d?this.$D+(O-this.$W):O;if(te===m||te===b){var De=this.clone().set(w,1);De.$d[le](ue),De.init(),this.$d=De.set(w,Math.min(this.$D,De.daysInMonth())).$d}else le&&this.$d[le](ue);return this.init(),this},ee.set=function(K,O){return this.clone().$set(K,O)},ee.get=function(K){return this[I.p(K)]()},ee.add=function(K,O){var V,te=this;K=Number(K);var j=I.p(O),le=function(Pe){var Fe=ae(te);return I.w(Fe.date(Fe.date()+Math.round(Pe*K)),te)};if(j===m)return this.set(m,this.$M+K);if(j===b)return this.set(b,this.$y+K);if(j===d)return le(1);if(j===h)return le(7);var ue=(V={},V[o]=r,V[l]=i,V[a]=n,V)[j]||1,De=this.$d.getTime()+K*ue;return I.w(De,this)},ee.subtract=function(K,O){return this.add(-1*K,O)},ee.format=function(K){var O=this,V=this.$locale();if(!this.isValid())return V.invalidDate||$;var te=K||"YYYY-MM-DDTHH:mm:ssZ",j=I.z(this),le=this.$H,ue=this.$m,De=this.$M,Pe=V.weekdays,Fe=V.months,We=V.meridiem,Xe=function(Me,Le,Ae,Ge){return Me&&(Me[Le]||Me(O,te))||Ae[Le].slice(0,Ge)},Be=function(Me){return I.s(le%12||12,Me,"0")},He=We||function(Me,Le,Ae){var Ge=Me<12?"AM":"PM";return Ae?Ge.toLowerCase():Ge};return te.replace(C,function(Me,Le){return Le||function(Ae){switch(Ae){case"YY":return String(O.$y).slice(-2);case"YYYY":return I.s(O.$y,4,"0");case"M":return De+1;case"MM":return I.s(De+1,2,"0");case"MMM":return Xe(V.monthsShort,De,Fe,3);case"MMMM":return Xe(Fe,De);case"D":return O.$D;case"DD":return I.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Xe(V.weekdaysMin,O.$W,Pe,2);case"ddd":return Xe(V.weekdaysShort,O.$W,Pe,3);case"dddd":return Pe[O.$W];case"H":return String(le);case"HH":return I.s(le,2,"0");case"h":return Be(1);case"hh":return Be(2);case"a":return He(le,ue,!0);case"A":return He(le,ue,!1);case"m":return String(ue);case"mm":return I.s(ue,2,"0");case"s":return String(O.$s);case"ss":return I.s(O.$s,2,"0");case"SSS":return I.s(O.$ms,3,"0");case"Z":return j}return null}(Me)||j.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(K,O,V){var te,j=this,le=I.p(O),ue=ae(K),De=(ue.utcOffset()-this.utcOffset())*r,Pe=this-ue,Fe=function(){return I.m(j,ue)};switch(le){case b:te=Fe()/12;break;case m:te=Fe();break;case g:te=Fe()/3;break;case h:te=(Pe-De)/6048e5;break;case d:te=(Pe-De)/864e5;break;case l:te=Pe/i;break;case o:te=Pe/r;break;case a:te=Pe/n;break;default:te=Pe}return V?te:I.a(te)},ee.daysInMonth=function(){return this.endOf(m).$D},ee.$locale=function(){return F[this.$L]},ee.locale=function(K,O){if(!K)return this.$L;var V=this.clone(),te=de(K,O,!0);return te&&(V.$L=te),V},ee.clone=function(){return I.w(this.$d,this)},ee.toDate=function(){return new Date(this.valueOf())},ee.toJSON=function(){return this.isValid()?this.toISOString():null},ee.toISOString=function(){return this.$d.toISOString()},ee.toString=function(){return this.$d.toUTCString()},z}(),Ce=xe.prototype;return ae.prototype=Ce,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",d],["$M",m],["$y",b],["$D",w]].forEach(function(z){Ce[z[1]]=function(ee){return this.$g(ee,z[0],z[1])}}),ae.extend=function(z,ee){return z.$i||(z(ee,xe,ae),z.$i=!0),ae},ae.locale=de,ae.isDayjs=ie,ae.unix=function(z){return ae(1e3*z)},ae.en=F[P],ae.Ls=F,ae.p={},ae})}(yp)),yp.exports}var dk=IZ();const LZ=fi(dk);var F0,UD;function VZ(){if(UD)return F0;UD=1;var e=Ec(),t=Ac(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return F0=r,F0}var BZ=VZ();const NZ=fi(BZ);var Yu=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Faroe Islands","fo","298",".. .. .."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594","... .. .. .."],["French Polynesia","pf","689",{"/^44/":".. .. ..","/^80[0-5]/":"... .. .. ..",default:".. .. .. .."}],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","... .. .. ..",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596","... .. .. .."],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","... .. .. ..",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","... .. .. ..",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Pierre & Miquelon","pm","508",{"/^708/":"... ... ...","/^8/":"... .. .. ..",default:".. .. .."}],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis & Futuna","wf","681",".. .. .."],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],jZ="react-international-phone-",hk=(...e)=>e.filter(t=>!!t).join(" ").trim(),KZ=(...e)=>hk(...e).split(" ").map(t=>`${jZ}${t}`).join(" "),Mr=({addPrefix:e,rawClassNames:t})=>hk(KZ(...e),...t),UZ=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),a=e.slice(r),o=s,l=0;for(let d of t.split("")){if(l>=a.length){if(!i&&d!==n){o+=d;continue}break}d===n?(o+=a[l],l+=1):o+=d}return o},kl=e=>e?/^\d+$/.test(e):!1,Jm=e=>e.replace(/\D/g,""),zZ=(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,a=r.bottom-i.bottom;s>=0&&a>=0||(Math.abs(s)<Math.abs(a)?e.scrollTop+=s:e.scrollTop-=a),e.style.display=n},qZ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),WZ=(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=Jm(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 a=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:o,phoneRightSide:l}=a();return o=`${t.prefix}${o}${t.charAfterDialCode}`,l=UZ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(o=""),s(`${o}${l}`)},HZ=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let h=r-1;h>=0;h-=1)if(kl(t[h])){a=h;break}if(a===null){for(let h=0;h<t.length;h+=1)if(kl(n[h]))return h;return t.length}let o=0;for(let h=0;h<a;h+=1)kl(t[h])&&(o+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,kl(n[h])&&(d+=1),!(d>=o+1));h+=1);if(s!=="backward")for(;!kl(n[l])&&l<n.length;)l+=1;return l},bp=({phone:e,prefix:t})=>e?`${t}${Jm(e)}`:"";function Hb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:a,forceDialCode:o,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?nX({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(b==null?void 0:b.country)??t,$=WZ(g,{prefix:s,mask:eX({phone:g,country:w,defaultMask:d,disableFormatting:m}),maskChar:pk,dialCode:w.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:o,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=h&&!(b!=null&&b.fullDialCodeMatch)?t:w;return{phone:bp({phone:l?`${D.dialCode}${$}`:$,prefix:s}),inputValue:$,country:D}}var GZ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},YZ=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,w=GZ(b),$=!!(b!=null&&b.startsWith("insertFrom")),D=b==="insertText",C=(g==null?void 0:g.data)||void 0,E=e.target.value,S=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:bp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!kl(C)&&E!==i)return{inputValue:r,phone:bp({phone:o?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:S-((C==null?void 0:C.length)??0),country:t};if(a&&!E.startsWith(`${i}${t.dialCode}`)&&!$){let ie=E?r:`${i}${t.dialCode}${s}`;return{inputValue:ie,phone:bp({phone:ie,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:k,inputValue:P,country:F}=Hb({value:E,country:t,trimNonDigitsEnd:w==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:o,disableFormatting:h,defaultMask:d}),U=HZ({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:E,phoneAfterFormatted:P,leftOffset:a?i.length+t.dialCode.length+s.length:0,deletion:w});return{phone:k,inputValue:P,cursorPosition:U,country:F}},ZZ=(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},XZ=()=>{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}}},JZ={size:20,overrideLastItemDebounceMS:-1};function QZ(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...JZ,...t},[s,a]=A.useState(e),[o,l]=A.useState([s]),[d,h]=A.useState(0),m=XZ();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&ZZ(g,s)||g===s)return;let w=r>0,$=m.check(),D=w&&$!==void 0?$>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!D)l(C=>[...C.slice(0,d),g]);else{let C=o.length>=n;l(E=>[...E.slice(C?1:0,d+1),g]),C||h(E=>E+1)}a(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=o[d-1];return a(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=o.length)return{success:!1};let g=o[d+1];return a(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var pk=".",Ni={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Yu},mk=({defaultCountry:e=Ni.defaultCountry,value:t=Ni.value,countries:n=Ni.countries,prefix:r=Ni.prefix,defaultMask:i=Ni.defaultMask,charAfterDialCode:s=Ni.charAfterDialCode,historySaveDebounceMS:a=Ni.historySaveDebounceMS,disableCountryGuess:o=Ni.disableCountryGuess,disableDialCodePrefill:l=Ni.disableDialCodePrefill,forceDialCode:d=Ni.forceDialCode,disableDialCodeAndPrefix:h=Ni.disableDialCodeAndPrefix,disableFormatting:m=Ni.disableFormatting,onChange:g,inputRef:b})=>{let w={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!o,disableFormatting:m},$=A.useRef(null),D=b||$,C=z=>{Promise.resolve().then(()=>{var ee;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((ee=D.current)==null||ee.setSelectionRange(z,z))})},[{phone:E,inputValue:S,country:k},P,F,U]=QZ(()=>{let z=Vl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ee=z||Vl({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:O,country:V}=Hb({value:t,country:ee,insertDialCodeOnEmpty:!l,...w});return C(O.length),{phone:K,inputValue:O,country:V.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:z,phone:ee,country:K})=>{if(!g)return;let O=ie(K);g({phone:ee,inputValue:z,country:O})}}),ie=A.useCallback(z=>Vl({value:z,field:"iso2",countries:n}),[n]),de=A.useMemo(()=>ie(k),[k,ie]);A.useEffect(()=>{let z=D.current;if(!z)return;let ee=K=>{if(!K.key)return;let O=K.ctrlKey,V=K.metaKey,te=K.shiftKey;if(K.key.toLowerCase()==="z"){if(qZ()){if(!V)return}else if(!O)return;te?U():F()}};return z.addEventListener("keydown",ee),()=>{z.removeEventListener("keydown",ee)}},[D,F,U]);let ae=z=>{z.preventDefault();let{phone:ee,inputValue:K,country:O,cursorPosition:V}=YZ(z,{country:de,phoneBeforeInput:S,insertDialCodeOnEmpty:!1,...w});return P({inputValue:K,phone:ee,country:O.iso2}),C(V),t},I=(z,ee={focusOnInput:!1})=>{let K=Vl({value:z,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${z}" iso2 code`);return}let O=h?"":`${r}${K.dialCode}${s}`;P({inputValue:O,phone:`${r}${K.dialCode}`,country:K.iso2}),ee.focusOnInput&&Promise.resolve().then(()=>{var V;(V=D.current)==null||V.focus()})},[xe,Ce]=A.useState(!1);return A.useEffect(()=>{if(!xe){Ce(!0),t!==E&&(g==null||g({inputValue:S,phone:E,country:de}));return}if(t===E)return;let{phone:z,inputValue:ee,country:K}=Hb({value:t,country:de,insertDialCodeOnEmpty:!l,...w});P({phone:z,inputValue:ee,country:K.iso2})},[t]),{phone:E,inputValue:S,country:de,setCountry:I,handlePhoneValueChange:ae,inputRef:D}},eX=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=o=>r?o.replace(new RegExp(`[^${pk}]`,"g"),""):o;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 a=Object.keys(i).find(o=>{if(o==="default")return!1;if(!(o.charAt(0)==="/"&&o.charAt(o.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${o}" for ${t.iso2} is not valid`),!1;let l=new RegExp(o.substring(1,o.length-1)),d=e.replace(t.dialCode,"");return l.test(Jm(d))});return s(a?i[a]:i.default)},$s=e=>{let[t,n,r,i,s,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:a}},tX=e=>`Field "${e}" is not supported`,Vl=({field:e,value:t,countries:n=Yu})=>{if(["priority"].includes(e))throw new Error(tX(e));let r=n.find(i=>{let s=$s(i);return t===s[e]});if(r)return $s(r)},nX=({phone:e,countries:t=Yu,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Jm(e);if(!i)return r;let s=r,a=({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=$s(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 w of m)if(b.startsWith(w))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!s.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let l=Vl({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&&((o=s.country)==null?void 0:o.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},rX=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},iX="abcdefghijklmnopqrstuvwxyz",sX="1f1e6",zD=iX.split("").reduce((e,t,n)=>({...e,[t]:rX(sX,n)}),{}),aX=e=>[zD[e[0]],zD[e[1]]].join("-"),H3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:a,...o})=>{if(!e)return A.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...o});let l=()=>{if(n)return n;let d=aX(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return A.createElement("img",{className:Mr({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,...a},alt:"",...o})},oX=1e3,uX=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Yu,preferredCountries:i=[],flags:s,onSelect:a,onClose:o,...l})=>{let d=A.useRef(null),h=A.useRef(),m=A.useMemo(()=>{if(!i||!i.length)return r;let F=[],U=[...r];for(let ie of i){let de=U.findIndex(ae=>$s(ae).iso2===ie);if(de!==-1){let ae=U.splice(de,1)[0];F.push(ae)}}return F.concat(U)},[r,i]),g=A.useRef({updatedAt:void 0,value:""}),b=F=>{let U=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>oX;g.current={value:U?F:`${g.current.value}${F}`,updatedAt:new Date};let ie=m.findIndex(de=>$s(de).name.toLowerCase().startsWith(g.current.value));ie!==-1&&D(ie)},w=A.useCallback(F=>m.findIndex(U=>$s(U).iso2===F),[m]),[$,D]=A.useState(w(n)),C=()=>{h.current!==n&&D(w(n))},E=A.useCallback(F=>{D(w(F.iso2)),a==null||a(F)},[a,w]),S=F=>{let U=m.length-1,ie=de=>F==="prev"?de-1:F==="next"?de+1:F==="last"?U:0;D(de=>{let ae=ie(de);return ae<0?0:ae>U?U:ae})},k=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let U=$s(m[$]);E(U);return}if(F.key==="Escape"){o==null||o();return}if(F.key==="ArrowUp"){F.preventDefault(),S("prev");return}if(F.key==="ArrowDown"){F.preventDefault(),S("next");return}if(F.key==="PageUp"){F.preventDefault(),S("first");return}if(F.key==="PageDown"){F.preventDefault(),S("last");return}F.key===" "&&F.preventDefault(),F.key.length===1&&!F.altKey&&!F.ctrlKey&&!F.metaKey&&b(F.key.toLocaleLowerCase())},P=A.useCallback(()=>{if(!d.current||$===void 0)return;let F=$s(m[$]).iso2;if(F===h.current)return;let U=d.current.querySelector(`[data-country="${F}"]`);U&&(zZ(d.current,U),h.current=F)},[$,m]);return A.useEffect(()=>{P()},[$,P]),A.useEffect(()=>{d.current&&(e?d.current.focus():C())},[e]),A.useEffect(()=>{C()},[n]),A.createElement("ul",{ref:d,role:"listbox",className:Mr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:k,onBlur:o,tabIndex:-1,"aria-activedescendant":`react-international-phone__${$s(m[$]).iso2}-option`},m.map((F,U)=>{let ie=$s(F),de=ie.iso2===n,ae=U===$,I=i.includes(ie.iso2),xe=U===i.length-1,Ce=s==null?void 0:s.find(z=>z.iso2===ie.iso2);return A.createElement(A.Fragment,{key:ie.iso2},A.createElement("li",{"data-country":ie.iso2,role:"option","aria-selected":de,"aria-label":`${ie.name} ${t}${ie.dialCode}`,id:`react-international-phone__${ie.iso2}-option`,className:Mr({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",de&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName,I&&l.listItemPreferredClassName,de&&l.listItemSelectedClassName,ae&&l.listItemFocusedClassName]}),onClick:()=>E(ie),style:l.listItemStyle,title:ie.name},A.createElement(H3,{iso2:ie.iso2,src:Ce==null?void 0:Ce.src,className:Mr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),A.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},ie.name),A.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,ie.dialCode)),xe?A.createElement("hr",{className:Mr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},lX=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Yu,preferredCountries:s=[],flags:a,renderButtonWrapper:o,...l})=>{let[d,h]=A.useState(!1),m=A.useMemo(()=>{if(e)return Vl({value:e,field:"iso2",countries:i})},[i,e]),g=A.useRef(null),b=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),h(!0))},w=()=>{var C;let $={title:m==null?void 0:m.name,onClick:()=>h(E=>!E),onMouseDown:E=>E.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},D=A.createElement("div",{className:Mr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},A.createElement(H3,{iso2:e,src:(C=a==null?void 0:a.find(E=>E.iso2===e))==null?void 0:C.src,className:Mr({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:Mr({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 o?o({children:D,rootProps:$}):A.createElement("button",{...$,type:"button",className:Mr({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:Mr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},w(),A.createElement(uX,{show:d,countries:i,preferredCountries:s,flags:a,onSelect:$=>{h(!1),t==null||t($)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},cX=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>A.createElement("div",{className:Mr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);A.forwardRef(({value:e,onChange:t,countries:n=Yu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:a,flags:o,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:w,placeholder:$,disabled:D,name:C,onFocus:E,onBlur:S,required:k,autoFocus:P,...F},U)=>{let{phone:ie,inputValue:de,inputRef:ae,country:I,setCountry:xe,handlePhoneValueChange:Ce}=mk({value:e,countries:n,...F,onChange:ee=>{t==null||t(ee.phone,{country:ee.country,inputValue:ee.inputValue})}}),z=F.disableDialCodeAndPrefix&&s&&(I==null?void 0:I.dialCode);return A.useImperativeHandle(U,()=>ae.current?Object.assign(ae.current,{setCountry:xe,state:{phone:ie,inputValue:de,country:I}}):null,[ae,xe,ie,de,I]),A.createElement("div",{ref:U,className:Mr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},A.createElement(lX,{onSelect:ee=>xe(ee.iso2,{focusOnInput:!a}),flags:o,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...g}),z&&A.createElement(cX,{dialCode:I.dialCode,prefix:F.prefix??"+",disabled:D,...b}),A.createElement("input",{onChange:Ce,value:de,type:"tel",ref:ae,className:Mr({addPrefix:["input",D&&"input--disabled"],rawClassNames:[m]}),placeholder:$,disabled:D,style:h,name:C,onFocus:E,onBlur:S,autoFocus:P,required:k,...w}))});var To=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",w="[object Object]",$="[object Promise]",D="[object RegExp]",C="[object Set]",E="[object String]",S="[object Symbol]",k="[object WeakMap]",P="[object ArrayBuffer]",F="[object DataView]",U="[object Float32Array]",ie="[object Float64Array]",de="[object Int8Array]",ae="[object Int16Array]",I="[object Int32Array]",xe="[object Uint8Array]",Ce="[object Uint8ClampedArray]",z="[object Uint16Array]",ee="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,O=/\w*$/,V=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,j={};j[s]=j[a]=j[P]=j[F]=j[o]=j[l]=j[U]=j[ie]=j[de]=j[ae]=j[I]=j[g]=j[b]=j[w]=j[D]=j[C]=j[E]=j[S]=j[xe]=j[Ce]=j[z]=j[ee]=!0,j[d]=j[h]=j[k]=!1;var le=typeof To=="object"&&To&&To.Object===Object&&To,ue=typeof self=="object"&&self&&self.Object===Object&&self,De=le||ue||Function("return this")(),Pe=t&&!t.nodeType&&t,Fe=Pe&&!0&&e&&!e.nodeType&&e,We=Fe&&Fe.exports===Pe;function Xe(se,Re){return se.set(Re[0],Re[1]),se}function Be(se,Re){return se.add(Re),se}function He(se,Re){for(var ze=-1,pt=se?se.length:0;++ze<pt&&Re(se[ze],ze,se)!==!1;);return se}function Me(se,Re){for(var ze=-1,pt=Re.length,bn=se.length;++ze<pt;)se[bn+ze]=Re[ze];return se}function Le(se,Re,ze,pt){for(var bn=-1,sr=se?se.length:0;++bn<sr;)ze=Re(ze,se[bn],bn,se);return ze}function Ae(se,Re){for(var ze=-1,pt=Array(se);++ze<se;)pt[ze]=Re(ze);return pt}function Ge(se,Re){return se==null?void 0:se[Re]}function ht(se){var Re=!1;if(se!=null&&typeof se.toString!="function")try{Re=!!(se+"")}catch{}return Re}function Gt(se){var Re=-1,ze=Array(se.size);return se.forEach(function(pt,bn){ze[++Re]=[bn,pt]}),ze}function $t(se,Re){return function(ze){return se(Re(ze))}}function _t(se){var Re=-1,ze=Array(se.size);return se.forEach(function(pt){ze[++Re]=pt}),ze}var Zr=Array.prototype,en=Function.prototype,ye=Object.prototype,Se=De["__core-js_shared__"],_e=function(){var se=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||"");return se?"Symbol(src)_1."+se:""}(),Je=en.toString,tt=ye.hasOwnProperty,Qe=ye.toString,gt=RegExp("^"+Je.call(tt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=We?De.Buffer:void 0,xt=De.Symbol,yn=De.Uint8Array,Cr=$t(Object.getPrototypeOf,Object),zt=Object.create,Pt=ye.propertyIsEnumerable,It=Zr.splice,qt=Object.getOwnPropertySymbols,gr=Rt?Rt.isBuffer:void 0,Xr=$t(Object.keys,Object),di=gi(De,"DataView"),kr=gi(De,"Map"),Fs=gi(De,"Promise"),Bo=gi(De,"Set"),bt=gi(De,"WeakMap"),hi=gi(Object,"create"),pa=Lr(di),jc=Lr(kr),Qu=Lr(Fs),Kc=Lr(Bo),el=Lr(bt),No=xt?xt.prototype:void 0,tl=No?No.valueOf:void 0;function is(se){var Re=-1,ze=se?se.length:0;for(this.clear();++Re<ze;){var pt=se[Re];this.set(pt[0],pt[1])}}function ss(){this.__data__=hi?hi(null):{}}function yt(se){return this.has(se)&&delete this.__data__[se]}function Dn(se){var Re=this.__data__;if(hi){var ze=Re[se];return ze===r?void 0:ze}return tt.call(Re,se)?Re[se]:void 0}function ma(se){var Re=this.__data__;return hi?Re[se]!==void 0:tt.call(Re,se)}function nl(se,Re){var ze=this.__data__;return ze[se]=hi&&Re===void 0?r:Re,this}is.prototype.clear=ss,is.prototype.delete=yt,is.prototype.get=Dn,is.prototype.has=ma,is.prototype.set=nl;function Er(se){var Re=-1,ze=se?se.length:0;for(this.clear();++Re<ze;){var pt=se[Re];this.set(pt[0],pt[1])}}function rl(){this.__data__=[]}function il(se){var Re=this.__data__,ze=ga(Re,se);if(ze<0)return!1;var pt=Re.length-1;return ze==pt?Re.pop():It.call(Re,ze,1),!0}function Uc(se){var Re=this.__data__,ze=ga(Re,se);return ze<0?void 0:Re[ze][1]}function Jr(se){return ga(this.__data__,se)>-1}function st(se,Re){var ze=this.__data__,pt=ga(ze,se);return pt<0?ze.push([se,Re]):ze[pt][1]=Re,this}Er.prototype.clear=rl,Er.prototype.delete=il,Er.prototype.get=Uc,Er.prototype.has=Jr,Er.prototype.set=st;function dn(se){var Re=-1,ze=se?se.length:0;for(this.clear();++Re<ze;){var pt=se[Re];this.set(pt[0],pt[1])}}function as(){this.__data__={hash:new is,map:new(kr||Er),string:new is}}function pi(se){return Pi(this,se).delete(se)}function Jn(se){return Pi(this,se).get(se)}function jo(se){return Pi(this,se).has(se)}function Rs(se,Re){return Pi(this,se).set(se,Re),this}dn.prototype.clear=as,dn.prototype.delete=pi,dn.prototype.get=Jn,dn.prototype.has=jo,dn.prototype.set=Rs;function mi(se){this.__data__=new Er(se)}function Ln(){this.__data__=new Er}function ro(se){return this.__data__.delete(se)}function Kt(se){return this.__data__.get(se)}function zc(se){return this.__data__.has(se)}function sl(se,Re){var ze=this.__data__;if(ze instanceof Er){var pt=ze.__data__;if(!kr||pt.length<n-1)return pt.push([se,Re]),this;ze=this.__data__=new dn(pt)}return ze.set(se,Re),this}mi.prototype.clear=Ln,mi.prototype.delete=ro,mi.prototype.get=Kt,mi.prototype.has=zc,mi.prototype.set=sl;function qc(se,Re){var ze=xa(se)||Is(se)?Ae(se.length,String):[],pt=ze.length,bn=!!pt;for(var sr in se)tt.call(se,sr)&&!(bn&&(sr=="length"||Ho(sr,pt)))&&ze.push(sr);return ze}function Ko(se,Re,ze){var pt=se[Re];(!(tt.call(se,Re)&&Os(pt,ze))||ze===void 0&&!(Re in se))&&(se[Re]=ze)}function ga(se,Re){for(var ze=se.length;ze--;)if(Os(se[ze][0],Re))return ze;return-1}function al(se,Re){return se&&yr(Re,Ea(Re),se)}function Uo(se,Re,ze,pt,bn,sr,ur){var Kn;if(pt&&(Kn=sr?pt(se,bn,sr,ur):pt(se)),Kn!==void 0)return Kn;if(!Ca(se))return se;var An=xa(se);if(An){if(Kn=Wo(se),!Re)return io(se,Kn)}else{var Mi=_i(se),Fi=Mi==h||Mi==m;if(so(se))return qo(se,Re);if(Mi==w||Mi==s||Fi&&!sr){if(ht(se))return sr?se:{};if(Kn=cl(Fi?{}:se),!Re)return ya(se,al(Kn,se))}else{if(!j[Mi])return sr?se:{};Kn=pn(se,Mi,Uo,Re)}}ur||(ur=new mi);var Zo=ur.get(se);if(Zo)return Zo;if(ur.set(se,Kn),!An)var ao=ze?ba(se):Ea(se);return He(ao||se,function(lr,Sa){ao&&(Sa=lr,lr=se[Sa]),Ko(Kn,Sa,Uo(lr,Re,ze,pt,Sa,se,ur))}),Kn}function Wc(se){return Ca(se)?zt(se):{}}function Hc(se,Re,ze){var pt=Re(se);return xa(se)?pt:Me(pt,ze(se))}function Gc(se){return Qe.call(se)}function ol(se){if(!Ca(se)||Go(se))return!1;var Re=dl(se)||ht(se)?gt:V;return Re.test(Lr(se))}function zo(se){if(!fl(se))return Xr(se);var Re=[];for(var ze in Object(se))tt.call(se,ze)&&ze!="constructor"&&Re.push(ze);return Re}function qo(se,Re){if(Re)return se.slice();var ze=new se.constructor(se.length);return se.copy(ze),ze}function va(se){var Re=new se.constructor(se.byteLength);return new yn(Re).set(new yn(se)),Re}function ul(se,Re){var ze=Re?va(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.byteLength)}function ll(se,Re,ze){var pt=Re?ze(Gt(se),!0):Gt(se);return Le(pt,Xe,new se.constructor)}function Or(se){var Re=new se.constructor(se.source,O.exec(se));return Re.lastIndex=se.lastIndex,Re}function vr(se,Re,ze){var pt=Re?ze(_t(se),!0):_t(se);return Le(pt,Be,new se.constructor)}function Ir(se){return tl?Object(tl.call(se)):{}}function ks(se,Re){var ze=Re?va(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.length)}function io(se,Re){var ze=-1,pt=se.length;for(Re||(Re=Array(pt));++ze<pt;)Re[ze]=se[ze];return Re}function yr(se,Re,ze,pt){ze||(ze={});for(var bn=-1,sr=Re.length;++bn<sr;){var ur=Re[bn],Kn=void 0;Ko(ze,ur,Kn===void 0?se[ur]:Kn)}return ze}function ya(se,Re){return yr(se,or(se),Re)}function ba(se){return Hc(se,Ea,or)}function Pi(se,Re){var ze=se.__data__;return $a(Re)?ze[typeof Re=="string"?"string":"hash"]:ze.map}function gi(se,Re){var ze=Ge(se,Re);return ol(ze)?ze:void 0}var or=qt?$t(qt,Object):Yt,_i=Gc;(di&&_i(new di(new ArrayBuffer(1)))!=F||kr&&_i(new kr)!=g||Fs&&_i(Fs.resolve())!=$||Bo&&_i(new Bo)!=C||bt&&_i(new bt)!=k)&&(_i=function(se){var Re=Qe.call(se),ze=Re==w?se.constructor:void 0,pt=ze?Lr(ze):void 0;if(pt)switch(pt){case pa:return F;case jc:return g;case Qu:return $;case Kc:return C;case el:return k}return Re});function Wo(se){var Re=se.length,ze=se.constructor(Re);return Re&&typeof se[0]=="string"&&tt.call(se,"index")&&(ze.index=se.index,ze.input=se.input),ze}function cl(se){return typeof se.constructor=="function"&&!fl(se)?Wc(Cr(se)):{}}function pn(se,Re,ze,pt){var bn=se.constructor;switch(Re){case P:return va(se);case o:case l:return new bn(+se);case F:return ul(se,pt);case U:case ie:case de:case ae:case I:case xe:case Ce:case z:case ee:return ks(se,pt);case g:return ll(se,pt,ze);case b:case E:return new bn(se);case D:return Or(se);case C:return vr(se,pt,ze);case S:return Ir(se)}}function Ho(se,Re){return Re=Re??i,!!Re&&(typeof se=="number"||te.test(se))&&se>-1&&se%1==0&&se<Re}function $a(se){var Re=typeof se;return Re=="string"||Re=="number"||Re=="symbol"||Re=="boolean"?se!=="__proto__":se===null}function Go(se){return!!_e&&_e in se}function fl(se){var Re=se&&se.constructor,ze=typeof Re=="function"&&Re.prototype||ye;return se===ze}function Lr(se){if(se!=null){try{return Je.call(se)}catch{}try{return se+""}catch{}}return""}function Yo(se){return Uo(se,!0,!0)}function Os(se,Re){return se===Re||se!==se&&Re!==Re}function Is(se){return wa(se)&&tt.call(se,"callee")&&(!Pt.call(se,"callee")||Qe.call(se)==s)}var xa=Array.isArray;function os(se){return se!=null&&Yc(se.length)&&!dl(se)}function wa(se){return Zc(se)&&os(se)}var so=gr||tn;function dl(se){var Re=Ca(se)?Qe.call(se):"";return Re==h||Re==m}function Yc(se){return typeof se=="number"&&se>-1&&se%1==0&&se<=i}function Ca(se){var Re=typeof se;return!!se&&(Re=="object"||Re=="function")}function Zc(se){return!!se&&typeof se=="object"}function Ea(se){return os(se)?qc(se):zo(se)}function Yt(){return[]}function tn(){return!1}e.exports=Yo})(Gb,Gb.exports);var Po=Gb.exports,Yb=function(){return Yb=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},Yb.apply(this,arguments)};function fX(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(h){try{d(r.next(h))}catch(m){a(m)}}function l(h){try{d(r.throw(h))}catch(m){a(m)}}function d(h){h.done?s(h.value):i(h.value).then(o,l)}d((r=r.apply(e,[])).next())})}function dX(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=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 em(e,t,n,r,i){return fX(this,void 0,void 0,function(){var s,a;return dX(this,function(o){switch(o.label){case 0:if(n===void 0)return[2];a=0,o.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(s=o.sent(),s==="canceled")return[3,4];o.label=3;case 3:return a++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Zb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Yb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},hX=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=Po(n);em(t,a,r,this.htmlPluginState,i).then(function(o){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Zb(i,o);s.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=Po(t);em(this.imgElement,s,n,this.htmlPluginState).then(function(a){if(i.isMounted){var o=Zb(r,a);i.imgElement.setAttribute("src",s.toURL(o))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let In=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}},pX=class extends Error{constructor(t="Unsupported"){super(t)}};function G3(e){return new pX(e)}function mX(){return this._qualifierModel||{error:G3(`unsupported qualifier ${this.constructor.name}`)}}let gX=class{constructor(){this._qualifierModel={}}toJson(){return mX.apply(this)}},Ot=class extends gX{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof In?this.qualifierValue=n:(this.qualifierValue=new In,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}},Qi=class extends Ot{constructor(t,n){let r;n?r=new In([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function vX(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function yX(){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 bX=class{constructor(){this._actionModel={}}toJson(){return yX.apply(this)}},Ps=class extends bX{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(),vX(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 Qi(r)):this.qualifiers.set(n,new Ot(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Qi(t)):t instanceof Qi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Y3 extends Ps{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Qm extends Y3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ot("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ot("h",t)),this}static fromJson(t){const n=new Qm;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 $X(){return new Qm}function gk(){return new Y3("faces")}function xX(){return new Y3("ocr_text")}class wX extends Ps{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 Ot("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`blur_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`blur_faces${t}`))):this.addQualifier(new Ot("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(gk()),r&&r.regionType==="ocr_text"&&i.region(xX()),r&&r.regionType==="custom"&&i.region(Qm.fromJson(r)),i}}function Zu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const vk={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},CX={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},yk={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},bk={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},EX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},$k={444:"CHROMA_444",420:"CHROMA_420"},SX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},DX=Zu($k);Zu(SX);const AX=Zu(vk),TX=Zu(CX),xk=Zu(yk);Zu(bk);Zu(EX);class wk extends Ps{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=xk[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new In([t,`${n}`]).setDelimiter(":"):r=new In(t),new Ot("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=yk[n]||n;return new this(s,r||i)}}class PX extends wk{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=xk[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 eg(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class _X extends Ps{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 In(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new In(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new In(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new In(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new In(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ot("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:a,numOfColors:o}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),a&&l.detailsLevel(a),o&&l.numOfColors(o),l}}class MX extends PX{level(t){return this._actionModel.level=t,this.setLevel(t)}}class FX extends Ps{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ot("e",new In("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ot("e",new In(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ot("e",new In(["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 RX extends MX{color(t){return this._actionModel.color=t,this.addQualifier(new Ot("co",new In(eg(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class kX extends Ps{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 Ot("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ot("e",`pixelate_region${t}`)),this.addQualifier(new Ot("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ot("e",`pixelate_faces${t}`))):this.addQualifier(new Ot("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(gk()),n&&n.regionType==="custom"&&i.region($X()),i}}const OX=e=>NX(encodeURIComponent,VX,BX)(e),IX=/[!'()*~_.-]/g,LX={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},VX=e=>e.replace(IX,t=>{var n;return(n=LX[t])!==null&&n!==void 0?n:t}),BX=e=>e.replace(/%20/g," "),NX=(...e)=>t=>e.reduce((n,r)=>r(n),t);function jX(e){return new wX(e)}function KX(){return new wk("grayscale")}function qD(e){return new RX("colorize",e)}function UX(){return new _X}function zX(){return new FX}function qX(e){return new kX(e)}let WX=class extends Ps{constructor(t){super(),this._actionModel={},this.addQualifier(new Ot("b",new In(eg(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},WD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:G3(`unsupported action ${this.constructor.name}`)}}};function HX(e){const t=e;return"error"in t&&!!t.error}function GX(){return new Qi("ignore_aspect_ratio")}function YX(){return new Qi("lossy")}function ZX(){return new Qi("preserve_transparency")}function XX(e){return new Qi("progressive",e)}function JX(){return new Qi("region_relative")}function QX(){return new Qi("relative")}let Z3=class extends In{constructor(t){super(t),this.val=t}getValue(){return this.val}},Ck=class extends Ps{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Z3?i=n.getValue():i=n,this._actionModel.actionType=TX[t],this._actionModel[r]=i,this.addQualifier(new Ot(t,n))}},eJ=class extends Qi{constructor(t){super("progressive",t)}},Xb=class extends Ck{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(YX()),this}progressive(t){return t instanceof eJ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(XX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(ZX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}},tg=class Ek{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 WD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Ek?this.actions=this.actions.concat(t.actions):this.actions.push(new WD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Xb("q",t)),this}format(t){return this.addAction(new Xb("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new WX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ps;let r=t;return typeof t=="string"&&(r=new Qi(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(HX(r))return r;t.push(r)}return{actions:t}}};function HD(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 tJ extends In{}class nJ extends Ps{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=AX[t]||t,this.addQualifier(new Ot("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ot("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ot("w",t))}aspectRatio(t){if(t instanceof tJ)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ot("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=HD(t),this.addQualifier(new Ot("ar",HD(t)));if(t instanceof Qi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(QX())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(JX())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:a,width:o,height:l}=r,d=vk[n]||n,h=new this(d,o,l);return a&&h.aspectRatio(a==="ignore_aspect_ratio"?GX():a),i&&h.relative(),s&&h.regionRelative(),h}}class X3 extends Ot{constructor(t){super("g",new In(t))}}class Sk extends X3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class Dk extends X3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Ak extends X3{constructor(t){super(t)}}function rJ(e){return new Ak(e)}function Tk(...e){const t=[...e];return new Dk(t)}function Pk(){return new Sk}class pc extends In{constructor(t){super(),this.name=t}toString(){return this.name}}function iJ(){return new pc("ocr_text")}function sJ(e){return e&&`${e}`.split(":")[0]==="auto"}function aJ(e){const t=J3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function J3(e){return`${e}`.replace("g_","")}function oJ(e){return{compass:J3(e),gravityType:"direction"}}function uJ(e){return J3(e)==="ocr_text"}function lJ(){return{gravityType:"ocr"}}function cJ(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function fJ(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 _k(e){let t;const n=e==="auto"?new Sk: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(fJ)}}function dJ(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),a=Pk().autoFocus(...s);i.fallbackGravity=_k(a)}return i}function hJ(e){const n=e.split(":").map(r=>new pc(r));return new Dk(n)}function pJ(e){return aJ(e)?oJ(e):uJ(e)?lJ():sJ(e)||cJ(e)?_k(e):dJ(typeof e=="string"?hJ(e):e)}class Q3 extends In{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof pc?t:new pc(t);return new Q3(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 Mk extends In{constructor(t){super(),this.val=t}toString(){return this.val}}function mJ(e){return e.gravityType==="direction"}function gJ(e){return e.gravityType==="ocr"}function vJ(e){return e.gravityType==="auto"}function yJ(e){const{object:t,weight:n,avoid:r}=e,i=new Q3(new pc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function Fk(e){const n=(e.autoFocus||[]).map(yJ);return Pk().autoFocus(...n)}function bJ(e){const t=(e.focusOnObjects||[]).map(r=>new pc(r)),n=Tk(...t);if(e.fallbackGravity){const r=Fk(e.fallbackGravity);n.fallbackGravity(r)}return n}function $J(e){return mJ(e)?new Ak(new Mk(e.compass)):gJ(e)?Tk(iJ()):vJ(e)?Fk(e):bJ(e)}class e$ extends nJ{gravity(t){this._actionModel.gravity=pJ(t);const n=typeof t=="string"?new Ot("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity($J(t.gravity)),n}}class Bd extends Ot{constructor(t){super("b"),t&&this.addValue(t)}}const Rk=100,xJ=0;class wJ extends Bd{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}`:`:${Rk}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var kk=wJ;class t$ extends Bd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>eg(n)),this}}class Ok extends t${toString(){return`
|
|
93
|
+
b_auto:border
|
|
94
|
+
${this._contrast?"_contrast":""}
|
|
95
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
96
|
+
`.replace(/\s+/g,"")}}class Ik extends t${gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Lk extends Ik{toString(){return`
|
|
97
|
+
b_auto:border_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 Vk extends Ik{toString(){return`
|
|
103
|
+
b_auto:predominant_gradient
|
|
104
|
+
${this._contrast?"_contrast":""}
|
|
105
|
+
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
106
|
+
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
107
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
108
|
+
`.replace(/\s+/g,"")}}class Bk extends t${toString(){return`
|
|
109
|
+
b_auto:predominant
|
|
110
|
+
${this._contrast?"_contrast":""}
|
|
111
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
112
|
+
`.replace(/\s+/g,"")}}class Nk extends Bd{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_${OX(this._prompt)}`:""}`}}function jk(e){return`${e}`.replace("b_","")}function CJ(){return{backgroundType:"auto"}}function EJ(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 n$(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function SJ(e){return Object.assign(Object.assign({},n$(e)),{backgroundType:"border"})}function Kk(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=n$(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function DJ(e){return Object.assign(Object.assign({},Kk(e)),{backgroundType:"borderGradient"})}function AJ(e){return{backgroundType:"color",color:jk(e)}}function TJ(e){return Object.assign(Object.assign({},n$(e)),{backgroundType:"predominant"})}function PJ(e){return Object.assign(Object.assign({},Kk(e)),{backgroundType:"predominantGradient"})}function _J(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function MJ(e){return jk(e)==="auto"?CJ():e instanceof kk?EJ(e):e instanceof Ok?SJ(e):e instanceof Lk?DJ(e):e instanceof Bk?TJ(e):e instanceof Vk?PJ(e):e instanceof Nk?_J(e):AJ(e)}function FJ(){return new Z3("svg")}function r$(){return new Z3("auto")}function Uk(){return new Ok}function zk(){return new Bd("auto")}function qk(){return new Lk}function Wk(){return new Vk}function Hk(){return new Bk}function Gk(e){return new Bd(eg(e))}function RJ(){return new kk}function Yk(){return new Nk}const Zk={auto:zk,border:Uk,borderGradient:qk,predominantGradient:Wk,predominant:Hk,color:Gk,blurred:RJ,generativeFill:Yk};function kJ(e){const{brightness:t,intensity:n}=e,r=Zk.blurred();return r.brightness(t??xJ),r.intensity(n??Rk),r}function GD(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 YD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function OJ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function IJ(e){const{backgroundType:t}=e;switch(t){case"auto":return zk();case"blurred":return kJ(e);case"border":return YD(Uk(),e);case"borderGradient":return GD(qk(),e);case"predominant":return YD(Hk(),e);case"predominantGradient":return GD(Wk(),e);case"generativeFill":return OJ(Yk(),e);default:return Gk(e.color)}}class LJ extends e${background(t){return this._actionModel.background=MJ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(IJ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class VJ extends e${x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ot("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 BJ extends e${x(t){return this._actionModel.x=t,this.addQualifier(new Ot("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ot("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 NJ(e,t){return new VJ("crop",e,t)}function jJ(e,t){return new BJ("fill",e,t)}function KJ(e,t){return new LJ("pad",e,t)}class UJ extends Ck{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=$k[t];const n=new In([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ot("q",n))}quantization(t){this._actionModel.quantization=t;const n=new In([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ot("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=bk[n]||n,a=new this(s);if(r){const o=DX[r.toUpperCase()];o&&a.chromaSubSampling(+o)}return i&&a.quantization(i),a}}function ng(e){return new Xb("f",e)}function rg(e){return new UJ(e)}function zJ(){return new Mk("north_east")}qD(70).color("black"),qD(40).color("white"),KX(),zX();var qJ=new tg().effect(UX()).delivery(rg("auto")).delivery(ng(FJ())),WJ=new tg().effect(qX()).delivery(rg("auto")).delivery(ng(r$())),HJ=new tg().effect(jX(2e3)).delivery(rg("auto")).delivery(ng(r$())),GJ=new tg().resize(KJ("iw_div_2").aspectRatio(1).background(Zk.auto())).resize(NJ(1,1).gravity(rJ(zJ()))).resize(jJ().height("ih").width("iw")).delivery(rg("auto")).delivery(ng(r$())),ZD={vectorize:qJ,pixelate:WJ,blur:HJ,"predominant-color":GJ},XD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",JD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},QD="?_a=",YJ=function(){function e(t,n,r,i,s,a,o){var l=this;this.mimeType="video",this.mimeSubTypes=JD,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Po(n);em(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,a),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(Po(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,a=i.codecs,o=i.transcode;return r.appendSourceTag(Po(t).transcode(o),s,r.buildMimeType(s,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var o=t.toURL(),l=o.split(QD),d=l[1]?"".concat(QD).concat(l[1]):"",h=a?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(JD[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=Po(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,a=Object.entries(t);s<a.length;s++){var o=a[s],l=o[0],d=o[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var a=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);em(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,s),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),ZJ=typeof To=="object"&&To&&To.Object===Object&&To,XJ=typeof self=="object"&&self&&self.Object===Object&&self;ZJ||XJ||Function("return this")();function i$(){return typeof window<"u"}function JJ(e){return e instanceof HTMLImageElement}function QJ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return eQ.bind(null,r,s)}function eQ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),i$()?new Promise(function(a){var o=function(){return a({lazyload:!0})},l=nQ(n,o,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function tQ(){return window&&"IntersectionObserver"in window}function nQ(e,t,n,r){try{if(!tQ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function rQ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return iQ.bind(null,r)}function iQ(e,t,n,r,i,s){ZD[e]||(e="vectorize");var a=ZD[e].actions,o=Po(n);if(a.forEach(function(d){o.addAction(d)}),!i$())return n.transformation=o.transformation,!0;if(JJ(t)){o.transformation.actions.forEach(function(d,h){d instanceof Ps&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var l=Zb(i,{placeholder:!0});return t.src=o.toURL(l),t.onerror=function(){t.src=XD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=XD,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function sQ(e,t,n){var r=Po(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 tm(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
113
|
+
Copyright (c) Microsoft Corporation.
|
|
114
|
+
|
|
115
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
116
|
+
purpose with or without fee is hereby granted.
|
|
117
|
+
|
|
118
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
119
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
120
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
121
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
122
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
123
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
124
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
125
|
+
***************************************************************************** */var Jb=function(e,t){return Jb=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])},Jb(e,t)};function Xk(e,t){Jb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var cd=function(){return cd=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},cd.apply(this,arguments)};function Jk(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 R0={sdkSemver:"1.14.3",techVersion:A.version,sdkCode:"J"},aQ=function(e){Xk(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 hX(this.imageRef.current,this.props.cldImg,this.props.plugins,R0)},t.prototype.componentDidUpdate=function(){tm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,R0)},t.prototype.componentWillUnmount=function(){tm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=Jk(n,["cldImg","plugins"]);if(i$())return A.createElement("img",cd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=sQ(this.props.plugins,this.props.cldImg,R0);return A.createElement("img",cd({},r,{src:i}))},t}(A.Component),oQ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){Xk(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 YJ(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(){tm(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){tm(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return oQ.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=Jk(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return A.createElement("video",cd({},r,{ref:this.attachRef}))},t})(A.Component);function uQ(e){return!(typeof e!="object"||e instanceof Array)}class lQ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return uQ(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 eA=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class s$ extends lQ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,eA);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,eA);return new s$(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 fd{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 cQ extends Error{constructor(t="Unsupported"){super(t)}}function a$(e){return new cQ(e)}function fQ(){return this._qualifierModel||{error:a$(`unsupported qualifier ${this.constructor.name}`)}}class dQ{constructor(){this._qualifierModel={}}toJson(){return fQ.apply(this)}}class ig extends dQ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof fd?this.qualifierValue=n:(this.qualifierValue=new fd,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 _o extends ig{constructor(t,n){let r;n?r=new fd([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function hQ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function pQ(){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:a$(`unsupported action ${this.constructor.name}`)}}class mQ{constructor(){this._actionModel={}}toJson(){return pQ.apply(this)}}class o$ extends mQ{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(),hQ(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 _o(r)):this.qualifiers.set(n,new ig(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new _o(t)):t instanceof _o&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function gQ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class vQ extends o${constructor(t){super(),this._actionModel={},this.addQualifier(new ig("b",new fd(gQ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class tA{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:a$(`unsupported action ${this.constructor.name}`)}}}function yQ(e){const t=e;return"error"in t&&!!t.error}function bQ(){return new _o("lossy")}function $Q(){return new _o("preserve_transparency")}function xQ(e){return new _o("progressive",e)}class wQ extends fd{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Xu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const CQ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},EQ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},SQ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},DQ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},AQ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},TQ={444:"CHROMA_444",420:"CHROMA_420"},PQ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Xu(TQ);Xu(PQ);Xu(CQ);const _Q=Xu(EQ);Xu(SQ);Xu(DQ);Xu(AQ);class MQ extends o${constructor(t,n,r){super(),this._actionModel={};let i;n instanceof wQ?i=n.getValue():i=n,this._actionModel.actionType=_Q[t],this._actionModel[r]=i,this.addQualifier(new ig(t,n))}}class FQ extends _o{constructor(t){super("progressive",t)}}class nm extends MQ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(bQ()),this}progressive(t){return t instanceof FQ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(xQ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag($Q()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),s&&a.preserveTransparency(),a}}class sg{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 tA(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof sg?this.actions=this.actions.concat(t.actions):this.actions.push(new tA(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 nm("q",t)),this}format(t){return this.addAction(new nm("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 vQ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new o$;let r=t;return typeof t=="string"&&(r=new _o(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(yQ(r))return r;t.push(r)}return{actions:t}}}class RQ extends sg{}class kQ extends sg{}function OQ(e){return e.match(/^https?:\//)}function IQ(e){return e.indexOf("/")<0}function LQ(e){return e.match(/^v[0-9]+/)}function VQ(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 BQ(e){return e||"image"}function NQ(e){return e||"upload"}function jQ(e,t,n){const r=n!==!1;return t?`v${t}`:LQ(e)||OQ(e)||IQ(e)?"":r?"v1":""}function u$(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=KQ(i,r/i.length)),i.slice(0,r)+String(e))}function KQ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const UQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rm={};let nA=0;UQ.split("").forEach(e=>{let t=nA.toString(2);t=u$(t,6,"0"),rm[t]=e,nA++});function zQ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function qQ(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 u$(t,2,"0")}).join(".")}function rA(e){let t="";const r=e.split(".").length*6,i=zQ(e),s=qQ(i);let o=parseInt(s.split(".").join("")).toString(2);if(o=u$(o,r,"0"),o.length%6!==0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach(l=>{t+=rm[l]}),t}function WQ(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 HQ="1.21.0";function GQ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),a=i.padStart(6,"0");return rm[s]+rm[a]}function YQ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function ZQ(e){const t={techVersion:YQ(),sdkCode:"T",sdkSemver:HQ.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 iA(e){const t=ZQ(e),n=WQ(t);try{const r=XQ(n.techVersion),i=rA(n.sdkSemver),s=rA(r),a=GQ(n.osVersion),o=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${a}${o}`}catch{return"E"}}function XQ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const sA={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class JQ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new s$(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=BQ(this.assetType),n=NQ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=sA[`${t}/${n}`],a=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(sA).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=VQ(this.cloudName,this.urlConfig),i=t?t.toString():"",s=jQ(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,a.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const o=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",iA(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=${iA(n)}`);return d?`${o}?${d}`:o}}}class Qk extends JQ{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 nm("q",t)),this}format(t){return this.addAction(new nm("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 QQ extends Qk{constructor(t,n,r){super(t,n,r,new RQ)}}class eee extends Qk{constructor(t,n,r){super(t,n,r,new kQ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class tee{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new QQ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new eee(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var k0,aA;function nee(){if(aA)return k0;aA=1;var e=ok(),t=W3(),n=1,r=2;function i(s,a,o,l){var d=o.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=o[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=o[d];var b=g[0],w=s[b],$=g[1];if(m&&g[2]){if(w===void 0&&!(b in s))return!1}else{var D=new e;if(l)var C=l(w,$,b,s,a,D);if(!(C===void 0?t($,w,n|r,l,D):C))return!1}}return!0}return k0=i,k0}var O0,oA;function e7(){if(oA)return O0;oA=1;var e=Sc();function t(n){return n===n&&!e(n)}return O0=t,O0}var I0,uA;function ree(){if(uA)return I0;uA=1;var e=e7(),t=q3();function n(r){for(var i=t(r),s=i.length;s--;){var a=i[s],o=r[a];i[s]=[a,o,e(o)]}return i}return I0=n,I0}var L0,lA;function t7(){if(lA)return L0;lA=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return L0=e,L0}var V0,cA;function iee(){if(cA)return V0;cA=1;var e=nee(),t=ree(),n=t7();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return V0=r,V0}var B0,fA;function l$(){if(fA)return B0;fA=1;var e=Ec(),t=Ac(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return B0=r,B0}var N0,dA;function c$(){if(dA)return N0;dA=1;var e=ha(),t=l$(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||a!=null&&s in Object(a)}return N0=i,N0}var j0,hA;function see(){if(hA)return j0;hA=1;var e=B3(),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 a=arguments,o=i?i.apply(this,a):a[0],l=s.cache;if(l.has(o))return l.get(o);var d=r.apply(this,a);return s.cache=l.set(o,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,j0=n,j0}var K0,pA;function aee(){if(pA)return K0;pA=1;var e=see(),t=500;function n(r){var i=e(r,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return K0=n,K0}var U0,mA;function oee(){if(mA)return U0;mA=1;var e=aee(),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(a,o,l,d){s.push(l?d.replace(n,"$1"):o||a)}),s});return U0=r,U0}var z0,gA;function uee(){if(gA)return z0;gA=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 z0=e,z0}var q0,vA;function lee(){if(vA)return q0;vA=1;var e=Ym(),t=uee(),n=ha(),r=l$(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(n(o))return t(o,a)+"";if(r(o))return s?s.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return q0=a,q0}var W0,yA;function cee(){if(yA)return W0;yA=1;var e=lee();function t(n){return n==null?"":e(n)}return W0=t,W0}var H0,bA;function n7(){if(bA)return H0;bA=1;var e=ha(),t=c$(),n=oee(),r=cee();function i(s,a){return e(s)?s:t(s,a)?[s]:n(r(s))}return H0=i,H0}var G0,$A;function ag(){if($A)return G0;$A=1;var e=l$();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return G0=t,G0}var Y0,xA;function r7(){if(xA)return Y0;xA=1;var e=n7(),t=ag();function n(r,i){i=e(i,r);for(var s=0,a=i.length;r!=null&&s<a;)r=r[t(i[s++])];return s&&s==a?r:void 0}return Y0=n,Y0}var Z0,wA;function fee(){if(wA)return Z0;wA=1;var e=r7();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return Z0=t,Z0}var X0,CA;function dee(){if(CA)return X0;CA=1;function e(t,n){return t!=null&&n in Object(t)}return X0=e,X0}var J0,EA;function hee(){if(EA)return J0;EA=1;var e=n7(),t=ck(),n=ha(),r=j3(),i=K3(),s=ag();function a(o,l,d){l=e(l,o);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=o!=null&&d(o,b)))break;o=o[b]}return g||++h!=m?g:(m=o==null?0:o.length,!!m&&i(m)&&r(b,m)&&(n(o)||t(o)))}return J0=a,J0}var Q0,SA;function pee(){if(SA)return Q0;SA=1;var e=dee(),t=hee();function n(r,i){return r!=null&&t(r,i,e)}return Q0=n,Q0}var e1,DA;function mee(){if(DA)return e1;DA=1;var e=W3(),t=fee(),n=pee(),r=c$(),i=e7(),s=t7(),a=ag(),o=1,l=2;function d(h,m){return r(h)&&i(m)?s(a(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,o|l)}}return e1=d,e1}var t1,AA;function gee(){if(AA)return t1;AA=1;function e(t){return t}return t1=e,t1}var n1,TA;function vee(){if(TA)return n1;TA=1;function e(t){return function(n){return n==null?void 0:n[t]}}return n1=e,n1}var r1,PA;function yee(){if(PA)return r1;PA=1;var e=r7();function t(n){return function(r){return e(r,n)}}return r1=t,r1}var i1,_A;function bee(){if(_A)return i1;_A=1;var e=vee(),t=yee(),n=c$(),r=ag();function i(s){return n(s)?e(r(s)):t(s)}return i1=i,i1}var s1,MA;function i7(){if(MA)return s1;MA=1;var e=iee(),t=mee(),n=gee(),r=ha(),i=bee();function s(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return s1=s,s1}var a1,FA;function $ee(){if(FA)return a1;FA=1;function e(t){return function(n,r,i){for(var s=-1,a=Object(n),o=i(n),l=o.length;l--;){var d=o[t?l:++s];if(r(a[d],d,a)===!1)break}return n}}return a1=e,a1}var o1,RA;function xee(){if(RA)return o1;RA=1;var e=$ee(),t=e();return o1=t,o1}var u1,kA;function s7(){if(kA)return u1;kA=1;var e=xee(),t=q3();function n(r,i){return r&&e(r,i,t)}return u1=n,u1}var l1,OA;function wee(){if(OA)return l1;OA=1;var e=z3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var a=i.length,o=r?a:-1,l=Object(i);(r?o--:++o<a)&&s(l[o],o,l)!==!1;);return i}}return l1=t,l1}var c1,IA;function Cee(){if(IA)return c1;IA=1;var e=s7(),t=wee(),n=t(e);return c1=n,c1}var f1,LA;function Eee(){if(LA)return f1;LA=1;var e=Cee();function t(n,r){var i;return e(n,function(s,a,o){return i=r(s,a,o),!i}),!!i}return f1=t,f1}var d1,VA;function See(){if(VA)return d1;VA=1;var e=I3(),t=z3(),n=j3(),r=Sc();function i(s,a,o){if(!r(o))return!1;var l=typeof a;return(l=="number"?t(o)&&n(a,o.length):l=="string"&&a in o)?e(o[a],s):!1}return d1=i,d1}var h1,BA;function Dee(){if(BA)return h1;BA=1;var e=uk(),t=i7(),n=Eee(),r=ha(),i=See();function s(a,o,l){var d=r(a)?e:n;return l&&i(a,o,l)&&(o=void 0),d(a,t(o,3))}return h1=s,h1}var Aee=Dee();const Tee=fi(Aee);var p1={exports:{}},NA;function Pee(){return NA||(NA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
126
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
127
|
+
*
|
|
128
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
129
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
130
|
+
* @namespace
|
|
131
|
+
* @public
|
|
132
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(S){return S instanceof l?new l(S.type,E(S.content),S.alias):Array.isArray(S)?S.map(E):S.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++s}),E.__id},clone:function E(S,k){k=k||{};var P,F;switch(o.util.type(S)){case"Object":if(F=o.util.objId(S),k[F])return k[F];P={},k[F]=P;for(var U in S)S.hasOwnProperty(U)&&(P[U]=E(S[U],k));return P;case"Array":return F=o.util.objId(S),k[F]?k[F]:(P=[],k[F]=P,S.forEach(function(ie,de){P[de]=E(ie,k)}),P);default:return S}},getLanguage:function(E){for(;E;){var S=i.exec(E.className);if(S)return S[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,S){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(P){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(P.stack)||[])[1];if(E){var S=document.getElementsByTagName("script");for(var k in S)if(S[k].src==E)return S[k]}return null}},isActive:function(E,S,k){for(var P="no-"+S;E;){var F=E.classList;if(F.contains(S))return!0;if(F.contains(P))return!1;E=E.parentElement}return!!k}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(E,S){var k=o.util.clone(o.languages[E]);for(var P in S)k[P]=S[P];return k},insertBefore:function(E,S,k,P){P=P||o.languages;var F=P[E],U={};for(var ie in F)if(F.hasOwnProperty(ie)){if(ie==S)for(var de in k)k.hasOwnProperty(de)&&(U[de]=k[de]);k.hasOwnProperty(ie)||(U[ie]=F[ie])}var ae=P[E];return P[E]=U,o.languages.DFS(o.languages,function(I,xe){xe===ae&&I!=E&&(this[I]=U)}),U},DFS:function E(S,k,P,F){F=F||{};var U=o.util.objId;for(var ie in S)if(S.hasOwnProperty(ie)){k.call(S,ie,S[ie],P||ie);var de=S[ie],ae=o.util.type(de);ae==="Object"&&!F[U(de)]?(F[U(de)]=!0,E(de,k,null,F)):ae==="Array"&&!F[U(de)]&&(F[U(de)]=!0,E(de,k,ie,F))}}},plugins:{},highlightAll:function(E,S){o.highlightAllUnder(document,E,S)},highlightAllUnder:function(E,S,k){var P={callback:k,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",P),P.elements=Array.prototype.slice.apply(P.container.querySelectorAll(P.selector)),o.hooks.run("before-all-elements-highlight",P);for(var F=0,U;U=P.elements[F++];)o.highlightElement(U,S===!0,P.callback)},highlightElement:function(E,S,k){var P=o.util.getLanguage(E),F=o.languages[P];o.util.setLanguage(E,P);var U=E.parentElement;U&&U.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(U,P);var ie=E.textContent,de={element:E,language:P,grammar:F,code:ie};function ae(xe){de.highlightedCode=xe,o.hooks.run("before-insert",de),de.element.innerHTML=de.highlightedCode,o.hooks.run("after-highlight",de),o.hooks.run("complete",de),k&&k.call(de.element)}if(o.hooks.run("before-sanity-check",de),U=de.element.parentElement,U&&U.nodeName.toLowerCase()==="pre"&&!U.hasAttribute("tabindex")&&U.setAttribute("tabindex","0"),!de.code){o.hooks.run("complete",de),k&&k.call(de.element);return}if(o.hooks.run("before-highlight",de),!de.grammar){ae(o.util.encode(de.code));return}if(S&&r.Worker){var I=new Worker(o.filename);I.onmessage=function(xe){ae(xe.data)},I.postMessage(JSON.stringify({language:de.language,code:de.code,immediateClose:!0}))}else ae(o.highlight(de.code,de.grammar,de.language))},highlight:function(E,S,k){var P={code:E,grammar:S,language:k};if(o.hooks.run("before-tokenize",P),!P.grammar)throw new Error('The language "'+P.language+'" has no grammar.');return P.tokens=o.tokenize(P.code,P.grammar),o.hooks.run("after-tokenize",P),l.stringify(o.util.encode(P.tokens),P.language)},tokenize:function(E,S){var k=S.rest;if(k){for(var P in k)S[P]=k[P];delete S.rest}var F=new m;return g(F,F.head,E),h(E,F,S,F.head,0),w(F)},hooks:{all:{},add:function(E,S){var k=o.hooks.all;k[E]=k[E]||[],k[E].push(S)},run:function(E,S){var k=o.hooks.all[E];if(!(!k||!k.length))for(var P=0,F;F=k[P++];)F(S)}},Token:l};r.Prism=o;function l(E,S,k,P){this.type=E,this.content=S,this.alias=k,this.length=(P||"").length|0}l.stringify=function E(S,k){if(typeof S=="string")return S;if(Array.isArray(S)){var P="";return S.forEach(function(ae){P+=E(ae,k)}),P}var F={type:S.type,content:E(S.content,k),tag:"span",classes:["token",S.type],attributes:{},language:k},U=S.alias;U&&(Array.isArray(U)?Array.prototype.push.apply(F.classes,U):F.classes.push(U)),o.hooks.run("wrap",F);var ie="";for(var de in F.attributes)ie+=" "+de+'="'+(F.attributes[de]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+ie+">"+F.content+"</"+F.tag+">"};function d(E,S,k,P){E.lastIndex=S;var F=E.exec(k);if(F&&P&&F[1]){var U=F[1].length;F.index+=U,F[0]=F[0].slice(U)}return F}function h(E,S,k,P,F,U){for(var ie in k)if(!(!k.hasOwnProperty(ie)||!k[ie])){var de=k[ie];de=Array.isArray(de)?de:[de];for(var ae=0;ae<de.length;++ae){if(U&&U.cause==ie+","+ae)return;var I=de[ae],xe=I.inside,Ce=!!I.lookbehind,z=!!I.greedy,ee=I.alias;if(z&&!I.pattern.global){var K=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,K+"g")}for(var O=I.pattern||I,V=P.next,te=F;V!==S.tail&&!(U&&te>=U.reach);te+=V.value.length,V=V.next){var j=V.value;if(S.length>E.length)return;if(!(j instanceof l)){var le=1,ue;if(z){if(ue=d(O,te,E,Ce),!ue||ue.index>=E.length)break;var We=ue.index,De=ue.index+ue[0].length,Pe=te;for(Pe+=V.value.length;We>=Pe;)V=V.next,Pe+=V.value.length;if(Pe-=V.value.length,te=Pe,V.value instanceof l)continue;for(var Fe=V;Fe!==S.tail&&(Pe<De||typeof Fe.value=="string");Fe=Fe.next)le++,Pe+=Fe.value.length;le--,j=E.slice(te,Pe),ue.index-=te}else if(ue=d(O,0,j,Ce),!ue)continue;var We=ue.index,Xe=ue[0],Be=j.slice(0,We),He=j.slice(We+Xe.length),Me=te+j.length;U&&Me>U.reach&&(U.reach=Me);var Le=V.prev;Be&&(Le=g(S,Le,Be),te+=Be.length),b(S,Le,le);var Ae=new l(ie,xe?o.tokenize(Xe,xe):Xe,ee,Xe);if(V=g(S,Le,Ae),He&&g(S,V,He),le>1){var Ge={cause:ie+","+ae,reach:Me};h(E,S,k,V.prev,te,Ge),U&&Ge.reach>U.reach&&(U.reach=Ge.reach)}}}}}}function m(){var E={value:null,prev:null,next:null},S={value:null,prev:E,next:null};E.next=S,this.head=E,this.tail=S,this.length=0}function g(E,S,k){var P=S.next,F={value:k,prev:S,next:P};return S.next=F,P.prev=F,E.length++,F}function b(E,S,k){for(var P=S.next,F=0;F<k&&P!==E.tail;F++)P=P.next;S.next=P,P.prev=S,E.length-=F}function w(E){for(var S=[],k=E.head.next;k!==E.tail;)S.push(k.value),k=k.next;return S}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(E){var S=JSON.parse(E.data),k=S.language,P=S.code,F=S.immediateClose;r.postMessage(o.highlight(P,o.languages[k],k)),F&&r.close()},!1)),o;var $=o.util.currentScript();$&&(o.filename=$.src,$.hasAttribute("data-manual")&&(o.manual=!0));function D(){o.manual||o.highlightAll()}if(!o.manual){var C=document.readyState;C==="loading"||C==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return o}(t);e.exports&&(e.exports=n),typeof Yi<"u"&&(Yi.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 a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};o["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:o},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($,D){return"✖ Error "+$+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+l+'"])';function g($,D,C){var E=new XMLHttpRequest;E.open("GET",$,!0),E.onreadystatechange=function(){E.readyState==4&&(E.status<400&&E.responseText?D(E.responseText):E.status>=400?C(i(E.status,E.statusText)):C(s))},E.send(null)}function b($){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(D){var C=Number(D[1]),E=D[2],S=D[3];return E?S?[C,Number(S)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+m}),n.hooks.add("before-sanity-check",function($){var D=$.element;if(D.matches(m)){$.code="",D.setAttribute(o,l);var C=D.appendChild(document.createElement("CODE"));C.textContent=r;var E=D.getAttribute("data-src"),S=$.language;if(S==="none"){var k=(/\.(\w+)$/.exec(E)||[,"none"])[1];S=a[k]||k}n.util.setLanguage(C,S),n.util.setLanguage(D,S);var P=n.plugins.autoloader;P&&P.loadLanguages(S),g(E,function(F){D.setAttribute(o,d);var U=b(D.getAttribute("data-range"));if(U){var ie=F.split(/\r\n?|\n/g),de=U[0],ae=U[1]==null?ie.length:U[1];de<0&&(de+=ie.length),de=Math.max(0,Math.min(de-1,ie.length)),ae<0&&(ae+=ie.length),ae=Math.max(0,Math.min(ae,ie.length)),F=ie.slice(de,ae).join(`
|
|
133
|
+
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(de+1))}C.textContent=F,n.highlightElement(C)},function(F){D.setAttribute(o,h),C.textContent=F})}}),n.plugins.fileHighlight={highlight:function(D){for(var C=(D||document).querySelectorAll(m),E=0,S;S=C[E++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(p1)),p1.exports}var _ee=Pee();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function s(g){g()}var a=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 o(g,b){var w=getComputedStyle(g),$=getComputedStyle(b);function D(C){return+C.substr(0,C.length-2)}return b.offsetTop+D($.borderTopWidth)+D($.paddingTop)-D(w.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,$){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var D=w.replace(/\s+/g,"").split(",").filter(Boolean),C=+b.getAttribute("data-line-offset")||0,E=a()?parseInt:parseFloat,S=E(getComputedStyle(b).lineHeight),k=Prism.util.isActive(b,e),P=b.querySelector("code"),F=k?b:P||b,U=[],ie=P.textContent.match(n),de=ie?ie.length+1:1,ae=!P||F==P?0:o(b,P);D.forEach(function(Ce){var z=Ce.split("-"),ee=+z[0],K=+z[1]||ee;if(K=Math.min(de+C,K),!(K<ee)){var O=b.querySelector('.line-highlight[data-range="'+Ce+'"]')||document.createElement("div");if(U.push(function(){O.setAttribute("aria-hidden","true"),O.setAttribute("data-range",Ce),O.className=($||"")+" line-highlight"}),k&&Prism.plugins.lineNumbers){var V=Prism.plugins.lineNumbers.getLine(b,ee),te=Prism.plugins.lineNumbers.getLine(b,K);if(V){var j=V.offsetTop+ae+"px";U.push(function(){O.style.top=j})}if(te){var le=te.offsetTop-V.offsetTop+te.offsetHeight+"px";U.push(function(){O.style.height=le})}}else U.push(function(){O.setAttribute("data-start",String(ee)),K>ee&&O.setAttribute("data-end",String(K)),O.style.top=(ee-C-1)*S+ae+"px",O.textContent=new Array(K-ee+2).join(`
|
|
134
|
+
`)});U.push(function(){O.style.width=b.scrollWidth+"px"}),U.push(function(){F.appendChild(O)})}});var I=b.id;if(k&&Prism.util.isActive(b,t)&&I){i(b,t)||U.push(function(){b.classList.add(t)});var xe=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(Ce,z){var ee=z+xe;Ce.onclick=function(){var K=I+"."+ee;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){U.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(C){C.parentNode.removeChild(C)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),$=document.getElementById(w);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines($,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 w=0;r(".line-highlight",b).forEach(function($){w+=$.textContent.length,$.parentNode.removeChild($)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(l(w)){clearTimeout(m);var $=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&$&&!D)Prism.hooks.add("line-numbers",g);else{var C=Prism.plugins.lineHighlight.highlightLines(w);C(),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 a7=A.createContext({});function Nd(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const f$=typeof window<"u",o7=f$?A.useLayoutEffect:A.useEffect,d$=A.createContext(null);function h$(e,t){e.indexOf(t)===-1&&e.push(t)}function p$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Mee([...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 Za=(e,t,n)=>n>t?t:n<e?e:n;function Qb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tc=()=>{},As=()=>{};process.env.NODE_ENV!=="production"&&(Tc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Qb(t,n))},As=(e,t,n)=>{if(!e)throw new Error(Qb(t,n))});const Xa={},u7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function l7(e){return typeof e=="object"&&e!==null}const c7=e=>/^0[^.\s]+$/u.test(e);function m$(e){let t;return()=>(t===void 0&&(t=e()),t)}const es=e=>e,Fee=(e,t)=>n=>t(e(n)),jd=(...e)=>e.reduce(Fee),dd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let g$=class{constructor(){this.subscriptions=[]}add(t){return h$(this.subscriptions,t),()=>p$(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 a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Es=e=>e*1e3,aa=e=>e/1e3;function f7(e,t){return t?e*(1e3/t):0}const jA=new Set;function v$(e,t,n){e||jA.has(t)||(console.warn(Qb(t,n)),jA.add(t))}const d7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ree=1e-7,kee=12;function Oee(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=d7(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Ree&&++o<kee);return a}function Kd(e,t,n,r){if(e===t&&n===r)return es;const i=s=>Oee(s,0,1,e,n);return s=>s===0||s===1?s:d7(i(s),t,r)}const h7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,p7=e=>t=>1-e(1-t),m7=Kd(.33,1.53,.69,.99),y$=p7(m7),g7=h7(y$),v7=e=>(e*=2)<1?.5*y$(e):.5*(2-Math.pow(2,-10*(e-1))),b$=e=>1-Math.sin(Math.acos(e)),y7=p7(b$),b7=h7(b$),Iee=Kd(.42,0,1,1),Lee=Kd(0,0,.58,1),$7=Kd(.42,0,.58,1),Vee=e=>Array.isArray(e)&&typeof e[0]!="number",x7=e=>Array.isArray(e)&&typeof e[0]=="number",KA={linear:es,easeIn:Iee,easeInOut:$7,easeOut:Lee,circIn:b$,circInOut:b7,circOut:y7,backIn:y$,backInOut:g7,backOut:m7,anticipate:v7},Bee=e=>typeof e=="string",UA=e=>{if(x7(e)){As(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return Kd(t,n,r,i)}else if(Bee(e))return As(KA[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),KA[e];return e},Hh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Nee(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&a.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=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 jee=40;function w7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Hh.reduce((S,k)=>(S[k]=Nee(s),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=a,$=()=>{const S=Xa.useManualTiming?i.timestamp:performance.now();n=!1,Xa.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,jee),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e($))},D=()=>{n=!0,r=!0,i.isProcessing||e($)};return{schedule:Hh.reduce((S,k)=>{const P=a[k];return S[k]=(F,U=!1,ie=!1)=>(n||D(),P.schedule(F,U,ie)),S},{}),cancel:S=>{for(let k=0;k<Hh.length;k++)a[Hh[k]].cancel(S)},state:i,steps:a}}const{schedule:Sn,cancel:Ja,state:xr,steps:m1}=w7(typeof requestAnimationFrame<"u"?requestAnimationFrame:es,!0);let $p;function Kee(){$p=void 0}const ui={now:()=>($p===void 0&&ui.set(xr.isProcessing||Xa.useManualTiming?xr.timestamp:performance.now()),$p),set:e=>{$p=e,queueMicrotask(Kee)}},C7=e=>t=>typeof t=="string"&&t.startsWith(e),$$=C7("--"),Uee=C7("var(--"),x$=e=>Uee(e)?zee.test(e.split("/*")[0].trim()):!1,zee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},hd={...Pc,transform:e=>Za(0,1,e)},Gh={...Pc,default:1},Gf=e=>Math.round(e*1e5)/1e5,w$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qee(e){return e==null}const Wee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,C$=(e,t)=>n=>!!(typeof n=="string"&&Wee.test(n)&&n.startsWith(e)||t&&!qee(n)&&Object.prototype.hasOwnProperty.call(n,t)),E7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(w$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Hee=e=>Za(0,255,e),g1={...Pc,transform:e=>Math.round(Hee(e))},Eu={test:C$("rgb","red"),parse:E7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+g1.transform(e)+", "+g1.transform(t)+", "+g1.transform(n)+", "+Gf(hd.transform(r))+")"};function Gee(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const e4={test:C$("#"),parse:Gee,transform:Eu.transform},Ud=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=Ud("deg"),oa=Ud("%"),Dt=Ud("px"),Yee=Ud("vh"),Zee=Ud("vw"),zA={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},Bl={test:C$("hsl","hue"),parse:E7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+oa.transform(Gf(t))+", "+oa.transform(Gf(n))+", "+Gf(hd.transform(r))+")"},tr={test:e=>Eu.test(e)||e4.test(e)||Bl.test(e),parse:e=>Eu.test(e)?Eu.parse(e):Bl.test(e)?Bl.parse(e):e4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eu.transform(e):Bl.transform(e),getAnimatableNone:e=>{const t=tr.parse(e);return t.alpha=0,tr.transform(t)}},Xee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(w$))==null?void 0:t.length)||0)+(((n=e.match(Xee))==null?void 0:n.length)||0)>0}const S7="number",D7="color",Qee="var",ete="var(",qA="${}",tte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(tte,l=>(tr.test(l)?(r.color.push(s),i.push(D7),n.push(tr.parse(l))):l.startsWith(ete)?(r.var.push(s),i.push(Qee),n.push(l)):(r.number.push(s),i.push(S7),n.push(parseFloat(l))),++s,qA)).split(qA);return{values:n,split:o,indexes:r,types:i}}function A7(e){return pd(e).values}function T7(e){const{split:t,types:n}=pd(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===S7?s+=Gf(i[a]):o===D7?s+=tr.transform(i[a]):s+=i[a]}return s}}const nte=e=>typeof e=="number"?0:tr.test(e)?tr.getAnimatableNone(e):e;function rte(e){const t=A7(e);return T7(e)(t.map(nte))}const Ro={test:Jee,parse:A7,createTransformer:T7,getAnimatableNone:rte};function v1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ite({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=v1(l,o,e+1/3),s=v1(l,o,e),a=v1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function im(e,t){return n=>n>0?t:e}const _n=(e,t,n)=>e+(t-e)*n,y1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ste=[e4,Eu,Bl],ate=e=>ste.find(t=>t.test(e));function WA(e){const t=ate(e);if(Tc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Bl&&(n=ite(n)),n}const HA=(e,t)=>{const n=WA(e),r=WA(t);if(!n||!r)return im(e,t);const i={...n};return s=>(i.red=y1(n.red,r.red,s),i.green=y1(n.green,r.green,s),i.blue=y1(n.blue,r.blue,s),i.alpha=_n(n.alpha,r.alpha,s),Eu.transform(i))},t4=new Set(["none","hidden"]);function ote(e,t){return t4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ute(e,t){return n=>_n(e,t,n)}function E$(e){return typeof e=="number"?ute:typeof e=="string"?x$(e)?im:tr.test(e)?HA:fte:Array.isArray(e)?P7:typeof e=="object"?tr.test(e)?HA:lte:im}function P7(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>E$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function lte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=E$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function cte(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const fte=(e,t)=>{const n=Ro.createTransformer(t),r=pd(e),i=pd(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?t4.has(e)&&!i.values.length||t4.has(t)&&!r.values.length?ote(e,t):jd(P7(cte(r,i),i.values),n):(Tc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),im(e,t))};function _7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?_n(e,t,n):E$(e)(e,t)}const dte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Sn.update(t,n),stop:()=>Ja(t),now:()=>xr.isProcessing?xr.timestamp:ui.now()}},M7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},sm=2e4;function S$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<sm;)t+=n,r=e.next(t);return t>=sm?1/0:t}function hte(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(S$(r),sm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:aa(i)}}const pte=5;function F7(e,t,n){const r=Math.max(t-pte,0);return f7(n-e(r),t-r)}const Fn={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},b1=.001;function mte({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,s;Tc(e<=Es(Fn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Za(Fn.minDamping,Fn.maxDamping,a),e=Za(Fn.minDuration,Fn.maxDuration,aa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=n4(d,a),w=Math.exp(-m);return b1-g/b*w},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,w=Math.exp(-m),$=n4(Math.pow(d,2),a);return(-i(d)+b1>0?-1:1)*((g-b)*w)/$}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-b1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=vte(i,s,o);if(e=Es(e),isNaN(l))return{stiffness:Fn.stiffness,damping:Fn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const gte=12;function vte(e,t,n){let r=n;for(let i=1;i<gte;i++)r=r-e(r)/t(r);return r}function n4(e,t){return e*Math.sqrt(1-t*t)}const yte=["duration","bounce"],bte=["stiffness","damping","mass"];function GA(e,t){return t.some(n=>e[n]!==void 0)}function $te(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!GA(e,bte)&&GA(e,yte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Za(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:s}}else{const n=mte(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function am(e=Fn.visualDuration,t=Fn.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],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=$te({...n,velocity:-aa(n.velocity||0)}),w=g||0,$=d/(2*Math.sqrt(l*h)),D=a-s,C=aa(Math.sqrt(l/h)),E=Math.abs(D)<5;r||(r=E?Fn.restSpeed.granular:Fn.restSpeed.default),i||(i=E?Fn.restDelta.granular:Fn.restDelta.default);let S;if($<1){const P=n4(C,$);S=F=>{const U=Math.exp(-$*C*F);return a-U*((w+$*C*D)/P*Math.sin(P*F)+D*Math.cos(P*F))}}else if($===1)S=P=>a-Math.exp(-C*P)*(D+(w+C*D)*P);else{const P=C*Math.sqrt($*$-1);S=F=>{const U=Math.exp(-$*C*F),ie=Math.min(P*F,300);return a-U*((w+$*C*D)*Math.sinh(ie)+P*D*Math.cosh(ie))/P}}const k={calculatedDuration:b&&m||null,next:P=>{const F=S(P);if(b)o.done=P>=m;else{let U=P===0?w:0;$<1&&(U=P===0?Es(w):F7(S,P,F));const ie=Math.abs(U)<=r,de=Math.abs(a-F)<=i;o.done=ie&&de}return o.value=o.done?a:F,o},toString:()=>{const P=Math.min(S$(k),sm),F=M7(U=>k.next(P*U).value,P,30);return P+"ms "+F},toTransition:()=>{}};return k}am.applyToOptions=e=>{const t=hte(e,100,am);return e.ease=t.ease,e.duration=Es(t.duration),e.type="keyframes",e};function r4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>o!==void 0&&ie<o||l!==void 0&&ie>l,w=ie=>o===void 0?l:l===void 0||Math.abs(o-ie)<Math.abs(l-ie)?o:l;let $=n*t;const D=m+$,C=a===void 0?D:a(D);C!==D&&($=C-m);const E=ie=>-$*Math.exp(-ie/r),S=ie=>C+E(ie),k=ie=>{const de=E(ie),ae=S(ie);g.done=Math.abs(de)<=d,g.value=g.done?C:ae};let P,F;const U=ie=>{b(g.value)&&(P=ie,F=am({keyframes:[g.value,w(g.value)],velocity:F7(S,ie,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return U(0),{calculatedDuration:null,next:ie=>{let de=!1;return!F&&P===void 0&&(de=!0,k(ie),U(ie)),P!==void 0&&ie>=P?F.next(ie-P):(!de&&k(ie),g)}}}function xte(e,t,n){const r=[],i=n||Xa.mix||_7,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||es:t;o=jd(l,o)}r.push(o)}return r}function R7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(As(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=xte(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=dd(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Za(e[0],e[s-1],h)):d}function wte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=dd(0,t,r);e.push(_n(n,1,i))}}function Cte(e){const t=[0];return wte(t,e.length-1),t}function Ete(e,t){return e.map(n=>n*t)}function Ste(e,t){return e.map(()=>t||$7).splice(0,e.length-1)}function Nl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Vee(r)?r.map(UA):UA(r),s={done:!1,value:t[0]},a=Ete(n&&n.length===t.length?n:Cte(t),e),o=R7(a,t,{ease:Array.isArray(i)?i:Ste(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const Dte=e=>e!==null;function D$(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Dte),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Ate={decay:r4,inertia:r4,tween:Nl,keyframes:Nl,spring:am};function k7(e){typeof e.type=="string"&&(e.type=Ate[e.type])}let A$=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}};const Tte=e=>e/100;let T$=class extends A${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ui.now()&&this.tick(ui.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;k7(t);const{type:n=Nl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Nl;process.env.NODE_ENV!=="production"&&l!==Nl&&As(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),l!==Nl&&typeof o[0]!="number"&&(this.mixKeyframes=jd(Tte,_7(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=S$(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:$,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,k=r;if(m){const ie=Math.min(this.currentTime,i)/o;let de=Math.floor(ie),ae=ie%1;!ae&&ie>=1&&(ae=1),ae===1&&de--,de=Math.min(de,m+1),!!(de%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),S=Za(0,1,ae)*o}const P=E?{done:!1,value:h[0]}:k.next(S);s&&(P.value=s(P.value));let{done:F}=P;!E&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return U&&w!==r4&&(P.value=D$(h,this.options,D,this.speed)),$&&$(P.value),U&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return aa(this.calculatedDuration)}get time(){return aa(this.currentTime)}set time(t){var n;t=Es(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ui.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=aa(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=dte,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ui.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}};function Pte(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Su=e=>e*180/Math.PI,i4=e=>{const t=Su(Math.atan2(e[1],e[0]));return s4(t)},_te={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:i4,rotateZ:i4,skewX:e=>Su(Math.atan(e[1])),skewY:e=>Su(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},s4=e=>(e=e%360,e<0&&(e+=360),e),YA=i4,ZA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),XA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Mte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ZA,scaleY:XA,scale:e=>(ZA(e)+XA(e))/2,rotateX:e=>s4(Su(Math.atan2(e[6],e[5]))),rotateY:e=>s4(Su(Math.atan2(-e[2],e[0]))),rotateZ:YA,rotate:YA,skewX:e=>Su(Math.atan(e[4])),skewY:e=>Su(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function a4(e){return e.includes("scale")?1:0}function o4(e,t){if(!e||e==="none")return a4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Mte,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_te,i=o}if(!i)return a4(t);const s=r[t],a=i[1].split(",").map(Rte);return typeof s=="function"?s(a):a[s]}const Fte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return o4(n,t)};function Rte(e){return parseFloat(e.trim())}const _c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mc=new Set(_c),JA=e=>e===Pc||e===Dt,kte=new Set(["x","y","z"]),Ote=_c.filter(e=>!kte.has(e));function Ite(e){const t=[];return Ote.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>o4(t,"x"),y:(e,{transform:t})=>o4(t,"y")};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const Ru=new Set;let u4=!1,l4=!1,c4=!1;function O7(){if(l4){const e=Array.from(Ru).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Ite(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}l4=!1,u4=!1,Ru.forEach(e=>e.complete(c4)),Ru.clear()}function I7(){Ru.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l4=!0)})}function Lte(){c4=!0,I7(),O7(),c4=!1}let P$=class{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ru.add(this),u4||(u4=!0,Sn.read(I7),Sn.resolveKeyframes(O7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Pte(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ru.delete(this)}cancel(){this.state==="scheduled"&&(Ru.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const Vte=e=>e.startsWith("--");function Bte(e,t,n){Vte(t)?e.style.setProperty(t,n):e.style[t]=n}const Nte=m$(()=>window.ScrollTimeline!==void 0),jte={};function Kte(e,t){const n=m$(e);return()=>jte[t]??n()}const L7=Kte(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,QA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jf([0,.65,.55,1]),circOut:jf([.55,0,1,.45]),backIn:jf([.31,.01,.66,-.59]),backOut:jf([.33,1.53,.69,.99])};function V7(e,t){if(e)return typeof e=="function"?L7()?M7(e,t):"ease-out":x7(e)?jf(e):Array.isArray(e)?e.map(n=>V7(n,t)||QA.easeOut):QA[e]}function Ute(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=V7(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function B7(e){return typeof e=="function"&&"applyToOptions"in e}function zte({type:e,...t}){return B7(e)&&L7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let qte=class extends A${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,As(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=zte(t);this.animation=Ute(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=D$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Bte(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return aa(Number(t))}get time(){return aa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Es(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Nte()?(this.animation.timeline=t,es):n(this)}};const N7={anticipate:v7,backInOut:g7,circInOut:b7};function Wte(e){return e in N7}function Hte(e){typeof e.ease=="string"&&Wte(e.ease)&&(e.ease=N7[e.ease])}const eT=10;let Gte=class extends qte{constructor(t){Hte(t),k7(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new T$({...a,autoplay:!1}),l=Es(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-eT).value,o.sample(l).value,eT),o.stop()}};const tT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ro.test(e)||e==="0")&&!e.startsWith("url("));function Yte(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=tT(i,t),o=tT(s,t);return Tc(a===o,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!a||!o?!1:Yte(e)||(n==="spring"||B7(n))&&r}function f4(e){e.duration=0,e.type}const Xte=new Set(["opacity","clipPath","filter","transform"]),Jte=m$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qte(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return Jte()&&n&&Xte.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const ene=40;let tne=class extends A${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var $,D;this._animation&&(this._animation.stop(),($=this.stopTimeline)==null||$.call(this)),(D=this.keyframeResolver)==null||D.cancel()},this.createdAt=ui.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||P$;this.keyframeResolver=new b(o,($,D,C)=>this.onKeyframesResolved($,D,g,!C),l,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ui.now(),Zte(t,s,a,o)||((Xa.instantAnimations||!l)&&(h==null||h(D$(t,r,n))),t[0]=t[t.length-1],f4(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ene?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&Qte(g)?new Gte({...g,element:g.motionValue.owner.current}):new T$(g);b.finished.then(()=>this.notifyFinished()).catch(es),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Lte()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}};const nne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rne(e){const t=nne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ine=4;function j7(e,t,n=1){As(n<=ine,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=rne(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return u7(a)?parseFloat(a):a}return x$(i)?j7(i,t,n+1):i}function _$(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const K7=new Set(["width","height","top","left","right","bottom",..._c]),sne={test:e=>e==="auto",parse:e=>e},U7=e=>t=>t.test(e),z7=[Pc,Dt,oa,$o,Zee,Yee,sne],nT=e=>z7.find(U7(e));function ane(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c7(e):!0}const one=new Set(["brightness","contrast","saturate","opacity"]);function une(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(w$)||[];if(!r)return e;const i=n.replace(r,"");let s=one.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const lne=/\b([a-z-]*)\(.*?\)/gu,d4={...Ro,getAnimatableNone:e=>{const t=e.match(lne);return t?t.map(une).join(" "):e}},rT={...Pc,transform:Math.round},cne={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Gh,scaleX:Gh,scaleY:Gh,scaleZ:Gh,skew:$o,skewX:$o,skewY:$o,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:hd,originX:zA,originY:zA,originZ:Dt},M$={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,...cne,zIndex:rT,fillOpacity:hd,strokeOpacity:hd,numOctaves:rT},fne={...M$,color:tr,backgroundColor:tr,outlineColor:tr,fill:tr,stroke:tr,borderColor:tr,borderTopColor:tr,borderRightColor:tr,borderBottomColor:tr,borderLeftColor:tr,filter:d4,WebkitFilter:d4},q7=e=>fne[e];function W7(e,t){let n=q7(e);return n!==d4&&(n=Ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dne=new Set(["auto","none","0"]);function hne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!dne.has(s)&&pd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=W7(n,i)}let pne=class extends P${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(),x$(d))){const h=j7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!K7.has(r)||t.length!==2)return;const[i,s]=t,a=nT(i),o=nT(s);if(a!==o)if(JA(a)&&JA(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Fu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ane(t[i]))&&r.push(i);r.length&&hne(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=Fu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}};function mne(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const H7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function gne(e){return l7(e)&&"offsetHeight"in e}const iT=30,vne=e=>!isNaN(parseFloat(e)),Yf={current:void 0};let yne=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ui.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ui.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&v$(!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 g$);const r=this.events[t].add(n);return t==="change"?()=>{r(),Sn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Yf.current&&Yf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ui.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iT);return f7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function qu(e,t){return new yne(e,t)}const{schedule:F$}=w7(queueMicrotask,!1),ys={x:!1,y:!1};function G7(){return ys.x||ys.y}function bne(e){return e==="x"||e==="y"?ys[e]?null:(ys[e]=!0,()=>{ys[e]=!1}):ys.x||ys.y?null:(ys.x=ys.y=!0,()=>{ys.x=ys.y=!1})}function Y7(e,t){const n=mne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function sT(e){return!(e.pointerType==="touch"||G7())}function $ne(e,t,n={}){const[r,i,s]=Y7(e,n),a=o=>{if(!sT(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{sT(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}const Z7=(e,t)=>t?e===t?!0:Z7(e,t.parentElement):!1,R$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wne(e){return xne.has(e.tagName)||e.tabIndex!==-1}const xp=new WeakSet;function aT(e){return t=>{t.key==="Enter"&&e(t)}}function $1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cne=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=aT(()=>{if(xp.has(n))return;$1(n,"down");const i=aT(()=>{$1(n,"up")}),s=()=>$1(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 oT(e){return R$(e)&&!G7()}function Ene(e,t,n={}){const[r,i,s]=Y7(e,n),a=o=>{const l=o.currentTarget;if(!oT(o))return;xp.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),xp.has(l)&&xp.delete(l),oT(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||Z7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),gne(o)&&(o.addEventListener("focus",d=>Cne(d,i)),!wne(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function X7(e){return l7(e)&&"ownerSVGElement"in e}function Sne(e){return X7(e)&&e.tagName==="svg"}function Dne(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],o=R7(i,s,a);return t?o(r):o}const wr=e=>!!(e&&e.getVelocity),Ane=[...z7,tr,Ro],Tne=e=>Ane.find(U7(e)),k$=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Pne(e=!0){const t=A.useContext(d$);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 a=A.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const J7=A.createContext({strict:!1}),uT={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"]},mc={};for(const e in uT)mc[e]={isEnabled:t=>uT[e].some(n=>!!t[n])};function _ne(e){for(const t in e)mc[t]={...mc[t],...e[t]}}const Mne=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 om(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Mne.has(e)}let Q7=e=>!om(e);function Fne(e){typeof e=="function"&&(Q7=t=>t.startsWith("on")?!om(t):e(t))}try{Fne(require("@emotion/is-prop-valid").default)}catch{}function Rne(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Q7(i)||n===!0&&om(i)||!t&&!om(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const og=A.createContext({});function ug(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function md(e){return typeof e=="string"||Array.isArray(e)}const O$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],I$=["initial",...O$];function lg(e){return ug(e.animate)||I$.some(t=>md(e[t]))}function eO(e){return!!(lg(e)||e.variants)}function kne(e,t){if(lg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||md(n)?n:void 0,animate:md(r)?r:void 0}}return e.inherit!==!1?t:{}}function One(e){const{initial:t,animate:n}=kne(e,A.useContext(og));return A.useMemo(()=>({initial:t,animate:n}),[lT(t),lT(n)])}function lT(e){return Array.isArray(e)?e.join(" "):e}const gd={};function Ine(e){for(const t in e)gd[t]=e[t],$$(t)&&(gd[t].isCSSVariable=!0)}function tO(e,{layout:t,layoutId:n}){return Mc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!gd[e]||e==="opacity")}const Lne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vne=_c.length;function Bne(e,t,n){let r="",i=!0;for(let s=0;s<Vne;s++){const a=_c[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=H7(o,M$[a]);if(!l){i=!1;const h=Lne[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function L$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(Mc.has(l)){a=!0;continue}else if($$(l)){i[l]=d;continue}else{const h=H7(d,M$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=Bne(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const V$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nO(e,t,n){for(const r in t)!wr(t[r])&&!tO(r,n)&&(e[r]=t[r])}function Nne({transformTemplate:e},t){return A.useMemo(()=>{const n=V$();return L$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jne(e,t){const n=e.style||{},r={};return nO(r,n,e),Object.assign(r,Nne(e,t)),r}function Kne(e,t){const n={},r=jne(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Une={offset:"stroke-dashoffset",array:"stroke-dasharray"},zne={offset:"strokeDashoffset",array:"strokeDasharray"};function qne(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Une:zne;e[s.offset]=Dt.transform(-r);const a=Dt.transform(t),o=Dt.transform(n);e[s.array]=`${a} ${o}`}function rO(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(L$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&qne(m,i,s,a,!1)}const iO=()=>({...V$(),attrs:{}}),sO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Wne(e,t,n,r){const i=A.useMemo(()=>{const s=iO();return rO(s,t,sO(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};nO(s,e.style,e),i.style={...s,...i.style}}return i}const Hne=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function B$(e){return typeof e!="string"||e.includes("-")?!1:!!(Hne.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gne(e,t,n,{latestValues:r},i,s=!1){const o=(B$(e)?Wne:Kne)(t,r,i,e),l=Rne(t,typeof e=="string",s),d=e!==A.Fragment?{...l,...o,ref:n}:{},{children:h}=t,m=A.useMemo(()=>wr(h)?h.get():h,[h]);return A.createElement(e,{...d,children:m})}function cT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function N$(e,t,n,r){if(typeof t=="function"){const[i,s]=cT(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]=cT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function wp(e){return wr(e)?e.get():e}function Yne({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Zne(n,r,i,e),renderState:t()}}function Zne(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=wp(s[g]);let{initial:a,animate:o}=e;const l=lg(e),d=eO(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!ug(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=N$(e,g[b]);if(w){const{transitionEnd:$,transition:D,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const k=h?S.length-1:0;S=S[k]}S!==null&&(i[E]=S)}for(const E in $)i[E]=$[E]}}}return i}const aO=e=>(t,n)=>{const r=A.useContext(og),i=A.useContext(d$),s=()=>Yne(e,t,r,i);return n?s():Nd(s)};function j$(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(wr(r[a])||t.style&&wr(t.style[a])||tO(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const Xne=aO({scrapeMotionValuesFromProps:j$,createRenderState:V$});function oO(e,t,n){const r=j$(e,t,n);for(const i in e)if(wr(e[i])||wr(t[i])){const s=_c.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Jne=aO({scrapeMotionValuesFromProps:oO,createRenderState:iO}),Qne=Symbol.for("motionComponentSymbol");function jl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ere(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):jl(n)&&(n.current=r))},[t])}const K$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tre="framerAppearId",uO="data-"+K$(tre),lO=A.createContext({});function nre(e,t,n,r,i){var $,D;const{visualElement:s}=A.useContext(og),a=A.useContext(J7),o=A.useContext(d$),l=A.useContext(k$).reducedMotion,d=A.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=A.useContext(lO);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&rre(d.current,n,i,m);const g=A.useRef(!1);A.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[uO],w=A.useRef(!!b&&!(($=window.MotionHandoffIsComplete)!=null&&$.call(window,b))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,b)));return o7(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1))}),h}function rre(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:cO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&jl(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function cO(e){if(e)return e.options.allowProjection!==!1?e.projection:cO(e.parent)}function x1(e,{forwardMotionProps:t=!1}={},n,r){n&&_ne(n);const i=B$(e)?Jne:Xne;function s(o,l){let d;const h={...A.useContext(k$),...o,layoutId:ire(o)},{isStatic:m}=h,g=One(o),b=i(o,m);if(!m&&f$){sre(h,n);const w=are(h);d=w.MeasureLayout,g.visualElement=nre(e,b,h,r,w.ProjectionNode)}return la.jsxs(og.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,Gne(e,o,ere(b,g.visualElement,l),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=A.forwardRef(s);return a[Qne]=e,a}function ire({layoutId:e}){const t=A.useContext(a7).id;return t&&e!==void 0?t+"-"+e:e}function sre(e,t){const n=A.useContext(J7).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?Tc(!1,r,"lazy-strict-mode"):As(!1,r,"lazy-strict-mode")}}function are(e){const{drag:t,layout:n}=mc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ore(e,t){if(typeof Proxy>"u")return x1;const n=new Map,r=(s,a)=>x1(s,a,e,t),i=(s,a)=>(process.env.NODE_ENV!=="production"&&v$(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,x1(a,void 0,e,t)),n.get(a))})}function fO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ure({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function w1(e){return e===void 0||e===1}function h4({scale:e,scaleX:t,scaleY:n}){return!w1(e)||!w1(t)||!w1(n)}function pu(e){return h4(e)||dO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dO(e){return fT(e.x)||fT(e.y)}function fT(e){return e&&e!=="0%"}function um(e,t,n){const r=e-n,i=t*r;return n+i}function dT(e,t,n,r,i){return i!==void 0&&(e=um(e,i,r)),um(e,n,r)+t}function p4(e,t=0,n=1,r,i){e.min=dT(e.min,t,n,r,i),e.max=dT(e.max,t,n,r,i)}function hO(e,{x:t,y:n}){p4(e.x,t.translate,t.scale,t.originPoint),p4(e.y,n.translate,n.scale,n.originPoint)}const hT=.999999999999,pT=1.0000000000001;function cre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=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&&Ul(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,hO(e,a)),r&&pu(s.latestValues)&&Ul(e,s.latestValues))}t.x<pT&&t.x>hT&&(t.x=1),t.y<pT&&t.y>hT&&(t.y=1)}function Kl(e,t){e.min=e.min+t,e.max=e.max+t}function mT(e,t,n,r,i=.5){const s=_n(e.min,e.max,i);p4(e,t,n,s,r)}function Ul(e,t){mT(e.x,t.x,t.scaleX,t.scale,t.originX),mT(e.y,t.y,t.scaleY,t.scale,t.originY)}function pO(e,t){return fO(lre(e.getBoundingClientRect(),t))}function fre(e,t,n){const r=pO(e,n),{scroll:i}=t;return i&&(Kl(r.x,i.offset.x),Kl(r.y,i.offset.y)),r}const gT=()=>({translate:0,scale:1,origin:0,originPoint:0}),zl=()=>({x:gT(),y:gT()}),vT=()=>({min:0,max:0}),Yn=()=>({x:vT(),y:vT()}),m4={current:null},mO={current:!1};function dre(){if(mO.current=!0,!!f$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>m4.current=e.matches;e.addEventListener("change",t),t()}else m4.current=!1}const hre=new WeakMap;function pre(e,t,n){for(const r in t){const i=t[r],s=n[r];if(wr(i))e.addValue(r,i);else if(wr(s))e.addValue(r,qu(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,qu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let mre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=P$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ui.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Sn.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;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=o,this.blockInitialAnimation=!!s,this.isControllingVariants=lg(n),this.isVariantNode=eO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&wr(b)&&b.set(l[g])}}mount(t){this.current=t,hre.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),mO.current||dre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:m4.current,process.env.NODE_ENV!=="production"&&v$(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Ja(this.notifyUpdate),Ja(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=Mc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Sn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),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 mc){const n=mc[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):Yn()}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<yT.length;r++){const i=yT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=pre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(u7(r)||c7(r))?r=parseFloat(r):!Tne(r)&&Ro.test(n)&&(r=W7(t,n)),this.setBaseTarget(t,wr(r)?r.get():r)),wr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=N$(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!wr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new g$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){F$.render(this.render)}},gO=class extends mre{constructor(){super(...arguments),this.KeyframeResolver=pne}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;wr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function vO(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i==null||i.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function gre(e){return window.getComputedStyle(e)}let vre=class extends gO{constructor(){super(...arguments),this.type="html",this.renderInstance=vO}readValueFromInstance(t,n){var r;if(Mc.has(n))return(r=this.projection)!=null&&r.isProjecting?a4(n):Fte(t,n);{const i=gre(t),s=($$(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pO(t,n)}build(t,n,r){L$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return j$(t,n,r)}};const yO=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function yre(e,t,n,r){vO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yO.has(i)?i:K$(i),t.attrs[i])}let bre=class extends gO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mc.has(n)){const r=q7(n);return r&&r.default||0}return n=yO.has(n)?n:K$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return oO(t,n,r)}build(t,n,r){rO(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){yre(t,n,r,i)}mount(t){this.isSVGTag=sO(t.tagName),super.mount(t)}};const $re=(e,t)=>B$(e)?new bre(t):new vre(t,{allowProjection:e!==A.Fragment});function vd(e,t,n){const r=e.getProps();return N$(r,t,n!==void 0?n:r.custom,e)}const g4=e=>Array.isArray(e);function xre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qu(n))}function wre(e){return g4(e)?e[e.length-1]||0:e}function Cre(e,t){const n=vd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=wre(s[a]);xre(e,a,o)}}function Ere(e){return!!(wr(e)&&e.add)}function v4(e,t){const n=e.getValue("willChange");if(Ere(n))return n.add(t);if(!n&&Xa.WillChange){const r=new Xa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bO(e){return e.props[uO]}const Sre=e=>e!==null;function Dre(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Sre),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Are={type:"spring",stiffness:500,damping:25,restSpeed:10},Tre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pre={type:"keyframes",duration:.8},_re={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mre=(e,{keyframes:t})=>t.length>2?Pre:Mc.has(e)?e.startsWith("scale")?Tre(t[1]):Are:_re;function Fre({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const U$=(e,t,n,r={},i,s)=>a=>{const o=_$(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Es(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Fre(o)||Object.assign(h,Mre(e,h)),h.duration&&(h.duration=Es(h.duration)),h.repeatDelay&&(h.repeatDelay=Es(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(f4(h),h.delay===0&&(m=!0)),(Xa.instantAnimations||Xa.skipAnimations)&&(m=!0,f4(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Dre(h.keyframes,o);if(g!==void 0){Sn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new T$(h):new tne(h)};function Rre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $O(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&Rre(d,h))continue;const b={delay:n,..._$(s||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let $=!1;if(window.MotionHandoffAnimation){const C=bO(e);if(C){const E=window.MotionHandoffAnimation(C,h,Sn);E!==null&&(b.startTime=E,$=!0)}}v4(e,h),m.start(U$(h,m,g,e.shouldReduceMotion&&K7.has(h)?{type:!1}:b,e,$));const D=m.animation;D&&l.push(D)}return a&&Promise.all(l).then(()=>{Sn.update(()=>{a&&Cre(e,a)})}),l}function y4(e,t,n={}){var l;const r=vd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all($O(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return kre(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function kre(e,t,n=0,r=0,i=0,s=1,a){const o=[],l=e.variantChildren.size,d=(l-1)*i,h=typeof r=="function",m=h?g=>r(g,l):s===1?(g=0)=>g*i:(g=0)=>d-g*i;return Array.from(e.variantChildren).sort(Ore).forEach((g,b)=>{g.notify("AnimationStart",t),o.push(y4(g,t,{...a,delay:n+(h?0:r)+m(b)}).then(()=>g.notify("AnimationComplete",t)))}),Promise.all(o)}function Ore(e,t){return e.sortNodePosition(t)}function Ire(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"?vd(e,t,n.custom):t;r=Promise.all($O(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function xO(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 Lre=I$.length;function wO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Lre;n++){const r=I$[n],i=e.props[r];(md(i)||i===!1)&&(t[r]=i)}return t}const Vre=[...O$].reverse(),Bre=O$.length;function Nre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Ire(e,n,r)))}function jre(e){let t=Nre(e),n=bT(),r=!0;const i=l=>(d,h)=>{var g;const m=vd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...$}=m;d={...d,...$,...w}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=wO(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let D=0;D<Bre;D++){const C=Vre[D],E=n[C],S=d[C]!==void 0?d[C]:h[C],k=md(S),P=C===l?E.isActive:null;P===!1&&(w=D);let F=S===h[C]&&S!==d[C]&&k;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&P===null||!S&&!E.prevProp||ug(S)||typeof S=="boolean")continue;const U=Kre(E.prevProp,S);let ie=U||C===l&&E.isActive&&!F&&k||D>w&&k,de=!1;const ae=Array.isArray(S)?S:[S];let I=ae.reduce(i(C),{});P===!1&&(I={});const{prevResolvedValues:xe={}}=E,Ce={...xe,...I},z=O=>{ie=!0,g.has(O)&&(de=!0,g.delete(O)),E.needsAnimating[O]=!0;const V=e.getValue(O);V&&(V.liveStyle=!1)};for(const O in Ce){const V=I[O],te=xe[O];if(b.hasOwnProperty(O))continue;let j=!1;g4(V)&&g4(te)?j=!xO(V,te):j=V!==te,j?V!=null?z(O):g.add(O):V!==void 0&&g.has(O)?z(O):E.protectedKeys[O]=!0}E.prevProp=S,E.prevResolvedValues=I,E.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(ie=!1),ie&&(!(F&&U)||de)&&m.push(...ae.map(O=>({animation:O,options:{type:C}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const C=vd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(D.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),D[C]=E??null}),m.push({animation:D})}let $=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=bT(),r=!0}}}function Kre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xO(t,e):!1}function du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bT(){return{animate:du(!0),whileInView:du(),whileHover:du(),whileTap:du(),whileDrag:du(),whileFocus:du(),exit:du()}}let Vo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Ure=class extends Vo{constructor(t){super(t),t.animationState||(t.animationState=jre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ug(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}},zre=0,qre=class extends Vo{constructor(){super(...arguments),this.id=zre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const Wre={animation:{Feature:Ure},exit:{Feature:qre}};function yd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zd(e){return{point:{x:e.pageX,y:e.pageY}}}const Hre=e=>t=>R$(t)&&e(t,zd(t));function Zf(e,t,n,r){return yd(e,t,Hre(n),r)}const CO=1e-4,Gre=1-CO,Yre=1+CO,EO=.01,Zre=0-EO,Xre=0+EO;function zr(e){return e.max-e.min}function Jre(e,t,n){return Math.abs(e-t)<=n}function $T(e,t,n,r=.5){e.origin=r,e.originPoint=_n(t.min,t.max,e.origin),e.scale=zr(n)/zr(t),e.translate=_n(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Gre&&e.scale<=Yre||isNaN(e.scale))&&(e.scale=1),(e.translate>=Zre&&e.translate<=Xre||isNaN(e.translate))&&(e.translate=0)}function Xf(e,t,n,r){$T(e.x,t.x,n.x,r?r.originX:void 0),$T(e.y,t.y,n.y,r?r.originY:void 0)}function xT(e,t,n){e.min=n.min+t.min,e.max=e.min+zr(t)}function Qre(e,t,n){xT(e.x,t.x,n.x),xT(e.y,t.y,n.y)}function wT(e,t,n){e.min=t.min-n.min,e.max=e.min+zr(t)}function Jf(e,t,n){wT(e.x,t.x,n.x),wT(e.y,t.y,n.y)}function zi(e){return[e("x"),e("y")]}const SO=({current:e})=>e?e.ownerDocument.defaultView:null,CT=(e,t)=>Math.abs(e-t);function eie(e,t){const n=CT(e.x,t.x),r=CT(e.y,t.y);return Math.sqrt(n**2+r**2)}class DO{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=E1(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=eie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:$}=g,{timestamp:D}=xr;this.history.push({...$,timestamp:D});const{onStart:C,onMove:E}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=C1(b,this.transformPagePoint),Sn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:$,resumeAnimation:D}=this.handlers;if(this.dragSnapToOrigin&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=E1(g.type==="pointercancel"?this.lastMoveEventInfo:C1(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),$&&$(g,C)},!R$(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const o=zd(t),l=C1(o,this.transformPagePoint),{point:d}=l,{timestamp:h}=xr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,E1(l,this.history)),this.removeListeners=jd(Zf(this.contextWindow,"pointermove",this.handlePointerMove),Zf(this.contextWindow,"pointerup",this.handlePointerUp),Zf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ja(this.updatePoint)}}function C1(e,t){return t?{point:t(e.point)}:e}function ET(e,t){return{x:e.x-t.x,y:e.y-t.y}}function E1({point:e},t){return{point:e,delta:ET(e,AO(t)),offset:ET(e,tie(t)),velocity:nie(t,.1)}}function tie(e){return e[0]}function AO(e){return e[e.length-1]}function nie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=AO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Es(t)));)n--;if(!r)return{x:0,y:0};const s=aa(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_n(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_n(n,e,r.max):Math.min(e,n)),e}function ST(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 iie(e,{top:t,left:n,bottom:r,right:i}){return{x:ST(e.x,n,i),y:ST(e.y,t,r)}}function DT(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 sie(e,t){return{x:DT(e.x,t.x),y:DT(e.y,t.y)}}function aie(e,t){let n=.5;const r=zr(e),i=zr(t);return i>r?n=dd(t.min,t.max-r,e.min):r>i&&(n=dd(e.min,e.max-i,t.min)),Za(0,1,n)}function oie(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const b4=.35;function uie(e=b4){return e===!1?e=0:e===!0&&(e=b4),{x:AT(e,"left","right"),y:AT(e,"top","bottom")}}function AT(e,t,n){return{min:TT(e,t),max:TT(e,n)}}function TT(e,t){return typeof e=="number"?e:e[t]||0}const lie=new WeakMap;class cie{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=Yn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zd(m).point)},a=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:$}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bne(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zi(C=>{let E=this.getAxisMotionValue(C).get()||0;if(oa.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const k=S.layout.layoutBox[C];k&&(E=zr(k)*(parseFloat(E)/100))}}this.originPoint[C]=E}),$&&Sn.postRender(()=>$(m,g)),v4(this.visualElement,"transform");const{animationState:D}=this.visualElement;D&&D.setActive("whileDrag",!0)},o=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:$,onDrag:D}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=fie(C),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),D&&D(m,g)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>zi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new DO(t,{onSessionStart:s,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:SO(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&Sn.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Yh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=rie(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&jl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=iie(r.layoutBox,t):this.constraints=!1,this.elastic=uie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&zi(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=oie(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!jl(t))return!1;const r=t.current;As(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=fre(r,i.root,this.visualElement.getTransformPagePoint());let a=sie(i.layout.layoutBox,s);if(n){const o=n(ure(a));this.hasMutatedConstraints=!!o,o&&(a=fO(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},d=zi(h=>{if(!Yh(h,n,this.currentDirection))return;let m=l&&l[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return v4(this.visualElement,t),r.start(U$(t,r,0,n,this.visualElement,!1))}stopAnimation(){zi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){zi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){zi(n=>{const{drag:r}=this.getProps();if(!Yh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-_n(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!jl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};zi(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=aie({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),zi(a=>{if(!Yh(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];o.set(_n(l,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;lie.set(this.visualElement,this);const t=this.visualElement.current,n=Zf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();jl(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()),Sn.read(r);const a=yd(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(zi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=b4,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Yh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fie(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class die extends Vo{constructor(t){super(t),this.removeGroupControls=es,this.removeListeners=es,this.controls=new cie(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||es}unmount(){this.removeGroupControls(),this.removeListeners()}}const PT=e=>(t,n)=>{e&&Sn.postRender(()=>e(t,n))};class hie extends Vo{constructor(){super(...arguments),this.removePointerDownListener=es}onPointerDown(t){this.session=new DO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:SO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:PT(t),onStart:PT(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&Sn.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Zf(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 Cp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _T(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=_T(e,t.target.x),r=_T(e,t.target.y);return`${n}% ${r}%`}},pie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ro.parse(e);if(i.length>5)return r;const s=Ro.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const d=_n(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),s(i)}};let MT=!1;class mie extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Ine(gie),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),MT&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Cp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,MT=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Sn.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),F$.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]=Pne(),r=A.useContext(a7);return la.jsx(mie,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(lO),isPresent:t,safeToRemove:n})}const gie={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:pie};function vie(e,t,n){const r=wr(e)?e:qu(e);return r.start(U$("",r,t,n)),r.animation}const yie=(e,t)=>e.depth-t.depth;class bie{constructor(){this.children=[],this.isDirty=!1}add(t){h$(this.children,t),this.isDirty=!0}remove(t){p$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yie),this.isDirty=!1,this.children.forEach(t)}}function $ie(e,t){const n=ui.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ja(r),e(s-t))};return Sn.setup(r,!0),()=>Ja(r)}const PO=["TopLeft","TopRight","BottomLeft","BottomRight"],xie=PO.length,FT=e=>typeof e=="string"?parseFloat(e):e,RT=e=>typeof e=="number"||Dt.test(e);function wie(e,t,n,r,i,s){i?(e.opacity=_n(0,n.opacity??1,Cie(r)),e.opacityExit=_n(t.opacity??1,0,Eie(r))):s&&(e.opacity=_n(t.opacity??1,n.opacity??1,r));for(let a=0;a<xie;a++){const o=`border${PO[a]}Radius`;let l=kT(t,o),d=kT(n,o);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||RT(l)===RT(d)?(e[o]=Math.max(_n(FT(l),FT(d),r),0),(oa.test(d)||oa.test(l))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=_n(t.rotate||0,n.rotate||0,r))}function kT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Cie=_O(0,.5,y7),Eie=_O(.5,.95,es);function _O(e,t,n){return r=>r<e?0:r>t?1:n(dd(e,t,r))}function OT(e,t){e.min=t.min,e.max=t.max}function ji(e,t){OT(e.x,t.x),OT(e.y,t.y)}function IT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function LT(e,t,n,r,i){return e-=t,e=um(e,1/n,r),i!==void 0&&(e=um(e,1/i,r)),e}function Sie(e,t=0,n=1,r=.5,i,s=e,a=e){if(oa.test(t)&&(t=parseFloat(t),t=_n(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=_n(s.min,s.max,r);e===s&&(o-=t),e.min=LT(e.min,t,n,o,i),e.max=LT(e.max,t,n,o,i)}function VT(e,t,[n,r,i],s,a){Sie(e,t[n],t[r],t[i],t.scale,s,a)}const Die=["x","scaleX","originX"],Aie=["y","scaleY","originY"];function BT(e,t,n,r){VT(e.x,t,Die,n?n.x:void 0,r?r.x:void 0),VT(e.y,t,Aie,n?n.y:void 0,r?r.y:void 0)}function NT(e){return e.translate===0&&e.scale===1}function MO(e){return NT(e.x)&&NT(e.y)}function jT(e,t){return e.min===t.min&&e.max===t.max}function Tie(e,t){return jT(e.x,t.x)&&jT(e.y,t.y)}function KT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function FO(e,t){return KT(e.x,t.x)&&KT(e.y,t.y)}function UT(e){return zr(e.x)/zr(e.y)}function zT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Pie{constructor(){this.members=[]}add(t){h$(this.members,t),t.scheduleRender()}remove(t){if(p$(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 _ie(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}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:w}=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) `),w&&(r+=`skewY(${w}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const S1=["","X","Y","Z"],Mie=1e3;let Fie=0;function D1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function RO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Sn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&RO(r)}function kO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t==null?void 0:t()){this.id=Fie++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Oie),this.nodes.forEach(Bie),this.nodes.forEach(Nie),this.nodes.forEach(Iie)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new bie)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new g$),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=X7(a)&&!Sne(a),this.instance=a;const{layoutId:o,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;Sn.read(()=>{m=window.innerWidth}),e(a,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=$ie(g,250),Cp.hasAnimatedSinceResize&&(Cp.hasAnimatedSinceResize=!1,this.nodes.forEach(HT)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&d&&(o||l)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||qie,{onLayoutAnimationStart:$,onLayoutAnimationComplete:D}=d.getProps(),C=!this.targetLayout||!FO(this.targetLayout,b),E=!m&&g;if(this.options.layoutRoot||this.resumeFrom||E||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={..._$(w,"layout"),onPlay:$,onComplete:D};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||HT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ja(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(jie),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&RO(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:o,layout:l}=this.options;if(o===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(WT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Vie),this.nodes.forEach(Rie),this.nodes.forEach(kie)):this.nodes.forEach(WT),this.clearAllSnapshots();const o=ui.now();xr.delta=Za(0,1e3/60,o-xr.timestamp),xr.timestamp=o,xr.isProcessing=!0,m1.update.process(xr),m1.preRender.process(xr),m1.render.process(xr),xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,F$.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lie),this.sharedNodes.forEach(Kie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Sn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Sn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zr(this.snapshot.measuredBox.x)&&!zr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Yn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!MO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&this.instance&&(o||pu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Wie(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return Yn();const o=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Hie))){const{scroll:h}=this.root;h&&(Kl(o.x,h.offset.x),Kl(o.y,h.offset.y))}return o}removeElementScroll(a){var l;const o=Yn();if(ji(o,a),(l=this.scroll)!=null&&l.wasRoot)return o;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&&ji(o,a),Kl(o.x,m.offset.x),Kl(o.y,m.offset.y))}return o}applyTransform(a,o=!1){const l=Yn();ji(l,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ul(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),pu(h.latestValues)&&Ul(l,h.latestValues)}return pu(this.latestValues)&&Ul(l,this.latestValues),l}removeTransform(a){const o=Yn();ji(o,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!pu(d.latestValues))continue;h4(d.latestValues)&&d.updateSnapshot();const h=Yn(),m=d.measurePageBox();ji(h,m),BT(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return pu(this.latestValues)&&BT(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==xr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var g;const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=xr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yn(),this.relativeTargetOrigin=Yn(),Jf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yn(),this.targetWithTransforms=Yn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Qre(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ji(this.target,this.layout.layoutBox),hO(this.target,this.targetDelta)):ji(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=Yn(),this.relativeTargetOrigin=Yn(),Jf(this.relativeTargetOrigin,this.target,b.target),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||h4(this.parent.latestValues)||dO(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 w;const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===xr.timestamp&&(l=!1),l)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;ji(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;cre(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Yn());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(IT(this.prevProjectionDelta.x,this.projectionDelta.x),IT(this.prevProjectionDelta.y,this.projectionDelta.y)),Xf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!zT(this.projectionDelta.x,this.prevProjectionDelta.x)||!zT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var o;if((o=this.options.visualElement)==null||o.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zl(),this.projectionDelta=zl(),this.projectionDeltaWithTransform=zl()}setAnimationOrigin(a,o=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=zl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Yn(),b=l?l.source:void 0,w=this.layout?this.layout.source:void 0,$=b!==w,D=this.getStack(),C=!D||D.members.length<=1,E=!!($&&!C&&this.options.crossfade===!0&&!this.path.some(zie));this.animationProgress=0;let S;this.mixTargetDelta=k=>{const P=k/1e3;GT(m.x,a.x,P),GT(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Uie(this.relativeTarget,this.relativeTargetOrigin,g,P),S&&Tie(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Yn()),ji(S,this.relativeTarget)),$&&(this.animationValues=h,wie(h,d,this.latestValues,P,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var o,l,d;this.notifyListeners("animationStart"),(o=this.currentAnimation)==null||o.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Ja(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Sn.update(()=>{Cp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qu(0)),this.currentAnimation=vie(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),a.onUpdate&&a.onUpdate(h)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mie),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:d,latestValues:h}=a;if(!(!o||!l||!d)){if(this!==a&&this.layout&&d&&OO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Yn();const m=zr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+m;const g=zr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+g}ji(o,l),Ul(o,h),Xf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Pie),this.sharedNodes.get(a).add(o);const d=o.options.initialPromotionConfig;o.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())==null?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())==null?void 0:o.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const d={};l.z&&D1("z",a,d,this.animationValues);for(let h=0;h<S1.length;h++)D1(`rotate${S1[h]}`,a,d,this.animationValues),D1(`skew${S1[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}applyProjectionStyles(a,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=wp(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=wp(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!pu(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=_ie(this.projectionDeltaWithTransform,this.treeScale,h);l&&(m=l(h,m)),a.transform=m;const{x:g,y:b}=this.projectionDelta;a.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?a.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:a.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in gd){if(h[w]===void 0)continue;const{correct:$,applyTo:D,isCSSVariable:C}=gd[w],E=m==="none"?h[w]:$(h[w],d);if(D){const S=D.length;for(let k=0;k<S;k++)a[D[k]]=E}else C?this.options.visualElement.renderState.vars[w]=E:a[w]=E}this.options.layoutId&&(a.pointerEvents=d===this?wp(o==null?void 0:o.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var o;return(o=a.currentAnimation)==null?void 0:o.stop()}),this.root.nodes.forEach(qT),this.root.sharedNodes.clear()}}}function Rie(e){e.updateLayout()}function kie(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?zi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=zr(g);g.min=r[m].min,g.max=g.min+b}):OO(s,t.layoutBox,r)&&zi(m=>{const g=a?t.measuredBox[m]:t.layoutBox[m],b=zr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const o=zl();Xf(o,r,t.layoutBox);const l=zl();a?Xf(l,e.applyTransform(i,!0),t.measuredBox):Xf(l,r,t.layoutBox);const d=!MO(o);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Yn();Jf(w,t.layoutBox,g.layoutBox);const $=Yn();Jf($,r,b.layoutBox),FO(w,$)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Oie(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 Iie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Lie(e){e.clearSnapshot()}function qT(e){e.clearMeasurements()}function WT(e){e.isLayoutDirty=!1}function Vie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function HT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Bie(e){e.resolveTargetDelta()}function Nie(e){e.calcProjection()}function jie(e){e.resetSkewAndRotation()}function Kie(e){e.removeLeadSnapshot()}function GT(e,t,n){e.translate=_n(t.translate,0,n),e.scale=_n(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function YT(e,t,n,r){e.min=_n(t.min,n.min,r),e.max=_n(t.max,n.max,r)}function Uie(e,t,n,r){YT(e.x,t.x,n.x,r),YT(e.y,t.y,n.y,r)}function zie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qie={duration:.45,ease:[.4,0,.1,1]},ZT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),XT=ZT("applewebkit/")&&!ZT("chrome/")?Math.round:es;function JT(e){e.min=XT(e.min),e.max=XT(e.max)}function Wie(e){JT(e.x),JT(e.y)}function OO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Jre(UT(t),UT(n),.2)}function Hie(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Gie=kO({attachResizeListener:(e,t)=>yd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),A1={current:void 0},IO=kO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!A1.current){const e=new Gie({});e.mount(window),e.setOptions({layoutScroll:!0}),A1.current=e}return A1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Yie={pan:{Feature:hie},drag:{Feature:die,ProjectionNode:IO,MeasureLayout:TO}};function QT(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&&Sn.postRender(()=>s(t,zd(t)))}let Zie=class extends Vo{mount(){const{current:t}=this.node;t&&(this.unmount=$ne(t,(n,r)=>(QT(this.node,r,"Start"),i=>QT(this.node,i,"End"))))}unmount(){}},Xie=class extends Vo{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=jd(yd(this.node.current,"focus",()=>this.onFocus()),yd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function e2(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&&Sn.postRender(()=>s(t,zd(t)))}let Jie=class extends Vo{mount(){const{current:t}=this.node;t&&(this.unmount=Ene(t,(n,r)=>(e2(this.node,r,"Start"),(i,{success:s})=>e2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const $4=new WeakMap,T1=new WeakMap,Qie=e=>{const t=$4.get(e.target);t&&t(e)},ese=e=>{e.forEach(Qie)};function tse({root:e,...t}){const n=e||document;T1.has(n)||T1.set(n,{});const r=T1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ese,{root:e,...t})),r[i]}function nse(e,t,n){const r=tse(t);return $4.set(e,n),r.observe(e),()=>{$4.delete(e),r.unobserve(e)}}const rse={some:0,all:1};let ise=class extends Vo{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:rse[i]},o=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 nse(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sse(t,n))&&this.startObserver()}unmount(){}};function sse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ase={inView:{Feature:ise},tap:{Feature:Jie},focus:{Feature:Xie},hover:{Feature:Zie}},ose={layout:{ProjectionNode:IO,MeasureLayout:TO}},use={...Wre,...ase,...Yie,...ose},LO=ore(use,$re);function VO(e){const t=Nd(()=>qu(e)),{isStatic:n}=A.useContext(k$);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function BO(e,t){const n=VO(t()),r=()=>n.set(t());return r(),o7(()=>{const i=()=>Sn.preRender(r,!1,!0),s=e.map(a=>a.on("change",i));return()=>{s.forEach(a=>a()),Ja(r)}}),n}function lse(e){Yf.current=[],e();const t=BO(Yf.current,e);return Yf.current=void 0,t}function cse(e,t,n,r){if(typeof e=="function")return lse(e);const i=typeof t=="function"?t:Dne(t,n,r);return Array.isArray(e)?t2(e,i):t2([e],([s])=>i(s))}function t2(e,t){const n=Nd(()=>[]);return BO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const NO=A.createContext(null);function fse(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,a=e[i+s];if(!a)return e;const o=e[i],l=a.layout,d=_n(l.min,l.max,.5);return s===1&&o.layout.max+n>d||s===-1&&o.layout.min+n<d?Mee(e,i,i+s):e}function dse({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},a){const o=Nd(()=>LO[t]),l=[],d=A.useRef(!1);As(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex(w=>m===w.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(mse)},updateOrder:(m,g,b)=>{if(d.current)return;const w=fse(l,m,g,b);l!==w&&(d.current=!0,r(w.map(pse).filter($=>i.indexOf($)!==-1)))}};return A.useEffect(()=>{d.current=!1}),la.jsx(o,{...s,ref:a,ignoreStrict:!0,children:la.jsx(NO.Provider,{value:h,children:e})})}const hse=A.forwardRef(dse);function pse(e){return e.value}function mse(e,t){return e.layout.min-t.layout.min}function n2(e,t=0){return wr(e)?e:VO(t)}function gse({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...a},o){const l=Nd(()=>LO[r]),d=A.useContext(NO),h={x:n2(t.x),y:n2(t.y)},m=cse([h.x,h.y],([$,D])=>$||D?1:"unset");As(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return la.jsx(l,{drag:g,...a,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:($,D)=>{const{velocity:C}=D;C[g]&&w(n,h[g].get(),C[g]),i&&i($,D)},onLayoutMeasure:$=>b(n,$),ref:o,ignoreStrict:!0,children:e})}const vse=A.forwardRef(gse);var Ep={exports:{}},yse=Ep.exports,r2;function bse(){return r2||(r2=1,function(e,t){(function(n,r){e.exports=r()})(yse,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 a=i.prototype,o=a.format;s.en.formats=n,a.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=$&&$.toUpperCase();return w||g[$]||n[$]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,S){return E||S.slice(1)})})}(l,d===void 0?{}:d);return o.call(this,h)}}})}(Ep)),Ep.exports}var $se=bse();const xse=fi($se),i2=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},jO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?i2(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>i2(i,n,e))}},wse=(e,t)=>{t.shouldUseNativeValidation&&jO(e,t);const n={};for(const r in e){const i=it(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(Cse(t.names||Object.keys(e),r)){const a=Object.assign({},it(n,r));rn(a,"root",s),rn(n,r,a)}else rn(n,r,s)}return n},Cse=(e,t)=>{const n=s2(t);return e.some(r=>s2(r).match(`^${n}\\.\\d+`))};function s2(e){return e.replace(/\]|\[/g,"")}function Ese(e,t,n){return n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(a,o){try{var l=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return s.shouldUseNativeValidation&&jO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return o(d)}return l&&l.then?l.then(void 0,o):l}(0,function(a){if(!a.inner)throw a;return{values:{},errors:wse((o=a,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(o.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]=D5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var o,l}))}catch(a){return Promise.reject(a)}}}var Kf={exports:{}},Sse=Kf.exports,a2;function Dse(){return a2||(a2=1,function(e,t){(function(n,r){r(t,A)})(Sse,function(n,r){function i(z){return z&&typeof z=="object"&&"default"in z?z:{default:z}}var s=i(r),a=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Yi<"u"?Yi:typeof self<"u"?self:{},o={exports:{}};(function(z,ee){typeof document<"u"&&typeof navigator<"u"&&function(K,O){z.exports=O()}(a,function(){var K="http://www.w3.org/2000/svg",O="",V=!1,te=-999999,j=function(p){V=!!p},le=function(){return V},ue=function(p){O=p},De=function(){return O};function Pe(c){return document.createElement(c)}function Fe(c,p){var v,x=c.length,_;for(v=0;v<x;v+=1){_=c[v].prototype;for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(p.prototype[M]=_[M])}}function We(c){function p(){}return p.prototype=c,p}var Xe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,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,_=this.audios.length;for(x=0;x<_;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}}(),Be=function(){function c(v,x){var _=0,M=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(_=0;_<x;_+=1)M.push(q);return M}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 He(c){return Array.apply(null,{length:c})}var Me=!0,Le=null,Ae="",Ge=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Gt=Math.sqrt,$t=Math.floor,_t=Math.min,Zr=150,en=Math.PI/180,ye=.5519;function Se(c,p,v,x){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=x<0?-1:1}function _e(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 tt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Qe(c,p){this.type=c,this.target=p}function gt(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Rt(c){this.type="configError",this.nativeError=c}var xt=function(){var c=0;return function(){return c+=1,Ae+"__lottie_element_"+c}}();function yn(c,p,v){var x,_,M,q,me,J,be,we;switch(q=Math.floor(c*6),me=c*6-q,J=v*(1-p),be=v*(1-me*p),we=v*(1-(1-me)*p),q%6){case 0:x=v,_=we,M=J;break;case 1:x=be,_=v,M=J;break;case 2:x=J,_=v,M=we;break;case 3:x=J,_=be,M=v;break;case 4:x=we,_=J,M=v;break;case 5:x=v,_=J,M=be;break}return[x,_,M]}function Cr(c,p,v){var x=Math.max(c,p,v),_=Math.min(c,p,v),M=x-_,q,me=x===0?0:M/x,J=x/255;switch(x){case _:q=0;break;case c:q=p-v+M*(p<v?6:0),q/=6*M;break;case p:q=v-c+M*2,q/=6*M;break;case v:q=c-p+M*4,q/=6*M;break}return[q,me,J]}function zt(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),yn(v[0],v[1],v[2])}function Pt(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),yn(v[0],v[1],v[2])}function It(c,p){var v=Cr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),yn(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(x,_,M){return x<0&&(x=0),_<0&&(_=0),M<0&&(M=0),"#"+c[x]+c[_]+c[M]}})();var qt=function(p){Me=!!p},gr=function(){return Me},Xr=function(p){Le=p},di=function(){return Le},kr=function(p){Zr=p},Fs=function(){return Zr},Bo=function(p){Ae=p};function bt(c){return document.createElementNS(K,c)}function hi(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hi=function(v){return typeof v}:hi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},hi(c)}var pa=function(){var c=1,p=[],v,x,_={onmessage:function(){},postMessage:function(Q){v({data:Q})}},M={postMessage:function(Q){_.onmessage({data:Q})}};function q(R){if(window.Worker&&window.Blob&&le()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",R.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=R,_}function me(){x||(x=q(function(Q){function G(){function fe(Ve,$e){var ce,X,ge=Ve.length,je,Oe,lt,At;for(X=0;X<ge;X+=1)if(ce=Ve[X],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Ct=ce.masksProperties;for(Oe=Ct.length,je=0;je<Oe;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}ce.ty===0?(ce.layers=L(ce.refId,$e),fe(ce.layers,$e)):ce.ty===4?N(ce.shapes):ce.ty===5&&ot(ce)}}function W(Ve,$e){if(Ve){var ce=0,X=Ve.length;for(ce=0;ce<X;ce+=1)Ve[ce].t===1&&(Ve[ce].data.layers=L(Ve[ce].data.refId,$e),fe(Ve[ce].data.layers,$e))}}function Y(Ve,$e){for(var ce=0,X=$e.length;ce<X;){if($e[ce].id===Ve)return $e[ce];ce+=1}return null}function L(Ve,$e){var ce=Y(Ve,$e);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function N(Ve){var $e,ce=Ve.length,X,ge;for($e=ce-1;$e>=0;$e-=1)if(Ve[$e].ty==="sh")if(Ve[$e].ks.k.i)H(Ve[$e].ks.k);else for(ge=Ve[$e].ks.k.length,X=0;X<ge;X+=1)Ve[$e].ks.k[X].s&&H(Ve[$e].ks.k[X].s[0]),Ve[$e].ks.k[X].e&&H(Ve[$e].ks.k[X].e[0]);else Ve[$e].ty==="gr"&&N(Ve[$e].it)}function H(Ve){var $e,ce=Ve.i.length;for($e=0;$e<ce;$e+=1)Ve.i[$e][0]+=Ve.v[$e][0],Ve.i[$e][1]+=Ve.v[$e][1],Ve.o[$e][0]+=Ve.v[$e][0],Ve.o[$e][1]+=Ve.v[$e][1]}function ne(Ve,$e){var ce=$e?$e.split("."):[100,100,100];return Ve[0]>ce[0]?!0:ce[0]>Ve[0]?!1:Ve[1]>ce[1]?!0:ce[1]>Ve[1]?!1:Ve[2]>ce[2]?!0:ce[2]>Ve[2]?!1:null}var oe=function(){var Ve=[4,4,14];function $e(X){var ge=X.t.d;X.t.d={k:[{s:ge,t:0}]}}function ce(X){var ge,je=X.length;for(ge=0;ge<je;ge+=1)X[ge].ty===5&&$e(X[ge])}return function(X){if(ne(Ve,X.v)&&(ce(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&ce(X.assets[ge].layers)}}}(),pe=function(){var Ve=[4,7,99];return function($e){if($e.chars&&!ne(Ve,$e.v)){var ce,X=$e.chars.length;for(ce=0;ce<X;ce+=1){var ge=$e.chars[ce];ge.data&&ge.data.shapes&&(N(ge.data.shapes),ge.data.ip=0,ge.data.op=99999,ge.data.st=0,ge.data.sr=1,ge.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$e.chars[ce].t||(ge.data.shapes.push({ty:"no"}),ge.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"})))}}}}(),Ie=function(){var Ve=[5,7,15];function $e(X){var ge=X.t.p;typeof ge.a=="number"&&(ge.a={a:0,k:ge.a}),typeof ge.p=="number"&&(ge.p={a:0,k:ge.p}),typeof ge.r=="number"&&(ge.r={a:0,k:ge.r})}function ce(X){var ge,je=X.length;for(ge=0;ge<je;ge+=1)X[ge].ty===5&&$e(X[ge])}return function(X){if(ne(Ve,X.v)&&(ce(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&ce(X.assets[ge].layers)}}}(),nt=function(){var Ve=[4,1,9];function $e(X){var ge,je=X.length,Oe,lt;for(ge=0;ge<je;ge+=1)if(X[ge].ty==="gr")$e(X[ge].it);else if(X[ge].ty==="fl"||X[ge].ty==="st")if(X[ge].c.k&&X[ge].c.k[0].i)for(lt=X[ge].c.k.length,Oe=0;Oe<lt;Oe+=1)X[ge].c.k[Oe].s&&(X[ge].c.k[Oe].s[0]/=255,X[ge].c.k[Oe].s[1]/=255,X[ge].c.k[Oe].s[2]/=255,X[ge].c.k[Oe].s[3]/=255),X[ge].c.k[Oe].e&&(X[ge].c.k[Oe].e[0]/=255,X[ge].c.k[Oe].e[1]/=255,X[ge].c.k[Oe].e[2]/=255,X[ge].c.k[Oe].e[3]/=255);else X[ge].c.k[0]/=255,X[ge].c.k[1]/=255,X[ge].c.k[2]/=255,X[ge].c.k[3]/=255}function ce(X){var ge,je=X.length;for(ge=0;ge<je;ge+=1)X[ge].ty===4&&$e(X[ge].shapes)}return function(X){if(ne(Ve,X.v)&&(ce(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&ce(X.assets[ge].layers)}}}(),et=function(){var Ve=[4,4,18];function $e(X){var ge,je=X.length,Oe,lt;for(ge=je-1;ge>=0;ge-=1)if(X[ge].ty==="sh")if(X[ge].ks.k.i)X[ge].ks.k.c=X[ge].closed;else for(lt=X[ge].ks.k.length,Oe=0;Oe<lt;Oe+=1)X[ge].ks.k[Oe].s&&(X[ge].ks.k[Oe].s[0].c=X[ge].closed),X[ge].ks.k[Oe].e&&(X[ge].ks.k[Oe].e[0].c=X[ge].closed);else X[ge].ty==="gr"&&$e(X[ge].it)}function ce(X){var ge,je,Oe=X.length,lt,At,Ct,$n;for(je=0;je<Oe;je+=1){if(ge=X[je],ge.hasMask){var Wt=ge.masksProperties;for(At=Wt.length,lt=0;lt<At;lt+=1)if(Wt[lt].pt.k.i)Wt[lt].pt.k.c=Wt[lt].cl;else for($n=Wt[lt].pt.k.length,Ct=0;Ct<$n;Ct+=1)Wt[lt].pt.k[Ct].s&&(Wt[lt].pt.k[Ct].s[0].c=Wt[lt].cl),Wt[lt].pt.k[Ct].e&&(Wt[lt].pt.k[Ct].e[0].c=Wt[lt].cl)}ge.ty===4&&$e(ge.shapes)}}return function(X){if(ne(Ve,X.v)&&(ce(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&ce(X.assets[ge].layers)}}}();function Ne(Ve){Ve.__complete||(nt(Ve),oe(Ve),pe(Ve),Ie(Ve),et(Ve),fe(Ve.layers,Ve.assets),W(Ve.chars,Ve.assets),Ve.__complete=!0)}function ot(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ct={};return ct.completeData=Ne,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Ie,ct.checkShapes=et,ct.completeLayers=fe,ct}if(M.dataManager||(M.dataManager=G()),M.assetLoader||(M.assetLoader=function(){function fe(Y){var L=Y.getResponseHeader("content-type");return L&&Y.responseType==="json"&&L.indexOf("json")!==-1||Y.response&&hi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,L,N,H){var ne,oe=new XMLHttpRequest;try{oe.responseType="json"}catch{}oe.onreadystatechange=function(){if(oe.readyState===4)if(oe.status===200)ne=fe(oe),N(ne);else try{ne=fe(oe),N(ne)}catch(pe){H&&H(pe)}};try{oe.open(["G","E","T"].join(""),Y,!0)}catch{oe.open(["G","E","T"].join(""),L+"/"+Y,!0)}oe.send()}return{load:W}}()),Q.data.type==="loadAnimation")M.assetLoader.load(Q.data.path,Q.data.fullPath,function(fe){M.dataManager.completeData(fe),M.postMessage({id:Q.data.id,payload:fe,status:"success"})},function(){M.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;M.dataManager.completeData(he),M.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&M.assetLoader.load(Q.data.path,Q.data.fullPath,function(fe){M.postMessage({id:Q.data.id,payload:fe,status:"success"})},function(){M.postMessage({id:Q.data.id,status:"error"})})}),x.onmessage=function(R){var Q=R.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(R,Q){c+=1;var G="processId_"+c;return p[G]={onComplete:R,onError:Q},G}function be(R,Q,G){me();var he=J(Q,G);x.postMessage({type:"loadAnimation",path:R,fullPath:window.location.origin+window.location.pathname,id:he})}function we(R,Q,G){me();var he=J(Q,G);x.postMessage({type:"loadData",path:R,fullPath:window.location.origin+window.location.pathname,id:he})}function ke(R,Q,G){me();var he=J(Q,G);x.postMessage({type:"complete",animation:R,id:he})}return{loadAnimation:be,loadData:we,completeAnimation:ke}}(),jc=function(){var c=function(){var W=Pe("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function x(W,Y,L){var N="";if(W.e)N=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),N=Y+H}else N=L,N+=W.u?W.u:"",N+=W.p;return N}function _(W){var Y=0,L=setInterval((function(){var N=W.getBBox();(N.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function M(W){var Y=x(W,this.assetsPath,this.path),L=bt("image");Ge?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){N.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var N={img:L,assetData:W};return N}function q(W){var Y=x(W,this.assetsPath,this.path),L=Pe("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){N.img=c,this._imageLoaded()}).bind(this),!1),L.src=Y;var N={img:L,assetData:W};return N}function me(W){var Y={assetData:W},L=x(W,this.assetsPath,this.path);return pa.loadData(L,(function(N){Y.img=N,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,N=W.length;for(L=0;L<N;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function be(W){this.path=W||""}function we(W){this.assetsPath=W||""}function ke(W){for(var Y=0,L=this.images.length;Y<L;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function R(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,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=_.bind(this),this.createFootageData=me.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:J,setAssetsPath:we,setPath:be,loadedImages:Q,loadedFootages:G,destroy:R,getAsset:ke,createImgData:q,createImageData:M,imageLoaded:p,footageLoaded:v,setCacheType:he},fe}();function Qu(){}Qu.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var x=this._cbs[p],_=0;_<x.length;_+=1)x[_](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,_=this._cbs[p].length;x<_;)this._cbs[p][x]===v&&(this._cbs[p].splice(x,1),x-=1,_-=1),x+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Kc=function(){function c(p){for(var v=p.split(`\r
|
|
135
|
+
`),x={},_,M=0,q=0;q<v.length;q+=1)_=v[q].split(":"),_.length===2&&(x[_[0]]=_[1].trim(),M+=1);if(M===0)throw new Error;return x}return function(p){for(var v=[],x=0;x<p.length;x+=1){var _=p[x],M={time:_.tm,duration:_.dr};try{M.payload=JSON.parse(p[x].cm)}catch{try{M.payload=c(p[x].cm)}catch{M.payload={name:p[x].cm}}}v.push(M)}return v}}(),el=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var x=0,_=this.compositions.length;x<_;){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}}(),No={},tl=function(p,v){No[p]=v};function is(c){return No[c]}function ss(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ss=function(v){return typeof v}:ss=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ss(c)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=xt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=gr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=el(),this.imagePreloader=new jc,this.audioController=Xe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Se("drawnFrame",0,0,0)};Fe([Qu],yt),yt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=is(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")),pa.loadAnimation(c.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(c){pa.completeAnimation(c,this.configAnimation)},yt.prototype.setData=function(c,p){p&&ss(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 _=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:"";_==="false"?v.loop=!1:_==="true"?v.loop=!0:_!==""&&(v.loop=parseInt(_,10));var M=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=M!=="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)},yt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,x=p.length,_=c.layers,M,q=_.length;for(M=0;M<q;M+=1)for(v=0;v<x;){if(p[v].id===_[M].id){p[v]=_[M];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,pa.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=di();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,pa.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=Kc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=di();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,x=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,x)},yt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},yt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},yt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var _=this.getMarkerData(c);_&&this.goToAndStop(_.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var _=this.getMarkerData(c);_&&(_.duration?this.playSegments([_.time,_.time+_.duration],!0):this.goToAndStop(_.time,!0))}else this.goToAndStop(x,p,v);this.play()}},yt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ss(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()},yt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},yt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},yt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},yt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},yt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(c){this.loop=c},yt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},yt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},yt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(c,p,v){try{var x=this.renderer.getElementByPath(c);x.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Se(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 _e(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new tt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Qe(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Se(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 _e(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new tt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Qe(c,this))},yt.prototype.triggerRenderFrameError=function(c){var p=new gt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(c){var p=new Rt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Dn=function(){var c={},p=[],v=0,x=0,_=0,M=!0,q=!1;function me($e){for(var ce=0,X=$e.target;ce<x;)p[ce].animation===X&&(p.splice(ce,1),ce-=1,x-=1,X.isPaused||ke()),ce+=1}function J($e,ce){if(!$e)return null;for(var X=0;X<x;){if(p[X].elem===$e&&p[X].elem!==null)return p[X].animation;X+=1}var ge=new yt;return R(ge,$e),ge.setData($e,ce),ge}function be(){var $e,ce=p.length,X=[];for($e=0;$e<ce;$e+=1)X.push(p[$e].animation);return X}function we(){_+=1,nt()}function ke(){_-=1}function R($e,ce){$e.addEventListener("destroy",me),$e.addEventListener("_active",we),$e.addEventListener("_idle",ke),p.push({elem:ce,animation:$e}),x+=1}function Q($e){var ce=new yt;return R(ce,null),ce.setParams($e),ce}function G($e,ce){var X;for(X=0;X<x;X+=1)p[X].animation.setSpeed($e,ce)}function he($e,ce){var X;for(X=0;X<x;X+=1)p[X].animation.setDirection($e,ce)}function fe($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.play($e)}function W($e){var ce=$e-v,X;for(X=0;X<x;X+=1)p[X].animation.advanceTime(ce);v=$e,_&&!q?window.requestAnimationFrame(W):M=!0}function Y($e){v=$e,window.requestAnimationFrame(W)}function L($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.pause($e)}function N($e,ce,X){var ge;for(ge=0;ge<x;ge+=1)p[ge].animation.goToAndStop($e,ce,X)}function H($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.stop($e)}function ne($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.togglePause($e)}function oe($e){var ce;for(ce=x-1;ce>=0;ce-=1)p[ce].animation.destroy($e)}function pe($e,ce,X){var ge=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,Oe=ge.length;for(je=0;je<Oe;je+=1)X&&ge[je].setAttribute("data-bm-type",X),J(ge[je],$e);if(ce&&Oe===0){X||(X="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var At=Pe("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",X),lt.appendChild(At),J(At,$e)}}function Ie(){var $e;for($e=0;$e<x;$e+=1)p[$e].animation.resize()}function nt(){!q&&_&&M&&(window.requestAnimationFrame(Y),M=!1)}function et(){q=!0}function Ne(){q=!1,nt()}function ot($e,ce){var X;for(X=0;X<x;X+=1)p[X].animation.setVolume($e,ce)}function ct($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.mute($e)}function Ve($e){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.unmute($e)}return c.registerAnimation=J,c.loadAnimation=Q,c.setSpeed=G,c.setDirection=he,c.play=fe,c.pause=L,c.stop=H,c.togglePause=ne,c.searchAnimations=pe,c.resize=Ie,c.goToAndStop=N,c.destroy=oe,c.freeze=et,c.unfreeze=Ne,c.setVolume=ot,c.mute=ct,c.unmute=Ve,c.getRegisteredAnimations=be,c}(),ma=function(){var c={};c.getBezierEasing=v;var p={};function v(Y,L,N,H,ne){var oe=ne||("bez_"+Y+"_"+L+"_"+N+"_"+H).replace(/\./g,"p");if(p[oe])return p[oe];var pe=new W([Y,L,N,H]);return p[oe]=pe,pe}var x=4,_=.001,M=1e-7,q=10,me=11,J=1/(me-1),be=typeof Float32Array=="function";function we(Y,L){return 1-3*L+3*Y}function ke(Y,L){return 3*L-6*Y}function R(Y){return 3*Y}function Q(Y,L,N){return((we(L,N)*Y+ke(L,N))*Y+R(L))*Y}function G(Y,L,N){return 3*we(L,N)*Y*Y+2*ke(L,N)*Y+R(L)}function he(Y,L,N,H,ne){var oe,pe,Ie=0;do pe=L+(N-L)/2,oe=Q(pe,H,ne)-Y,oe>0?N=pe:L=pe;while(Math.abs(oe)>M&&++Ie<q);return pe}function fe(Y,L,N,H){for(var ne=0;ne<x;++ne){var oe=G(L,N,H);if(oe===0)return L;var pe=Q(L,N,H)-Y;L-=pe/oe}return L}function W(Y){this._p=Y,this._mSampleValues=be?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var N=this._p[0],H=this._p[1],ne=this._p[2],oe=this._p[3];return this._precomputed||this._precompute(),N===H&&ne===oe?L:L===0?0:L===1?1:Q(this._getTForX(L),H,oe)},_precompute:function(){var L=this._p[0],N=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==N||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],N=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,L,N)},_getTForX:function(L){for(var N=this._p[0],H=this._p[2],ne=this._mSampleValues,oe=0,pe=1,Ie=me-1;pe!==Ie&&ne[pe]<=L;++pe)oe+=J;--pe;var nt=(L-ne[pe])/(ne[pe+1]-ne[pe]),et=oe+nt*J,Ne=G(et,N,H);return Ne>=_?fe(L,et,N,H):Ne===0?et:he(L,oe,oe+J,N,H)}},c}(),nl=function(){function c(p){return p.concat(He(p.length))}return{double:c}}(),Er=function(){return function(c,p,v){var x=0,_=c,M=He(_),q={newElement:me,release:J};function me(){var be;return x?(x-=1,be=M[x]):be=p(),be}function J(be){x===_&&(M=nl.double(M),_*=2),v&&v(be),M[x]=be,x+=1}return q}}(),rl=function(){function c(){return{addedLength:0,percents:Be("float32",Fs()),lengths:Be("float32",Fs())}}return Er(8,c)}(),il=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var x,_=v.lengths.length;for(x=0;x<_;x+=1)rl.release(v.lengths[x]);v.lengths.length=0}return Er(8,c,p)}();function Uc(){var c=Math;function p(R,Q,G,he,fe,W){var Y=R*he+Q*fe+G*W-fe*he-W*R-G*Q;return Y>-.001&&Y<.001}function v(R,Q,G,he,fe,W,Y,L,N){if(G===0&&W===0&&N===0)return p(R,Q,he,fe,Y,L);var H=c.sqrt(c.pow(he-R,2)+c.pow(fe-Q,2)+c.pow(W-G,2)),ne=c.sqrt(c.pow(Y-R,2)+c.pow(L-Q,2)+c.pow(N-G,2)),oe=c.sqrt(c.pow(Y-he,2)+c.pow(L-fe,2)+c.pow(N-W,2)),pe;return H>ne?H>oe?pe=H-ne-oe:pe=oe-ne-H:oe>ne?pe=oe-ne-H:pe=ne-H-oe,pe>-1e-4&&pe<1e-4}var x=function(){return function(R,Q,G,he){var fe=Fs(),W,Y,L,N,H,ne=0,oe,pe=[],Ie=[],nt=rl.newElement();for(L=G.length,W=0;W<fe;W+=1){for(H=W/(fe-1),oe=0,Y=0;Y<L;Y+=1)N=ht(1-H,3)*R[Y]+3*ht(1-H,2)*H*G[Y]+3*(1-H)*ht(H,2)*he[Y]+ht(H,3)*Q[Y],pe[Y]=N,Ie[Y]!==null&&(oe+=ht(pe[Y]-Ie[Y],2)),Ie[Y]=pe[Y];oe&&(oe=Gt(oe),ne+=oe),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function _(R){var Q=il.newElement(),G=R.c,he=R.v,fe=R.o,W=R.i,Y,L=R._length,N=Q.lengths,H=0;for(Y=0;Y<L-1;Y+=1)N[Y]=x(he[Y],he[Y+1],fe[Y],W[Y+1]),H+=N[Y].addedLength;return G&&L&&(N[Y]=x(he[Y],he[0],fe[Y],W[0]),H+=N[Y].addedLength),Q.totalLength=H,Q}function M(R){this.segmentLength=0,this.points=new Array(R)}function q(R,Q){this.partialLength=R,this.point=Q}var me=function(){var R={};return function(Q,G,he,fe){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!R[W]){var Y=Fs(),L,N,H,ne,oe,pe=0,Ie,nt,et=null;Q.length===2&&(Q[0]!==G[0]||Q[1]!==G[1])&&p(Q[0],Q[1],G[0],G[1],Q[0]+he[0],Q[1]+he[1])&&p(Q[0],Q[1],G[0],G[1],G[0]+fe[0],G[1]+fe[1])&&(Y=2);var Ne=new M(Y);for(H=he.length,L=0;L<Y;L+=1){for(nt=He(H),oe=L/(Y-1),Ie=0,N=0;N<H;N+=1)ne=ht(1-oe,3)*Q[N]+3*ht(1-oe,2)*oe*(Q[N]+he[N])+3*(1-oe)*ht(oe,2)*(G[N]+fe[N])+ht(oe,3)*G[N],nt[N]=ne,et!==null&&(Ie+=ht(nt[N]-et[N],2));Ie=Gt(Ie),pe+=Ie,Ne.points[L]=new q(Ie,nt),et=nt}Ne.segmentLength=pe,R[W]=Ne}return R[W]}}();function J(R,Q){var G=Q.percents,he=Q.lengths,fe=G.length,W=$t((fe-1)*R),Y=R*Q.addedLength,L=0;if(W===fe-1||W===0||Y===he[W])return G[W];for(var N=he[W]>Y?-1:1,H=!0;H;)if(he[W]<=Y&&he[W+1]>Y?(L=(Y-he[W])/(he[W+1]-he[W]),H=!1):W+=N,W<0||W>=fe-1){if(W===fe-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*L}function be(R,Q,G,he,fe,W){var Y=J(fe,W),L=1-Y,N=c.round((L*L*L*R[0]+(Y*L*L+L*Y*L+L*L*Y)*G[0]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[0]+Y*Y*Y*Q[0])*1e3)/1e3,H=c.round((L*L*L*R[1]+(Y*L*L+L*Y*L+L*L*Y)*G[1]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[1]+Y*Y*Y*Q[1])*1e3)/1e3;return[N,H]}var we=Be("float32",8);function ke(R,Q,G,he,fe,W,Y){fe<0?fe=0:fe>1&&(fe=1);var L=J(fe,Y);W=W>1?1:W;var N=J(W,Y),H,ne=R.length,oe=1-L,pe=1-N,Ie=oe*oe*oe,nt=L*oe*oe*3,et=L*L*oe*3,Ne=L*L*L,ot=oe*oe*pe,ct=L*oe*pe+oe*L*pe+oe*oe*N,Ve=L*L*pe+oe*L*N+L*oe*N,$e=L*L*N,ce=oe*pe*pe,X=L*pe*pe+oe*N*pe+oe*pe*N,ge=L*N*pe+oe*N*N+L*pe*N,je=L*N*N,Oe=pe*pe*pe,lt=N*pe*pe+pe*N*pe+pe*pe*N,At=N*N*pe+pe*N*N+N*pe*N,Ct=N*N*N;for(H=0;H<ne;H+=1)we[H*4]=c.round((Ie*R[H]+nt*G[H]+et*he[H]+Ne*Q[H])*1e3)/1e3,we[H*4+1]=c.round((ot*R[H]+ct*G[H]+Ve*he[H]+$e*Q[H])*1e3)/1e3,we[H*4+2]=c.round((ce*R[H]+X*G[H]+ge*he[H]+je*Q[H])*1e3)/1e3,we[H*4+3]=c.round((Oe*R[H]+lt*G[H]+At*he[H]+Ct*Q[H])*1e3)/1e3;return we}return{getSegmentsLength:_,getNewSegment:ke,getPointInSegment:be,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Jr=Uc(),st=function(){var c=te,p=Math.abs;function v(fe,W){var Y=this.offsetTime,L;this.propType==="multidimensional"&&(L=Be("float32",this.pv.length));for(var N=W.lastIndex,H=N,ne=this.keyframes.length-1,oe=!0,pe,Ie,nt;oe;){if(pe=this.keyframes[H],Ie=this.keyframes[H+1],H===ne-1&&fe>=Ie.t-Y){pe.h&&(pe=Ie),N=0;break}if(Ie.t-Y>fe){N=H;break}H<ne-1?H+=1:(N=0,oe=!1)}nt=this.keyframesMetadata[H]||{};var et,Ne,ot,ct,Ve,$e,ce=Ie.t-Y,X=pe.t-Y,ge;if(pe.to){nt.bezierData||(nt.bezierData=Jr.buildBezierData(pe.s,Ie.s||pe.e,pe.to,pe.ti));var je=nt.bezierData;if(fe>=ce||fe<X){var Oe=fe>=ce?je.points.length-1:0;for(Ne=je.points[Oe].point.length,et=0;et<Ne;et+=1)L[et]=je.points[Oe].point[et]}else{nt.__fnct?$e=nt.__fnct:($e=ma.getBezierEasing(pe.o.x,pe.o.y,pe.i.x,pe.i.y,pe.n).get,nt.__fnct=$e),ot=$e((fe-X)/(ce-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<fe&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Ve=W.lastFrame<fe&&W._lastKeyframeIndex===H?W._lastPoint:0,oe=!0,ct=je.points.length;oe;){if(Ct+=je.points[Ve].partialLength,lt===0||ot===0||Ve===je.points.length-1){for(Ne=je.points[Ve].point.length,et=0;et<Ne;et+=1)L[et]=je.points[Ve].point[et];break}else if(lt>=Ct&<<Ct+je.points[Ve+1].partialLength){for(At=(lt-Ct)/je.points[Ve+1].partialLength,Ne=je.points[Ve].point.length,et=0;et<Ne;et+=1)L[et]=je.points[Ve].point[et]+(je.points[Ve+1].point[et]-je.points[Ve].point[et])*At;break}Ve<ct-1?Ve+=1:oe=!1}W._lastPoint=Ve,W._lastAddedLength=Ct-je.points[Ve].partialLength,W._lastKeyframeIndex=H}}else{var $n,Wt,dr,Qn,Nn;if(ne=pe.s.length,ge=Ie.s||pe.e,this.sh&&pe.h!==1)if(fe>=ce)L[0]=ge[0],L[1]=ge[1],L[2]=ge[2];else if(fe<=X)L[0]=pe.s[0],L[1]=pe.s[1],L[2]=pe.s[2];else{var Un=M(pe.s),zn=M(ge),br=(fe-X)/(ce-X);_(L,x(Un,zn,br))}else for(H=0;H<ne;H+=1)pe.h!==1&&(fe>=ce?ot=1:fe<X?ot=0:(pe.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?$e=nt.__fnct[H]:($n=pe.o.x[H]===void 0?pe.o.x[0]:pe.o.x[H],Wt=pe.o.y[H]===void 0?pe.o.y[0]:pe.o.y[H],dr=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Qn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],$e=ma.getBezierEasing($n,Wt,dr,Qn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:($n=pe.o.x,Wt=pe.o.y,dr=pe.i.x,Qn=pe.i.y,$e=ma.getBezierEasing($n,Wt,dr,Qn).get,pe.keyframeMetadata=$e),ot=$e((fe-X)/(ce-X)))),ge=Ie.s||pe.e,Nn=pe.h===1?pe.s[H]:pe.s[H]+(ge[H]-pe.s[H])*ot,this.propType==="multidimensional"?L[H]=Nn:L=Nn}return W.lastIndex=N,L}function x(fe,W,Y){var L=[],N=fe[0],H=fe[1],ne=fe[2],oe=fe[3],pe=W[0],Ie=W[1],nt=W[2],et=W[3],Ne,ot,ct,Ve,$e;return ot=N*pe+H*Ie+ne*nt+oe*et,ot<0&&(ot=-ot,pe=-pe,Ie=-Ie,nt=-nt,et=-et),1-ot>1e-6?(Ne=Math.acos(ot),ct=Math.sin(Ne),Ve=Math.sin((1-Y)*Ne)/ct,$e=Math.sin(Y*Ne)/ct):(Ve=1-Y,$e=Y),L[0]=Ve*N+$e*pe,L[1]=Ve*H+$e*Ie,L[2]=Ve*ne+$e*nt,L[3]=Ve*oe+$e*et,L}function _(fe,W){var Y=W[0],L=W[1],N=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Y*N,1-2*L*L-2*N*N),oe=Math.asin(2*Y*L+2*N*H),pe=Math.atan2(2*Y*H-2*L*N,1-2*Y*Y-2*N*N);fe[0]=ne/en,fe[1]=oe/en,fe[2]=pe/en}function M(fe){var W=fe[0]*en,Y=fe[1]*en,L=fe[2]*en,N=Math.cos(W/2),H=Math.cos(Y/2),ne=Math.cos(L/2),oe=Math.sin(W/2),pe=Math.sin(Y/2),Ie=Math.sin(L/2),nt=N*H*ne-oe*pe*Ie,et=oe*pe*ne+N*H*Ie,Ne=oe*H*ne+N*pe*Ie,ot=N*pe*ne-oe*H*Ie;return[et,Ne,ot,nt]}function q(){var fe=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(fe===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Y&&fe>=Y||this._caching.lastFrame<W&&fe<W))){this._caching.lastFrame>=fe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(fe,this._caching);this.pv=L}return this._caching.lastFrame=fe,this.pv}function me(fe){var W;if(this.propType==="unidimensional")W=fe*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Y=0,L=this.v.length;Y<L;)W=fe[Y]*this.mult,p(this.v[Y]-W)>1e-5&&(this.v[Y]=W,this._mdf=!0),Y+=1}function J(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var fe,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(fe=0;fe<W;fe+=1)Y=this.effectsSequence[fe](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function be(fe){this.effectsSequence.push(fe),this.container.addDynamicProperty(this)}function we(fe,W,Y,L){this.propType="unidimensional",this.mult=Y||1,this.data=W,this.v=Y?W.k*Y:W.k,this.pv=W.k,this._mdf=!1,this.elem=fe,this.container=L,this.comp=fe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=be}function ke(fe,W,Y,L){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=fe,this.container=L,this.comp=fe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var N,H=W.k.length;for(this.v=Be("float32",H),this.pv=Be("float32",H),this.vel=Be("float32",H),N=0;N<H;N+=1)this.v[N]=W.k[N]*this.mult,this.pv[N]=W.k[N];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=be}function R(fe,W,Y,L){this.propType="unidimensional",this.keyframes=W.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=W,this.mult=Y||1,this.elem=fe,this.container=L,this.comp=fe.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=be}function Q(fe,W,Y,L){this.propType="multidimensional";var N,H=W.k.length,ne,oe,pe,Ie;for(N=0;N<H-1;N+=1)W.k[N].to&&W.k[N].s&&W.k[N+1]&&W.k[N+1].s&&(ne=W.k[N].s,oe=W.k[N+1].s,pe=W.k[N].to,Ie=W.k[N].ti,(ne.length===2&&!(ne[0]===oe[0]&&ne[1]===oe[1])&&Jr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],ne[0]+pe[0],ne[1]+pe[1])&&Jr.pointOnLine2D(ne[0],ne[1],oe[0],oe[1],oe[0]+Ie[0],oe[1]+Ie[1])||ne.length===3&&!(ne[0]===oe[0]&&ne[1]===oe[1]&&ne[2]===oe[2])&&Jr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],ne[0]+pe[0],ne[1]+pe[1],ne[2]+pe[2])&&Jr.pointOnLine3D(ne[0],ne[1],ne[2],oe[0],oe[1],oe[2],oe[0]+Ie[0],oe[1]+Ie[1],oe[2]+Ie[2]))&&(W.k[N].to=null,W.k[N].ti=null),ne[0]===oe[0]&&ne[1]===oe[1]&&pe[0]===0&&pe[1]===0&&Ie[0]===0&&Ie[1]===0&&(ne.length===2||ne[2]===oe[2]&&pe[2]===0&&Ie[2]===0)&&(W.k[N].to=null,W.k[N].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=fe,this.container=L,this.comp=fe.comp,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Be("float32",nt),this.pv=Be("float32",nt),N=0;N<nt;N+=1)this.v[N]=c,this.pv[N]=c;this._caching={lastFrame:c,lastIndex:0,value:Be("float32",nt)},this.addEffect=be}function G(fe,W,Y,L,N){var H;if(!W.k.length)H=new we(fe,W,L,N);else if(typeof W.k[0]=="number")H=new ke(fe,W,L,N);else switch(Y){case 0:H=new R(fe,W,L,N);break;case 1:H=new Q(fe,W,L,N);break}return H.effectsSequence.length&&N.addDynamicProperty(H),H}var he={getProp:G};return he}();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 as=function(){function c(){return Be("float32",2)}return Er(8,c)}();function pi(){this.c=!1,this._length=0,this._maxLength=8,this.v=He(this._maxLength),this.o=He(this._maxLength),this.i=He(this._maxLength)}pi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=as.newElement(),this.o[v]=as.newElement(),this.i[v]=as.newElement(),v+=1},pi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},pi.prototype.doubleArrayLength=function(){this.v=this.v.concat(He(this._maxLength)),this.i=this.i.concat(He(this._maxLength)),this.o=this.o.concat(He(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(c,p,v,x,_){var M;switch(this._length=Math.max(this._length,x+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":M=this.v;break;case"i":M=this.i;break;case"o":M=this.o;break;default:M=[];break}(!M[x]||M[x]&&!_)&&(M[x]=as.newElement()),M[x][0]=c,M[x][1]=p},pi.prototype.setTripleAt=function(c,p,v,x,_,M,q,me){this.setXYAt(c,p,"v",q,me),this.setXYAt(v,x,"o",q,me),this.setXYAt(_,M,"i",q,me)},pi.prototype.reverse=function(){var c=new pi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,x=this.i,_=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),_=1);var M=this._length-1,q=this._length,me;for(me=_;me<q;me+=1)c.setTripleAt(p[M][0],p[M][1],x[M][0],x[M][1],v[M][0],v[M][1],me,!1),M-=1;return c},pi.prototype.length=function(){return this._length};var Jn=function(){function c(){return new pi}function p(_){var M=_._length,q;for(q=0;q<M;q+=1)as.release(_.v[q]),as.release(_.i[q]),as.release(_.o[q]),_.v[q]=null,_.i[q]=null,_.o[q]=null;_._length=0,_.c=!1}function v(_){var M=x.newElement(),q,me=_._length===void 0?_.v.length:_._length;for(M.setLength(me),M.c=_.c,q=0;q<me;q+=1)M.setTripleAt(_.v[q][0],_.v[q][1],_.o[q][0],_.o[q][1],_.i[q][0],_.i[q][1],q);return M}var x=Er(4,c,p);return x.clone=v,x}();function jo(){this._length=0,this._maxLength=4,this.shapes=He(this._maxLength)}jo.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(He(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},jo.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Jn.release(this.shapes[c]);this._length=0};var Rs=function(){var c={newShapeCollection:_,release:M},p=0,v=4,x=He(v);function _(){var q;return p?(p-=1,q=x[p]):q=new jo,q}function M(q){var me,J=q._length;for(me=0;me<J;me+=1)Jn.release(q.shapes[me]);q._length=0,p===v&&(x=nl.double(x),v*=2),x[p]=q,p+=1}return c}(),mi=function(){var c=-999999;function p(W,Y,L){var N=L.lastIndex,H,ne,oe,pe,Ie,nt,et,Ne,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],oe=!0,N=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],oe=!0;else{for(var Ve=N,$e=ct.length-1,ce=!0,X,ge,je;ce&&(X=ct[Ve],ge=ct[Ve+1],!(ge.t-this.offsetTime>W));)Ve<$e-1?Ve+=1:ce=!1;if(je=this.keyframesMetadata[Ve]||{},oe=X.h===1,N=Ve,!oe){if(W>=ge.t-this.offsetTime)Ne=1;else if(W<X.t-this.offsetTime)Ne=0;else{var Oe;je.__fnct?Oe=je.__fnct:(Oe=ma.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y).get,je.__fnct=Oe),Ne=Oe((W-(X.t-this.offsetTime))/(ge.t-this.offsetTime-(X.t-this.offsetTime)))}ne=ge.s?ge.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,et=H.i[0].length,L.lastIndex=N,pe=0;pe<nt;pe+=1)for(Ie=0;Ie<et;Ie+=1)ot=oe?H.i[pe][Ie]:H.i[pe][Ie]+(ne.i[pe][Ie]-H.i[pe][Ie])*Ne,Y.i[pe][Ie]=ot,ot=oe?H.o[pe][Ie]:H.o[pe][Ie]+(ne.o[pe][Ie]-H.o[pe][Ie])*Ne,Y.o[pe][Ie]=ot,ot=oe?H.v[pe][Ie]:H.v[pe][Ie]+(ne.v[pe][Ie]-H.v[pe][Ie])*Ne,Y.v[pe][Ie]=ot}function v(){var W=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,N=this._caching.lastFrame;return N!==c&&(N<Y&&W<Y||N>L&&W>L)||(this._caching.lastIndex=N<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function x(){this.paths=this.localShapeCollection}function _(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var L,N=W._length;for(L=0;L<N;L+=1)if(W.v[L][0]!==Y.v[L][0]||W.v[L][1]!==Y.v[L][1]||W.o[L][0]!==Y.o[L][0]||W.o[L][1]!==Y.o[L][1]||W.i[L][0]!==Y.i[L][0]||W.i[L][1]!==Y.i[L][1])return!1;return!0}function M(W){_(this.v,W)||(this.v=Jn.clone(W),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 W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Y,L=this.effectsSequence.length;for(Y=0;Y<L;Y+=1)W=this.effectsSequence[Y](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function me(W,Y,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var N=L===3?Y.pt.k:Y.ks.k;this.v=Jn.clone(N),this.pv=Jn.clone(this.v),this.localShapeCollection=Rs.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=x,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=M,me.prototype.addEffect=J;function be(W,Y,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var N=this.keyframes[0].s[0].i.length;this.v=Jn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,N),this.pv=Jn.clone(this.v),this.localShapeCollection=Rs.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)]}be.prototype.getValue=q,be.prototype.interpolateShape=p,be.prototype.setVValue=M,be.prototype.addEffect=J;var we=function(){var W=ye;function Y(L,N){this.v=Jn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Rs.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=N.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=st.getProp(L,N.p,1,0,this),this.s=st.getProp(L,N.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.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 N=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,oe=this.s.v[1]/2,pe=this.d!==3,Ie=this.v;Ie.v[0][0]=N,Ie.v[0][1]=H-oe,Ie.v[1][0]=pe?N+ne:N-ne,Ie.v[1][1]=H,Ie.v[2][0]=N,Ie.v[2][1]=H+oe,Ie.v[3][0]=pe?N-ne:N+ne,Ie.v[3][1]=H,Ie.i[0][0]=pe?N-ne*W:N+ne*W,Ie.i[0][1]=H-oe,Ie.i[1][0]=pe?N+ne:N-ne,Ie.i[1][1]=H-oe*W,Ie.i[2][0]=pe?N+ne*W:N-ne*W,Ie.i[2][1]=H+oe,Ie.i[3][0]=pe?N-ne:N+ne,Ie.i[3][1]=H+oe*W,Ie.o[0][0]=pe?N+ne*W:N-ne*W,Ie.o[0][1]=H-oe,Ie.o[1][0]=pe?N+ne:N-ne,Ie.o[1][1]=H+oe*W,Ie.o[2][0]=pe?N-ne*W:N+ne*W,Ie.o[2][1]=H+oe,Ie.o[3][0]=pe?N-ne:N+ne,Ie.o[3][1]=H-oe*W}},Fe([dn],Y),Y}(),ke=function(){function W(Y,L){this.v=Jn.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),L.sy===1?(this.ir=st.getProp(Y,L.ir,0,0,this),this.is=st.getProp(Y,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(Y,L.pt,0,0,this),this.p=st.getProp(Y,L.p,1,0,this),this.r=st.getProp(Y,L.r,0,en,this),this.or=st.getProp(Y,L.or,0,0,this),this.os=st.getProp(Y,L.os,0,.01,this),this.localShapeCollection=Rs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,N=Math.PI*2/L,H=!0,ne=this.or.v,oe=this.ir.v,pe=this.os.v,Ie=this.is.v,nt=2*Math.PI*ne/(L*2),et=2*Math.PI*oe/(L*2),Ne,ot,ct,Ve,$e=-Math.PI/2;$e+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ne=0;Ne<L;Ne+=1){ot=H?ne:oe,ct=H?pe:Ie,Ve=H?nt:et;var X=ot*Math.cos($e),ge=ot*Math.sin($e),je=X===0&&ge===0?0:ge/Math.sqrt(X*X+ge*ge),Oe=X===0&&ge===0?0:-X/Math.sqrt(X*X+ge*ge);X+=+this.p.v[0],ge+=+this.p.v[1],this.v.setTripleAt(X,ge,X-je*Ve*ct*ce,ge-Oe*Ve*ct*ce,X+je*Ve*ct*ce,ge+Oe*Ve*ct*ce,Ne,!0),H=!H,$e+=N*ce}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),N=Math.PI*2/L,H=this.or.v,ne=this.os.v,oe=2*Math.PI*H/(L*4),pe,Ie=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Ie+=this.r.v,this.v._length=0,pe=0;pe<L;pe+=1){var et=H*Math.cos(Ie),Ne=H*Math.sin(Ie),ot=et===0&&Ne===0?0:Ne/Math.sqrt(et*et+Ne*Ne),ct=et===0&&Ne===0?0:-et/Math.sqrt(et*et+Ne*Ne);et+=+this.p.v[0],Ne+=+this.p.v[1],this.v.setTripleAt(et,Ne,et-ot*oe*ne*nt,Ne-ct*oe*ne*nt,et+ot*oe*ne*nt,Ne+ct*oe*ne*nt,pe,!0),Ie+=N*nt}this.paths.length=0,this.paths[0]=this.v}},Fe([dn],W),W}(),R=function(){function W(Y,L){this.v=Jn.newElement(),this.v.c=!0,this.localShapeCollection=Rs.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),this.p=st.getProp(Y,L.p,1,0,this),this.s=st.getProp(Y,L.s,1,0,this),this.r=st.getProp(Y,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],N=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,oe=_t(H,ne,this.r.v),pe=oe*(1-ye);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,N-ne+oe,L+H,N-ne+oe,L+H,N-ne+pe,0,!0),this.v.setTripleAt(L+H,N+ne-oe,L+H,N+ne-pe,L+H,N+ne-oe,1,!0),oe!==0?(this.v.setTripleAt(L+H-oe,N+ne,L+H-oe,N+ne,L+H-pe,N+ne,2,!0),this.v.setTripleAt(L-H+oe,N+ne,L-H+pe,N+ne,L-H+oe,N+ne,3,!0),this.v.setTripleAt(L-H,N+ne-oe,L-H,N+ne-oe,L-H,N+ne-pe,4,!0),this.v.setTripleAt(L-H,N-ne+oe,L-H,N-ne+pe,L-H,N-ne+oe,5,!0),this.v.setTripleAt(L-H+oe,N-ne,L-H+oe,N-ne,L-H+pe,N-ne,6,!0),this.v.setTripleAt(L+H-oe,N-ne,L+H-pe,N-ne,L+H-oe,N-ne,7,!0)):(this.v.setTripleAt(L-H,N+ne,L-H+pe,N+ne,L-H,N+ne,2),this.v.setTripleAt(L-H,N-ne,L-H,N-ne+pe,L-H,N-ne,3))):(this.v.setTripleAt(L+H,N-ne+oe,L+H,N-ne+pe,L+H,N-ne+oe,0,!0),oe!==0?(this.v.setTripleAt(L+H-oe,N-ne,L+H-oe,N-ne,L+H-pe,N-ne,1,!0),this.v.setTripleAt(L-H+oe,N-ne,L-H+pe,N-ne,L-H+oe,N-ne,2,!0),this.v.setTripleAt(L-H,N-ne+oe,L-H,N-ne+oe,L-H,N-ne+pe,3,!0),this.v.setTripleAt(L-H,N+ne-oe,L-H,N+ne-pe,L-H,N+ne-oe,4,!0),this.v.setTripleAt(L-H+oe,N+ne,L-H+oe,N+ne,L-H+pe,N+ne,5,!0),this.v.setTripleAt(L+H-oe,N+ne,L+H-pe,N+ne,L+H-oe,N+ne,6,!0),this.v.setTripleAt(L+H,N+ne-oe,L+H,N+ne-oe,L+H,N+ne-pe,7,!0)):(this.v.setTripleAt(L-H,N-ne,L-H+pe,N-ne,L-H,N-ne,1,!0),this.v.setTripleAt(L-H,N+ne,L-H,N+ne-pe,L-H,N+ne,2,!0),this.v.setTripleAt(L+H,N+ne,L+H-pe,N+ne,L+H,N+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:x},Fe([dn],W),W}();function Q(W,Y,L){var N;if(L===3||L===4){var H=L===3?Y.pt:Y.ks,ne=H.k;ne.length?N=new be(W,Y,L):N=new me(W,Y,L)}else L===5?N=new R(W,Y):L===6?N=new we(W,Y):L===7&&(N=new ke(W,Y));return N.k&&W.addDynamicProperty(N),N}function G(){return me}function he(){return be}var fe={};return fe.getShapeProp=Q,fe.getConstructorFunction=G,fe.getKeyframedConstructorFunction=he,fe}();/*!
|
|
136
|
+
Transformation Matrix v2.0
|
|
137
|
+
(c) Epistemex 2014-2015
|
|
138
|
+
www.epistemex.com
|
|
139
|
+
By Ken Fyrstenberg
|
|
140
|
+
Contributions by leeoniya.
|
|
141
|
+
License: MIT, header required.
|
|
142
|
+
*/var Ln=function(){var c=Math.cos,p=Math.sin,v=Math.tan,x=Math.round;function _(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function M(ce){if(ce===0)return this;var X=c(ce),ge=p(ce);return this._t(X,-ge,0,0,ge,X,0,0,0,0,1,0,0,0,0,1)}function q(ce){if(ce===0)return this;var X=c(ce),ge=p(ce);return this._t(1,0,0,0,0,X,-ge,0,0,ge,X,0,0,0,0,1)}function me(ce){if(ce===0)return this;var X=c(ce),ge=p(ce);return this._t(X,0,ge,0,0,1,0,0,-ge,0,X,0,0,0,0,1)}function J(ce){if(ce===0)return this;var X=c(ce),ge=p(ce);return this._t(X,-ge,0,0,ge,X,0,0,0,0,1,0,0,0,0,1)}function be(ce,X){return this._t(1,X,ce,1,0,0)}function we(ce,X){return this.shear(v(ce),v(X))}function ke(ce,X){var ge=c(X),je=p(X);return this._t(ge,je,0,0,-je,ge,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(ge,-je,0,0,je,ge,0,0,0,0,1,0,0,0,0,1)}function R(ce,X,ge){return!ge&&ge!==0&&(ge=1),ce===1&&X===1&&ge===1?this:this._t(ce,0,0,0,0,X,0,0,0,0,ge,0,0,0,0,1)}function Q(ce,X,ge,je,Oe,lt,At,Ct,$n,Wt,dr,Qn,Nn,Un,zn,br){return this.props[0]=ce,this.props[1]=X,this.props[2]=ge,this.props[3]=je,this.props[4]=Oe,this.props[5]=lt,this.props[6]=At,this.props[7]=Ct,this.props[8]=$n,this.props[9]=Wt,this.props[10]=dr,this.props[11]=Qn,this.props[12]=Nn,this.props[13]=Un,this.props[14]=zn,this.props[15]=br,this}function G(ce,X,ge){return ge=ge||0,ce!==0||X!==0||ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,X,ge,1):this}function he(ce,X,ge,je,Oe,lt,At,Ct,$n,Wt,dr,Qn,Nn,Un,zn,br){var ft=this.props;if(ce===1&&X===0&&ge===0&&je===0&&Oe===0&<===1&&At===0&&Ct===0&&$n===0&&Wt===0&&dr===1&&Qn===0)return ft[12]=ft[12]*ce+ft[15]*Nn,ft[13]=ft[13]*lt+ft[15]*Un,ft[14]=ft[14]*dr+ft[15]*zn,ft[15]*=br,this._identityCalculated=!1,this;var fn=ft[0],ei=ft[1],ki=ft[2],cs=ft[3],yi=ft[4],fs=ft[5],ds=ft[6],Zt=ft[7],xn=ft[8],Ks=ft[9],bi=ft[10],hs=ft[11],$i=ft[12],ps=ft[13],Us=ft[14],lo=ft[15];return ft[0]=fn*ce+ei*Oe+ki*$n+cs*Nn,ft[1]=fn*X+ei*lt+ki*Wt+cs*Un,ft[2]=fn*ge+ei*At+ki*dr+cs*zn,ft[3]=fn*je+ei*Ct+ki*Qn+cs*br,ft[4]=yi*ce+fs*Oe+ds*$n+Zt*Nn,ft[5]=yi*X+fs*lt+ds*Wt+Zt*Un,ft[6]=yi*ge+fs*At+ds*dr+Zt*zn,ft[7]=yi*je+fs*Ct+ds*Qn+Zt*br,ft[8]=xn*ce+Ks*Oe+bi*$n+hs*Nn,ft[9]=xn*X+Ks*lt+bi*Wt+hs*Un,ft[10]=xn*ge+Ks*At+bi*dr+hs*zn,ft[11]=xn*je+Ks*Ct+bi*Qn+hs*br,ft[12]=$i*ce+ps*Oe+Us*$n+lo*Nn,ft[13]=$i*X+ps*lt+Us*Wt+lo*Un,ft[14]=$i*ge+ps*At+Us*dr+lo*zn,ft[15]=$i*je+ps*Ct+Us*Qn+lo*br,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 W(ce){for(var X=0;X<16;){if(ce.props[X]!==this.props[X])return!1;X+=1}return!0}function Y(ce){var X;for(X=0;X<16;X+=1)ce.props[X]=this.props[X];return ce}function L(ce){var X;for(X=0;X<16;X+=1)this.props[X]=ce[X]}function N(ce,X,ge){return{x:ce*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12],y:ce*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13],z:ce*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]}}function H(ce,X,ge){return ce*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12]}function ne(ce,X,ge){return ce*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13]}function oe(ce,X,ge){return ce*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]}function pe(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],X=this.props[5]/ce,ge=-this.props[1]/ce,je=-this.props[4]/ce,Oe=this.props[0]/ce,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Ct=new Ln;return Ct.props[0]=X,Ct.props[1]=ge,Ct.props[4]=je,Ct.props[5]=Oe,Ct.props[12]=lt,Ct.props[13]=At,Ct}function Ie(ce){var X=this.getInverseMatrix();return X.applyToPointArray(ce[0],ce[1],ce[2]||0)}function nt(ce){var X,ge=ce.length,je=[];for(X=0;X<ge;X+=1)je[X]=Ie(ce[X]);return je}function et(ce,X,ge){var je=Be("float32",6);if(this.isIdentity())je[0]=ce[0],je[1]=ce[1],je[2]=X[0],je[3]=X[1],je[4]=ge[0],je[5]=ge[1];else{var Oe=this.props[0],lt=this.props[1],At=this.props[4],Ct=this.props[5],$n=this.props[12],Wt=this.props[13];je[0]=ce[0]*Oe+ce[1]*At+$n,je[1]=ce[0]*lt+ce[1]*Ct+Wt,je[2]=X[0]*Oe+X[1]*At+$n,je[3]=X[0]*lt+X[1]*Ct+Wt,je[4]=ge[0]*Oe+ge[1]*At+$n,je[5]=ge[0]*lt+ge[1]*Ct+Wt}return je}function Ne(ce,X,ge){var je;return this.isIdentity()?je=[ce,X,ge]:je=[ce*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12],ce*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13],ce*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]],je}function ot(ce,X){if(this.isIdentity())return ce+","+X;var ge=this.props;return Math.round((ce*ge[0]+X*ge[4]+ge[12])*100)/100+","+Math.round((ce*ge[1]+X*ge[5]+ge[13])*100)/100}function ct(){for(var ce=0,X=this.props,ge="matrix3d(",je=1e4;ce<16;)ge+=x(X[ce]*je)/je,ge+=ce===15?")":",",ce+=1;return ge}function Ve(ce){var X=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?x(ce*X)/X:ce}function $e(){var ce=this.props,X=Ve(ce[0]),ge=Ve(ce[1]),je=Ve(ce[4]),Oe=Ve(ce[5]),lt=Ve(ce[12]),At=Ve(ce[13]);return"matrix("+X+","+ge+","+je+","+Oe+","+lt+","+At+")"}return function(){this.reset=_,this.rotate=M,this.rotateX=q,this.rotateY=me,this.rotateZ=J,this.skew=we,this.skewFromAxis=ke,this.shear=be,this.scale=R,this.setTransform=Q,this.translate=G,this.transform=he,this.applyToPoint=N,this.applyToX=H,this.applyToY=ne,this.applyToZ=oe,this.applyToPointArray=Ne,this.applyToTriplePoints=et,this.applyToPointStringified=ot,this.toCSS=ct,this.to2dCSS=$e,this.clone=Y,this.cloneFromProps=L,this.equals=W,this.inversePoints=nt,this.inversePoint=Ie,this.getInverseMatrix=pe,this._t=this.transform,this.isIdentity=fe,this._identity=!0,this._identityCalculated=!1,this.props=Be("float32",16),this.reset()}}();function ro(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ro=function(v){return typeof v}:ro=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ro(c)}var Kt={};function zc(c){ue(c)}function sl(){Dn.searchAnimations()}function qc(c){qt(c)}function Ko(c){Bo(c)}function ga(c){return Dn.loadAnimation(c)}function al(c){if(typeof c=="string")switch(c){case"high":kr(200);break;default:case"medium":kr(50);break;case"low":kr(10);break}else!isNaN(c)&&c>1&&kr(c)}function Uo(){return typeof navigator<"u"}function Wc(c,p){c==="expressions"&&Xr(p)}function Hc(c){switch(c){case"propertyFactory":return st;case"shapePropertyFactory":return mi;case"matrix":return Ln;default:return null}}Kt.play=Dn.play,Kt.pause=Dn.pause,Kt.setLocationHref=zc,Kt.togglePause=Dn.togglePause,Kt.setSpeed=Dn.setSpeed,Kt.setDirection=Dn.setDirection,Kt.stop=Dn.stop,Kt.searchAnimations=sl,Kt.registerAnimation=Dn.registerAnimation,Kt.loadAnimation=ga,Kt.setSubframeRendering=qc,Kt.resize=Dn.resize,Kt.goToAndStop=Dn.goToAndStop,Kt.destroy=Dn.destroy,Kt.setQuality=al,Kt.inBrowser=Uo,Kt.installPlugin=Wc,Kt.freeze=Dn.freeze,Kt.unfreeze=Dn.unfreeze,Kt.setVolume=Dn.setVolume,Kt.mute=Dn.mute,Kt.unmute=Dn.unmute,Kt.getRegisteredAnimations=Dn.getRegisteredAnimations,Kt.useWebWorker=j,Kt.setIDPrefix=Ko,Kt.__getFactory=Hc,Kt.version="5.10.2";function Gc(){document.readyState==="complete"&&(clearInterval(ll),sl())}function ol(c){for(var p=zo.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 zo="";{var qo=document.getElementsByTagName("script"),va=qo.length-1,ul=qo[va]||{src:""};zo=ul.src?ul.src.replace(/^[^\?]+\??/,""):"",ol("renderer")}var ll=setInterval(Gc,100);try{ro(ee)!=="object"&&(window.bodymovin=Kt)}catch{}var Or=function(){var c={},p={};c.registerModifier=v,c.getModifier=x;function v(_,M){p[_]||(p[_]=M)}function x(_,M,q){return new p[_](M,q)}return c}();function vr(){}vr.prototype.initModifierProperties=function(){},vr.prototype.addShapeToModifier=function(){},vr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Rs.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},vr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=te,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},vr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Fe([dn],vr);function Ir(){}Fe([vr],Ir),Ir.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},Ir.prototype.addShapeToModifier=function(c){c.pathsData=[]},Ir.prototype.calculateShapeEdges=function(c,p,v,x,_){var M=[];p<=1?M.push({s:c,e:p}):c>=1?M.push({s:c-1,e:p-1}):(M.push({s:c,e:1}),M.push({s:0,e:p-1}));var q=[],me,J=M.length,be;for(me=0;me<J;me+=1)if(be=M[me],!(be.e*_<x||be.s*_>x+v)){var we,ke;be.s*_<=x?we=0:we=(be.s*_-x)/v,be.e*_>=x+v?ke=1:ke=(be.e*_-x)/v,q.push([we,ke])}return q.length||q.push([0,0]),q},Ir.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)il.release(c[p]);return c.length=0,c},Ir.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=v,v=_}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var M,q,me=this.shapes.length,J,be,we,ke,R,Q=0;if(v===p)for(q=0;q<me;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<me;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var G=[],he,fe;for(q=0;q<me;q+=1)if(he=this.shapes[q],!he.shape._mdf&&!this._mdf&&!c&&this.m!==2)he.shape.paths=he.localShapeCollection;else{if(M=he.shape.paths,be=M._length,R=0,!he.shape._mdf&&he.pathsData.length)R=he.totalShapeLength;else{for(we=this.releasePathsData(he.pathsData),J=0;J<be;J+=1)ke=Jr.getSegmentsLength(M.shapes[J]),we.push(ke),R+=ke.totalLength;he.totalShapeLength=R,he.pathsData=we}Q+=R,he.shape._mdf=!0}var W=p,Y=v,L=0,N;for(q=me-1;q>=0;q-=1)if(he=this.shapes[q],he.shape._mdf){for(fe=he.localShapeCollection,fe.releaseShapes(),this.m===2&&me>1?(N=this.calculateShapeEdges(p,v,he.totalShapeLength,L,Q),L+=he.totalShapeLength):N=[[W,Y]],be=N.length,J=0;J<be;J+=1){W=N[J][0],Y=N[J][1],G.length=0,Y<=1?G.push({s:he.totalShapeLength*W,e:he.totalShapeLength*Y}):W>=1?G.push({s:he.totalShapeLength*(W-1),e:he.totalShapeLength*(Y-1)}):(G.push({s:he.totalShapeLength*W,e:he.totalShapeLength}),G.push({s:0,e:he.totalShapeLength*(Y-1)}));var H=this.addShapes(he,G[0]);if(G[0].s!==G[0].e){if(G.length>1){var ne=he.shape.paths.shapes[he.shape.paths._length-1];if(ne.c){var oe=H.pop();this.addPaths(H,fe),H=this.addShapes(he,G[1],oe)}else this.addPaths(H,fe),H=this.addShapes(he,G[1])}this.addPaths(H,fe)}}he.shape.paths=fe}}},Ir.prototype.addPaths=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)p.addShape(c[v])},Ir.prototype.addSegment=function(c,p,v,x,_,M,q){_.setXYAt(p[0],p[1],"o",M),_.setXYAt(v[0],v[1],"i",M+1),q&&_.setXYAt(c[0],c[1],"v",M),_.setXYAt(x[0],x[1],"v",M+1)},Ir.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)},Ir.prototype.addShapes=function(c,p,v){var x=c.pathsData,_=c.shape.paths.shapes,M,q=c.shape.paths._length,me,J,be=0,we,ke,R,Q,G=[],he,fe=!0;for(v?(ke=v._length,he=v._length):(v=Jn.newElement(),ke=0,he=0),G.push(v),M=0;M<q;M+=1){for(R=x[M].lengths,v.c=_[M].c,J=_[M].c?R.length:R.length+1,me=1;me<J;me+=1)if(we=R[me-1],be+we.addedLength<p.s)be+=we.addedLength,v.c=!1;else if(be>p.e){v.c=!1;break}else p.s<=be&&p.e>=be+we.addedLength?(this.addSegment(_[M].v[me-1],_[M].o[me-1],_[M].i[me],_[M].v[me],v,ke,fe),fe=!1):(Q=Jr.getNewSegment(_[M].v[me-1],_[M].v[me],_[M].o[me-1],_[M].i[me],(p.s-be)/we.addedLength,(p.e-be)/we.addedLength,R[me-1]),this.addSegmentFromArray(Q,v,ke,fe),fe=!1,v.c=!1),be+=we.addedLength,ke+=1;if(_[M].c&&R.length){if(we=R[me-1],be<=p.e){var W=R[me-1].addedLength;p.s<=be&&p.e>=be+W?(this.addSegment(_[M].v[me-1],_[M].o[me-1],_[M].i[0],_[M].v[0],v,ke,fe),fe=!1):(Q=Jr.getNewSegment(_[M].v[me-1],_[M].v[0],_[M].o[me-1],_[M].i[0],(p.s-be)/W,(p.e-be)/W,R[me-1]),this.addSegmentFromArray(Q,v,ke,fe),fe=!1,v.c=!1)}else v.c=!1;be+=we.addedLength,ke+=1}if(v._length&&(v.setXYAt(v.v[he][0],v.v[he][1],"i",he),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),be>p.e)break;M<q-1&&(v=Jn.newElement(),fe=!0,G.push(v),ke=0)}return G};function ks(){}Fe([vr],ks),ks.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},ks.prototype.processPath=function(c,p){var v=p/100,x=[0,0],_=c._length,M=0;for(M=0;M<_;M+=1)x[0]+=c.v[M][0],x[1]+=c.v[M][1];x[0]/=_,x[1]/=_;var q=Jn.newElement();q.c=c.c;var me,J,be,we,ke,R;for(M=0;M<_;M+=1)me=c.v[M][0]+(x[0]-c.v[M][0])*v,J=c.v[M][1]+(x[1]-c.v[M][1])*v,be=c.o[M][0]+(x[0]-c.o[M][0])*-v,we=c.o[M][1]+(x[1]-c.o[M][1])*-v,ke=c.i[M][0]+(x[0]-c.i[M][0])*-v,R=c.i[M][1]+(x[1]-c.i[M][1])*-v,q.setTripleAt(me,J,be,we,ke,R,M);return q},ks.prototype.processShapes=function(c){var p,v,x=this.shapes.length,_,M,q=this.amount.v;if(q!==0){var me,J;for(v=0;v<x;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,M=me.shape.paths._length,_=0;_<M;_+=1)J.addShape(this.processPath(p[_],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var io=function(){var c=[0,0];function p(J){var be=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||be,this.a&&J.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&J.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&J.skewFromAxis(-this.sk.v,this.sa.v),this.r?J.rotate(-this.r.v):J.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?J.translate(this.px.v,this.py.v,-this.pz.v):J.translate(this.px.v,this.py.v,0):J.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(J){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||J){var be;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 we,ke;if(be=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(we=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/be,0),ke=this.p.getValueAtTime(this.p.keyframes[0].t/be,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(we=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/be,0),ke=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/be,0)):(we=this.p.pv,ke=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/be,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){we=[],ke=[];var R=this.px,Q=this.py;R._caching.lastFrame+R.offsetTime<=R.keyframes[0].t?(we[0]=R.getValueAtTime((R.keyframes[0].t+.01)/be,0),we[1]=Q.getValueAtTime((Q.keyframes[0].t+.01)/be,0),ke[0]=R.getValueAtTime(R.keyframes[0].t/be,0),ke[1]=Q.getValueAtTime(Q.keyframes[0].t/be,0)):R._caching.lastFrame+R.offsetTime>=R.keyframes[R.keyframes.length-1].t?(we[0]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/be,0),we[1]=Q.getValueAtTime(Q.keyframes[Q.keyframes.length-1].t/be,0),ke[0]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/be,0),ke[1]=Q.getValueAtTime((Q.keyframes[Q.keyframes.length-1].t-.01)/be,0)):(we=[R.pv,Q.pv],ke[0]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/be,R.offsetTime),ke[1]=Q.getValueAtTime((Q._caching.lastFrame+Q.offsetTime-.01)/be,Q.offsetTime))}else ke=c,we=ke;this.v.rotate(-Math.atan2(we[1]-ke[1],we[0]-ke[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 _(){}function M(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function q(J,be,we){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=be,this.v=new Ln,this.pre=new Ln,this.appliedTransformations=0,this.initDynamicPropertyContainer(we||J),be.p&&be.p.s?(this.px=st.getProp(J,be.p.x,0,0,this),this.py=st.getProp(J,be.p.y,0,0,this),be.p.z&&(this.pz=st.getProp(J,be.p.z,0,0,this))):this.p=st.getProp(J,be.p||{k:[0,0,0]},1,0,this),be.rx){if(this.rx=st.getProp(J,be.rx,0,en,this),this.ry=st.getProp(J,be.ry,0,en,this),this.rz=st.getProp(J,be.rz,0,en,this),be.or.k[0].ti){var ke,R=be.or.k.length;for(ke=0;ke<R;ke+=1)be.or.k[ke].to=null,be.or.k[ke].ti=null}this.or=st.getProp(J,be.or,1,en,this),this.or.sh=!0}else this.r=st.getProp(J,be.r||{k:0},0,en,this);be.sk&&(this.sk=st.getProp(J,be.sk,0,en,this),this.sa=st.getProp(J,be.sa,0,en,this)),this.a=st.getProp(J,be.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(J,be.s||{k:[100,100,100]},1,.01,this),be.o?this.o=st.getProp(J,be.o,0,.01,J):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:x,autoOrient:_},Fe([dn],q),q.prototype.addDynamicProperty=M,q.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function me(J,be,we){return new q(J,be,we)}return{getTransformProperty:me}}();function yr(){}Fe([vr],yr),yr.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=io.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 Ln,this.rMatrix=new Ln,this.sMatrix=new Ln,this.tMatrix=new Ln,this.matrix=new Ln},yr.prototype.applyTransforms=function(c,p,v,x,_,M){var q=M?-1:1,me=x.s.v[0]+(1-x.s.v[0])*(1-_),J=x.s.v[1]+(1-x.s.v[1])*(1-_);c.translate(x.p.v[0]*q*_,x.p.v[1]*q*_,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.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(M?1/me:me,M?1/J:J),v.translate(x.a.v[0],x.a.v[1],x.a.v[2])},yr.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)},yr.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)},yr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},yr.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)},yr.prototype.processShapes=function(c){var p,v,x,_,M,q=!1;if(this._mdf||c){var me=Math.ceil(this.c.v);if(this._groups.length<me){for(;this._groups.length<me;){var J={it:this.cloneElements(this._elements),ty:"gr"};J.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,J),this._groups.splice(0,0,J),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}M=0;var be;for(x=0;x<=this._groups.length-1;x+=1){if(be=M<me,this._groups[x]._render=be,this.changeGroupRender(this._groups[x].it,be),!be){var we=this.elemsData[x].it,ke=we[we.length-1];ke.transform.op.v!==0?(ke.transform.op._mdf=!0,ke.transform.op.v=0):ke.transform.op._mdf=!1}M+=1}this._currentCopies=me;var R=this.o.v,Q=R%1,G=R>0?Math.floor(R):Math.ceil(R),he=this.pMatrix.props,fe=this.rMatrix.props,W=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Y=0;if(R>0){for(;Y<G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Y+=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Q,!1),Y+=Q)}else if(R<0){for(;Y>G;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Y-=1;Q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Q,!0),Y-=Q)}x=this.data.m===1?0:this._currentCopies-1,_=this.data.m===1?1:-1,M=this._currentCopies;for(var L,N;M;){if(p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,N=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)),Y!==0){for((x!==0&&_===1||x!==this._currentCopies-1&&_===-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(W[0],W[1],W[2],W[3],W[4],W[5],W[6],W[7],W[8],W[9],W[10],W[11],W[12],W[13],W[14],W[15]),this.matrix.transform(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]),L=0;L<N;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<N;L+=1)v[L]=this.matrix.props[L];Y+=1,M-=1,x+=_}}else for(M=this._currentCopies,x=0,_=1;M;)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,M-=1,x+=_;return q},yr.prototype.addShape=function(){};function ya(){}Fe([vr],ya),ya.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},ya.prototype.processPath=function(c,p){var v=Jn.newElement();v.c=c.c;var x,_=c._length,M,q,me,J,be,we,ke=0,R,Q,G,he,fe,W;for(x=0;x<_;x+=1)M=c.v[x],me=c.o[x],q=c.i[x],M[0]===me[0]&&M[1]===me[1]&&M[0]===q[0]&&M[1]===q[1]?(x===0||x===_-1)&&!c.c?(v.setTripleAt(M[0],M[1],me[0],me[1],q[0],q[1],ke),ke+=1):(x===0?J=c.v[_-1]:J=c.v[x-1],be=Math.sqrt(Math.pow(M[0]-J[0],2)+Math.pow(M[1]-J[1],2)),we=be?Math.min(be/2,p)/be:0,fe=M[0]+(J[0]-M[0])*we,R=fe,W=M[1]-(M[1]-J[1])*we,Q=W,G=R-(R-M[0])*ye,he=Q-(Q-M[1])*ye,v.setTripleAt(R,Q,G,he,fe,W,ke),ke+=1,x===_-1?J=c.v[0]:J=c.v[x+1],be=Math.sqrt(Math.pow(M[0]-J[0],2)+Math.pow(M[1]-J[1],2)),we=be?Math.min(be/2,p)/be:0,G=M[0]+(J[0]-M[0])*we,R=G,he=M[1]+(J[1]-M[1])*we,Q=he,fe=R-(R-M[0])*ye,W=Q-(Q-M[1])*ye,v.setTripleAt(R,Q,G,he,fe,W,ke),ke+=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],ke),ke+=1);return v},ya.prototype.processShapes=function(c){var p,v,x=this.shapes.length,_,M,q=this.rd.v;if(q!==0){var me,J;for(v=0;v<x;v+=1){if(me=this.shapes[v],J=me.localShapeCollection,!(!me.shape._mdf&&!this._mdf&&!c))for(J.releaseShapes(),me.shape._mdf=!0,p=me.shape.paths.shapes,M=me.shape.paths._length,_=0;_<M;_+=1)J.addShape(this.processPath(p[_],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ba(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Pi(c){return Math.abs(c)<=1e-5}function gi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[gi(c[0],p[0],v),gi(c[1],p[1],v)]}function _i(c,p,v){if(c===0)return[];var x=p*p-4*c*v;if(x<0)return[];var _=-p/(2*c);if(x===0)return[_];var M=Math.sqrt(x)/(2*c);return[_-M,_+M]}function Wo(c,p,v,x){return[-c+3*p-3*v+x,3*c-6*p+3*v,-3*c+3*p,c]}function cl(c){return new pn(c,c,c,c,!1)}function pn(c,p,v,x,_){_&&os(c,p)&&(p=or(c,x,1/3)),_&&os(v,x)&&(v=or(c,x,2/3));var M=Wo(c[0],p[0],v[0],x[0]),q=Wo(c[1],p[1],v[1],x[1]);this.a=[M[0],q[0]],this.b=[M[1],q[1]],this.c=[M[2],q[2]],this.d=[M[3],q[3]],this.points=[c,p,v,x]}pn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},pn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},pn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},pn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},pn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Pi(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 Pi(x)?x>0&&x<1?[p]:[]:[p-x,p+x].filter(function(_){return _>0&&_<1})},pn.prototype.split=function(c){if(c<=0)return[cl(this.points[0]),this];if(c>=1)return[this,cl(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),_=or(p,v,c),M=or(v,x,c),q=or(_,M,c);return[new pn(this.points[0],p,_,q,!0),new pn(q,M,x,this.points[3],!0)]};function Ho(c,p){var v=c.points[0][p],x=c.points[c.points.length-1][p];if(v>x){var _=x;x=v,v=_}for(var M=_i(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<M.length;q+=1)if(M[q]>0&&M[q]<1){var me=c.point(M[q])[p];me<v?v=me:me>x&&(x=me)}return{min:v,max:x}}pn.prototype.bounds=function(){return{x:Ho(this,0),y:Ho(this,1)}},pn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function $a(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 Go(c){var p=c.bez.split(.5);return[$a(p[0],c.t1,c.t),$a(p[1],c.t,c.t2)]}function fl(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 Lr(c,p,v,x,_,M){if(fl(c,p)){if(v>=M||c.width<=x&&c.height<=x&&p.width<=x&&p.height<=x){_.push([c.t,p.t]);return}var q=Go(c),me=Go(p);Lr(q[0],me[0],v+1,x,_,M),Lr(q[0],me[1],v+1,x,_,M),Lr(q[1],me[0],v+1,x,_,M),Lr(q[1],me[1],v+1,x,_,M)}}pn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var x=[];return Lr($a(this,0,1),$a(c,0,1),0,p,x,v),x},pn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new pn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},pn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new pn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function Yo(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 Os(c,p,v,x){var _=[c[0],c[1],1],M=[p[0],p[1],1],q=[v[0],v[1],1],me=[x[0],x[1],1],J=Yo(Yo(_,M),Yo(q,me));return Pi(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Is(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function xa(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function os(c,p){return ba(c[0],p[0])&&ba(c[1],p[1])}function wa(){}Fe([vr],wa),wa.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 so(c,p,v,x,_,M,q){var me=v-Math.PI/2,J=v+Math.PI/2,be=p[0]+Math.cos(v)*x*_,we=p[1]-Math.sin(v)*x*_;c.setTripleAt(be,we,be+Math.cos(me)*M,we-Math.sin(me)*M,be+Math.cos(J)*q,we-Math.sin(J)*q,c.length())}function dl(c,p){var v=[p[0]-c[0],p[1]-c[1]],x=-Math.PI*.5,_=[Math.cos(x)*v[0]-Math.sin(x)*v[1],Math.sin(x)*v[0]+Math.cos(x)*v[1]];return _}function Yc(c,p){var v=p===0?c.length()-1:p-1,x=(p+1)%c.length(),_=c.v[v],M=c.v[x],q=dl(_,M);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function Ca(c,p,v,x,_,M,q){var me=Yc(p,v),J=p.v[v%p._length],be=p.v[v===0?p._length-1:v-1],we=p.v[(v+1)%p._length],ke=M===2?Math.sqrt(Math.pow(J[0]-be[0],2)+Math.pow(J[1]-be[1],2)):0,R=M===2?Math.sqrt(Math.pow(J[0]-we[0],2)+Math.pow(J[1]-we[1],2)):0;so(c,p.v[v%p._length],me,q,x,R/((_+1)*2),ke/((_+1)*2))}function Zc(c,p,v,x,_,M){for(var q=0;q<x;q+=1){var me=(q+1)/(x+1),J=_===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,be=p.normalAngle(me),we=p.point(me);so(c,we,be,M,v,J/((x+1)*2),J/((x+1)*2)),M=-M}return M}wa.prototype.processPath=function(c,p,v,x){var _=c._length,M=Jn.newElement();if(M.c=c.c,c.c||(_-=1),_===0)return M;var q=-1,me=pn.shapeSegment(c,0);Ca(M,c,0,p,v,x,q);for(var J=0;J<_;J+=1)q=Zc(M,me,p,v,x,-q),J===_-1&&!c.c?me=null:me=pn.shapeSegment(c,(J+1)%_),Ca(M,c,J+1,p,v,x,q);return M},wa.prototype.processShapes=function(c){var p,v,x=this.shapes.length,_,M,q=this.amplitude.v,me=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(q!==0){var be,we;for(v=0;v<x;v+=1){if(be=this.shapes[v],we=be.localShapeCollection,!(!be.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),be.shape._mdf=!0,p=be.shape.paths.shapes,M=be.shape.paths._length,_=0;_<M;_+=1)we.addShape(this.processPath(p[_],q,me,J));be.shape.paths=be.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ea(c,p,v){var x=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Is(c,x,v),Is(p,x,v)]}function Yt(c,p){var v,x,_,M,q,me,J;J=Ea(c.points[0],c.points[1],p),v=J[0],x=J[1],J=Ea(c.points[1],c.points[2],p),_=J[0],M=J[1],J=Ea(c.points[2],c.points[3],p),q=J[0],me=J[1];var be=Os(v,x,_,M);be===null&&(be=x);var we=Os(q,me,_,M);return we===null&&(we=q),new pn(v,be,we,me)}function tn(c,p,v,x,_){var M=p.points[3],q=v.points[0];if(x===3||os(M,q))return M;if(x===2){var me=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,be=Os(M,Is(M,me+Math.PI/2,100),q,Is(q,me+Math.PI/2,100)),we=be?xa(be,M):xa(M,q)/2,ke=Is(M,me,2*we*ye);return c.setXYAt(ke[0],ke[1],"o",c.length()-1),ke=Is(q,J,2*we*ye),c.setTripleAt(q[0],q[1],q[0],q[1],ke[0],ke[1],c.length()),q}var R=os(M,p.points[2])?p.points[0]:p.points[2],Q=os(q,v.points[1])?v.points[3]:v.points[1],G=Os(R,M,q,Q);return G&&xa(G,M)<_?(c.setTripleAt(G[0],G[1],G[0],G[1],G[0],G[1],c.length()),G):M}function se(c,p){var v=c.intersections(p);return v.length&&ba(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Re(c,p){var v=c.slice(),x=p.slice(),_=se(c[c.length-1],p[0]);return _&&(v[c.length-1]=c[c.length-1].split(_[0])[0],x[0]=p[0].split(_[1])[1]),c.length>1&&p.length>1&&(_=se(c[0],p[p.length-1]),_)?[[c[0].split(_[0])[0]],[p[p.length-1].split(_[1])[1]]]:[v,x]}function ze(c){for(var p,v=1;v<c.length;v+=1)p=Re(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Re(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,_,M,q;if(v.length===0)return[Yt(c,p)];if(v.length===1||ba(v[1],1))return M=c.split(v[0]),x=M[0],_=M[1],[Yt(x,p),Yt(_,p)];M=c.split(v[0]),x=M[0];var me=(v[1]-v[0])/(1-v[0]);return M=M[1].split(me),q=M[0],_=M[1],[Yt(x,p),Yt(q,p),Yt(_,p)]}function bn(){}Fe([vr],bn),bn.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},bn.prototype.processPath=function(c,p,v,x){var _=Jn.newElement();_.c=c.c;var M=c.length();c.c||(M-=1);var q,me,J,be=[];for(q=0;q<M;q+=1)J=pn.shapeSegment(c,q),be.push(pt(J,p));if(!c.c)for(q=M-1;q>=0;q-=1)J=pn.shapeSegmentInverted(c,q),be.push(pt(J,p));be=ze(be);var we=null,ke=null;for(q=0;q<be.length;q+=1){var R=be[q];for(ke&&(we=tn(_,ke,R[0],v,x)),ke=R[R.length-1],me=0;me<R.length;me+=1)J=R[me],we&&os(J.points[0],we)?_.setXYAt(J.points[1][0],J.points[1][1],"o",_.length()-1):_.setTripleAt(J.points[0][0],J.points[0][1],J.points[1][0],J.points[1][1],J.points[0][0],J.points[0][1],_.length()),_.setTripleAt(J.points[3][0],J.points[3][1],J.points[3][0],J.points[3][1],J.points[2][0],J.points[2][1],_.length()),we=J.points[3]}return be.length&&tn(_,ke,be[0][0],v,x),_},bn.prototype.processShapes=function(c){var p,v,x=this.shapes.length,_,M,q=this.amount.v,me=this.miterLimit.v,J=this.lineJoin;if(q!==0){var be,we;for(v=0;v<x;v+=1){if(be=this.shapes[v],we=be.localShapeCollection,!(!be.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),be.shape._mdf=!0,p=be.shape.paths.shapes,M=be.shape.paths._length,_=0;_<M;_+=1)we.addShape(this.processPath(p[_],q,J,me));be.shape.paths=be.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",x="normal",_=p.length,M,q=0;q<_;q+=1)switch(M=p[q].toLowerCase(),M){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 ur=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"],_=[65039,8205];function M(N){var H=N.split(","),ne,oe=H.length,pe=[];for(ne=0;ne<oe;ne+=1)H[ne]!=="sans-serif"&&H[ne]!=="monospace"&&pe.push(H[ne]);return pe.join(",")}function q(N,H){var ne=Pe("span");ne.setAttribute("aria-hidden",!0),ne.style.fontFamily=H;var oe=Pe("span");oe.innerText="giItT1WQy@!-/#",ne.style.position="absolute",ne.style.left="-10000px",ne.style.top="-10000px",ne.style.fontSize="300px",ne.style.fontVariant="normal",ne.style.fontStyle="normal",ne.style.fontWeight="normal",ne.style.letterSpacing="0",ne.appendChild(oe),document.body.appendChild(ne);var pe=oe.offsetWidth;return oe.style.fontFamily=M(N)+", "+H,{node:oe,w:pe,parent:ne}}function me(){var N,H=this.fonts.length,ne,oe,pe=H;for(N=0;N<H;N+=1)this.fonts[N].loaded?pe-=1:this.fonts[N].fOrigin==="n"||this.fonts[N].origin===0?this.fonts[N].loaded=!0:(ne=this.fonts[N].monoCase.node,oe=this.fonts[N].monoCase.w,ne.offsetWidth!==oe?(pe-=1,this.fonts[N].loaded=!0):(ne=this.fonts[N].sansCase.node,oe=this.fonts[N].sansCase.w,ne.offsetWidth!==oe&&(pe-=1,this.fonts[N].loaded=!0)),this.fonts[N].loaded&&(this.fonts[N].sansCase.parent.parentNode.removeChild(this.fonts[N].sansCase.parent),this.fonts[N].monoCase.parent.parentNode.removeChild(this.fonts[N].monoCase.parent)));pe!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(N,H){var ne=document.body&&H?"svg":"canvas",oe,pe=sr(N);if(ne==="svg"){var Ie=bt("text");Ie.style.fontSize="100px",Ie.setAttribute("font-family",N.fFamily),Ie.setAttribute("font-style",pe.style),Ie.setAttribute("font-weight",pe.weight),Ie.textContent="1",N.fClass?(Ie.style.fontFamily="inherit",Ie.setAttribute("class",N.fClass)):Ie.style.fontFamily=N.fFamily,H.appendChild(Ie),oe=Ie}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=pe.style+" "+pe.weight+" 100px "+N.fFamily,oe=nt}function et(Ne){return ne==="svg"?(oe.textContent=Ne,oe.getComputedTextLength()):oe.measureText(Ne).width}return{measureText:et}}function be(N,H){if(!N){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=N.list;return}if(!document.body){this.isLoaded=!0,N.list.forEach(function($e){$e.helper=J($e),$e.cache={}}),this.fonts=N.list;return}var ne=N.list,oe,pe=ne.length,Ie=pe;for(oe=0;oe<pe;oe+=1){var nt=!0,et,Ne;if(ne[oe].loaded=!1,ne[oe].monoCase=q(ne[oe].fFamily,"monospace"),ne[oe].sansCase=q(ne[oe].fFamily,"sans-serif"),!ne[oe].fPath)ne[oe].loaded=!0,Ie-=1;else if(ne[oe].fOrigin==="p"||ne[oe].origin===3){if(et=document.querySelectorAll('style[f-forigin="p"][f-family="'+ne[oe].fFamily+'"], style[f-origin="3"][f-family="'+ne[oe].fFamily+'"]'),et.length>0&&(nt=!1),nt){var ot=Pe("style");ot.setAttribute("f-forigin",ne[oe].fOrigin),ot.setAttribute("f-origin",ne[oe].origin),ot.setAttribute("f-family",ne[oe].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+ne[oe].fFamily+"; font-style: normal; src: url('"+ne[oe].fPath+"');}",H.appendChild(ot)}}else if(ne[oe].fOrigin==="g"||ne[oe].origin===1){for(et=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ne=0;Ne<et.length;Ne+=1)et[Ne].href.indexOf(ne[oe].fPath)!==-1&&(nt=!1);if(nt){var ct=Pe("link");ct.setAttribute("f-forigin",ne[oe].fOrigin),ct.setAttribute("f-origin",ne[oe].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=ne[oe].fPath,document.body.appendChild(ct)}}else if(ne[oe].fOrigin==="t"||ne[oe].origin===2){for(et=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ne=0;Ne<et.length;Ne+=1)ne[oe].fPath===et[Ne].src&&(nt=!1);if(nt){var Ve=Pe("link");Ve.setAttribute("f-forigin",ne[oe].fOrigin),Ve.setAttribute("f-origin",ne[oe].origin),Ve.setAttribute("rel","stylesheet"),Ve.setAttribute("href",ne[oe].fPath),H.appendChild(Ve)}}ne[oe].helper=J(ne[oe],H),ne[oe].cache={},this.fonts.push(ne[oe])}Ie===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function we(N){if(N){this.chars||(this.chars=[]);var H,ne=N.length,oe,pe=this.chars.length,Ie;for(H=0;H<ne;H+=1){for(oe=0,Ie=!1;oe<pe;)this.chars[oe].style===N[H].style&&this.chars[oe].fFamily===N[H].fFamily&&this.chars[oe].ch===N[H].ch&&(Ie=!0),oe+=1;Ie||(this.chars.push(N[H]),pe+=1)}}}function ke(N,H,ne){for(var oe=0,pe=this.chars.length;oe<pe;){if(this.chars[oe].ch===N&&this.chars[oe].style===H&&this.chars[oe].fFamily===ne)return this.chars[oe];oe+=1}return(typeof N=="string"&&N.charCodeAt(0)!==13||!N)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",N,H,ne)),p}function R(N,H,ne){var oe=this.getFontByName(H),pe=N.charCodeAt(0);if(!oe.cache[pe+1]){var Ie=oe.helper;if(N===" "){var nt=Ie.measureText("|"+N+"|"),et=Ie.measureText("||");oe.cache[pe+1]=(nt-et)/100}else oe.cache[pe+1]=Ie.measureText(N)/100}return oe.cache[pe+1]*ne}function Q(N){for(var H=0,ne=this.fonts.length;H<ne;){if(this.fonts[H].fName===N)return this.fonts[H];H+=1}return this.fonts[0]}function G(N,H){var ne=N.toString(16)+H.toString(16);return x.indexOf(ne)!==-1}function he(N,H){return H?N===_[0]&&H===_[1]:N===_[1]}function fe(N){return v.indexOf(N)!==-1}function W(){this.isLoaded=!0}var Y=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)};Y.isModifier=G,Y.isZeroWidthJoiner=he,Y.isCombinedCharacter=fe;var L={addChars:we,addFonts:be,getCharData:ke,getFontByName:Q,measureText:R,checkLoadedFonts:me,setIsLoaded:W};return Y.prototype=L,Y}();function Kn(){}Kn.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 An=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 Mi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Fi(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Zo(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function ao(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function lr(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Sa(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function nh(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function rh(){this.p={}}function Xc(c,p){var v=c.ef||[];this.effectElements=[];var x,_=v.length,M;for(x=0;x<_;x+=1)M=new oo(v[x],p),this.effectElements.push(M)}function oo(c,p){this.init(c,p)}Fe([dn],oo),oo.prototype.getValue=oo.prototype.iterateDynamicProperties,oo.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,x=this.data.ef.length,_,M=this.data.ef;for(v=0;v<x;v+=1){switch(_=null,M[v].ty){case 0:_=new Mi(M[v],p,this);break;case 1:_=new Fi(M[v],p,this);break;case 2:_=new Zo(M[v],p,this);break;case 3:_=new ao(M[v],p,this);break;case 4:case 7:_=new nh(M[v],p,this);break;case 10:_=new lr(M[v],p,this);break;case 11:_=new Sa(M[v],p,this);break;case 5:_=new Xc(M[v],p);break;default:_=new rh(M[v]);break}_&&this.effectElements.push(_)}};function us(){}us.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=An(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=xt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Xc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Vn(){}Vn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var x,_=this.dynamicProperties.length;for(x=0;x<_;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 Ls(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)}Ls.prototype.prepareFrame=function(){},Fe([Kn,us,Vn],Ls),Ls.prototype.getBaseElement=function(){return null},Ls.prototype.renderFrame=function(){},Ls.prototype.destroy=function(){},Ls.prototype.initExpressions=function(){},Ls.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))},Fe([Kn,us,Vn],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 cr(){}cr.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()},cr.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)}},cr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},cr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},cr.prototype.createFootage=function(c){return new Ls(c,this.globalData,this)},cr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},cr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,x,_=this.layers.length;for(p=0;p<v;p+=1)for(x=0;x<_;){if(this.layers[x].id===c[p].id){this.layers[x]=c[p];break}x+=1}},cr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},cr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},cr.prototype.buildElementParenting=function(c,p,v){for(var x=this.elements,_=this.layers,M=0,q=_.length;M<q;)_[M].ind==p&&(!x[M]||x[M]===!0?(this.buildItem(M),this.addPendingElement(c)):(v.push(x[M]),x[M].setAsParent(),_[M].parent!==void 0?this.buildElementParenting(c,_[M].parent,v):c.setHierarchy(v))),M+=1},cr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},cr.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)}},cr.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},cr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var x,_=this.elements.length;for(x=0;x<_;x+=1)if(this.elements[x].data.nm===p){v=this.elements[x];break}}return c.length===0?v:v.getElementByPath(c)},cr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ur,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 Da(){}Da.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?io.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Ln},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,_=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;x<_;){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<_;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,_=this.comp;x;)_.finalTransform?(_.data.hasMask&&v.splice(0,0,_.finalTransform),_=_.comp):x=!1;var M,q=v.length,me;for(M=0;M<q;M+=1)me=v[M].mat.applyToPointArray(0,0,0),p=[p[0]-me[0],p[1]-me[1],0];return p},mHelper:new Ln};function Sr(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,_,M=this.masksProperties?this.masksProperties.length:0;this.viewData=He(M),this.solidPath="";var q,me=this.masksProperties,J=0,be=[],we,ke,R=xt(),Q,G,he,fe,W="clipPath",Y="clip-path";for(_=0;_<M;_+=1)if((me[_].mode!=="a"&&me[_].mode!=="n"||me[_].inv||me[_].o.k!==100||me[_].o.x)&&(W="mask",Y="mask"),(me[_].mode==="s"||me[_].mode==="i")&&J===0?(Q=bt("rect"),Q.setAttribute("fill","#ffffff"),Q.setAttribute("width",this.element.comp.data.w||0),Q.setAttribute("height",this.element.comp.data.h||0),be.push(Q)):Q=null,q=bt("path"),me[_].mode==="n")this.viewData[_]={op:st.getProp(this.element,me[_].o,0,.01,this.element),prop:mi.getShapeProp(this.element,me[_],3),elem:q,lastPath:""},x.appendChild(q);else{J+=1,q.setAttribute("fill",me[_].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var L;if(me[_].x.k!==0?(W="mask",Y="mask",fe=st.getProp(this.element,me[_].x,0,null,this.element),L=xt(),G=bt("filter"),G.setAttribute("id",L),he=bt("feMorphology"),he.setAttribute("operator","erode"),he.setAttribute("in","SourceGraphic"),he.setAttribute("radius","0"),G.appendChild(he),x.appendChild(G),q.setAttribute("stroke",me[_].mode==="s"?"#000000":"#ffffff")):(he=null,fe=null),this.storedData[_]={elem:q,x:fe,expan:he,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},me[_].mode==="i"){ke=be.length;var N=bt("g");for(we=0;we<ke;we+=1)N.appendChild(be[we]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",R+"_"+J),H.appendChild(q),x.appendChild(H),N.setAttribute("mask","url("+De()+"#"+R+"_"+J+")"),be.length=0,be.push(N)}else be.push(q);me[_].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[_]={elem:q,lastPath:"",op:st.getProp(this.element,me[_].o,0,.01,this.element),prop:mi.getShapeProp(this.element,me[_],3),invRect:Q},this.viewData[_].prop.k||this.drawPath(me[_],this.viewData[_].prop.v,this.viewData[_])}for(this.maskElement=bt(W),M=be.length,_=0;_<M;_+=1)this.maskElement.appendChild(be[_]);J>0&&(this.maskElement.setAttribute("id",R),this.element.maskedElement.setAttribute(Y,"url("+De()+"#"+R+")"),x.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Sr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Sr.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 _=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("+De()+"#"+this.storedData[v].filterId+")")),_.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Sr.prototype.getMaskelement=function(){return this.maskElement},Sr.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},Sr.prototype.drawPath=function(c,p,v){var x=" M"+p.v[0][0]+","+p.v[0][1],_,M;for(M=p._length,_=1;_<M;_+=1)x+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[_][0]+","+p.i[_][1]+" "+p.v[_][0]+","+p.v[_][1];if(p.c&&M>1&&(x+=" C"+p.o[_-1][0]+","+p.o[_-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==x){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+x:x),v.elem.setAttribute("d",q)),v.lastPath=x}},Sr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Vs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(x,_){var M=bt("filter");return M.setAttribute("id",x),_!==!0&&(M.setAttribute("filterUnits","objectBoundingBox"),M.setAttribute("x","0%"),M.setAttribute("y","0%"),M.setAttribute("width","100%"),M.setAttribute("height","100%")),M}function v(){var x=bt("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}(),hl=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={},ls="filter_result_";function pl(c){var p,v="SourceGraphic",x=c.data.ef?c.data.ef.length:0,_=xt(),M=Vs.createFilter(_,!0),q=0;this.filters=[];var me;for(p=0;p<x;p+=1){me=null;var J=c.data.ef[p].ty;if(cn[J]){var be=cn[J].effect;me=new be(M,c.effectsManager.effectElements[p],c,ls+q,v),v=ls+q,cn[J].countsAsEffect&&(q+=1)}me&&this.filters.push(me)}q&&(c.globalData.defs.appendChild(M),c.layerElement.setAttribute("filter","url("+De()+"#"+_+")")),this.filters.length&&c.addRenderableComponent(this)}pl.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Xo(){}Xo.prototype={initRendererElement:function(){this.layerElement=bt("g")},createContainerElements:function(){this.matteElement=bt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=bt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var x=bt("clipPath"),_=bt("path");_.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var M=xt();if(x.setAttribute("id",M),x.appendChild(_),this.globalData.defs.appendChild(x),this.checkMasks()){var q=bt("g");q.setAttribute("clip-path","url("+De()+"#"+M+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+De()+"#"+M+")")}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 Sr(this.data,this,this.globalData),this.renderableEffectsManager=new pl(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,x,_,M,q;if(p===1||p===3){var me=bt("mask");me.setAttribute("id",v),me.setAttribute("mask-type",p===3?"luminance":"alpha"),M=bt("use"),M.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),me.appendChild(M),this.globalData.defs.appendChild(me),!hl.maskType&&p===1&&(me.setAttribute("mask-type","luminance"),x=xt(),_=Vs.createFilter(x),this.globalData.defs.appendChild(_),_.appendChild(Vs.createAlphaToLuminanceFilter()),q=bt("g"),q.appendChild(M),me.appendChild(q),q.setAttribute("filter","url("+De()+"#"+x+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var be=bt("g");J.appendChild(be),x=xt(),_=Vs.createFilter(x);var we=bt("feComponentTransfer");we.setAttribute("in","SourceGraphic"),_.appendChild(we);var ke=bt("feFuncA");ke.setAttribute("type","table"),ke.setAttribute("tableValues","1.0 0.0"),we.appendChild(ke),this.globalData.defs.appendChild(_);var R=bt("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"),be.setAttribute("filter","url("+De()+"#"+x+")"),be.appendChild(R),M=bt("use"),M.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),be.appendChild(M),hl.maskType||(J.setAttribute("mask-type","luminance"),_.appendChild(Vs.createAlphaToLuminanceFilter()),q=bt("g"),be.appendChild(R),q.appendChild(this.layerElement),be.appendChild(q)),this.globalData.defs.appendChild(J)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+De()+"#"+p+")")}};function Bs(){}Bs.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 Jo(){}(function(){var c={initElement:function(v,x,_){this.initFrame(),this.initBaseData(v,x,_),this.initTransform(v,x,_),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()}};Fe([Kn,We(c)],Jo)})();function Qo(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}}Fe([us,Da,Xo,Bs,Vn,Jo],Qo),Qo.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=bt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Qo.prototype.sourceRectAtTime=function(){return this.sourceRect};function vg(c,p){this.elem=c,this.pos=p}function Jc(){}Jc.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,_=v.length;x<_;){if(v[x].elem===p)return v[x].pos;x+=1}return 0},addProcessedElement:function(p,v){for(var x=this.processedElements,_=x.length;_;)if(_-=1,x[_].elem===p){x[_].pos=v;return}x.push(new vg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var eu={1:"butt",2:"round",3:"square"},Aa={1:"miter",2:"round",3:"bevel"};function ih(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,_=c.length;x<_;){if(c[x].mProps.dynamicProperties.length){this._isAnimated=!0;break}x+=1}}ih.prototype.setAsAnimated=function(){this._isAnimated=!0};function Qc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=bt("path"),this.msElem=null}Qc.prototype.reset=function(){this.d="",this._mdf=!1};function tu(c,p,v,x){this.elem=c,this.frameId=-1,this.dataProps=He(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=Be("float32",p.length?p.length-1:0),this.dashoffset=Be("float32",1),this.initDynamicPropertyContainer(x);var _,M=p.length||0,q;for(_=0;_<M;_+=1)q=st.getProp(c,p[_].v,0,0,this),this.k=q.k||this.k,this.dataProps[_]={n:p[_].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}tu.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}},Fe([dn],tu);function ml(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 tu(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Fe([dn],ml);function gl(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}Fe([dn],gl);function ef(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Fe([dn],ef);function nu(c,p,v){this.data=p,this.c=Be("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=Be("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)}nu.prototype.comparePoints=function(c,p){for(var v=0,x=this.o.length/2,_;v<x;){if(_=Math.abs(c[v*4]-c[p*4+v*2]),_>.01)return!1;v+=1}return!0},nu.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},nu.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,_;for(p=0;p<v;p+=1)x=p%4===0?100:255,_=Math.round(this.prop.v[p]*x),this.c[p]!==_&&(this.c[p]=_,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)x=p%2===0?100:1,_=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==_&&(this.o[p-this.data.p*4]=_,this._omdf=!c);this._mdf=!c}},Fe([dn],nu);function Ns(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Ns.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,en,this),this.g=new nu(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Ns.prototype.setGradientData=function(c,p){var v=xt(),x=bt(p.t===1?"linearGradient":"radialGradient");x.setAttribute("id",v),x.setAttribute("spreadMethod","pad"),x.setAttribute("gradientUnits","userSpaceOnUse");var _=[],M,q,me;for(me=p.g.p*4,q=0;q<me;q+=4)M=bt("stop"),x.appendChild(M),_.push(M);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+De()+"#"+v+")"),this.gf=x,this.cst=_},Ns.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,x,_,M=bt("mask"),q=bt("path");M.appendChild(q);var me=xt(),J=xt();M.setAttribute("id",J);var be=bt(c.t===1?"linearGradient":"radialGradient");be.setAttribute("id",me),be.setAttribute("spreadMethod","pad"),be.setAttribute("gradientUnits","userSpaceOnUse"),_=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var we=this.stops;for(x=c.g.p*4;x<_;x+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),be.appendChild(v),we.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+De()+"#"+me+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",eu[c.lc||2]),q.setAttribute("stroke-linejoin",Aa[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=be,this.ms=M,this.ost=we,this.maskId=J,p.msElem=q}},Fe([dn],Ns);function vl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new tu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Fe([Ns,dn],vl);function yg(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function sh(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 Dr=function(p,v,x,_){if(v===0)return"";var M=p.o,q=p.i,me=p.v,J,be=" M"+_.applyToPointStringified(me[0][0],me[0][1]);for(J=1;J<v;J+=1)be+=" C"+_.applyToPointStringified(M[J-1][0],M[J-1][1])+" "+_.applyToPointStringified(q[J][0],q[J][1])+" "+_.applyToPointStringified(me[J][0],me[J][1]);return x&&v&&(be+=" C"+_.applyToPointStringified(M[J-1][0],M[J-1][1])+" "+_.applyToPointStringified(q[0][0],q[0][1])+" "+_.applyToPointStringified(me[0][0],me[0][1]),be+="z"),be},tf=function(){var c=new Ln,p=new Ln,v={createRenderFunction:x};function x(ke){switch(ke.ty){case"fl":return me;case"gf":return be;case"gs":return J;case"st":return we;case"sh":case"el":case"rc":case"sr":return q;case"tr":return _;case"no":return M;default:return null}}function _(ke,R,Q){(Q||R.transform.op._mdf)&&R.transform.container.setAttribute("opacity",R.transform.op.v),(Q||R.transform.mProps._mdf)&&R.transform.container.setAttribute("transform",R.transform.mProps.v.to2dCSS())}function M(){}function q(ke,R,Q){var G,he,fe,W,Y,L,N=R.styles.length,H=R.lvl,ne,oe,pe,Ie,nt;for(L=0;L<N;L+=1){if(W=R.sh._mdf||Q,R.styles[L].lvl<H){for(oe=p.reset(),Ie=H-R.styles[L].lvl,nt=R.transformers.length-1;!W&&Ie>0;)W=R.transformers[nt].mProps._mdf||W,Ie-=1,nt-=1;if(W)for(Ie=H-R.styles[L].lvl,nt=R.transformers.length-1;Ie>0;)pe=R.transformers[nt].mProps.v.props,oe.transform(pe[0],pe[1],pe[2],pe[3],pe[4],pe[5],pe[6],pe[7],pe[8],pe[9],pe[10],pe[11],pe[12],pe[13],pe[14],pe[15]),Ie-=1,nt-=1}else oe=c;if(ne=R.sh.paths,he=ne._length,W){for(fe="",G=0;G<he;G+=1)Y=ne.shapes[G],Y&&Y._length&&(fe+=Dr(Y,Y._length,Y.c,oe));R.caches[L]=fe}else fe=R.caches[L];R.styles[L].d+=ke.hd===!0?"":fe,R.styles[L]._mdf=W||R.styles[L]._mdf}}function me(ke,R,Q){var G=R.style;(R.c._mdf||Q)&&G.pElem.setAttribute("fill","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||Q)&&G.pElem.setAttribute("fill-opacity",R.o.v)}function J(ke,R,Q){be(ke,R,Q),we(ke,R,Q)}function be(ke,R,Q){var G=R.gf,he=R.g._hasOpacity,fe=R.s.v,W=R.e.v;if(R.o._mdf||Q){var Y=ke.ty==="gf"?"fill-opacity":"stroke-opacity";R.style.pElem.setAttribute(Y,R.o.v)}if(R.s._mdf||Q){var L=ke.t===1?"x1":"cx",N=L==="x1"?"y1":"cy";G.setAttribute(L,fe[0]),G.setAttribute(N,fe[1]),he&&!R.g._collapsable&&(R.of.setAttribute(L,fe[0]),R.of.setAttribute(N,fe[1]))}var H,ne,oe,pe;if(R.g._cmdf||Q){H=R.cst;var Ie=R.g.c;for(oe=H.length,ne=0;ne<oe;ne+=1)pe=H[ne],pe.setAttribute("offset",Ie[ne*4]+"%"),pe.setAttribute("stop-color","rgb("+Ie[ne*4+1]+","+Ie[ne*4+2]+","+Ie[ne*4+3]+")")}if(he&&(R.g._omdf||Q)){var nt=R.g.o;for(R.g._collapsable?H=R.cst:H=R.ost,oe=H.length,ne=0;ne<oe;ne+=1)pe=H[ne],R.g._collapsable||pe.setAttribute("offset",nt[ne*2]+"%"),pe.setAttribute("stop-opacity",nt[ne*2+1])}if(ke.t===1)(R.e._mdf||Q)&&(G.setAttribute("x2",W[0]),G.setAttribute("y2",W[1]),he&&!R.g._collapsable&&(R.of.setAttribute("x2",W[0]),R.of.setAttribute("y2",W[1])));else{var et;if((R.s._mdf||R.e._mdf||Q)&&(et=Math.sqrt(Math.pow(fe[0]-W[0],2)+Math.pow(fe[1]-W[1],2)),G.setAttribute("r",et),he&&!R.g._collapsable&&R.of.setAttribute("r",et)),R.e._mdf||R.h._mdf||R.a._mdf||Q){et||(et=Math.sqrt(Math.pow(fe[0]-W[0],2)+Math.pow(fe[1]-W[1],2)));var Ne=Math.atan2(W[1]-fe[1],W[0]-fe[0]),ot=R.h.v;ot>=1?ot=.99:ot<=-1&&(ot=-.99);var ct=et*ot,Ve=Math.cos(Ne+R.a.v)*ct+fe[0],$e=Math.sin(Ne+R.a.v)*ct+fe[1];G.setAttribute("fx",Ve),G.setAttribute("fy",$e),he&&!R.g._collapsable&&(R.of.setAttribute("fx",Ve),R.of.setAttribute("fy",$e))}}}function we(ke,R,Q){var G=R.style,he=R.d;he&&(he._mdf||Q)&&he.dashStr&&(G.pElem.setAttribute("stroke-dasharray",he.dashStr),G.pElem.setAttribute("stroke-dashoffset",he.dashoffset[0])),R.c&&(R.c._mdf||Q)&&G.pElem.setAttribute("stroke","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||Q)&&G.pElem.setAttribute("stroke-opacity",R.o.v),(R.w._mdf||Q)&&(G.pElem.setAttribute("stroke-width",R.w.v),G.msElem&&G.msElem.setAttribute("stroke-width",R.w.v))}return v}();function mn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Fe([us,Da,Xo,Jc,Bs,Vn,Jo],mn),mn.prototype.initSecondaryElement=function(){},mn.prototype.identityMatrix=new Ln,mn.prototype.buildExpressionInterface=function(){},mn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},mn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,x,_=this.stylesList.length,M,q=[],me=!1;for(x=0;x<_;x+=1){for(M=this.stylesList[x],me=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(M)!==-1&&(q.push(v),me=v._isAnimated||me);q.length>1&&me&&this.setShapesAsAnimated(q)}},mn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},mn.prototype.createStyleElement=function(c,p){var v,x=new Qc(c,p),_=x.pElem;if(c.ty==="st")v=new ml(this,c,x);else if(c.ty==="fl")v=new gl(this,c,x);else if(c.ty==="gf"||c.ty==="gs"){var M=c.ty==="gf"?Ns:vl;v=new M(this,c,x),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),_.setAttribute("mask","url("+De()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new ef(this,c,x));return(c.ty==="st"||c.ty==="gs")&&(_.setAttribute("stroke-linecap",eu[c.lc||2]),_.setAttribute("stroke-linejoin",Aa[c.lj||2]),_.setAttribute("fill-opacity","0"),c.lj===1&&_.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&_.setAttribute("fill-rule","evenodd"),c.ln&&_.setAttribute("id",c.ln),c.cl&&_.setAttribute("class",c.cl),c.bm&&(_.style["mix-blend-mode"]=An(c.bm)),this.stylesList.push(x),this.addToAnimatedContents(c,v),v},mn.prototype.createGroupElement=function(c){var p=new yg;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"]=An(c.bm)),p},mn.prototype.createTransformElement=function(c,p){var v=io.getTransformProperty(this,c,this),x=new sh(v,v.o,p);return this.addToAnimatedContents(c,x),x},mn.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 _=mi.getShapeProp(this,c,x,this),M=new ih(p,v,_);return this.shapes.push(M),this.addShapeToModifiers(M),this.addToAnimatedContents(c,M),M},mn.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:tf.createRenderFunction(c),element:p,data:c})},mn.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])},mn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},mn.prototype.searchShapes=function(c,p,v,x,_,M,q){var me=[].concat(M),J,be=c.length-1,we,ke,R=[],Q=[],G,he,fe;for(J=be;J>=0;J-=1){if(fe=this.searchProcessedElement(c[J]),fe?p[J]=v[fe-1]:c[J]._render=q,c[J].ty==="fl"||c[J].ty==="st"||c[J].ty==="gf"||c[J].ty==="gs"||c[J].ty==="no")fe?p[J].style.closed=!1:p[J]=this.createStyleElement(c[J],_),c[J]._render&&p[J].style.pElem.parentNode!==x&&x.appendChild(p[J].style.pElem),R.push(p[J].style);else if(c[J].ty==="gr"){if(!fe)p[J]=this.createGroupElement(c[J]);else for(ke=p[J].it.length,we=0;we<ke;we+=1)p[J].prevViewData[we]=p[J].it[we];this.searchShapes(c[J].it,p[J].it,p[J].prevViewData,p[J].gr,_+1,me,q),c[J]._render&&p[J].gr.parentNode!==x&&x.appendChild(p[J].gr)}else c[J].ty==="tr"?(fe||(p[J]=this.createTransformElement(c[J],x)),G=p[J].transform,me.push(G)):c[J].ty==="sh"||c[J].ty==="rc"||c[J].ty==="el"||c[J].ty==="sr"?(fe||(p[J]=this.createShapeElement(c[J],me,_)),this.setElementStyles(p[J])):c[J].ty==="tm"||c[J].ty==="rd"||c[J].ty==="ms"||c[J].ty==="pb"||c[J].ty==="zz"||c[J].ty==="op"?(fe?(he=p[J],he.closed=!1):(he=Or.getModifier(c[J].ty),he.init(this,c[J]),p[J]=he,this.shapeModifiers.push(he)),Q.push(he)):c[J].ty==="rp"&&(fe?(he=p[J],he.closed=!0):(he=Or.getModifier(c[J].ty),p[J]=he,he.init(this,c,J,p),this.shapeModifiers.push(he),q=!1),Q.push(he));this.addProcessedElement(c[J],J+1)}for(be=R.length,J=0;J<be;J+=1)R[J].closed=!0;for(be=Q.length,J=0;J<be;J+=1)Q[J].closed=!0},mn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},mn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},mn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function yl(c,p,v,x,_,M){this.o=c,this.sw=p,this.sc=v,this.fc=x,this.m=_,this.p=M,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!x,m:!0,p:!0}}yl.prototype.update=function(c,p,v,x,_,M){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!==_&&(this.m=_,this._mdf.m=!0,q=!0),M.length&&(this.p[0]!==M[0]||this.p[1]!==M[1]||this.p[4]!==M[4]||this.p[5]!==M[5]||this.p[12]!==M[12]||this.p[13]!==M[13])&&(this.p=M,this._mdf.p=!0,q=!0),q};function fr(c,p){this._frameId=te,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)}fr.prototype.defaultBoxWidth=[0,0],fr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},fr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},fr.prototype.searchProperty=function(){return this.searchKeyframes()},fr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},fr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},fr.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,_=this.effectsSequence.length,M=c||this.data.d.k[this.keysIndex].s;for(x=0;x<_;x+=1)v!==this.keysIndex?M=this.effectsSequence[x](M,M.t):M=this.effectsSequence[x](this.currentData,M.t);p!==M&&this.setCurrentData(M),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},fr.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},fr.prototype.buildFinalText=function(c){for(var p=[],v=0,x=c.length,_,M,q=!1;v<x;)_=c.charCodeAt(v),ur.isCombinedCharacter(_)?p[p.length-1]+=c.charAt(v):_>=55296&&_<=56319?(M=c.charCodeAt(v+1),M>=56320&&M<=57343?(q||ur.isModifier(_,M)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):_>56319?(M=c.charCodeAt(v+1),ur.isZeroWidthJoiner(_,M)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ur.isZeroWidthJoiner(_)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},fr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,x=[],_,M,q,me=0,J,be=v.m.g,we=0,ke=0,R=0,Q=[],G=0,he=0,fe,W,Y=p.getFontByName(c.f),L,N=0,H=sr(Y);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),M=c.finalText.length,c.finalLineHeight=c.lh;var ne=c.tr/1e3*c.finalSize,oe;if(c.sz)for(var pe=!0,Ie=c.sz[0],nt=c.sz[1],et,Ne;pe;){Ne=this.buildFinalText(c.t),et=0,G=0,M=Ne.length,ne=c.tr/1e3*c.finalSize;var ot=-1;for(_=0;_<M;_+=1)oe=Ne[_].charCodeAt(0),q=!1,Ne[_]===" "?ot=_:(oe===13||oe===3)&&(G=0,q=!0,et+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ne[_],Y.fStyle,Y.fFamily),N=q?0:L.w*c.finalSize/100):N=p.measureText(Ne[_],c.f,c.finalSize),G+N>Ie&&Ne[_]!==" "?(ot===-1?M+=1:_=ot,et+=c.finalLineHeight||c.finalSize*1.2,Ne.splice(_,ot===_?1:0,"\r"),ot=-1,G=0):(G+=N,G+=ne);et+=Y.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&nt<et?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ne,M=c.finalText.length,pe=!1)}G=-ne,N=0;var ct=0,Ve;for(_=0;_<M;_+=1)if(q=!1,Ve=c.finalText[_],oe=Ve.charCodeAt(0),oe===13||oe===3?(ct=0,Q.push(G),he=G>he?G:he,G=-2*ne,J="",q=!0,R+=1):J=Ve,p.chars?(L=p.getCharData(Ve,Y.fStyle,p.getFontByName(c.f).fFamily),N=q?0:L.w*c.finalSize/100):N=p.measureText(J,c.f,c.finalSize),Ve===" "?ct+=N+ne:(G+=N+ne+ct,ct=0),x.push({l:N,an:N,add:we,n:q,anIndexes:[],val:J,line:R,animatorJustifyOffset:0}),be==2){if(we+=N,J===""||J===" "||_===M-1){for((J===""||J===" ")&&(we-=N);ke<=_;)x[ke].an=we,x[ke].ind=me,x[ke].extra=N,ke+=1;me+=1,we=0}}else if(be==3){if(we+=N,J===""||_===M-1){for(J===""&&(we-=N);ke<=_;)x[ke].an=we,x[ke].ind=me,x[ke].extra=N,ke+=1;we=0,me+=1}}else x[me].ind=me,x[me].extra=0,me+=1;if(c.l=x,he=G>he?G:he,Q.push(G),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=he,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=Q;var $e=v.a,ce,X;W=$e.length;var ge,je,Oe=[];for(fe=0;fe<W;fe+=1){for(ce=$e[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,ge=ce.s.b,_=0;_<M;_+=1)X=x[_],X.anIndexes[fe]=je,(ge==1&&X.val!==""||ge==2&&X.val!==""&&X.val!==" "||ge==3&&(X.n||X.val==" "||_==M-1)||ge==4&&(X.n||_==M-1))&&(ce.s.rn===1&&Oe.push(je),je+=1);v.a[fe].s.totalChars=je;var lt=-1,At;if(ce.s.rn===1)for(_=0;_<M;_+=1)X=x[_],lt!=X.anIndexes[fe]&&(lt=X.anIndexes[fe],At=Oe.splice(Math.floor(Math.random()*Oe.length),1)[0]),X.anIndexes[fe]=At}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Y.ascent*c.finalSize/100},fr.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)},fr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},fr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},fr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var bg=function(){var c=Math.max,p=Math.min,v=Math.floor;function x(M,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=M,this.comp=M.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(M),this.s=st.getProp(M,q.s||{k:0},0,0,this),"e"in q?this.e=st.getProp(M,q.e,0,0,this):this.e={v:100},this.o=st.getProp(M,q.o||{k:0},0,0,this),this.xe=st.getProp(M,q.xe||{k:0},0,0,this),this.ne=st.getProp(M,q.ne||{k:0},0,0,this),this.sm=st.getProp(M,q.sm||{k:100},0,0,this),this.a=st.getProp(M,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 me=0,J=0,be=1,we=1;this.ne.v>0?me=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?be=1-this.xe.v/100:we=1+this.xe.v/100;var ke=ma.getBezierEasing(me,J,be,we).get,R=0,Q=this.finalS,G=this.finalE,he=this.data.sh;if(he===2)G===Q?R=q>=G?1:0:R=c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),R=ke(R);else if(he===3)G===Q?R=q>=G?0:1:R=1-c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),R=ke(R);else if(he===4)G===Q?R=0:(R=c(0,p(.5/(G-Q)+(q-Q)/(G-Q),1)),R<.5?R*=2:R=1-2*(R-.5)),R=ke(R);else if(he===5){if(G===Q)R=0;else{var fe=G-Q;q=p(c(0,q+.5-Q),G-Q);var W=-fe/2+q,Y=fe/2;R=Math.sqrt(1-W*W/(Y*Y))}R=ke(R)}else he===6?(G===Q?R=0:(q=p(c(0,q+.5-Q),G-Q),R=(1+Math.cos(Math.PI+Math.PI*2*q/(G-Q)))/2),R=ke(R)):(q>=v(Q)&&(q-Q<0?R=c(0,p(p(G,1)-(Q-q),1)):R=c(0,p(G-q,1))),R=ke(R));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var N=.5-L*.5;R<N?R=0:(R=(R-N)/L,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 me=this.data.r===2?1:100/this.data.totalChars,J=this.o.v/me,be=this.s.v/me+J,we=this.e.v/me+J;if(be>we){var ke=be;be=we,we=ke}this.finalS=be,this.finalE=we}},Fe([dn],x);function _(M,q,me){return new x(M,q)}return{getTextSelectorProp:_}}();function $g(c,p,v){var x={propType:!1},_=st.getProp,M=p.a;this.a={r:M.r?_(c,M.r,0,en,v):x,rx:M.rx?_(c,M.rx,0,en,v):x,ry:M.ry?_(c,M.ry,0,en,v):x,sk:M.sk?_(c,M.sk,0,en,v):x,sa:M.sa?_(c,M.sa,0,en,v):x,s:M.s?_(c,M.s,1,.01,v):x,a:M.a?_(c,M.a,1,0,v):x,o:M.o?_(c,M.o,0,.01,v):x,p:M.p?_(c,M.p,1,0,v):x,sw:M.sw?_(c,M.sw,0,0,v):x,sc:M.sc?_(c,M.sc,1,0,v):x,fc:M.fc?_(c,M.fc,1,0,v):x,fh:M.fh?_(c,M.fh,0,0,v):x,fs:M.fs?_(c,M.fs,0,.01,v):x,fb:M.fb?_(c,M.fb,0,.01,v):x,t:M.t?_(c,M.t,0,0,v):x},this.s=bg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Ta(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=He(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Ta.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 $g(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)},Ta.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,_=this._textData,M=this.mHelper,q=this._renderType,me=this.renderedLetters.length,J,be,we,ke,R=c.l,Q,G,he,fe,W,Y,L,N,H,ne,oe,pe,Ie,nt,et;if(this._hasMaskedPath){if(et=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ne=et.v;this._pathData.r.v&&(Ne=Ne.reverse()),Q={tLength:0,segments:[]},ke=Ne._length-1;var ot;for(pe=0,we=0;we<ke;we+=1)ot=Jr.buildBezierData(Ne.v[we],Ne.v[we+1],[Ne.o[we][0]-Ne.v[we][0],Ne.o[we][1]-Ne.v[we][1]],[Ne.i[we+1][0]-Ne.v[we+1][0],Ne.i[we+1][1]-Ne.v[we+1][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength;we=ke,et.v.c&&(ot=Jr.buildBezierData(Ne.v[we],Ne.v[0],[Ne.o[we][0]-Ne.v[we][0],Ne.o[we][1]-Ne.v[we][1]],[Ne.i[0][0]-Ne.v[0][0],Ne.i[0][1]-Ne.v[0][1]]),Q.tLength+=ot.segmentLength,Q.segments.push(ot),pe+=ot.segmentLength),this._pathData.pi=Q}if(Q=this._pathData.pi,G=this._pathData.f.v,L=0,Y=1,fe=0,W=!0,ne=Q.segments,G<0&&et.v.c)for(Q.tLength<Math.abs(G)&&(G=-Math.abs(G)%Q.tLength),L=ne.length-1,H=ne[L].points,Y=H.length-1;G<0;)G+=H[Y].partialLength,Y-=1,Y<0&&(L-=1,H=ne[L].points,Y=H.length-1);H=ne[L].points,N=H[Y-1],he=H[Y],oe=he.partialLength}ke=R.length,J=0,be=0;var ct=c.finalSize*1.2*.714,Ve=!0,$e,ce,X,ge,je;ge=x.length;var Oe,lt=-1,At,Ct,$n,Wt=G,dr=L,Qn=Y,Nn=-1,Un,zn,br,ft,fn,ei,ki,cs,yi="",fs=this.defaultPropsArray,ds;if(c.j===2||c.j===1){var Zt=0,xn=0,Ks=c.j===2?-.5:-1,bi=0,hs=!0;for(we=0;we<ke;we+=1)if(R[we].n){for(Zt&&(Zt+=xn);bi<we;)R[bi].animatorJustifyOffset=Zt,bi+=1;Zt=0,hs=!0}else{for(X=0;X<ge;X+=1)$e=x[X].a,$e.t.propType&&(hs&&c.j===2&&(xn+=$e.t.v*Ks),ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),Oe.length?Zt+=$e.t.v*Oe[0]*Ks:Zt+=$e.t.v*Oe*Ks);hs=!1}for(Zt&&(Zt+=xn);bi<we;)R[bi].animatorJustifyOffset=Zt,bi+=1}for(we=0;we<ke;we+=1){if(M.reset(),Un=1,R[we].n)J=0,be+=c.yOffset,be+=Ve?1:0,G=Wt,Ve=!1,this._hasMaskedPath&&(L=dr,Y=Qn,H=ne[L].points,N=H[Y-1],he=H[Y],oe=he.partialLength,fe=0),yi="",cs="",ei="",ds="",fs=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nn!==R[we].line){switch(c.j){case 1:G+=pe-c.lineWidths[R[we].line];break;case 2:G+=(pe-c.lineWidths[R[we].line])/2;break}Nn=R[we].line}lt!==R[we].ind&&(R[lt]&&(G+=R[lt].extra),G+=R[we].an/2,lt=R[we].ind),G+=v[0]*R[we].an*.005;var $i=0;for(X=0;X<ge;X+=1)$e=x[X].a,$e.p.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),Oe.length?$i+=$e.p.v[0]*Oe[0]:$i+=$e.p.v[0]*Oe),$e.a.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),Oe.length?$i+=$e.a.v[0]*Oe[0]:$i+=$e.a.v[0]*Oe);for(W=!0,this._pathData.a.v&&(G=R[0].an*.5+(pe-this._pathData.f.v-R[0].an*.5-R[R.length-1].an*.5)*lt/(ke-1),G+=this._pathData.f.v);W;)fe+oe>=G+$i||!H?(Ie=(G+$i-fe)/he.partialLength,Ct=N.point[0]+(he.point[0]-N.point[0])*Ie,$n=N.point[1]+(he.point[1]-N.point[1])*Ie,M.translate(-v[0]*R[we].an*.005,-(v[1]*ct)*.01),W=!1):H&&(fe+=he.partialLength,Y+=1,Y>=H.length&&(Y=0,L+=1,ne[L]?H=ne[L].points:et.v.c?(Y=0,L=0,H=ne[L].points):(fe-=he.partialLength,H=null)),H&&(N=he,he=H[Y],oe=he.partialLength));At=R[we].an/2-R[we].add,M.translate(-At,0,0)}else At=R[we].an/2-R[we].add,M.translate(-At,0,0),M.translate(-v[0]*R[we].an*.005,-v[1]*ct*.01,0);for(X=0;X<ge;X+=1)$e=x[X].a,$e.t.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),(J!==0||c.j!==0)&&(this._hasMaskedPath?Oe.length?G+=$e.t.v*Oe[0]:G+=$e.t.v*Oe:Oe.length?J+=$e.t.v*Oe[0]:J+=$e.t.v*Oe));for(c.strokeWidthAnim&&(br=c.sw||0),c.strokeColorAnim&&(c.sc?zn=[c.sc[0],c.sc[1],c.sc[2]]:zn=[0,0,0]),c.fillColorAnim&&c.fc&&(ft=[c.fc[0],c.fc[1],c.fc[2]]),X=0;X<ge;X+=1)$e=x[X].a,$e.a.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),Oe.length?M.translate(-$e.a.v[0]*Oe[0],-$e.a.v[1]*Oe[1],$e.a.v[2]*Oe[2]):M.translate(-$e.a.v[0]*Oe,-$e.a.v[1]*Oe,$e.a.v[2]*Oe));for(X=0;X<ge;X+=1)$e=x[X].a,$e.s.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),Oe.length?M.scale(1+($e.s.v[0]-1)*Oe[0],1+($e.s.v[1]-1)*Oe[1],1):M.scale(1+($e.s.v[0]-1)*Oe,1+($e.s.v[1]-1)*Oe,1));for(X=0;X<ge;X+=1){if($e=x[X].a,ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),$e.sk.propType&&(Oe.length?M.skewFromAxis(-$e.sk.v*Oe[0],$e.sa.v*Oe[1]):M.skewFromAxis(-$e.sk.v*Oe,$e.sa.v*Oe)),$e.r.propType&&(Oe.length?M.rotateZ(-$e.r.v*Oe[2]):M.rotateZ(-$e.r.v*Oe)),$e.ry.propType&&(Oe.length?M.rotateY($e.ry.v*Oe[1]):M.rotateY($e.ry.v*Oe)),$e.rx.propType&&(Oe.length?M.rotateX($e.rx.v*Oe[0]):M.rotateX($e.rx.v*Oe)),$e.o.propType&&(Oe.length?Un+=($e.o.v*Oe[0]-Un)*Oe[0]:Un+=($e.o.v*Oe-Un)*Oe),c.strokeWidthAnim&&$e.sw.propType&&(Oe.length?br+=$e.sw.v*Oe[0]:br+=$e.sw.v*Oe),c.strokeColorAnim&&$e.sc.propType)for(fn=0;fn<3;fn+=1)Oe.length?zn[fn]+=($e.sc.v[fn]-zn[fn])*Oe[0]:zn[fn]+=($e.sc.v[fn]-zn[fn])*Oe;if(c.fillColorAnim&&c.fc){if($e.fc.propType)for(fn=0;fn<3;fn+=1)Oe.length?ft[fn]+=($e.fc.v[fn]-ft[fn])*Oe[0]:ft[fn]+=($e.fc.v[fn]-ft[fn])*Oe;$e.fh.propType&&(Oe.length?ft=It(ft,$e.fh.v*Oe[0]):ft=It(ft,$e.fh.v*Oe)),$e.fs.propType&&(Oe.length?ft=zt(ft,$e.fs.v*Oe[0]):ft=zt(ft,$e.fs.v*Oe)),$e.fb.propType&&(Oe.length?ft=Pt(ft,$e.fb.v*Oe[0]):ft=Pt(ft,$e.fb.v*Oe))}}for(X=0;X<ge;X+=1)$e=x[X].a,$e.p.propType&&(ce=x[X].s,Oe=ce.getMult(R[we].anIndexes[X],_.a[X].s.totalChars),this._hasMaskedPath?Oe.length?M.translate(0,$e.p.v[1]*Oe[0],-$e.p.v[2]*Oe[1]):M.translate(0,$e.p.v[1]*Oe,-$e.p.v[2]*Oe):Oe.length?M.translate($e.p.v[0]*Oe[0],$e.p.v[1]*Oe[1],-$e.p.v[2]*Oe[2]):M.translate($e.p.v[0]*Oe,$e.p.v[1]*Oe,-$e.p.v[2]*Oe));if(c.strokeWidthAnim&&(ei=br<0?0:br),c.strokeColorAnim&&(ki="rgb("+Math.round(zn[0]*255)+","+Math.round(zn[1]*255)+","+Math.round(zn[2]*255)+")"),c.fillColorAnim&&c.fc&&(cs="rgb("+Math.round(ft[0]*255)+","+Math.round(ft[1]*255)+","+Math.round(ft[2]*255)+")"),this._hasMaskedPath){if(M.translate(0,-c.ls),M.translate(0,v[1]*ct*.01+be,0),this._pathData.p.v){nt=(he.point[1]-N.point[1])/(he.point[0]-N.point[0]);var ps=Math.atan(nt)*180/Math.PI;he.point[0]<N.point[0]&&(ps+=180),M.rotate(-ps*Math.PI/180)}M.translate(Ct,$n,0),G-=v[0]*R[we].an*.005,R[we+1]&<!==R[we+1].ind&&(G+=R[we].an/2,G+=c.tr*.001*c.finalSize)}else{switch(M.translate(J,be,0),c.ps&&M.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:M.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line]),0,0);break;case 2:M.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line])/2,0,0);break}M.translate(0,-c.ls),M.translate(At,0,0),M.translate(v[0]*R[we].an*.005,v[1]*ct*.01,0),J+=R[we].l+c.tr*.001*c.finalSize}q==="html"?yi=M.toCSS():q==="svg"?yi=M.to2dCSS():fs=[M.props[0],M.props[1],M.props[2],M.props[3],M.props[4],M.props[5],M.props[6],M.props[7],M.props[8],M.props[9],M.props[10],M.props[11],M.props[12],M.props[13],M.props[14],M.props[15]],ds=Un}me<=we?(je=new yl(ds,ei,ki,cs,yi,fs),this.renderedLetters.push(je),me+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[we],this.lettersChangedFlag=je.update(ds,ei,ki,cs,yi,fs)||this.lettersChangedFlag)}}},Ta.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Ta.prototype.mHelper=new Ln,Ta.prototype.defaultPropsArray=[],Fe([dn],Ta);function vi(){}vi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new fr(this,c.t,this.dynamicProperties),this.textAnimator=new Ta(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)},vi.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)},vi.prototype.createPathShape=function(c,p){var v,x=p.length,_,M="";for(v=0;v<x;v+=1)p[v].ty==="sh"&&(_=p[v].ks.k,M+=Dr(_,_.i.length,!0,c));return M},vi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},vi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},vi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},vi.prototype.applyTextPropertiesToMatrix=function(c,p,v,x,_){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,_,0)},vi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},vi.prototype.emptyProp=new yl,vi.prototype.destroy=function(){};var xg={shapes:[]};function Ar(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Fe([us,Da,Xo,Bs,Vn,Jo,vi],Ar),Ar.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=bt("text"))},Ar.prototype.buildTextContents=function(c){for(var p=0,v=c.length,x=[],_="";p<v;)c[p]==="\r"||c[p]===""?(x.push(_),_=""):_+=c[p],p+=1;return x.push(_),x},Ar.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},Ar.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=He(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 _=v.fWeight,M=v.fStyle;this.layerElement.setAttribute("font-style",M),this.layerElement.setAttribute("font-weight",_)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],me=!!this.globalData.fontManager.chars;p=q.length;var J,be=this.mHelper,we="",ke=this.data.singleShape,R=0,Q=0,G=!0,he=v.tr*.001*v.finalSize;if(ke&&!me&&!v.sz){var fe=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}fe.setAttribute("text-anchor",W),fe.setAttribute("letter-spacing",he);var Y=this.buildTextContents(v.finalText);for(p=Y.length,Q=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)J=this.textSpans[c].span||bt("tspan"),J.textContent=Y[c],J.setAttribute("x",0),J.setAttribute("y",Q),J.style.display="inherit",fe.appendChild(J),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=J,Q+=v.finalLineHeight;this.layerElement.appendChild(fe)}else{var L=this.textSpans.length,N;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!me||!ke||c===0){if(J=L>c?this.textSpans[c].span:bt(me?"g":"text"),L<=c){if(J.setAttribute("stroke-linecap","butt"),J.setAttribute("stroke-linejoin","round"),J.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=J,me){var H=bt("g");J.appendChild(H),this.textSpans[c].childSpan=H}this.textSpans[c].span=J,this.layerElement.appendChild(J)}J.style.display="inherit"}if(be.reset(),ke&&(q[c].n&&(R=-he,Q+=v.yOffset,Q+=G?1:0,G=!1),this.applyTextPropertiesToMatrix(v,be,q[c].line,R,Q),R+=q[c].l||0,R+=he),me){N=this.globalData.fontManager.getCharData(v.finalText[c],x.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var ne;if(N.t===1)ne=new Qr(N.data,this.globalData,this);else{var oe=xg;N.data&&N.data.shapes&&(oe=this.buildShapeData(N.data,v.finalSize)),ne=new mn(oe,this.globalData,this)}if(this.textSpans[c].glyph){var pe=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(pe.layerElement),pe.destroy()}this.textSpans[c].glyph=ne,ne._debug=!0,ne.prepareFrame(0),ne.renderFrame(),this.textSpans[c].childSpan.appendChild(ne.layerElement),N.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else ke&&J.setAttribute("transform","translate("+be.props[12]+","+be.props[13]+")"),J.textContent=q[c].val,J.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ke&&J&&J.setAttribute("d",we)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Ar.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},Ar.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))},Ar.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 _,M,q;for(c=0;c<p;c+=1)x[c].n||(_=v[c],M=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),_._mdf.m&&M.setAttribute("transform",_.m),_._mdf.o&&M.setAttribute("opacity",_.o),_._mdf.sw&&M.setAttribute("stroke-width",_.sw),_._mdf.sc&&M.setAttribute("stroke",_.sc),_._mdf.fc&&M.setAttribute("fill",_.fc))}};function nf(c,p,v){this.initElement(c,p,v)}Fe([Qo],nf),nf.prototype.createContent=function(){var c=bt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function js(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}js.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},js.prototype.renderFrame=function(){},js.prototype.getBaseElement=function(){return null},js.prototype.destroy=function(){},js.prototype.sourceRectAtTime=function(){},js.prototype.hide=function(){},Fe([us,Da,Bs,Vn],js);function Bn(){}Fe([cr],Bn),Bn.prototype.createNull=function(c){return new js(c,this.globalData,this)},Bn.prototype.createShape=function(c){return new mn(c,this.globalData,this)},Bn.prototype.createText=function(c){return new Ar(c,this.globalData,this)},Bn.prototype.createImage=function(c){return new Qo(c,this.globalData,this)},Bn.prototype.createSolid=function(c){return new nf(c,this.globalData,this)},Bn.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=bt("clipPath"),x=bt("rect");x.setAttribute("width",c.w),x.setAttribute("height",c.h),x.setAttribute("x",0),x.setAttribute("y",0);var _=xt();v.setAttribute("id",_),v.appendChild(x),this.layerElement.setAttribute("clip-path","url("+De()+"#"+_+")"),p.appendChild(v),this.layers=c.layers,this.elements=He(c.layers.length)},Bn.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},Bn.prototype.updateContainerSize=function(){},Bn.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},Bn.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,di()&&(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[x],M=_.getMatte(this.layers[c].tt);v.setMatte(M)}}}},Bn.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,_=this.elements[x],M=_.getMatte(this.layers[p].tt);c.setMatte(M);break}p+=1}}},Bn.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()}},Bn.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var x=0,_;x<p;)this.elements[x]&&this.elements[x]!==!0&&this.elements[x].getBaseElement()&&(_=this.elements[x].getBaseElement()),x+=1;_?this.layerElement.insertBefore(v,_):this.layerElement.appendChild(v)}},Bn.prototype.hide=function(){this.layerElement.style.display="none"},Bn.prototype.show=function(){this.layerElement.style.display="block"};function Ri(){}Fe([us,Da,Bs,Vn,Jo],Ri),Ri.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()},Ri.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))}},Ri.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()},Ri.prototype.setElements=function(c){this.elements=c},Ri.prototype.getElements=function(){return this.elements},Ri.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ri.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Qr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?He(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Fe([Bn,Ri,Xo],Qr),Qr.prototype.createComp=function(c){return new Qr(c,this.globalData,this)};function uo(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var x=bt("title"),_=xt();x.setAttribute("id",_),x.textContent=p.title,this.svgElement.appendChild(x),v+=_}if(p&&p.description){var M=bt("desc"),q=xt();M.setAttribute("id",q),M.textContent=p.description,this.svgElement.appendChild(M),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var me=bt("defs");this.svgElement.appendChild(me);var J=bt("g");this.svgElement.appendChild(J),this.layerElement=J,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:me,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Fe([Bn],uo),uo.prototype.createComp=function(c){return new Qr(c,this.globalData,this)},tl("svg",uo),Or.registerModifier("tm",Ir),Or.registerModifier("pb",ks),Or.registerModifier("rp",yr),Or.registerModifier("rd",ya),Or.registerModifier("zz",wa),Or.registerModifier("op",bn),Kt})})(o,o.exports);var l=o.exports;function d(z,ee){var K=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(K!=null){var O,V,te,j,le=[],ue=!0,De=!1;try{if(te=(K=K.call(z)).next,ee!==0)for(;!(ue=(O=te.call(K)).done)&&(le.push(O.value),le.length!==ee);ue=!0);}catch(Pe){De=!0,V=Pe}finally{try{if(!ue&&K.return!=null&&(j=K.return(),Object(j)!==j))return}finally{if(De)throw V}}return le}}function h(z,ee){var K=Object.keys(z);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(z);ee&&(O=O.filter(function(V){return Object.getOwnPropertyDescriptor(z,V).enumerable})),K.push.apply(K,O)}return K}function m(z){for(var ee=1;ee<arguments.length;ee++){var K=arguments[ee]!=null?arguments[ee]:{};ee%2?h(Object(K),!0).forEach(function(O){g(z,O,K[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(O){Object.defineProperty(z,O,Object.getOwnPropertyDescriptor(K,O))})}return z}function g(z,ee,K){return ee=P(ee),ee in z?Object.defineProperty(z,ee,{value:K,enumerable:!0,configurable:!0,writable:!0}):z[ee]=K,z}function b(z,ee){if(z==null)return{};var K={},O=Object.keys(z),V,te;for(te=0;te<O.length;te++)V=O[te],!(ee.indexOf(V)>=0)&&(K[V]=z[V]);return K}function w(z,ee){if(z==null)return{};var K=b(z,ee),O,V;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(z);for(V=0;V<te.length;V++)O=te[V],!(ee.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(z,O)&&(K[O]=z[O])}return K}function $(z,ee){return D(z)||d(z,ee)||C(z,ee)||S()}function D(z){if(Array.isArray(z))return z}function C(z,ee){if(z){if(typeof z=="string")return E(z,ee);var K=Object.prototype.toString.call(z).slice(8,-1);if(K==="Object"&&z.constructor&&(K=z.constructor.name),K==="Map"||K==="Set")return Array.from(z);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return E(z,ee)}}function E(z,ee){(ee==null||ee>z.length)&&(ee=z.length);for(var K=0,O=new Array(ee);K<ee;K++)O[K]=z[K];return O}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(z,ee){if(typeof z!="object"||z===null)return z;var K=z[Symbol.toPrimitive];if(K!==void 0){var O=K.call(z,ee);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ee==="string"?String:Number)(z)}function P(z){var ee=k(z,"string");return typeof ee=="symbol"?ee:String(ee)}var F=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],U=function(ee,K){var O=ee.animationData,V=ee.loop,te=ee.autoplay,j=ee.initialSegment,le=ee.onComplete,ue=ee.onLoopComplete,De=ee.onEnterFrame,Pe=ee.onSegmentStart,Fe=ee.onConfigReady,We=ee.onDataReady,Xe=ee.onDataFailed,Be=ee.onLoadedImages,He=ee.onDOMLoaded,Me=ee.onDestroy;ee.lottieRef,ee.renderer,ee.name,ee.assetsPath,ee.rendererSettings;var Le=w(ee,F),Ae=r.useState(!1),Ge=$(Ae,2),ht=Ge[0],Gt=Ge[1],$t=r.useRef(),_t=r.useRef(null),Zr=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},en=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},ye=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},Se=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSpeed(Pt)},_e=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndPlay(Pt,It)},Je=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.goToAndStop(Pt,It)},tt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setDirection(Pt)},Qe=function(Pt,It){var qt;(qt=$t.current)===null||qt===void 0||qt.playSegments(Pt,It)},gt=function(Pt){var It;(It=$t.current)===null||It===void 0||It.setSubframe(Pt)},Rt=function(Pt){var It;return(It=$t.current)===null||It===void 0?void 0:It.getDuration(Pt)},xt=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},yn=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},It;if(_t.current){(It=$t.current)===null||It===void 0||It.destroy();var qt=m(m(m({},ee),Pt),{},{container:_t.current});return $t.current=l.loadAnimation(qt),Gt(!!$t.current),function(){var gr;(gr=$t.current)===null||gr===void 0||gr.destroy(),$t.current=void 0}}};r.useEffect(function(){var zt=yn();return function(){return zt==null?void 0:zt()}},[O,V]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!te)},[te]),r.useEffect(function(){if($t.current){if(!j){$t.current.resetSegments(!0);return}!Array.isArray(j)||!j.length||(($t.current.currentRawFrame<j[0]||$t.current.currentRawFrame>j[1])&&($t.current.currentRawFrame=j[0]),$t.current.setSegment(j[0],j[1]))}},[j]),r.useEffect(function(){var zt=[{name:"complete",handler:le},{name:"loopComplete",handler:ue},{name:"enterFrame",handler:De},{name:"segmentStart",handler:Pe},{name:"config_ready",handler:Fe},{name:"data_ready",handler:We},{name:"data_failed",handler:Xe},{name:"loaded_images",handler:Be},{name:"DOMLoaded",handler:He},{name:"destroy",handler:Me}],Pt=zt.filter(function(qt){return qt.handler!=null});if(Pt.length){var It=Pt.map(function(qt){var gr;return(gr=$t.current)===null||gr===void 0||gr.addEventListener(qt.name,qt.handler),function(){var Xr;(Xr=$t.current)===null||Xr===void 0||Xr.removeEventListener(qt.name,qt.handler)}});return function(){It.forEach(function(qt){return qt()})}}},[le,ue,De,Pe,Fe,We,Xe,Be,He,Me]);var Cr=s.default.createElement("div",m({style:K,ref:_t},Le));return{View:Cr,play:Zr,stop:en,pause:ye,setSpeed:Se,goToAndStop:Je,goToAndPlay:_e,setDirection:tt,playSegments:Qe,setSubframe:gt,getDuration:Rt,destroy:xt,animationContainerRef:_t,animationLoaded:ht,animationItem:$t.current}};function ie(z){var ee=z.getBoundingClientRect(),K=ee.top,O=ee.height,V=window.innerHeight-K,te=window.innerHeight+O;return V/te}function de(z,ee,K){var O=z.getBoundingClientRect(),V=O.top,te=O.left,j=O.width,le=O.height,ue=(ee-te)/j,De=(K-V)/le;return{x:ue,y:De}}var ae=function(ee){var K=ee.wrapperRef,O=ee.animationItem,V=ee.mode,te=ee.actions;r.useEffect(function(){var j=K.current;if(!(!j||!O||!te.length)){O.stop();var le=function(){var Pe=null,Fe=function(){var Xe=ie(j),Be=te.find(function(Me){var Le=Me.visibility;return Le&&Xe>=Le[0]&&Xe<=Le[1]});if(Be){if(Be.type==="seek"&&Be.visibility&&Be.frames.length===2){var He=Be.frames[0]+Math.ceil((Xe-Be.visibility[0])/(Be.visibility[1]-Be.visibility[0])*Be.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
144
|
+
O.goToAndStop(He-O.firstFrame-1,!0)}Be.type==="loop"&&(Pe===null||Pe!==Be.frames||O.isPaused)&&(O.playSegments(Be.frames,!0),Pe=Be.frames),Be.type==="play"&&O.isPaused&&(O.resetSegments(!0),O.play()),Be.type==="stop"&&O.goToAndStop(Be.frames[0]-O.firstFrame-1,!0)}};return document.addEventListener("scroll",Fe),function(){document.removeEventListener("scroll",Fe)}},ue=function(){var Pe=function(Be,He){var Me=Be,Le=He;if(Me!==-1&&Le!==-1){var Ae=de(j,Me,Le);Me=Ae.x,Le=Ae.y}var Ge=te.find(function($t){var _t=$t.position;return _t&&Array.isArray(_t.x)&&Array.isArray(_t.y)?Me>=_t.x[0]&&Me<=_t.x[1]&&Le>=_t.y[0]&&Le<=_t.y[1]:_t&&!Number.isNaN(_t.x)&&!Number.isNaN(_t.y)?Me===_t.x&&Le===_t.y:!1});if(Ge){if(Ge.type==="seek"&&Ge.position&&Array.isArray(Ge.position.x)&&Array.isArray(Ge.position.y)&&Ge.frames.length===2){var ht=(Me-Ge.position.x[0])/(Ge.position.x[1]-Ge.position.x[0]),Gt=(Le-Ge.position.y[0])/(Ge.position.y[1]-Ge.position.y[0]);O.playSegments(Ge.frames,!0),O.goToAndStop(Math.ceil((ht+Gt)/2*(Ge.frames[1]-Ge.frames[0])),!0)}Ge.type==="loop"&&O.playSegments(Ge.frames,!0),Ge.type==="play"&&(O.isPaused&&O.resetSegments(!1),O.playSegments(Ge.frames)),Ge.type==="stop"&&O.goToAndStop(Ge.frames[0],!0)}},Fe=function(Be){Pe(Be.clientX,Be.clientY)},We=function(){Pe(-1,-1)};return j.addEventListener("mousemove",Fe),j.addEventListener("mouseout",We),function(){j.removeEventListener("mousemove",Fe),j.removeEventListener("mouseout",We)}};switch(V){case"scroll":return le();case"cursor":return ue()}}},[V,O])},I=function(ee){var K=ee.actions,O=ee.mode,V=ee.lottieObj,te=V.animationItem,j=V.View,le=V.animationContainerRef;return ae({actions:K,animationItem:te,mode:O,wrapperRef:le}),j},xe=["style","interactivity"],Ce=function(ee){var K,O,V,te=ee.style,j=ee.interactivity,le=w(ee,xe),ue=U(le,te),De=ue.View,Pe=ue.play,Fe=ue.stop,We=ue.pause,Xe=ue.setSpeed,Be=ue.goToAndStop,He=ue.goToAndPlay,Me=ue.setDirection,Le=ue.playSegments,Ae=ue.setSubframe,Ge=ue.getDuration,ht=ue.destroy,Gt=ue.animationContainerRef,$t=ue.animationLoaded,_t=ue.animationItem;return r.useEffect(function(){ee.lottieRef&&(ee.lottieRef.current={play:Pe,stop:Fe,pause:We,setSpeed:Xe,goToAndPlay:He,goToAndStop:Be,setDirection:Me,playSegments:Le,setSubframe:Ae,getDuration:Ge,destroy:ht,animationContainerRef:Gt,animationLoaded:$t,animationItem:_t})},[(K=ee.lottieRef)===null||K===void 0?void 0:K.current]),I({lottieObj:{View:De,play:Pe,stop:Fe,pause:We,setSpeed:Xe,goToAndStop:Be,goToAndPlay:He,setDirection:Me,playSegments:Le,setSubframe:Ae,getDuration:Ge,destroy:ht,animationContainerRef:Gt,animationLoaded:$t,animationItem:_t},actions:(O=j==null?void 0:j.actions)!==null&&O!==void 0?O:[],mode:(V=j==null?void 0:j.mode)!==null&&V!==void 0?V:"scroll"})};n.LottiePlayer=l,n.default=Ce,n.useLottie=U,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Kf,Kf.exports)),Kf.exports}var Ase=Dse();const Tse=fi(Ase),Pse=A.createContext({});function _se(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const z$=typeof window<"u",Mse=z$?A.useLayoutEffect:A.useEffect,KO=A.createContext(null),UO=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Fse(e){return typeof e=="object"&&e!==null}function zO(e){return Fse(e)&&"offsetHeight"in e}const Zh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rse(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(h){a.has(h)&&(d.schedule(h),e()),h(o)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&a.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(o=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 Qa={},kse=40;function qO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Zh.reduce((S,k)=>(S[k]=Rse(s),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=a,$=()=>{const S=Qa.useManualTiming?i.timestamp:performance.now();n=!1,Qa.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,kse),1)),i.timestamp=S,i.isProcessing=!0,o.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e($))},D=()=>{n=!0,r=!0,i.isProcessing||e($)};return{schedule:Zh.reduce((S,k)=>{const P=a[k];return S[k]=(F,U=!1,ie=!1)=>(n||D(),P.schedule(F,U,ie)),S},{}),cancel:S=>{for(let k=0;k<Zh.length;k++)a[Zh[k]].cancel(S)},state:i,steps:a}}const Fc=e=>e,{schedule:Ts,cancel:x4,state:lm}=qO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fc,!0),q$=A.createContext({strict:!1}),o2={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"]},gc={};for(const e in o2)gc[e]={isEnabled:t=>o2[e].some(n=>!!t[n])};function u2(e){for(const t in e)gc[t]={...gc[t],...e[t]}}function Ose({children:e,features:t,strict:n=!1}){const[,r]=A.useState(!P1(t)),i=A.useRef(void 0);if(!P1(t)){const{renderer:s,...a}=t;i.current=s,u2(a)}return A.useEffect(()=>{P1(t)&&t().then(({renderer:s,...a})=>{u2(a),i.current=s,r(!0)})},[]),la.jsx(q$.Provider,{value:{renderer:i.current,strict:n},children:e})}function P1(e){return typeof e=="function"}const Ise=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 cm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ise.has(e)}let WO=e=>!cm(e);function Lse(e){e&&(WO=t=>t.startsWith("on")?!cm(t):e(t))}try{Lse(require("@emotion/is-prop-valid").default)}catch{}function Vse(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(WO(i)||n===!0&&cm(i)||!t&&!cm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const l2=new Set;function W$(e,t,n){e||l2.has(t)||(console.warn(t),l2.add(t))}function Bse(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&W$(!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 cg=A.createContext({});function fg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function bd(e){return typeof e=="string"||Array.isArray(e)}const H$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G$=["initial",...H$];function dg(e){return fg(e.animate)||G$.some(t=>bd(e[t]))}function HO(e){return!!(dg(e)||e.variants)}function Nse(e,t){if(dg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bd(n)?n:void 0,animate:bd(r)?r:void 0}}return e.inherit!==!1?t:{}}function jse(e){const{initial:t,animate:n}=Nse(e,A.useContext(cg));return A.useMemo(()=>({initial:t,animate:n}),[c2(t),c2(n)])}function c2(e){return Array.isArray(e)?e.join(" "):e}const Kse=Symbol.for("motionComponentSymbol");function GO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Use(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):GO(n)&&(n.current=r))},[t])}const Y$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),zse="framerAppearId",YO="data-"+Y$(zse),qse=A.createContext({}),{schedule:Wse}=qO(queueMicrotask,!1);function Hse(e,t,n,r,i){var $,D;const{visualElement:s}=A.useContext(cg),a=A.useContext(q$),o=A.useContext(KO),l=A.useContext(UO).reducedMotion,d=A.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const h=d.current,m=A.useContext(qse);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Gse(d.current,n,i,m);const g=A.useRef(!1);A.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[YO],w=A.useRef(!!b&&!(($=window.MotionHandoffIsComplete)!=null&&$.call(window,b))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,b)));return Mse(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Wse.render(h.render),w.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1))}),h}function Gse(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ZO(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&GO(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:l,layoutRoot:d})}function ZO(e){if(e)return e.options.allowProjection!==!1?e.projection:ZO(e.parent)}let qd=()=>{},Wu=()=>{};process.env.NODE_ENV!=="production"&&(qd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Wu=(e,t)=>{if(!e)throw new Error(t)});function Yse({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function s(o,l){let d;const h={...A.useContext(UO),...o,layoutId:Zse(o)},{isStatic:m}=h,g=jse(o),b=r(o,m);if(!m&&z$){Xse(h,e);const w=Jse(h);d=w.MeasureLayout,g.visualElement=Hse(i,b,h,t,w.ProjectionNode)}return la.jsxs(cg.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,Use(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=A.forwardRef(s);return a[Kse]=i,a}function Zse({layoutId:e}){const t=A.useContext(Pse).id;return t&&e!==void 0?t+"-"+e:e}function Xse(e,t){A.useContext(q$).strict,process.env.NODE_ENV}function Jse(e){const{drag:t,layout:n}=gc;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 XO=e=>t=>typeof t=="string"&&t.startsWith(e),JO=XO("--"),Qse=XO("var(--"),Z$=e=>Qse(e)?eae.test(e.split("/*")[0].trim()):!1,eae=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tae={},Rc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kc=new Set(Rc);function QO(e,{layout:t,layoutId:n}){return kc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tae[e]||e==="opacity")}const eI=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hu=(e,t,n)=>n>t?t:n<e?e:n,Oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$d={...Oc,transform:e=>Hu(0,1,e)},Xh={...Oc,default:1},f2={...Oc,transform:Math.round},Wd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xo=Wd("deg"),nc=Wd("%"),Tt=Wd("px"),nae=Wd("vh"),rae=Wd("vw"),d2={...nc,parse:e=>nc.parse(e)/100,transform:e=>nc.transform(e*100)},iae={rotate:xo,rotateX:xo,rotateY:xo,rotateZ:xo,scale:Xh,scaleX:Xh,scaleY:Xh,scaleZ:Xh,skew:xo,skewX:xo,skewY:xo,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:$d,originX:d2,originY:d2,originZ:Tt},X$={borderWidth:Tt,borderTopWidth:Tt,borderRightWidth:Tt,borderBottomWidth:Tt,borderLeftWidth:Tt,borderRadius:Tt,radius:Tt,borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomRightRadius:Tt,borderBottomLeftRadius:Tt,width:Tt,maxWidth:Tt,height:Tt,maxHeight:Tt,top:Tt,right:Tt,bottom:Tt,left:Tt,padding:Tt,paddingTop:Tt,paddingRight:Tt,paddingBottom:Tt,paddingLeft:Tt,margin:Tt,marginTop:Tt,marginRight:Tt,marginBottom:Tt,marginLeft:Tt,backgroundPositionX:Tt,backgroundPositionY:Tt,...iae,zIndex:f2,fillOpacity:$d,strokeOpacity:$d,numOctaves:f2},sae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aae=Rc.length;function oae(e,t,n){let r="",i=!0;for(let s=0;s<aae;s++){const a=Rc[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const d=eI(o,X$[a]);if(!l){i=!1;const h=sae[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function J$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const d=t[l];if(kc.has(l)){a=!0;continue}else if(JO(l)){i[l]=d;continue}else{const h=eI(d,X$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=oae(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const Q$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qr=e=>!!(e&&e.getVelocity);function tI(e,t,n){for(const r in t)!qr(t[r])&&!QO(r,n)&&(e[r]=t[r])}function uae({transformTemplate:e},t){return A.useMemo(()=>{const n=Q$();return J$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lae(e,t){const n=e.style||{},r={};return tI(r,n,e),Object.assign(r,uae(e,t)),r}function cae(e,t){const n={},r=lae(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 fae={offset:"stroke-dashoffset",array:"stroke-dasharray"},dae={offset:"strokeDashoffset",array:"strokeDasharray"};function hae(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?fae:dae;e[s.offset]=Tt.transform(-r);const a=Tt.transform(t),o=Tt.transform(n);e[s.array]=`${a} ${o}`}function nI(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,d,h){if(J$(e,o,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&hae(m,i,s,a,!1)}const rI=()=>({...Q$(),attrs:{}}),iI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pae(e,t,n,r){const i=A.useMemo(()=>{const s=rI();return nI(s,t,iI(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};tI(s,e.style,e),i.style={...s,...i.style}}return i}const mae=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ex(e){return typeof e!="string"||e.includes("-")?!1:!!(mae.indexOf(e)>-1||/[A-Z]/u.test(e))}function gae(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(ex(n)?pae:cae)(r,s,a,n),d=Vse(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>qr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function h2(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function tx(e,t,n,r){if(typeof t=="function"){const[i,s]=h2(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]=h2(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function vae(e){return qr(e)?e.get():e}function yae({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:bae(n,r,i,e),renderState:t()}}const sI=e=>(t,n)=>{const r=A.useContext(cg),i=A.useContext(KO),s=()=>yae(e,t,r,i);return n?s():_se(s)};function bae(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=vae(s[g]);let{initial:a,animate:o}=e;const l=dg(e),d=HO(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?o:a;if(m&&typeof m!="boolean"&&!fg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=tx(e,g[b]);if(w){const{transitionEnd:$,transition:D,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const k=h?S.length-1:0;S=S[k]}S!==null&&(i[E]=S)}for(const E in $)i[E]=$[E]}}}return i}function nx(e,t,n){var s;const{style:r}=e,i={};for(const a in r)(qr(r[a])||t.style&&qr(t.style[a])||QO(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const $ae={useVisualState:sI({scrapeMotionValuesFromProps:nx,createRenderState:Q$})};function aI(e,t,n){const r=nx(e,t,n);for(const i in e)if(qr(e[i])||qr(t[i])){const s=Rc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const xae={useVisualState:sI({scrapeMotionValuesFromProps:aI,createRenderState:rI})};function wae(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ex(r)?xae:$ae,preloadedFeatures:e,useRender:gae(i),createVisualElement:t,Component:r};return Yse(a)}}const Cae=wae(),Eae=Bse(Cae);function xd(e,t,n){const r=e.getProps();return tx(r,t,n!==void 0?n:r.custom,e)}const w4=e=>Array.isArray(e);let Sp;function Sae(){Sp=void 0}const Xi={now:()=>(Sp===void 0&&Xi.set(lm.isProcessing||Qa.useManualTiming?lm.timestamp:performance.now()),Sp),set:e=>{Sp=e,queueMicrotask(Sae)}};function Dae(e,t){e.indexOf(t)===-1&&e.push(t)}function Aae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oI{constructor(){this.subscriptions=[]}add(t){return Dae(this.subscriptions,t),()=>Aae(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 a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function uI(e,t){return t?e*(1e3/t):0}const p2=30,Tae=e=>!isNaN(parseFloat(e));class Pae{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,o;const s=Xi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((o=this.events.renderRequest)==null||o.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Tae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&W$(!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 oI);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ts.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>p2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,p2);return uI(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fm(e,t){return new Pae(e,t)}function _ae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fm(n))}function Mae(e){return w4(e)?e[e.length-1]||0:e}function Fae(e,t){const n=xd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Mae(s[a]);_ae(e,a,o)}}function Rae(e){return!!(qr(e)&&e.add)}function kae(e,t){const n=e.getValue("willChange");if(Rae(n))return n.add(t);if(!n&&Qa.WillChange){const r=new Qa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Oae(e){return e.props[YO]}const Iae=e=>e!==null;function Lae(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Iae),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Vae={type:"spring",stiffness:500,damping:25,restSpeed:10},Bae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Nae={type:"keyframes",duration:.8},jae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kae=(e,{keyframes:t})=>t.length>2?Nae:kc.has(e)?e.startsWith("scale")?Bae(t[1]):Vae:jae;function Uae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:d,...h}){return!!Object.keys(h).length}function lI(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ua=e=>e*1e3,Ga=e=>e/1e3,Qf=e=>Math.round(e*1e5)/1e5,rx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zae(e){return e==null}const qae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ix=(e,t)=>n=>!!(typeof n=="string"&&qae.test(n)&&n.startsWith(e)||t&&!zae(n)&&Object.prototype.hasOwnProperty.call(n,t)),cI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,o]=r.match(rx);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Wae=e=>Hu(0,255,e),_1={...Oc,transform:e=>Math.round(Wae(e))},Du={test:ix("rgb","red"),parse:cI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_1.transform(e)+", "+_1.transform(t)+", "+_1.transform(n)+", "+Qf($d.transform(r))+")"};function Hae(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 C4={test:ix("#"),parse:Hae,transform:Du.transform},ql={test:ix("hsl","hue"),parse:cI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nc.transform(Qf(t))+", "+nc.transform(Qf(n))+", "+Qf($d.transform(r))+")"},Pr={test:e=>Du.test(e)||C4.test(e)||ql.test(e),parse:e=>Du.test(e)?Du.parse(e):ql.test(e)?ql.parse(e):C4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Du.transform(e):ql.transform(e)},Gae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(rx))==null?void 0:t.length)||0)+(((n=e.match(Gae))==null?void 0:n.length)||0)>0}const fI="number",dI="color",Zae="var",Xae="var(",m2="${}",Jae=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Jae,l=>(Pr.test(l)?(r.color.push(s),i.push(dI),n.push(Pr.parse(l))):l.startsWith(Xae)?(r.var.push(s),i.push(Zae),n.push(l)):(r.number.push(s),i.push(fI),n.push(parseFloat(l))),++s,m2)).split(m2);return{values:n,split:o,indexes:r,types:i}}function hI(e){return wd(e).values}function pI(e){const{split:t,types:n}=wd(e),r=t.length;return i=>{let s="";for(let a=0;a<r;a++)if(s+=t[a],i[a]!==void 0){const o=n[a];o===fI?s+=Qf(i[a]):o===dI?s+=Pr.transform(i[a]):s+=i[a]}return s}}const Qae=e=>typeof e=="number"?0:e;function eoe(e){const t=hI(e);return pI(e)(t.map(Qae))}const Ic={test:Yae,parse:hI,createTransformer:pI,getAnimatableNone:eoe};function M1(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 toe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=M1(l,o,e+1/3),s=M1(l,o,e),a=M1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function dm(e,t){return n=>n>0?t:e}const hg=(e,t,n)=>e+(t-e)*n,F1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},noe=[C4,Du,ql],roe=e=>noe.find(t=>t.test(e));function g2(e){const t=roe(e);if(qd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ql&&(n=toe(n)),n}const v2=(e,t)=>{const n=g2(e),r=g2(t);if(!n||!r)return dm(e,t);const i={...n};return s=>(i.red=F1(n.red,r.red,s),i.green=F1(n.green,r.green,s),i.blue=F1(n.blue,r.blue,s),i.alpha=hg(n.alpha,r.alpha,s),Du.transform(i))},E4=new Set(["none","hidden"]);function ioe(e,t){return E4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const soe=(e,t)=>n=>t(e(n)),pg=(...e)=>e.reduce(soe);function aoe(e,t){return n=>hg(e,t,n)}function sx(e){return typeof e=="number"?aoe:typeof e=="string"?Z$(e)?dm:Pr.test(e)?v2:loe:Array.isArray(e)?mI:typeof e=="object"?Pr.test(e)?v2:ooe:dm}function mI(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>sx(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function ooe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=sx(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function uoe(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],o=e.values[a]??0;n[i]=o,r[s]++}return n}const loe=(e,t)=>{const n=Ic.createTransformer(t),r=wd(e),i=wd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?E4.has(e)&&!i.values.length||E4.has(t)&&!r.values.length?ioe(e,t):pg(mI(uoe(r,i),i.values),n):(qd(!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.`),dm(e,t))};function gI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?hg(e,t,n):sx(e)(e,t)}const coe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ts.update(t,n),stop:()=>x4(t),now:()=>lm.isProcessing?lm.timestamp:Xi.now()}},vI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},hm=2e4;function ax(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hm;)t+=n,r=e.next(t);return t>=hm?1/0:t}function foe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ax(r),hm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ga(i)}}const doe=5;function yI(e,t,n){const r=Math.max(t-doe,0);return uI(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},R1=.001;function hoe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;qd(e<=ua(Rn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Hu(Rn.minDamping,Rn.maxDamping,a),e=Hu(Rn.minDuration,Rn.maxDuration,Ga(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=S4(d,a),w=Math.exp(-m);return R1-g/b*w},s=d=>{const m=d*a*e,g=m*n+n,b=Math.pow(a,2)*Math.pow(d,2)*e,w=Math.exp(-m),$=S4(Math.pow(d,2),a);return(-i(d)+R1>0?-1:1)*((g-b)*w)/$}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-R1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=moe(i,s,o);if(e=ua(e),isNaN(l))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const poe=12;function moe(e,t,n){let r=n;for(let i=1;i<poe;i++)r=r-e(r)/t(r);return r}function S4(e,t){return e*Math.sqrt(1-t*t)}const goe=["duration","bounce"],voe=["stiffness","damping","mass"];function y2(e,t){return t.some(n=>e[n]!==void 0)}function yoe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!y2(e,voe)&&y2(e,goe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Hu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=hoe(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function pm(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],a=n.keyframes[n.keyframes.length-1],o={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=yoe({...n,velocity:-Ga(n.velocity||0)}),w=g||0,$=d/(2*Math.sqrt(l*h)),D=a-s,C=Ga(Math.sqrt(l/h)),E=Math.abs(D)<5;r||(r=E?Rn.restSpeed.granular:Rn.restSpeed.default),i||(i=E?Rn.restDelta.granular:Rn.restDelta.default);let S;if($<1){const P=S4(C,$);S=F=>{const U=Math.exp(-$*C*F);return a-U*((w+$*C*D)/P*Math.sin(P*F)+D*Math.cos(P*F))}}else if($===1)S=P=>a-Math.exp(-C*P)*(D+(w+C*D)*P);else{const P=C*Math.sqrt($*$-1);S=F=>{const U=Math.exp(-$*C*F),ie=Math.min(P*F,300);return a-U*((w+$*C*D)*Math.sinh(ie)+P*D*Math.cosh(ie))/P}}const k={calculatedDuration:b&&m||null,next:P=>{const F=S(P);if(b)o.done=P>=m;else{let U=P===0?w:0;$<1&&(U=P===0?ua(w):yI(S,P,F));const ie=Math.abs(U)<=r,de=Math.abs(a-F)<=i;o.done=ie&&de}return o.value=o.done?a:F,o},toString:()=>{const P=Math.min(ax(k),hm),F=vI(U=>k.next(P*U).value,P,30);return P+"ms "+F},toTransition:()=>{}};return k}pm.applyToOptions=e=>{const t=foe(e,100,pm);return e.ease=t.ease,e.duration=ua(t.duration),e.type="keyframes",e};function D4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>o!==void 0&&ie<o||l!==void 0&&ie>l,w=ie=>o===void 0?l:l===void 0||Math.abs(o-ie)<Math.abs(l-ie)?o:l;let $=n*t;const D=m+$,C=a===void 0?D:a(D);C!==D&&($=C-m);const E=ie=>-$*Math.exp(-ie/r),S=ie=>C+E(ie),k=ie=>{const de=E(ie),ae=S(ie);g.done=Math.abs(de)<=d,g.value=g.done?C:ae};let P,F;const U=ie=>{b(g.value)&&(P=ie,F=pm({keyframes:[g.value,w(g.value)],velocity:yI(S,ie,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return U(0),{calculatedDuration:null,next:ie=>{let de=!1;return!F&&P===void 0&&(de=!0,k(ie),U(ie)),P!==void 0&&ie>=P?F.next(ie-P):(!de&&k(ie),g)}}}const bI=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function boe(e,t,n){const r=[],i=n||Qa.mix||gI,s=e.length-1;for(let a=0;a<s;a++){let o=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Fc:t;o=pg(l,o)}r.push(o)}return r}function $oe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Wu(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 a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=boe(t,r,i),l=o.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=bI(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Hu(e[0],e[s-1],h)):d}function xoe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bI(0,t,r);e.push(hg(n,1,i))}}function woe(e){const t=[0];return xoe(t,e.length-1),t}function Coe(e,t){return e.map(n=>n*t)}const $I=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Eoe=1e-7,Soe=12;function Doe(e,t,n,r,i){let s,a,o=0;do a=t+(n-t)/2,s=$I(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>Eoe&&++o<Soe);return a}function Hd(e,t,n,r){if(e===t&&n===r)return Fc;const i=s=>Doe(s,0,1,e,n);return s=>s===0||s===1?s:$I(i(s),t,r)}const Aoe=Hd(.42,0,1,1),Toe=Hd(0,0,.58,1),xI=Hd(.42,0,.58,1),Poe=e=>Array.isArray(e)&&typeof e[0]!="number",wI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CI=e=>t=>1-e(1-t),EI=Hd(.33,1.53,.69,.99),ox=CI(EI),SI=wI(ox),DI=e=>(e*=2)<1?.5*ox(e):.5*(2-Math.pow(2,-10*(e-1))),ux=e=>1-Math.sin(Math.acos(e)),_oe=CI(ux),AI=wI(ux),TI=e=>Array.isArray(e)&&typeof e[0]=="number",b2={linear:Fc,easeIn:Aoe,easeInOut:xI,easeOut:Toe,circIn:ux,circInOut:AI,circOut:_oe,backIn:ox,backInOut:SI,backOut:EI,anticipate:DI},Moe=e=>typeof e=="string",$2=e=>{if(TI(e)){Wu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Hd(t,n,r,i)}else if(Moe(e))return Wu(b2[e]!==void 0,`Invalid easing type '${e}'`),b2[e];return e};function Foe(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function Wl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Poe(r)?r.map($2):$2(r),s={done:!1,value:t[0]},a=Coe(n&&n.length===t.length?n:woe(t),e),o=$oe(a,t,{ease:Array.isArray(i)?i:Foe(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const Roe=e=>e!==null;function lx(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Roe),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const koe={decay:D4,inertia:D4,tween:Wl,keyframes:Wl,spring:pm};function PI(e){typeof e.type=="string"&&(e.type=koe[e.type])}class cx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ooe=e=>e/100;class fx extends cx{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xi.now()&&this.tick(Xi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;PI(t);const{type:n=Wl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Wl;process.env.NODE_ENV!=="production"&&l!==Wl&&Wu(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Wl&&typeof o[0]!="number"&&(this.mixKeyframes=pg(Ooe,gI(o[0],o[1])),o=[0,100]);const d=l({...t,keyframes:o});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=ax(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:$,finalKeyframe:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,k=r;if(m){const ie=Math.min(this.currentTime,i)/o;let de=Math.floor(ie),ae=ie%1;!ae&&ie>=1&&(ae=1),ae===1&&de--,de=Math.min(de,m+1),!!(de%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),S=Hu(0,1,ae)*o}const P=E?{done:!1,value:h[0]}:k.next(S);s&&(P.value=s(P.value));let{done:F}=P;!E&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return U&&w!==D4&&(P.value=lx(h,this.options,D,this.speed)),$&&$(P.value),U&&this.finish(),P}then(t,n){return this.finished.then(t,n)}get duration(){return Ga(this.calculatedDuration)}get time(){return Ga(this.currentTime)}set time(t){var n;t=ua(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ga(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=coe,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Ioe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Au=e=>e*180/Math.PI,A4=e=>{const t=Au(Math.atan2(e[1],e[0]));return T4(t)},Loe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:A4,rotateZ:A4,skewX:e=>Au(Math.atan(e[1])),skewY:e=>Au(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},T4=e=>(e=e%360,e<0&&(e+=360),e),x2=A4,w2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),C2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Voe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:w2,scaleY:C2,scale:e=>(w2(e)+C2(e))/2,rotateX:e=>T4(Au(Math.atan2(e[6],e[5]))),rotateY:e=>T4(Au(Math.atan2(-e[2],e[0]))),rotateZ:x2,rotate:x2,skewX:e=>Au(Math.atan(e[4])),skewY:e=>Au(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function P4(e){return e.includes("scale")?1:0}function _4(e,t){if(!e||e==="none")return P4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Voe,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Loe,i=o}if(!i)return P4(t);const s=r[t],a=i[1].split(",").map(Noe);return typeof s=="function"?s(a):a[s]}const Boe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _4(n,t)};function Noe(e){return parseFloat(e.trim())}const E2=e=>e===Oc||e===Tt,joe=new Set(["x","y","z"]),Koe=Rc.filter(e=>!joe.has(e));function Uoe(e){const t=[];return Koe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={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})=>_4(t,"x"),y:(e,{transform:t})=>_4(t,"y")};ku.translateX=ku.x;ku.translateY=ku.y;const Ou=new Set;let M4=!1,F4=!1,R4=!1;function _I(){if(F4){const e=Array.from(Ou).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Uoe(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,a])=>{var o;(o=r.getValue(s))==null||o.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}F4=!1,M4=!1,Ou.forEach(e=>e.complete(R4)),Ou.clear()}function MI(){Ou.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(F4=!0)})}function zoe(){R4=!0,MI(),_I(),R4=!1}class dx{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Ou.add(this),M4||(M4=!0,Ts.read(MI),Ts.resolveKeyframes(_I))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const o=r.readValue(n,a);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}Ioe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ou.delete(this)}cancel(){this.state==="scheduled"&&(Ou.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qoe=e=>e.startsWith("--");function Woe(e,t,n){qoe(t)?e.style.setProperty(t,n):e.style[t]=n}function hx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Hoe=hx(()=>window.ScrollTimeline!==void 0),Goe={};function Yoe(e,t){const n=hx(e);return()=>Goe[t]??n()}const FI=Yoe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Uf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,S2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Uf([0,.65,.55,1]),circOut:Uf([.55,0,1,.45]),backIn:Uf([.31,.01,.66,-.59]),backOut:Uf([.33,1.53,.69,.99])};function RI(e,t){if(e)return typeof e=="function"?FI()?vI(e,t):"ease-out":TI(e)?Uf(e):Array.isArray(e)?e.map(n=>RI(n,t)||S2.easeOut):S2[e]}function Zoe(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},d=void 0){const h={[t]:n};l&&(h.offset=l);const m=RI(o,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function kI(e){return typeof e=="function"&&"applyToOptions"in e}function Xoe({type:e,...t}){return kI(e)&&FI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Joe extends cx{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:o,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,Wu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Xoe(t);this.animation=Zoe(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=lx(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Woe(n,r,h),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ga(Number(t))}get time(){return Ga(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ua(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Hoe()?(this.animation.timeline=t,Fc):n(this)}}const OI={anticipate:DI,backInOut:SI,circInOut:AI};function Qoe(e){return e in OI}function eue(e){typeof e.ease=="string"&&Qoe(e.ease)&&(e.ease=OI[e.ease])}const D2=10;class tue extends Joe{constructor(t){eue(t),PI(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new fx({...a,autoplay:!1}),l=ua(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-D2).value,o.sample(l).value,D2),o.stop()}}const A2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ic.test(e)||e==="0")&&!e.startsWith("url("));function nue(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 rue(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],a=A2(i,t),o=A2(s,t);return qd(a===o,`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.`),!a||!o?!1:nue(e)||(n==="spring"||kI(n))&&r}const iue=new Set(["opacity","clipPath","filter","transform"]),sue=hx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function aue(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a}=e;if(!zO((d=t==null?void 0:t.owner)==null?void 0:d.current))return!1;const{onUpdate:o,transformTemplate:l}=t.owner.getProps();return sue()&&n&&iue.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const oue=40;class uue extends cx{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:o,name:l,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var $,D;this._animation&&(this._animation.stop(),($=this.stopTimeline)==null||$.call(this)),(D=this.keyframeResolver)==null||D.cancel()},this.createdAt=Xi.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:l,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||dx;this.keyframeResolver=new b(o,($,D,C)=>this.onKeyframesResolved($,D,g,!C),l,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:o,delay:l,isHandoff:d,onUpdate:h}=r;this.resolvedAt=Xi.now(),rue(t,s,a,o)||((Qa.instantAnimations||!l)&&(h==null||h(lx(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>oue?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&aue(g)?new tue({...g,element:g.motionValue.owner.current}):new fx(g);b.finished.then(()=>this.notifyFinished()).catch(Fc),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),zoe()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const lue=(e,t,n,r={},i,s)=>a=>{const o=lI(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ua(l);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-d,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Uae(o)||Object.assign(h,Kae(e,h)),h.duration&&(h.duration=ua(h.duration)),h.repeatDelay&&(h.repeatDelay=ua(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)),(Qa.instantAnimations||Qa.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Lae(h.keyframes,o);if(g!==void 0){Ts.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new fx(h):new uue(h)},II=new Set(["width","height","top","left","right","bottom",...Rc]);function cue({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function LI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in o){const m=e.getValue(h,e.latestValues[h]??null),g=o[h];if(g===void 0||d&&cue(d,h))continue;const b={delay:n,...lI(s||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let $=!1;if(window.MotionHandoffAnimation){const C=Oae(e);if(C){const E=window.MotionHandoffAnimation(C,h,Ts);E!==null&&(b.startTime=E,$=!0)}}kae(e,h),m.start(lue(h,m,g,e.shouldReduceMotion&&II.has(h)?{type:!1}:b,e,$));const D=m.animation;D&&l.push(D)}return a&&Promise.all(l).then(()=>{Ts.update(()=>{a&&Fae(e,a)})}),l}function k4(e,t,n={}){var l;const r=xd(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(LI(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return fue(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[d,h]=o==="beforeChildren"?[s,a]:[a,s];return d().then(()=>h())}else return Promise.all([s(),a(n.delay)])}function fue(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>o-d*r;return Array.from(e.variantChildren).sort(due).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(k4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function due(e,t){return e.sortNodePosition(t)}function hue(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>k4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=k4(e,t,n);else{const i=typeof t=="function"?xd(e,t,n.custom):t;r=Promise.all(LI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function VI(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 pue=G$.length;function BI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?BI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pue;n++){const r=G$[n],i=e.props[r];(bd(i)||i===!1)&&(t[r]=i)}return t}const mue=[...H$].reverse(),gue=H$.length;function vue(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hue(e,n,r)))}function yue(e){let t=vue(e),n=T2(),r=!0;const i=l=>(d,h)=>{var g;const m=xd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...$}=m;d={...d,...$,...w}}return d};function s(l){t=l(e)}function a(l){const{props:d}=e,h=BI(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let D=0;D<gue;D++){const C=mue[D],E=n[C],S=d[C]!==void 0?d[C]:h[C],k=bd(S),P=C===l?E.isActive:null;P===!1&&(w=D);let F=S===h[C]&&S!==d[C]&&k;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&P===null||!S&&!E.prevProp||fg(S)||typeof S=="boolean")continue;const U=bue(E.prevProp,S);let ie=U||C===l&&E.isActive&&!F&&k||D>w&&k,de=!1;const ae=Array.isArray(S)?S:[S];let I=ae.reduce(i(C),{});P===!1&&(I={});const{prevResolvedValues:xe={}}=E,Ce={...xe,...I},z=O=>{ie=!0,g.has(O)&&(de=!0,g.delete(O)),E.needsAnimating[O]=!0;const V=e.getValue(O);V&&(V.liveStyle=!1)};for(const O in Ce){const V=I[O],te=xe[O];if(b.hasOwnProperty(O))continue;let j=!1;w4(V)&&w4(te)?j=!VI(V,te):j=V!==te,j?V!=null?z(O):g.add(O):V!==void 0&&g.has(O)?z(O):E.protectedKeys[O]=!0}E.prevProp=S,E.prevResolvedValues=I,E.isActive&&(b={...b,...I}),r&&e.blockInitialAnimation&&(ie=!1),ie&&(!(F&&U)||de)&&m.push(...ae.map(O=>({animation:O,options:{type:C}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const C=xd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(D.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),D[C]=E??null}),m.push({animation:D})}let $=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(m):Promise.resolve()}function o(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=T2(),r=!0}}}function bue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!VI(t,e):!1}function hu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function T2(){return{animate:hu(!0),whileInView:hu(),whileHover:hu(),whileTap:hu(),whileDrag:hu(),whileFocus:hu(),exit:hu()}}class Lc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $ue extends Lc{constructor(t){super(t),t.animationState||(t.animationState=yue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();fg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let xue=0;class wue extends Lc{constructor(){super(...arguments),this.id=xue++}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 Cue={animation:{Feature:$ue},exit:{Feature:wue}};function P2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Eue=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function NI(e){return{point:{x:e.pageX,y:e.pageY}}}function Sue({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Due(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 _2=()=>({min:0,max:0}),jI=()=>({x:_2(),y:_2()});function Aue(e,t){return Sue(Due(e.getBoundingClientRect(),t))}const Tue={y:!1};function Pue(){return Tue.y}function _ue(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function KI(e,t){const n=_ue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function M2(e){return!(e.pointerType==="touch"||Pue())}function Mue(e,t,n={}){const[r,i,s]=KI(e,n),a=o=>{if(!M2(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{M2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}function F2(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&&Ts.postRender(()=>s(t,NI(t)))}class Fue extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=Mue(t,(n,r)=>(F2(this.node,r,"Start"),i=>F2(this.node,i,"End"))))}unmount(){}}class Rue extends Lc{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=pg(P2(this.node.current,"focus",()=>this.onFocus()),P2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const UI=(e,t)=>t?e===t?!0:UI(e,t.parentElement):!1,kue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Oue(e){return kue.has(e.tagName)||e.tabIndex!==-1}const Dp=new WeakSet;function R2(e){return t=>{t.key==="Enter"&&e(t)}}function k1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Iue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=R2(()=>{if(Dp.has(n))return;k1(n,"down");const i=R2(()=>{k1(n,"up")}),s=()=>k1(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 k2(e){return Eue(e)&&!0}function Lue(e,t,n={}){const[r,i,s]=KI(e,n),a=o=>{const l=o.currentTarget;if(!k2(o))return;Dp.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Dp.has(l)&&Dp.delete(l),k2(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,l===window||l===document||n.useGlobalTarget||UI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",a,i),zO(o)&&(o.addEventListener("focus",d=>Iue(d,i)),!Oue(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function O2(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&&Ts.postRender(()=>s(t,NI(t)))}class Vue extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=Lue(t,(n,r)=>(O2(this.node,r,"Start"),(i,{success:s})=>O2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const O4=new WeakMap,O1=new WeakMap,Bue=e=>{const t=O4.get(e.target);t&&t(e)},Nue=e=>{e.forEach(Bue)};function jue({root:e,...t}){const n=e||document;O1.has(n)||O1.set(n,{});const r=O1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Nue,{root:e,...t})),r[i]}function Kue(e,t,n){const r=jue(t);return O4.set(e,n),r.observe(e),()=>{O4.delete(e),r.unobserve(e)}}const Uue={some:0,all:1};class zue extends Lc{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Uue[i]},o=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 Kue(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(que(t,n))&&this.startObserver()}unmount(){}}function que({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Wue={inView:{Feature:zue},tap:{Feature:Vue},focus:{Feature:Rue},hover:{Feature:Fue}},I4={current:null},zI={current:!1};function Hue(){if(zI.current=!0,!!z$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>I4.current=e.matches;e.addListener(t),t()}else I4.current=!1}const Gue=new WeakMap;function Yue(e,t,n){for(const r in t){const i=t[r],s=n[r];if(qr(i))e.addValue(r,i);else if(qr(s))e.addValue(r,fm(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,fm(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const qI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),WI=e=>/^0[^.\s]+$/u.test(e),Zue={test:e=>e==="auto",parse:e=>e},HI=e=>t=>t.test(e),GI=[Oc,Tt,nc,xo,rae,nae,Zue],I2=e=>GI.find(HI(e)),Xue=[...GI,Pr,Ic],Jue=e=>Xue.find(HI(e)),Que=new Set(["brightness","contrast","saturate","opacity"]);function ele(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(rx)||[];if(!r)return e;const i=n.replace(r,"");let s=Que.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const tle=/\b([a-z-]*)\(.*?\)/gu,L4={...Ic,getAnimatableNone:e=>{const t=e.match(tle);return t?t.map(ele).join(" "):e}},nle={...X$,color:Pr,backgroundColor:Pr,outlineColor:Pr,fill:Pr,stroke:Pr,borderColor:Pr,borderTopColor:Pr,borderRightColor:Pr,borderBottomColor:Pr,borderLeftColor:Pr,filter:L4,WebkitFilter:L4},YI=e=>nle[e];function ZI(e,t){let n=YI(e);return n!==L4&&(n=Ic),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const L2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rle{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Xi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ts.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;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=o,this.blockInitialAnimation=!!s,this.isControllingVariants=dg(n),this.isVariantNode=HO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];l[g]!==void 0&&qr(b)&&b.set(l[g],!1)}}mount(t){this.current=t,Gue.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)),zI.current||Hue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:I4.current,process.env.NODE_ENV!=="production"&&W$(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(),x4(this.notifyUpdate),x4(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=kc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Ts.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gc){const n=gc[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):jI()}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<L2.length;r++){const i=L2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Yue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fm(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(qI(r)||WI(r))?r=parseFloat(r):!Jue(r)&&Ic.test(n)&&(r=ZI(t,n)),this.setBaseTarget(t,qr(r)?r.get():r)),qr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=tx(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!qr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oI),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}const ile=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sle(e){const t=ile.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ale=4;function XI(e,t,n=1){Wu(n<=ale,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=sle(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return qI(a)?parseFloat(a):a}return Z$(i)?XI(i,t,n+1):i}function ole(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WI(e):!0}const ule=new Set(["auto","none","0"]);function lle(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!ule.has(s)&&wd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=ZI(n,i)}class cle extends dx{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(),Z$(d))){const h=XI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!II.has(r)||t.length!==2)return;const[i,s]=t,a=I2(i),o=I2(s);if(a!==o)if(E2(a)&&E2(o))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else ku[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||ole(t[i]))&&r.push(i);r.length&&lle(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=ku[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 o;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=ku[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(o=this.removedTransforms)!=null&&o.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}class JI extends rle{constructor(){super(...arguments),this.KeyframeResolver=cle}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;qr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function QI(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])}function fle(e){return window.getComputedStyle(e)}class dle extends JI{constructor(){super(...arguments),this.type="html",this.renderInstance=QI}readValueFromInstance(t,n){var r;if(kc.has(n))return(r=this.projection)!=null&&r.isProjecting?P4(n):Boe(t,n);{const i=fle(t),s=(JO(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Aue(t,n)}build(t,n,r){J$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return nx(t,n,r)}}const e9=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 hle(e,t,n,r){QI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e9.has(i)?i:Y$(i),t.attrs[i])}class ple extends JI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jI}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kc.has(n)){const r=YI(n);return r&&r.default||0}return n=e9.has(n)?n:Y$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return aI(t,n,r)}build(t,n,r){nI(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){hle(t,n,r,i)}mount(t){this.isSVGTag=iI(t.tagName),super.mount(t)}}const mle=(e,t)=>ex(e)?new ple(t):new dle(t,{allowProjection:e!==A.Fragment}),gle={renderer:mle,...Cue,...Wue},vle=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t9=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),yle=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),ble=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),$le=(e,t)=>{t=t||ble(e);let n=t,r=t;t9(t)&&(n=t.map(s=>s.label),r=t.map(s=>s.key));const i=e.map(s=>r.map(a=>xle(a,s)));return[n,...i]},xle=(e,t)=>{const n=e.replace(/\[([^\]]+)]/g,".$1").split(".").reduce(function(r,i,s,a){const o=r[i];if(o==null)a.splice(1);else return o},t);return n===void 0?e in t?t[e]:"":n},wle=e=>typeof e>"u"||e===null?"":e,n9=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>wle(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
145
|
+
`),Cle=(e,t,n,r)=>n9(t?[t,...e]:e,n,r),Ele=(e,t,n,r)=>n9($le(e,t),n,r),Sle=(e,t,n,r)=>t?`${t.join(n)}
|
|
146
|
+
${e}`:e.replace(/"/g,'""'),r9=(e,t,n,r)=>{if(t9(e))return Ele(e,t,n,r);if(yle(e))return Cle(e,t,n,r);if(typeof e=="string")return Sle(e,t,n);throw new TypeError('Data should be a "String", "Array of arrays" OR "Array of objects" ')},i9=(e,t,n,r,i)=>{const s=r9(e,n,r,i),a=vle()?"application/csv":"text/csv",o=new Blob([t?"\uFEFF":"",s],{type:a}),l=`data:${a};charset=utf-8,${t?"\uFEFF":""}${s}`,d=window.URL||window.webkitURL;return typeof d.createObjectURL>"u"?l:d.createObjectURL(o)};var Jh={exports:{}},Qh={exports:{}},on={};/** @license React v16.13.1
|
|
147
|
+
* react-is.production.min.js
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the MIT license found in the
|
|
152
|
+
* LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/var V2;function Dle(){if(V2)return on;V2=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,a=e?Symbol.for("react.provider"):60109,o=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,w=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(P){if(typeof P=="object"&&P!==null){var F=P.$$typeof;switch(F){case t:switch(P=P.type,P){case l:case d:case r:case s:case i:case m:return P;default:switch(P=P&&P.$$typeof,P){case o:case h:case w:case b:case a:return P;default:return F}}case n:return F}}}function k(P){return S(P)===d}return on.AsyncMode=l,on.ConcurrentMode=d,on.ContextConsumer=o,on.ContextProvider=a,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=w,on.Memo=b,on.Portal=n,on.Profiler=s,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(P){return k(P)||S(P)===l},on.isConcurrentMode=k,on.isContextConsumer=function(P){return S(P)===o},on.isContextProvider=function(P){return S(P)===a},on.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},on.isForwardRef=function(P){return S(P)===h},on.isFragment=function(P){return S(P)===r},on.isLazy=function(P){return S(P)===w},on.isMemo=function(P){return S(P)===b},on.isPortal=function(P){return S(P)===n},on.isProfiler=function(P){return S(P)===s},on.isStrictMode=function(P){return S(P)===i},on.isSuspense=function(P){return S(P)===m},on.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===s||P===i||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===w||P.$$typeof===b||P.$$typeof===a||P.$$typeof===o||P.$$typeof===h||P.$$typeof===D||P.$$typeof===C||P.$$typeof===E||P.$$typeof===$)},on.typeOf=S,on}var un={};/** @license React v16.13.1
|
|
154
|
+
* react-is.development.js
|
|
155
|
+
*
|
|
156
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the MIT license found in the
|
|
159
|
+
* LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/var B2;function Ale(){return B2||(B2=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,a=e?Symbol.for("react.provider"):60109,o=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,w=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function S(Ae){return typeof Ae=="string"||typeof Ae=="function"||Ae===r||Ae===d||Ae===s||Ae===i||Ae===m||Ae===g||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===w||Ae.$$typeof===b||Ae.$$typeof===a||Ae.$$typeof===o||Ae.$$typeof===h||Ae.$$typeof===D||Ae.$$typeof===C||Ae.$$typeof===E||Ae.$$typeof===$)}function k(Ae){if(typeof Ae=="object"&&Ae!==null){var Ge=Ae.$$typeof;switch(Ge){case t:var ht=Ae.type;switch(ht){case l:case d:case r:case s:case i:case m:return ht;default:var Gt=ht&&ht.$$typeof;switch(Gt){case o:case h:case w:case b:case a:return Gt;default:return Ge}}case n:return Ge}}}var P=l,F=d,U=o,ie=a,de=t,ae=h,I=r,xe=w,Ce=b,z=n,ee=s,K=i,O=m,V=!1;function te(Ae){return V||(V=!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.")),j(Ae)||k(Ae)===l}function j(Ae){return k(Ae)===d}function le(Ae){return k(Ae)===o}function ue(Ae){return k(Ae)===a}function De(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===t}function Pe(Ae){return k(Ae)===h}function Fe(Ae){return k(Ae)===r}function We(Ae){return k(Ae)===w}function Xe(Ae){return k(Ae)===b}function Be(Ae){return k(Ae)===n}function He(Ae){return k(Ae)===s}function Me(Ae){return k(Ae)===i}function Le(Ae){return k(Ae)===m}un.AsyncMode=P,un.ConcurrentMode=F,un.ContextConsumer=U,un.ContextProvider=ie,un.Element=de,un.ForwardRef=ae,un.Fragment=I,un.Lazy=xe,un.Memo=Ce,un.Portal=z,un.Profiler=ee,un.StrictMode=K,un.Suspense=O,un.isAsyncMode=te,un.isConcurrentMode=j,un.isContextConsumer=le,un.isContextProvider=ue,un.isElement=De,un.isForwardRef=Pe,un.isFragment=Fe,un.isLazy=We,un.isMemo=Xe,un.isPortal=Be,un.isProfiler=He,un.isStrictMode=Me,un.isSuspense=Le,un.isValidElementType=S,un.typeOf=k}()),un}var N2;function s9(){return N2||(N2=1,process.env.NODE_ENV==="production"?Qh.exports=Dle():Qh.exports=Ale()),Qh.exports}/*
|
|
161
|
+
object-assign
|
|
162
|
+
(c) Sindre Sorhus
|
|
163
|
+
@license MIT
|
|
164
|
+
*/var I1,j2;function Tle(){if(j2)return I1;j2=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 a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(h){return a[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 I1=i()?Object.assign:function(s,a){for(var o,l=r(s),d,h=1;h<arguments.length;h++){o=Object(arguments[h]);for(var m in o)t.call(o,m)&&(l[m]=o[m]);if(e){d=e(o);for(var g=0;g<d.length;g++)n.call(o,d[g])&&(l[d[g]]=o[d[g]])}}return l},I1}var L1,K2;function px(){if(K2)return L1;K2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return L1=e,L1}var V1,U2;function a9(){return U2||(U2=1,V1=Function.call.bind(Object.prototype.hasOwnProperty)),V1}var B1,z2;function Ple(){if(z2)return B1;z2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=px(),n={},r=a9();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,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")+": "+o+" 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](a,h,l,o,null,t)}catch(w){m=w}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+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 "+o+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},B1=i,B1}var N1,q2;function _le(){if(q2)return N1;q2=1;var e=s9(),t=Tle(),n=px(),r=a9(),i=Ple(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return N1=function(o,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(j){var le=j&&(d&&j[d]||j[h]);if(typeof le=="function")return le}var g="<<anonymous>>",b={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:E(),arrayOf:S,element:k(),elementType:P(),instanceOf:F,node:ae(),objectOf:ie,oneOf:U,oneOfType:de,shape:xe,exact:Ce};function w(j,le){return j===le?j!==0||1/j===1/le:j!==j&&le!==le}function $(j,le){this.message=j,this.data=le&&typeof le=="object"?le:{},this.stack=""}$.prototype=Error.prototype;function D(j){if(process.env.NODE_ENV!=="production")var le={},ue=0;function De(Fe,We,Xe,Be,He,Me,Le){if(Be=Be||g,Me=Me||Xe,Le!==n){if(l){var Ae=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ae.name="Invariant Violation",Ae}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ge=Be+":"+Xe;!le[Ge]&&ue<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Me+"` prop on `"+Be+"`. 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."),le[Ge]=!0,ue++)}}return We[Xe]==null?Fe?We[Xe]===null?new $("The "+He+" `"+Me+"` is marked as required "+("in `"+Be+"`, but its value is `null`.")):new $("The "+He+" `"+Me+"` is marked as required in "+("`"+Be+"`, but its value is `undefined`.")):null:j(We,Xe,Be,He,Me)}var Pe=De.bind(null,!1);return Pe.isRequired=De.bind(null,!0),Pe}function C(j){function le(ue,De,Pe,Fe,We,Xe){var Be=ue[De],He=K(Be);if(He!==j){var Me=O(Be);return new $("Invalid "+Fe+" `"+We+"` of type "+("`"+Me+"` supplied to `"+Pe+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return D(le)}function E(){return D(a)}function S(j){function le(ue,De,Pe,Fe,We){if(typeof j!="function")return new $("Property `"+We+"` of component `"+Pe+"` has invalid PropType notation inside arrayOf.");var Xe=ue[De];if(!Array.isArray(Xe)){var Be=K(Xe);return new $("Invalid "+Fe+" `"+We+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected an array."))}for(var He=0;He<Xe.length;He++){var Me=j(Xe,He,Pe,Fe,We+"["+He+"]",n);if(Me instanceof Error)return Me}return null}return D(le)}function k(){function j(le,ue,De,Pe,Fe){var We=le[ue];if(!o(We)){var Xe=K(We);return new $("Invalid "+Pe+" `"+Fe+"` of type "+("`"+Xe+"` supplied to `"+De+"`, expected a single ReactElement."))}return null}return D(j)}function P(){function j(le,ue,De,Pe,Fe){var We=le[ue];if(!e.isValidElementType(We)){var Xe=K(We);return new $("Invalid "+Pe+" `"+Fe+"` of type "+("`"+Xe+"` supplied to `"+De+"`, expected a single ReactElement type."))}return null}return D(j)}function F(j){function le(ue,De,Pe,Fe,We){if(!(ue[De]instanceof j)){var Xe=j.name||g,Be=te(ue[De]);return new $("Invalid "+Fe+" `"+We+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected ")+("instance of `"+Xe+"`."))}return null}return D(le)}function U(j){if(!Array.isArray(j))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.")),a;function le(ue,De,Pe,Fe,We){for(var Xe=ue[De],Be=0;Be<j.length;Be++)if(w(Xe,j[Be]))return null;var He=JSON.stringify(j,function(Le,Ae){var Ge=O(Ae);return Ge==="symbol"?String(Ae):Ae});return new $("Invalid "+Fe+" `"+We+"` of value `"+String(Xe)+"` "+("supplied to `"+Pe+"`, expected one of "+He+"."))}return D(le)}function ie(j){function le(ue,De,Pe,Fe,We){if(typeof j!="function")return new $("Property `"+We+"` of component `"+Pe+"` has invalid PropType notation inside objectOf.");var Xe=ue[De],Be=K(Xe);if(Be!=="object")return new $("Invalid "+Fe+" `"+We+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected an object."));for(var He in Xe)if(r(Xe,He)){var Me=j(Xe,He,Pe,Fe,We+"."+He,n);if(Me instanceof Error)return Me}return null}return D(le)}function de(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var le=0;le<j.length;le++){var ue=j[le];if(typeof ue!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(ue)+" at index "+le+"."),a}function De(Pe,Fe,We,Xe,Be){for(var He=[],Me=0;Me<j.length;Me++){var Le=j[Me],Ae=Le(Pe,Fe,We,Xe,Be,n);if(Ae==null)return null;Ae.data&&r(Ae.data,"expectedType")&&He.push(Ae.data.expectedType)}var Ge=He.length>0?", expected one of type ["+He.join(", ")+"]":"";return new $("Invalid "+Xe+" `"+Be+"` supplied to "+("`"+We+"`"+Ge+"."))}return D(De)}function ae(){function j(le,ue,De,Pe,Fe){return z(le[ue])?null:new $("Invalid "+Pe+" `"+Fe+"` supplied to "+("`"+De+"`, expected a ReactNode."))}return D(j)}function I(j,le,ue,De,Pe){return new $((j||"React class")+": "+le+" type `"+ue+"."+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Pe+"`.")}function xe(j){function le(ue,De,Pe,Fe,We){var Xe=ue[De],Be=K(Xe);if(Be!=="object")return new $("Invalid "+Fe+" `"+We+"` of type `"+Be+"` "+("supplied to `"+Pe+"`, expected `object`."));for(var He in j){var Me=j[He];if(typeof Me!="function")return I(Pe,Fe,We,He,O(Me));var Le=Me(Xe,He,Pe,Fe,We+"."+He,n);if(Le)return Le}return null}return D(le)}function Ce(j){function le(ue,De,Pe,Fe,We){var Xe=ue[De],Be=K(Xe);if(Be!=="object")return new $("Invalid "+Fe+" `"+We+"` of type `"+Be+"` "+("supplied to `"+Pe+"`, expected `object`."));var He=t({},ue[De],j);for(var Me in He){var Le=j[Me];if(r(j,Me)&&typeof Le!="function")return I(Pe,Fe,We,Me,O(Le));if(!Le)return new $("Invalid "+Fe+" `"+We+"` key `"+Me+"` supplied to `"+Pe+"`.\nBad object: "+JSON.stringify(ue[De],null," ")+`
|
|
165
|
+
Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Ae=Le(Xe,Me,Pe,Fe,We+"."+Me,n);if(Ae)return Ae}return null}return D(le)}function z(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(z);if(j===null||o(j))return!0;var le=m(j);if(le){var ue=le.call(j),De;if(le!==j.entries){for(;!(De=ue.next()).done;)if(!z(De.value))return!1}else for(;!(De=ue.next()).done;){var Pe=De.value;if(Pe&&!z(Pe[1]))return!1}}else return!1;return!0;default:return!1}}function ee(j,le){return j==="symbol"?!0:le?le["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&le instanceof Symbol:!1}function K(j){var le=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":ee(le,j)?"symbol":le}function O(j){if(typeof j>"u"||j===null)return""+j;var le=K(j);if(le==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return le}function V(j){var le=O(j);switch(le){case"array":case"object":return"an "+le;case"boolean":case"date":case"regexp":return"a "+le;default:return le}}function te(j){return!j.constructor||!j.constructor.name?g:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},N1}var j1,W2;function Mle(){if(W2)return j1;W2=1;var e=px();function t(){}function n(){}return n.resetWarningCache=t,j1=function(){function r(a,o,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},j1}var H2;function Fle(){if(H2)return Jh.exports;if(H2=1,process.env.NODE_ENV!=="production"){var e=s9(),t=!0;Jh.exports=_le()(e.isElement,t)}else Jh.exports=Mle()();return Jh.exports}var Si=Fle();const rt=fi(Si),o9={data:Si.oneOfType([Si.string,Si.array,Si.func]).isRequired,headers:Si.array,target:Si.string,separator:Si.string,filename:Si.string,uFEFF:Si.bool,onClick:Si.func,asyncOnClick:Si.bool,enclosingCharacter:Si.string},u9={separator:",",filename:"generatedBy_react-csv.csv",uFEFF:!0,asyncOnClick:!1,enclosingCharacter:'"'},Rle={target:"_blank"};class G2 extends A.Component{constructor(t){super(t),this.state={}}buildURI(){return i9(...arguments)}componentDidMount(){const{data:t,headers:n,separator:r,enclosingCharacter:i,uFEFF:s,target:a,specs:o,replace:l}=this.props;this.state.page=window.open(this.buildURI(t,s,n,r,i),a,o,l)}getWindow(){return this.state.page}render(){return null}}gf(G2,"defaultProps",Object.assign(u9,Rle)),gf(G2,"propTypes",o9);var tp;let kle=(tp=class extends A.Component{constructor(t){super(t),this.buildURI=this.buildURI.bind(this)}buildURI(){return i9(...arguments)}handleLegacy(t,n=!1){if(window.navigator.msSaveOrOpenBlob){t.preventDefault();const{data:r,headers:i,separator:s,filename:a,enclosingCharacter:o,uFEFF:l}=this.props,d=n&&typeof r=="function"?r():r;let h=new Blob([l?"\uFEFF":"",r9(d,i,s,o)]);return window.navigator.msSaveBlob(h,a),!1}}handleAsyncClick(t){const n=r=>{if(r===!1){t.preventDefault();return}this.handleLegacy(t,!0)};this.props.onClick(t,n)}handleSyncClick(t){if(this.props.onClick(t)===!1){t.preventDefault();return}this.handleLegacy(t)}handleClick(){return t=>{if(typeof this.props.onClick=="function")return this.props.asyncOnClick?this.handleAsyncClick(t):this.handleSyncClick(t);this.handleLegacy(t)}}render(){const{data:t,headers:n,separator:r,filename:i,uFEFF:s,children:a,onClick:o,asyncOnClick:l,enclosingCharacter:d,...h}=this.props,g=typeof window>"u"?"":this.buildURI(t,s,n,r,d);return la.jsx("a",{download:i,...h,ref:b=>this.link=b,target:"_self",href:g,onClick:this.handleClick(),children:a})}},gf(tp,"defaultProps",u9),gf(tp,"propTypes",o9),tp);const Ole=kle;var K1,Y2;function Ile(){if(Y2)return K1;Y2=1;function e(t){return t==null}return K1=e,K1}var Lle=Ile();const Vle=fi(Lle);/**
|
|
166
|
+
* react-table
|
|
167
|
+
*
|
|
168
|
+
* Copyright (c) TanStack
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the MIT license found in the
|
|
171
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
172
|
+
*
|
|
173
|
+
* @license MIT
|
|
174
|
+
*/function Ble(e,t){return e?Nle(e)?Ye.createElement(e,t):e:null}function Nle(e){return jle(e)||typeof e=="function"||Kle(e)}function jle(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Kle(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var U1,Z2;function Ule(){if(Z2)return U1;Z2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return U1=e,U1}var z1,X2;function zle(){if(X2)return z1;X2=1;var e=Sc(),t=Object.create,n=function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var s=new r;return r.prototype=void 0,s}}();return z1=n,z1}var q1,J2;function qle(){if(J2)return q1;J2=1;var e=fk(),t=e(Object.getPrototypeOf,Object);return q1=t,q1}var W1,Q2;function Wle(){if(Q2)return W1;Q2=1;var e=Ule(),t=zle(),n=s7(),r=i7(),i=qle(),s=ha(),a=N3(),o=L3(),l=Sc(),d=U3();function h(m,g,b){var w=s(m),$=w||a(m)||d(m);if(g=r(g,4),b==null){var D=m&&m.constructor;$?b=w?new D:[]:l(m)?b=o(D)?t(i(m)):{}:b={}}return($?e:n)(m,function(C,E,S){return g(b,C,E,S)}),b}return W1=h,W1}var Hle=Wle();const Gle=fi(Hle);function l9(e){return t=>typeof t===e}var Yle=l9("function"),Zle=e=>e===null,eP=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",tP=e=>!Xle(e)&&!Zle(e)&&(Yle(e)||typeof e=="object"),Xle=l9("undefined");function Jle(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Wr(e[r],t[r]))return!1;return!0}function Qle(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 ece(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(!Wr(n[1],t.get(n[0])))return!1;return!0}function tce(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 Wr(e,t){if(e===t)return!0;if(e&&tP(e)&&t&&tP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Jle(e,t);if(e instanceof Map&&t instanceof Map)return ece(e,t);if(e instanceof Set&&t instanceof Set)return tce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Qle(e,t);if(eP(e)&&eP(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)&&!Wr(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var nce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],rce=["bigint","boolean","null","number","string","symbol","undefined"];function mg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ice(t))return t}function _s(e){return t=>mg(t)===e}function ice(e){return nce.includes(e)}function Vc(e){return t=>typeof t===e}function sce(e){return rce.includes(e)}var ace=["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=mg(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=>mg(e)==="AsyncGeneratorFunction";ut.asyncFunction=_s("AsyncFunction");ut.bigint=Vc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=_s("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&ace.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=_s("Error");ut.function=Vc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=_s("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=_s("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>Vc("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=_s("Function");ut.plainObject=e=>{if(mg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||sce(typeof e);ut.promise=_s("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=_s("RegExp");ut.set=_s("Set");ut.string=Vc("string");ut.symbol=Vc("symbol");ut.undefined=Vc("undefined");ut.weakMap=_s("WeakMap");ut.weakSet=_s("WeakSet");var dt=ut;function oce(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function uce(e,t,n){return c9(e,t)?[e,t].every(dt.array)?!e.some(aP(n))&&t.some(aP(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(sP(n))&&Object.entries(t).some(sP(n)):t===n:!1}function nP(e,t,n){const{actual:r,key:i,previous:s,type:a}=n,o=na(e,i),l=na(t,i);let d=[o,l].every(dt.number)&&(a==="increased"?o<l:o>l);return dt.undefined(r)||(d=d&&l===r),dt.undefined(s)||(d=d&&o===s),d}function rP(e,t,n){const{key:r,type:i,value:s}=n,a=na(e,r),o=na(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!dt.nullOrUndefined(s)){if(dt.defined(l)){if(dt.array(l)||dt.plainObject(l))return uce(l,d,s)}else return Wr(d,s);return!1}return[a,o].every(dt.array)?!d.every(mx(l)):[a,o].every(dt.plainObject)?lce(Object.keys(l),Object.keys(d)):![a,o].every(h=>dt.primitive(h)&&dt.defined(h))&&(i==="added"?!dt.defined(a)&&dt.defined(o):dt.defined(a)&&!dt.defined(o))}function iP(e,t,{key:n}={}){let r=na(e,n),i=na(t,n);if(!c9(r,i))throw new TypeError("Inputs have different types");if(!oce(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(dt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function sP(e){return([t,n])=>dt.array(e)?Wr(e,n)||e.some(r=>Wr(r,n)||dt.array(n)&&mx(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Wr(e[t],n):Wr(e,n)}function lce(e,t){return t.some(n=>!e.includes(n))}function aP(e){return t=>dt.array(e)?e.some(n=>Wr(n,t)||dt.array(t)&&mx(t)(n)):Wr(e,t)}function Df(e,t){return dt.array(e)?e.some(n=>Wr(n,t)):Wr(e,t)}function mx(e){return t=>e.some(n=>Wr(n,t))}function c9(...e){return e.every(dt.array)||e.every(dt.number)||e.every(dt.plainObject)||e.every(dt.string)}function na(e,t){return dt.plainObject(e)||dt.array(e)?dt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):dt.number(t)?e[t]:e:e}function mm(e,t){if([e,t].some(dt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>dt.plainObject(h)||dt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return rP(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=na(e,h),w=na(t,h),$=dt.defined(m),D=dt.defined(g);if($||D){const C=D?Df(g,b):!Df(m,b),E=Df(m,w);return C&&E}return[b,w].every(dt.array)||[b,w].every(dt.plainObject)?!Wr(b,w):b!==w}catch{return!1}},changedFrom:(h,m,g)=>{if(!dt.defined(h))return!1;try{const b=na(e,h),w=na(t,h),$=dt.defined(g);return Df(m,b)&&($?Df(g,w):!$)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return nP(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=iP(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=iP(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return nP(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return rP(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var H1,oP;function cce(){if(oP)return H1;oP=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;H1={left:i("scrollLeft"),top:i("scrollTop")};function i(o){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=a);var b=r(),w=d[o],$=m.ease||s,D=isNaN(m.duration)?350:+m.duration,C=!1;return w===h?g(e,d[o]):requestAnimationFrame(S),E;function E(){C=!0}function S(k){if(C)return g(t,d[o]);var P=r(),F=n(1,(P-b)/D),U=$(F);d[o]=U*(h-w)+w,F<1?requestAnimationFrame(S):requestAnimationFrame(function(){g(null,d[o])})}}}function s(o){return .5*(1-Math.cos(Math.PI*o))}function a(){}return H1}var fce=cce();const dce=fi(fce);var Ap={exports:{}},hce=Ap.exports,uP;function pce(){return uP||(uP=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(hce,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})}(Ap)),Ap.exports}var mce=pce();const f9=fi(mce);var G1,lP;function gce(){if(lP)return G1;lP=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,G1=n,G1}var vce=gce();const cP=fi(vce);var Y1,fP;function yce(){if(fP)return Y1;fP=1;var e=function(E){return t(E)&&!n(E)};function t(C){return!!C&&typeof C=="object"}function n(C){var E=Object.prototype.toString.call(C);return E==="[object RegExp]"||E==="[object Date]"||s(C)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(C){return C.$$typeof===i}function a(C){return Array.isArray(C)?[]:{}}function o(C,E){return E.clone!==!1&&E.isMergeableObject(C)?$(a(C),C,E):C}function l(C,E,S){return C.concat(E).map(function(k){return o(k,S)})}function d(C,E){if(!E.customMerge)return $;var S=E.customMerge(C);return typeof S=="function"?S:$}function h(C){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(C).filter(function(E){return Object.propertyIsEnumerable.call(C,E)}):[]}function m(C){return Object.keys(C).concat(h(C))}function g(C,E){try{return E in C}catch{return!1}}function b(C,E){return g(C,E)&&!(Object.hasOwnProperty.call(C,E)&&Object.propertyIsEnumerable.call(C,E))}function w(C,E,S){var k={};return S.isMergeableObject(C)&&m(C).forEach(function(P){k[P]=o(C[P],S)}),m(E).forEach(function(P){b(C,P)||(g(C,P)&&S.isMergeableObject(E[P])?k[P]=d(P,S)(C[P],E[P],S):k[P]=o(E[P],S))}),k}function $(C,E,S){S=S||{},S.arrayMerge=S.arrayMerge||l,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var k=Array.isArray(E),P=Array.isArray(C),F=k===P;return F?k?S.arrayMerge(C,E,S):w(C,E,S):o(E,S)}$.all=function(E,S){if(!Array.isArray(E))throw new Error("first argument should be an array");return E.reduce(function(k,P){return $(k,P,S)},{})};var D=$;return Y1=D,Y1}var bce=yce();const ws=fi(bce);/**!
|
|
175
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
176
|
+
* @version 1.16.1
|
|
177
|
+
* @license
|
|
178
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
179
|
+
*
|
|
180
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
181
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
182
|
+
* in the Software without restriction, including without limitation the rights
|
|
183
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
184
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
185
|
+
* furnished to do so, subject to the following conditions:
|
|
186
|
+
*
|
|
187
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
188
|
+
* copies or substantial portions of the Software.
|
|
189
|
+
*
|
|
190
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
191
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
192
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
193
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
194
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
195
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
196
|
+
* SOFTWARE.
|
|
197
|
+
*/var Gd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",$ce=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Gd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function xce(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function wce(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$ce))}}var Cce=Gd&&window.Promise,Ece=Cce?xce:wce;function d9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ju(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function gx(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Yd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ju(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Yd(gx(e))}function h9(e){return e&&e.referenceNode?e.referenceNode:e}var dP=Gd&&!!(window.MSInputMethodContext&&document.documentMode),hP=Gd&&/MSIE 10/.test(navigator.userAgent);function Bc(e){return e===11?dP:e===10?hP:dP||hP}function vc(e){if(!e)return document.documentElement;for(var t=Bc(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&&Ju(n,"position")==="static"?vc(n):n}function Sce(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||vc(e.firstElementChild)===e}function V4(e){return e.parentNode!==null?V4(e.parentNode):e}function gm(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 a=s.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return Sce(a)?a:vc(a);var o=V4(e);return o.host?gm(o.host,t):gm(e,V4(t).host)}function yc(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 Dce(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=yc(t,"top"),i=yc(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 pP(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 mP(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Bc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function p9(e){var t=e.body,n=e.documentElement,r=Bc(10)&&getComputedStyle(n);return{height:mP("Height",t,n,r),width:mP("Width",t,n,r)}}var Ace=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Tce=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}}(),bc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ji=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 ko(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function B4(e){var t={};try{if(Bc(10)){t=e.getBoundingClientRect();var n=yc(e,"top"),r=yc(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"?p9(e.ownerDocument):{},a=s.width||e.clientWidth||i.width,o=s.height||e.clientHeight||i.height,l=e.offsetWidth-a,d=e.offsetHeight-o;if(l||d){var h=Ju(e);l-=pP(h,"x"),d-=pP(h,"y"),i.width-=l,i.height-=d}return ko(i)}function vx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Bc(10),i=t.nodeName==="HTML",s=B4(e),a=B4(t),o=Yd(e),l=Ju(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var m=ko({top:s.top-a.top-d,left:s.left-a.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(o):t===o&&o.nodeName!=="BODY")&&(m=Dce(m,t)),m}function Pce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=vx(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:yc(n),o=t?0:yc(n,"left"),l={top:a-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:i,height:s};return ko(l)}function m9(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ju(e,"position")==="fixed")return!0;var n=gx(e);return n?m9(n):!1}function g9(e){if(!e||!e.parentElement||Bc())return document.documentElement;for(var t=e.parentElement;t&&Ju(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function yx(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},a=i?g9(e):gm(e,h9(t));if(r==="viewport")s=Pce(a,i);else{var o=void 0;r==="scrollParent"?(o=Yd(gx(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var l=vx(o,a,i);if(o.nodeName==="HTML"&&!m9(a)){var d=p9(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 _ce(e){var t=e.width,n=e.height;return t*n}function v9(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 a=yx(n,r,s,i),o={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(o).map(function(g){return Ji({key:g},o[g],{area:_ce(o[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,w=g.height;return b>=n.clientWidth&&w>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function y9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?g9(t):gm(t,h9(n));return vx(n,i,r)}function b9(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 vm(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 $9(e,t,n){n=n.split("-")[0];var r=b9(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,a=s?"top":"left",o=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===o?i[o]=t[o]-r[d]:i[o]=t[vm(o)],i}function Zd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Mce(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Zd(e,function(i){return i[t]===n});return e.indexOf(r)}function x9(e,t,n){var r=n===void 0?e:e.slice(0,Mce(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&&d9(s)&&(t.offsets.popper=ko(t.offsets.popper),t.offsets.reference=ko(t.offsets.reference),t=s(t,i))}),t}function Fce(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=y9(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=v9(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=$9(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=x9(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function w9(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function bx(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 Rce(){return this.state.isDestroyed=!0,w9(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[bx("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function C9(e){var t=e.ownerDocument;return t?t.defaultView:window}function E9(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||E9(Yd(s.parentNode),t,n,r),r.push(s)}function kce(e,t,n,r){n.updateBound=r,C9(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Yd(e);return E9(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Oce(){this.state.eventsEnabled||(this.state=kce(this.reference,this.options,this.state,this.scheduleUpdate))}function Ice(e,t){return C9(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 Lce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Ice(this.reference,this.state))}function $x(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function N4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&$x(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Vce(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Bce(e){return N4(e.instance.popper,e.styles),Vce(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&N4(e.arrowElement,e.arrowStyles),e}function Nce(e,t,n,r,i){var s=y9(i,t,e,n.positionFixed),a=v9(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),N4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function jce(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,a=Math.floor,o=function(C){return C},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,w=t?h||m||g?s:a:o,$=t?s:o;return{left:w(b&&!m&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:w(r.right)}}var Kce=Gd&&/Firefox/i.test(navigator.userAgent);function Uce(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Zd(e.instance.modifiers,function(S){return S.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 a=s!==void 0?s:t.gpuAcceleration,o=vc(e.instance.popper),l=B4(o),d={position:i.position},h=jce(e,window.devicePixelRatio<2||!Kce),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=bx("transform"),w=void 0,$=void 0;if(m==="bottom"?o.nodeName==="HTML"?$=-o.clientHeight+h.bottom:$=-l.height+h.bottom:$=h.top,g==="right"?o.nodeName==="HTML"?w=-o.clientWidth+h.right:w=-l.width+h.right:w=h.left,a&&b)d[b]="translate3d("+w+"px, "+$+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var D=m==="bottom"?-1:1,C=g==="right"?-1:1;d[m]=$*D,d[g]=w*C,d.willChange=m+", "+g}var E={"x-placement":e.placement};return e.attributes=Ji({},E,e.attributes),e.styles=Ji({},d,e.styles),e.arrowStyles=Ji({},e.offsets.arrow,e.arrowStyles),e}function S9(e,t,n){var r=Zd(e,function(o){var l=o.name;return l===t}),i=!!r&&e.some(function(o){return o.name===n&&o.enabled&&o.order<r.order});if(!i){var s="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function zce(e,t){var n;if(!S9(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,a=s.popper,o=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",w=b9(r)[d];o[b]-w<a[m]&&(e.offsets.popper[m]-=a[m]-(o[b]-w)),o[m]+w>a[b]&&(e.offsets.popper[m]+=o[m]+w-a[b]),e.offsets.popper=ko(e.offsets.popper);var $=o[m]+o[d]/2-w/2,D=Ju(e.instance.popper),C=parseFloat(D["margin"+h]),E=parseFloat(D["border"+h+"Width"]),S=$-e.offsets.popper[m]-C-E;return S=Math.max(Math.min(a[d]-w,S),0),e.arrowElement=r,e.offsets.arrow=(n={},bc(n,m,Math.round(S)),bc(n,g,""),n),e}function qce(e){return e==="end"?"start":e==="start"?"end":e}var D9=["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"],Z1=D9.slice(3);function gP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Z1.indexOf(e),r=Z1.slice(n+1).concat(Z1.slice(0,n));return t?r.reverse():r}var X1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Wce(e,t){if(w9(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=yx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=vm(r),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case X1.FLIP:a=[r,i];break;case X1.CLOCKWISE:a=gP(r);break;case X1.COUNTERCLOCKWISE:a=gP(r,!0);break;default:a=t.behavior}return a.forEach(function(o,l){if(r!==o||a.length===l+1)return e;r=e.placement.split("-")[0],i=vm(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),w=m(d.right)>m(n.right),$=m(d.top)<m(n.top),D=m(d.bottom)>m(n.bottom),C=r==="left"&&b||r==="right"&&w||r==="top"&&$||r==="bottom"&&D,E=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(E&&s==="start"&&b||E&&s==="end"&&w||!E&&s==="start"&&$||!E&&s==="end"&&D),k=!!t.flipVariationsByContent&&(E&&s==="start"&&w||E&&s==="end"&&b||!E&&s==="start"&&D||!E&&s==="end"&&$),P=S||k;(g||C||P)&&(e.flipped=!0,(g||C)&&(r=a[l+1]),P&&(s=qce(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Ji({},e.offsets.popper,$9(e.instance.popper,e.offsets.reference,e.placement)),e=x9(e.instance.modifiers,e,"flip"))}),e}function Hce(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,a=["top","bottom"].indexOf(i)!==-1,o=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[o]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[o])&&(e.offsets.popper[l]=s(r[o])),e}function Gce(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],a=i[2];if(!s)return e;if(a.indexOf("%")===0){var o=void 0;switch(a){case"%p":o=n;break;case"%":case"%r":default:o=r}var l=ko(o);return l[t]/100*s}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*s}else return s}function Yce(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(h){return h.trim()}),o=a.indexOf(Zd(a,function(h){return h.search(/,|\s/)!==-1}));a[o]&&a[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=o!==-1?[a.slice(0,o).concat([a[o].split(l)[0]]),[a[o].split(l)[1]].concat(a.slice(o+1))]:[a];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function(w,$){return w[w.length-1]===""&&["+","-"].indexOf($)!==-1?(w[w.length-1]=$,b=!0,w):b?(w[w.length-1]+=$,b=!1,w):w.concat($)},[]).map(function(w){return Gce(w,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){$x(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Zce(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,a=i.reference,o=r.split("-")[0],l=void 0;return $x(+n)?l=[+n,0]:l=Yce(n,s,a,o),o==="left"?(s.top+=l[0],s.left-=l[1]):o==="right"?(s.top+=l[0],s.left+=l[1]):o==="top"?(s.left+=l[0],s.top-=l[1]):o==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function Xce(e,t){var n=t.boundariesElement||vc(e.instance.popper);e.instance.reference===n&&(n=vc(n));var r=bx("transform"),i=e.instance.popper.style,s=i.top,a=i.left,o=i[r];i.top="",i.left="",i[r]="";var l=yx(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=a,i[r]=o,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var w=h[b];return h[b]<l[b]&&!t.escapeWithReference&&(w=Math.max(h[b],l[b])),bc({},b,w)},secondary:function(b){var w=b==="right"?"left":"top",$=h[w];return h[b]>l[b]&&!t.escapeWithReference&&($=Math.min(h[w],l[b]-(b==="right"?h.width:h.height))),bc({},w,$)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Ji({},h,m[b](g))}),e.offsets.popper=h,e}function Jce(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,a=i.popper,o=["bottom","top"].indexOf(n)!==-1,l=o?"left":"top",d=o?"width":"height",h={start:bc({},l,s[l]),end:bc({},l,s[l]+s[d]-a[d])};e.offsets.popper=Ji({},a,h[r])}return e}function Qce(e){if(!S9(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Zd(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 efe(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,a=["left","right"].indexOf(n)!==-1,o=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=s[n]-(o?i[a?"width":"height"]:0),e.placement=vm(t),e.offsets.popper=ko(i),e}var tfe={shift:{order:100,enabled:!0,fn:Jce},offset:{order:200,enabled:!0,fn:Zce,offset:0},preventOverflow:{order:300,enabled:!0,fn:Xce,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Hce},arrow:{order:500,enabled:!0,fn:zce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Wce,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:efe},hide:{order:800,enabled:!0,fn:Qce},computeStyle:{order:850,enabled:!0,fn:Uce,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Bce,onLoad:Nce,gpuAcceleration:void 0}},nfe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:tfe},Cd=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ace(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ece(this.update.bind(this)),this.options=Ji({},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(Ji({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=Ji({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return Ji({name:a},r.options.modifiers[a])}).sort(function(a,o){return a.order-o.order}),this.modifiers.forEach(function(a){a.enabled&&d9(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Tce(e,[{key:"update",value:function(){return Fce.call(this)}},{key:"destroy",value:function(){return Rce.call(this)}},{key:"enableEventListeners",value:function(){return Oce.call(this)}},{key:"disableEventListeners",value:function(){return Lce.call(this)}}]),e}();Cd.Utils=(typeof window<"u"?window:global).PopperUtils;Cd.placements=D9;Cd.Defaults=nfe;var rfe=["innerHTML","ownerDocument","style","attributes","nodeValue"],ife=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],sfe=["bigint","boolean","null","number","string","symbol","undefined"];function gg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(afe(t))return t}function Ms(e){return function(t){return gg(t)===e}}function afe(e){return ife.includes(e)}function Nc(e){return function(t){return typeof t===e}}function ofe(e){return sfe.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=gg(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 gg(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Ms("AsyncFunction");Ke.bigint=Nc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Ms("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)&&rfe.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=Ms("Error");Ke.function=Nc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Ms("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=Ms("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 Nc("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=Ms("Function");Ke.plainObject=function(e){if(gg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||ofe(typeof e)};Ke.promise=Ms("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=Ms("RegExp");Ke.set=Ms("Set");Ke.string=Nc("string");Ke.symbol=Nc("symbol");Ke.undefined=Nc("undefined");Ke.weakMap=Ms("WeakMap");Ke.weakSet=Ms("WeakSet");function A9(e){return function(t){return typeof t===e}}var ufe=A9("function"),lfe=function(e){return e===null},vP=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},yP=function(e){return!cfe(e)&&!lfe(e)&&(ufe(e)||typeof e=="object")},cfe=A9("undefined"),j4=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 ffe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!li(e[r],t[r]))return!1;return!0}function dfe(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 hfe(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var a=j4(e.entries()),o=a.next();!o.done;o=a.next()){var l=o.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=j4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!li(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 pfe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=j4(e.entries()),s=i.next();!s.done;s=i.next()){var a=s.value;if(!t.has(a[0]))return!1}}catch(o){n={error:o}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function li(e,t){if(e===t)return!0;if(e&&yP(e)&&t&&yP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ffe(e,t);if(e instanceof Map&&t instanceof Map)return hfe(e,t);if(e instanceof Set&&t instanceof Set)return pfe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return dfe(e,t);if(vP(e)&&vP(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)&&!li(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function mfe(){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 gfe(e,t,n){return T9(e,t)?[e,t].every(Ke.array)?!e.some(CP(n))&&t.some(CP(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(wP(n))&&Object.entries(t).some(wP(n)):t===n:!1}function bP(e,t,n){var r=n.actual,i=n.key,s=n.previous,a=n.type,o=ra(e,i),l=ra(t,i),d=[o,l].every(Ke.number)&&(a==="increased"?o<l:o>l);return Ke.undefined(r)||(d=d&&l===r),Ke.undefined(s)||(d=d&&o===s),d}function $P(e,t,n){var r=n.key,i=n.type,s=n.value,a=ra(e,r),o=ra(t,r),l=i==="added"?a:o,d=i==="added"?o:a;if(!Ke.nullOrUndefined(s)){if(Ke.defined(l)){if(Ke.array(l)||Ke.plainObject(l))return gfe(l,d,s)}else return li(d,s);return!1}return[a,o].every(Ke.array)?!d.every(xx(l)):[a,o].every(Ke.plainObject)?vfe(Object.keys(l),Object.keys(d)):![a,o].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(a)&&Ke.defined(o):Ke.defined(a)&&!Ke.defined(o))}function xP(e,t,n){var r=n===void 0?{}:n,i=r.key,s=ra(e,i),a=ra(t,i);if(!T9(s,a))throw new TypeError("Inputs have different types");if(!mfe(s,a))throw new TypeError("Inputs don't have length");return[s,a].every(Ke.plainObject)&&(s=Object.keys(s),a=Object.keys(a)),[s,a]}function wP(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?li(e,r)||e.some(function(i){return li(i,r)||Ke.array(r)&&xx(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&li(e[n],r):li(e,r)}}function vfe(e,t){return t.some(function(n){return!e.includes(n)})}function CP(e){return function(t){return Ke.array(e)?e.some(function(n){return li(n,t)||Ke.array(t)&&xx(t)(n)}):li(e,t)}}function Af(e,t){return Ke.array(e)?e.some(function(n){return li(n,t)}):li(e,t)}function xx(e){return function(t){return e.some(function(n){return li(n,t)})}}function T9(){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 ra(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 yfe(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 $P(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var w=ra(e,m),$=ra(t,m),D=Ke.defined(g),C=Ke.defined(b);if(D||C){var E=C?Af(b,w):!Af(g,w),S=Af(g,$);return E&&S}return[w,$].every(Ke.array)||[w,$].every(Ke.plainObject)?!li(w,$):w!==$}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var w=ra(e,m),$=ra(t,m),D=Ke.defined(b);return Af(g,w)&&(D?Af(b,$):!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},a=function(m,g,b){if(!Ke.defined(m))return!1;try{return bP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=xP(e,t,{key:m}),b=g[0],w=g[1];return!!b.length&&!w.length}catch{return!1}},l=function(m){try{var g=xP(e,t,{key:m}),b=g[0],w=g[1];return!b.length&&!!w.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return bP(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return $P(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:a,emptied:o,filled:l,increased:d,removed:h}}function EP(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bfe(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,_9(r.key),r)}}function Jd(e,t,n){return t&&bfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _r(e,t,n){return t=_9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qd(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&&K4(e,t)}function ym(e){return ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ym(e)}function K4(e,t){return K4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K4(e,t)}function $fe(){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 xfe(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 P9(e,t){if(e==null)return{};var n=xfe(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 Ba(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wfe(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 Ba(e)}function eh(e){var t=$fe();return function(){var r=ym(e),i;if(t){var s=ym(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return wfe(this,i)}}function Cfe(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 _9(e){var t=Cfe(e,"string");return typeof t=="symbol"?t:String(t)}var Efe={flip:{padding:20},preventOverflow:{padding:10}},Sfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Dfe="The error message is optional, but must be a string if provided.";function Afe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Tfe(e,t){return Object.hasOwnProperty.call(e,t)}function Pfe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function _fe(e,t){if(typeof e!="function")throw new TypeError(Sfe);if(t&&typeof t!="string")throw new TypeError(Dfe)}function SP(e,t,n){return _fe(e,n),function(r,i,s){for(var a=arguments.length,o=new Array(a>3?a-3:0),l=3;l<a;l++)o[l-3]=arguments[l];return Afe(t,r,i,s)?Tfe(r,i)?e.apply(void 0,[r,i,s].concat(o)):Pfe(r,i,s):e.apply(void 0,[r,i,s].concat(o))}}var Xt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Tf=Wa.createPortal!==void 0;function Zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function J1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function ep(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,a=s===void 0?!1:s,o=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){Ke.plainObject(l)&&l.key?o.apply(console,[l.key,l.value]):o.apply(console,[l])}):o.apply(console,[n]),console.groupEnd())}function Mfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Ffe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Rfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Ffe(e,t,i)},Mfe(e,t,i,r)}function DP(){}var M9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"componentDidMount",value:function(){Zs()&&(this.node||this.appendNode(),Tf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Zs()&&(Tf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Zs()||!this.node||(Tf||Wa.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,a=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Zs())return null;var i=this.props,s=i.children,a=i.setRef;if(this.node||this.appendNode(),Tf)return Wa.createPortal(s,this.node);var o=Wa.unstable_renderSubtreeIntoContainer(this,s.length>1?A.createElement("div",null,s):s[0],this.node);return a(o),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,a=i.placement,o=i.target;return s?this.renderPortal():o||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Tf?this.renderReact16():null}}]),n}(A.Component);_r(M9,"propTypes",{children:rt.oneOfType([rt.element,rt.array]),hasChildren:rt.bool,id:rt.oneOfType([rt.string,rt.number]),placement:rt.string,setRef:rt.func.isRequired,target:rt.oneOfType([rt.object,rt.string]),zIndex:rt.number});var F9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,a=i.styles,o=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=o):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=o):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,a=i.setArrowRef,o=i.styles,l=o.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,w=l.spread,$={display:h,position:b},D,C=w,E=m;return s.startsWith("top")?(D="0,0 ".concat(C/2,",").concat(E," ").concat(C,",0"),$.bottom=0,$.marginLeft=g,$.marginRight=g):s.startsWith("bottom")?(D="".concat(C,",").concat(E," ").concat(C/2,",0 0,").concat(E),$.top=0,$.marginLeft=g,$.marginRight=g):s.startsWith("left")?(E=w,C=m,D="0,0 ".concat(C,",").concat(E/2," 0,").concat(E),$.right=0,$.marginTop=g,$.marginBottom=g):s.startsWith("right")&&(E=w,C=m,D="".concat(C,",").concat(E," ").concat(C,",0 0,").concat(E/2),$.left=0,$.marginTop=g,$.marginBottom=g),A.createElement("div",{className:"__floater__arrow",style:this.parentStyle},A.createElement("span",{ref:a,style:$},A.createElement("svg",{width:C,height:E,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},A.createElement("polygon",{points:D,fill:d}))))}}]),n}(A.Component);_r(F9,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var kfe=["color","height","width"];function R9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,a=P9(n,kfe);return A.createElement("button",{"aria-label":"close",onClick:t,style:a,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}))))}R9.propTypes={handleClick:rt.func.isRequired,styles:rt.object.isRequired};function k9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,a=e.showCloseButton,o=e.title,l=e.styles,d={content:A.isValidElement(t)?t:A.createElement("div",{className:"__floater__content",style:l.content},t)};return o&&(d.title=A.isValidElement(o)?o:A.createElement("div",{className:"__floater__title",style:l.title},o)),n&&(d.footer=A.isValidElement(n)?n:A.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||s)&&!Ke.boolean(i)&&(d.close=A.createElement(R9,{styles:l.close,handleClick:r})),A.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}k9.propTypes={content:rt.node.isRequired,footer:rt.node,handleClick:rt.func.isRequired,open:rt.bool,positionWrapper:rt.bool.isRequired,showCloseButton:rt.bool.isRequired,styles:rt.object.isRequired,title:rt.node};var O9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,a=i.component,o=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,w=h.floaterClosing,$=h.floaterOpening,D=h.floaterWithAnimation,C=h.floaterWithComponent,E={};return l||(o.startsWith("top")?E.padding="0 0 ".concat(m,"px"):o.startsWith("bottom")?E.padding="".concat(m,"px 0 0"):o.startsWith("left")?E.padding="0 ".concat(m,"px 0 0"):o.startsWith("right")&&(E.padding="0 0 0 ".concat(m,"px"))),[Xt.OPENING,Xt.OPEN].indexOf(d)!==-1&&(E=Pn(Pn({},E),$)),d===Xt.CLOSING&&(E=Pn(Pn({},E),w)),d===Xt.OPEN&&!s&&(E=Pn(Pn({},E),D)),o==="center"&&(E=Pn(Pn({},E),b)),a&&(E=Pn(Pn({},E),C)),Pn(Pn({},g),E)}},{key:"render",value:function(){var i=this.props,s=i.component,a=i.handleClick,o=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?A.isValidElement(s)?h.content=A.cloneElement(s,{closeFn:a}):h.content=s({closeFn:a}):h.content=A.createElement(k9,this.props),d===Xt.OPEN&&m.push("__floater__open"),o||(h.arrow=A.createElement(F9,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);_r(O9,"propTypes",{component:rt.oneOfType([rt.func,rt.element]),content:rt.node,disableAnimation:rt.bool.isRequired,footer:rt.node,handleClick:rt.func.isRequired,hideArrow:rt.bool.isRequired,open:rt.bool,placement:rt.string.isRequired,positionWrapper:rt.bool.isRequired,setArrowRef:rt.func.isRequired,setFloaterRef:rt.func.isRequired,showCloseButton:rt.bool,status:rt.string.isRequired,styles:rt.object.isRequired,title:rt.node});var I9=function(e){Qd(n,e);var t=eh(n);function n(){return Xd(this,n),t.apply(this,arguments)}return Jd(n,[{key:"render",value:function(){var i=this.props,s=i.children,a=i.handleClick,o=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 w=Ke.function(s.type)?"innerRef":"ref";b=A.cloneElement(A.Children.only(s),_r({},w,d))}else b=s;return b?A.createElement("span",{ref:h,style:Pn(Pn({},g),m),onClick:a,onMouseEnter:o,onMouseLeave:l},b):null}}]),n}(A.Component);_r(I9,"propTypes",{children:rt.node,handleClick:rt.func.isRequired,handleMouseEnter:rt.func.isRequired,handleMouseLeave:rt.func.isRequired,setChildRef:rt.func.isRequired,setWrapperRef:rt.func.isRequired,style:rt.object,styles:rt.object.isRequired});var Ofe={zIndex:100};function Ife(e){var t=ws(Ofe,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 Lfe=["arrow","flip","offset"],Vfe=["position","top","right","bottom","left"],wx=function(e){Qd(n,e);var t=eh(n);function n(r){var i;return Xd(this,n),i=t.call(this,r),_r(Ba(i),"setArrowRef",function(s){i.arrowRef=s}),_r(Ba(i),"setChildRef",function(s){i.childRef=s}),_r(Ba(i),"setFloaterRef",function(s){i.floaterRef=s}),_r(Ba(i),"setWrapperRef",function(s){i.wrapperRef=s}),_r(Ba(i),"handleTransitionEnd",function(){var s=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Xt.OPENING?Xt.OPEN:Xt.IDLE},function(){var o=i.state.status;a(o===Xt.OPEN?"open":"close",i.props)})}),_r(Ba(i),"handleClick",function(){var s=i.props,a=s.event,o=s.open;if(!Ke.boolean(o)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(ep({title:"click",data:[{event:a,status:h===Xt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),_r(Ba(i),"handleMouseEnter",function(){var s=i.props,a=s.event,o=s.open;if(!(Ke.boolean(o)||J1())){var l=i.state.status;i.event==="hover"&&l===Xt.IDLE&&(ep({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),_r(Ba(i),"handleMouseLeave",function(){var s=i.props,a=s.event,o=s.eventDelay,l=s.open;if(!(Ke.boolean(l)||J1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(ep({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),o?[Xt.OPENING,Xt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},o*1e3)):i.toggle(Xt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Xt.INIT,statusWrapper:Xt.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 Jd(n,[{key:"componentDidMount",value:function(){if(Zs()){var i=this.state.positionWrapper,s=this.props,a=s.children,o=s.open,l=s.target;this._isMounted=!0,ep({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:Ke.boolean(o),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&Ke.boolean(o)}}},{key:"componentDidUpdate",value:function(i,s){if(Zs()){var a=this.props,o=a.autoOpen,l=a.open,d=a.target,h=a.wrapperOptions,m=yfe(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var w;Ke.boolean(l)&&(w=l?Xt.OPENING:Xt.CLOSING),this.toggle(w)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Xt.IDLE)&&l?this.toggle(Xt.OPEN):g("status",Xt.INIT,Xt.IDLE)&&o&&this.toggle(Xt.OPEN),this.popper&&b("status",Xt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Xt.OPENING)||b("status",Xt.CLOSING))&&Rfe(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,a=this.state.positionWrapper,o=this.props,l=o.disableFlip,d=o.getPopper,h=o.hideArrow,m=o.offset,g=o.placement,b=o.wrapperOptions,w=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Xt.IDLE});else if(s&&this.floaterRef){var $=this.options,D=$.arrow,C=$.flip,E=$.offset,S=P9($,Lfe);new Cd(s,this.floaterRef,{placement:g,modifiers:Pn({arrow:Pn({enabled:!h,element:this.arrowRef},D),flip:Pn({enabled:!l,behavior:w},C),offset:Pn({offset:"0, ".concat(m,"px")},E)},S),onCreate:function(F){var U;if(i.popper=F,!((U=i.floaterRef)!==null&&U!==void 0&&U.isConnected)){i.setState({needsUpdate:!0});return}d(F,"floater"),i._isMounted&&i.setState({currentPlacement:F.placement,status:Xt.IDLE}),g!==F.placement&&setTimeout(function(){F.instance.update()},1)},onUpdate:function(F){i.popper=F;var U=i.state.currentPlacement;i._isMounted&&F.placement!==U&&i.setState({currentPlacement:F.placement})}})}if(a){var k=Ke.undefined(b.offset)?0:b.offset;new Cd(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(k,"px")},flip:{enabled:!1}},onCreate:function(F){i.wrapperPopper=F,i._isMounted&&i.setState({statusWrapper:Xt.IDLE}),d(F,"wrapper"),g!==F.placement&&setTimeout(function(){F.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,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,a=s===Xt.OPEN?Xt.CLOSING:Xt.OPENING;Ke.undefined(i)||(a=i),this.setState({status:a})}},{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,a=i.event;return a==="hover"&&J1()&&!s?"click":a}},{key:"options",get:function(){var i=this.props.options;return ws(Efe,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,a=s.status,o=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=ws(Ife(d),d);if(o){var m;[Xt.IDLE].indexOf(a)===-1||[Xt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Pn(Pn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Pn(Pn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(Vfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Pn(Pn({},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,a=i.positionWrapper,o=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,w=l.hideArrow,$=l.id,D=l.open,C=l.showCloseButton,E=l.style,S=l.target,k=l.title,P=A.createElement(I9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:E,styles:this.styles.wrapper},d),F={};return a?F.wrapperInPortal=P:F.wrapperAsChildren=P,A.createElement("span",null,A.createElement(M9,{hasChildren:!!d,id:$,placement:s,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},A.createElement(O9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:w||s==="center",open:D,placement:s,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:C,status:o,styles:this.styles,title:k}),F.wrapperInPortal),F.wrapperAsChildren)}}]),n}(A.Component);_r(wx,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:SP(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:SP(rt.node,function(e){return!e.component}),debug:rt.bool,disableAnimation:rt.bool,disableFlip:rt.bool,disableHoverToClick:rt.bool,event:rt.oneOf(["hover","click"]),eventDelay:rt.number,footer:rt.node,getPopper:rt.func,hideArrow:rt.bool,id:rt.oneOfType([rt.string,rt.number]),offset:rt.number,open:rt.bool,options:rt.object,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:rt.bool,style:rt.object,styles:rt.object,target:rt.oneOfType([rt.object,rt.string]),title:rt.node,wrapperOptions:rt.shape({offset:rt.number,placement:rt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:rt.bool})});_r(wx,"defaultProps",{autoOpen:!1,callback:DP,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:DP,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Bfe=Object.defineProperty,Nfe=(e,t,n)=>t in e?Bfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>Nfe(e,typeof t!="symbol"?t+"":t,n),sn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Hi={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Ft={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},jt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function Eo(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function L9(e){return e?e.getBoundingClientRect():null}function jfe(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,a)=>s-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function qa(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 Kfe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Ed(e,t,n){if(!e)return Tu();const r=f9(e);if(r){if(r.isSameNode(Tu()))return n?document:Tu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Tu()}return r}function th(e,t){if(!e)return!1;const n=Ed(e,t);return n?!n.isSameNode(Tu()):!1}function Ufe(e){return e.offsetParent!==document.body}function $c(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Kfe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?$c(e.parentNode,t):!1}function zfe(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 qfe(e,t,n){var r,i,s;const a=L9(e),o=Ed(e,n),l=th(e,n),d=$c(e);let h=0,m=(r=a==null?void 0:a.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=o==null?void 0:o.scrollTop)!=null?s:0;m=g-b}else o instanceof HTMLElement&&(h=o.scrollTop,!l&&!$c(e)&&(m+=h),o.isSameNode(Tu())||(m+=Tu().scrollTop));return Math.floor(m-t)}function Wfe(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=f9(e))!=null?r:{};let a=e.getBoundingClientRect().top+s;i&&(th(e,n)||Ufe(e))&&(a-=i);const o=Math.floor(a-t);return o<0?0:o}function Tu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Hfe(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:a}=r,o=e>a?e-a:a-e;dce.top(r,e,{duration:o<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var Pf=Wa.createPortal!==void 0;function V9(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 Tp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Xs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=cP(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&&Tp(e.type)==="function"){const a=e.type({});s=Xs(a,t)}else s=cP(n);return s}function Gfe(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Yfe(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,a,o)=>s+s+a+a+o+o),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 AP(e){return e.disableBeacon||e.placement==="center"}function TP(){return!["chrome","safari","firefox","opera"].includes(V9())}function Oo({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=>{dt.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 Zfe(e){return Object.keys(e)}function B9(e,...t){if(!dt.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 Xfe(e,...t){if(!dt.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 U4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(Tp(e)==="string")return r(e);if(!A.isValidElement(e))return e;const{children:i}=e.props;if(Tp(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):U4(s,t,n))});if(Tp(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return U4(s,t,n)}return e}function Jfe(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:a}=e;return!s.disableScrolling&&(!t||i||n===Ft.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!$c(a))&&r!==n&&[Ft.BEACON,Ft.TOOLTIP].includes(n)}var Qfe={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},N9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},ede={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:N9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},tde={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:[]},nde={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},_f={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},PP={borderRadius:4,position:"absolute"};function rde(e,t){var n,r,i,s,a;const{floaterProps:o,styles:l}=e,d=ws((n=t.floaterProps)!=null?n:{},o??{}),h=ws(l??{},(r=t.styles)!=null?r:{}),m=ws(nde,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 w={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},$={beacon:{..._f,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(${Yfe(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:{..._f,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{..._f,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{..._f,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{..._f,color:m.textColor,fontSize:14},overlay:{...w,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...w},overlayLegacyCenter:{...w,backgroundColor:m.overlayColor},spotlight:{...PP,backgroundColor:"gray"},spotlightLegacy:{...PP,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?a:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ws($,h)}function ide(e){return Xfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Fl(e,t){var n,r,i,s,a,o;const l=t??{},d=ws.all([ede,ide(e),l],{isMergeableObject:dt.plainObject}),h=rde(e,d),m=th(qa(d.target),d.disableScrollParentFix),g=ws.all([Qfe,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ws((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(a=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?a:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ws.all([N9,(o=e.locale)!=null?o:{},d.locale||{}]),floaterProps:g,styles:B9(h,"floaterStyles")}}function j9(e,t=!1){return dt.plainObject(e)?e.target?!0:(Oo({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Oo({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function _P(e,t=!1){return dt.array(e)?e.every(n=>j9(n,t)):(Oo({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var K9={action:"init",controlled:!1,index:0,lifecycle:Ft.INIT,origin:null,size:0,status:jt.IDLE},MP=Zfe(B9(K9,"controlled","size")),sde=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:a}=this.getState(),o={size:i.length,status:a};this.data.set("steps",i),a===jt.WAITING&&!s&&i.length&&(o.status=jt.RUNNING),this.setState(o)}),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:a}=this.getState();a===jt.RUNNING&&this.setState({...this.getNextState({action:sn.CLOSE,index:s+1,origin:i})})}),mt(this,"go",i=>{const{controlled:s,status:a}=this.getState();if(s||a!==jt.RUNNING)return;const o=this.getSteps()[i];this.setState({...this.getNextState({action:sn.GO,index:i}),status:o?a:jt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:s}=this.getState();s===jt.RUNNING&&this.setState(this.getNextState({action:sn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===jt.RUNNING&&this.setState({...this.getNextState({action:sn.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===jt.RUNNING&&this.setState({...this.getNextState({action:sn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:sn.RESET,index:0}),status:i?jt.RUNNING:jt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===jt.RUNNING&&this.setState({action:sn.SKIP,lifecycle:Ft.INIT,status:jt.SKIPPED})}),mt(this,"start",i=>{const{index:s,size:a}=this.getState();this.setState({...this.getNextState({action:sn.START,index:dt.number(i)?i:s},!0),status:a?jt.RUNNING:jt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:s,status:a}=this.getState();[jt.FINISHED,jt.SKIPPED].includes(a)||this.setState({...this.getNextState({action:sn.STOP,index:s+(i?1:0)}),status:jt.PAUSED})}),mt(this,"update",i=>{var s,a;if(!Gfe(i,MP))throw new Error(`State is not valid. Valid keys: ${MP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:sn.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:sn.INIT,controlled:dt.number(n),continuous:t,index:dt.number(n)?n:0,lifecycle:Ft.INIT,origin:null,status:r.length?jt.READY:jt.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")||""}:{...K9}}getNextState(e,t=!1){var n,r,i,s,a;const{action:o,controlled:l,index:d,size:h,status:m}=this.getState(),g=dt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:o,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Ft.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?jt.FINISHED:(a=e.status)!=null?a: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:a=null,size:o,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",a),this.store.set("size",o),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 ade(e){return new sde(e)}function ode({styles:e}){return Ye.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var ude=ode,lde=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=[Ft.INIT,Ft.BEACON,Ft.COMPLETE,Ft.ERROR];return t||(e?r.includes(n):n!==Ft.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:a}=this.spotlightStyles,o=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=o>=s&&o<=s+n,m=l>=r&&l<=r+a&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=qa(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 $c(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=qa(r);this.scrollParent=Ed(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&th(i,!0)&&Oo({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:a}=mm(e,this.props);if(a("target")||a("disableScrollParentFix")){const o=qa(s);this.scrollParent=Ed(o??document.body,n,!0)}a("lifecycle",Ft.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Ft.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Ft.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return TP()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:jfe(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:a=0,styles:o,target:l}=this.props,d=qa(l),h=L9(d),m=$c(d),g=qfe(d,a,i);return{...TP()?o.spotlightLegacy:o.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+a*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-a),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)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:s}=this;if(r())return null;let a=n!=="center"&&e&&Ye.createElement(ude,{styles:s});if(V9()==="safari"){const{mixBlendMode:o,zIndex:l,...d}=i;a=Ye.createElement("div",{style:{...d}},a),delete i.backgroundColor}return Ye.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},cde=class extends Ye.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;Eo()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Pf||this.renderReact15())}componentDidUpdate(){Eo()&&(Pf||this.renderReact15())}componentWillUnmount(){!Eo()||!this.node||(Pf||np.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Eo())return;const{children:e}=this.props;this.node&&np.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Eo()||!Pf)return null;const{children:e}=this.props;return this.node?np.createPortal(e,this.node):null}render(){return Pf?this.renderReact16():null}},fde=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()}},dde=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(`
|
|
198
|
+
@keyframes joyride-beacon-inner {
|
|
199
|
+
20% {
|
|
200
|
+
opacity: 0.9;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
90% {
|
|
204
|
+
opacity: 0.7;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes joyride-beacon-outer {
|
|
209
|
+
0% {
|
|
210
|
+
transform: scale(1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
45% {
|
|
214
|
+
opacity: 0.7;
|
|
215
|
+
transform: scale(0.75);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
100% {
|
|
219
|
+
opacity: 0.9;
|
|
220
|
+
transform: scale(1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.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:a,step:o,styles:l}=this.props,d=Xs(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:a,step:o,...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 hde({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 pde=hde;function mde(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:a,step:o,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:$}=o,D={};return D.primary=Ye.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...s}),b&&!i&&(D.skip=Ye.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...a})),!h&&r>0&&(D.back=Ye.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),D.close=!m&&Ye.createElement(pde,{"data-test-id":"button-close",styles:w.buttonClose,...n}),Ye.createElement("div",{key:"JoyrideTooltip","aria-label":Xs($??d),className:"react-joyride__tooltip",style:w.tooltip,...l},Ye.createElement("div",{style:w.tooltipContainer},$&&Ye.createElement("h1",{"aria-label":Xs($),style:w.tooltipTitle},$),Ye.createElement("div",{style:w.tooltipContent},d)),!g&&Ye.createElement("div",{style:w.tooltipFooter},Ye.createElement("div",{style:w.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var gde=mde,vde=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:a,close:o,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=Xs(a),b=Xs(o),w=Xs(l),$=Xs(d),D=Xs(m);let C=o,E=b;if(e){if(C=d,E=$,s.showProgress&&!n){const S=Xs(h,{step:t+1,steps:i});C=U4(h,t+1,i),E=S}n&&(C=l,E=w)}return{backProps:{"aria-label":g,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":E,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:E},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:a,tooltipComponent:o,...l}=s;let d;if(o){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=o;d=Ye.createElement(m,{...h})}else d=Ye.createElement(gde,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},yde=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:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||s.placement==="center")&&i===Ft.INIT&&a.update({action:r,lifecycle:Ft.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(vde,{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;Oo({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:a,helpers:o,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:$}=mm(e,this.props),D=o.info(),C=i&&n!==sn.CLOSE&&(l>0||n===sn.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=$("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),k=w("action",[sn.NEXT,sn.PREV,sn.SKIP,sn.CLOSE]),P=s&&l===e.index;if(k&&(S||P)&&r({...D,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Hi.STEP_AFTER}),g.placement==="center"&&m===jt.RUNNING&&w("index")&&n!==sn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=qa(g.target),U=!!F;U&&zfe(F)?($("status",jt.READY,jt.RUNNING)||$("lifecycle",Ft.INIT,Ft.READY))&&r({...D,step:g,type:Hi.STEP_BEFORE}):(console.warn(U?"Target not visible":"Target not mounted",g),r({...D,type:Hi.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===sn.PREV?-1:1)}))}$("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:AP(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Oo({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),w("lifecycle",Ft.BEACON)&&r({...D,step:g,type:Hi.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...D,step:g,type:Hi.TOOLTIP}),h&&this.tooltip&&(this.scope=new fde(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return AP(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:a}=this.props,o=qa(a.target);return!j9(a)||!dt.domElement(o)?null:Ye.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ye.createElement(wx,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},Ye.createElement(dde,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:a,styles:a.styles})))}},U9=class extends Ye.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",a=>{const{callback:o}=this.props;dt.function(o)&&o(a)}),mt(this,"handleKeyboard",a=>{const{index:o,lifecycle:l}=this.state,{steps:d}=this.props,h=d[o];l===Ft.TOOLTIP&&a.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:o}=this.props;Fl(this.props,o[a]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=ade({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Oo({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(!Eo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;_P(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!Eo())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:a,run:o,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:$,update:D}=this.store,{changed:C}=mm(e,this.props),{changed:E,changedFrom:S}=mm(t,this.state),k=Fl(this.props,d[i]),P=!Wr(m,d),F=dt.number(l)&&C("stepIndex"),U=qa(k.target);if(P&&(_P(d,a)?b(d):console.warn("Steps are not valid",d)),C("run")&&(o?w(l):$()),F){let ae=dt.number(h)&&h<l?sn.NEXT:sn.PREV;n===sn.STOP&&(ae=sn.START),[jt.FINISHED,jt.SKIPPED].includes(s)||D({action:n===sn.CLOSE?sn.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&s===jt.RUNNING&&i===0&&!U&&(this.store.update({index:i+1}),this.callback({...this.state,type:Hi.TARGET_NOT_FOUND,step:k}));const ie={...this.state,index:i,step:k};if(E("action",[sn.NEXT,sn.PREV,sn.SKIP,sn.CLOSE])&&E("status",jt.PAUSED)){const ae=Fl(this.props,d[t.index]);this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Hi.STEP_AFTER})}if(E("status",[jt.FINISHED,jt.SKIPPED])){const ae=Fl(this.props,d[t.index]);r||this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Hi.STEP_AFTER}),this.callback({...ie,type:Hi.TOUR_END,step:ae,index:t.index}),g()}else S("status",[jt.IDLE,jt.READY],jt.RUNNING)?this.callback({...ie,type:Hi.TOUR_START}):(E("status")||E("action",sn.RESET))&&this.callback({...ie,type:Hi.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:a,scrollOffset:o=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=Fl(this.props,d[t]),m=qa(h.target),g=Jfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===jt.RUNNING&&g){const b=th(m,s),w=Ed(m,s);let $=Math.floor(Wfe(m,o,s))||0;Oo({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(n===Ft.BEACON&&D){const{offsets:E,placement:S}=D;!["bottom"].includes(S)&&!b&&($=Math.floor(E.popper.top-o))}else if(n===Ft.TOOLTIP&&C){const{flipped:E,offsets:S,placement:k}=C;["top","right","left"].includes(k)&&!E&&!b?$=Math.floor(S.popper.top-o):$-=h.spotlightPadding}$=$>=0?$:0,r===jt.RUNNING&&Hfe($,{element:w,duration:a}).then(()=>{setTimeout(()=>{var E;(E=this.store.getPopper("tooltip"))==null||E.instance.update()},10)})}}render(){if(!Eo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:a=!1,steps:o}=this.props,l=n===jt.RUNNING,d={};if(l&&o[e]){const h=Fl(this.props,o[e]);d.step=Ye.createElement(yde,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||a),step:h,store:this.store}),d.overlay=Ye.createElement(cde,{id:"react-joyride-portal"},Ye.createElement(lde,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ye.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(U9,"defaultProps",tde);var bde=U9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=vR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=a_;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Rd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=c_;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=nr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=ZG;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=mR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=YH;exports.$293f70390ea03370$export$497855f14858aa34=zG;exports.$32489daedd52963e$export$1315d136e6f7581=nY;exports.$337b884510726a0d$export$c6fdb837b070b4ff=DG;exports.$36a0ac60f04457c5$export$136073280381448e=BH;exports.$3c0fc76039f1c516$export$60e84778edff6d26=ik;exports.$40df3f8667284809$export$d55e7ee900f34e93=aY;exports.$46a4342aab3d8076$export$87e0539f600c24e5=IH;exports.$47b897dc8cdb026b$export$8d15029008292ae=QH;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=XH;exports.$6057a3d2a53a12fd$export$42df105a73306d51=JG;exports.$64244302c3013299$export$dd0bbc9b26defe37=aH;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=$H;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=sY;exports.$93c38a5e28be6249$export$e50a61c1de9f574=SY;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=OH;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=oY;exports.$a916eb452884faea$export$b7a616150fdb9f44=bH;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=hY;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=bY;exports.$bb77f239b46e8c72$export$3274cf84b703fff=L_;exports.$bcca50147b47f54d$export$56b2c08e277f365=JH;exports.$c132121280ec012d$export$50eacbbf140a3141=IG;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=VG;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=GG;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=LH;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=DY;exports.$f2f8a6077418541e$export$542a6fd13ac93354=SG;exports.$fae977aafc393c5c$export$588937bcd60ade55=OW;exports.$fae977aafc393c5c$export$6b862160d295c8e=kW;exports.ACTIONS=sn;exports.AdvancedImage=aQ;exports.CSVLink=Ole;exports.Cloudinary=tee;exports.Controller=Az;exports.EVENTS=Hi;exports.FormProvider=Sz;exports.Je=jK;exports.LazyMotion=Ose;exports.Lottie=Tse;exports.M=$s;exports.ReorderGroup=hse;exports.ReorderItem=vse;exports.STATUS=jt;exports.Xe=KK;exports._=wz;exports._$1=Yu;exports.autoUpdate=GU;exports.components_default=bde;exports.ct=zK;exports.dayjs=LZ;exports.dayjs_minExports=dk;exports.domAnimation=gle;exports.ee=mk;exports.flexRender=Ble;exports.flip=rz;exports.isEqual=kZ;exports.isNil=Vle;exports.isNumber=NZ;exports.lazyload=QJ;exports.localizedFormat=xse;exports.lodashExports=y5;exports.m=Eae;exports.nt=Y4;exports.o=Ese;exports.offset=tz;exports.placeholder=rQ;exports.prismExports=_ee;exports.q=H3;exports.shift=nz;exports.some=Tee;exports.st=e5;exports.transform=Gle;exports.useController=S5;exports.useFieldArray=jz;exports.useFloating=mz;exports.useFloating$1=p5;exports.useFocus=gz;exports.useForm=Kz;exports.useFormContext=Ad;exports.useHover=hz;exports.useInteractions=vz;exports.useRole=bz;exports.useWatch=E5;
|