@fluidattacks/design 3.25.16 → 3.25.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/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/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-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/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/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-cquGCnw4.js → components-BuwbEnC_.js} +30 -30
- package/dist/{components-CSbu-pMc.mjs → components-icuLQAs5.mjs} +193 -191
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-aX2fiAjI.js +223 -0
- package/dist/{vendor-7juYbTH6.mjs → vendor-n0YlGhIk.mjs} +17132 -16997
- package/package.json +1 -1
- package/dist/vendor-Bc-P_rRI.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 T=require("react"),la=require("react/jsx-runtime"),qa=require("react-dom");function _P(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 We=_P(T),ip=_P(qa);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-",rn="-webkit-",MP="comm",xm="rule",K4="decl",jj="@import",Kj="@namespace",FP="@keyframes",Uj="@layer",RP=Math.abs,U4=String.fromCharCode,J1=Object.assign;function zj(e,t){return ar(e,0)^45?(((t<<2^ar(e,0))<<2^ar(e,1))<<2^ar(e,2))<<2^ar(e,3):0}function kP(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 sp(e,t,n){return e.indexOf(t,n)}function ar(e,t){return e.charCodeAt(t)|0}function Lu(e,t,n){return e.slice(t,n)}function bs(e){return e.length}function OP(e){return e.length}function Mf(e,t){return t.push(e),e}function qj(e,t){return e.map(t).join("")}function rC(e,t){return e.filter(function(n){return!Na(n,t)})}var wm=1,ic=1,IP=0,ts=0,rr=0,xc="";function Cm(e,t,n,r,i,s,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:wm,column:ic,length:a,return:"",siblings:o}}function vo(e,t){return J1(Cm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Tl(e){for(;e.root;)e=vo(e.root,{children:[e]});Mf(e,e.siblings)}function Wj(){return rr}function Hj(){return rr=ts>0?ar(xc,--ts):0,ic--,rr===10&&(ic=1,wm--),rr}function Es(){return rr=ts<IP?ar(xc,ts++):0,ic++,rr===10&&(ic=1,wm++),rr}function So(){return ar(xc,ts)}function ap(){return ts}function Em(e,t){return Lu(xc,e,t)}function ed(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 Gj(e){return wm=ic=1,IP=bs(xc=e),ts=0,[]}function Yj(e){return xc="",e}function fv(e){return kP(Em(ts-1,Q1(e===91?e+2:e===40?e+1:e)))}function Zj(e){for(;(rr=So())&&rr<33;)Es();return ed(e)>2||ed(rr)>3?"":" "}function Xj(e,t){for(;--t&&Es()&&!(rr<48||rr>102||rr>57&&rr<65||rr>70&&rr<97););return Em(e,ap()+(t<6&&So()==32&&Es()==32))}function Q1(e){for(;Es();)switch(rr){case e:return ts;case 34:case 39:e!==34&&e!==39&&Q1(rr);break;case 40:e===41&&Q1(e);break;case 92:Es();break}return ts}function Jj(e,t){for(;Es()&&e+rr!==57;)if(e+rr===84&&So()===47)break;return"/*"+Em(t,ts-1)+"*"+U4(e===47?e:Es())}function Qj(e){for(;!ed(So());)Es();return Em(e,ts)}function eK(e){return Yj(op("",null,null,null,[""],e=Gj(e),0,[0],e))}function op(e,t,n,r,i,s,a,o,l){for(var d=0,h=0,m=a,g=0,b=0,w=0,x=1,D=1,C=1,E=0,S="",k=i,M=s,F=r,N=S;D;)switch(w=E,E=Es()){case 40:if(w!=108&&ar(N,m-1)==58){sp(N+=Vt(fv(E),"&","&\f"),"&\f",RP(d?o[d-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:N+=fv(E);break;case 9:case 10:case 13:case 32:N+=Zj(w);break;case 92:N+=Xj(ap()-1,7);continue;case 47:switch(So()){case 42:case 47:Mf(tK(Jj(Es(),ap()),t,n,l),l),(ed(w||1)==5||ed(So()||1)==5)&&bs(N)&&Lu(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*x:o[d++]=bs(N)*C;case 125*x:case 59:case 0:switch(E){case 0:case 125:D=0;case 59+h:C==-1&&(N=Vt(N,/\f/g,"")),b>0&&(bs(N)-m||x===0&&w===47)&&Mf(b>32?sC(N+";",r,n,m-1,l):sC(Vt(N," ","")+";",r,n,m-2,l),l);break;case 59:N+=";";default:if(Mf(F=iC(N,t,n,d,h,i,o,S,k=[],M=[],m,s),s),E===123)if(h===0)op(N,t,F,F,k,s,m,o,M);else{switch(g){case 99:if(ar(N,3)===110)break;case 108:if(ar(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?op(e,F,F,r&&Mf(iC(e,F,F,0,0,i,o,S,i,k=[],m,M),M),i,M,m,o,r?k:M):op(N,F,F,F,[""],M,0,o,M)}}d=h=b=0,x=C=1,S=N="",m=a;break;case 58:m=1+bs(N),b=w;default:if(x<1){if(E==123)--x;else if(E==125&&x++==0&&Hj()==125)continue}switch(N+=U4(E),E*x){case 38:C=h>0?1:(N+="\f",-1);break;case 44:o[d++]=(bs(N)-1)*C,C=1;break;case 64:So()===45&&(N+=fv(Es())),g=So(),h=m=bs(S=N+=Qj(ap())),E++;break;case 45:w===45&&bs(N)==2&&(x=0)}}return s}function iC(e,t,n,r,i,s,a,o,l,d,h,m){for(var g=i-1,b=i===0?s:[""],w=OP(b),x=0,D=0,C=0;x<r;++x)for(var E=0,S=Lu(e,g+1,g=RP(D=a[x])),k=e;E<w;++E)(k=kP(D>0?b[E]+" "+S:Vt(S,/&\f/g,b[E])))&&(l[C++]=k);return Cm(e,t,n,i===0?xm:o,l,d,h,m)}function tK(e,t,n,r){return Cm(e,t,n,MP,U4(Wj()),Lu(e,2,-2),0,r)}function sC(e,t,n,r,i){return Cm(e,t,n,K4,Lu(e,0,r),Lu(e,r+1,-1),r,i)}function LP(e,t,n){switch(zj(e,t)){case 5103:return rn+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return rn+e+e;case 4855:return rn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return zf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rn+e+zf+e+wn+e+e;case 5936:switch(ar(e,t+11)){case 114:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rn+e+wn+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return rn+e+wn+e+e;case 6165:return rn+e+wn+"flex-"+e+e;case 5187:return rn+e+Vt(e,/(\w+).+(:[^]+)/,rn+"box-$1$2"+wn+"flex-$1$2")+e;case 5443:return rn+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 rn+e+wn+"flex-line-pack"+Vt(e,/align-content|flex-|-self/g,"")+e;case 5548:return rn+e+wn+Vt(e,"shrink","negative")+e;case 5292:return rn+e+wn+Vt(e,"basis","preferred-size")+e;case 6060:return rn+"box-"+Vt(e,"-grow","")+rn+e+wn+Vt(e,"grow","positive")+e;case 4554:return rn+Vt(e,/([^-])(transform)/g,"$1"+rn+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,rn+"$1"),/(image-set)/,rn+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,rn+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,rn+"box-pack:$3"+wn+"flex-pack:$3"),/space-between/,"justify")+rn+e+e;case 4200:if(!Na(e,/flex-|baseline/))return wn+"grid-column-align"+Lu(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/)})?~sp(e+(n=n[t].value),"span",0)?e:wn+Vt(e,"-start","")+e+wn+"grid-row-span:"+(~sp(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(.+)/,rn+"$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(bs(e)-1-t>6)switch(ar(e,t+1)){case 109:if(ar(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+rn+"$2-$3$1"+zf+(ar(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sp(e,"stretch",0)?LP(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(ar(e,t+6)===121)return Vt(e,":",":"+rn)+e;break;case 6444:switch(ar(e,ar(e,14)===45?18:11)){case 120:return Vt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+rn+(ar(e,14)===45?"inline-":"")+"box$3$1"+rn+"$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 Mp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nK(e,t,n,r){switch(e.type){case Uj:if(e.children.length)break;case jj:case Kj:case K4:return e.return=e.return||e.value;case MP:return"";case FP:return e.return=e.value+"{"+Mp(e.children,r)+"}";case xm:if(!bs(e.value=e.props.join(",")))return""}return bs(n=Mp(e.children,r))?e.return=e.value+"{"+n+"}":""}function rK(e){var t=OP(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 iK(e){return function(t){t.root||(t=t.return)&&e(t)}}function sK(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case K4:e.return=LP(e.value,e.length,n);return;case FP:return Mp([vo(e,{value:Vt(e.value,"@","@"+rn)})],r);case xm:if(e.length)return qj(n=e.props,function(i){switch(Na(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Tl(vo(e,{props:[Vt(i,/:(read-\w+)/,":"+zf+"$1")]})),Tl(vo(e,{props:[i]})),J1(e,{props:rC(n,r)});break;case"::placeholder":Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+rn+"input-$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,":"+zf+"$1")]})),Tl(vo(e,{props:[Vt(i,/:(plac\w+)/,wn+"input-$1")]})),Tl(vo(e,{props:[i]})),J1(e,{props:rC(n,r)});break}return""})}}var aK={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},Vu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",z4=typeof window<"u"&&"HTMLElement"in window,oK=!!(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"),aC=/invalid hook call/i,Rh=new Set,uK=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];aC.test(a)?(s=!1,Rh.delete(r)):i.apply(void 0,Iu([a],o,!1))},T.useRef(),s&&!Rh.has(r)&&(console.warn(r),Rh.add(r))}catch(a){aC.test(a.message)&&Rh.delete(r)}finally{console.error=i}}},Sm=Object.freeze([]),sc=Object.freeze({});function lK(e,t,n){return n===void 0&&(n=sc),e.theme!==n.theme&&e.theme||t||n.theme}var eb=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"]),cK=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fK=/(^-|-$)/g;function oC(e){return e.replace(cK,"-").replace(fK,"")}var dK=/(a)(d)/gi,uC=function(e){return String.fromCharCode(e+(e>25?39:97))};function tb(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=uC(t%52)+n;return(uC(t%52)+n).replace(dK,"$1-$2")}var dv,gu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},VP=function(e){return gu(5381,e)};function BP(e){return tb(VP(e)>>>0)}function NP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function hv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var jP=typeof Symbol=="function"&&Symbol.for,KP=jP?Symbol.for("react.memo"):60115,hK=jP?Symbol.for("react.forward_ref"):60112,pK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},UP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gK=((dv={})[hK]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dv[KP]=UP,dv);function lC(e){return("type"in(t=e)&&t.type.$$typeof)===KP?UP:"$$typeof"in e?gK[e.$$typeof]:pK;var t}var vK=Object.defineProperty,yK=Object.getOwnPropertyNames,cC=Object.getOwnPropertySymbols,bK=Object.getOwnPropertyDescriptor,$K=Object.getPrototypeOf,fC=Object.prototype;function zP(e,t,n){if(typeof t!="string"){if(fC){var r=$K(t);r&&r!==fC&&zP(e,r,n)}var i=yK(t);cC&&(i=i.concat(cC(t)));for(var s=lC(e),a=lC(t),o=0;o<i.length;++o){var l=i[o];if(!(l in mK||n&&n[l]||a&&l in a||s&&l in s)){var d=bK(t,l);try{vK(e,l,d)}catch{}}}}return e}function Bu(e){return typeof e=="function"}function q4(e){return typeof e=="object"&&"styledComponentId"in e}function bu(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function nb(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 rb(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]=rb(e[r],t[r]);else if(ac(t))for(var r in t)e[r]=rb(e[r],t[r]);return e}function W4(e,t){Object.defineProperty(e,"toString",{value:t})}var xK=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 wK(){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(wK.apply(void 0,Iu([xK[e]],t,!1)).trim())}var CK=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}(),up=new Map,Fp=new Map,lp=1,kh=function(e){if(up.has(e))return up.get(e);for(;Fp.has(lp);)lp++;var t=lp++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>1073741824))throw ia(16,"".concat(t));return up.set(e,t),Fp.set(t,e),t},EK=function(e,t){lp=t+1,up.set(e,t),Fp.set(t,e)},SK="style[".concat(Vu,"][").concat("data-styled-version",'="').concat("6.1.1",'"]'),DK=new RegExp("^".concat(Vu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),AK=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)},TK=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(DK);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(EK(h,d),AK(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(o)}}};function PK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(o){var l=Array.from(o.querySelectorAll("style[".concat(Vu,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Vu,"active"),r.setAttribute("data-styled-version","6.1.1");var a=PK();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},_K=function(){function e(t){this.element=qP(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}(),MK=function(){function e(t){this.element=qP(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}(),FK=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}(),dC=z4,RK={isServer:!z4,useCSSOMInjection:!oK},WP=function(){function e(t,n,r){t===void 0&&(t=sc),n===void 0&&(n={});var i=this;this.options=Fr(Fr({},RK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&z4&&dC&&(dC=!1,function(s){for(var a=document.querySelectorAll(SK),o=0,l=a.length;o<l;o++){var d=a[o];d&&d.getAttribute(Vu)!=="active"&&(TK(s,d),d.parentNode&&d.parentNode.removeChild(d))}}(this)),W4(this,function(){return function(s){for(var a=s.getTag(),o=a.length,l="",d=function(m){var g=function(C){return Fp.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 x="".concat(Vu,".g").concat(m,'[id="').concat(g,'"]'),D="";b!==void 0&&b.forEach(function(C){C.length>0&&(D+="".concat(C,","))}),l+="".concat(w).concat(x,'{content:"').concat(D,'"}').concat(`/*!sc*/
|
|
47
|
+
`)},h=0;h<o;h++)d(h);return l}(i)})}return e.registerId=function(t){return kh(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 FK(i):r?new _K(i):new MK(i)}(this.options),new CK(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(kh(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(kh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(kh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),kK=/&/g,OK=/^\s*\/\/.*$/gm;function HP(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=HP(n.children,t)),n})}function IK(e){var t,n,r,i=sc,s=i.options,a=s===void 0?sc:s,o=i.plugins,l=o===void 0?Sm: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===xm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(kK,n).replace(r,d))}),a.prefix&&h.push(sK),h.push(nK);var m=function(g,b,w,x){b===void 0&&(b=""),w===void 0&&(w=""),x===void 0&&(x="&"),t=x,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var D=g.replace(OK,""),C=eK(w||b?"".concat(w," ").concat(b," { ").concat(D," }"):D);a.namespace&&(C=HP(C,a.namespace));var E=[];return Mp(C,rK(h.concat(iK(function(S){return E.push(S)})))),E};return m.hash=l.length?l.reduce(function(g,b){return b.name||ia(15),gu(g,b.name)},5381).toString():"",m}var LK=new WP,ib=IK(),GP=T.createContext({shouldForwardProp:void 0,styleSheet:LK,stylis:ib});GP.Consumer;T.createContext(void 0);function hC(){return T.useContext(GP)}var sb=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=ib);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,W4(this,function(){throw ia(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ib),this.name+t.hash},e}(),VK=function(e){return e>="A"&&e<="Z"};function pC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;VK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var YP=function(e){return e==null||e===!1||e===""},ZP=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!YP(s)&&(Array.isArray(s)&&s.isCss||Bu(s)?r.push("".concat(pC(i),":"),s,";"):ac(s)?r.push.apply(r,Iu(Iu(["".concat(i," {")],ZP(s),!1),["}"],!1)):r.push("".concat(pC(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in aK||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function _u(e,t,n,r){if(YP(e))return[];if(q4(e))return[".".concat(e.styledComponentId)];if(Bu(e)){if(!Bu(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 sb||ac(i)||i===null||console.error("".concat(NP(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 sb?n?(e.inject(n,r),[e.getName(r)]):[e]:ac(e)?ZP(e):Array.isArray(e)?Array.prototype.concat.apply(Sm,e.map(function(a){return _u(a,t,n,r)})):[e.toString()]}function BK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Bu(n)&&!q4(n))return!1}return!0}var NK=VP("6.1.1"),jK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&BK(t),this.componentId=n,this.baseHash=gu(NK,n),this.baseStyle=r,WP.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=bu(i,this.staticRulesId);else{var s=nb(_u(this.rules,t,n,r)),a=tb(gu(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=bu(i,a),this.staticRulesId=a}else{for(var l=gu(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=gu(l,m));else if(m){var g=nb(_u(m,t,n,r));l=gu(l,g+h),d+=g}}if(d){var b=tb(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=bu(i,b)}}return i},e}(),td=T.createContext(void 0);td.Consumer;function KK(){var e=T.useContext(td);if(!e)throw ia(18);return e}function UK(e){var t=T.useContext(td),n=T.useMemo(function(){return function(r,i){if(!r)throw ia(14);if(Bu(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?T.createElement(td.Provider,{value:n},e.children):null}var pv={},mC=new Set;function zK(e,t,n){var r=q4(e),i=e,s=!hv(e),a=t.attrs,o=a===void 0?Sm:a,l=t.componentId,d=l===void 0?function(k,M){var F=typeof k!="string"?"sc":oC(k);pv[F]=(pv[F]||0)+1;var N="".concat(F,"-").concat(BP("6.1.1"+F+pv[F]));return M?"".concat(M,"-").concat(N):N}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(k){return hv(k)?"styled.".concat(k):"Styled(".concat(NP(k),")")}(e):h,g=t.displayName&&t.componentId?"".concat(oC(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 x=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;w=function(k,M){return x(k,M)&&D(k,M)}}else w=x}var C=new jK(n,g,r?i.componentStyle:void 0);function E(k,M){return function(F,N,te){var ce=F.attrs,ae=F.componentStyle,I=F.defaultProps,xe=F.foldedComponentIds,Ce=F.styledComponentId,z=F.target,ee=T.useContext(td),U=hC(),O=F.shouldForwardProp||U.shouldForwardProp;process.env.NODE_ENV!=="production"&&T.useDebugValue(Ce);var V=function(Pe,Fe,He){for(var Xe,Be=Fr(Fr({},Fe),{className:void 0,theme:He}),Ge=0;Ge<Pe.length;Ge+=1){var Me=Bu(Xe=Pe[Ge])?Xe(Be):Xe;for(var Le in Me)Be[Le]=Le==="className"?bu(Be[Le],Me[Le]):Le==="style"?Fr(Fr({},Be[Le]),Me[Le]):Me[Le]}return Fe.className&&(Be.className=bu(Be.className,Fe.className)),Be}(ce,N,lK(N,ee,I)||sc),ne=V.as||z,K={};for(var le in V)V[le]===void 0||le[0]==="$"||le==="as"||le==="theme"||(le==="forwardedAs"?K.as=V.forwardedAs:O&&!O(le,ne)||(K[le]=V[le],O||process.env.NODE_ENV!=="development"||Nj(le)||mC.has(le)||!eb.has(ne)||(mC.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 He=hC(),Xe=Pe.generateAndInjectStyles(Fe,He.styleSheet,He.stylis);return process.env.NODE_ENV!=="production"&&T.useDebugValue(Xe),Xe}(ae,V);process.env.NODE_ENV!=="production"&&F.warnTooManyClasses&&F.warnTooManyClasses(ue);var De=bu(xe,Ce);return ue&&(De+=" "+ue),V.className&&(De+=" "+V.className),K[hv(ne)&&!eb.has(ne)?"class":"className"]=De,K.ref=te,T.createElement(ne,K)}(S,k,M)}E.displayName=m;var S=T.forwardRef(E);return S.attrs=b,S.componentStyle=C,S.displayName=m,S.shouldForwardProp=w,S.foldedComponentIds=r?bu(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(M){for(var F=[],N=1;N<arguments.length;N++)F[N-1]=arguments[N];for(var te=0,ce=F;te<ce.length;te++)rb(M,ce[te],!0);return M}({},i.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(uK(m,g),S.warnTooManyClasses=function(k,M){var F={},N=!1;return function(te){if(!N&&(F[te]=!0,Object.keys(F).length>=200)){var ce=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(ce,`.
|
|
48
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
|
+
Example:
|
|
50
|
+
const Component = styled.div.attrs(props => ({
|
|
51
|
+
style: {
|
|
52
|
+
background: props.background,
|
|
53
|
+
},
|
|
54
|
+
}))\`width: 100%;\`
|
|
55
|
+
|
|
56
|
+
<Component />`),N=!0,F={}}}}(m,g)),W4(S,function(){return".".concat(S.styledComponentId)}),s&&zP(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function gC(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 vC=function(e){return Object.assign(e,{isCss:!0})};function H4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Bu(e)||ac(e)){var r=e;return vC(_u(gC(Sm,Iu([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?_u(i):vC(_u(gC(i,t)))}function ab(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,H4.apply(void 0,Iu([i],s,!1)))};return r.attrs=function(i){return ab(e,t,Fr(Fr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return ab(e,t,Fr(Fr({},n),i))},r}var XP=function(e){return ab(zK,e)},JP=XP;eb.forEach(function(e){JP[e]=XP(e)});function qK(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=nb(H4.apply(void 0,Iu([e],t,!1))),i=BP(r);return new sb(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 Oh="__sc-".concat(Vu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Oh]||(window[Oh]=0),window[Oh]===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[Oh]+=1);function Dm(){return typeof window<"u"}function wc(e){return QP(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=(QP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function QP(e){return Dm()?e instanceof Node||e instanceof ci(e).Node:!1}function ir(e){return Dm()?e instanceof Element||e instanceof ci(e).Element:!1}function ns(e){return Dm()?e instanceof HTMLElement||e instanceof ci(e).HTMLElement:!1}function ob(e){return!Dm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ci(e).ShadowRoot}const WK=new Set(["inline","contents"]);function Dd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!WK.has(i)}const HK=new Set(["table","td","th"]);function GK(e){return HK.has(wc(e))}const YK=[":popover-open",":modal"];function Am(e){return YK.some(t=>{try{return e.matches(t)}catch{return!1}})}const ZK=["transform","translate","scale","rotate","perspective"],XK=["transform","translate","scale","rotate","perspective","filter"],JK=["paint","layout","strict","content"];function G4(e){const t=Y4(),n=ir(e)?Ds(e):e;return ZK.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)||XK.some(r=>(n.willChange||"").includes(r))||JK.some(r=>(n.contain||"").includes(r))}function QK(e){let t=Fo(e);for(;ns(t)&&!oc(t);){if(G4(t))return t;if(Am(t))return null;t=Fo(t)}return null}function Y4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eU=new Set(["html","body","#document"]);function oc(e){return eU.has(wc(e))}function Ds(e){return ci(e).getComputedStyle(e)}function Tm(e){return ir(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fo(e){if(wc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ob(e)&&e.host||fa(e);return ob(t)?t.host:t}function e5(e){const t=Fo(e);return oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:ns(t)&&Dd(t)?t:e5(t)}function nd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=e5(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=ci(i);if(s){const o=ub(a);return t.concat(a,a.visualViewport||[],Dd(i)?i:[],o&&n?nd(o):[])}return t.concat(i,nd(i,[],n))}function ub(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Rp=Math.min,Mu=Math.max,kp=Math.round,Ih=Math.floor,sa=e=>({x:e,y:e}),tU={left:"right",right:"left",bottom:"top",top:"bottom"},nU={start:"end",end:"start"};function yC(e,t,n){return Mu(e,Rp(t,n))}function Pm(e,t){return typeof e=="function"?e(t):e}function Nu(e){return e.split("-")[0]}function _m(e){return e.split("-")[1]}function t5(e){return e==="x"?"y":"x"}function n5(e){return e==="y"?"height":"width"}const rU=new Set(["top","bottom"]);function Do(e){return rU.has(Nu(e))?"y":"x"}function r5(e){return t5(Do(e))}function iU(e,t,n){n===void 0&&(n=!1);const r=_m(e),i=r5(e),s=n5(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Op(a)),[a,Op(a)]}function sU(e){const t=Op(e);return[lb(e),t,lb(t)]}function lb(e){return e.replace(/start|end/g,t=>nU[t])}const bC=["left","right"],$C=["right","left"],aU=["top","bottom"],oU=["bottom","top"];function uU(e,t,n){switch(e){case"top":case"bottom":return n?t?$C:bC:t?bC:$C;case"left":case"right":return t?aU:oU;default:return[]}}function lU(e,t,n,r){const i=_m(e);let s=uU(Nu(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(lb)))),s}function Op(e){return e.replace(/left|right|bottom|top/g,t=>tU[t])}function cU(e){return{top:0,right:0,bottom:0,left:0,...e}}function fU(e){return typeof e!="number"?cU(e):{top:e,right:e,bottom:e,left:e}}function Ip(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 dU(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function hU(){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 pU(){return/apple/i.test(navigator.vendor)}function mU(){return dU().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function gU(){return hU().includes("jsdom/")}const xC="data-floating-ui-focusable",vU="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function wC(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 cb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ob(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function yU(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Ff(e){return(e==null?void 0:e.ownerDocument)||document}function bU(e){return ns(e)&&e.matches(vU)}function $U(e){if(!e||gU())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function xU(e){return e?e.hasAttribute(xC)?e:e.querySelector("["+xC+"]")||e:null}function fb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var wU=typeof document<"u",CU=function(){},uc=wU?T.useLayoutEffect:CU;const EU={...We};function Lh(e){const t=We.useRef(e);return uc(()=>{t.current=e}),t}const SU=EU.useInsertionEffect,DU=SU||(e=>e());function Rf(e){const t=We.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return DU(()=>{t.current=e}),We.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 CC(e,t,n){let{reference:r,floating:i}=e;const s=Do(t),a=r5(t),o=n5(a),l=Nu(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(_m(t)){case"start":b[a]-=g*(n&&d?-1:1);break;case"end":b[a]+=g*(n&&d?-1:1);break}return b}const AU=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}=CC(d,r,l),g=r,b={},w=0;for(let x=0;x<o.length;x++){const{name:D,fn:C}=o[x],{x:E,y:S,data:k,reset:M}=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}},M&&w<=50&&(w++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(d=M.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=CC(d,g,l)),x=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function i5(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}=Pm(t,e),w=fU(b),D=o[g?m==="floating"?"reference":"floating":m],C=Ip(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},M=Ip(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:E,offsetParent:S,strategy:l}):E);return{top:(C.top-M.top+w.top)/k.y,bottom:(M.bottom-C.bottom+w.bottom)/k.y,left:(C.left-M.left+w.left)/k.x,right:(M.right-C.right+w.right)/k.x}}const TU=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:x=!0,...D}=Pm(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=Nu(i),E=Do(o),S=Nu(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=g||(S||!x?[Op(o)]:sU(o)),F=w!=="none";!g&&F&&M.push(...lU(o,x,w,k));const N=[o,...M],te=await i5(t,D),ce=[];let ae=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&ce.push(te[C]),m){const z=iU(i,a,k);ce.push(te[z[0]],te[z[1]])}if(ae=[...ae,{placement:i,overflows:ce}],!ce.every(z=>z<=0)){var I,xe;const z=(((I=s.flip)==null?void 0:I.index)||0)+1,ee=N[z];if(ee&&(!(m==="alignment"?E!==Do(ee):!1)||ae.every(V=>V.overflows[0]>0&&Do(V.placement)===E)))return{data:{index:z,overflows:ae},reset:{placement:ee}};let U=(xe=ae.filter(O=>O.overflows[0]<=0).sort((O,V)=>O.overflows[1]-V.overflows[1])[0])==null?void 0:xe.placement;if(!U)switch(b){case"bestFit":{var Ce;const O=(Ce=ae.filter(V=>{if(F){const ne=Do(V.placement);return ne===E||ne==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,K)=>ne+K,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:Ce[0];O&&(U=O);break}case"initialPlacement":U=o;break}if(i!==U)return{reset:{placement:U}}}return{}}}},PU=new Set(["left","top"]);async function _U(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Nu(n),o=_m(n),l=Do(n)==="y",d=PU.has(a)?-1:1,h=s&&l?-1:1,m=Pm(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 MU=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 _U(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}}}}},FU=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}=Pm(e,t),d={x:n,y:r},h=await i5(t,l),m=Do(Nu(i)),g=t5(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=yC(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=yC(E,w,S)}const x=o.fn({...t,[g]:b,[m]:w});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:s,[m]:a}}}}}};function s5(e){const t=Ds(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=kp(n)!==s||kp(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function Z4(e){return ir(e)?e:e.contextElement}function Gl(e){const t=Z4(e);if(!ns(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=s5(t);let a=(s?kp(n.width):n.width)/r,o=(s?kp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const RU=sa(0);function a5(e){const t=ci(e);return!Y4()||!t.visualViewport?RU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ci(e)?!1:t}function ju(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Z4(e);let a=sa(1);t&&(r?ir(r)&&(a=Gl(r)):a=Gl(e));const o=kU(s,n,r)?a5(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,x=ub(w);for(;x&&r&&b!==w;){const D=Gl(x),C=x.getBoundingClientRect(),E=Ds(x),S=C.left+(x.clientLeft+parseFloat(E.paddingLeft))*D.x,k=C.top+(x.clientTop+parseFloat(E.paddingTop))*D.y;l*=D.x,d*=D.y,h*=D.x,m*=D.y,l+=S,d+=k,w=ci(x),x=ub(w)}}return Ip({width:h,height:m,x:l,y:d})}function X4(e,t){const n=Tm(e).scrollLeft;return t?t.left+n:ju(fa(e)).left+n}function o5(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:X4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function OU(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=fa(r),o=t?Am(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"||Dd(a))&&(l=Tm(r)),ns(r))){const b=ju(r);d=Gl(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=a&&!m&&!s?o5(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 IU(e){return Array.from(e.getClientRects())}function LU(e){const t=fa(e),n=Tm(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+X4(e);const o=-n.scrollTop;return Ds(r).direction==="rtl"&&(a+=Mu(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}function VU(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=Y4();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:s,height:a,x:o,y:l}}const BU=new Set(["absolute","fixed"]);function NU(e,t){const n=ju(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ns(e)?Gl(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 EC(e,t,n){let r;if(t==="viewport")r=VU(e,n);else if(t==="document")r=LU(fa(e));else if(ir(t))r=NU(t,n);else{const i=a5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Ip(r)}function u5(e,t){const n=Fo(e);return n===t||!ir(n)||oc(n)?!1:Ds(n).position==="fixed"||u5(n,t)}function jU(e,t){const n=t.get(e);if(n)return n;let r=nd(e,[],!1).filter(o=>ir(o)&&wc(o)!=="body"),i=null;const s=Ds(e).position==="fixed";let a=s?Fo(e):e;for(;ir(a)&&!oc(a);){const o=Ds(a),l=G4(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&BU.has(i.position)||Dd(a)&&!l&&u5(e,a))?r=r.filter(h=>h!==a):i=o,a=Fo(a)}return t.set(e,r),r}function KU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Am(t)?[]:jU(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((d,h)=>{const m=EC(t,h,i);return d.top=Mu(m.top,d.top),d.right=Rp(m.right,d.right),d.bottom=Rp(m.bottom,d.bottom),d.left=Mu(m.left,d.left),d},EC(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function UU(e){const{width:t,height:n}=s5(e);return{width:t,height:n}}function zU(e,t,n){const r=ns(t),i=fa(t),s=n==="fixed",a=ju(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=sa(0);function d(){l.x=X4(i)}if(r||!r&&!s)if((wc(t)!=="body"||Dd(i))&&(o=Tm(t)),r){const b=ju(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?o5(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 mv(e){return Ds(e).position==="static"}function SC(e,t){if(!ns(e)||Ds(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fa(e)===n&&(n=n.ownerDocument.body),n}function l5(e,t){const n=ci(e);if(Am(e))return n;if(!ns(e)){let i=Fo(e);for(;i&&!oc(i);){if(ir(i)&&!mv(i))return i;i=Fo(i)}return n}let r=SC(e,t);for(;r&&GK(r)&&mv(r);)r=SC(r,t);return r&&oc(r)&&mv(r)&&!G4(r)?n:r||QK(e)||n}const qU=async function(e){const t=this.getOffsetParent||l5,n=this.getDimensions,r=await n(e.floating);return{reference:zU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WU(e){return Ds(e).direction==="rtl"}const HU={convertOffsetParentRelativeRectToViewportRelativeRect:OU,getDocumentElement:fa,getClippingRect:KU,getOffsetParent:l5,getElementRects:qU,getClientRects:IU,getDimensions:UU,getScale:Gl,isElement:ir,isRTL:WU};function c5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GU(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=Ih(m),x=Ih(i.clientWidth-(h+g)),D=Ih(i.clientHeight-(m+b)),C=Ih(h),S={rootMargin:-w+"px "+-x+"px "+-D+"px "+-C+"px",threshold:Mu(0,Rp(1,l))||1};let k=!0;function M(F){const N=F[0].intersectionRatio;if(N!==l){if(!k)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!c5(d,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(M,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,S)}n.observe(e)}return a(!0),s}function YU(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=Z4(e),h=i||s?[...d?nd(d):[],...nd(t)]:[];h.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),s&&C.addEventListener("resize",n)});const m=d&&o?GU(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,x=l?ju(e):null;l&&D();function D(){const C=ju(e);x&&!c5(x,C)&&n(),x=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 ZU=MU,XU=FU,JU=TU,QU=(e,t,n)=>{const r=new Map,i={platform:HU,...n},s={...i.platform,_c:r};return AU(e,t,{...i,platform:s})};var ez=typeof document<"u",tz=function(){},cp=ez?T.useLayoutEffect:tz;function Lp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Lp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Lp(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function f5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function DC(e,t){const n=f5(e);return Math.round(t*n)/n}function gv(e){const t=We.useRef(e);return cp(()=>{t.current=e}),t}function d5(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]=We.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=We.useState(r);Lp(g,r)||b(r);const[w,x]=We.useState(null),[D,C]=We.useState(null),E=We.useCallback(V=>{V!==F.current&&(F.current=V,x(V))},[]),S=We.useCallback(V=>{V!==N.current&&(N.current=V,C(V))},[]),k=s||w,M=a||D,F=We.useRef(null),N=We.useRef(null),te=We.useRef(h),ce=l!=null,ae=gv(l),I=gv(i),xe=gv(d),Ce=We.useCallback(()=>{if(!F.current||!N.current)return;const V={placement:t,strategy:n,middleware:g};I.current&&(V.platform=I.current),QU(F.current,N.current,V).then(ne=>{const K={...ne,isPositioned:xe.current!==!1};z.current&&!Lp(te.current,K)&&(te.current=K,ip.flushSync(()=>{m(K)}))})},[g,t,n,I,xe]);cp(()=>{d===!1&&te.current.isPositioned&&(te.current.isPositioned=!1,m(V=>({...V,isPositioned:!1})))},[d]);const z=We.useRef(!1);cp(()=>(z.current=!0,()=>{z.current=!1}),[]),cp(()=>{if(k&&(F.current=k),M&&(N.current=M),k&&M){if(ae.current)return ae.current(k,M,Ce);Ce()}},[k,M,Ce,ae,ce]);const ee=We.useMemo(()=>({reference:F,floating:N,setReference:E,setFloating:S}),[E,S]),U=We.useMemo(()=>({reference:k,floating:M}),[k,M]),O=We.useMemo(()=>{const V={position:n,left:0,top:0};if(!U.floating)return V;const ne=DC(U.floating,h.x),K=DC(U.floating,h.y);return o?{...V,transform:"translate("+ne+"px, "+K+"px)",...f5(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:K}},[n,o,U.floating,h.x,h.y]);return We.useMemo(()=>({...h,update:Ce,refs:ee,elements:U,floatingStyles:O}),[h,Ce,ee,U,O])}const nz=(e,t)=>({...ZU(e),options:[e,t]}),rz=(e,t)=>({...XU(e),options:[e,t]}),iz=(e,t)=>({...JU(e),options:[e,t]}),sz="data-floating-ui-focusable",AC="active",TC="selected",az={...We};let PC=!1,oz=0;const _C=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oz++;function uz(){const[e,t]=We.useState(()=>PC?_C():void 0);return uc(()=>{e==null&&t(_C())},[]),We.useEffect(()=>{PC=!0},[]),e}const lz=az.useId,h5=lz||uz;let db;process.env.NODE_ENV!=="production"&&(db=new Set);function cz(){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=db)!=null&&e.has(i))){var s;(s=db)==null||s.add(i),console.error(i)}}function fz(){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 dz=We.createContext(null),hz=We.createContext(null),J4=()=>{var e;return((e=We.useContext(dz))==null?void 0:e.id)||null},p5=()=>We.useContext(hz);function m5(e){return"data-floating-ui-"+e}function Ki(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const MC=m5("safe-polygon");function vv(e,t,n){if(n&&!fb(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 yv(e){return typeof e=="function"?e():e}function pz(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=p5(),w=J4(),x=Lh(d),D=Lh(l),C=Lh(n),E=Lh(m),S=We.useRef(),k=We.useRef(-1),M=We.useRef(),F=We.useRef(-1),N=We.useRef(!0),te=We.useRef(!1),ce=We.useRef(()=>{}),ae=We.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"});We.useEffect(()=>{if(!o)return;function O(V){let{open:ne}=V;ne||(Ki(k),Ki(F),N.current=!0,ae.current=!1)}return s.on("openchange",O),()=>{s.off("openchange",O)}},[o,s]),We.useEffect(()=>{if(!o||!x.current||!n)return;function O(ne){I()&&r(!1,ne,"hover")}const V=Ff(a.floating).documentElement;return V.addEventListener("mouseleave",O),()=>{V.removeEventListener("mouseleave",O)}},[a.floating,n,r,o,x,I]);const xe=We.useCallback(function(O,V,ne){V===void 0&&(V=!0),ne===void 0&&(ne="hover");const K=vv(D.current,"close",S.current);K&&!M.current?(Ki(k),k.current=window.setTimeout(()=>r(!1,O,ne),K)):V&&(Ki(k),r(!1,O,ne))},[D,r]),Ce=Rf(()=>{ce.current(),M.current=void 0}),z=Rf(()=>{if(te.current){const O=Ff(a.floating).body;O.style.pointerEvents="",O.removeAttribute(MC),te.current=!1}}),ee=Rf(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);We.useEffect(()=>{if(!o)return;function O(ue){if(Ki(k),N.current=!1,h&&!fb(S.current)||yv(E.current)>0&&!vv(D.current,"open"))return;const De=vv(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}ce.current();const De=Ff(a.floating);if(Ki(F),ae.current=!1,x.current&&i.current.floatingContext){n||Ki(k),M.current=x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){z(),Ce(),ee()||xe(ue,!0,"safe-polygon")}});const Fe=M.current;De.addEventListener("mousemove",Fe),ce.current=()=>{De.removeEventListener("mousemove",Fe)};return}(S.current==="touch"?!cb(a.floating,ue.relatedTarget):!0)&&xe(ue)}function ne(ue){ee()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:b,x:ue.clientX,y:ue.clientY,onClose(){z(),Ce(),ee()||xe(ue)}})(ue))}function K(){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",ne),g&&ue.addEventListener("mousemove",O,{once:!0}),ue.addEventListener("mouseenter",O),ue.addEventListener("mouseleave",V),De&&(De.addEventListener("mouseleave",ne),De.addEventListener("mouseenter",K),De.addEventListener("mouseleave",le)),()=>{n&&ue.removeEventListener("mouseleave",ne),g&&ue.removeEventListener("mousemove",O),ue.removeEventListener("mouseenter",O),ue.removeEventListener("mouseleave",V),De&&(De.removeEventListener("mouseleave",ne),De.removeEventListener("mouseenter",K),De.removeEventListener("mouseleave",le))}}},[a,o,e,h,g,xe,Ce,z,r,n,C,b,D,x,i,ee,E]),uc(()=>{var O;if(o&&n&&(O=x.current)!=null&&(O=O.__options)!=null&&O.blockPointerEvents&&I()){te.current=!0;const ne=a.floating;if(ir(a.domReference)&&ne){var V;const K=Ff(a.floating).body;K.setAttribute(MC,"");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=""),K.style.pointerEvents="none",le.style.pointerEvents="auto",ne.style.pointerEvents="auto",()=>{K.style.pointerEvents="",le.style.pointerEvents="",ne.style.pointerEvents=""}}}},[o,n,w,a,b,x,I]),uc(()=>{n||(S.current=void 0,ae.current=!1,Ce(),z())},[n,Ce,z]),We.useEffect(()=>()=>{Ce(),Ki(k),Ki(F),z()},[o,a.domReference,Ce,z]);const U=We.useMemo(()=>{function O(V){S.current=V.pointerType}return{onPointerDown:O,onPointerEnter:O,onMouseMove(V){const{nativeEvent:ne}=V;function K(){!N.current&&!C.current&&r(!0,ne,"hover")}h&&!fb(S.current)||n||yv(E.current)===0||ae.current&&V.movementX**2+V.movementY**2<2||(Ki(F),S.current==="touch"?K():(ae.current=!0,F.current=window.setTimeout(K,yv(E.current))))}}},[h,r,n,C,E]);return We.useMemo(()=>o?{reference:U}:{},[o,U])}function mz(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=h5(),s=We.useRef({}),[a]=We.useState(()=>fz()),o=J4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!ir(b)&&cz("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]=We.useState(r.reference),h=Rf((b,w,x)=>{s.current.openEvent=b?w:void 0,a.emit("openchange",{open:b,event:w,reason:x,nested:o}),n==null||n(b,w,x)}),m=We.useMemo(()=>({setPositionReference:d}),[]),g=We.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return We.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function gz(e){e===void 0&&(e={});const{nodeId:t}=e,n=mz({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,a]=We.useState(null),[o,l]=We.useState(null),h=(i==null?void 0:i.domReference)||s,m=We.useRef(null),g=p5();uc(()=>{h&&(m.current=h)},[h]);const b=d5({...e,elements:{...i,...o&&{reference:o}}}),w=We.useCallback(S=>{const k=ir(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;l(k),b.refs.setReference(k)},[b.refs]),x=We.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=We.useMemo(()=>({...b.refs,setReference:x,setPositionReference:w,domReference:m}),[b.refs,x,w]),C=We.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),E=We.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)}),We.useMemo(()=>({...b,context:E,refs:D,elements:C}),[b,D,C,E])}function bv(){return mU()&&pU()}function vz(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=We.useRef(!1),h=We.useRef(-1),m=We.useRef(!0);We.useEffect(()=>{if(!o)return;const b=ci(a.domReference);function w(){!n&&ns(a.domReference)&&a.domReference===wC(Ff(a.domReference))&&(d.current=!0)}function x(){m.current=!0}function D(){m.current=!1}return b.addEventListener("blur",w),bv()&&(b.addEventListener("keydown",x,!0),b.addEventListener("pointerdown",D,!0)),()=>{b.removeEventListener("blur",w),bv()&&(b.removeEventListener("keydown",x,!0),b.removeEventListener("pointerdown",D,!0))}},[a.domReference,n,o]),We.useEffect(()=>{if(!o)return;function b(w){let{reason:x}=w;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,o]),We.useEffect(()=>()=>{Ki(h)},[]);const g=We.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const w=yU(b.nativeEvent);if(l&&ir(w)){if(bv()&&!b.relatedTarget){if(!m.current&&!bU(w))return}else if(!$U(w))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const w=b.relatedTarget,x=b.nativeEvent,D=ir(w)&&w.hasAttribute(m5("focus-guard"))&&w.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var C;const E=wC(a.domReference?a.domReference.ownerDocument:document);!w&&E===a.domReference||cb((C=s.current.floatingContext)==null?void 0:C.refs.floating.current,E)||cb(a.domReference,E)||D||r(!1,x,"focus")})}}),[s,a.domReference,r,l]);return We.useMemo(()=>o?{reference:g}:{},[o,g])}function $v(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[AC]:a,[TC]:o,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[sz]:""},...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&&[AC,TC].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),x=0;x<b;x++)w[x]=arguments[x];return(g=r.get(d))==null?void 0:g.map(D=>D(...w)).find(D=>D!==void 0)}}}else a[d]=h}),a),{})}}function yz(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=We.useCallback(o=>$v(o,e,"reference"),t),s=We.useCallback(o=>$v(o,e,"floating"),n),a=We.useCallback(o=>$v(o,e,"item"),r);return We.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}const bz=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $z(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=h5(),h=((n=s.domReference)==null?void 0:n.id)||d,m=We.useMemo(()=>{var E;return((E=xU(s.floating))==null?void 0:E.id)||a},[s.floating,a]),g=(r=bz.get(l))!=null?r:l,w=J4()!=null,x=We.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=We.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=We.useCallback(E=>{let{active:S,selected:k}=E;const M={role:"option",...S&&{id:m+"-fui-option"}};switch(l){case"select":return{...M,"aria-selected":S&&k};case"combobox":return{...M,"aria-selected":k}}return{}},[m,l]);return We.useMemo(()=>o?{reference:x,floating:D,item:C}:{},[o,x,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 xz=kf.exports,FC;function wz(){return FC||(FC=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,x=2,D=1,C=2,E=4,S=8,k=16,M=32,F=64,N=128,te=256,ce=512,ae=30,I="...",xe=800,Ce=16,z=1,ee=2,U=3,O=1/0,V=9007199254740991,ne=17976931348623157e292,K=NaN,le=4294967295,ue=le-1,De=le>>>1,Pe=[["ary",N],["bind",D],["bindKey",C],["curry",S],["curryRight",k],["flip",ce],["partial",M],["partialRight",F],["rearg",te]],Fe="[object Arguments]",He="[object Array]",Xe="[object AsyncFunction]",Be="[object Boolean]",Ge="[object Date]",Me="[object DOMException]",Le="[object Error]",Ae="[object Function]",Ye="[object GeneratorFunction]",ht="[object Map]",Gt="[object Number]",$t="[object Null]",_t="[object Object]",Zr="[object Promise]",en="[object Proxy]",be="[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,Rs=/\b(__p \+=) '' \+/g,No=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bt=/&(?:amp|lt|gt|quot|#39);/g,hi=/[&<>"']/g,pa=RegExp(bt.source),jc=RegExp(hi.source),el=/<%-([\s\S]+?)%>/g,Kc=/<%([\s\S]+?)%>/g,tl=/<%=([\s\S]+?)%>/g,jo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nl=/^\w*$/,is=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ss=/[\\^$.*+?()[\]{}|]/g,yt=RegExp(ss.source),Sn=/^\s+/,ma=/\s/,rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Er=/\{\n\/\* \[wrapped with (.+)\] \*/,il=/,? & /,sl=/[^\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,Xn=/^\[object .+?Constructor\]$/,Ko=/^0o[0-7]+$/i,ks=/^(?:0|[1-9]\d*)$/,mi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ln=/($^)/,no=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",zc="\\u0300-\\u036f",al="\\ufe20-\\ufe2f",qc="\\u20d0-\\u20ff",Uo=zc+al+qc,ga="\\u2700-\\u27bf",ol="a-z\\xdf-\\xf6\\xf8-\\xff",zo="\\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",ul="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",Wo=zo+Wc+Hc+Gc,va="['’]",ll="["+Kt+"]",cl="["+Wo+"]",Or="["+Uo+"]",vr="\\d+",Ir="["+ga+"]",Os="["+ol+"]",ro="[^"+Kt+Wo+vr+ga+ol+ul+"]",yr="\\ud83c[\\udffb-\\udfff]",ya="(?:"+Or+"|"+yr+")",ba="[^"+Kt+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",gi="[\\ud800-\\udbff][\\udc00-\\udfff]",ur="["+ul+"]",_i="\\u200d",Ho="(?:"+Os+"|"+ro+")",fl="(?:"+ur+"|"+ro+")",pn="(?:"+va+"(?:d|ll|m|re|s|t|ve))?",Go="(?:"+va+"(?:D|LL|M|RE|S|T|VE))?",$a=ya+"?",Yo="["+qo+"]?",dl="(?:"+_i+"(?:"+[ba,Pi,gi].join("|")+")"+Yo+$a+")*",Lr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Yo+$a+dl,Ls="(?:"+[Ir,Pi,gi].join("|")+")"+Is,xa="(?:"+[ba+Or+"?",Or,Pi,gi,ll].join("|")+")",os=RegExp(va,"g"),wa=RegExp(Or,"g"),io=RegExp(yr+"(?="+yr+")|"+xa+Is,"g"),hl=RegExp([ur+"?"+Os+"+"+pn+"(?="+[cl,ur,"$"].join("|")+")",fl+"+"+Go+"(?="+[cl,ur+Ho,"$"].join("|")+")",ur+"?"+Ho+"+"+pn,ur+"+"+Go,Zo,Lr,vr,Ls].join("|"),"g"),Yc=RegExp("["+_i+Kt+Uo+qo+"]"),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[He]=Yt[Rt]=Yt[Be]=Yt[xt]=Yt[Ge]=Yt[Le]=Yt[Ae]=Yt[ht]=Yt[Gt]=Yt[_t]=Yt[be]=Yt[Se]=Yt[_e]=Yt[Qe]=!1;var nn={};nn[Fe]=nn[He]=nn[Rt]=nn[xt]=nn[Be]=nn[Ge]=nn[yn]=nn[Cr]=nn[zt]=nn[Pt]=nn[It]=nn[ht]=nn[Gt]=nn[_t]=nn[be]=nn[Se]=nn[_e]=nn[Je]=nn[qt]=nn[gr]=nn[Xr]=nn[di]=!0,nn[Le]=nn[Ae]=nn[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,lr=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi,Kn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=lr||Kn||Function("return this")(),Mi=t&&!t.nodeType&&t,Fi=Mi&&!0&&e&&!e.nodeType&&e,Xo=Fi&&Fi.exports===Mi,so=Xo&&lr.process,cr=function(){try{var R=Fi&&Fi.require&&Fi.require("util").types;return R||so&&so.binding&&so.binding("util")}catch{}}(),Sa=cr&&cr.isArrayBuffer,ih=cr&&cr.isDate,sh=cr&&cr.isMap,Xc=cr&&cr.isRegExp,ao=cr&&cr.isSet,us=cr&&cr.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 Vs(R,Q,G,he){for(var de=-1,W=R==null?0:R.length;++de<W;){var Y=R[de];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 fr(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,de=0,W=[];++G<he;){var Y=R[G];Q(Y,G,R)&&(W[de++]=Y)}return W}function Bs(R,Q){var G=R==null?0:R.length;return!!G&&Aa(R,Q,0)>-1}function pl(R,Q,G){for(var he=-1,de=R==null?0:R.length;++he<de;)if(G(Q,R[he]))return!0;return!1}function cn(R,Q){for(var G=-1,he=R==null?0:R.length,de=Array(he);++G<he;)de[G]=Q(R[G],G,R);return de}function ls(R,Q){for(var G=-1,he=Q.length,de=R.length;++G<he;)R[de+G]=Q[G];return R}function ml(R,Q,G,he){var de=-1,W=R==null?0:R.length;for(he&&W&&(G=R[++de]);++de<W;)G=Q(G,R[de],de,R);return G}function Jo(R,Q,G,he){var de=R==null?0:R.length;for(he&&de&&(G=R[--de]);de--;)G=Q(G,R[de],de,R);return G}function Ns(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 Qo=gl("length");function eu(R){return R.split("")}function gg(R){return R.match(sl)||[]}function Jc(R,Q,G){var he;return G(R,function(de,W,Y){if(Q(de,W,Y))return he=W,!1}),he}function tu(R,Q,G,he){for(var de=R.length,W=G+(he?1:-1);he?W--:++W<de;)if(Q(R[W],W,R))return W;return-1}function Aa(R,Q,G){return Q===Q?p(R,Q,G):tu(R,Qc,G)}function ah(R,Q,G,he){for(var de=G-1,W=R.length;++de<W;)if(he(R[de],Q))return de;return-1}function Qc(R){return R!==R}function nu(R,Q){var G=R==null?0:R.length;return G?js(R,Q)/G:K}function gl(R){return function(Q){return Q==null?n:Q[R]}}function vl(R){return function(Q){return R==null?n:R[Q]}}function ef(R,Q,G,he,de){return de(R,function(W,Y,L){G=he?(he=!1,W):Q(G,W,Y,L)}),G}function ru(R,Q){var G=R.length;for(R.sort(Q);G--;)R[G]=R[G].value;return R}function js(R,Q){for(var G,he=-1,de=R.length;++he<de;){var W=Q(R[he]);W!==n&&(G=G===n?W:G+W)}return G}function yl(R,Q){for(var G=-1,he=Array(R);++G<R;)he[G]=Q(G);return he}function vg(R,Q){return cn(Q,function(G){return[G,R[G]]})}function oh(R){return R&&R.slice(0,_(R)+1).replace(Sn,"")}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 bl(R,Q){for(var G=-1,he=R.length;++G<he&&Aa(Q,R[G],0)>-1;);return G}function dr(R,Q){for(var G=R.length;G--&&Aa(Q,R[G],0)>-1;);return G}function yg(R,Q){for(var G=R.length,he=0;G--;)R[G]===Q&&++he;return he}var bg=vl(se),Ta=vl(Re);function vi(R){return"\\"+pt[R]}function $g(R,Q){return R==null?n:R[Q]}function Ar(R){return Yc.test(R)}function nf(R){return Ca.test(R)}function Ks(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,de){G[++Q]=[de,he]}),G}function Ri(R,Q){return function(G){return R(Q(G))}}function Qr(R,Q){for(var G=-1,he=R.length,de=0,W=[];++G<he;){var Y=R[G];(Y===Q||Y===h)&&(R[G]=h,W[de++]=G)}return W}function oo(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,de=R.length;++he<de;)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 $(R){return Ar(R)?me(R):Qo(R)}function P(R){return Ar(R)?J(R):eu(R)}function _(R){for(var Q=R.length;Q--&&ma.test(R.charAt(Q)););return Q}var q=vl(ze);function me(R){for(var Q=io.lastIndex=0;io.test(R);)++Q;return Q}function J(R){return R.match(io)||[]}function ye(R){return R.match(hl)||[]}var we=function R(Q){Q=Q==null?Dn:ke.defaults(Dn.Object(),Q,ke.pick(Dn,Zc));var G=Q.Array,he=Q.Date,de=Q.Error,W=Q.Function,Y=Q.Math,L=Q.Object,j=Q.RegExp,H=Q.String,re=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),fe=Dn._,X=j("^"+et.call(Ne).replace(ss,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=Xo?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,hr=je?je.isConcatSpreadable:n,Jn=je?je.iterator:n,Nn=je?je.toStringTag:n,Un=function(){try{var u=uu(L,"defineProperty");return u({},"",{}),u}catch{}}(),zn=Q.clearTimeout!==Dn.clearTimeout&&Q.clearTimeout,br=he&&he.now!==Dn.Date.now&&he.now,ft=Q.setTimeout!==Dn.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,Us=he.now,bi=Q.parseInt,hs=Y.random,$i=oe.reverse,ps=uu(Q,"DataView"),zs=uu(Q,"Map"),uo=uu(Q,"Promise"),$l=uu(Q,"Set"),rf=uu(Q,"WeakMap"),sf=uu(L,"create"),uh=rf&&new rf,xl={},z9=lu(ps),q9=lu(zs),W9=lu(uo),H9=lu($l),G9=lu(rf),lh=je?je.prototype:n,af=lh?lh.valueOf:n,xx=lh?lh.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 ww(u)}return new Oi(u)}var wl=function(){function u(){}return function(f){if(!_n(f))return{};if(Ct)return Ct(f);u.prototype=f;var y=new u;return u.prototype=n,y}}();function ch(){}function Oi(u,f){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}Z.templateSettings={escape:el,evaluate:Kc,interpolate:tl,variable:"",imports:{_:Z}},Z.prototype=ch.prototype,Z.prototype.constructor=Z,Oi.prototype=wl(ch.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),A=f<0,B=y?u.length:0,ie=l8(0,B,this.__views__),ve=ie.start,Ee=ie.end,Te=Ee-ve,Ue=A?Ee:ve-1,qe=this.__iteratees__,Ze=qe.length,at=0,vt=xn(Te,this.__takeCount__);if(!y||!A&&B==Te&&vt==Te)return qx(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=wl(ch.prototype),Ut.prototype.constructor=Ut;function iu(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var A=u[f];this.set(A[0],A[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}iu.prototype.clear=J9,iu.prototype.delete=Q9,iu.prototype.get=eL,iu.prototype.has=tL,iu.prototype.set=nL;function Pa(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f<y;){var A=u[f];this.set(A[0],A[1])}}function rL(){this.__data__=[],this.size=0}function iL(u){var f=this.__data__,y=fh(f,u);if(y<0)return!1;var A=f.length-1;return y==A?f.pop():Wt.call(f,y,1),--this.size,!0}function sL(u){var f=this.__data__,y=fh(f,u);return y<0?n:f[y][1]}function aL(u){return fh(this.__data__,u)>-1}function oL(u,f){var y=this.__data__,A=fh(y,u);return A<0?(++this.size,y.push([u,f])):y[A][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 A=u[f];this.set(A[0],A[1])}}function uL(){this.size=0,this.__data__={hash:new iu,map:new(zs||Pa),string:new iu}}function lL(u){var f=Ch(this,u).delete(u);return this.size-=f?1:0,f}function cL(u){return Ch(this,u).get(u)}function fL(u){return Ch(this,u).has(u)}function dL(u,f){var y=Ch(this,u),A=y.size;return y.set(u,f),this.size+=y.size==A?0:1,this}_a.prototype.clear=uL,_a.prototype.delete=lL,_a.prototype.get=cL,_a.prototype.has=fL,_a.prototype.set=dL;function su(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)}su.prototype.add=su.prototype.push=hL,su.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 A=y.__data__;if(!zs||A.length<i-1)return A.push([u,f]),this.size=++y.size,this;y=this.__data__=new _a(A)}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 wx(u,f){var y=Mt(u),A=!y&&cu(u),B=!y&&!A&&po(u),ie=!y&&!A&&!B&&Dl(u),ve=y||A||B||ie,Ee=ve?yl(u.length,H):[],Te=Ee.length;for(var Ue in u)(f||Ne.call(u,Ue))&&!(ve&&(Ue=="length"||B&&(Ue=="offset"||Ue=="parent")||ie&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||ka(Ue,Te)))&&Ee.push(Ue);return Ee}function Cx(u){var f=u.length;return f?u[Mg(0,f-1)]:n}function $L(u,f){return Eh(ti(u),au(f,0,u.length))}function xL(u){return Eh(ti(u))}function xg(u,f,y){(y!==n&&!gs(u[f],y)||y===n&&!(f in u))&&Ma(u,f,y)}function of(u,f,y){var A=u[f];(!(Ne.call(u,f)&&gs(A,y))||y===n&&!(f in u))&&Ma(u,f,y)}function fh(u,f){for(var y=u.length;y--;)if(gs(u[y][0],f))return y;return-1}function wL(u,f,y,A){return lo(u,function(B,ie,ve){f(A,B,y(B),ve)}),A}function Ex(u,f){return u&&Ws(f,pr(f),u)}function CL(u,f){return u&&Ws(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 wg(u,f){for(var y=-1,A=f.length,B=G(A),ie=u==null;++y<A;)B[y]=ie?n:nv(u,f[y]);return B}function au(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,A,B,ie){var ve,Ee=f&m,Te=f&g,Ue=f&b;if(y&&(ve=B?y(u,A,B,ie):y(u)),ve!==n)return ve;if(!_n(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==Ye;if(po(u))return Gx(u,Ee);if(Ze==_t||Ze==Fe||at&&!B){if(ve=Te||at?{}:hw(u),!Ee)return Te?e8(u,CL(ve,u)):QL(u,Ex(ve,u))}else{if(!nn[Ze])return B?u:{};ve=d8(u,Ze,Ee)}}ie||(ie=new ms);var vt=ie.get(u);if(vt)return vt;ie.set(u,ve),Kw(u)?u.forEach(function(St){ve.add(Ii(St,f,y,St,u,ie))}):Nw(u)&&u.forEach(function(St,Nt){ve.set(Nt,Ii(St,f,y,Nt,u,ie))});var Et=Ue?Te?Kg:jg:Te?ri:pr,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,ie))}),ve}function EL(u){var f=pr(u);return function(y){return Sx(y,u,f)}}function Sx(u,f,y){var A=y.length;if(u==null)return!A;for(u=L(u);A--;){var B=y[A],ie=f[B],ve=u[B];if(ve===n&&!(B in u)||!ie(ve))return!1}return!0}function Dx(u,f,y){if(typeof u!="function")throw new re(a);return pf(function(){u.apply(n,y)},f)}function uf(u,f,y,A){var B=-1,ie=Bs,ve=!0,Ee=u.length,Te=[],Ue=f.length;if(!Ee)return Te;y&&(f=cn(f,Dr(y))),A?(ie=pl,ve=!1):f.length>=i&&(ie=mn,ve=!1,f=new su(f));e:for(;++B<Ee;){var qe=u[B],Ze=y==null?qe:y(qe);if(qe=A||qe!==0?qe:0,ve&&Ze===Ze){for(var at=Ue;at--;)if(f[at]===Ze)continue e;Te.push(qe)}else ie(f,Ze,A)||Te.push(qe)}return Te}var lo=Qx(qs),Ax=Qx(Eg,!0);function SL(u,f){var y=!0;return lo(u,function(A,B,ie){return y=!!f(A,B,ie),y}),y}function dh(u,f,y){for(var A=-1,B=u.length;++A<B;){var ie=u[A],ve=f(ie);if(ve!=null&&(Ee===n?ve===ve&&!wi(ve):y(ve,Ee)))var Ee=ve,Te=ie}return Te}function DL(u,f,y,A){var B=u.length;for(y=kt(y),y<0&&(y=-y>B?0:B+y),A=A===n||A>B?B:kt(A),A<0&&(A+=B),A=y>A?0:zw(A);y<A;)u[y++]=f;return u}function Tx(u,f){var y=[];return lo(u,function(A,B,ie){f(A,B,ie)&&y.push(A)}),y}function $r(u,f,y,A,B){var ie=-1,ve=u.length;for(y||(y=p8),B||(B=[]);++ie<ve;){var Ee=u[ie];f>0&&y(Ee)?f>1?$r(Ee,f-1,y,A,B):ls(B,Ee):A||(B[B.length]=Ee)}return B}var Cg=ew(),Px=ew(!0);function qs(u,f){return u&&Cg(u,f,pr)}function Eg(u,f){return u&&Px(u,f,pr)}function hh(u,f){return Sr(f,function(y){return Oa(u[y])})}function ou(u,f){f=fo(f,u);for(var y=0,A=f.length;u!=null&&y<A;)u=u[Hs(f[y++])];return y&&y==A?u:n}function _x(u,f,y){var A=f(u);return Mt(u)?A:ls(A,y(u))}function Vr(u){return u==null?u===n?tt:$t:Nn&&Nn in L(u)?u8(u):x8(u)}function Sg(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 Dg(u,f,y){for(var A=y?pl:Bs,B=u[0].length,ie=u.length,ve=ie,Ee=G(ie),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 su(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):A(Ue,Et,y))){for(ve=ie;--ve;){var Lt=Ee[ve];if(!(Lt?mn(Lt,Et):A(u[ve],Et,y)))continue e}at&&at.push(Et),Ue.push(vt)}}return Ue}function _L(u,f,y,A){return qs(u,function(B,ie,ve){f(A,y(B),ie,ve)}),A}function lf(u,f,y){f=fo(f,u),u=vw(u,f);var A=u==null?u:u[Hs(Vi(f))];return A==null?n:Vn(A,u,y)}function Mx(u){return jn(u)&&Vr(u)==Fe}function ML(u){return jn(u)&&Vr(u)==Rt}function FL(u){return jn(u)&&Vr(u)==Ge}function cf(u,f,y,A,B){return u===f?!0:u==null||f==null||!jn(u)&&!jn(f)?u!==u&&f!==f:RL(u,f,y,A,cf,B)}function RL(u,f,y,A,B,ie){var ve=Mt(u),Ee=Mt(f),Te=ve?He:Tr(u),Ue=Ee?He:Tr(f);Te=Te==Fe?_t:Te,Ue=Ue==Fe?_t:Ue;var qe=Te==_t,Ze=Ue==_t,at=Te==Ue;if(at&&po(u)){if(!po(f))return!1;ve=!0,qe=!1}if(at&&!qe)return ie||(ie=new ms),ve||Dl(u)?cw(u,f,y,A,B,ie):a8(u,f,Te,y,A,B,ie);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 ie||(ie=new ms),B(Lt,St,y,A,ie)}}return at?(ie||(ie=new ms),o8(u,f,y,A,B,ie)):!1}function kL(u){return jn(u)&&Tr(u)==ht}function Ag(u,f,y,A){var B=y.length,ie=B,ve=!A;if(u==null)return!ie;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<ie;){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(A)var at=A(Ue,qe,Te,u,f,Ze);if(!(at===n?cf(qe,Ue,w|x,A,Ze):at))return!1}}return!0}function Fx(u){if(!_n(u)||g8(u))return!1;var f=Oa(u)?X:Xn;return f.test(lu(u))}function OL(u){return jn(u)&&Vr(u)==be}function IL(u){return jn(u)&&Tr(u)==Se}function LL(u){return jn(u)&&_h(u.length)&&!!Yt[Vr(u)]}function Rx(u){return typeof u=="function"?u:u==null?ii:typeof u=="object"?Mt(u)?Ix(u[0],u[1]):Ox(u):tC(u)}function Tg(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(!_n(u))return $8(u);var f=hf(u),y=[];for(var A in u)A=="constructor"&&(f||!Ne.call(u,A))||y.push(A);return y}function Pg(u,f){return u<f}function kx(u,f){var y=-1,A=ni(u)?G(u.length):[];return lo(u,function(B,ie,ve){A[++y]=f(B,ie,ve)}),A}function Ox(u){var f=zg(u);return f.length==1&&f[0][2]?mw(f[0][0],f[0][1]):function(y){return y===u||Ag(y,u,f)}}function Ix(u,f){return Wg(u)&&pw(f)?mw(Hs(u),f):function(y){var A=nv(y,u);return A===n&&A===f?rv(y,u):cf(f,A,w|x)}}function ph(u,f,y,A,B){u!==f&&Cg(f,function(ie,ve){if(B||(B=new ms),_n(ie))BL(u,f,ve,y,ph,A,B);else{var Ee=A?A(Gg(u,ve),ie,ve+"",u,f,B):n;Ee===n&&(Ee=ie),xg(u,ve,Ee)}},ri)}function BL(u,f,y,A,B,ie,ve){var Ee=Gg(u,y),Te=Gg(f,y),Ue=ve.get(Te);if(Ue){xg(u,y,Ue);return}var qe=ie?ie(Ee,Te,y+"",u,f,ve):n,Ze=qe===n;if(Ze){var at=Mt(Te),vt=!at&&po(Te),Et=!at&&!vt&&Dl(Te);qe=Te,at||vt||Et?Mt(Ee)?qe=Ee:qn(Ee)?qe=ti(Ee):vt?(Ze=!1,qe=Gx(Te,!0)):Et?(Ze=!1,qe=Yx(Te,!0)):qe=[]:mf(Te)||cu(Te)?(qe=Ee,cu(Ee)?qe=qw(Ee):(!_n(Ee)||Oa(Ee))&&(qe=hw(Te))):Ze=!1}Ze&&(ve.set(Te,qe),B(qe,Te,A,ie,ve),ve.delete(Te)),xg(u,y,qe)}function Lx(u,f){var y=u.length;if(y)return f+=f<0?y:0,ka(f,y)?u[f]:n}function Vx(u,f,y){f.length?f=cn(f,function(ie){return Mt(ie)?function(ve){return ou(ve,ie.length===1?ie[0]:ie)}:ie}):f=[ii];var A=-1;f=cn(f,Dr(wt()));var B=kx(u,function(ie,ve,Ee){var Te=cn(f,function(Ue){return Ue(ie)});return{criteria:Te,index:++A,value:ie}});return ru(B,function(ie,ve){return JL(ie,ve,y)})}function NL(u,f){return Bx(u,f,function(y,A){return rv(u,A)})}function Bx(u,f,y){for(var A=-1,B=f.length,ie={};++A<B;){var ve=f[A],Ee=ou(u,ve);y(Ee,ve)&&ff(ie,fo(ve,u),Ee)}return ie}function jL(u){return function(f){return ou(f,u)}}function _g(u,f,y,A){var B=A?ah:Aa,ie=-1,ve=f.length,Ee=u;for(u===f&&(f=ti(f)),y&&(Ee=cn(u,Dr(y)));++ie<ve;)for(var Te=0,Ue=f[ie],qe=y?y(Ue):Ue;(Te=B(Ee,qe,Te,A))>-1;)Ee!==u&&Wt.call(Ee,Te,1),Wt.call(u,Te,1);return u}function Nx(u,f){for(var y=u?f.length:0,A=y-1;y--;){var B=f[y];if(y==A||B!==ie){var ie=B;ka(B)?Wt.call(u,B,1):kg(u,B)}}return u}function Mg(u,f){return u+ei(hs()*(f-u+1))}function KL(u,f,y,A){for(var B=-1,ie=Zt(fn((f-u)/(y||1)),0),ve=G(ie);ie--;)ve[A?ie:++B]=u,u+=y;return ve}function Fg(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 Yg(gw(u,f,ii),u+"")}function UL(u){return Cx(Al(u))}function zL(u,f){var y=Al(u);return Eh(y,au(f,0,y.length))}function ff(u,f,y,A){if(!_n(u))return u;f=fo(f,u);for(var B=-1,ie=f.length,ve=ie-1,Ee=u;Ee!=null&&++B<ie;){var Te=Hs(f[B]),Ue=y;if(Te==="__proto__"||Te==="constructor"||Te==="prototype")return u;if(B!=ve){var qe=Ee[Te];Ue=A?A(qe,Te,Ee):n,Ue===n&&(Ue=_n(qe)?qe:ka(f[B+1])?[]:{})}of(Ee,Te,Ue),Ee=Ee[Te]}return u}var jx=uh?function(u,f){return uh.set(u,f),u}:ii,qL=Un?function(u,f){return Un(u,"toString",{configurable:!0,enumerable:!1,value:sv(f),writable:!0})}:ii;function WL(u){return Eh(Al(u))}function Li(u,f,y){var A=-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 ie=G(B);++A<B;)ie[A]=u[A+f];return ie}function HL(u,f){var y;return lo(u,function(A,B,ie){return y=f(A,B,ie),!y}),!!y}function mh(u,f,y){var A=0,B=u==null?A:u.length;if(typeof f=="number"&&f===f&&B<=De){for(;A<B;){var ie=A+B>>>1,ve=u[ie];ve!==null&&!wi(ve)&&(y?ve<=f:ve<f)?A=ie+1:B=ie}return B}return Rg(u,f,ii,y)}function Rg(u,f,y,A){var B=0,ie=u==null?0:u.length;if(ie===0)return 0;f=y(f);for(var ve=f!==f,Ee=f===null,Te=wi(f),Ue=f===n;B<ie;){var qe=ei((B+ie)/2),Ze=y(u[qe]),at=Ze!==n,vt=Ze===null,Et=Ze===Ze,Lt=wi(Ze);if(ve)var St=A||Et;else Ue?St=Et&&(A||at):Ee?St=Et&&at&&(A||!vt):Te?St=Et&&at&&!vt&&(A||!Lt):vt||Lt?St=!1:St=A?Ze<=f:Ze<f;St?B=qe+1:ie=qe}return xn(ie,ue)}function Kx(u,f){for(var y=-1,A=u.length,B=0,ie=[];++y<A;){var ve=u[y],Ee=f?f(ve):ve;if(!y||!gs(Ee,Te)){var Te=Ee;ie[B++]=ve===0?0:ve}}return ie}function Ux(u){return typeof u=="number"?u:wi(u)?K:+u}function xi(u){if(typeof u=="string")return u;if(Mt(u))return cn(u,xi)+"";if(wi(u))return xx?xx.call(u):"";var f=u+"";return f=="0"&&1/u==-O?"-0":f}function co(u,f,y){var A=-1,B=Bs,ie=u.length,ve=!0,Ee=[],Te=Ee;if(y)ve=!1,B=pl;else if(ie>=i){var Ue=f?null:i8(u);if(Ue)return oo(Ue);ve=!1,B=mn,Te=new su}else Te=f?[]:Ee;e:for(;++A<ie;){var qe=u[A],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 kg(u,f){return f=fo(f,u),u=vw(u,f),u==null||delete u[Hs(Vi(f))]}function zx(u,f,y,A){return ff(u,f,y(ou(u,f)),A)}function gh(u,f,y,A){for(var B=u.length,ie=A?B:-1;(A?ie--:++ie<B)&&f(u[ie],ie,u););return y?Li(u,A?0:ie,A?ie+1:B):Li(u,A?ie+1:0,A?B:ie)}function qx(u,f){var y=u;return y instanceof Ut&&(y=y.value()),ml(f,function(A,B){return B.func.apply(B.thisArg,ls([A],B.args))},y)}function Og(u,f,y){var A=u.length;if(A<2)return A?co(u[0]):[];for(var B=-1,ie=G(A);++B<A;)for(var ve=u[B],Ee=-1;++Ee<A;)Ee!=B&&(ie[B]=uf(ie[B]||ve,u[Ee],f,y));return co($r(ie,1),f,y)}function Wx(u,f,y){for(var A=-1,B=u.length,ie=f.length,ve={};++A<B;){var Ee=A<ie?f[A]:n;y(ve,u[A],Ee)}return ve}function Ig(u){return qn(u)?u:[]}function Lg(u){return typeof u=="function"?u:ii}function fo(u,f){return Mt(u)?u:Wg(u,f)?[u]:xw(on(u))}var GL=Bt;function ho(u,f,y){var A=u.length;return y=y===n?A:y,!f&&y>=A?u:Li(u,f,y)}var Hx=zn||function(u){return Dn.clearTimeout(u)};function Gx(u,f){if(f)return u.slice();var y=u.length,A=lt?lt(y):new u.constructor(y);return u.copy(A),A}function Vg(u){var f=new u.constructor(u.byteLength);return new Oe(f).set(new Oe(u)),f}function YL(u,f){var y=f?Vg(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 Yx(u,f){var y=f?Vg(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Zx(u,f){if(u!==f){var y=u!==n,A=u===null,B=u===u,ie=wi(u),ve=f!==n,Ee=f===null,Te=f===f,Ue=wi(f);if(!Ee&&!Ue&&!ie&&u>f||ie&&ve&&Te&&!Ee&&!Ue||A&&ve&&Te||!y&&Te||!B)return 1;if(!A&&!ie&&!Ue&&u<f||Ue&&y&&B&&!A&&!ie||Ee&&y&&B||!ve&&B||!Te)return-1}return 0}function JL(u,f,y){for(var A=-1,B=u.criteria,ie=f.criteria,ve=B.length,Ee=y.length;++A<ve;){var Te=Zx(B[A],ie[A]);if(Te){if(A>=Ee)return Te;var Ue=y[A];return Te*(Ue=="desc"?-1:1)}}return u.index-f.index}function Xx(u,f,y,A){for(var B=-1,ie=u.length,ve=y.length,Ee=-1,Te=f.length,Ue=Zt(ie-ve,0),qe=G(Te+Ue),Ze=!A;++Ee<Te;)qe[Ee]=f[Ee];for(;++B<ve;)(Ze||B<ie)&&(qe[y[B]]=u[B]);for(;Ue--;)qe[Ee++]=u[B++];return qe}function Jx(u,f,y,A){for(var B=-1,ie=u.length,ve=-1,Ee=y.length,Te=-1,Ue=f.length,qe=Zt(ie-Ee,0),Ze=G(qe+Ue),at=!A;++B<qe;)Ze[B]=u[B];for(var vt=B;++Te<Ue;)Ze[vt+Te]=f[Te];for(;++ve<Ee;)(at||B<ie)&&(Ze[vt+y[ve]]=u[B++]);return Ze}function ti(u,f){var y=-1,A=u.length;for(f||(f=G(A));++y<A;)f[y]=u[y];return f}function Ws(u,f,y,A){var B=!y;y||(y={});for(var ie=-1,ve=f.length;++ie<ve;){var Ee=f[ie],Te=A?A(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 Ws(u,qg(u),f)}function e8(u,f){return Ws(u,fw(u),f)}function vh(u,f){return function(y,A){var B=Mt(y)?Vs:wL,ie=f?f():{};return B(y,u,wt(A,2),ie)}}function Cl(u){return Bt(function(f,y){var A=-1,B=y.length,ie=B>1?y[B-1]:n,ve=B>2?y[2]:n;for(ie=u.length>3&&typeof ie=="function"?(B--,ie):n,ve&&Br(y[0],y[1],ve)&&(ie=B<3?n:ie,B=1),f=L(f);++A<B;){var Ee=y[A];Ee&&u(f,Ee,A,ie)}return f})}function Qx(u,f){return function(y,A){if(y==null)return y;if(!ni(y))return u(y,A);for(var B=y.length,ie=f?B:-1,ve=L(y);(f?ie--:++ie<B)&&A(ve[ie],ie,ve)!==!1;);return y}}function ew(u){return function(f,y,A){for(var B=-1,ie=L(f),ve=A(f),Ee=ve.length;Ee--;){var Te=ve[u?Ee:++B];if(y(ie[Te],Te,ie)===!1)break}return f}}function t8(u,f,y){var A=f&D,B=df(u);function ie(){var ve=this&&this!==Dn&&this instanceof ie?B:u;return ve.apply(A?y:this,arguments)}return ie}function tw(u){return function(f){f=on(f);var y=Ar(f)?P(f):n,A=y?y[0]:f.charAt(0),B=y?ho(y,1).join(""):f.slice(1);return A[u]()+B}}function El(u){return function(f){return ml(Qw(Jw(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=wl(u.prototype),A=u.apply(y,f);return _n(A)?A:y}}function n8(u,f,y){var A=df(u);function B(){for(var ie=arguments.length,ve=G(ie),Ee=ie,Te=Sl(B);Ee--;)ve[Ee]=arguments[Ee];var Ue=ie<3&&ve[0]!==Te&&ve[ie-1]!==Te?[]:Qr(ve,Te);if(ie-=Ue.length,ie<y)return aw(u,f,yh,B.placeholder,n,ve,Ue,n,n,y-ie);var qe=this&&this!==Dn&&this instanceof B?A:u;return Vn(qe,this,ve)}return B}function nw(u){return function(f,y,A){var B=L(f);if(!ni(f)){var ie=wt(y,3);f=pr(f),y=function(Ee){return ie(B[Ee],Ee,B)}}var ve=u(f,y,A);return ve>-1?B[ie?f[ve]:ve]:n}}function rw(u){return Ra(function(f){var y=f.length,A=y,B=Oi.prototype.thru;for(u&&f.reverse();A--;){var ie=f[A];if(typeof ie!="function")throw new re(a);if(B&&!ve&&wh(ie)=="wrapper")var ve=new Oi([],!0)}for(A=ve?A:y;++A<y;){ie=f[A];var Ee=wh(ie),Te=Ee=="wrapper"?Ug(ie):n;Te&&Hg(Te[0])&&Te[1]==(N|S|M|te)&&!Te[4].length&&Te[9]==1?ve=ve[wh(Te[0])].apply(ve,Te[3]):ve=ie.length==1&&Hg(ie)?ve[Ee]():ve.thru(ie)}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 yh(u,f,y,A,B,ie,ve,Ee,Te,Ue){var qe=f&N,Ze=f&D,at=f&C,vt=f&(S|k),Et=f&ce,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=Sl(St),Ei=yg(Ht,Nr);if(A&&(Ht=Xx(Ht,A,B,vt)),ie&&(Ht=Jx(Ht,ie,ve,vt)),Nt-=Ei,vt&&Nt<Ue){var Wn=Qr(Ht,Nr);return aw(u,f,yh,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!==Dn&&this instanceof St&&(La=Lt||df(La)),La.apply(vs,Ht)}return St}function iw(u,f){return function(y,A){return _L(y,u,f(A),{})}}function bh(u,f){return function(y,A){var B;if(y===n&&A===n)return f;if(y!==n&&(B=y),A!==n){if(B===n)return A;typeof y=="string"||typeof A=="string"?(y=xi(y),A=xi(A)):(y=Ux(y),A=Ux(A)),B=u(y,A)}return B}}function Bg(u){return Ra(function(f){return f=cn(f,Dr(wt())),Bt(function(y){var A=this;return u(f,function(B){return Vn(B,A,y)})})})}function $h(u,f){f=f===n?" ":xi(f);var y=f.length;if(y<2)return y?Fg(f,u):f;var A=Fg(f,fn(u/$(f)));return Ar(f)?ho(P(A),0,u).join(""):A.slice(0,u)}function r8(u,f,y,A){var B=f&D,ie=df(u);function ve(){for(var Ee=-1,Te=arguments.length,Ue=-1,qe=A.length,Ze=G(qe+Te),at=this&&this!==Dn&&this instanceof ve?ie:u;++Ue<qe;)Ze[Ue]=A[Ue];for(;Te--;)Ze[Ue++]=arguments[++Ee];return Vn(at,B?y:this,Ze)}return ve}function sw(u){return function(f,y,A){return A&&typeof A!="number"&&Br(f,y,A)&&(y=A=n),f=Ia(f),y===n?(y=f,f=0):y=Ia(y),A=A===n?f<y?1:-1:Ia(A),KL(f,y,A,u)}}function xh(u){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Bi(f),y=Bi(y)),u(f,y)}}function aw(u,f,y,A,B,ie,ve,Ee,Te,Ue){var qe=f&S,Ze=qe?ve:n,at=qe?n:ve,vt=qe?ie:n,Et=qe?n:ie;f|=qe?M:F,f&=~(qe?F:M),f&E||(f&=-4);var Lt=[u,f,B,vt,Ze,Et,at,Ee,Te,Ue],St=y.apply(n,Lt);return Hg(u)&&yw(St,Lt),St.placeholder=A,bw(St,u,f)}function Ng(u){var f=Y[u];return function(y,A){if(y=Bi(y),A=A==null?0:xn(kt(A),292),A&&yi(y)){var B=(on(y)+"e").split("e"),ie=f(B[0]+"e"+(+B[1]+A));return B=(on(ie)+"e").split("e"),+(B[0]+"e"+(+B[1]-A))}return f(y)}}var i8=$l&&1/oo(new $l([,-0]))[1]==O?function(u){return new $l(u)}:uv;function ow(u){return function(f){var y=Tr(f);return y==ht?Bn(f):y==Se?c(f):vg(f,u(f))}}function Fa(u,f,y,A,B,ie,ve,Ee){var Te=f&C;if(!Te&&typeof u!="function")throw new re(a);var Ue=A?A.length:0;if(Ue||(f&=-97,A=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=A,Ze=B;A=B=n}var at=Te?n:Ug(u),vt=[u,f,y,A,B,qe,Ze,ie,ve,Ee];if(at&&b8(vt,at),u=vt[0],f=vt[1],y=vt[2],A=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==M||f==(D|M))&&!B.length?Et=r8(u,f,y,A):Et=yh.apply(n,vt);var Lt=at?jx:yw;return bw(Lt(Et,vt),u,f)}function uw(u,f,y,A){return u===n||gs(u,Ie[y])&&!Ne.call(A,y)?f:u}function lw(u,f,y,A,B,ie){return _n(u)&&_n(f)&&(ie.set(f,u),ph(u,f,n,lw,ie),ie.delete(f)),u}function s8(u){return mf(u)?n:u}function cw(u,f,y,A,B,ie){var ve=y&w,Ee=u.length,Te=f.length;if(Ee!=Te&&!(ve&&Te>Ee))return!1;var Ue=ie.get(u),qe=ie.get(f);if(Ue&&qe)return Ue==f&&qe==u;var Ze=-1,at=!0,vt=y&x?new su:n;for(ie.set(u,f),ie.set(f,u);++Ze<Ee;){var Et=u[Ze],Lt=f[Ze];if(A)var St=ve?A(Lt,Et,Ze,f,u,ie):A(Et,Lt,Ze,u,f,ie);if(St!==n){if(St)continue;at=!1;break}if(vt){if(!Ns(f,function(Nt,Ht){if(!mn(vt,Ht)&&(Et===Nt||B(Et,Nt,y,A,ie)))return vt.push(Ht)})){at=!1;break}}else if(!(Et===Lt||B(Et,Lt,y,A,ie))){at=!1;break}}return ie.delete(u),ie.delete(f),at}function a8(u,f,y,A,B,ie,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||!ie(new Oe(u),new Oe(f)));case Be:case Ge:case Gt:return gs(+u,+f);case Le:return u.name==f.name&&u.message==f.message;case be:case _e:return u==f+"";case ht:var Ee=Bn;case Se:var Te=A&w;if(Ee||(Ee=oo),u.size!=f.size&&!Te)return!1;var Ue=ve.get(u);if(Ue)return Ue==f;A|=x,ve.set(u,f);var qe=cw(Ee(u),Ee(f),A,B,ie,ve);return ve.delete(u),qe;case Je:if(af)return af.call(u)==af.call(f)}return!1}function o8(u,f,y,A,B,ie){var ve=y&w,Ee=jg(u),Te=Ee.length,Ue=jg(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=ie.get(u),Et=ie.get(f);if(vt&&Et)return vt==f&&Et==u;var Lt=!0;ie.set(u,f),ie.set(f,u);for(var St=ve;++Ze<Te;){at=Ee[Ze];var Nt=u[at],Ht=f[at];if(A)var Ci=ve?A(Ht,Nt,at,f,u,ie):A(Nt,Ht,at,u,f,ie);if(!(Ci===n?Nt===Ht||B(Nt,Ht,y,A,ie):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 ie.delete(u),ie.delete(f),Lt}function Ra(u){return Yg(gw(u,n,Sw),u+"")}function jg(u){return _x(u,pr,qg)}function Kg(u){return _x(u,ri,fw)}var Ug=uh?function(u){return uh.get(u)}:uv;function wh(u){for(var f=u.name+"",y=xl[f],A=Ne.call(xl,f)?y.length:0;A--;){var B=y[A],ie=B.func;if(ie==null||ie==u)return B.name}return f}function Sl(u){var f=Ne.call(Z,"placeholder")?Z:u;return f.placeholder}function wt(){var u=Z.iteratee||av;return u=u===av?Rx:u,arguments.length?u(arguments[0],arguments[1]):u}function Ch(u,f){var y=u.__data__;return m8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function zg(u){for(var f=pr(u),y=f.length;y--;){var A=f[y],B=u[A];f[y]=[A,B,pw(B)]}return f}function uu(u,f){var y=$g(u,f);return Fx(y)?y:n}function u8(u){var f=Ne.call(u,Nn),y=u[Nn];try{u[Nn]=n;var A=!0}catch{}var B=Ve.call(u);return A&&(f?u[Nn]=y:delete u[Nn]),B}var qg=ki?function(u){return u==null?[]:(u=L(u),Sr(ki(u),function(f){return $n.call(u,f)}))}:lv,fw=ki?function(u){for(var f=[];u;)ls(f,qg(u)),u=At(u);return f}:lv,Tr=Vr;(ps&&Tr(new ps(new ArrayBuffer(1)))!=xt||zs&&Tr(new zs)!=ht||uo&&Tr(uo.resolve())!=Zr||$l&&Tr(new $l)!=Se||rf&&Tr(new rf)!=Qe)&&(Tr=function(u){var f=Vr(u),y=f==_t?u.constructor:n,A=y?lu(y):"";if(A)switch(A){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 A=-1,B=y.length;++A<B;){var ie=y[A],ve=ie.size;switch(ie.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(il):[]}function dw(u,f,y){f=fo(f,u);for(var A=-1,B=f.length,ie=!1;++A<B;){var ve=Hs(f[A]);if(!(ie=u!=null&&y(u,ve)))break;u=u[ve]}return ie||++A!=B?ie:(B=u==null?0:u.length,!!B&&_h(B)&&ka(ve,B)&&(Mt(u)||cu(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 hw(u){return typeof u.constructor=="function"&&!hf(u)?wl(At(u)):{}}function d8(u,f,y){var A=u.constructor;switch(f){case Rt:return Vg(u);case Be:case Ge:return new A(+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 Yx(u,y);case ht:return new A;case Gt:case _e:return new A(u);case be:return ZL(u);case Se:return new A;case Je:return XL(u)}}function h8(u,f){var y=f.length;if(!y)return u;var A=y-1;return f[A]=(y>1?"& ":"")+f[A],f=f.join(y>2?", ":" "),u.replace(rl,`{
|
|
68
|
+
/* [wrapped with `+f+`] */
|
|
69
|
+
`)}function p8(u){return Mt(u)||cu(u)||!!(hr&&u&&u[hr])}function ka(u,f){var y=typeof u;return f=f??V,!!f&&(y=="number"||y!="symbol"&&ks.test(u))&&u>-1&&u%1==0&&u<f}function Br(u,f,y){if(!_n(y))return!1;var A=typeof f;return(A=="number"?ni(y)&&ka(f,y.length):A=="string"&&f in y)?gs(y[f],u):!1}function Wg(u,f){if(Mt(u))return!1;var y=typeof u;return y=="number"||y=="symbol"||y=="boolean"||u==null||wi(u)?!0:nl.test(u)||!jo.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 Hg(u){var f=wh(u),y=Z[f];if(typeof y!="function"||!(f in Ut.prototype))return!1;if(u===y)return!0;var A=Ug(y);return!!A&&u===A[0]}function g8(u){return!!ct&&ct in u}var v8=nt?Oa:cv;function hf(u){var f=u&&u.constructor,y=typeof f=="function"&&f.prototype||Ie;return u===y}function pw(u){return u===u&&!_n(u)}function mw(u,f){return function(y){return y==null?!1:y[u]===f&&(f!==n||u in L(y))}}function y8(u){var f=Th(u,function(A){return y.size===d&&y.clear(),A}),y=f.cache;return f}function b8(u,f){var y=u[1],A=f[1],B=y|A,ie=B<(D|C|N),ve=A==N&&y==S||A==N&&y==te&&u[7].length<=f[8]||A==(N|te)&&f[7].length<=f[8]&&y==S;if(!(ie||ve))return u;A&D&&(u[2]=f[2],B|=y&D?0:E);var Ee=f[3];if(Ee){var Te=u[3];u[3]=Te?Xx(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?Jx(Te,Ee,f[6]):Ee,u[6]=Te?Qr(u[5],h):f[6]),Ee=f[7],Ee&&(u[7]=Ee),A&N&&(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 gw(u,f,y){return f=Zt(f===n?u.length-1:f,0),function(){for(var A=arguments,B=-1,ie=Zt(A.length-f,0),ve=G(ie);++B<ie;)ve[B]=A[f+B];B=-1;for(var Ee=G(f+1);++B<f;)Ee[B]=A[B];return Ee[f]=y(ve),Vn(u,this,Ee)}}function vw(u,f){return f.length<2?u:ou(u,Li(f,0,-1))}function w8(u,f){for(var y=u.length,A=xn(f.length,y),B=ti(u);A--;){var ie=f[A];u[A]=ka(ie,y)?B[ie]:n}return u}function Gg(u,f){if(!(f==="constructor"&&typeof u[f]=="function")&&f!="__proto__")return u[f]}var yw=$w(jx),pf=ft||function(u,f){return Dn.setTimeout(u,f)},Yg=$w(qL);function bw(u,f,y){var A=f+"";return Yg(u,h8(A,C8(c8(A),y)))}function $w(u){var f=0,y=0;return function(){var A=Us(),B=Ce-(A-y);if(y=A,B>0){if(++f>=xe)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Eh(u,f){var y=-1,A=u.length,B=A-1;for(f=f===n?A:f;++y<f;){var ie=Mg(y,B),ve=u[ie];u[ie]=u[y],u[y]=ve}return u.length=f,u}var xw=y8(function(u){var f=[];return u.charCodeAt(0)===46&&f.push(""),u.replace(is,function(y,A,B,ie){f.push(B?ie.replace(Jr,"$1"):A||y)}),f});function Hs(u){if(typeof u=="string"||wi(u))return u;var f=u+"";return f=="0"&&1/u==-O?"-0":f}function lu(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 A="_."+y[0];f&y[1]&&!Bs(u,A)&&u.push(A)}),u.sort()}function ww(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 A=u==null?0:u.length;if(!A||f<1)return[];for(var B=0,ie=0,ve=G(fn(A/f));B<A;)ve[ie++]=Li(u,B,B+=f);return ve}function S8(u){for(var f=-1,y=u==null?0:u.length,A=0,B=[];++f<y;){var ie=u[f];ie&&(B[A++]=ie)}return B}function D8(){var u=arguments.length;if(!u)return[];for(var f=G(u-1),y=arguments[0],A=u;A--;)f[A-1]=arguments[A];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 A=u==null?0:u.length;return A?(f=y||f===n?1:kt(f),Li(u,f<0?0:f,A)):[]}function M8(u,f,y){var A=u==null?0:u.length;return A?(f=y||f===n?1:kt(f),f=A-f,Li(u,0,f<0?0:f)):[]}function F8(u,f){return u&&u.length?gh(u,wt(f,3),!0,!0):[]}function R8(u,f){return u&&u.length?gh(u,wt(f,3),!0):[]}function k8(u,f,y,A){var B=u==null?0:u.length;return B?(y&&typeof y!="number"&&Br(u,f,y)&&(y=0,A=B),DL(u,f,y,A)):[]}function Cw(u,f,y){var A=u==null?0:u.length;if(!A)return-1;var B=y==null?0:kt(y);return B<0&&(B=Zt(A+B,0)),tu(u,wt(f,3),B)}function Ew(u,f,y){var A=u==null?0:u.length;if(!A)return-1;var B=A-1;return y!==n&&(B=kt(y),B=y<0?Zt(A+B,0):xn(B,A-1)),tu(u,wt(f,3),B,!0)}function Sw(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,A={};++f<y;){var B=u[f];A[B[0]]=B[1]}return A}function Dw(u){return u&&u.length?u[0]:n}function V8(u,f,y){var A=u==null?0:u.length;if(!A)return-1;var B=y==null?0:kt(y);return B<0&&(B=Zt(A+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,Ig);return f.length&&f[0]===u[0]?Dg(f):[]}),j8=Bt(function(u){var f=Vi(u),y=cn(u,Ig);return f===Vi(y)?f=n:y.pop(),y.length&&y[0]===u[0]?Dg(y,wt(f,2)):[]}),K8=Bt(function(u){var f=Vi(u),y=cn(u,Ig);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===u[0]?Dg(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 A=u==null?0:u.length;if(!A)return-1;var B=A;return y!==n&&(B=kt(y),B=B<0?Zt(A+B,0):xn(B,A-1)),f===f?v(u,f,B):tu(u,Qc,B,!0)}function q8(u,f){return u&&u.length?Lx(u,kt(f)):n}var W8=Bt(Aw);function Aw(u,f){return u&&u.length&&f&&f.length?_g(u,f):u}function H8(u,f,y){return u&&u.length&&f&&f.length?_g(u,f,wt(y,2)):u}function G8(u,f,y){return u&&u.length&&f&&f.length?_g(u,f,n,y):u}var Y8=Ra(function(u,f){var y=u==null?0:u.length,A=wg(u,f);return Nx(u,cn(f,function(B){return ka(B,y)?+B:B}).sort(Zx)),A});function Z8(u,f){var y=[];if(!(u&&u.length))return y;var A=-1,B=[],ie=u.length;for(f=wt(f,3);++A<ie;){var ve=u[A];f(ve,A,u)&&(y.push(ve),B.push(A))}return Nx(u,B),y}function Zg(u){return u==null?u:$i.call(u)}function X8(u,f,y){var A=u==null?0:u.length;return A?(y&&typeof y!="number"&&Br(u,f,y)?(f=0,y=A):(f=f==null?0:kt(f),y=y===n?A:kt(y)),Li(u,f,y)):[]}function J8(u,f){return mh(u,f)}function Q8(u,f,y){return Rg(u,f,wt(y,2))}function eV(u,f){var y=u==null?0:u.length;if(y){var A=mh(u,f);if(A<y&&gs(u[A],f))return A}return-1}function tV(u,f){return mh(u,f,!0)}function nV(u,f,y){return Rg(u,f,wt(y,2),!0)}function rV(u,f){var y=u==null?0:u.length;if(y){var A=mh(u,f,!0)-1;if(gs(u[A],f))return A}return-1}function iV(u){return u&&u.length?Kx(u):[]}function sV(u,f){return u&&u.length?Kx(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 A=u==null?0:u.length;return A?(f=y||f===n?1:kt(f),f=A-f,Li(u,f<0?0:f,A)):[]}function lV(u,f){return u&&u.length?gh(u,wt(f,3),!1,!0):[]}function cV(u,f){return u&&u.length?gh(u,wt(f,3)):[]}var fV=Bt(function(u){return co($r(u,1,qn,!0))}),dV=Bt(function(u){var f=Vi(u);return qn(f)&&(f=n),co($r(u,1,qn,!0),wt(f,2))}),hV=Bt(function(u){var f=Vi(u);return f=typeof f=="function"?f:n,co($r(u,1,qn,!0),n,f)});function pV(u){return u&&u.length?co(u):[]}function mV(u,f){return u&&u.length?co(u,wt(f,2)):[]}function gV(u,f){return f=typeof f=="function"?f:n,u&&u.length?co(u,n,f):[]}function Xg(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}),yl(f,function(y){return cn(u,gl(y))})}function Tw(u,f){if(!(u&&u.length))return[];var y=Xg(u);return f==null?y:cn(y,function(A){return Vn(f,n,A)})}var vV=Bt(function(u,f){return qn(u)?uf(u,f):[]}),yV=Bt(function(u){return Og(Sr(u,qn))}),bV=Bt(function(u){var f=Vi(u);return qn(f)&&(f=n),Og(Sr(u,qn),wt(f,2))}),$V=Bt(function(u){var f=Vi(u);return f=typeof f=="function"?f:n,Og(Sr(u,qn),n,f)}),xV=Bt(Xg);function wV(u,f){return Wx(u||[],f||[],of)}function CV(u,f){return Wx(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,Tw(u,y)});function Pw(u){var f=Z(u);return f.__chain__=!0,f}function SV(u,f){return f(u),u}function Sh(u,f){return f(u)}var DV=Ra(function(u){var f=u.length,y=f?u[0]:0,A=this.__wrapped__,B=function(ie){return wg(ie,u)};return f>1||this.__actions__.length||!(A instanceof Ut)||!ka(y)?this.thru(B):(A=A.slice(y,+y+(f?1:0)),A.__actions__.push({func:Sh,args:[B],thisArg:n}),new Oi(A,this.__chain__).thru(function(ie){return f&&!ie.length&&ie.push(n),ie}))});function AV(){return Pw(this)}function TV(){return new Oi(this.value(),this.__chain__)}function PV(){this.__values__===n&&(this.__values__=Uw(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 ch;){var A=ww(y);A.__index__=0,A.__values__=n,f?B.__wrapped__=A:f=A;var B=A;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:Sh,args:[Zg],thisArg:n}),new Oi(f,this.__chain__)}return this.thru(Zg)}function RV(){return qx(this.__wrapped__,this.__actions__)}var kV=vh(function(u,f,y){Ne.call(u,y)?++u[y]:Ma(u,y,1)});function OV(u,f,y){var A=Mt(u)?Da:SL;return y&&Br(u,f,y)&&(f=n),A(u,wt(f,3))}function IV(u,f){var y=Mt(u)?Sr:Tx;return y(u,wt(f,3))}var LV=nw(Cw),VV=nw(Ew);function BV(u,f){return $r(Dh(u,f),1)}function NV(u,f){return $r(Dh(u,f),O)}function jV(u,f,y){return y=y===n?1:kt(y),$r(Dh(u,f),y)}function _w(u,f){var y=Mt(u)?hn:lo;return y(u,wt(f,3))}function Mw(u,f){var y=Mt(u)?fr:Ax;return y(u,wt(f,3))}var KV=vh(function(u,f,y){Ne.call(u,y)?u[y].push(f):Ma(u,y,[f])});function UV(u,f,y,A){u=ni(u)?u:Al(u),y=y&&!A?kt(y):0;var B=u.length;return y<0&&(y=Zt(B+y,0)),Mh(u)?y<=B&&u.indexOf(f,y)>-1:!!B&&Aa(u,f,y)>-1}var zV=Bt(function(u,f,y){var A=-1,B=typeof f=="function",ie=ni(u)?G(u.length):[];return lo(u,function(ve){ie[++A]=B?Vn(f,ve,y):lf(ve,f,y)}),ie}),qV=vh(function(u,f,y){Ma(u,y,f)});function Dh(u,f){var y=Mt(u)?cn:kx;return y(u,wt(f,3))}function WV(u,f,y,A){return u==null?[]:(Mt(f)||(f=f==null?[]:[f]),y=A?n:y,Mt(y)||(y=y==null?[]:[y]),Vx(u,f,y))}var HV=vh(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function GV(u,f,y){var A=Mt(u)?ml:ef,B=arguments.length<3;return A(u,wt(f,4),y,B,lo)}function YV(u,f,y){var A=Mt(u)?Jo:ef,B=arguments.length<3;return A(u,wt(f,4),y,B,Ax)}function ZV(u,f){var y=Mt(u)?Sr:Tx;return y(u,Ph(wt(f,3)))}function XV(u){var f=Mt(u)?Cx:UL;return f(u)}function JV(u,f,y){(y?Br(u,f,y):f===n)?f=1:f=kt(f);var A=Mt(u)?$L:zL;return A(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 Mh(u)?$(u):u.length;var f=Tr(u);return f==ht||f==Se?u.size:Tg(u).length}function tB(u,f,y){var A=Mt(u)?Ns:HL;return y&&Br(u,f,y)&&(f=n),A(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]]),Vx(u,$r(f,1),[])}),Ah=br||function(){return Dn.Date.now()};function rB(u,f){if(typeof f!="function")throw new re(a);return u=kt(u),function(){if(--u<1)return f.apply(this,arguments)}}function Fw(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Fa(u,N,n,n,n,n,f)}function Rw(u,f){var y;if(typeof f!="function")throw new re(a);return u=kt(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var Jg=Bt(function(u,f,y){var A=D;if(y.length){var B=Qr(y,Sl(Jg));A|=M}return Fa(u,A,f,y,B)}),kw=Bt(function(u,f,y){var A=D|C;if(y.length){var B=Qr(y,Sl(kw));A|=M}return Fa(f,A,u,y,B)});function Ow(u,f,y){f=y?n:f;var A=Fa(u,S,n,n,n,n,n,f);return A.placeholder=Ow.placeholder,A}function Iw(u,f,y){f=y?n:f;var A=Fa(u,k,n,n,n,n,n,f);return A.placeholder=Iw.placeholder,A}function Lw(u,f,y){var A,B,ie,ve,Ee,Te,Ue=0,qe=!1,Ze=!1,at=!0;if(typeof u!="function")throw new re(a);f=Bi(f)||0,_n(y)&&(qe=!!y.leading,Ze="maxWait"in y,ie=Ze?Zt(Bi(y.maxWait)||0,f):ie,at="trailing"in y?!!y.trailing:at);function vt(Wn){var vs=A,La=B;return A=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,nC=f-vs;return Ze?xn(nC,ie-La):nC}function St(Wn){var vs=Wn-Te,La=Wn-Ue;return Te===n||vs>=f||vs<0||Ze&&La>=ie}function Nt(){var Wn=Ah();if(St(Wn))return Ht(Wn);Ee=pf(Nt,Lt(Wn))}function Ht(Wn){return Ee=n,at&&A?vt(Wn):(A=B=n,ve)}function Ci(){Ee!==n&&Hx(Ee),Ue=0,A=Te=B=Ee=n}function Nr(){return Ee===n?ve:Ht(Ah())}function Ei(){var Wn=Ah(),vs=St(Wn);if(A=arguments,B=this,Te=Wn,vs){if(Ee===n)return Et(Te);if(Ze)return Hx(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 Dx(u,1,f)}),sB=Bt(function(u,f,y){return Dx(u,Bi(f)||0,y)});function aB(u){return Fa(u,ce)}function Th(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new re(a);var y=function(){var A=arguments,B=f?f.apply(this,A):A[0],ie=y.cache;if(ie.has(B))return ie.get(B);var ve=u.apply(this,A);return y.cache=ie.set(B,ve)||ie,ve};return y.cache=new(Th.Cache||_a),y}Th.Cache=_a;function Ph(u){if(typeof u!="function")throw new re(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 Rw(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(A){for(var B=-1,ie=xn(A.length,y);++B<ie;)A[B]=f[B].call(this,A[B]);return Vn(u,this,A)})}),Qg=Bt(function(u,f){var y=Qr(f,Sl(Qg));return Fa(u,M,n,f,y)}),Vw=Bt(function(u,f){var y=Qr(f,Sl(Vw));return Fa(u,F,n,f,y)}),lB=Ra(function(u,f){return Fa(u,te,n,n,n,f)});function cB(u,f){if(typeof u!="function")throw new re(a);return f=f===n?f:kt(f),Bt(u,f)}function fB(u,f){if(typeof u!="function")throw new re(a);return f=f==null?0:Zt(kt(f),0),Bt(function(y){var A=y[f],B=ho(y,0,f);return A&&ls(B,A),Vn(u,this,B)})}function dB(u,f,y){var A=!0,B=!0;if(typeof u!="function")throw new re(a);return _n(y)&&(A="leading"in y?!!y.leading:A,B="trailing"in y?!!y.trailing:B),Lw(u,f,{leading:A,maxWait:f,trailing:B})}function hB(u){return Fw(u,1)}function pB(u,f){return Qg(Lg(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||Sx(u,f,pr(f))}function gs(u,f){return u===f||u!==u&&f!==f}var xB=xh(Sg),wB=xh(function(u,f){return u>=f}),cu=Mx(function(){return arguments}())?Mx: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&&_h(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 po=cs||cv,SB=ih?Dr(ih):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"||po(u)||Dl(u)||cu(u)))return!u.length;var f=Tr(u);if(f==ht||f==Se)return!u.size;if(hf(u))return!Tg(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 A=y?y(u,f):n;return A===n?cf(u,f,n,y):!!A}function ev(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(!_n(u))return!1;var f=Vr(u);return f==Ae||f==Ye||f==Xe||f==en}function Bw(u){return typeof u=="number"&&u==kt(u)}function _h(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=V}function _n(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function jn(u){return u!=null&&typeof u=="object"}var Nw=sh?Dr(sh):kL;function MB(u,f){return u===f||Ag(u,f,zg(f))}function FB(u,f,y){return y=typeof y=="function"?y:n,Ag(u,f,zg(f),y)}function RB(u){return jw(u)&&u!=+u}function kB(u){if(v8(u))throw new de(s);return Fx(u)}function OB(u){return u===null}function IB(u){return u==null}function jw(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 tv=Xc?Dr(Xc):OL;function LB(u){return Bw(u)&&u>=-V&&u<=V}var Kw=ao?Dr(ao):IL;function Mh(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 Dl=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=xh(Pg),KB=xh(function(u,f){return u<=f});function Uw(u){if(!u)return[];if(ni(u))return Mh(u)?P(u):ti(u);if(Jn&&u[Jn])return Ks(u[Jn]());var f=Tr(u),y=f==ht?Bn:f==Se?oo:Al;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*ne}return u===u?u:0}function kt(u){var f=Ia(u),y=f%1;return f===f?y?f-y:f:0}function zw(u){return u?au(kt(u),0,le):0}function Bi(u){if(typeof u=="number")return u;if(wi(u))return K;if(_n(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=_n(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=oh(u);var y=pi.test(u);return y||Ko.test(u)?sr(u.slice(2),y?2:8):as.test(u)?K:+u}function qw(u){return Ws(u,ri(u))}function UB(u){return u?au(kt(u),-V,V):u===0?u:0}function on(u){return u==null?"":xi(u)}var zB=Cl(function(u,f){if(hf(f)||ni(f)){Ws(f,pr(f),u);return}for(var y in f)Ne.call(f,y)&&of(u,y,f[y])}),Ww=Cl(function(u,f){Ws(f,ri(f),u)}),Fh=Cl(function(u,f,y,A){Ws(f,ri(f),u,A)}),qB=Cl(function(u,f,y,A){Ws(f,pr(f),u,A)}),WB=Ra(wg);function HB(u,f){var y=wl(u);return f==null?y:Ex(y,f)}var GB=Bt(function(u,f){u=L(u);var y=-1,A=f.length,B=A>2?f[2]:n;for(B&&Br(f[0],f[1],B)&&(A=1);++y<A;)for(var ie=f[y],ve=ri(ie),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]=ie[Ue])}return u}),YB=Bt(function(u){return u.push(n,lw),Vn(Hw,n,u)});function ZB(u,f){return Jc(u,wt(f,3),qs)}function XB(u,f){return Jc(u,wt(f,3),Eg)}function JB(u,f){return u==null?u:Cg(u,wt(f,3),ri)}function QB(u,f){return u==null?u:Px(u,wt(f,3),ri)}function eN(u,f){return u&&qs(u,wt(f,3))}function tN(u,f){return u&&Eg(u,wt(f,3))}function nN(u){return u==null?[]:hh(u,pr(u))}function rN(u){return u==null?[]:hh(u,ri(u))}function nv(u,f,y){var A=u==null?n:ou(u,f);return A===n?y:A}function iN(u,f){return u!=null&&dw(u,f,AL)}function rv(u,f){return u!=null&&dw(u,f,TL)}var sN=iw(function(u,f,y){f!=null&&typeof f.toString!="function"&&(f=Ve.call(f)),u[f]=y},sv(ii)),aN=iw(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 pr(u){return ni(u)?wx(u):Tg(u)}function ri(u){return ni(u)?wx(u,!0):VL(u)}function uN(u,f){var y={};return f=wt(f,3),qs(u,function(A,B,ie){Ma(y,f(A,B,ie),A)}),y}function lN(u,f){var y={};return f=wt(f,3),qs(u,function(A,B,ie){Ma(y,B,f(A,B,ie))}),y}var cN=Cl(function(u,f,y){ph(u,f,y)}),Hw=Cl(function(u,f,y,A){ph(u,f,y,A)}),fN=Ra(function(u,f){var y={};if(u==null)return y;var A=!1;f=cn(f,function(ie){return ie=fo(ie,u),A||(A=ie.length>1),ie}),Ws(u,Kg(u),y),A&&(y=Ii(y,m|g|b,s8));for(var B=f.length;B--;)kg(y,f[B]);return y});function dN(u,f){return Gw(u,Ph(wt(f)))}var hN=Ra(function(u,f){return u==null?{}:NL(u,f)});function Gw(u,f){if(u==null)return{};var y=cn(Kg(u),function(A){return[A]});return f=wt(f),Bx(u,y,function(A,B){return f(A,B[0])})}function pN(u,f,y){f=fo(f,u);var A=-1,B=f.length;for(B||(B=1,u=n);++A<B;){var ie=u==null?n:u[Hs(f[A])];ie===n&&(A=B,ie=y),u=Oa(ie)?ie.call(u):ie}return u}function mN(u,f,y){return u==null?u:ff(u,f,y)}function gN(u,f,y,A){return A=typeof A=="function"?A:n,u==null?u:ff(u,f,y,A)}var Yw=ow(pr),Zw=ow(ri);function vN(u,f,y){var A=Mt(u),B=A||po(u)||Dl(u);if(f=wt(f,4),y==null){var ie=u&&u.constructor;B?y=A?new ie:[]:_n(u)?y=Oa(ie)?wl(At(u)):{}:y={}}return(B?hn:qs)(u,function(ve,Ee,Te){return f(y,ve,Ee,Te)}),y}function yN(u,f){return u==null?!0:kg(u,f)}function bN(u,f,y){return u==null?u:zx(u,f,Lg(y))}function $N(u,f,y,A){return A=typeof A=="function"?A:n,u==null?u:zx(u,f,Lg(y),A)}function Al(u){return u==null?[]:tf(u,pr(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),au(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 A=u;u=f,f=A}if(y||u%1||f%1){var B=hs();return xn(u+B*(f-u+bn("1e-"+((B+"").length-1))),f)}return Mg(u,f)}var SN=El(function(u,f,y){return f=f.toLowerCase(),u+(y?Xw(f):f)});function Xw(u){return iv(on(u).toLowerCase())}function Jw(u){return u=on(u),u&&u.replace(mi,bg).replace(wa,"")}function DN(u,f,y){u=on(u),f=xi(f);var A=u.length;y=y===n?A:au(kt(y),0,A);var B=y;return y-=f.length,y>=0&&u.slice(y,B)==f}function AN(u){return u=on(u),u&&jc.test(u)?u.replace(hi,Ta):u}function TN(u){return u=on(u),u&&yt.test(u)?u.replace(ss,"\\$&"):u}var PN=El(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),_N=El(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),MN=tw("toLowerCase");function FN(u,f,y){u=on(u),f=kt(f);var A=f?$(u):0;if(!f||A>=f)return u;var B=(f-A)/2;return $h(ei(B),y)+u+$h(fn(B),y)}function RN(u,f,y){u=on(u),f=kt(f);var A=f?$(u):0;return f&&A<f?u+$h(f-A,y):u}function kN(u,f,y){u=on(u),f=kt(f);var A=f?$(u):0;return f&&A<f?$h(f-A,y)+u:u}function ON(u,f,y){return y||f==null?f=0:f&&(f=+f),bi(on(u).replace(Sn,""),f||0)}function IN(u,f,y){return(y?Br(u,f,y):f===n)?f=1:f=kt(f),Fg(on(u),f)}function LN(){var u=arguments,f=on(u[0]);return u.length<3?f:f.replace(u[1],u[2])}var VN=El(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=on(u),u&&(typeof f=="string"||f!=null&&!tv(f))&&(f=xi(f),!f&&Ar(u))?ho(P(u),0,y):u.split(f,y)):[]}var NN=El(function(u,f,y){return u+(y?" ":"")+iv(f)});function jN(u,f,y){return u=on(u),y=y==null?0:au(kt(y),0,u.length),f=xi(f),u.slice(y,y+f.length)==f}function KN(u,f,y){var A=Z.templateSettings;y&&Br(u,f,y)&&(f=n),u=on(u),f=Fh({},f,A,uw);var B=Fh({},f.imports,A.imports,uw),ie=pr(B),ve=tf(B,ie),Ee,Te,Ue=0,qe=f.interpolate||Ln,Ze="__p += '",at=j((f.escape||Ln).source+"|"+qe.source+"|"+(qe===tl?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(no,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 de(o);Ze=(Te?Ze.replace(kr,""):Ze).replace(Rs,"$1").replace(No,"$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=eC(function(){return W(ie,vt+"return "+Ze).apply(n,ve)});if(Lt.source=Ze,ev(Lt))throw Lt;return Lt}function UN(u){return on(u).toLowerCase()}function zN(u){return on(u).toUpperCase()}function qN(u,f,y){if(u=on(u),u&&(y||f===n))return oh(u);if(!u||!(f=xi(f)))return u;var A=P(u),B=P(f),ie=bl(A,B),ve=dr(A,B)+1;return ho(A,ie,ve).join("")}function WN(u,f,y){if(u=on(u),u&&(y||f===n))return u.slice(0,_(u)+1);if(!u||!(f=xi(f)))return u;var A=P(u),B=dr(A,P(f))+1;return ho(A,0,B).join("")}function HN(u,f,y){if(u=on(u),u&&(y||f===n))return u.replace(Sn,"");if(!u||!(f=xi(f)))return u;var A=P(u),B=bl(A,P(f));return ho(A,B).join("")}function GN(u,f){var y=ae,A=I;if(_n(f)){var B="separator"in f?f.separator:B;y="length"in f?kt(f.length):y,A="omission"in f?xi(f.omission):A}u=on(u);var ie=u.length;if(Ar(u)){var ve=P(u);ie=ve.length}if(y>=ie)return u;var Ee=y-$(A);if(Ee<1)return A;var Te=ve?ho(ve,0,Ee).join(""):u.slice(0,Ee);if(B===n)return Te+A;if(ve&&(Ee+=Te.length-Ee),tv(B)){if(u.slice(Ee).search(B)){var Ue,qe=Te;for(B.global||(B=j(B.source,on(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+A}function YN(u){return u=on(u),u&&pa.test(u)?u.replace(bt,q):u}var ZN=El(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),iv=tw("toUpperCase");function Qw(u,f,y){return u=on(u),f=y?n:f,f===n?nf(u)?ye(u):gg(u):u.match(f)||[]}var eC=Bt(function(u,f){try{return Vn(u,n,f)}catch(y){return ev(y)?y:new de(y)}}),XN=Ra(function(u,f){return hn(f,function(y){y=Hs(y),Ma(u,y,Jg(u[y],u))}),u});function JN(u){var f=u==null?0:u.length,y=wt();return u=f?cn(u,function(A){if(typeof A[1]!="function")throw new re(a);return[y(A[0]),A[1]]}):[],Bt(function(A){for(var B=-1;++B<f;){var ie=u[B];if(Vn(ie[0],this,A))return Vn(ie[1],this,A)}})}function QN(u){return EL(Ii(u,m))}function sv(u){return function(){return u}}function ej(u,f){return u==null||u!==u?f:u}var tj=rw(),nj=rw(!0);function ii(u){return u}function av(u){return Rx(typeof u=="function"?u:Ii(u,m))}function rj(u){return Ox(Ii(u,m))}function ij(u,f){return Ix(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 ov(u,f,y){var A=pr(f),B=hh(f,A);y==null&&!(_n(f)&&(B.length||!A.length))&&(y=f,f=u,u=this,B=hh(f,pr(f)));var ie=!(_n(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(ie||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 Dn._===this&&(Dn._=fe),this}function uv(){}function uj(u){return u=kt(u),Bt(function(f){return Lx(f,u)})}var lj=Bg(cn),cj=Bg(Da),fj=Bg(Ns);function tC(u){return Wg(u)?gl(Hs(u)):jL(u)}function dj(u){return function(f){return u==null?n:ou(u,f)}}var hj=sw(),pj=sw(!0);function lv(){return[]}function cv(){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,A=xn(u,le);f=wt(f),u-=le;for(var B=yl(A,f);++y<u;)f(y);return B}function bj(u){return Mt(u)?cn(u,Hs):wi(u)?[u]:ti(xw(on(u)))}function $j(u){var f=++ot;return on(u)+f}var xj=bh(function(u,f){return u+f},0),wj=Ng("ceil"),Cj=bh(function(u,f){return u/f},1),Ej=Ng("floor");function Sj(u){return u&&u.length?dh(u,ii,Sg):n}function Dj(u,f){return u&&u.length?dh(u,wt(f,2),Sg):n}function Aj(u){return nu(u,ii)}function Tj(u,f){return nu(u,wt(f,2))}function Pj(u){return u&&u.length?dh(u,ii,Pg):n}function _j(u,f){return u&&u.length?dh(u,wt(f,2),Pg):n}var Mj=bh(function(u,f){return u*f},1),Fj=Ng("round"),Rj=bh(function(u,f){return u-f},0);function kj(u){return u&&u.length?js(u,ii):0}function Oj(u,f){return u&&u.length?js(u,wt(f,2)):0}return Z.after=rB,Z.ary=Fw,Z.assign=zB,Z.assignIn=Ww,Z.assignInWith=Fh,Z.assignWith=qB,Z.at=WB,Z.before=Rw,Z.bind=Jg,Z.bindAll=XN,Z.bindKey=kw,Z.castArray=mB,Z.chain=Pw,Z.chunk=E8,Z.compact=S8,Z.concat=D8,Z.cond=JN,Z.conforms=QN,Z.constant=sv,Z.countBy=kV,Z.create=HB,Z.curry=Ow,Z.curryRight=Iw,Z.debounce=Lw,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=Sw,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=av,Z.keyBy=qV,Z.keys=pr,Z.keysIn=ri,Z.map=Dh,Z.mapKeys=uN,Z.mapValues=lN,Z.matches=rj,Z.matchesProperty=ij,Z.memoize=Th,Z.merge=cN,Z.mergeWith=Hw,Z.method=sj,Z.methodOf=aj,Z.mixin=ov,Z.negate=Ph,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=Qg,Z.partialRight=Vw,Z.partition=HV,Z.pick=hN,Z.pickBy=Gw,Z.property=tC,Z.propertyOf=dj,Z.pull=W8,Z.pullAll=Aw,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=Zg,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=Sh,Z.toArray=Uw,Z.toPairs=Yw,Z.toPairsIn=Zw,Z.toPath=bj,Z.toPlainObject=qw,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=Xg,Z.unzipWith=Tw,Z.update=bN,Z.updateWith=$N,Z.values=Al,Z.valuesIn=xN,Z.without=vV,Z.words=Qw,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=Yw,Z.entriesIn=Zw,Z.extend=Ww,Z.extendWith=Fh,ov(Z,Z),Z.add=xj,Z.attempt=eC,Z.camelCase=SN,Z.capitalize=Xw,Z.ceil=wj,Z.clamp=wN,Z.clone=gB,Z.cloneDeep=yB,Z.cloneDeepWith=bB,Z.cloneWith=vB,Z.conformsTo=$B,Z.deburr=Jw,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=Cw,Z.findKey=ZB,Z.findLast=VV,Z.findLastIndex=Ew,Z.findLastKey=XB,Z.floor=Ej,Z.forEach=_w,Z.forEachRight=Mw,Z.forIn=JB,Z.forInRight=QB,Z.forOwn=eN,Z.forOwnRight=tN,Z.get=nv,Z.gt=xB,Z.gte=wB,Z.has=iN,Z.hasIn=rv,Z.head=Dw,Z.identity=ii,Z.includes=UV,Z.indexOf=V8,Z.inRange=CN,Z.invoke=oN,Z.isArguments=cu,Z.isArray=Mt,Z.isArrayBuffer=CB,Z.isArrayLike=ni,Z.isArrayLikeObject=qn,Z.isBoolean=EB,Z.isBuffer=po,Z.isDate=SB,Z.isElement=DB,Z.isEmpty=AB,Z.isEqual=TB,Z.isEqualWith=PB,Z.isError=ev,Z.isFinite=_B,Z.isFunction=Oa,Z.isInteger=Bw,Z.isLength=_h,Z.isMap=Nw,Z.isMatch=MB,Z.isMatchWith=FB,Z.isNaN=RB,Z.isNative=kB,Z.isNil=IB,Z.isNull=OB,Z.isNumber=jw,Z.isObject=_n,Z.isObjectLike=jn,Z.isPlainObject=mf,Z.isRegExp=tv,Z.isSafeInteger=LB,Z.isSet=Kw,Z.isString=Mh,Z.isSymbol=wi,Z.isTypedArray=Dl,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=lv,Z.stubFalse=cv,Z.stubObject=mj,Z.stubString=gj,Z.stubTrue=vj,Z.multiply=Mj,Z.nth=q8,Z.noConflict=oj,Z.noop=uv,Z.now=Ah,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=zw,Z.toLower=UN,Z.toNumber=Bi,Z.toSafeInteger=UB,Z.toString=on,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=iv,Z.each=_w,Z.eachRight=Mw,Z.first=Dw,ov(Z,function(){var u={};return qs(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 A=this.__filtered__&&!f?new Ut(this):this.clone();return A.__filtered__?A.__takeCount__=xn(y,A.__takeCount__):A.__views__.push({size:xn(y,le),type:u+(A.__dir__<0?"Right":"")}),A},Ut.prototype[u+"Right"]=function(y){return this.reverse()[u](y).reverse()}}),hn(["filter","map","takeWhile"],function(u,f){var y=f+1,A=y==z||y==U;Ut.prototype[u]=function(B){var ie=this.clone();return ie.__iteratees__.push({iteratee:wt(B,3),type:y}),ie.__filtered__=ie.__filtered__||A,ie}}),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(Ph(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)},qs(Ut.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),A=/^(?:head|last)$/.test(f),B=Z[A?"take"+(f=="last"?"Right":""):f],ie=A||/^find/.test(f);B&&(Z.prototype[f]=function(){var ve=this.__wrapped__,Ee=A?[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 A&&at?Ht[0]:Ht};qe&&y&&typeof Ue=="function"&&Ue.length!=1&&(Te=qe=!1);var at=this.__chain__,vt=!!this.__actions__.length,Et=ie&&!at,Lt=Te&&!vt;if(!ie&&qe){ve=Lt?ve:new Ut(this);var St=u.apply(ve,Ee);return St.__actions__.push({func:Sh,args:[Ze],thisArg:n}),new Oi(St,at)}return Et&&Lt?u.apply(this,Ee):(St=this.thru(Ze),Et?A?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",A=/^(?:pop|shift)$/.test(u);Z.prototype[u]=function(){var B=arguments;if(A&&!this.__chain__){var ie=this.value();return f.apply(Mt(ie)?ie:[],B)}return this[y](function(ve){return f.apply(Mt(ve)?ve:[],B)})}}),qs(Ut.prototype,function(u,f){var y=Z[f];if(y){var A=y.name+"";Ne.call(xl,A)||(xl[A]=[]),xl[A].push({name:f,func:y})}}),xl[yh(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,Jn&&(Z.prototype[Jn]=_V),Z},ke=we();Fi?((Fi.exports=ke)._=ke,Mi._=ke):Dn._=ke}).call(xz)}(kf,kf.exports)),kf.exports}var g5=wz();const Cz=fi(g5);var Ad=e=>e.type==="checkbox",$u=e=>e instanceof Date,Kr=e=>e==null;const v5=e=>typeof e=="object";var Yn=e=>!Kr(e)&&!Array.isArray(e)&&v5(e)&&!$u(e),y5=e=>Yn(e)&&e.target?Ad(e.target)?e.target.checked:e.target.value:e,Ez=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,b5=(e,t)=>e.has(Ez(t)),Sz=e=>{const t=e.constructor&&e.constructor.prototype;return Yn(t)&&t.hasOwnProperty("isPrototypeOf")},Q4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Q4&&(e instanceof Blob||r))&&(n||Yn(e)))if(t=n?[]:{},!n&&!Sz(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Mn(e[i]));else return e;return t}var Td=e=>Array.isArray(e)?e.filter(Boolean):[],Cn=e=>e===void 0,it=(e,t,n)=>{if(!t||!Yn(e))return n;const r=Td(t.split(/[,[\].]+?/)).reduce((i,s)=>Kr(i)?i:i[s],e);return Cn(r)||r===e?Cn(e[t])?n:e[t]:r},Di=e=>typeof e=="boolean",e3=e=>/^\w*$/.test(e),$5=e=>Td(e.replace(/["|']|\]/g,"").split(/\.|\[/)),tn=(e,t,n)=>{let r=-1;const i=e3(t)?[t]:$5(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=Yn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;e[o]=l,e=e[o]}};const Vp={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"},x5=T.createContext(null),Pd=()=>T.useContext(x5),Dz=e=>{const{children:t,...n}=e;return T.createElement(x5.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 t3=typeof window<"u"?We.useLayoutEffect:We.useEffect;function Az(e){const t=Pd(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[a,o]=T.useState(n._formState),l=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return t3(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:d=>{!r&&o({...n._formState,...d})}}),[i,r,s]),T.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),T.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);function E5(e){const t=Pd(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:a}=e||{},o=T.useRef(i),[l,d]=T.useState(n._getWatch(r,o.current));return t3(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:h=>!s&&d(C5(r,n._names,h.values||n._formValues,!1,o.current))}),[r,n,s,a]),T.useEffect(()=>n._removeUnmounted()),l}function S5(e){const t=Pd(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,a=b5(i._names.array,n),o=E5({control:i,name:n,defaultValue:it(i._formValues,n,it(i._defaultValues,n,e.defaultValue)),exact:!0}),l=Az({control:i,name:n,exact:!0}),d=T.useRef(e),h=T.useRef(i.register(n,{...e.rules,value:o,...Di(e.disabled)?{disabled:e.disabled}:{}})),m=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!it(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!it(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!it(l.validatingFields,n)},error:{enumerable:!0,get:()=>it(l.errors,n)}}),[l,n]),g=T.useCallback(D=>h.current.onChange({target:{value:y5(D),name:n},type:Vp.CHANGE}),[n]),b=T.useCallback(()=>h.current.onBlur({target:{value:it(i._formValues,n),name:n},type:Vp.BLUR}),[n,i._formValues]),w=T.useCallback(D=>{const C=it(i._fields,n);C&&D&&(C._f.ref={focus:()=>D.focus&&D.focus(),select:()=>D.select&&D.select(),setCustomValidity:E=>D.setCustomValidity(E),reportValidity:()=>D.reportValidity()})},[i._fields,n]),x=T.useMemo(()=>({name:n,value:o,...Di(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g,onBlur:b,ref:w}),[n,r,l.disabled,g,b,w,o]);return T.useEffect(()=>{const D=i._options.shouldUnregister||s;i.register(n,{...d.current.rules,...Di(d.current.disabled)?{disabled:d.current.disabled}:{}});const C=(E,S)=>{const k=it(i._fields,E);k&&k._f&&(k._f.mount=S)};if(C(n,!0),D){const E=Mn(it(i._options.defaultValues,n));tn(i._defaultValues,n,E),Cn(it(i._formValues,n))&&tn(i._formValues,n,E)}return!a&&i.register(n),()=>{(a?D&&!i._state.action:D)?i.unregister(n):C(n,!1)}},[n,i,a,s]),T.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),T.useMemo(()=>({field:x,formState:l,fieldState:m}),[x,l,m])}const Tz=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],RC=()=>{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=[]}}},hb=e=>Kr(e)||!v5(e);function wo(e,t){if(hb(e)||hb(t))return e===t;if($u(e)&&$u(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if($u(s)&&$u(a)||Yn(s)&&Yn(a)||Array.isArray(s)&&Array.isArray(a)?!wo(s,a):s!==a)return!1}}return!0}var jr=e=>Yn(e)&&!Object.keys(e).length,n3=e=>e.type==="file",ws=e=>typeof e=="function",Bp=e=>{if(!Q4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},A5=e=>e.type==="select-multiple",r3=e=>e.type==="radio",Pz=e=>r3(e)||Ad(e),xv=e=>Bp(e)&&e.isConnected;function _z(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Cn(e)?r++:e[t[r++]];return e}function Mz(e){for(const t in e)if(e.hasOwnProperty(t)&&!Cn(e[t]))return!1;return!0}function Qn(e,t){const n=Array.isArray(t)?t:e3(t)?[t]:$5(t),r=n.length===1?e:_z(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Yn(r)&&jr(r)||Array.isArray(r)&&Mz(r))&&Qn(e,n.slice(0,-1)),e}var T5=e=>{for(const t in e)if(ws(e[t]))return!0;return!1};function Np(e,t={}){const n=Array.isArray(e);if(Yn(e)||n)for(const r in e)Array.isArray(e[r])||Yn(e[r])&&!T5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Np(e[r],t[r])):Kr(e[r])||(t[r]=!0);return t}function P5(e,t,n){const r=Array.isArray(e);if(Yn(e)||r)for(const i in e)Array.isArray(e[i])||Yn(e[i])&&!T5(e[i])?Cn(t)||hb(n[i])?n[i]=Array.isArray(e[i])?Np(e[i],[]):{...Np(e[i])}:P5(e[i],Kr(t)?{}:t[i],n[i]):n[i]=!wo(e[i],t[i]);return n}var vf=(e,t)=>P5(e,t,Np(t));const kC={value:!1,isValid:!1},OC={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&&!Cn(e[0].attributes.value)?Cn(e[0].value)||e[0].value===""?OC:{value:e[0].value,isValid:!0}:OC:kC}return kC},M5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Cn(e)?e:t?e===""?NaN:e&&+e:n&&Js(e)?new Date(e):r?r(e):e;const IC={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,IC):IC;function LC(e){const t=e.ref;return n3(t)?t.files:r3(t)?F5(e.refs).value:A5(t)?[...t.selectedOptions].map(({value:n})=>n):Ad(t)?_5(e.refs).value:M5(Cn(t.value)?e.ref.value:t.value,e)}var Fz=(e,t,n,r)=>{const i={};for(const s of e){const a=it(t,s);a&&tn(i,s,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},jp=e=>e instanceof RegExp,yf=e=>Cn(e)?e:jp(e)?e.source:Yn(e)?jp(e.value)?e.value.source:e.value:e,Il=e=>({isOnSubmit:!e||e===Gi.onSubmit,isOnBlur:e===Gi.onBlur,isOnChange:e===Gi.onChange,isOnAll:e===Gi.all,isOnTouch:e===Gi.onTouched});const VC="AsyncFunction";var Rz=e=>!!e&&!!e.validate&&!!(ws(e.validate)&&e.validate.constructor.name===VC||Yn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===VC)),kz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),pb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Yl=(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(Yl(o,t))break}else if(Yn(o)&&Yl(o,t))break}}};function BC(e,t,n){const r=it(e,n);if(r||e3(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 Oz=(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))},Iz=(e,t,n)=>!e||!t||e===t||oi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Lz=(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,Vz=(e,t)=>!Td(it(e,t)).length&&Qn(e,t),R5=(e,t,n)=>{const r=oi(it(e,n));return tn(r,"root",t[n]),tn(e,n,r),e},fp=e=>Js(e);function NC(e,t,n="validate"){if(fp(e)||Array.isArray(e)&&e.every(fp)||Di(e)&&!e)return{type:n,message:fp(e)?e:"",ref:t}}var Pl=e=>Yn(e)&&!jp(e)?e:{value:e,message:""},mb=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:x,valueAsNumber:D,mount:C}=e._f,E=it(n,x);if(!C||t.has(x))return{};const S=o?o[0]:a,k=xe=>{i&&S.reportValidity&&(S.setCustomValidity(Di(xe)?"":xe||""),S.reportValidity())},M={},F=r3(a),N=Ad(a),te=F||N,ce=(D||n3(a))&&Cn(a.value)&&Cn(E)||Bp(a)&&a.value===""||E===""||Array.isArray(E)&&!E.length,ae=D5.bind(null,x,r,M),I=(xe,Ce,z,ee=Va.maxLength,U=Va.minLength)=>{const O=xe?Ce:z;M[x]={type:xe?ee:U,message:O,ref:a,...ae(xe?ee:U,O)}};if(s?!Array.isArray(E)||!E.length:l&&(!te&&(ce||Kr(E))||Di(E)&&!E||N&&!_5(o).isValid||F&&!F5(o).isValid)){const{value:xe,message:Ce}=fp(l)?{value:!!l,message:l}:Pl(l);if(xe&&(M[x]={type:Va.required,message:Ce,ref:S,...ae(Va.required,Ce)},!r))return k(Ce),M}if(!ce&&(!Kr(m)||!Kr(g))){let xe,Ce;const z=Pl(g),ee=Pl(m);if(!Kr(E)&&!isNaN(E)){const U=a.valueAsNumber||E&&+E;Kr(z.value)||(xe=U>z.value),Kr(ee.value)||(Ce=U<ee.value)}else{const U=a.valueAsDate||new Date(E),O=K=>new Date(new Date().toDateString()+" "+K),V=a.type=="time",ne=a.type=="week";Js(z.value)&&E&&(xe=V?O(E)>O(z.value):ne?E>z.value:U>new Date(z.value)),Js(ee.value)&&E&&(Ce=V?O(E)<O(ee.value):ne?E<ee.value:U<new Date(ee.value))}if((xe||Ce)&&(I(!!xe,z.message,ee.message,Va.max,Va.min),!r))return k(M[x].message),M}if((d||h)&&!ce&&(Js(E)||s&&Array.isArray(E))){const xe=Pl(d),Ce=Pl(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(M[x].message),M}if(b&&!ce&&Js(E)){const{value:xe,message:Ce}=Pl(b);if(jp(xe)&&!E.match(xe)&&(M[x]={type:Va.pattern,message:Ce,ref:a,...ae(Va.pattern,Ce)},!r))return k(Ce),M}if(w){if(ws(w)){const xe=await w(E,n),Ce=NC(xe,S);if(Ce&&(M[x]={...Ce,...ae(Va.validate,Ce.message)},!r))return k(Ce.message),M}else if(Yn(w)){let xe={};for(const Ce in w){if(!jr(xe)&&!r)break;const z=NC(await w[Ce](E,n),S,Ce);z&&(xe={...z,...ae(Ce,z.message)},k(z.message),r&&(M[x]=xe))}if(!jr(xe)&&(M[x]={ref:S,...xe},!r))return M}}return k(!0),M};const Bz={mode:Gi.onSubmit,reValidateMode:Gi.onChange,shouldFocusError:!0};function Nz(e={}){let t={...Bz,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:ws(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let i=Yn(t.defaultValues)||Yn(t.values)?Mn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Mn(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:RC(),state:RC()},b=t.criteriaMode===Gi.all,w=be=>Se=>{clearTimeout(d),d=setTimeout(be,Se)},x=async be=>{if(!t.disabled&&(h.isValid||m.isValid||be)){const Se=t.resolver?jr((await N()).errors):await ce(r,!0);Se!==n.isValid&&g.state.next({isValid:Se})}},D=(be,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields||m.isValidating||m.validatingFields)&&((be||Array.from(o.mount)).forEach(_e=>{_e&&(Se?tn(n.validatingFields,_e,Se):Qn(n.validatingFields,_e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!jr(n.validatingFields)}))},C=(be,Se=[],_e,Je,tt=!0,Qe=!0)=>{if(Je&&_e&&!t.disabled){if(a.action=!0,Qe&&Array.isArray(it(r,be))){const gt=_e(it(r,be),Je.argA,Je.argB);tt&&tn(r,be,gt)}if(Qe&&Array.isArray(it(n.errors,be))){const gt=_e(it(n.errors,be),Je.argA,Je.argB);tt&&tn(n.errors,be,gt),Vz(n.errors,be)}if((h.touchedFields||m.touchedFields)&&Qe&&Array.isArray(it(n.touchedFields,be))){const gt=_e(it(n.touchedFields,be),Je.argA,Je.argB);tt&&tn(n.touchedFields,be,gt)}(h.dirtyFields||m.dirtyFields)&&(n.dirtyFields=vf(i,s)),g.state.next({name:be,isDirty:I(be,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else tn(s,be,Se)},E=(be,Se)=>{tn(n.errors,be,Se),g.state.next({errors:n.errors})},S=be=>{n.errors=be,g.state.next({errors:n.errors,isValid:!1})},k=(be,Se,_e,Je)=>{const tt=it(r,be);if(tt){const Qe=it(s,be,Cn(_e)?it(i,be):_e);Cn(Qe)||Je&&Je.defaultChecked||Se?tn(s,be,Se?Qe:LC(tt._f)):z(be,Qe),a.mount&&x()}},M=(be,Se,_e,Je,tt)=>{let Qe=!1,gt=!1;const Rt={name:be};if(!t.disabled){if(!_e||Je){(h.isDirty||m.isDirty)&&(gt=n.isDirty,n.isDirty=Rt.isDirty=I(),Qe=gt!==Rt.isDirty);const xt=wo(it(i,be),Se);gt=!!it(n.dirtyFields,be),xt?Qn(n.dirtyFields,be):tn(n.dirtyFields,be,!0),Rt.dirtyFields=n.dirtyFields,Qe=Qe||(h.dirtyFields||m.dirtyFields)&>!==!xt}if(_e){const xt=it(n.touchedFields,be);xt||(tn(n.touchedFields,be,_e),Rt.touchedFields=n.touchedFields,Qe=Qe||(h.touchedFields||m.touchedFields)&&xt!==_e)}Qe&&tt&&g.state.next(Rt)}return Qe?Rt:{}},F=(be,Se,_e,Je)=>{const tt=it(n.errors,be),Qe=(h.isValid||m.isValid)&&Di(Se)&&n.isValid!==Se;if(t.delayError&&_e?(l=w(()=>E(be,_e)),l(t.delayError)):(clearTimeout(d),l=null,_e?tn(n.errors,be,_e):Qn(n.errors,be)),(_e?!wo(tt,_e):tt)||!jr(Je)||Qe){const gt={...Je,...Qe&&Di(Se)?{isValid:Se}:{},errors:n.errors,name:be};n={...n,...gt},g.state.next(gt)}},N=async be=>{D(be,!0);const Se=await t.resolver(s,t.context,Fz(be||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return D(be),Se},te=async be=>{const{errors:Se}=await N(be);if(be)for(const _e of be){const Je=it(Se,_e);Je?tn(n.errors,_e,Je):Qn(n.errors,_e)}else n.errors=Se;return Se},ce=async(be,Se,_e={valid:!0})=>{for(const Je in be){const tt=be[Je];if(tt){const{_f:Qe,...gt}=tt;if(Qe){const Rt=o.array.has(Qe.name),xt=tt._f&&Rz(tt._f);xt&&h.validatingFields&&D([Je],!0);const yn=await mb(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):tn(n.errors,Qe.name,yn[Qe.name]):Qn(n.errors,Qe.name))}!jr(gt)&&await ce(gt,Se,_e)}}return _e.valid},ae=()=>{for(const be of o.unMount){const Se=it(r,be);Se&&(Se._f.refs?Se._f.refs.every(_e=>!xv(_e)):!xv(Se._f.ref))&&Xe(be)}o.unMount=new Set},I=(be,Se)=>!t.disabled&&(be&&Se&&tn(s,be,Se),!wo(K(),i)),xe=(be,Se,_e)=>C5(be,o,{...a.mount?s:Cn(Se)?i:Js(be)?{[be]:Se}:Se},_e,Se),Ce=be=>Td(it(a.mount?s:i,be,t.shouldUnregister?it(i,be,[]):[])),z=(be,Se,_e={})=>{const Je=it(r,be);let tt=Se;if(Je){const Qe=Je._f;Qe&&(!Qe.disabled&&tn(s,be,M5(Se,Qe)),tt=Bp(Qe.ref)&&Kr(Se)?"":Se,A5(Qe.ref)?[...Qe.ref.options].forEach(gt=>gt.selected=tt.includes(gt.value)):Qe.refs?Ad(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):n3(Qe.ref)?Qe.ref.value="":(Qe.ref.value=tt,Qe.ref.type||g.state.next({name:be,values:Mn(s)})))}(_e.shouldDirty||_e.shouldTouch)&&M(be,tt,_e.shouldTouch,_e.shouldDirty,!0),_e.shouldValidate&&ne(be)},ee=(be,Se,_e)=>{for(const Je in Se){if(!Se.hasOwnProperty(Je))return;const tt=Se[Je],Qe=be+"."+Je,gt=it(r,Qe);(o.array.has(be)||Yn(tt)||gt&&!gt._f)&&!$u(tt)?ee(Qe,tt,_e):z(Qe,tt,_e)}},U=(be,Se,_e={})=>{const Je=it(r,be),tt=o.array.has(be),Qe=Mn(Se);tn(s,be,Qe),tt?(g.array.next({name:be,values:Mn(s)}),(h.isDirty||h.dirtyFields||m.isDirty||m.dirtyFields)&&_e.shouldDirty&&g.state.next({name:be,dirtyFields:vf(i,s),isDirty:I(be,Qe)})):Je&&!Je._f&&!Kr(Qe)?ee(be,Qe,_e):z(be,Qe,_e),pb(be,o)&&g.state.next({...n}),g.state.next({name:a.mount?be:void 0,values:Mn(s)})},O=async be=>{a.mount=!0;const Se=be.target;let _e=Se.name,Je=!0;const tt=it(r,_e),Qe=xt=>{Je=Number.isNaN(xt)||$u(xt)&&isNaN(xt.getTime())||wo(xt,it(s,_e,xt))},gt=Il(t.mode),Rt=Il(t.reValidateMode);if(tt){let xt,yn;const Cr=Se.type?LC(tt._f):y5(be),zt=be.type===Vp.BLUR||be.type===Vp.FOCUS_OUT,Pt=!kz(tt._f)&&!t.resolver&&!it(n.errors,_e)&&!tt._f.deps||Lz(zt,it(n.touchedFields,_e),n.isSubmitted,Rt,gt),It=pb(_e,o,zt);tn(s,_e,Cr),zt?(tt._f.onBlur&&tt._f.onBlur(be),l&&l(0)):tt._f.onChange&&tt._f.onChange(be);const qt=M(_e,Cr,zt),gr=!jr(qt)||It;if(!zt&&g.state.next({name:_e,type:be.type,values:Mn(s)}),Pt)return(h.isValid||m.isValid)&&(t.mode==="onBlur"?zt&&x():zt||x()),gr&&g.state.next({name:_e,...It?{}:qt});if(!zt&&It&&g.state.next({...n}),t.resolver){const{errors:Xr}=await N([_e]);if(Qe(Cr),Je){const di=BC(n.errors,r,_e),kr=BC(Xr,r,di.name||_e);xt=kr.error,_e=kr.name,yn=jr(Xr)}}else D([_e],!0),xt=(await mb(tt,o.disabled,s,b,t.shouldUseNativeValidation))[_e],D([_e]),Qe(Cr),Je&&(xt?yn=!1:(h.isValid||m.isValid)&&(yn=await ce(r,!0)));Je&&(tt._f.deps&&ne(tt._f.deps),F(_e,yn,xt,qt))}},V=(be,Se)=>{if(it(n.errors,Se)&&be.focus)return be.focus(),1},ne=async(be,Se={})=>{let _e,Je;const tt=oi(be);if(t.resolver){const Qe=await te(Cn(be)?be:tt);_e=jr(Qe),Je=be?!tt.some(gt=>it(Qe,gt)):_e}else be?(Je=(await Promise.all(tt.map(async Qe=>{const gt=it(r,Qe);return await ce(gt&>._f?{[Qe]:gt}:gt)}))).every(Boolean),!(!Je&&!n.isValid)&&x()):Je=_e=await ce(r);return g.state.next({...!Js(be)||(h.isValid||m.isValid)&&_e!==n.isValid?{}:{name:be},...t.resolver||!be?{isValid:_e}:{},errors:n.errors}),Se.shouldFocus&&!Je&&Yl(r,V,be?tt:o.mount),Je},K=be=>{const Se={...a.mount?s:i};return Cn(be)?Se:Js(be)?it(Se,be):be.map(_e=>it(Se,_e))},le=(be,Se)=>({invalid:!!it((Se||n).errors,be),isDirty:!!it((Se||n).dirtyFields,be),error:it((Se||n).errors,be),isValidating:!!it(n.validatingFields,be),isTouched:!!it((Se||n).touchedFields,be)}),ue=be=>{be&&oi(be).forEach(Se=>Qn(n.errors,Se)),g.state.next({errors:be?n.errors:{}})},De=(be,Se,_e)=>{const Je=(it(r,be,{_f:{}})._f||{}).ref,tt=it(n.errors,be)||{},{ref:Qe,message:gt,type:Rt,...xt}=tt;tn(n.errors,be,{...xt,...Se,ref:Je}),g.state.next({name:be,errors:n.errors,isValid:!1}),_e&&_e.shouldFocus&&Je&&Je.focus&&Je.focus()},Pe=(be,Se)=>ws(be)?g.state.subscribe({next:_e=>be(xe(void 0,Se),_e)}):xe(be,Se,!0),Fe=be=>g.state.subscribe({next:Se=>{Iz(be.name,Se.name,be.exact)&&Oz(Se,be.formState||h,_t,be.reRenderRoot)&&be.callback({values:{...s},...n,...Se})}}).unsubscribe,He=be=>(a.mount=!0,m={...m,...be.formState},Fe({...be,formState:m})),Xe=(be,Se={})=>{for(const _e of be?oi(be):o.mount)o.mount.delete(_e),o.array.delete(_e),Se.keepValue||(Qn(r,_e),Qn(s,_e)),!Se.keepError&&Qn(n.errors,_e),!Se.keepDirty&&Qn(n.dirtyFields,_e),!Se.keepTouched&&Qn(n.touchedFields,_e),!Se.keepIsValidating&&Qn(n.validatingFields,_e),!t.shouldUnregister&&!Se.keepDefaultValue&&Qn(i,_e);g.state.next({values:Mn(s)}),g.state.next({...n,...Se.keepDirty?{isDirty:I()}:{}}),!Se.keepIsValid&&x()},Be=({disabled:be,name:Se})=>{(Di(be)&&a.mount||be||o.disabled.has(Se))&&(be?o.disabled.add(Se):o.disabled.delete(Se))},Ge=(be,Se={})=>{let _e=it(r,be);const Je=Di(Se.disabled)||Di(t.disabled);return tn(r,be,{..._e||{},_f:{..._e&&_e._f?_e._f:{ref:{name:be}},name:be,mount:!0,...Se}}),o.mount.add(be),_e?Be({disabled:Di(Se.disabled)?Se.disabled:t.disabled,name:be}):k(be,!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:be,onChange:O,onBlur:O,ref:tt=>{if(tt){Ge(be,Se),_e=it(r,be);const Qe=Cn(tt.value)&&tt.querySelectorAll&&tt.querySelectorAll("input,select,textarea")[0]||tt,gt=Pz(Qe),Rt=_e._f.refs||[];if(gt?Rt.find(xt=>xt===Qe):Qe===_e._f.ref)return;tn(r,be,{_f:{..._e._f,...gt?{refs:[...Rt.filter(xv),Qe,...Array.isArray(it(i,be))?[{}]:[]],ref:{type:Qe.type,name:be}}:{ref:Qe}}}),k(be,!1,void 0,Qe)}else _e=it(r,be,{}),_e._f&&(_e._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(b5(o.array,be)&&a.action)&&o.unMount.add(be)}}},Me=()=>t.shouldFocusError&&Yl(r,V,o.mount),Le=be=>{Di(be)&&(g.state.next({disabled:be}),Yl(r,(Se,_e)=>{const Je=it(r,_e);Je&&(Se.disabled=Je._f.disabled||be,Array.isArray(Je._f.refs)&&Je._f.refs.forEach(tt=>{tt.disabled=Je._f.disabled||be}))},0,!1))},Ae=(be,Se)=>async _e=>{let Je;_e&&(_e.preventDefault&&_e.preventDefault(),_e.persist&&_e.persist());let tt=Mn(s);if(g.state.next({isSubmitting:!0}),t.resolver){const{errors:Qe,values:gt}=await N();n.errors=Qe,tt=gt}else await ce(r);if(o.disabled.size)for(const Qe of o.disabled)tn(tt,Qe,void 0);if(Qn(n.errors,"root"),jr(n.errors)){g.state.next({errors:{}});try{await be(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},Ye=(be,Se={})=>{it(r,be)&&(Cn(Se.defaultValue)?U(be,Mn(it(i,be))):(U(be,Se.defaultValue),tn(i,be,Mn(Se.defaultValue))),Se.keepTouched||Qn(n.touchedFields,be),Se.keepDirty||(Qn(n.dirtyFields,be),n.isDirty=Se.defaultValue?I(be,Mn(it(i,be))):I()),Se.keepError||(Qn(n.errors,be),h.isValid&&x()),g.state.next({...n}))},ht=(be,Se={})=>{const _e=be?Mn(be):i,Je=Mn(_e),tt=jr(be),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)?tn(Qe,Rt,it(s,Rt)):U(Rt,it(Qe,Rt))}else{if(Q4&&Cn(be))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(Bp(xt)){const yn=xt.closest("form");if(yn){yn.reset();break}}}}for(const gt of o.mount)U(gt,it(Qe,gt))}s=Mn(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&&!wo(be,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:tt?{}:Se.keepDirtyValues?Se.keepDefaultValues&&s?vf(i,s):n.dirtyFields:Se.keepDefaultValues&&be?vf(i,be):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Gt=(be,Se)=>ht(ws(be)?be(s):be,Se),$t=(be,Se={})=>{const _e=it(r,be),Je=_e&&_e._f;if(Je){const tt=Je.refs?Je.refs[0]:Je.ref;tt.focus&&(tt.focus(),Se.shouldSelect&&ws(tt.select)&&tt.select())}},_t=be=>{n={...n,...be}},en={control:{register:Ge,unregister:Xe,getFieldState:le,handleSubmit:Ae,setError:De,_subscribe:Fe,_runSchema:N,_focusError:Me,_getWatch:xe,_getDirty:I,_setValid:x,_setFieldArray:C,_setDisabledField:Be,_setErrors:S,_getFieldArray:Ce,_reset:ht,_resetDefaultValues:()=>ws(t.defaultValues)&&t.defaultValues().then(be=>{Gt(be,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(be){a=be},get _defaultValues(){return i},get _names(){return o},set _names(be){o=be},get _formState(){return n},get _options(){return t},set _options(be){t={...t,...be}}},subscribe:He,trigger:ne,register:Ge,handleSubmit:Ae,watch:Pe,setValue:U,getValues:K,reset:Gt,resetField:Ye,clearErrors:ue,unregister:Xe,setError:De,setFocus:$t,getFieldState:le};return{...en,formControl:en}}var mo=()=>{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)})},wv=(e,t,n={})=>n.shouldFocus||Cn(n.shouldFocus)?n.focusName||`${e}.${Cn(n.focusIndex)?t:n.focusIndex}.`:"",Cv=(e,t)=>[...e,...oi(t)],Ev=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Sv(e,t,n){return[...e.slice(0,t),...oi(n),...e.slice(t)]}var Dv=(e,t,n)=>Array.isArray(e)?(Cn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Av=(e,t)=>[...oi(t),...oi(e)];function jz(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return Td(r).length?r:[]}var Tv=(e,t)=>Cn(t)?[]:jz(e,oi(t).sort((n,r)=>n-r)),Pv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},jC=(e,t,n)=>(e[t]=n,e);function Kz(e){const t=Pd(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:a}=e,[o,l]=T.useState(n._getFieldArray(r)),d=T.useRef(n._getFieldArray(r).map(mo)),h=T.useRef(o),m=T.useRef(r),g=T.useRef(!1);m.current=r,h.current=o,n._names.array.add(r),a&&n.register(r,a),T.useEffect(()=>n._subjects.array.subscribe({next:({values:F,name:N})=>{if(N===m.current||!N){const te=it(F,m.current);Array.isArray(te)&&(l(te),d.current=te.map(mo))}}}).unsubscribe,[n]);const b=T.useCallback(F=>{g.current=!0,n._setFieldArray(r,F)},[n,r]),w=(F,N)=>{const te=oi(Mn(F)),ce=Cv(n._getFieldArray(r),te);n._names.focus=wv(r,ce.length-1,N),d.current=Cv(d.current,te.map(mo)),b(ce),l(ce),n._setFieldArray(r,ce,Cv,{argA:Ev(F)})},x=(F,N)=>{const te=oi(Mn(F)),ce=Av(n._getFieldArray(r),te);n._names.focus=wv(r,0,N),d.current=Av(d.current,te.map(mo)),b(ce),l(ce),n._setFieldArray(r,ce,Av,{argA:Ev(F)})},D=F=>{const N=Tv(n._getFieldArray(r),F);d.current=Tv(d.current,F),b(N),l(N),!Array.isArray(it(n._fields,r))&&tn(n._fields,r,void 0),n._setFieldArray(r,N,Tv,{argA:F})},C=(F,N,te)=>{const ce=oi(Mn(N)),ae=Sv(n._getFieldArray(r),F,ce);n._names.focus=wv(r,F,te),d.current=Sv(d.current,F,ce.map(mo)),b(ae),l(ae),n._setFieldArray(r,ae,Sv,{argA:F,argB:Ev(N)})},E=(F,N)=>{const te=n._getFieldArray(r);Pv(te,F,N),Pv(d.current,F,N),b(te),l(te),n._setFieldArray(r,te,Pv,{argA:F,argB:N},!1)},S=(F,N)=>{const te=n._getFieldArray(r);Dv(te,F,N),Dv(d.current,F,N),b(te),l(te),n._setFieldArray(r,te,Dv,{argA:F,argB:N},!1)},k=(F,N)=>{const te=Mn(N),ce=jC(n._getFieldArray(r),F,te);d.current=[...ce].map((ae,I)=>!ae||I===F?mo():d.current[I]),b(ce),l([...ce]),n._setFieldArray(r,ce,jC,{argA:F,argB:te},!0,!1)},M=F=>{const N=oi(Mn(F));d.current=N.map(mo),b([...N]),l([...N]),n._setFieldArray(r,[...N],te=>te,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,pb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Il(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Il(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(F=>{const N=it(F.errors,r),te=it(n._formState.errors,r);(te?!N&&te.type||N&&(te.type!==N.type||te.message!==N.message):N&&N.type)&&(N?tn(n._formState.errors,r,N):Qn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const F=it(n._fields,r);F&&F._f&&!(Il(n._options.reValidateMode).isOnSubmit&&Il(n._options.mode).isOnSubmit)&&mb(F,n._names.disabled,n._formValues,n._options.criteriaMode===Gi.all,n._options.shouldUseNativeValidation,!0).then(N=>!jr(N)&&n._subjects.state.next({errors:R5(n._formState.errors,N,r)}))}n._subjects.state.next({name:r,values:Mn(n._formValues)}),n._names.focus&&Yl(n._fields,(F,N)=>{if(n._names.focus&&N.startsWith(n._names.focus)&&F.focus)return F.focus(),1}),n._names.focus="",n._setValid(),g.current=!1},[o,r,n]),T.useEffect(()=>(!it(n._formValues,r)&&n._setFieldArray(r),()=>{const F=(N,te)=>{const ce=it(n._fields,N);ce&&ce._f&&(ce._f.mount=te)};n._options.shouldUnregister||s?n.unregister(r):F(r,!1)}),[r,n,i,s]),{swap:T.useCallback(E,[b,r,n]),move:T.useCallback(S,[b,r,n]),prepend:T.useCallback(x,[b,r,n]),append:T.useCallback(w,[b,r,n]),remove:T.useCallback(D,[b,r,n]),insert:T.useCallback(C,[b,r,n]),update:T.useCallback(k,[b,r,n]),replace:T.useCallback(M,[b,r,n]),fields:T.useMemo(()=>o.map((F,N)=>({...F,[i]:d.current[N]||mo()})),[o,i])}}function Uz(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,i]=T.useState({isDirty:!1,isValidating:!1,isLoading:ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...e.formControl?e.formControl:Nz(e),formState:r},e.formControl&&e.defaultValues&&!ws(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const s=t.current.control;return s._options=e,t3(()=>{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]),T.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),T.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),T.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),T.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),T.useEffect(()=>{e.values&&!wo(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(a=>({...a}))):s._resetDefaultValues()},[s,e.values]),T.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"?T.useLayoutEffect:()=>{};var _v;const zz=(_v=T.useInsertionEffect)!==null&&_v!==void 0?_v:vn;function kn(e){const t=T.useRef(null);return zz(()=>{t.current=e},[e]),T.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function qz(e){let[t,n]=T.useState(e),r=T.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 Kp={prefix:String(Math.round(Math.random()*1e10)),current:0},k5=T.createContext(Kp),Wz=T.createContext(!1);let Hz=!!(typeof window<"u"&&window.document&&window.document.createElement),Mv=new WeakMap;function Gz(e=!1){let t=T.useContext(k5),n=T.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=T.__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=Mv.get(s);a==null?Mv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==a.state&&(t.current=a.id,Mv.delete(s))}n.current=++t.current}return n.current}function Yz(e){let t=T.useContext(k5);t===Kp&&!Hz&&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=Gz(!!e),r=t===Kp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function Zz(e){let t=T.useId(),[n]=T.useState(i3()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Kp.prefix}`;return e||`${r}-${t}`}const Xz=typeof T.useId=="function"?Zz:Yz;function Jz(){return!1}function Qz(){return!0}function eq(e){return()=>{}}function i3(){return typeof T.useSyncExternalStore=="function"?T.useSyncExternalStore(eq,Jz,Qz):T.useContext(Wz)}let tq=!!(typeof window<"u"&&window.document&&window.document.createElement),Zl=new Map,Of;typeof FinalizationRegistry<"u"&&(Of=new FinalizationRegistry(e=>{Zl.delete(e)}));function Hr(e){let[t,n]=T.useState(e),r=T.useRef(null),i=Xz(t),s=T.useRef(null);if(Of&&Of.register(s,i),tq){const a=Zl.get(i);a&&!a.includes(r)?a.push(r):Zl.set(i,[r])}return vn(()=>{let a=i;return()=>{Of&&Of.unregister(s),Zl.delete(a)}},[i]),T.useEffect(()=>{let a=r.current;return a&&n(a),()=>{a&&(r.current=null)}}),i}function nq(e,t){if(e===t)return e;let n=Zl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Zl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function lc(e=[]){let t=Hr(),[n,r]=qz(t),i=T.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return vn(i,[t,i,...e]),n}function Ro(...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 rq(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function iq(e){return rq(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let sq=!1;function Mm(){return sq}function An(e,t){if(!Mm())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:iq(n)?n=n.host:n=n.parentNode}return!1}const or=(e=document)=>{var t;if(!Mm())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 sn(e){return Mm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class aq{get currentNode(){return this._currentNode}set currentNode(t){if(!An(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const 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 An(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let 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 oq(e,t,n,r){return Mm()?new aq(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 uq(){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]=Ro(s,a):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof a=="string"?t[i]=uq(s,a):i==="id"&&s&&a?t.id=nq(s,a):t[i]=a!==void 0?a:s}}return t}const lq=new Set(["id"]),cq=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fq=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dq=new Set(["dir","lang","hidden","inert","translate"]),KC=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"]),hq=/^(data-.*)$/;function Qa(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)&&(lq.has(l)||n&&cq.has(l)||r&&fq.has(l)||i&&dq.has(l)||s&&KC.has(l)||l.endsWith("Capture")&&KC.has(l.slice(0,-7))||a!=null&&a.has(l)||hq.test(l))&&(o[l]=e[l]);return o}function Ai(e){if(pq())e.focus({preventScroll:!0});else{let t=mq(e);e.focus(),gq(t)}}let Vh=null;function pq(){if(Vh==null){Vh=!1;try{document.createElement("div").focus({get preventScroll(){return Vh=!0,!0}})}catch{}}return Vh}function mq(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 gq(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Fm(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 s3(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 eo(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ga=eo(function(){return s3(/^Mac/i)}),vq=eo(function(){return s3(/^iPhone/i)}),I5=eo(function(){return s3(/^iPad/i)||Ga()&&navigator.maxTouchPoints>1}),_d=eo(function(){return vq()||I5()}),dp=eo(function(){return Ga()||_d()}),a3=eo(function(){return Fm(/AppleWebKit/i)&&!L5()}),L5=eo(function(){return Fm(/Chrome/i)}),o3=eo(function(){return Fm(/Android/i)}),yq=eo(function(){return Fm(/Firefox/i)}),bq=T.createContext({isNative:!0,open:xq,useHref:e=>e});function Rm(){return T.useContext(bq)}function Ku(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:a,altKey:o,shiftKey:l}=t;yq()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ga()?s=!0:a=!0);let d=a3()&&Ga()&&!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});Ku.isOpening=n,Ai(e),e.dispatchEvent(d),Ku.isOpening=!1}Ku.isOpening=!1;function $q(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 xq(e,t){$q(e,n=>Ku(n,t))}function wq(e){let t=Rm();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,gb=new Set;function UC(){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 gb)s();gb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?UC():document.addEventListener("DOMContentLoaded",UC));function Cq(){for(const[e]of Co)"isConnected"in e&&!e.isConnected&&Co.delete(e)}function V5(e){requestAnimationFrame(()=>{Cq(),Co.size===0?e():gb.add(e)})}function Lo(){let e=T.useRef(new Map),t=T.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=T.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=T.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return T.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 vb(e,t){const n=T.useRef(!0),r=T.useRef(null);T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),T.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 zC(e,t){const n=T.useRef(!0),r=T.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 Eq(){return typeof window.ResizeObserver<"u"}function qC(e){const{ref:t,box:n,onResize:r}=e;T.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(Eq()){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 rd(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 km(e,t){let n=e;for(rd(n,t)&&(n=n.parentElement);n&&!rd(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function Sq(e,t){const n=[];for(;e&&e!==document.documentElement;)rd(e,t)&&n.push(e),e=e.parentElement;return n}let Dq=0;const Fv=new Map;function Md(e){let[t,n]=T.useState();return vn(()=>{if(!e)return;let r=Fv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Dq++}`;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},Fv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Fv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Qs(e,t,n,r){let i=kn(n),s=n==null;T.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=WC(e,t,"left"),r=WC(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),x=o+parseInt(l,10),D=w+e.clientWidth,C=x+e.clientHeight,E=parseInt(h,10)||0,S=parseInt(g,10)||0,k=parseInt(m,10)||0,M=parseInt(b,10)||0;n<=a+M?a=n-parseInt(d,10)-M:n+i>D-k&&(a+=n+i-D+k),r<=x+E?o=r-parseInt(l,10)-E:r+s>C-S&&(o+=r+s-C+S),e.scrollLeft=a,e.scrollTop=o}function WC(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 Up(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=Sq(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 yb(e){return e.mozInputSource===0&&e.isTrusted?!0:o3()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Aq(e){return!o3()&&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=T.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function u3(e,t,n){let r=kn(()=>{n&&n(t)});T.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 Tq="react-aria-clear-focus",Pq="react-aria-focus";function kl(e){return Ga()?e.metaKey:e.ctrlKey}const _q=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Mq(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 Fq(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 l3(e,t){return _q?e.checkVisibility():e.nodeName!=="#comment"&&Mq(e)&&Fq(e,t)&&(!e.parentElement||l3(e.parentElement,e))}const c3=["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"],Rq=c3.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c3.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const kq=c3.join(':not([hidden]):not([tabindex="-1"]),');function K5(e){return e.matches(Rq)&&l3(e)&&!U5(e)}function Oq(e){return e.matches(kq)&&l3(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]=T.useState(e||t),s=T.useRef(e!==void 0),a=e!==void 0;T.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=T.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 x=d(a?o:b,...w);return m(x,...h),a?b:x})):(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 Bh(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=Bh(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(Bh(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(Bh((n-t)/r,r))*r),s=Bh(s,r),s}function f3(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=T.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 T.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=f3(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 zp=!1;function HC(e){for(;e&&!K5(e);)e=e.parentElement;let t=ca(e),n=t.document.activeElement;if(!n||n===e)return;zp=!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),zp=!1,r=!1},d=requestAnimationFrame(l);return l}let Ll="default",bb="",hp=new WeakMap;function $b(e){if(_d()){if(Ll==="default"){const t=Jt(e);bb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ll="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";hp.set(e,e.style[t]),e.style[t]="none"}}function pp(e){if(_d()){if(Ll!=="disabled")return;Ll="restoring",setTimeout(()=>{V5(()=>{if(Ll==="restoring"){const t=Jt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=bb||""),bb="",Ll="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&hp.has(e)){let t=hp.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),hp.delete(e)}}const d3=T.createContext({register:()=>{}});d3.displayName="PressResponderContext";function Iq(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 Lq(e,t){var n=W5(e,t,"get");return Iq(e,n)}function Vq(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fd(e,t,n){Vq(e,t),t.set(e,n)}function Bq(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 GC(e,t,n){var r=W5(e,t,"set");return Bq(e,r,n),n}function Nq(e){let t=T.useContext(d3);if(t){let{register:n,...r}=t;e=Qt(r,e),n()}return B5(t,e.ref),e}var Nh=new WeakMap;class jh{continuePropagation(){GC(this,Nh,!1)}get shouldStopPropagation(){return Lq(this,Nh)}constructor(t,n,r,i){Fd(this,Nh,{writable:!0,value:void 0}),GC(this,Nh,!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 YC=Symbol("linkClicked"),ZC="react-aria-pressable-style",XC="data-react-aria-pressable";function Rd(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}=Nq(e),[w,x]=T.useState(!1),D=T.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:C,removeAllGlobalListeners:E}=Lo(),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 jh("pressstart",xe,I);r(ee),z=ee.shouldStopPropagation}return n&&n(!0),Ce.isTriggeringEvent=!1,Ce.didFirePressStart=!0,x(!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 U=new jh("pressend",xe,I);i(U),ee=U.shouldStopPropagation}if(n&&n(!1),x(!1),t&&Ce&&!o){let U=new jh("press",xe,I);t(U),ee&&(ee=U.shouldStopPropagation)}return z.isTriggeringEvent=!1,ee}),M=kn((I,xe)=>{let Ce=D.current;if(o)return!1;if(s){Ce.isTriggeringEvent=!0;let z=new jh("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(fu(xe.target,I),xe.pointerType,!1),xe.isPressed=!1,xe.isOverTarget=!1,xe.activePointerId=null,xe.pointerType=null,E(),m||pp(xe.target);for(let Ce of xe.disposables)Ce();xe.disposables=[]}}),N=kn(I=>{h&&F(I)}),te=kn(I=>{a==null||a(I)}),ce=kn((I,xe)=>{if(a){let Ce=new MouseEvent("click",I);z5(Ce,xe),a(f3(Ce))}}),ae=T.useMemo(()=>{let I=D.current,xe={onKeyDown(z){if(Rv(z.nativeEvent,z.currentTarget)&&An(z.currentTarget,sn(z.nativeEvent))){var ee;eE(sn(z.nativeEvent),z.key)&&z.preventDefault();let U=!0;if(!I.isPressed&&!z.repeat){I.target=z.currentTarget,I.isPressed=!0,I.pointerType="keyboard",U=S(z,"keyboard");let O=z.currentTarget,V=ne=>{Rv(ne,O)&&!ne.repeat&&An(O,sn(ne))&&I.target&&M(fu(I.target,ne),"keyboard")};C(Jt(z.currentTarget),"keyup",Ro(V,Ce),!0)}U&&z.stopPropagation(),z.metaKey&&Ga()&&((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&&!An(z.currentTarget,sn(z.nativeEvent)))&&z&&z.button===0&&!I.isTriggeringEvent&&!Ku.isOpening){let ee=!0;if(o&&z.preventDefault(),!I.ignoreEmulatedMouseEvents&&!I.isPressed&&(I.pointerType==="virtual"||yb(z.nativeEvent))){let U=S(z,"virtual"),O=M(z,"virtual"),V=k(z,"virtual");te(z),ee=U&&O&&V}else if(I.isPressed&&I.pointerType!=="keyboard"){let U=I.pointerType||z.nativeEvent.pointerType||"virtual",O=M(fu(z.currentTarget,z),U),V=k(fu(z.currentTarget,z),U,!0);ee=O&&V,I.isOverTarget=!1,te(z),F(z)}I.ignoreEmulatedMouseEvents=!1,ee&&z.stopPropagation()}}},Ce=z=>{var ee;if(I.isPressed&&I.target&&Rv(z,I.target)){var U;eE(sn(z),z.key)&&z.preventDefault();let V=sn(z),ne=An(I.target,sn(z));k(fu(I.target,z),"keyboard",ne),ne&&ce(z,I.target),E(),z.key!=="Enter"&&h3(I.target)&&An(I.target,V)&&!z[YC]&&(z[YC]=!0,Ku(I.target,z,!1)),I.isPressed=!1,(U=I.metaKeyEvents)===null||U===void 0||U.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 ne of V.values())(O=I.target)===null||O===void 0||O.dispatchEvent(new KeyboardEvent("keyup",ne))}};if(typeof PointerEvent<"u"){xe.onPointerDown=U=>{if(U.button!==0||!An(U.currentTarget,sn(U.nativeEvent)))return;if(Aq(U.nativeEvent)){I.pointerType="virtual";return}I.pointerType=U.pointerType;let O=!0;if(!I.isPressed){I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=U.pointerId,I.target=U.currentTarget,m||$b(I.target),O=S(U,I.pointerType);let V=sn(U.nativeEvent);"releasePointerCapture"in V&&V.releasePointerCapture(U.pointerId),C(Jt(U.currentTarget),"pointerup",z,!1),C(Jt(U.currentTarget),"pointercancel",ee,!1)}O&&U.stopPropagation()},xe.onMouseDown=U=>{if(An(U.currentTarget,sn(U.nativeEvent))&&U.button===0){if(d){let O=HC(U.target);O&&I.disposables.push(O)}U.stopPropagation()}},xe.onPointerUp=U=>{!An(U.currentTarget,sn(U.nativeEvent))||I.pointerType==="virtual"||U.button===0&&!I.isPressed&&M(U,I.pointerType||U.pointerType)},xe.onPointerEnter=U=>{U.pointerId===I.activePointerId&&I.target&&!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,S(fu(I.target,U),I.pointerType))},xe.onPointerLeave=U=>{U.pointerId===I.activePointerId&&I.target&&I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,k(fu(I.target,U),I.pointerType,!1),N(U))};let z=U=>{if(U.pointerId===I.activePointerId&&I.isPressed&&U.button===0&&I.target){if(An(I.target,sn(U))&&I.pointerType!=null){let O=!1,V=setTimeout(()=>{I.isPressed&&I.target instanceof HTMLElement&&(O?F(U):(Ai(I.target),I.target.click()))},80);C(U.currentTarget,"click",()=>O=!0,!0),I.disposables.push(()=>clearTimeout(V))}else F(U);I.isOverTarget=!1}},ee=U=>{F(U)};xe.onDragStart=U=>{An(U.currentTarget,sn(U.nativeEvent))&&F(U)}}else if(process.env.NODE_ENV==="test"){xe.onMouseDown=U=>{if(U.button!==0||!An(U.currentTarget,sn(U.nativeEvent)))return;if(I.ignoreEmulatedMouseEvents){U.stopPropagation();return}if(I.isPressed=!0,I.isOverTarget=!0,I.target=U.currentTarget,I.pointerType=yb(U.nativeEvent)?"virtual":"mouse",qa.flushSync(()=>S(U,I.pointerType))&&U.stopPropagation(),d){let V=HC(U.target);V&&I.disposables.push(V)}C(Jt(U.currentTarget),"mouseup",z,!1)},xe.onMouseEnter=U=>{if(!An(U.currentTarget,sn(U.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!0,O=S(U,I.pointerType)),O&&U.stopPropagation()},xe.onMouseLeave=U=>{if(!An(U.currentTarget,sn(U.nativeEvent)))return;let O=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&I.pointerType!=null&&(I.isOverTarget=!1,O=k(U,I.pointerType,!1),N(U)),O&&U.stopPropagation()},xe.onMouseUp=U=>{An(U.currentTarget,sn(U.nativeEvent))&&!I.ignoreEmulatedMouseEvents&&U.button===0&&!I.isPressed&&M(U,I.pointerType||"mouse")};let z=U=>{if(U.button===0){if(I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}I.target&&I.target.contains(U.target)&&I.pointerType!=null||F(U),I.isOverTarget=!1}};xe.onTouchStart=U=>{if(!An(U.currentTarget,sn(U.nativeEvent)))return;let O=jq(U.nativeEvent);if(!O)return;I.activePointerId=O.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=U.currentTarget,I.pointerType="touch",m||$b(I.target),S(go(I.target,U),I.pointerType)&&U.stopPropagation(),C(ca(U.currentTarget),"scroll",ee,!0)},xe.onTouchMove=U=>{if(!An(U.currentTarget,sn(U.nativeEvent)))return;if(!I.isPressed){U.stopPropagation();return}let O=JC(U.nativeEvent,I.activePointerId),V=!0;O&&QC(O,U.currentTarget)?!I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!0,V=S(go(I.target,U),I.pointerType)):I.isOverTarget&&I.pointerType!=null&&(I.isOverTarget=!1,V=k(go(I.target,U),I.pointerType,!1),N(go(I.target,U))),V&&U.stopPropagation()},xe.onTouchEnd=U=>{if(!An(U.currentTarget,sn(U.nativeEvent)))return;if(!I.isPressed){U.stopPropagation();return}let O=JC(U.nativeEvent,I.activePointerId),V=!0;O&&QC(O,U.currentTarget)&&I.pointerType!=null?(M(go(I.target,U),I.pointerType),V=k(go(I.target,U),I.pointerType),ce(U.nativeEvent,I.target)):I.isOverTarget&&I.pointerType!=null&&(V=k(go(I.target,U),I.pointerType,!1)),V&&U.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,I.target&&!m&&pp(I.target),E()},xe.onTouchCancel=U=>{An(U.currentTarget,sn(U.nativeEvent))&&(U.stopPropagation(),I.isPressed&&F(go(I.target,U)))};let ee=U=>{I.isPressed&&An(sn(U),I.target)&&F({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};xe.onDragStart=U=>{An(U.currentTarget,sn(U.nativeEvent))&&F(U)}}return xe},[C,o,d,E,m,F,N,k,S,M,te,ce]);return T.useEffect(()=>{if(!g||process.env.NODE_ENV==="test")return;const I=Jt(g.current);if(!I||!I.head||I.getElementById(ZC))return;const xe=I.createElement("style");xe.id=ZC,xe.textContent=`
|
|
87
|
+
@layer {
|
|
88
|
+
[${XC}] {
|
|
89
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`.trim(),I.head.prepend(xe)},[g]),T.useEffect(()=>{let I=D.current;return()=>{var xe;m||pp((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,{[XC]:!0})}}function h3(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rv(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&&h3(i))&&n!=="Enter")}function jq(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function JC(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 go(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 fu(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 Kq(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 Uq(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function QC(e,t){let n=t.getBoundingClientRect(),r=Kq(e);return Uq(n,r)}function zq(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!h3(e)}function eE(e,t){return e instanceof HTMLInputElement?!H5(e,t):zq(e)}const qq=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function H5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":qq.has(e.type)}let Yu=null,Wq=new Set,qf=new Map,Uu=!1,xb=!1;function Om(e,t){for(let n of Wq)n(e,t)}function Hq(e){return!(e.metaKey||!Ga()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function qp(e){Uu=!0,Hq(e)&&(Yu="keyboard",Om("keyboard",e))}function Wi(e){Yu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Uu=!0,Om("pointer",e))}function G5(e){yb(e)&&(Uu=!0,Yu="virtual")}function Y5(e){e.target===window||e.target===document||zp||!e.isTrusted||(!Uu&&!xb&&(Yu="virtual",Om("virtual",e)),Uu=!1,xb=!1)}function Z5(){zp||(Uu=!1,xb=!0)}function tE(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(){Uu=!0,r.apply(this,arguments)},n.addEventListener("keydown",qp,!0),n.addEventListener("keyup",qp,!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",qp,!0),r.removeEventListener("keyup",qp,!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 Gq(e){const t=Jt(e);let n;return t.readyState!=="loading"?tE(e):(n=()=>{tE(e)},t.addEventListener("DOMContentLoaded",n)),()=>X5(e,n)}typeof document<"u"&&Gq();function nE(){return Yu!=="pointer"}function id(){return Yu}function J5(e){Yu=e,Om(e,null)}function zu(e){const t=Jt(e),n=or(t);if(id()==="virtual"){let r=n;V5(()=>{or(t)===r&&e.isConnected&&Ai(e)})}else Ai(e)}function Yq(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=q5(s),o=T.useCallback(l=>{const d=Jt(l.target),h=d?or(d):or();l.target===l.currentTarget&&h===sn(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 rE(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:rE(e.onKeyDown),onKeyUp:rE(e.onKeyUp)}}}let Zq=T.createContext(null);function Xq(e){let t=T.useContext(Zq)||{};B5(t,e);let{ref:n,...r}=t;return r}function p3(e,t){let{focusProps:n}=Yq(e),{keyboardProps:r}=Q5(e),i=Qt(n,r),s=Xq(t),a=e.isDisabled?{}:s,o=T.useRef(e.autoFocus);T.useEffect(()=>{o.current&&t.current&&zu(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 Jq({children:e}){let t=T.useMemo(()=>({register:()=>{}}),[]);return T.createElement(d3.Provider,{value:t},e)}function Cc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=T.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:o}=Lo(),l=T.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=T.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=Jt(m.target),b=or(g);if(!s.current.isFocusWithin&&b===sn(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let w=m.currentTarget;a(g,"focus",x=>{if(s.current.isFocusWithin&&!An(w,x.target)){let D=new g.defaultView.FocusEvent("blur",{relatedTarget:x.target});z5(D,w);let C=f3(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 Wp=!1,Kh=0;function wb(){Wp=!0,setTimeout(()=>{Wp=!1},50)}function iE(e){e.pointerType==="touch"&&wb()}function Qq(){if(!(typeof document>"u"))return Kh===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",iE):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",wb)),Kh++,()=>{Kh--,!(Kh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",iE):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",wb))}}function eW(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,a]=T.useState(!1),o=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(Qq,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Lo(),{hoverProps:h,triggerHoverEnd:m}=T.useMemo(()=>{let g=(x,D)=>{if(o.pointerType=D,i||D==="touch"||o.isHovered||!x.currentTarget.contains(x.target))return;o.isHovered=!0;let C=x.currentTarget;o.target=C,l(Jt(x.target),"pointerover",E=>{o.isHovered&&o.target&&!An(o.target,E.target)&&b(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:C,pointerType:D}),n&&n(!0),a(!0)},b=(x,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=x=>{Wp&&x.pointerType==="mouse"||g(x,x.pointerType)},w.onPointerLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,x.pointerType)}):process.env.NODE_ENV==="test"&&(w.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},w.onMouseEnter=x=>{!o.ignoreEmulatedMouseEvents&&!Wp&&g(x,"mouse"),o.ignoreEmulatedMouseEvents=!1},w.onMouseLeave=x=>{!i&&x.currentTarget.contains(x.target)&&b(x,"mouse")}),{hoverProps:w,triggerHoverEnd:b}},[t,n,r,i,o,l,d]);return T.useEffect(()=>{i&&m({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:h,isHovered:s}}function tW(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=T.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=kn(l=>{n&&Uh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),o=kn(l=>{n&&n(l)});T.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=Jt(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Uh(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&&Uh(b,t)&&o(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Uh(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 Uh(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=T.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:a}=Lo(),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)=>{pp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:T.useMemo(()=>{let h={},m=()=>{$b(),i.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let b=C=>{if(C.button===0){var E,S,k,M;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-((M=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&M!==void 0?M: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 x=C=>{let E=[...C.changedTouches].findIndex(({identifier:N})=>N===i.current.id);if(E>=0){var S,k;let{pageX:N,pageY:te}=C.changedTouches[E];var M,F;o(C,"touch",N-((M=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&M!==void 0?M:0),te-((F=(k=i.current.lastPosition)===null||k===void 0?void 0:k.pageY)!==null&&F!==void 0?F:0)),i.current.lastPosition={pageX:N,pageY:te}}},D=C=>{[...C.changedTouches].findIndex(({identifier:S})=>S===i.current.id)>=0&&(l(C,"touch"),i.current.id=null,a(window,"touchmove",x),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",x,!1),s(window,"touchend",D,!1),s(window,"touchcancel",D,!1)}}else{let b=x=>{if(x.pointerId===i.current.id){var D,C;let k=x.pointerType||"mouse";var E,S;o(x,k,x.pageX-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),x.pageY-((S=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&S!==void 0?S:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},w=x=>{if(x.pointerId===i.current.id){let D=x.pointerType||"mouse";l(x,D),i.current.id=null,a(window,"pointermove",b,!1),a(window,"pointerup",w,!1),a(window,"pointercancel",w,!1)}};h.onPointerDown=x=>{x.button===0&&i.current.id==null&&(m(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},i.current.id=x.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",w,!1),s(window,"pointercancel",w,!1))}}let g=(b,w,x)=>{m(),o(b,"keyboard",w,x),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,s,a,o,l])}}const nW=500;function t_(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=nW,accessibilityDescription:a}=e;const o=T.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Lo(),{pressProps:h}=Rd({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=Md(i&&!t?a:void 0);return{longPressProps:Qt(h,m)}}const rW=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),iW=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sW(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 rW.has(n.script)}let t=e.split("-")[0];return iW.has(t)}const aW=Symbol.for("react-aria.i18n.locale");function n_(){let e=typeof window<"u"&&window[aW]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sW(e)?"rtl":"ltr"}}let Cb=n_(),If=new Set;function sE(){Cb=n_();for(let e of If)e(Cb)}function oW(){let e=i3(),[t,n]=T.useState(Cb);return T.useEffect(()=>(If.size===0&&window.addEventListener("languagechange",sE),If.add(n),()=>{If.delete(n),If.size===0&&window.removeEventListener("languagechange",sE)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const uW=T.createContext(null);function Rr(){let e=oW();return T.useContext(uW)||e}const lW=Symbol.for("react-aria.i18n.locale"),cW=Symbol.for("react-aria.i18n.strings");let _l;class Vo{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=fW(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[lW];if(_l===void 0){let i=window[cW];if(!i)return null;_l={};for(let s in i)_l[s]=new Vo({[n]:i[s]},n)}let r=_l==null?void 0:_l[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 fW(e,t,n="en-US"){if(t[e])return t[e];let r=dW(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function dW(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const aE=new Map,oE=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=aE.get(s);a||(a=new Intl.PluralRules(this.locale,{type:r}),aE.set(s,a));let o=a.select(t);return i=n[o]||n.other,typeof i=="function"?i():i}number(t){let n=oE.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),oE.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 uE=new WeakMap;function hW(e){let t=uE.get(e);return t||(t=new Vo(e),uE.set(e,t)),t}function i_(e,t){return t&&Vo.getGlobalDictionaryForPackage(t)||hW(e)}function da(e,t){let{locale:n}=Rr(),r=i_(e,t);return T.useMemo(()=>new r_(n,r),[n,r])}function Xl(e,t){return e-t*Math.floor(e/t)}const s_=1721426;function xu(e,t,n,r){t=kd(e,t);let i=t-1,s=-2;return n<=2?s=0:Ao(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 Ao(e){return e%4===0&&(e%100!==0||e%400===0)}function kd(e,t){return e==="BC"?1-t:t}function Im(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const pW={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=Xl(r,146097),a=Math.floor(s/36524),o=Xl(s,36524),l=Math.floor(o/1461),d=Xl(o,1461),h=Math.floor(d/365),m=i*400+a*100+l*4+h+(a!==4&&h!==4?1:0),[g,b]=Im(m),w=n-xu(g,b,1,1),x=2;n<xu(g,b,3,1)?x=0:Ao(b)&&(x=1);let D=Math.floor(((w+x)*12+373)/367),C=n-xu(g,b,D,1)+1;return new Zn(g,b,D,C)}toJulianDay(t){return xu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return pW[Ao(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ao(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 mW={"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 Eb(e,t){return Lm(e.calendar,t.calendar)&&nr(e,t)}function Lm(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,Vm(t))}const gW={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function m3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?gW[n]:wW(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function o_(e){return Ka(Date.now(),e)}function Vm(e){return Gr(o_(e))}function u_(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function l_(e,t){return lE(e)-lE(t)}function lE(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let kv=null;function Od(){return kv==null&&(kv=new Intl.DateTimeFormat().resolvedOptions().timeZone),kv}function Id(e){return e.subtract({days:e.day-1})}function Sb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function vW(e){return Id(e.subtract({months:e.month-1}))}function yW(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function bW(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function sd(e,t,n){let r=m3(e,t,n);return e.subtract({days:r})}function $W(e,t,n){return sd(e,t,n).add({days:6})}const cE=new Map;function xW(e){if(Intl.Locale){let n=cE.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&cE.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function wW(e){let t=xW(e);return t&&mW[t]||0}function c_(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((m3(Id(e),t,n)+r)/7)}function g3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function v3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function dc(e){e=On(e,new Yr);let t=kd(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 Db(e,t){if(t==="UTC")return 0;if(e>0&&t===Od())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 fE=new Map;function d_(e,t){let n=fE.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"}),fE.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 dE=864e5;function CW(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>EW(e,t,s))}function EW(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 ja(e,t,n="compatible"){let r=As(e);if(t==="UTC")return dc(r);if(t===Od()&&n==="compatible"){r=On(r,new Yr);let l=new Date,d=kd(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=Db(i-dE,t),a=Db(i+dE,t),o=CW(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(ja(e,t,n))}function Ka(e,t){let n=Db(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 ud(i<1?"BC":"AD",i<1?-i+1:i,s,a,t,n,o,l,d,h)}function Gr(e){return new Zn(e.calendar,e.era,e.year,e.month,e.day)}function As(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 od(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function hE(e){return new Ld(e.hour,e.minute,e.second,e.millisecond)}function On(e,t){if(Lm(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,qu(r),r}function p_(e,t,n){if(e instanceof ud)return e.timeZone===t?e:DW(e,t);let r=ja(e,t,n);return Ka(r,t)}function SW(e){let t=dc(e)-e.offset;return new Date(t)}function DW(e,t){let n=dc(e)-e.offset;return On(Ka(n,t),e.calendar)}const $f=36e5;function Bm(e,t){let n=e.copy(),r="hour"in n?y_(n,t):0;Ab(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Tb(n),m_(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,AW(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 Ab(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Tb(e){for(;e.month<1;)Ab(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Ab(e,1)}function AW(e){for(;e.day<1;)e.month--,Tb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Tb(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 qu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),m_(e)}function y3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function g_(e,t){return Bm(e,y3(t))}function b3(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),qu(n),n}function ad(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 TW(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=zh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=zh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=zh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=zh(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 zh(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,TW(e)}function b_(e,t){let n=e.copy();return y_(n,t),n}function PW(e,t){return b_(e,y3(t))}function $3(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=Ua(l,n,0,o.length-1,r==null?void 0:r.round),i.era=o[l],qu(i);break}case"year":var s,a;!((s=(a=i.calendar).isInverseEra)===null||s===void 0)&&s.call(a,i)&&(n=-n),i.year=Ua(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=Ua(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Ua(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),qu(i),i}function x3(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=Ua(s,n,a,o,r==null?void 0:r.round);break}case"minute":i.minute=Ua(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Ua(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Ua(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Ua(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=Bm(As(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=ja(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=Ka(n,e.timeZone);return On(r,e.calendar)}function _W(e,t){return $_(e,y3(t))}function MW(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=As(e),o=On(ad(a,{hour:i}),new Yr),l=[ja(o,e.timeZone,"earlier"),ja(o,e.timeZone,"later")].filter(w=>Ka(w,e.timeZone).day===o.day)[0],d=On(ad(a,{hour:s}),new Yr),h=[ja(d,e.timeZone,"earlier"),ja(d,e.timeZone,"later")].filter(w=>Ka(w,e.timeZone).day===d.day).pop(),m=dc(e)-e.offset,g=Math.floor(m/$f),b=m%$f;return m=Ua(g,n,Math.floor(l/$f),Math.floor(h/$f),r==null?void 0:r.round)*$f+b,On(Ka(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return x3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=$3(As(e),t,n,r),s=ja(i,e.timeZone);return On(Ka(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function FW(e,t,n){let r=As(e),i=ad(b3(r,t),t);if(i.compare(r)===0)return e;let s=ja(i,e.timeZone,n);return On(Ka(s,e.timeZone),e.calendar)}const RW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,kW=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function OW(e){let t=e.match(RW);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Zn(Ys(t[1],0,9999),Ys(t[2],1,12),1);return n.day=Ys(t[3],1,n.calendar.getDaysInMonth(n)),n}function IW(e){let t=e.match(kW);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ys(t[1],-9999,9999),r=n<1?"BC":"AD",i=new od(r,n<1?-n+1:n,Ys(t[2],1,12),1,t[4]?Ys(t[4],0,23):0,t[5]?Ys(t[5],0,59):0,t[6]?Ys(t[6],0,59):0,t[7]?Ys(t[7],0,1/0)*1e3:0);return i.day=Ys(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ys(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 LW(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 VW(e){return`${C_(e)}${LW(e.offset)}[${e.timeZone}]`}function w3(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 BW=new WeakMap;class Zn{copy(){return this.era?new Zn(this.calendar,this.era,this.year,this.month,this.day):new Zn(this.calendar,this.year,this.month,this.day)}add(t){return Bm(this,t)}subtract(t){return g_(this,t)}set(t){return b3(this,t)}cycle(t,n,r){return $3(this,t,n,r)}toDate(t){return h_(this,t)}toString(){return w_(this)}compare(t){return u_(this,t)}constructor(...t){Fd(this,BW,{writable:!0,value:void 0});let[n,r,i,s,a]=w3(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=a,qu(this)}}var NW=new WeakMap;class Ld{copy(){return new Ld(this.hour,this.minute,this.second,this.millisecond)}add(t){return b_(this,t)}subtract(t){return PW(this,t)}set(t){return ad(this,t)}cycle(t,n,r){return x3(this,t,n,r)}toString(){return x_(this)}compare(t){return l_(this,t)}constructor(t=0,n=0,r=0,i=0){Fd(this,NW,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,v_(this)}}var jW=new WeakMap;class od{copy(){return this.era?new od(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new od(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Bm(this,t)}subtract(t){return g_(this,t)}set(t){return b3(ad(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return $3(this,t,n,r);default:return x3(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,As(t)):n}constructor(...t){Fd(this,jW,{writable:!0,value:void 0});let[n,r,i,s,a]=w3(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,qu(this)}}var KW=new WeakMap;class ud{copy(){return this.era?new ud(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ud(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 _W(this,t)}set(t,n){return FW(this,t,n)}cycle(t,n,r){return MW(this,t,n,r)}toDate(){return SW(this)}toString(){return VW(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-p_(t,this.timeZone).toDate().getTime()}constructor(...t){Fd(this,KW,{writable:!0,value:void 0});let[n,r,i,s,a]=w3(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,qu(this)}}const Jl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],UW=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],mp=[1867,1911,1925,1988,2018],xo=["meiji","taisho","showa","heisei","reiwa"];function pE(e){const t=Jl.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?Jl.length-1:t===0?0:t-1}function Ov(e){let t=mp[xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Zn(e.year+t,e.month,e.day)}class zW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=pE(n);return new Zn(this,xo[r],n.year-mp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Ov(t))}balanceDate(t){let n=Ov(t),r=pE(n);xo[r]!==t.era&&(t.era=xo[r],t.year=n.year-mp[r]),this.constrainDate(t)}constrainDate(t){let n=xo.indexOf(t.era),r=UW[n];if(r!=null){let[i,s,a]=r,o=i-mp[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]=Jl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return xo}getYearsInEra(t){let n=xo.indexOf(t.era),r=Jl[n],i=Jl[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(Ov(t))}getMinimumMonthInYear(t){let n=mE(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=mE(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function mE(e){if(e.year===1){let t=xo.indexOf(e.era);return Jl[t]}}const E_=-543;class qW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year);return new Zn(this,r-E_,n.month,n.day)}toJulianDay(t){return super.toJulianDay(gE(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(gE(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function gE(e){let[t,n]=Im(e.year+E_);return new Zn(t,n,e.month,e.day)}const Hp=1911;function S_(e){return e.era==="minguo"?e.year+Hp:1-e.year+Hp}function vE(e){let t=e-Hp;return t>0?["minguo",t]:["before_minguo",1-t]}class WW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kd(n.era,n.year),[i,s]=vE(r);return new Zn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(yE(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=vE(S_(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(yE(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Hp}constructor(...t){super(...t),this.identifier="roc"}}function yE(e){let[t,n]=Im(S_(e));return new Zn(t,n,e.month,e.day)}const bE=1948320,$E=[0,31,62,93,124,155,186,216,246,276,306,336];class HW{fromJulianDay(t){let n=t-bE,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-$E[a]+1;return new Zn(this,r,a+1,o)}toJulianDay(t){let n=bE-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=$E[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Xl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Iv=78,xE=80;class GW extends Yr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Iv,i=t-xu(n.era,n.year,1,1),s;i<xE?(r--,s=Ao(n.year-1)?31:30,i+=s+155+90+10):(s=Ao(n.year)?31:30,i-=xE);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 Zn(this,r,a,o)}toJulianDay(t){let n=t.year+Iv,[r,i]=Im(n),s,a;return Ao(i)?(s=31,a=xu(r,i,3,21)):(s=30,a=xu(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&&Ao(t.year+Iv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Gp=1948440,wE=1948439,qi=1300,Ml=1600,YW=460322;function Yp(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+Yp(t,r,1,1)))/29.5)+1),s=n-Yp(t,r,i,1)+1;return new Zn(e,r,i,s)}function CE(e){return(14+11*e)%30<11}class C3{fromJulianDay(t){return D_(this,Gp,t)}toJulianDay(t){return Yp(Gp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&CE(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return CE(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class ZW extends C3{fromJulianDay(t){return D_(this,wE,t)}toJulianDay(t){return Yp(wE,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const XW="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Pb,Ql;function gp(e){return YW+Ql[e-qi]}function Lf(e,t){let n=e-qi,r=1<<11-(t-1);return(Pb[n]&r)===0?29:30}function EE(e,t){let n=gp(e);for(let r=1;r<t;r++)n+=Lf(e,r);return n}function SE(e){return Ql[e+1-qi]-Ql[e-qi]}class JW extends C3{fromJulianDay(t){let n=t-Gp,r=gp(qi),i=gp(Ml);if(n<r||n>i)return super.fromJulianDay(t);{let s=qi-1,a=1,o=1;for(;o>0;){s++,o=n-gp(s)+1;let l=SE(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 Zn(this,s,a,n-EE(s,a)+1)}}toJulianDay(t){return t.year<qi||t.year>Ml?super.toJulianDay(t):Gp+EE(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<qi||t.year>Ml?super.getDaysInMonth(t):Lf(t.year,t.month)}getDaysInYear(t){return t.year<qi||t.year>Ml?super.getDaysInYear(t):SE(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pb||(Pb=new Uint16Array(Uint8Array.from(atob(XW),t=>t.charCodeAt(0)).buffer)),!Ql){Ql=new Uint32Array(Ml-qi+1);let t=0;for(let n=qi;n<=Ml;n++){Ql[n-qi]=t;for(let r=1;r<=12;r++)t+=Lf(n,r)}}}}const DE=347997,A_=1080,T_=24*A_,QW=29,eH=12*A_+793,tH=QW*T_+eH;function vu(e){return Xl(e*7+1,19)<7}function vp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Xl(3*(r+1),7)<3&&(r+=1),r}function nH(e){let t=vp(e-1),n=vp(e);return vp(e+1)-n===356?2:n-t===382?1:0}function Wf(e){return vp(e)+nH(e)}function P_(e){return Wf(e+1)-Wf(e)}function rH(e){let t=P_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function qh(e,t){if(t>=6&&!vu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=rH(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?vu(e)?30:0:30}class iH{fromJulianDay(t){let n=t-DE,r=n*T_/tH,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+=qh(i,o),o++;o--,l-=qh(i,o);let d=a-l;return new Zn(this,i,o,d)}toJulianDay(t){let n=Wf(t.year);for(let r=1;r<t.month;r++)n+=qh(t.year,r);return n+t.day+DE}getDaysInMonth(t){return qh(t.year,t.month)}getMonthsInYear(t){return vu(t.year)?13:12}getDaysInYear(t){return P_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(vu(n.year)&&!vu(t.year)&&n.month>6?t.month--:!vu(n.year)&&vu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const _b=1723856,AE=1824665,Mb=5500;function Zp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function E3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Zp(e,n,1,1))/30),i=t+1-Zp(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 S3{fromJulianDay(t){let[n,r,i]=E3(_b,t),s="AM";return n<=0&&(s="AA",n+=Mb),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Mb),Zp(_b,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 sH extends S3{fromJulianDay(t){let[n,r,i]=E3(_b,t);return n+=Mb,new Zn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class aH extends S3{fromJulianDay(t){let[n,r,i]=E3(AE,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Zn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Zp(AE,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 oH(e){switch(e){case"buddhist":return new qW;case"ethiopic":return new S3;case"ethioaa":return new sH;case"coptic":return new aH;case"hebrew":return new iH;case"indian":return new GW;case"islamic-civil":return new C3;case"islamic-tbla":return new ZW;case"islamic-umalqura":return new JW;case"japanese":return new zW;case"persian":return new HW;case"roc":return new WW;case"gregory":default:return new Yr}}let Lv=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 cH()&&(this.resolvedHourCycle||(this.resolvedHourCycle=fH(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 uH={true:{ja:"h11"},false:{}};function F_(e,t={}){if(typeof t.hour12=="boolean"&&lH()){t={...t};let i=uH[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(Lv.has(n))return Lv.get(n);let r=new Intl.DateTimeFormat(e,t);return Lv.set(n,r),r}let Vv=null;function lH(){return Vv==null&&(Vv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Vv}let Bv=null;function cH(){return Bv==null&&(Bv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Bv}function fH(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??{},dH);let{locale:t}=Rr();return T.useMemo(()=>new Zi(t,e),[t,e])}function dH(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 Nv=new Map,Fb=!1;try{Fb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Xp=!1;try{Xp=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(!Fb&&this.options.signDisplay!=null?n=pH(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Xp){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!Fb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Xp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=hH(t,n),this.options=n}}function hH(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Xp){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(Nv.has(i))return Nv.get(i);let s=new Intl.NumberFormat(e,t);return Nv.set(i,s),s}function pH(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 mH=new RegExp("^.*\\(.*\\).*$"),gH=["latn","arab","hanidec","deva","beng","fullwide"];class O_{parse(t){return jv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return jv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return jv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const TE=new Map;function jv(e,t,n){let r=PE(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of gH)if(i!==r.options.numberingSystem){let s=PE(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function PE(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=TE.get(n);return r||(r=new vH(e,t),TE.set(n,r)),r}class vH{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"&&mH.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=bH(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 _E=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),yH=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function bH(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=yH.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=>!_E.has(ae.type)).map(ae=>ME(ae.value)),S=m.flatMap(ae=>ae.filter(I=>!_E.has(I.type)).map(I=>ME(I.value))),k=[...new Set([...E,...S])].sort((ae,I)=>I.length-ae.length),M=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(),N=new Map(F.map((ae,I)=>[ae,I])),te=new RegExp(`[${F.join("")}]`,"g");return{minusSign:b,plusSign:w,decimal:D,group:C,literals:M,numeral:te,index:ae=>String(N.get(ae))}}function xf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function ME(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $H(e={}){let{locale:t}=Rr();return T.useMemo(()=>new k_(t,e),[t,e])}let Kv=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(Kv.has(n))return Kv.get(n);let r=new Intl.Collator(t,e);return Kv.set(n,r),r}function L_(e){let t=I_({usage:"search",...e}),n=T.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=T.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=T.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 T.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function xH(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:x="button"}=e,D;n==="button"?D={type:x,disabled:r,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:D={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?x:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?w:void 0};let{pressProps:C,isPressed:E}=Rd({onPressStart:s,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:o,onClick:m,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:S}=p3(e,t);h&&(S.tabIndex=r?-1:S.tabIndex);let k=Qt(S,C,Qa(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 FE=T.createContext(null),Rb="react-aria-focus-scope-restore";let gn=null;function wH(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=T.useRef(null),a=T.useRef(null),o=T.useRef([]),{parentNode:l}=T.useContext(FE)||{},d=T.useMemo(()=>new Ob({scopeRef:o}),[o]);vn(()=>{let g=l||er.root;if(er.getTreeNode(g.scopeRef)&&gn&&!Jp(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=[],x=D=>D.stopPropagation();for(;b&&b!==a.current;)w.push(b),b.addEventListener(Rb,x),b=b.nextSibling;return o.current=w,()=>{for(let D of w)D.removeEventListener(Rb,x)}},[t]),TH(o,r,n),SH(o,n),PH(o,r,n),AH(o,i),T.useEffect(()=>{const g=or(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 x=(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||Jp(o,gn))&&(!x||er.getTreeNode(x))&&(gn=x),er.removeTreeNode(o)},[o]);let h=T.useMemo(()=>CH(o),[]),m=T.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return T.createElement(FE.Provider,{value:m},T.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,T.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function CH(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:a}=t;var o;let l=r||or(Jt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[0].previousElementSibling,h=wu(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||or(Jt((o=n[0])!==null&&o!==void 0?o:void 0)),d=n[n.length-1].nextElementSibling,h=wu(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=wu(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=wu(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 wu(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 EH(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 SH(e,t){let n=T.useRef(void 0),r=T.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=or(s),m=e.current;if(!m||!rs(h,m))return;let g=wu(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||Jp(gn,e))&&rs(sn(d),e.current)?(gn=e,n.current=sn(d)):Vf(e)&&!To(sn(d),e)?n.current?n.current.focus():gn&&gn.current&&kb(gn.current):Vf(e)&&(n.current=sn(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=id(),m=(h==="virtual"||h===null)&&o3()&&L5(),g=or(s);if(!m&&g&&Vf(e)&&!To(g,e)){gn=e;let w=sn(d);if(w&&w.isConnected){var b;n.current=w,(b=n.current)===null||b===void 0||b.focus()}else gn.current&&kb(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 To(e)}function rs(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function To(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 DH(e){return To(e,gn)}function Jp(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{zu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function B_(e,t=!0){let n=e[0].previousElementSibling,r=wu(e),i=Ur(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=wu(e),i=Ur(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function kb(e,t=!0){ai(B_(e,t))}function AH(e,t){const n=T.useRef(t);T.useEffect(()=>{if(n.current){gn=e;const r=Jt(e.current?e.current[0]:void 0);!rs(or(r),gn.current)&&e.current&&kb(e.current)}n.current=!1},[e])}function TH(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=sn(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 RE(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 PH(e,t,n){const r=T.useRef(typeof document<"u"?or(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||Jp(gn,e))&&rs(or(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(!To(o,e)||!RE(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||!To(m,e))&&d){h.currentNode=d;do m=a.shiftKey?h.previousNode():h.nextNode();while(To(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=or(i);if(t&&l&&(d&&To(d,e)||d===i.body&&RE(e))){let h=er.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){kE(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);kE(g);return}m=m.parent}}})}}}},[e,t])}function kE(e){e.dispatchEvent(new CustomEvent(Rb,{bubbles:!0,cancelable:!0}))&&ai(e)}function Ur(e,t,n){let r=t!=null&&t.tabbable?Oq:K5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=Jt(i),a=oq(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"&&(!EH(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 Nm(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||or(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||or(Jt(r)),d=Ur(r,{tabbable:s,accept:o});if(r.contains(l))d.currentNode=l;else{let m=Uv(d);return m&&ai(m,!0),m??null}let h=d.previousNode();if(!h&&a){d.currentNode=r;let m=Uv(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=Uv(a);return o&&ai(o,!0),o??null}}}function Uv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class D3{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 Ob({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 D3;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 Ob({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ob{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 D3;function N_(e){let t=MH(Jt(e));t!==e&&(t&&_H(t,e),e&&A3(e,t))}function _H(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function A3(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function MH(e){let t=or(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 Vd={};Vd={"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 T3=new WeakMap;function ld(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function FH(e){let t=da(x6(Vd),"@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:ld(n)||ld(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return T.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=Lb(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:o})}return""},[n,r,a,e.timeZone,t,s])}function Ib(e,t,n,r){let i=da(x6(Vd),"@react-aria/calendar"),s=ld(e)||ld(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 T.useMemo(()=>{if(nr(e,Id(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,Sb(e)))return a.format(l.toDate(n));if(nr(t,Sb(t)))return r?Lb(a,i,l,d,n):a.formatRange(l.toDate(n),d.toDate(n))}return r?Lb(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,o,i,n,r])}function Lb(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 ec(e,t="assertive",n=w6){Ui?Ui.announce(e,t,n):(Ui=new kH,(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 RH(e){Ui&&Ui.clear(e)}class kH{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 OH(e){return e&&e.__esModule?e.default:e}function C6(e,t){let n=da(OH(Vd),"@react-aria/calendar"),r=Qa(e),i=Ib(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Ib(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);vb(()=>{t.isFocused||ec(s)},[s]);let a=FH(t);vb(()=>{a&&ec(a,"polite",4e3)},[a]);let o=lc([!!e.errorMessage,e.isInvalid,e.validationState]);T3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:o,selectedDateDescription:a});let[l,d]=T.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=T.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 IH(e,t){return C6(e,t)}function LH(e,t,n){let r=C6(e,t),i=T.useRef(!1),s=T.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 VH(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),a=x=>{switch(x.key){case"Enter":case" ":x.preventDefault(),t.selectFocusedDate();break;case"PageUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousSection(x.shiftKey);break;case"PageDown":x.preventDefault(),x.stopPropagation(),t.focusNextSection(x.shiftKey);break;case"End":x.preventDefault(),x.stopPropagation(),t.focusSectionEnd();break;case"Home":x.preventDefault(),x.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":x.preventDefault(),x.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":x.preventDefault(),x.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":x.preventDefault(),x.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(x.preventDefault(),t.setAnchorDate(null));break}},o=Ib(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=T3.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=T.useMemo(()=>{let x=sd(Vm(t.timeZone),g,i);return[...new Array(7).keys()].map(D=>{let E=x.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 BH(e){return e&&e.__esModule?e.default:e}function NH(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:a}=T3.get(t),o=da(BH(Vd),"@react-aria/calendar"),l=ea({weekday:"long",day:"numeric",month:"long",year:"numeric",era:ld(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,Eb);let w=T.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),x=a_(r,t.timeZone),D=T.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),x?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,x,r,t,a]),C="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?C=o.format("finishRangeSelectionPrompt"):C=o.format("startRangeSelectionPrompt"));let E=Md(C),S=T.useRef(!1),k=T.useRef(!1),M=T.useRef(void 0),{pressProps:F,isPressed:N}=Rd({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),M.current=void 0,t.selectDate(r),t.setFocusedDate(r),S.current=!0};I.pointerType==="touch"?M.current=setTimeout(xe,200):xe()}},onPressEnd(){k.current=!1,S.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(I){if(!t.isReadOnly&&("anchorDate"in t&&M.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))}}),te;i||(te=nr(r,t.focusedDate)?0:-1),T.useEffect(()=>{h&&n.current&&(Ai(n.current),id()!=="pointer"&&document.activeElement===n.current&&Up(n.current,{containingElement:km(n.current)}))},[h,n]);let ce=ea({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=T.useMemo(()=>ce.formatToParts(w).find(I=>I.type==="day").value,[ce,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:te,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:N,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const jm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},E6={...jm,customError:!0,valid:!1},yu={isInvalid:!1,validationDetails:jm,validationErrors:[]},jH=T.createContext({}),hc="__formValidationState"+Date.now();function Bd(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 KH(e)}function KH(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=T.useMemo(()=>{if(!a||i==null)return null;let ae=UH(a,i);return OE(ae)},[a,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=T.useContext(jH),m=T.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>Vb(h[ae])):Vb(h[r]):[],[h,r]),[g,b]=T.useState(h),[w,x]=T.useState(!1);h!==g&&(b(h),x(!1));let D=T.useMemo(()=>OE(w?[]:m),[w,m]),C=T.useRef(yu),[E,S]=T.useState(yu),k=T.useRef(yu),M=()=>{if(!F)return;N(!1);let ae=d||s||C.current;zv(ae,k.current)||(k.current=ae,S(ae))},[F,N]=T.useState(!1);return T.useEffect(M),{realtimeValidation:l||D||d||s||yu,displayValidation:o==="native"?l||D||E:l||D||d||s||E,updateValidation(ae){o==="aria"&&!zv(E,ae)?S(ae):C.current=ae},resetValidation(){let ae=yu;zv(ae,k.current)||(k.current=ae,S(ae)),o==="native"&&N(!1),x(!0)},commitValidation(){o==="native"&&N(!0),x(!0)}}}function Vb(e){return e?Array.isArray(e)?e:[e]:[]}function UH(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Vb(n)}return[]}function OE(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:E6}:null}function zv(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 Qp(...e){let t=new Set,n=!1,r={...jm};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(qH(n.current))}});let s=T.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&&WH(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),J5("keyboard")}d.preventDefault()}),l=kn(()=>{t.commitValidation()});T.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 zH(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 qH(e){return{isInvalid:!e.validity.valid,validationDetails:zH(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function WH(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Km(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 Um(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:a}=Km(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 HH=0,GH=100,YH=1;function ZH(e){const{isDisabled:t=!1,minValue:n=HH,maxValue:r=GH,numberFormatter:i,step:s=YH,orientation:a="horizontal"}=e;let o=T.useMemo(()=>{let ue=(r-n)/10;return ue=bf(ue,0,ue+s,s),Math.max(ue,s)},[s,r,n]),l=T.useCallback(ue=>ue==null?void 0:ue.map((De,Pe)=>{let Fe=Pe===0?n:ue[Pe-1],He=Pe===ue.length-1?r:ue[Pe+1];return bf(De,Fe,He,s)}),[n,r,s]),d=T.useMemo(()=>l(LE(e.value)),[e.value,l]),h=T.useMemo(()=>{var ue;return l((ue=LE(e.defaultValue))!==null&&ue!==void 0?ue:[n])},[e.defaultValue,n,l]),m=VE(e.value,e.defaultValue,e.onChange),g=VE(e.value,e.defaultValue,e.onChangeEnd);const[b,w]=Ti(d,h,m);let[x]=T.useState(b);const[D,C]=T.useState(new Array(b.length).fill(!1)),E=T.useRef(new Array(b.length).fill(!0)),[S,k]=T.useState(void 0),M=T.useRef(b),F=T.useRef(D);let N=ue=>{M.current=ue,w(ue)},te=ue=>{F.current=ue,C(ue)};function ce(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 He=IE(M.current,ue,De);N(He)}function ee(ue,De){if(t||!xe(ue))return;De&&(M.current=b);const Pe=F.current[ue];F.current=IE(F.current,ue,De),te(F.current),g&&Pe&&!F.current.some(Boolean)&&g(M.current)}function U(ue){return i.format(ue)}function O(ue,De){z(ue,ne(De))}function V(ue){return Math.round((ue-n)/s)*s+n}function ne(ue){const De=ue*(r-n)+n;return fc(V(De),n,r)}function K(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:x,getThumbValue:ue=>b[ue],setThumbValue:z,setThumbPercent:O,isThumbDragging:ue=>D[ue],setThumbDragging:ee,focusedThumb:S,setFocusedThumb:k,getThumbPercent:ue=>ce(b[ue]),getValuePercent:ce,getThumbValueLabel:ue=>U(b[ue]),getFormattedValue:U,getThumbMinValue:ae,getThumbMaxValue:I,getPercentValue:ne,isThumbEditable:xe,setThumbEditable:Ce,incrementThumb:K,decrementThumb:le,step:s,pageSize:o,orientation:a,isDisabled:t}}function IE(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function LE(e){if(e!=null)return Array.isArray(e)?e:[e]}function VE(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const BE={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 XH(e={}){let{style:t,isFocusable:n}=e,[r,i]=T.useState(!1),{focusWithinProps:s}=Cc({isDisabled:!n,onFocusWithinChange:o=>i(o)}),a=T.useMemo(()=>r?t:t?{...BE,...t}:BE,[r]);return{visuallyHiddenProps:{...s,style:a}}}function JH(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:a}=XH(e);return T.createElement(n,Qt(s,a),t)}const P3=new WeakMap;function Bb(e,t){let n=P3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function QH(e,t,n){let{labelProps:r,fieldProps:i}=Km(e),s=e.orientation==="vertical";var a;P3.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}=Lo();const h=T.useRef(null),m=o==="rtl",g=T.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(),M=s?S:k;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*M);let F=s?E:C;if((s||m)&&(F=-F),g.current+=F,h.current!=null&&n.current){const N=fc(g.current/M,0,1);t.setThumbPercent(h.current,N)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let w=T.useRef(void 0),x=(C,E,S,k)=>{if(n.current&&!e.isDisabled&&t.values.every((M,F)=>!t.isThumbDragging(F))){let{height:M,width:F,top:N,left:te}=n.current.getBoundingClientRect(),ce=s?M:F,Ce=((s?k:S)-(s?N:te))/ce;(o==="rtl"||s)&&(Ce=1-Ce);let z=t.getPercentValue(Ce),ee,U=t.values.findIndex(O=>z-O<0);if(U===0)ee=U;else if(U===-1)ee=t.values.length-1;else{let O=t.values[U-1],V=t.values[U];Math.abs(O-z)<Math.abs(V-z)?ee=U-1:ee=U}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(Bb(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||x(C,void 0,C.clientX,C.clientY)},onPointerDown(C){C.pointerType==="mouse"&&(C.button!==0||C.altKey||C.ctrlKey||C.metaKey)||x(C,C.pointerId,C.clientX,C.clientY)},onTouchStart(C){x(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)=>Bb(t,E)).join(" "),"aria-live":"off"}}}function eG(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:x}=Lo(),D=P3.get(t);var C;const{labelProps:E,fieldProps:S}=Km({...e,id:Bb(t,n),"aria-labelledby":`${D.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),k=t.values[n],M=T.useCallback(()=>{o.current&&Ai(o.current)},[o]),F=t.focusedThumb===n;T.useEffect(()=>{F&&M()},[F,M]);let N=b==="rtl",te=T.useRef(null),{keyboardProps:ce}=Q5({onKeyDown(O){let{getThumbMaxValue:V,getThumbMinValue:ne,decrementThumb:K,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":K(n,Pe);break;case"Home":ue(n,ne(n));break;case"End":ue(n,V(n));break}De(n,!1)}}),{moveProps:ae}=e_({onMoveStart(){te.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:O,deltaY:V,pointerType:ne,shiftKey:K}){const{getThumbPercent:le,setThumbPercent:ue,decrementThumb:De,incrementThumb:Pe,step:Fe,pageSize:He}=t;if(!a.current)return;let{width:Xe,height:Be}=a.current.getBoundingClientRect(),Ge=g?Be:Xe;if(te.current==null&&(te.current=le(n)*Ge),ne==="keyboard")O>0&&N||O<0&&!N||V>0?De(n,K?He:Fe):Pe(n,K?He:Fe);else{let Me=g?V:O;(g||N)&&(Me=-Me),te.current+=Me,ue(n,fc(te.current/Ge,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!m);const{focusableProps:I}=p3(Qt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),o);let xe=T.useRef(void 0),Ce=O=>{M(),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,ne;((ne=O.pointerId)!==null&&ne!==void 0?ne:(V=O.changedTouches)===null||V===void 0?void 0:V[0].identifier)===xe.current&&(M(),t.setThumbDragging(n,!1),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1))},ee=t.getThumbPercent(n);(g||b==="rtl")&&(ee=1-ee);let U=m?{}:Qt(ce,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 u3(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:{...U,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 tG(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}=p3(e,t),m=Bd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:w}=m.displayValidation,{labelProps:x,fieldProps:D,descriptionProps:C,errorMessageProps:E}=Um({...e,isInvalid:g,errorMessage:e.errorMessage||b}),S=Qa(e,{labelable:!0});const k={type:a,pattern:e.pattern};let[M]=T.useState(l);var F;return u3(t,(F=e.defaultValue)!==null&&F!==void 0?F:M,d),S6(e,m,t),T.useEffect(()=>{if(t.current instanceof ca(t.current).HTMLTextAreaElement){let N=t.current;Object.defineProperty(N,"defaultValue",{get:()=>N.value,set:()=>{},configurable:!0})}},[t]),{labelProps:x,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:N=>d(N.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(T.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 nG(e){return e&&e.__esModule?e.default:e}function rG(e){const t=T.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 x=da(nG(aM),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);T.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=T.useRef(!1),S=()=>{E.current=!0},k=()=>{E.current=!1},M=r===""?x.format("Empty"):(r||`${n}`).replace("-","−");T.useEffect(()=>{E.current&&(RH("assertive"),ec(M,"assertive"))},[M]);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)}),N=kn(I=>{D(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&N(60)},I)});let te=I=>{I.preventDefault()},{addGlobalListener:ce,removeAllGlobalListeners:ae}=Lo();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":M,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":a||void 0,"aria-readonly":o||void 0,"aria-required":l||void 0,onKeyDown:C,onFocus:S,onBlur:k},incrementButtonProps:{onPressStart:()=>{F(400),ce(window,"contextmenu",te)},onPressEnd:()=>{D(),ae()},onFocus:S,onBlur:k},decrementButtonProps:{onPressStart:()=>{N(400),ce(window,"contextmenu",te)},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"},em={top:"bottom",bottom:"top",left:"right",right:"left"},iG={top:"left",left:"top"},Nb={top:"height",left:"width"},KM={width:"totalWidth",height:"totalHeight"},Wh={};let mr=typeof document<"u"?window.visualViewport:null;function NE(e){let t=0,n=0,r=0,i=0,s=0,a=0,o={};var l;let d=((l=mr==null?void 0:mr.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=mr==null?void 0:mr.width)!==null&&h!==void 0?h:r;var m;n=(m=mr==null?void 0:mr.height)!==null&&m!==void 0?m:i,o.top=w.scrollTop||e.scrollTop,o.left=w.scrollLeft||e.scrollLeft,mr&&(s=mr.offsetTop,a=mr.offsetLeft)}else({width:t,height:n,top:s,left:a}=tc(e)),o.top=e.scrollTop,o.left=e.scrollLeft,r=t,i=n;if(a3()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){o.top=0,o.left=0;var g;s=(g=mr==null?void 0:mr.pageTop)!==null&&g!==void 0?g:0;var b;a=(b=mr==null?void 0:mr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:o,top:s,left:a}}function sG(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function jE(e,t,n,r,i,s,a){var o;let l=(o=i.scroll[e])!==null&&o!==void 0?o:0,d=r[Nb[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 aG(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 KE(e){if(Wh[e])return Wh[e];let[t,n]=e.split(" "),r=ta[t]||"right",i=iG[r];ta[n]||(n="center");let s=Nb[r],a=Nb[i];return Wh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:a},Wh[e]}function qv(e,t,n,r,i,s,a,o,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:w,crossSize:x}=r,D={};var C;D[b]=(C=e[b])!==null&&C!==void 0?C:0;var E,S,k,M;m==="center"?D[b]+=(((E=e[x])!==null&&E!==void 0?E:0)-((S=n[x])!==null&&S!==void 0?S:0))/2:m!==b&&(D[b]+=((k=e[x])!==null&&k!==void 0?k:0)-((M=n[x])!==null&&M!==void 0?M:0)),D[b]+=s;const F=e[b]-n[x]+l+d,N=e[b]+e[x]-l-d;if(D[b]=fc(D[b],F,N),h===g){const te=o?a[w]:t[KM[w]];D[em[g]]=Math.floor(te-e[g]+i)}else D[g]=Math.floor(e[g]+e[w]+i);return D}function oG(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,x,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))-(((x=i.top)!==null&&x!==void 0?x:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+s));return Math.min(t.height-s*2,C)}function UE(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[em[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[em[o]]-i)}function uG(e,t,n,r,i,s,a,o,l,d,h,m,g,b,w,x){let D=KE(e),{size:C,crossAxis:E,crossSize:S,placement:k,crossPlacement:M}=D,F=qv(t,o,n,D,h,m,d,g,w,x),N=h,te=UE(o,d,t,i,s+h,D);if(a&&r[C]>te){let Pe=KE(`${em[k]} ${M}`),Fe=qv(t,o,n,Pe,h,m,d,g,w,x);UE(o,d,t,i,s+h,Pe)>te&&(D=Pe,F=Fe,N=h)}let ce="bottom";D.axis==="top"?D.placement==="top"?ce="top":D.placement==="bottom"&&(ce="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?ce="bottom":D.crossPlacement==="bottom"&&(ce="top"));let ae=jE(E,F[E],n[S],o,l,s,d);F[E]+=ae;let I=oG(F,o,d,g,i,s,n.height,ce);b&&b<I&&(I=b),n.height=Math.min(n.height,I),F=qv(t,o,n,D,N,m,d,g,w,x),ae=jE(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+x;var ee,U,O,V;const ne=ta[E]==="left"?((ee=i.left)!==null&&ee!==void 0?ee:0)+((U=i.right)!==null&&U!==void 0?U:0):((O=i.top)!==null&&O!==void 0?O:0)+((V=i.bottom)!==null&&V!==void 0?V:0),K=n[S]-ne-w/2-x,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,K),{position:F,maxHeight:I,arrowOffsetLeft:xe.left,arrowOffsetTop:xe.top,placement:D.placement}}function lG(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?cG(r):document.documentElement,w=b===document.documentElement;const x=window.getComputedStyle(b).position;let D=!!x&&x!=="static",C=w?tc(n):zE(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=tc(r),S=aG(r);var k,M;E.width+=((k=S.left)!==null&&k!==void 0?k:0)+((M=S.right)!==null&&M!==void 0?M:0);var F,N;E.height+=((F=S.top)!==null&&F!==void 0?F:0)+((N=S.bottom)!==null&&N!==void 0?N:0);let te=sG(i),ce=NE(o),ae=NE(b),I=o.tagName==="BODY"?tc(b):zE(b,o);return b.tagName==="HTML"&&o.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),uG(t,C,E,te,S,s,a,ce,ae,I,l,d,D,h,m,g)}function tc(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 zE(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=tc(e);let i=tc(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 cG(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!qE(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!qE(t);)t=t.parentElement;return t||document.documentElement}function qE(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 fG(e){let{triggerRef:t,isOpen:n,onClose:r}=e;T.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 dG(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:x,arrowBoundaryOffset:D=0}=e,[C,E]=T.useState(null),S=[g,a,i.current,r.current,s.current,o,l,d,h,m,b,t,x,D,n],k=T.useRef(Hn==null?void 0:Hn.scale);T.useEffect(()=>{b&&(k.current=Hn==null?void 0:Hn.scale)},[b]);let M=T.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(),ne=s.current.getBoundingClientRect();var xe;if(ae={type:"top",offset:((xe=V==null?void 0:V.top)!==null&&xe!==void 0?xe:0)-ne.top},ae.offset>ne.height/2){ae.type="bottom";var Ce;ae.offset=((Ce=V==null?void 0:V.bottom)!==null&&Ce!==void 0?Ce:0)-ne.bottom}}let z=i.current;if(!x&&i.current){var ee;z.style.top="0px",z.style.bottom="";var U;z.style.maxHeight=((U=(ee=window.visualViewport)===null||ee===void 0?void 0:ee.height)!==null&&U!==void 0?U:window.innerHeight)+"px"}let O=lG({placement:pG(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:o,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:x,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(),ne=s.current.getBoundingClientRect(),K=V[ae.type]-ne[ae.type];s.current.scrollTop+=K-ae.offset}E(O)}},S);vn(M,S),hG(M),qC({ref:i,onResize:M}),qC({ref:r,onResize:M});let F=T.useRef(!1);vn(()=>{let ae,I=()=>{F.current=!0,clearTimeout(ae),ae=setTimeout(()=>{F.current=!1},500),M()},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)}},[M]);let N=T.useCallback(()=>{F.current||w==null||w()},[w,F]);fG({triggerRef:r,isOpen:b,onClose:w&&N});var te,ce;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...C==null?void 0:C.position,maxHeight:(te=C==null?void 0:C.maxHeight)!==null&&te!==void 0?te:"100vh"}},placement:(ce=C==null?void 0:C.placement)!==null&&ce!==void 0?ce:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C==null?void 0:C.arrowOffsetLeft,top:C==null?void 0:C.arrowOffsetTop}},updatePosition:M}}function hG(e){vn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function pG(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Gs=[];function mG(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:o}=e;T.useEffect(()=>{if(i&&!Gs.includes(t))return Gs.push(t),()=>{let w=Gs.indexOf(t);w>=0&&Gs.splice(w,1)}},[i,t]);let l=()=>{Gs[Gs.length-1]===t&&n&&n()},d=w=>{(!o||o(w.target))&&Gs[Gs.length-1]===t&&(w.stopPropagation(),w.preventDefault())},h=w=>{(!o||o(w.target))&&(Gs[Gs.length-1]===t&&(w.stopPropagation(),w.preventDefault()),l())},m=w=>{w.key==="Escape"&&!a&&!w.nativeEvent.isComposing&&(w.stopPropagation(),w.preventDefault(),l())};tW({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=Cc({isDisabled:!r,onBlurWithin:w=>{!w.relatedTarget||DH(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 gG(e,t,n){let{type:r}=e,{isOpen:i}=t;T.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 Wv=typeof document<"u"&&window.visualViewport,vG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Hh=0,Hv;function yG(e={}){let{isDisabled:t}=e;vn(()=>{if(!t)return Hh++,Hh===1&&(_d()?Hv=$G():Hv=bG()),()=>{Hh--,Hh===0&&Hv()}},[t])}function bG(){let e=window.innerWidth-document.documentElement.clientWidth;return Ro(e>0&&("scrollbarGutter"in document.documentElement.style?Cu(document.documentElement,"scrollbarGutter","stable"):Cu(document.documentElement,"paddingRight",`${e}px`)),Cu(document.documentElement,"overflow","hidden"))}function $G(){let e,t,n=d=>{e=km(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Cu(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;xG(h)&&(o(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Wv&&(Wv.height<window.innerHeight?requestAnimationFrame(()=>{WE(h)}):Wv.addEventListener("resize",()=>WE(h),{once:!0}))}))},a=null,o=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;a=Ro(wf(window,"scroll",d),Cu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Cu(document.documentElement,"overflow","hidden"),Cu(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Ro(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 Cu(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 WE(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=km(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 xG(e){return e instanceof HTMLInputElement&&!vG.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const wG=T.createContext({});function CG(){var e;return(e=T.useContext(wG))!==null&&e!==void 0?e:{}}const EG=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)&&EG,o=new Set(e),l=new Set,d=x=>a&&x instanceof n.HTMLElement?x.inert:x.getAttribute("aria-hidden")==="true",h=(x,D)=>{a&&x instanceof n.HTMLElement?x.inert=D:D?x.setAttribute("aria-hidden","true"):x.removeAttribute("aria-hidden")},m=x=>{for(let S of x.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(x,NodeFilter.SHOW_ELEMENT,{acceptNode:D}),E=D(x);if(E===NodeFilter.FILTER_ACCEPT&&g(x),E!==NodeFilter.FILTER_REJECT){let S=C.nextNode();for(;S!=null;)g(S),S=C.nextNode()}},g=x=>{var D;let C=(D=Cf.get(x))!==null&&D!==void 0?D:0;d(x)&&C===0||(C===0&&h(x,!0),l.add(x),Cf.set(x,C+1))};si.length&&si[si.length-1].disconnect(),m(s);let b=new MutationObserver(x=>{for(let D of x)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 x of l){let D=Cf.get(x);D!=null&&(D===1?(h(x,!1),Cf.delete(x)):Cf.set(x,D-1))}w===si[si.length-1]?(si.pop(),si.length&&si[si.length-1].observe()):si.splice(si.indexOf(w),1)}}function SG(e){let t=si[si.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function DG(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}=mG({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:o},i??r),{overlayProps:g,arrowProps:b,placement:w}=dG({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s&&!d?t.close:null});return yG({isDisabled:s||!t.isOpen}),T.useEffect(()=>{if(t.isOpen&&r.current){var x,D;return s?SG((x=i==null?void 0:i.current)!==null&&x!==void 0?x: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=T.createContext(null);function AG(e){let t=i3(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=T.useState(!1),a=T.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:o}=CG();if(!e.portalContainer&&o&&(n=o()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=T.createElement(wH,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=T.createElement(qM.Provider,{value:a},T.createElement(Jq,null,l)),qa.createPortal(l,n)}function TG(){let e=T.useContext(qM),t=e==null?void 0:e.setContain;vn(()=>{t==null||t(!0)},[t])}const zm=new WeakMap;function PG(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function WM(e,t){let n=zm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${PG(t)}`}function jb(e){return dp()?e.altKey:e.ctrlKey}function yp(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 _G(e){let t=Hr();return HM.set(e,t),t}function MG(e){return HM.get(e)}const FG=1e3;function RG(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=T.useRef({search:"",timeout:void 0}).current,s=a=>{let o=kG(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=""},FG)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function kG(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:x="action"}=e,{direction:D}=Rr(),C=Rm(),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 ne=(Ae,Ye)=>{if(Ae!=null){if(t.isLink(Ae)&&x==="selection"&&d&&!jb(O)){qa.flushSync(()=>{t.setFocusedKey(Ae,Ye)});let ht=yp(r,Ae),Gt=t.getItemProps(Ae);ht&&C.open(ht,O,Gt.href,Gt.routerOptions);return}if(t.setFocusedKey(Ae,Ye),t.isLink(Ae)&&x==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Ae):d&&!jb(O)&&t.replaceSelection(Ae)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,le,ue;let Ae=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.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(),ne(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(),ne(Ae))}break;case"ArrowLeft":if(n.getKeyLeftOf){var He,Xe,Be;let Ae=t.focusedKey!=null?(He=n.getKeyLeftOf)===null||He===void 0?void 0:He.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(),ne(Ae,D==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,Me,Le;let Ae=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.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(),ne(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,kl(O));t.setFocusedKey(Ae),Ae!=null&&(kl(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,kl(O));t.setFocusedKey(Ae),Ae!=null&&(kl(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(),ne(Ae))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Ae=n.getKeyPageAbove(t.focusedKey);Ae!=null&&(O.preventDefault(),ne(Ae))}break;case"a":kl(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}),Ye,ht;do ht=Ae.lastChild(),ht&&(Ye=ht);while(ht);Ye&&!Ye.contains(document.activeElement)&&Ai(Ye)}break}}},S=T.useRef({top:0,left:0});Qs(w,"scroll",b?void 0:()=>{var O,V,ne,K;S.current={top:(ne=(O=w.current)===null||O===void 0?void 0:O.scrollTop)!==null&&ne!==void 0?ne:0,left:(K=(V=w.current)===null||V===void 0?void 0:V.scrollLeft)!==null&&K!==void 0?K: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,ne;let ue=Pe=>{Pe!=null&&(t.setFocusedKey(Pe),d&&!t.isSelected(Pe)&&t.replaceSelection(Pe))},De=O.relatedTarget;var K,le;De&&O.currentTarget.compareDocumentPosition(De)&Node.DOCUMENT_POSITION_FOLLOWING?ue((K=t.lastSelectedKey)!==null&&K!==void 0?K:(V=n.getLastKey)===null||V===void 0?void 0:V.call(n)):ue((le=t.firstSelectedKey)!==null&&le!==void 0?le:(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.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=yp(r,t.focusedKey);ue instanceof HTMLElement&&(!ue.contains(document.activeElement)&&!m&&Ai(ue),id()==="keyboard"&&Up(ue,{containingElement:r.current}))}}},M=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},F=T.useRef(!1);Qs(r,Pq,m?O=>{let{detail:V}=O;O.stopPropagation(),t.setFocused(!0),(V==null?void 0:V.focusStrategy)==="first"&&(F.current=!0)}:void 0);let N=kn(()=>{var O,V;let ne=(V=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&V!==void 0?V:null;if(ne==null){let K=or();N_(r.current),A3(K,null),t.collection.size>0&&(F.current=!1)}else t.setFocusedKey(ne),F.current=!1});zC(()=>{F.current&&N()},[t.collection,N]);let te=kn(()=>{t.collection.size>0&&(F.current=!1)});zC(()=>{te()},[t.focusedKey,te]),Qs(r,Tq,m?O=>{var V;O.stopPropagation(),t.setFocused(!1),!((V=O.detail)===null||V===void 0)&&V.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ce=T.useRef(i),ae=T.useRef(!1);T.useEffect(()=>{if(ce.current){var O,V;let le=null;var ne;i==="first"&&(le=(ne=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&ne!==void 0?ne:null);var K;i==="last"&&(le=(K=(V=n.getLastKey)===null||V===void 0?void 0:V.call(n))!==null&&K!==void 0?K: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&&zu(r.current),t.collection.size>0&&(ce.current=!1,ae.current=!0)}});let I=T.useRef(t.focusedKey),xe=T.useRef(null);T.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==I.current||ae.current)&&w.current&&r.current){let O=id(),V=yp(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"&&Up(V,{containingElement:r.current}))}))}!m&&t.isFocused&&t.focusedKey==null&&I.current!=null&&r.current&&zu(r.current),I.current=t.focusedKey,ae.current=!1}),T.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:M,onMouseDown(O){w.current===O.target&&O.preventDefault()}},{typeSelectProps:z}=RG({keyboardDelegate:n,selectionManager:t});h||(Ce=Qt(z,Ce));let ee;m||(ee=t.focusedKey==null?0:-1);let U=_G(t.collection);return{collectionProps:Qt(Ce,{tabIndex:ee,"data-collection":U})}}function OG(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=Rm();t=Hr(t);let b=ne=>{if(ne.pointerType==="keyboard"&&jb(ne))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let K=n.getItemProps(r);g.open(i.current,ne,K.href,K.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):ne&&ne.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||ne&&(kl(ne)||ne.pointerType==="touch"||ne.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};T.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(a?N_(i.current):o?o():document.activeElement!==i.current&&i.current&&zu(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(ne){ne.target===i.current&&n.setFocusedKey(r)}}:l&&(w.onMouseDown=ne=>{ne.preventDefault()});let x=n.isLink(r)&&m==="override",D=n.isLink(r)&&m!=="selection"&&m!=="none",C=!l&&n.canSelectItem(r)&&!x,E=(d||D)&&!l,S=E&&(n.selectionBehavior==="replace"?!C:!C||n.isEmpty),k=E&&C&&n.selectionBehavior==="replace",M=S||k,F=T.useRef(null),N=M&&C,te=T.useRef(!1),ce=T.useRef(!1),ae=n.getItemProps(r),I=ne=>{d&&d(),D&&i.current&&g.open(i.current,ne,ae.href,ae.routerOptions)},xe={ref:i};if(s?(xe.onPressStart=ne=>{F.current=ne.pointerType,te.current=N,ne.pointerType==="keyboard"&&(!M||GE())&&b(ne)},h?(xe.onPressUp=S?void 0:ne=>{ne.pointerType==="mouse"&&C&&b(ne)},xe.onPress=S?I:ne=>{ne.pointerType!=="keyboard"&&ne.pointerType!=="mouse"&&C&&b(ne)}):xe.onPress=ne=>{if(S||k&&ne.pointerType!=="mouse"){if(ne.pointerType==="keyboard"&&!HE())return;I(ne)}else ne.pointerType!=="keyboard"&&C&&b(ne)}):(xe.onPressStart=ne=>{F.current=ne.pointerType,te.current=N,ce.current=S,C&&(ne.pointerType==="mouse"&&!S||ne.pointerType==="keyboard"&&(!E||GE()))&&b(ne)},xe.onPress=ne=>{(ne.pointerType==="touch"||ne.pointerType==="pen"||ne.pointerType==="virtual"||ne.pointerType==="keyboard"&&M&&HE()||ne.pointerType==="mouse"&&ce.current)&&(M?I(ne):C&&b(ne))}),w["data-collection"]=MG(n.collection),w["data-key"]=r,xe.preventFocusOnPress=a,a&&(xe=Qt(xe,{onPressStart(ne){ne.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(ne){ne.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}})),ae)for(let ne of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])ae[ne]&&(xe[ne]=Ro(xe[ne],ae[ne]));let{pressProps:Ce,isPressed:z}=Rd(xe),ee=k?ne=>{F.current==="mouse"&&(ne.stopPropagation(),ne.preventDefault(),I(ne))}:void 0,{longPressProps:U}=t_({isDisabled:!N,onLongPress(ne){ne.pointerType==="touch"&&(b(ne),n.setSelectionBehavior("toggle"))}}),O=ne=>{F.current==="touch"&&te.current&&ne.preventDefault()},V=m!=="none"&&n.isLink(r)?ne=>{Ku.isOpening||ne.preventDefault()}:void 0;return{itemProps:Qt(w,C||S||a&&!l?Ce:{},N?U:{},{onDoubleClick:ee,onDragStartCapture:O,onClick:V,id:t},a?{onMouseDown:ne=>ne.preventDefault()}:void 0),isPressed:z,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:C,hasAction:M}}function HE(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function GE(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class YE{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?yp(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&&!rd(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&&!rd(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 YE(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 YE(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function IG(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=T.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 LG(e,t,n){let r=Qa(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:a}=IG({...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);zm.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}=Km({...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:VG(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];T.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function VG(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&T.Children.count(e.children)>0)}let BG=ZM;class NG{build(t,n){return this.context=n,ZE(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(T.isValidElement(n)&&n.type===T.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=[];T.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(T.isValidElement(t.element)&&t.element.type===T.Fragment){let D=[];T.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(T.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 M=(l=k.key)!==null&&l!==void 0?l:null;M==null&&(M=k.element?null:this.getKey(a,t,n,r));let N=[...this.getFullNode({...k,key:M,index:E,wrapper:jG(t.wrapper,k.wrapper)},this.getChildState(n,k),r?`${r}${a.key}`:a.key,i)];for(let te of N){var d,h;te.value=(h=(d=k.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,te.value&&this.cache.set(te.value,te);var m;if(t.type&&te.type!==t.type)throw new Error(`Unsupported type <${Gv(te.type)}> in <${Gv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Gv(t.type)}> is supported.`);E++,yield te}S=C.next(N)}return}if(t.key==null||t.type==null)return;let g=this;var b,w;let x={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(w=t.textValue)!==null&&w!==void 0?w:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:ZE(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let C of t.childNodes()){C.key!=null&&(C.key=`${x.key}${C.key}`);let E=g.getFullNode({...C,index:D},g.getChildState(n,C),x.key,x);for(let S of E)D++,yield S}})};yield x}constructor(){this.cache=new WeakMap}}function ZE(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 jG(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Gv(e){return e[0].toUpperCase()+e.slice(1)}function KG(e,t,n){let r=T.useMemo(()=>new NG,[]),{children:i,items:s,collection:a}=e;return T.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,a,n,t])}function qm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function UG(e){return zG(e)}function zG(e,t){for(let n of e)return n}function Yv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...XE(e,t),t],i=[...XE(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 XE(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 JE=new WeakMap;function XM(e){let t=JE.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(qm(s,e)):s.type==="item"&&n++};return r(e),JE.set(e,n),n}function qG(e,t,n){var r,i;let{key:s}=e,a=zm.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 x;let D=(x=e.shouldUseVirtualFocus)!==null&&x!==void 0?x: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(),M={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};Ga()&&a3()||(M["aria-label"]=e["aria-label"],M["aria-labelledby"]=S,M["aria-describedby"]=k);let F=t.collection.getItem(s);if(E){let O=Number(F==null?void 0:F.index);M["aria-posinset"]=Number.isNaN(O)?void 0:O+1,M["aria-setsize"]=XM(t.collection)}let N=a!=null&&a.onAction?()=>{var O;return a==null||(O=a.onAction)===null||O===void 0?void 0:O.call(a,s)}:void 0,te=WM(t,s),{itemProps:ce,isPressed:ae,isFocused:I,hasAction:xe,allowsSelection:Ce}=OG({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&w,isVirtualized:E,shouldUseVirtualFocus:D,isDisabled:l,onAction:N||!(F==null||(r=F.props)===null||r===void 0)&&r.onAction?Ro(F==null||(i=F.props)===null||i===void 0?void 0:i.onAction,N):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:te}),{hoverProps:z}=eW({isDisabled:l||!w,onHoverStart(){nE()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),ee=Qa(F==null?void 0:F.props);delete ee.id;let U=wq(F==null?void 0:F.props);return{optionProps:{...M,...Qt(ee,ce,z,U),id:te},labelProps:{id:S},descriptionProps:{id:k},isFocused:I,isFocusVisible:I&&t.selectionManager.isFocused&&nE(),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 WG(e){return e&&e.__esModule?e.default:e}function HG(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,a=Hr(),{triggerProps:o,overlayProps:l}=gG({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(WG(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 GG(e){return e&&e.__esModule?e.default:e}function YG(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:a,layoutDelegate:o,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=T.useRef(null);n=n??m;let g=da(GG(jM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:w}=HG({type:"listbox",isDisabled:h||d},t,n);zm.set(t,{id:w.id});let{collection:x}=t,{disabledKeys:D}=t.selectionManager,C=T.useMemo(()=>a||new YM({collection:x,disabledKeys:D,ref:s,layoutDelegate:o}),[a,o,x,D,s]),{collectionProps:E}=GM({selectionManager:t.selectionManager,keyboardDelegate:C,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),S=Rm(),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 Ye=t.collection.getItem(t.selectionManager.focusedKey);Ye&&S.open(Ae,Le,Ye.props.href,Ye.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}},M=Le=>{var Ae;let Ye=(n==null?void 0:n.current)&&n.current===Le.relatedTarget,ht=(Ae=r.current)===null||Ae===void 0?void 0:Ae.contains(Le.relatedTarget);Ye||ht||(e.onBlur&&e.onBlur(Le),t.setFocused(!1))},F=Le=>{t.isFocused||(e.onFocus&&e.onFocus(Le),t.setFocused(!0))},{isInvalid:N,validationErrors:te,validationDetails:ce}=t.displayValidation,{labelProps:ae,inputProps:I,descriptionProps:xe,errorMessageProps:Ce}=tG({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Ro(t.isOpen&&E.onKeyDown,k,e.onKeyDown),onBlur:M,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")}},U=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=T.useRef(0),ne=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 Ye=Le.target.getBoundingClientRect(),ht=Le.changedTouches[0],Gt=Math.ceil(Ye.left+.5*Ye.width),$t=Math.ceil(Ye.top+.5*Ye.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}},K=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var le;let ue=(le=K==null?void 0:K.parentKey)!==null&&le!==void 0?le:null;var De;let Pe=(De=t.selectionManager.focusedKey)!==null&&De!==void 0?De:null,Fe=T.useRef(ue),He=T.useRef(Pe);T.useEffect(()=>{if(dp()&&K!=null&&Pe!=null&&Pe!==He.current){let Ae=t.selectionManager.isSelected(Pe),Ye=ue!=null?t.collection.getItem(ue):null,ht=(Ye==null?void 0:Ye["aria-label"])||(typeof(Ye==null?void 0:Ye.rendered)=="string"?Ye.rendered:"")||"";var Le;let Gt=g.format("focusAnnouncement",{isGroupChange:(Le=Ye&&ue!==Fe.current)!==null&&Le!==void 0?Le:!1,groupTitle:ht,groupCount:Ye?[...qm(Ye,t.collection)].length:0,optionText:K["aria-label"]||K.textValue||"",isSelected:Ae});ec(Gt)}Fe.current=ue,He.current=Pe});let Xe=XM(t.collection),Be=T.useRef(Xe),Ge=T.useRef(t.isOpen);T.useEffect(()=>{let Le=t.isOpen!==Ge.current&&(t.selectionManager.focusedKey==null||dp());if(t.isOpen&&(Le||Xe!==Be.current)){let Ae=g.format("countAnnouncement",{optionCount:Xe});ec(Ae)}Be.current=Xe,Ge.current=t.isOpen});let Me=T.useRef(t.selectedKey);return T.useEffect(()=>{if(dp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Me.current){let Le=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Ae=g.format("selectedAnnouncement",{optionText:Le});ec(Ae)}Me.current=t.selectedKey}),T.useEffect(()=>{if(t.isOpen)return zM([i.current,r.current].filter(Le=>Le!=null))},[t.isOpen,i,r]),vb(()=>{!K&&i.current&&or(Jt(i.current))===i.current&&A3(i.current,null)},[K]),{labelProps:ae,buttonProps:{...b,...U,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":K?WM(t,K.key):void 0,onTouchEnd:ne,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:N,validationErrors:te,validationDetails:ce}}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 Nd={};Nd={"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 _3(e,t,n){let{direction:r}=Rr(),i=T.useMemo(()=>Nm(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=QE(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=QE(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}=Rd({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 QE(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 ZG(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}=Um({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=T.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(ZG(Nd),"@react-aria/datepicker"),w=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",x=t.maxGranularity==="hour"?"time":"date",D=t.value?b.format(w,{[x]:t.formatValue({month:"long"})}):"",C=Md(D),E=e[Hf]==="presentation"?l["aria-describedby"]:[C["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,S=e[pR],k=T.useMemo(()=>S||Nm(n),[S,n]),M=_3(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=T.useRef(e.autoFocus),N;e[Hf]==="presentation"?N={role:"presentation"}:N=Qt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":E}),T.useEffect(()=>{F.current&&k.focusFirst(),F.current=!1},[k]),u3(e.inputRef,t.defaultValue,t.setValue),S6({...e,focus(){k.focusFirst()}},t,e.inputRef);let te={type:"hidden",name:e.name,form:e.form,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(te.type="text",te.hidden=!0,te.required=e.isRequired,te.onChange=()=>{});let ce=Qa(e);return{labelProps:{...o,onClick:()=>{k.focusFirst()}},fieldProps:Qt(ce,N,M,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)},style:{unicodeBidi:"isolate"}}),inputProps:te,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:a}}function XG(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 JG(e){return e&&e.__esModule?e.default:e}function QG(e,t,n){let r=Hr(),i=Hr(),s=Hr(),a=da(JG(Nd),"@react-aria/datepicker"),{isInvalid:o,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Um({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),w=_3(t,n),x=m["aria-labelledby"]||m.id,{locale:D}=Rr(),C=t.formatValue(D,{month:"long"}),E=C?a.format("selectedDateDescription",{date:C}):"",S=Md(E),k=[S["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=Qa(e),F=T.useMemo(()=>Nm(n),[n]),N=T.useRef(!1),{focusWithinProps:te}=Cc({...e,isDisabled:t.isOpen,onBlurWithin:ce=>{let ae=document.getElementById(i);if(!(ae!=null&&ae.contains(ce.relatedTarget))){var I,xe;N.current=!1,(I=e.onBlur)===null||I===void 0||I.call(e,ce),(xe=e.onFocusChange)===null||xe===void 0||xe.call(e,!1)}},onFocusWithin:ce=>{if(!N.current){var ae,I;N.current=!0,(ae=e.onFocus)===null||ae===void 0||ae.call(e,ce),(I=e.onFocusChange)===null||I===void 0||I.call(e,!0)}}});return{groupProps:Qt(M,w,m,S,te,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":x,"aria-describedby":k,onKeyDown(ce){t.isOpen||e.onKeyDown&&e.onKeyDown(ce)},onKeyUp(ce){t.isOpen||e.onKeyUp&&e.onKeyUp(ce)}}),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} ${x}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${x}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:o,validationErrors:l,validationDetails:d}}function eY(e){return e&&e.__esModule?e.default:e}function tY(){let{locale:e}=Rr(),t=i_(eY(Nd),"@react-aria/datepicker");return T.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new nY(e,t)}},[e,t])}class nY{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function rY(e,t,n){let r=T.useRef(""),{locale:i,direction:s}=Rr(),a=tY(),{ariaLabel:o,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=hR.get(t),m=e.isPlaceholder?"":e.text,g=T.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 K=b.format(t.dateValue);m=K!==m?`${m} – ${K}`:K}else e.type==="hour"&&!e.isPlaceholder&&(m=w.format(t.dateValue));let{spinButtonProps:x}=rG({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=T.useMemo(()=>new O_(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&h.focusPrevious(),D.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let K=e.text.slice(0,-1),le=D.parse(K);K=le===0?"":K,K.length===0||le===0?t.clearSegment(e.type):t.setSegment(e.type,le),r.current=K}else e.type==="dayPeriod"&&t.clearSegment(e.type)},E=K=>{if(K.key==="a"&&(Ga()?K.metaKey:K.ctrlKey)&&K.preventDefault(),!(K.ctrlKey||K.metaKey||K.shiftKey||K.altKey))switch(K.key){case"Backspace":case"Delete":K.preventDefault(),K.stopPropagation(),C();break}},{startsWith:S}=L_({sensitivity:"base"}),k=ea({hour:"numeric",hour12:!0}),M=T.useMemo(()=>{let K=new Date;return K.setHours(0),k.formatToParts(K).find(le=>le.type==="dayPeriod").value},[k]),F=T.useMemo(()=>{let K=new Date;return K.setHours(12),k.formatToParts(K).find(le=>le.type==="dayPeriod").value},[k]),N=ea({year:"numeric",era:"narrow",timeZone:"UTC"}),te=T.useMemo(()=>{if(e.type!=="era")return[];let K=On(new Zn(1,1,1),t.calendar),le=t.calendar.getEras().map(De=>{let Pe=K.set({year:1,month:1,day:1,era:De}).toDate("UTC"),He=N.formatToParts(Pe).find(Xe=>Xe.type==="era").value;return{era:De,formatted:He}}),ue=iY(le.map(De=>De.formatted));if(ue)for(let De of le)De.formatted=De.formatted.slice(ue);return le},[N,t.calendar,e.type]),ce=K=>{if(t.isDisabled||t.isReadOnly)return;let le=r.current+K;switch(e.type){case"dayPeriod":if(S(M,K))t.setSegment("dayPeriod",0);else if(S(F,K))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let ue=te.find(De=>S(De.formatted,K));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(K));break;case"h12":Pe=!1,ue>12&&(De=D.parse(K));break}e.value!==void 0&&e.value>=12&&ue>1&&(ue+=12)}else e.maxValue!==void 0&&ue>e.maxValue&&(De=D.parse(K));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&&Up(n.current,{containingElement:km(n.current)});let K=window.getSelection();K==null||K.collapse(n.current)},I=T.useRef(typeof document<"u"?document:null);Qs(I,"selectionchange",()=>{var K;let le=window.getSelection();le!=null&&le.anchorNode&&(!((K=n.current)===null||K===void 0)&&K.contains(le==null?void 0:le.anchorNode))&&le.collapse(n.current)});let xe=T.useRef("");Qs(n,"beforeinput",K=>{if(n.current)switch(K.preventDefault(),K.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:K.data!=null&&ce(K.data);break}}),Qs(n,"input",K=>{let{inputType:le,data:ue}=K;switch(le){case"insertCompositionText":n.current&&(n.current.textContent=xe.current),ue!=null&&(S(M,ue)||S(F,ue))&&ce(ue);break}}),vn(()=>{let K=n.current;return()=>{document.activeElement===K&&(h.focusPrevious()||h.focusNext())}},[n,h]);let Ce=_d()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},z=T.useMemo(()=>t.segments.find(K=>K.isEditable),[t.segments]);e!==z&&!t.isInvalid&&(d=void 0);let ee=Hr(),U=!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 ne={caretColor:"transparent"};if(s==="rtl"){ne.unicodeBidi="embed";let K=g[e.type];(K==="numeric"||K==="2-digit")&&(ne.direction="ltr")}return{segmentProps:Qt(x,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:U,suppressContentEditableWarning:U,spellCheck:U?"false":void 0,autoCorrect:U?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:U?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!U?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:E,onFocus:ae,style:ne,onPointerDown(K){K.stopPropagation()},onMouseDown(K){K.stopPropagation()}})}}function iY(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 sY(e){return e&&e.__esModule?e.default:e}function aY(e,t,n){var r,i,s,a,o;let l=da(sY(Nd),"@react-aria/datepicker"),{isInvalid:d,validationErrors:h,validationDetails:m}=t.displayValidation,{labelProps:g,fieldProps:b,descriptionProps:w,errorMessageProps:x}=Um({...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=Md(S),M={"aria-label":l.format("startDate"),"aria-labelledby":D},F={"aria-label":l.format("endDate"),"aria-labelledby":D},N=Hr(),te=Hr(),ce=_3(t,n),ae=[k["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")||void 0,I=T.useMemo(()=>Nm(n,{accept:K=>K.id!==N}),[n,N]),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=Qa(e),z=T.useRef(!1),{focusWithinProps:ee}=Cc({...e,isDisabled:t.isOpen,onBlurWithin:K=>{let le=document.getElementById(te);if(!(le!=null&&le.contains(K.relatedTarget))){var ue,De;z.current=!1,(ue=e.onBlur)===null||ue===void 0||ue.call(e,K),(De=e.onFocusChange)===null||De===void 0||De.call(e,!1)}},onFocusWithin:K=>{if(!z.current){var le,ue;z.current=!0,(le=e.onFocus)===null||le===void 0||le.call(e,K),(ue=e.onFocusChange)===null||ue===void 0||ue.call(e,!0)}}}),U=T.useRef(yu),O=T.useRef(yu);var V,ne;return{groupProps:Qt(Ce,ce,b,k,ee,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":ae,onKeyDown(K){t.isOpen||e.onKeyDown&&e.onKeyDown(K)},onKeyUp(K){t.isOpen||e.onKeyUp&&e.onKeyUp(K)}}),labelProps:{...g,onClick:()=>{I.focusFirst()}},buttonProps:{...k,id:N,"aria-haspopup":"dialog","aria-label":l.format("calendar"),"aria-labelledby":`${N} ${D}`,"aria-describedby":ae,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:te,"aria-labelledby":`${N} ${D}`},startFieldProps:{...M,...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:K=>t.setDateTime("start",K),autoFocus:e.autoFocus,name:e.startName,form:e.form,[hc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(K){U.current=K,t.updateValidation(Qp(K,O.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...F,...xe,value:(ne=(s=t.value)===null||s===void 0?void 0:s.end)!==null&&ne!==void 0?ne:null,defaultValue:(a=t.defaultValue)===null||a===void 0?void 0:a.end,onChange:K=>t.setDateTime("end",K),name:e.endName,form:e.form,[hc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(K){O.current=K,t.updateValidation(Qp(U.current,K))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:w,errorMessageProps:x,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 oY(e,t){let{role:n="dialog"}=e,r=lc();r=e["aria-label"]?void 0:r;let i=T.useRef(!1);return T.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){zu(t.current);let s=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(i.current=!0,t.current&&(t.current.blur(),zu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),TG(),{dialogProps:{...Qa(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function nc(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Kb(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=Eu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function Eu(e,t,n,r,i){let s=e;return t.years?s=vW(e):t.months?s=Id(e):t.weeks&&(s=sd(e,n)),cd(e,s,t,n,r,i)}function Ub(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=Eu(e,t,n).subtract(s);return cd(e,a,t,n,r,i)}function cd(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let a=v3(t,Eu(Gr(i),n,r));a&&(t=a)}if(s&&e.compare(s)<=0){let a=g3(t,Ub(Gr(s),n,r));a&&(t=a)}return t}function yo(e,t,n){if(t){let r=v3(e,Gr(t));r&&(e=r)}if(n){let r=g3(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=T.useMemo(()=>new Zi(e.locale),[e.locale]),n=T.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=T.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[w,x]=Ti(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),D=T.useMemo(()=>w?On(Gr(w),g):null,[w,g]),C=T.useMemo(()=>w&&"timeZone"in w?w.timeZone:n.timeZone,[w,n.timeZone]),E=T.useMemo(()=>e.focusedValue?yo(On(Gr(e.focusedValue),g),a,o):void 0,[e.focusedValue,g,a,o]),S=T.useMemo(()=>yo(e.defaultFocusedValue?On(Gr(e.defaultFocusedValue),g):D||On(Vm(C),g),a,o),[e.defaultFocusedValue,D,C,g,a,o]),[k,M]=Ti(E,S,e.onFocusChange),[F,N]=T.useState(()=>{switch(l){case"start":return Eu(k,s,r,a,o);case"end":return Ub(k,s,r,a,o);case"center":default:return Kb(k,s,r,a,o)}}),[te,ce]=T.useState(e.autoFocus||!1),ae=T.useMemo(()=>{let le={...s};return le.days?le.days--:le.days=-1,F.add(le)},[F,s]),[I,xe]=T.useState(g);if(!Lm(g,I)){let le=On(k,g);N(Kb(le,s,r,a,o)),M(le),xe(g)}nc(k,a,o)?M(yo(k,a,o)):k.compare(F)<0?N(Ub(k,s,r,a,o)):k.compare(ae)>0&&N(Eu(k,s,r,a,o));function Ce(le){le=yo(le,a,o),M(le)}function z(le){if(!e.isDisabled&&!e.isReadOnly){let ue=le;if(ue===null){x(null);return}if(ue=yo(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?x(w.set(ue)):x(ue)}}let ee=T.useMemo(()=>D?d&&d(D)?!0:nc(D,a,o):!1,[D,d,a,o]),U=e.isInvalid||e.validationState==="invalid"||ee,O=U?"invalid":null,V=T.useMemo(()=>h==="visible"?s:Zv(s),[h,s]);var ne,K;return{isDisabled:(ne=e.isDisabled)!==null&&ne!==void 0?ne:!1,isReadOnly:(K=e.isReadOnly)!==null&&K!==void 0?K:!1,value:D,setValue:z,visibleRange:{start:F,end:ae},minValue:a,maxValue:o,focusedDate:k,timeZone:C,validationState:O,isValueInvalid:U,setFocusedDate(le){Ce(le),ce(!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);M(yo(k.add(V),a,o)),N(Eu(cd(k,le,V,r,a,o),V,r))},focusPreviousPage(){let le=F.subtract(V);M(yo(k.subtract(V),a,o)),N(Eu(cd(k,le,V,r,a,o),V,r))},focusSectionStart(){s.days?Ce(F):s.weeks?Ce(sd(k,r)):(s.months||s.years)&&Ce(Id(k))},focusSectionEnd(){s.days?Ce(ae):s.weeks?Ce($W(k,r)):(s.months||s.years)&&Ce(Sb(k))},focusNextSection(le){if(!le&&!s.days){Ce(k.add(Zv(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(Zv(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:te,setFocused:ce,isInvalid(le){return nc(le,a,o)},isSelected(le){return D!=null&&nr(le,D)&&!this.isCellDisabled(le)&&!this.isCellUnavailable(le)},isCellFocused(le){return te&&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=sd(De,r,m);let Fe=m3(De,r,m);for(let He=0;He<Fe;He++)Pe.push(null);for(;Pe.length<7;){Pe.push(De);let He=De.add({days:1});if(nr(De,He))break;De=He}for(;Pe.length<7;)Pe.push(null);return Pe}}}function Zv(e){let t={...e};for(let n in e)t[n]=1;return t}function uY(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]=T.useState(null),w="center";if(h&&h.start&&h.end){let V=Kb(Gr(h.start),a,s,o,l).add(a).subtract({days:1});h.end.compare(V)>0&&(w="start")}let x=T.useRef(null),[D,C]=T.useState(null),E=T.useMemo(()=>v3(o,D==null?void 0:D.start),[o,D]),S=T.useMemo(()=>g3(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}),M=O=>{if(O&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const V=tS(O,k,-1),ne=tS(O,k,1);x.current={start:V,end:ne},C(x.current)}else x.current=null,C(null)},[F,N]=T.useState(k.visibleRange);(!Eb(k.visibleRange.start,F.start)||!Eb(k.visibleRange.end,F.end))&&(M(g),N(k.visibleRange));let te=O=>{O?(b(O),M(O)):(b(null),M(null))},ce=g?Xv(g,k.focusedDate):h&&Xv(h.start,h.end),ae=O=>{if(e.isReadOnly)return;const V=yo(O,E,S),ne=gR(V,k.visibleRange.start,e.isDateUnavailable);if(ne)if(!g)te(ne);else{let K=Xv(g,ne);K&&m({start:eS(K.start,h==null?void 0:h.start),end:eS(K.end,h==null?void 0:h.end)}),te(null)}},[I,xe]=T.useState(!1),{isDateUnavailable:Ce}=e,z=T.useMemo(()=>!h||g?!1:Ce&&(Ce(h.start)||Ce(h.end))?!0:nc(h.start,o,l)||nc(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:te,highlightedRange:ce,validationState:ee?"invalid":null,isValueInvalid:ee,selectFocusedDate(){ae(k.focusedDate)},selectDate:ae,highlightDate(O){g&&k.setFocusedDate(O)},isSelected(O){return!!(ce&&O.compare(ce.start)>=0&&O.compare(ce.end)<=0&&!k.isCellDisabled(O)&&!k.isCellUnavailable(O))},isInvalid(O){var V,ne;return k.isInvalid(O)||nc(O,(V=x.current)===null||V===void 0?void 0:V.start,(ne=x.current)===null||ne===void 0?void 0:ne.end)},isDragging:I,setDragging:xe}}function Xv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Gr(e),end:Gr(t)})}function eS(e,t){return e=On(e,(t==null?void 0:t.calendar)||new Yr),t&&"hour"in t?t.set(e):e}function tS(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 zb{*[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 $s extends Set{constructor(t,n,r){super(t),t instanceof $s?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function lY(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function cY(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,a=T.useRef(!1),[,o]=T.useState(!1),l=T.useRef(null),d=T.useRef(null),[,h]=T.useState(null),m=T.useMemo(()=>nS(e.selectedKeys),[e.selectedKeys]),g=T.useMemo(()=>nS(e.defaultSelectedKeys,new $s),[e.defaultSelectedKeys]),[b,w]=Ti(m,g,e.onSelectionChange),x=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,C]=T.useState(i);i==="replace"&&D==="toggle"&&typeof b=="object"&&b.size===0&&C("replace");let E=T.useRef(i);return T.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||!lY(S,b))&&w(S)},disabledKeys:x,disabledBehavior:s}}function nS(e,t){return e?e==="all"?"all":new $s(e):t}class M3{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&&Yv(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&&Yv(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 $s([n],n,n);else{let a=this.state.selectedKeys;var i;let o=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new $s(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?Yv(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 $s(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 $s([n],n,n):new $s;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new $s;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=UG(qm(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 $s)}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 M3(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 fY(e){let{filter:t,layoutDelegate:n}=e,r=cY(e),i=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=T.useCallback(d=>t?new zb(t(d)):new zb(d),[t]),a=T.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=KG(e,s,a),l=T.useMemo(()=>new M3(o,r,{layoutDelegate:n}),[o,r,n]);return dY(o,l),{collection:o,disabledKeys:i,selectionManager:l}}function dY(e,t){const n=T.useRef(null);T.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),x=null,D=!1;for(;w>=0;){if(!t.isDisabled(g[w].key)){x=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(x?x.key:null)}n.current=e},[e,t])}function hY(e){var t;let[n,r]=Ti(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=T.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:a,selectionManager:o}=fY({...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 F3(e){let[t,n]=Ti(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=T.useCallback(()=>{n(!0)},[n]),i=T.useCallback(()=>{n(!1)},[n]),s=T.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function pY(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:a=!0}=e,[o,l]=T.useState(!1),[d,h]=T.useState(!1),[m,g]=T.useState(null),b=Se=>{e.onSelectionChange&&e.onSelectionChange(Se),Se===C&&(De(),K())};var w;let{collection:x,selectionManager:D,selectedKey:C,setSelectedKey:E,selectedItem:S,disabledKeys:k}=hY({...e,onSelectionChange:b,items:(w=e.items)!==null&&w!==void 0?w:e.defaultItems}),[M,F]=Ti(e.inputValue,rS(e.defaultInputValue,C,x)||"",e.onInputChange),[N]=T.useState(C),[te]=T.useState(M),ce=x,ae=T.useMemo(()=>e.items!=null||!n?x:mY(x,M,n),[x,M,n,e.items]),[I,xe]=T.useState(ae),Ce=T.useRef("focus"),ee=F3({...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}),U=(Se=null,_e)=>{let Je=_e==="manual"||_e==="focus"&&r==="focus";(i||ae.size>0||Je&&ce.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&&ce.size>0||e.items)&&!ee.isOpen||(Je&&!ee.isOpen&&e.items===void 0&&l(!0),ee.isOpen||(Ce.current=_e),ne(Se))},V=T.useCallback(()=>{xe(o?ce:ae)},[o,ce,ae]),ne=T.useCallback((Se=null)=>{ee.isOpen&&V(),g(Se),ee.toggle()},[ee,V]),K=T.useCallback(()=>{ee.isOpen&&(V(),ee.close())},[ee,V]),[le,ue]=T.useState(M),De=()=>{var Se,_e;let Je=C!=null&&(_e=(Se=x.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";ue(Je),F(Je)};var Pe,Fe;let He=T.useRef((Fe=(Pe=e.selectedKey)!==null&&Pe!==void 0?Pe:e.defaultSelectedKey)!==null&&Fe!==void 0?Fe:null);var Xe;let Be=T.useRef(C!=null&&(Xe=(t=x.getItem(C))===null||t===void 0?void 0:t.textValue)!==null&&Xe!==void 0?Xe:"");T.useEffect(()=>{var Se;d&&(ae.size>0||i)&&!ee.isOpen&&M!==le&&r!=="manual"&&U(null,"input"),!o&&!i&&ee.isOpen&&ae.size===0&&K(),C!=null&&C!==He.current&&K(),M!==le&&(D.setFocusedKey(null),l(!1),M===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&E(null)),C!==He.current&&(e.inputValue===void 0||e.selectedKey===void 0)?De():le!==M&&ue(M);var _e;let Je=C!=null&&(_e=(Se=x.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";!d&&C!=null&&e.inputValue===void 0&&C===He.current&&Be.current!==Je&&(ue(Je),F(Je)),He.current=C,Be.current=Je});let Ge=Bd({...e,value:T.useMemo(()=>({inputValue:M,selectedKey:C}),[M,C])}),Me=()=>{s&&C==null?Le():Ae()},Le=()=>{He.current=null,E(null),K()},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=x.getItem(C))===null||_e===void 0?void 0:_e.textValue)!==null&&Je!==void 0?Je:"";ue(tt),K()}else De(),K()};const Ye=()=>{if(s){var Se,_e;const Je=C!=null&&(_e=(Se=x.getItem(C))===null||Se===void 0?void 0:Se.textValue)!==null&&_e!==void 0?_e:"";M===Je?Ae():Le()}else Ae()};let ht=()=>{ee.isOpen&&D.focusedKey!=null?C===D.focusedKey?Ae():E(D.focusedKey):Ye()},Gt=T.useRef(M),$t=Se=>{Se?(Gt.current=M,r==="focus"&&!e.isReadOnly&&U(null,"focus")):(a&&Ye(),M!==Gt.current&&Ge.commitValidation()),h(Se)},_t=T.useMemo(()=>ee.isOpen?o?ce:ae:I,[ee.isOpen,ce,ae,o,I]);var Zr;let en=(Zr=e.defaultSelectedKey)!==null&&Zr!==void 0?Zr:N;var be;return{...Ge,...ee,focusStrategy:m,toggle:O,open:U,close:Ye,selectionManager:D,selectedKey:C,defaultSelectedKey:en,setSelectedKey:E,disabledKeys:k,isFocused:d,setFocused:$t,selectedItem:S,collection:_t,inputValue:M,defaultInputValue:(be=rS(e.defaultInputValue,en,x))!==null&&be!==void 0?be:te,setInputValue:F,commit:ht,revert:Me}}function mY(e,t,n){return new zb(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,qm(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 rS(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 gY(e){return e&&e.__esModule?e.default:e}const ek=new Vo(gY(QR));function tk(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function tm(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=Vo.getGlobalDictionaryForPackage("@react-stately/datepicker")||ek,g=new r_(h,m),b=new Zi(h,Wa({},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 vY(e,t,n,r,i){var s;let a=tm((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var o;let l=tm((o=e==null?void 0:e.end)!==null&&o!==void 0?o:null,t,n,r,i),d=Qp(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Vo.getGlobalDictionaryForPackage("@react-stately/datepicker")||ek;d=Qp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",tk())],validationDetails:{...jm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const yY={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},bY={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Wa(e,t){e={...t.shouldForceLeadingZeros?bY:yY,...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 Vl(e){return e&&"hour"in e?e:new Ld}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??Od()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Gr(i):r?i:As(i)}function R3(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]=T.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 $Y(e){let t=F3(e),[n,r]=Ti(e.value,e.defaultValue||null,e.onChange),[i]=T.useState(n),s=n||e.placeholderValue||null,[a,o]=R3(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]=T.useState(null),[w,x]=T.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=T.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,M=T.useMemo(()=>tm(n,E,S,k,C),[n,E,S,k,C]),F=Bd({...e,value:n,builtinValidation:M}),N=F.displayValidation.isInvalid,te=e.validationState||(N?"invalid":null),ce=(Ce,z)=>{r("timeZone"in z?z.set(Gr(Ce)):As(Ce,z)),b(null),x(null),F.commitValidation()},ae=Ce=>{let z=typeof m=="function"?m():m;d?w||z?ce(Ce,w||Vl(e.defaultValue||e.placeholderValue)):b(Ce):(r(Ce),F.commitValidation()),z&&t.setOpen(!1)},I=Ce=>{g&&Ce?ce(g,Ce):x(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&&ce(g,w||Vl(e.defaultValue||e.placeholderValue)),t.setOpen(Ce)},validationState:te,isInvalid:N,formatValue(Ce,z){if(!l)return"";let ee=Wa(z,C);return new Zi(Ce,ee).format(l)},getDateFormatter(Ce,z){let ee={...C,...z},U=Wa({},ee);return new Zi(Ce,U)}}}const xY=new Vo({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 wY(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?xY.getStringForLocale(e,n):"––"}const bp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},iS={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]=R3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let w=T.useMemo(()=>new Zi(t),[t]),x=T.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]=T.useState(C),k=T.useMemo(()=>{var Me;return(Me=nk(C,x))!==null&&Me!==void 0?Me:null},[C,x]),[M,F]=T.useState(()=>Ef(e.placeholderValue,m,x,g)),N=k||M,te=x.identifier==="gregory"&&N.era==="BC",ce=T.useMemo(()=>{var Me;return{granularity:m,maxGranularity:(Me=e.maxGranularity)!==null&&Me!==void 0?Me:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:te,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,te]),ae=T.useMemo(()=>Wa({},ce),[ce]),I=T.useMemo(()=>new Zi(t,ae),[t,ae]),xe=T.useMemo(()=>I.resolvedOptions(),[I]),Ce=T.useMemo(()=>I.formatToParts(new Date).filter(Me=>bp[Me.type]).reduce((Me,Le)=>(Me[rk[Le.type]||Le.type]=!0,Me),{}),[I]),[z,ee]=T.useState(()=>e.value||e.defaultValue?{...Ce}:{}),U=T.useRef(null),O=T.useRef(x);T.useEffect(()=>{Lm(x,O.current)||(O.current=x,F(Me=>Object.keys(z).length>0?On(Me,x):Ef(e.placeholderValue,m,x,g)))},[x,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,x,g)));let V=k&&Object.keys(z).length>=Object.keys(Ce).length?k:M,ne=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,x,g)),ee({})):Le.length===0&&U.current==null||Le.length>=Ae.length||Le.length===Ae.length-1&&Ce.dayPeriod&&!z.dayPeriod&&U.current!=="dayPeriod"?(Le.length===0&&(z={...Ce},ee(z)),Me=On(Me,(h==null?void 0:h.calendar)||new Yr),E(Me)):F(Me),U.current=null},K=T.useMemo(()=>V.toDate(b),[V,b]),le=T.useMemo(()=>CY(K,z,I,xe,V,x,t,m),[K,z,I,xe,V,x,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])ne(EY(V,Me,Le,xe));else{ue(Me);let Ae=Object.keys(z),Ye=Object.keys(Ce);(Ae.length>=Ye.length||Ae.length===Ye.length-1&&Ce.dayPeriod&&!z.dayPeriod)&&ne(V)}},Pe=T.useMemo(()=>tm(C,o,l,d,ce),[C,o,l,d,ce]),Fe=Bd({...e,value:C,builtinValidation:Pe}),He=Fe.displayValidation.isInvalid,Xe=e.validationState||(He?"invalid":null);var Be,Ge;return{...Fe,value:k,defaultValue:(Be=e.defaultValue)!==null&&Be!==void 0?Be:S,dateValue:K,calendar:x,setValue:ne,segments:le,dateFormatter:I,validationState:Xe,isInvalid:He,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:s,isRequired:a,increment(Me){De(Me,1)},decrement(Me){De(Me,-1)},incrementPage(Me){De(Me,iS[Me]||1)},decrementPage(Me){De(Me,-(iS[Me]||1))},setSegment(Me,Le){ue(Me),ne(SY(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),ne(V.copy()))},clearSegment(Me){delete z[Me],U.current=Me,ee({...z});let Le=Ef(e.placeholderValue,m,x,g),Ae=V;if(Me==="dayPeriod"&&"hour"in V&&"hour"in Le){let Ye=V.hour>=12,ht=Le.hour>=12;Ye&&!ht?Ae=V.set({hour:V.hour-12}):!Ye&&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),ne(Ae)},formatValue(Me){if(!k)return"";let Le=Wa(Me,ce);return new Zi(t,Le).format(K)},getDateFormatter(Me,Le){let Ae={...ce,...Le},Ye=Wa({},Ae);return new Zi(Me,Ye)}}}function CY(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=bp[g];g==="era"&&s.getEras().length===1&&(b=!1);let w=bp[g]&&!t[g],x=bp[g]?wY(g,m.value,a):null,D={type:g,text:w?x:m.value,...Gh(i,g,r),isPlaceholder:w,placeholder:x,isEditable:b};g==="hour"?(h.push({type:"literal",text:"",...Gh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(D),g===o&&h.push({type:"literal",text:"",...Gh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(g)&&g===o?(h.push(D),h.push({type:"literal",text:"",...Gh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(D)}return h}function Gh(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:yW(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:bW(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 EY(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 SY(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 DY(e){var t,n;let r=F3(e),[i,s]=Ti(e.value,e.defaultValue||null,e.onChange),[a]=T.useState(i),[o,l]=T.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),du(d)?s(d):s(null)},m=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[g,b]=R3(m,e.granularity),w=g==="hour"||g==="minute"||g==="second";var x;let D=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[C,E]=T.useState(null),[S,k]=T.useState(null);d&&du(d)&&(C=d,"hour"in d.start&&(S=d));let M=(V,ne)=>{h({start:"timeZone"in ne.start?ne.start.set(Gr(V.start)):As(V.start,ne.start),end:"timeZone"in ne.end?ne.end.set(Gr(V.end)):As(V.end,ne.end)}),E(null),k(null),z.commitValidation()},F=V=>{let ne=typeof D=="function"?D():D;w?du(V)&&(ne||S!=null&&S.start&&(S!=null&&S.end))?M(V,{start:(S==null?void 0:S.start)||Vl(e.placeholderValue),end:(S==null?void 0:S.end)||Vl(e.placeholderValue)}):E(V):du(V)?(h(V),z.commitValidation()):E(V),ne&&r.setOpen(!1)},N=V=>{du(C)&&du(V)?M(C,V):k(V)},te=(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",ce=T.useMemo(()=>({granularity:g,timeZone:b,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:te}),[g,e.hourCycle,e.shouldForceLeadingZeros,b,e.hideTimeZone,te]),{minValue:ae,maxValue:I,isDateUnavailable:xe}=e,Ce=T.useMemo(()=>vY(d,ae,I,xe,ce),[d,ae,I,xe,ce]),z=Bd({...e,value:i,name:T.useMemo(()=>[e.startName,e.endName].filter(V=>V!=null),[e.startName,e.endName]),builtinValidation:Ce}),ee=z.displayValidation.isInvalid,U=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,ne){var K,le;F(V==="start"?{start:ne,end:(K=C==null?void 0:C.end)!==null&&K!==void 0?K:null}:{start:(le=C==null?void 0:C.start)!==null&&le!==void 0?le:null,end:ne})},setTime(V,ne){var K,le;N(V==="start"?{start:ne,end:(K=S==null?void 0:S.end)!==null&&K!==void 0?K:null}:{start:(le=S==null?void 0:S.start)!==null&&le!==void 0?le:null,end:ne})},setDateTime(V,ne){var K,le;h(V==="start"?{start:ne,end:(K=d==null?void 0:d.end)!==null&&K!==void 0?K:null}:{start:(le=d==null?void 0:d.start)!==null&&le!==void 0?le:null,end:ne})},setDateRange:F,setTimeRange:N,...r,setOpen(V){!V&&!(d!=null&&d.start&&(d!=null&&d.end))&&du(C)&&w&&M(C,{start:(S==null?void 0:S.start)||Vl(e.placeholderValue),end:(S==null?void 0:S.end)||Vl(e.placeholderValue)}),r.setOpen(V)},validationState:U,isInvalid:ee,formatValue(V,ne){if(!d||!d.start||!d.end)return null;let K="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=Wa(ne,{granularity:le,timeZone:K,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(K||"UTC"),He=d.end.toDate(ue||"UTC"),Xe=new Zi(V,Pe),Be;if(K===ue&&le===De&&d.start.compare(d.end)!==0){try{let Ge=Xe.formatRangeToParts(Fe,He),Me=-1;for(let Ye=0;Ye<Ge.length;Ye++){let ht=Ge[Ye];if(ht.source==="shared"&&ht.type==="literal")Me=Ye;else if(ht.source==="endRange")break}let Le="",Ae="";for(let Ye=0;Ye<Ge.length;Ye++)Ye<Me?Le+=Ge[Ye].value:Ye>Me&&(Ae+=Ge[Ye].value);return{start:Le,end:Ae}}catch{}Be=Xe}else{let Ge=Wa(ne,{granularity:De,timeZone:ue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Be=new Zi(V,Ge)}return{start:Xe.format(Fe),end:Be.format(He)}},getDateFormatter(V,ne){let K={...ce,...ne},le=Wa({},K);return new Zi(V,le)}}}function du(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function AY(e){let{placeholderValue:t=new Ld,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=T.useMemo(()=>{let k=d&&"timeZone"in d?d.timeZone:void 0;return(k||m)&&t?p_(Fl(t),k||m):Fl(t)},[t,d,m]),b=T.useMemo(()=>Fl(n,h),[n,h]),w=T.useMemo(()=>Fl(r,h),[r,h]),x=T.useMemo(()=>o&&"day"in o?hE(o):o,[o]),D=T.useMemo(()=>o==null?null:Fl(o),[o]),C=T.useMemo(()=>i==null?null:Fl(i),[i]);return{...ik({...e,value:D,defaultValue:C,minValue:b,maxValue:w,onChange:k=>{l(h||m?k:k&&hE(k))},granularity:s||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Yr,validate:T.useCallback(()=>a==null?void 0:a(o),[a,o])}),timeValue:x}}function Fl(e,t=Vm(Od())){return e?"day"in e?e:As(t,e):null}var Jv,sS;function TY(){if(sS)return Jv;sS=1;function e(){this.__data__=[],this.size=0}return Jv=e,Jv}var Qv,aS;function k3(){if(aS)return Qv;aS=1;function e(t,n){return t===n||t!==t&&n!==n}return Qv=e,Qv}var ey,oS;function Wm(){if(oS)return ey;oS=1;var e=k3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return ey=t,ey}var ty,uS;function PY(){if(uS)return ty;uS=1;var e=Wm(),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 ty=r,ty}var ny,lS;function _Y(){if(lS)return ny;lS=1;var e=Wm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return ny=t,ny}var ry,cS;function MY(){if(cS)return ry;cS=1;var e=Wm();function t(n){return e(this.__data__,n)>-1}return ry=t,ry}var iy,fS;function FY(){if(fS)return iy;fS=1;var e=Wm();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return iy=t,iy}var sy,dS;function Hm(){if(dS)return sy;dS=1;var e=TY(),t=PY(),n=_Y(),r=MY(),i=FY();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,sy=s,sy}var ay,hS;function RY(){if(hS)return ay;hS=1;var e=Hm();function t(){this.__data__=new e,this.size=0}return ay=t,ay}var oy,pS;function kY(){if(pS)return oy;pS=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return oy=e,oy}var uy,mS;function OY(){if(mS)return uy;mS=1;function e(t){return this.__data__.get(t)}return uy=e,uy}var ly,gS;function IY(){if(gS)return ly;gS=1;function e(t){return this.__data__.has(t)}return ly=e,ly}var cy,vS;function sk(){if(vS)return cy;vS=1;var e=typeof Yi=="object"&&Yi&&Yi.Object===Object&&Yi;return cy=e,cy}var fy,yS;function to(){if(yS)return fy;yS=1;var e=sk(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return fy=n,fy}var dy,bS;function Gm(){if(bS)return dy;bS=1;var e=to(),t=e.Symbol;return dy=t,dy}var hy,$S;function LY(){if($S)return hy;$S=1;var e=Gm(),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 hy=s,hy}var py,xS;function VY(){if(xS)return py;xS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return py=n,py}var my,wS;function Ec(){if(wS)return my;wS=1;var e=Gm(),t=LY(),n=VY(),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 my=a,my}var gy,CS;function Sc(){if(CS)return gy;CS=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return gy=e,gy}var vy,ES;function O3(){if(ES)return vy;ES=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 vy=a,vy}var yy,SS;function BY(){if(SS)return yy;SS=1;var e=to(),t=e["__core-js_shared__"];return yy=t,yy}var by,DS;function NY(){if(DS)return by;DS=1;var e=BY(),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 by=n,by}var $y,AS;function ak(){if(AS)return $y;AS=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 $y=n,$y}var xy,TS;function jY(){if(TS)return xy;TS=1;var e=O3(),t=NY(),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 xy=m,xy}var wy,PS;function KY(){if(PS)return wy;PS=1;function e(t,n){return t==null?void 0:t[n]}return wy=e,wy}var Cy,_S;function Dc(){if(_S)return Cy;_S=1;var e=jY(),t=KY();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Cy=n,Cy}var Ey,MS;function I3(){if(MS)return Ey;MS=1;var e=Dc(),t=to(),n=e(t,"Map");return Ey=n,Ey}var Sy,FS;function Ym(){if(FS)return Sy;FS=1;var e=Dc(),t=e(Object,"create");return Sy=t,Sy}var Dy,RS;function UY(){if(RS)return Dy;RS=1;var e=Ym();function t(){this.__data__=e?e(null):{},this.size=0}return Dy=t,Dy}var Ay,kS;function zY(){if(kS)return Ay;kS=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ay=e,Ay}var Ty,OS;function qY(){if(OS)return Ty;OS=1;var e=Ym(),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 Ty=i,Ty}var Py,IS;function WY(){if(IS)return Py;IS=1;var e=Ym(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Py=r,Py}var _y,LS;function HY(){if(LS)return _y;LS=1;var e=Ym(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return _y=n,_y}var My,VS;function GY(){if(VS)return My;VS=1;var e=UY(),t=zY(),n=qY(),r=WY(),i=HY();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,My=s,My}var Fy,BS;function YY(){if(BS)return Fy;BS=1;var e=GY(),t=Hm(),n=I3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Fy=r,Fy}var Ry,NS;function ZY(){if(NS)return Ry;NS=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Ry=e,Ry}var ky,jS;function Zm(){if(jS)return ky;jS=1;var e=ZY();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return ky=t,ky}var Oy,KS;function XY(){if(KS)return Oy;KS=1;var e=Zm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Oy=t,Oy}var Iy,US;function JY(){if(US)return Iy;US=1;var e=Zm();function t(n){return e(this,n).get(n)}return Iy=t,Iy}var Ly,zS;function QY(){if(zS)return Ly;zS=1;var e=Zm();function t(n){return e(this,n).has(n)}return Ly=t,Ly}var Vy,qS;function eZ(){if(qS)return Vy;qS=1;var e=Zm();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Vy=t,Vy}var By,WS;function L3(){if(WS)return By;WS=1;var e=YY(),t=XY(),n=JY(),r=QY(),i=eZ();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,By=s,By}var Ny,HS;function tZ(){if(HS)return Ny;HS=1;var e=Hm(),t=I3(),n=L3(),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 Ny=i,Ny}var jy,GS;function ok(){if(GS)return jy;GS=1;var e=Hm(),t=RY(),n=kY(),r=OY(),i=IY(),s=tZ();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,jy=a,jy}var Ky,YS;function nZ(){if(YS)return Ky;YS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Ky=t,Ky}var Uy,ZS;function rZ(){if(ZS)return Uy;ZS=1;function e(t){return this.__data__.has(t)}return Uy=e,Uy}var zy,XS;function iZ(){if(XS)return zy;XS=1;var e=L3(),t=nZ(),n=rZ();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,zy=r,zy}var qy,JS;function uk(){if(JS)return qy;JS=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 qy=e,qy}var Wy,QS;function sZ(){if(QS)return Wy;QS=1;function e(t,n){return t.has(n)}return Wy=e,Wy}var Hy,eD;function lk(){if(eD)return Hy;eD=1;var e=iZ(),t=uk(),n=sZ(),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 x=m.get(a),D=m.get(o);if(x&&D)return x==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],M=o[C];if(d)var F=g?d(M,k,C,o,a,m):d(k,M,C,a,o,m);if(F!==void 0){if(F)continue;E=!1;break}if(S){if(!t(o,function(N,te){if(!n(S,te)&&(k===N||h(k,N,l,d,m)))return S.push(te)})){E=!1;break}}else if(!(k===M||h(k,M,l,d,m))){E=!1;break}}return m.delete(a),m.delete(o),E}return Hy=s,Hy}var Gy,tD;function aZ(){if(tD)return Gy;tD=1;var e=to(),t=e.Uint8Array;return Gy=t,Gy}var Yy,nD;function oZ(){if(nD)return Yy;nD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Yy=e,Yy}var Zy,rD;function uZ(){if(rD)return Zy;rD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Zy=e,Zy}var Xy,iD;function lZ(){if(iD)return Xy;iD=1;var e=Gm(),t=aZ(),n=k3(),r=lk(),i=oZ(),s=uZ(),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]",x="[object String]",D="[object Symbol]",C="[object ArrayBuffer]",E="[object DataView]",S=e?e.prototype:void 0,k=S?S.valueOf:void 0;function M(F,N,te,ce,ae,I,xe){switch(te){case E:if(F.byteLength!=N.byteLength||F.byteOffset!=N.byteOffset)return!1;F=F.buffer,N=N.buffer;case C:return!(F.byteLength!=N.byteLength||!I(new t(F),new t(N)));case l:case d:case g:return n(+F,+N);case h:return F.name==N.name&&F.message==N.message;case b:case x:return F==N+"";case m:var Ce=i;case w:var z=ce&a;if(Ce||(Ce=s),F.size!=N.size&&!z)return!1;var ee=xe.get(F);if(ee)return ee==N;ce|=o,xe.set(F,N);var U=r(Ce(F),Ce(N),ce,ae,I,xe);return xe.delete(F),U;case D:if(k)return k.call(F)==k.call(N)}return!1}return Xy=M,Xy}var Jy,sD;function cZ(){if(sD)return Jy;sD=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Jy=e,Jy}var Qy,aD;function ha(){if(aD)return Qy;aD=1;var e=Array.isArray;return Qy=e,Qy}var e0,oD;function fZ(){if(oD)return e0;oD=1;var e=cZ(),t=ha();function n(r,i,s){var a=i(r);return t(r)?a:e(a,s(r))}return e0=n,e0}var t0,uD;function dZ(){if(uD)return t0;uD=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 t0=e,t0}var n0,lD;function hZ(){if(lD)return n0;lD=1;function e(){return[]}return n0=e,n0}var r0,cD;function pZ(){if(cD)return r0;cD=1;var e=dZ(),t=hZ(),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 r0=s,r0}var i0,fD;function mZ(){if(fD)return i0;fD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return i0=e,i0}var s0,dD;function Ac(){if(dD)return s0;dD=1;function e(t){return t!=null&&typeof t=="object"}return s0=e,s0}var a0,hD;function gZ(){if(hD)return a0;hD=1;var e=Ec(),t=Ac(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return a0=r,a0}var o0,pD;function ck(){if(pD)return o0;pD=1;var e=gZ(),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 o0=s,o0}var Bf={exports:{}},u0,mD;function vZ(){if(mD)return u0;mD=1;function e(){return!1}return u0=e,u0}Bf.exports;var gD;function V3(){return gD||(gD=1,function(e,t){var n=to(),r=vZ(),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 l0,vD;function B3(){if(vD)return l0;vD=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 l0=n,l0}var c0,yD;function N3(){if(yD)return c0;yD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return c0=t,c0}var f0,bD;function yZ(){if(bD)return f0;bD=1;var e=Ec(),t=N3(),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]",x="[object WeakMap]",D="[object ArrayBuffer]",C="[object DataView]",E="[object Float32Array]",S="[object Float64Array]",k="[object Int8Array]",M="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",te="[object Uint8ClampedArray]",ce="[object Uint16Array]",ae="[object Uint32Array]",I={};I[E]=I[S]=I[k]=I[M]=I[F]=I[N]=I[te]=I[ce]=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[x]=!1;function xe(Ce){return n(Ce)&&t(Ce.length)&&!!I[e(Ce)]}return f0=xe,f0}var d0,$D;function bZ(){if($D)return d0;$D=1;function e(t){return function(n){return t(n)}}return d0=e,d0}var Nf={exports:{}};Nf.exports;var xD;function $Z(){return xD||(xD=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 h0,wD;function j3(){if(wD)return h0;wD=1;var e=yZ(),t=bZ(),n=$Z(),r=n&&n.isTypedArray,i=r?t(r):e;return h0=i,h0}var p0,CD;function xZ(){if(CD)return p0;CD=1;var e=mZ(),t=ck(),n=ha(),r=V3(),i=B3(),s=j3(),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),x=m||g||b||w,D=x?e(d.length,String):[],C=D.length;for(var E in d)(h||o.call(d,E))&&!(x&&(E=="length"||b&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||i(E,C)))&&D.push(E);return D}return p0=l,p0}var m0,ED;function wZ(){if(ED)return m0;ED=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return m0=t,m0}var g0,SD;function fk(){if(SD)return g0;SD=1;function e(t,n){return function(r){return t(n(r))}}return g0=e,g0}var v0,DD;function CZ(){if(DD)return v0;DD=1;var e=fk(),t=e(Object.keys,Object);return v0=t,v0}var y0,AD;function EZ(){if(AD)return y0;AD=1;var e=wZ(),t=CZ(),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 y0=i,y0}var b0,TD;function K3(){if(TD)return b0;TD=1;var e=O3(),t=N3();function n(r){return r!=null&&t(r.length)&&!e(r)}return b0=n,b0}var $0,PD;function U3(){if(PD)return $0;PD=1;var e=xZ(),t=EZ(),n=K3();function r(i){return n(i)?e(i):t(i)}return $0=r,$0}var x0,_D;function SZ(){if(_D)return x0;_D=1;var e=fZ(),t=pZ(),n=U3();function r(i){return e(i,n,t)}return x0=r,x0}var w0,MD;function DZ(){if(MD)return w0;MD=1;var e=SZ(),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),x=w.length;if(b!=x&&!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 M=m;++D<b;){C=g[D];var F=s[C],N=a[C];if(l)var te=m?l(N,F,C,a,s,h):l(F,N,C,s,a,h);if(!(te===void 0?F===N||d(F,N,o,l,h):te)){k=!1;break}M||(M=C=="constructor")}if(k&&!M){var ce=s.constructor,ae=a.constructor;ce!=ae&&"constructor"in s&&"constructor"in a&&!(typeof ce=="function"&&ce instanceof ce&&typeof ae=="function"&&ae instanceof ae)&&(k=!1)}return h.delete(s),h.delete(a),k}return w0=i,w0}var C0,FD;function AZ(){if(FD)return C0;FD=1;var e=Dc(),t=to(),n=e(t,"DataView");return C0=n,C0}var E0,RD;function TZ(){if(RD)return E0;RD=1;var e=Dc(),t=to(),n=e(t,"Promise");return E0=n,E0}var S0,kD;function PZ(){if(kD)return S0;kD=1;var e=Dc(),t=to(),n=e(t,"Set");return S0=n,S0}var D0,OD;function _Z(){if(OD)return D0;OD=1;var e=Dc(),t=to(),n=e(t,"WeakMap");return D0=n,D0}var A0,ID;function MZ(){if(ID)return A0;ID=1;var e=AZ(),t=I3(),n=TZ(),r=PZ(),i=_Z(),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),x=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),M=k==l?S.constructor:void 0,F=M?a(M):"";if(F)switch(F){case b:return g;case w:return o;case x:return d;case D:return h;case C:return m}return k}),A0=E,A0}var T0,LD;function FZ(){if(LD)return T0;LD=1;var e=ok(),t=lk(),n=lZ(),r=DZ(),i=MZ(),s=ha(),a=V3(),o=j3(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function w(x,D,C,E,S,k){var M=s(x),F=s(D),N=M?h:i(x),te=F?h:i(D);N=N==d?m:N,te=te==d?m:te;var ce=N==m,ae=te==m,I=N==te;if(I&&a(x)){if(!a(D))return!1;M=!0,ce=!1}if(I&&!ce)return k||(k=new e),M||o(x)?t(x,D,C,E,S,k):n(x,D,N,C,E,S,k);if(!(C&l)){var xe=ce&&b.call(x,"__wrapped__"),Ce=ae&&b.call(D,"__wrapped__");if(xe||Ce){var z=xe?x.value():x,ee=Ce?D.value():D;return k||(k=new e),S(z,ee,C,E,k)}}return I?(k||(k=new e),r(x,D,C,E,S,k)):!1}return T0=w,T0}var P0,VD;function z3(){if(VD)return P0;VD=1;var e=FZ(),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 P0=n,P0}var _0,BD;function RZ(){if(BD)return _0;BD=1;var e=z3();function t(n,r){return e(n,r)}return _0=t,_0}var kZ=RZ();const OZ=fi(kZ);var $p={exports:{}},IZ=$p.exports,ND;function LZ(){return ND||(ND=1,function(e,t){(function(n,r){e.exports=r()})(IZ,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",x="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"],U=z%100;return"["+z+(ee[(U-20)%10]||ee[U]||ee[0])+"]"}},S=function(z,ee,U){var O=String(z);return!O||O.length>=ee?z:""+Array(ee+1-O.length).join(U)+z},k={s:S,z:function(z){var ee=-z.utcOffset(),U=Math.abs(ee),O=Math.floor(U/60),V=U%60;return(ee<=0?"+":"-")+S(O,2,"0")+":"+S(V,2,"0")},m:function z(ee,U){if(ee.date()<U.date())return-z(U,ee);var O=12*(U.year()-ee.year())+(U.month()-ee.month()),V=ee.clone().add(O,m),ne=U-V<0,K=ee.clone().add(O+(ne?-1:1),m);return+(-(O+(U-V)/(ne?V-K:K-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}},M="en",F={};F[M]=E;var N="$isDayjsObject",te=function(z){return z instanceof xe||!(!z||!z[N])},ce=function z(ee,U,O){var V;if(!ee)return M;if(typeof ee=="string"){var ne=ee.toLowerCase();F[ne]&&(V=ne),U&&(F[ne]=U,V=ne);var K=ee.split("-");if(!V&&K.length>1)return z(K[0])}else{var le=ee.name;F[le]=ee,V=le}return!O&&V&&(M=V),V||!O&&M},ae=function(z,ee){if(te(z))return z.clone();var U=typeof ee=="object"?ee:{};return U.date=z,U.args=arguments,new xe(U)},I=k;I.l=ce,I.i=te,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(U){this.$L=ce(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[N]=!0}var ee=z.prototype;return ee.parse=function(U){this.$d=function(O){var V=O.date,ne=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 K=V.match(D);if(K){var le=K[2]-1||0,ue=(K[7]||"0").substring(0,3);return ne?new Date(Date.UTC(K[1],le,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ue)):new Date(K[1],le,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ue)}}return new Date(V)}(U),this.init()},ee.init=function(){var U=this.$d;this.$y=U.getFullYear(),this.$M=U.getMonth(),this.$D=U.getDate(),this.$W=U.getDay(),this.$H=U.getHours(),this.$m=U.getMinutes(),this.$s=U.getSeconds(),this.$ms=U.getMilliseconds()},ee.$utils=function(){return I},ee.isValid=function(){return this.$d.toString()!==x},ee.isSame=function(U,O){var V=ae(U);return this.startOf(O)<=V&&V<=this.endOf(O)},ee.isAfter=function(U,O){return ae(U)<this.startOf(O)},ee.isBefore=function(U,O){return this.endOf(O)<ae(U)},ee.$g=function(U,O,V){return I.u(U)?this[O]:this.set(V,U)},ee.unix=function(){return Math.floor(this.valueOf()/1e3)},ee.valueOf=function(){return this.$d.getTime()},ee.startOf=function(U,O){var V=this,ne=!!I.u(O)||O,K=I.p(U),le=function(Ge,Me){var Le=I.w(V.$u?Date.UTC(V.$y,Me,Ge):new Date(V.$y,Me,Ge),V);return ne?Le:Le.endOf(d)},ue=function(Ge,Me){return I.w(V.toDate()[Ge].apply(V.toDate("s"),(ne?[0,0,0,0]:[23,59,59,999]).slice(Me)),V)},De=this.$W,Pe=this.$M,Fe=this.$D,He="set"+(this.$u?"UTC":"");switch(K){case b:return ne?le(1,0):le(31,11);case m:return ne?le(1,Pe):le(0,Pe+1);case h:var Xe=this.$locale().weekStart||0,Be=(De<Xe?De+7:De)-Xe;return le(ne?Fe-Be:Fe+(6-Be),Pe);case d:case w:return ue(He+"Hours",0);case l:return ue(He+"Minutes",1);case o:return ue(He+"Seconds",2);case a:return ue(He+"Milliseconds",3);default:return this.clone()}},ee.endOf=function(U){return this.startOf(U,!1)},ee.$set=function(U,O){var V,ne=I.p(U),K="set"+(this.$u?"UTC":""),le=(V={},V[d]=K+"Date",V[w]=K+"Date",V[m]=K+"Month",V[b]=K+"FullYear",V[l]=K+"Hours",V[o]=K+"Minutes",V[a]=K+"Seconds",V[s]=K+"Milliseconds",V)[ne],ue=ne===d?this.$D+(O-this.$W):O;if(ne===m||ne===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(U,O){return this.clone().$set(U,O)},ee.get=function(U){return this[I.p(U)]()},ee.add=function(U,O){var V,ne=this;U=Number(U);var K=I.p(O),le=function(Pe){var Fe=ae(ne);return I.w(Fe.date(Fe.date()+Math.round(Pe*U)),ne)};if(K===m)return this.set(m,this.$M+U);if(K===b)return this.set(b,this.$y+U);if(K===d)return le(1);if(K===h)return le(7);var ue=(V={},V[o]=r,V[l]=i,V[a]=n,V)[K]||1,De=this.$d.getTime()+U*ue;return I.w(De,this)},ee.subtract=function(U,O){return this.add(-1*U,O)},ee.format=function(U){var O=this,V=this.$locale();if(!this.isValid())return V.invalidDate||x;var ne=U||"YYYY-MM-DDTHH:mm:ssZ",K=I.z(this),le=this.$H,ue=this.$m,De=this.$M,Pe=V.weekdays,Fe=V.months,He=V.meridiem,Xe=function(Me,Le,Ae,Ye){return Me&&(Me[Le]||Me(O,ne))||Ae[Le].slice(0,Ye)},Be=function(Me){return I.s(le%12||12,Me,"0")},Ge=He||function(Me,Le,Ae){var Ye=Me<12?"AM":"PM";return Ae?Ye.toLowerCase():Ye};return ne.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 Ge(le,ue,!0);case"A":return Ge(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 K}return null}(Me)||K.replace(":","")})},ee.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ee.diff=function(U,O,V){var ne,K=this,le=I.p(O),ue=ae(U),De=(ue.utcOffset()-this.utcOffset())*r,Pe=this-ue,Fe=function(){return I.m(K,ue)};switch(le){case b:ne=Fe()/12;break;case m:ne=Fe();break;case g:ne=Fe()/3;break;case h:ne=(Pe-De)/6048e5;break;case d:ne=(Pe-De)/864e5;break;case l:ne=Pe/i;break;case o:ne=Pe/r;break;case a:ne=Pe/n;break;default:ne=Pe}return V?ne:I.a(ne)},ee.daysInMonth=function(){return this.endOf(m).$D},ee.$locale=function(){return F[this.$L]},ee.locale=function(U,O){if(!U)return this.$L;var V=this.clone(),ne=ce(U,O,!0);return ne&&(V.$L=ne),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=ce,ae.isDayjs=te,ae.unix=function(z){return ae(1e3*z)},ae.en=F[M],ae.Ls=F,ae.p={},ae})}($p)),$p.exports}var dk=LZ();const VZ=fi(dk);var M0,jD;function BZ(){if(jD)return M0;jD=1;var e=Ec(),t=Ac(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return M0=r,M0}var NZ=BZ();const jZ=fi(NZ);var Zu=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],KZ="react-international-phone-",hk=(...e)=>e.filter(t=>!!t).join(" ").trim(),UZ=(...e)=>hk(...e).split(" ").map(t=>`${KZ}${t}`).join(" "),Mr=({addPrefix:e,rawClassNames:t})=>hk(UZ(...e),...t),zZ=({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},Ol=e=>e?/^\d+$/.test(e):!1,Xm=e=>e.replace(/\D/g,""),qZ=(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},WZ=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),HZ=(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=Xm(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=zZ({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(o=""),s(`${o}${l}`)},GZ=({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(Ol(t[h])){a=h;break}if(a===null){for(let h=0;h<t.length;h+=1)if(Ol(n[h]))return h;return t.length}let o=0;for(let h=0;h<a;h+=1)Ol(t[h])&&(o+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,Ol(n[h])&&(d+=1),!(d>=o+1));h+=1);if(s!=="backward")for(;!Ol(n[l])&&l<n.length;)l+=1;return l},xp=({phone:e,prefix:t})=>e?`${t}${Xm(e)}`:"";function qb({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?rX({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,w=(b==null?void 0:b.country)??t,x=HZ(g,{prefix:s,mask:tX({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:xp({phone:l?`${D.dialCode}${x}`:x,prefix:s}),inputValue:x,country:D}}var YZ=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},ZZ=(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=YZ(b),x=!!(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:xp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!Ol(C)&&E!==i)return{inputValue:r,phone:xp({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}`)&&!x){let te=E?r:`${i}${t.dialCode}${s}`;return{inputValue:te,phone:xp({phone:te,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:k,inputValue:M,country:F}=qb({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}),N=GZ({cursorPositionAfterInput:S,phoneBeforeInput:r,phoneAfterInput:E,phoneAfterFormatted:M,leftOffset:a?i.length+t.dialCode.length+s.length:0,deletion:w});return{phone:k,inputValue:M,cursorPosition:N,country:F}},XZ=(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},JZ=()=>{let e=T.useRef(),t=T.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},QZ={size:20,overrideLastItemDebounceMS:-1};function eX(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...QZ,...t},[s,a]=T.useState(e),[o,l]=T.useState([s]),[d,h]=T.useState(0),m=JZ();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&XZ(g,s)||g===s)return;let w=r>0,x=m.check(),D=w&&x!==void 0?x>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:Zu},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},x=T.useRef(null),D=b||x,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},M,F,N]=eX(()=>{let z=Bl({value:e,field:"iso2",countries:n});z||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ee=z||Bl({value:"us",field:"iso2",countries:n}),{phone:U,inputValue:O,country:V}=qb({value:t,country:ee,insertDialCodeOnEmpty:!l,...w});return C(O.length),{phone:U,inputValue:O,country:V.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:z,phone:ee,country:U})=>{if(!g)return;let O=te(U);g({phone:ee,inputValue:z,country:O})}}),te=T.useCallback(z=>Bl({value:z,field:"iso2",countries:n}),[n]),ce=T.useMemo(()=>te(k),[k,te]);T.useEffect(()=>{let z=D.current;if(!z)return;let ee=U=>{if(!U.key)return;let O=U.ctrlKey,V=U.metaKey,ne=U.shiftKey;if(U.key.toLowerCase()==="z"){if(WZ()){if(!V)return}else if(!O)return;ne?N():F()}};return z.addEventListener("keydown",ee),()=>{z.removeEventListener("keydown",ee)}},[D,F,N]);let ae=z=>{z.preventDefault();let{phone:ee,inputValue:U,country:O,cursorPosition:V}=ZZ(z,{country:ce,phoneBeforeInput:S,insertDialCodeOnEmpty:!1,...w});return M({inputValue:U,phone:ee,country:O.iso2}),C(V),t},I=(z,ee={focusOnInput:!1})=>{let U=Bl({value:z,field:"iso2",countries:n});if(!U){console.error(`[react-international-phone]: can not find a country with "${z}" iso2 code`);return}let O=h?"":`${r}${U.dialCode}${s}`;M({inputValue:O,phone:`${r}${U.dialCode}`,country:U.iso2}),ee.focusOnInput&&Promise.resolve().then(()=>{var V;(V=D.current)==null||V.focus()})},[xe,Ce]=T.useState(!1);return T.useEffect(()=>{if(!xe){Ce(!0),t!==E&&(g==null||g({inputValue:S,phone:E,country:ce}));return}if(t===E)return;let{phone:z,inputValue:ee,country:U}=qb({value:t,country:ce,insertDialCodeOnEmpty:!l,...w});M({phone:z,inputValue:ee,country:U.iso2})},[t]),{phone:E,inputValue:S,country:ce,setCountry:I,handlePhoneValueChange:ae,inputRef:D}},tX=({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(Xm(d))});return s(a?i[a]:i.default)},xs=e=>{let[t,n,r,i,s,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:a}},nX=e=>`Field "${e}" is not supported`,Bl=({field:e,value:t,countries:n=Zu})=>{if(["priority"].includes(e))throw new Error(nX(e));let r=n.find(i=>{let s=xs(i);return t===s[e]});if(r)return xs(r)},rX=({phone:e,countries:t=Zu,currentCountryIso2:n})=>{var o;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Xm(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=xs(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=Bl({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},iX=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},sX="abcdefghijklmnopqrstuvwxyz",aX="1f1e6",KD=sX.split("").reduce((e,t,n)=>({...e,[t]:iX(aX,n)}),{}),oX=e=>[KD[e[0]],KD[e[1]]].join("-"),q3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:a,...o})=>{if(!e)return T.createElement("img",{className:Mr({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...o});let l=()=>{if(n)return n;let d=oX(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return T.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})},uX=1e3,lX=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Zu,preferredCountries:i=[],flags:s,onSelect:a,onClose:o,...l})=>{let d=T.useRef(null),h=T.useRef(),m=T.useMemo(()=>{if(!i||!i.length)return r;let F=[],N=[...r];for(let te of i){let ce=N.findIndex(ae=>xs(ae).iso2===te);if(ce!==-1){let ae=N.splice(ce,1)[0];F.push(ae)}}return F.concat(N)},[r,i]),g=T.useRef({updatedAt:void 0,value:""}),b=F=>{let N=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>uX;g.current={value:N?F:`${g.current.value}${F}`,updatedAt:new Date};let te=m.findIndex(ce=>xs(ce).name.toLowerCase().startsWith(g.current.value));te!==-1&&D(te)},w=T.useCallback(F=>m.findIndex(N=>xs(N).iso2===F),[m]),[x,D]=T.useState(w(n)),C=()=>{h.current!==n&&D(w(n))},E=T.useCallback(F=>{D(w(F.iso2)),a==null||a(F)},[a,w]),S=F=>{let N=m.length-1,te=ce=>F==="prev"?ce-1:F==="next"?ce+1:F==="last"?N:0;D(ce=>{let ae=te(ce);return ae<0?0:ae>N?N:ae})},k=F=>{if(F.stopPropagation(),F.key==="Enter"){F.preventDefault();let N=xs(m[x]);E(N);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())},M=T.useCallback(()=>{if(!d.current||x===void 0)return;let F=xs(m[x]).iso2;if(F===h.current)return;let N=d.current.querySelector(`[data-country="${F}"]`);N&&(qZ(d.current,N),h.current=F)},[x,m]);return T.useEffect(()=>{M()},[x,M]),T.useEffect(()=>{d.current&&(e?d.current.focus():C())},[e]),T.useEffect(()=>{C()},[n]),T.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__${xs(m[x]).iso2}-option`},m.map((F,N)=>{let te=xs(F),ce=te.iso2===n,ae=N===x,I=i.includes(te.iso2),xe=N===i.length-1,Ce=s==null?void 0:s.find(z=>z.iso2===te.iso2);return T.createElement(T.Fragment,{key:te.iso2},T.createElement("li",{"data-country":te.iso2,role:"option","aria-selected":ce,"aria-label":`${te.name} ${t}${te.dialCode}`,id:`react-international-phone__${te.iso2}-option`,className:Mr({addPrefix:["country-selector-dropdown__list-item",I&&"country-selector-dropdown__list-item--preferred",ce&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>E(te),style:l.listItemStyle,title:te.name},T.createElement(q3,{iso2:te.iso2,src:Ce==null?void 0:Ce.src,className:Mr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},te.name),T.createElement("span",{className:Mr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,te.dialCode)),xe?T.createElement("hr",{className:Mr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},cX=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Zu,preferredCountries:s=[],flags:a,renderButtonWrapper:o,...l})=>{let[d,h]=T.useState(!1),m=T.useMemo(()=>{if(e)return Bl({value:e,field:"iso2",countries:i})},[i,e]),g=T.useRef(null),b=x=>{x.key&&["ArrowUp","ArrowDown"].includes(x.key)&&(x.preventDefault(),h(!0))},w=()=>{var C;let x={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=T.createElement("div",{className:Mr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},T.createElement(q3,{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&&T.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:x}):T.createElement("button",{...x,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 T.createElement("div",{className:Mr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},w(),T.createElement(lX,{show:d,countries:i,preferredCountries:s,flags:a,onSelect:x=>{h(!1),t==null||t(x)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},fX=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>T.createElement("div",{className:Mr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);T.forwardRef(({value:e,onChange:t,countries:n=Zu,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:x,disabled:D,name:C,onFocus:E,onBlur:S,required:k,autoFocus:M,...F},N)=>{let{phone:te,inputValue:ce,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 T.useImperativeHandle(N,()=>ae.current?Object.assign(ae.current,{setCountry:xe,state:{phone:te,inputValue:ce,country:I}}):null,[ae,xe,te,ce,I]),T.createElement("div",{ref:N,className:Mr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},T.createElement(cX,{onSelect:ee=>xe(ee.iso2,{focusOnInput:!a}),flags:o,selectedCountry:I.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...g}),z&&T.createElement(fX,{dialCode:I.dialCode,prefix:F.prefix??"+",disabled:D,...b}),T.createElement("input",{onChange:Ce,value:ce,type:"tel",ref:ae,className:Mr({addPrefix:["input",D&&"input--disabled"],rawClassNames:[m]}),placeholder:x,disabled:D,style:h,name:C,onFocus:E,onBlur:S,autoFocus:M,required:k,...w}))});var Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wb={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]",x="[object Promise]",D="[object RegExp]",C="[object Set]",E="[object String]",S="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",F="[object DataView]",N="[object Float32Array]",te="[object Float64Array]",ce="[object Int8Array]",ae="[object Int16Array]",I="[object Int32Array]",xe="[object Uint8Array]",Ce="[object Uint8ClampedArray]",z="[object Uint16Array]",ee="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,O=/\w*$/,V=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,K={};K[s]=K[a]=K[M]=K[F]=K[o]=K[l]=K[N]=K[te]=K[ce]=K[ae]=K[I]=K[g]=K[b]=K[w]=K[D]=K[C]=K[E]=K[S]=K[xe]=K[Ce]=K[z]=K[ee]=!0,K[d]=K[h]=K[k]=!1;var le=typeof Po=="object"&&Po&&Po.Object===Object&&Po,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,He=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 Ge(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 Ye(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,be=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=be.hasOwnProperty,Qe=be.toString,gt=RegExp("^"+Je.call(tt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=He?De.Buffer:void 0,xt=De.Symbol,yn=De.Uint8Array,Cr=$t(Object.getPrototypeOf,Object),zt=Object.create,Pt=be.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"),Rs=gi(De,"Promise"),No=gi(De,"Set"),bt=gi(De,"WeakMap"),hi=gi(Object,"create"),pa=Lr(di),jc=Lr(kr),el=Lr(Rs),Kc=Lr(No),tl=Lr(bt),jo=xt?xt.prototype:void 0,nl=jo?jo.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 Sn(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 rl(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=Sn,is.prototype.has=ma,is.prototype.set=rl;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 il(){this.__data__=[]}function sl(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=il,Er.prototype.delete=sl,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 Xn(se){return Pi(this,se).get(se)}function Ko(se){return Pi(this,se).has(se)}function ks(se,Re){return Pi(this,se).set(se,Re),this}dn.prototype.clear=as,dn.prototype.delete=pi,dn.prototype.get=Xn,dn.prototype.has=Ko,dn.prototype.set=ks;function mi(se){this.__data__=new Er(se)}function Ln(){this.__data__=new Er}function no(se){return this.__data__.delete(se)}function Kt(se){return this.__data__.get(se)}function zc(se){return this.__data__.has(se)}function al(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=no,mi.prototype.get=Kt,mi.prototype.has=zc,mi.prototype.set=al;function qc(se,Re){var ze=xa(se)||Ls(se)?Ae(se.length,String):[],pt=ze.length,bn=!!pt;for(var sr in se)tt.call(se,sr)&&!(bn&&(sr=="length"||Go(sr,pt)))&&ze.push(sr);return ze}function Uo(se,Re,ze){var pt=se[Re];(!(tt.call(se,Re)&&Is(pt,ze))||ze===void 0&&!(Re in se))&&(se[Re]=ze)}function ga(se,Re){for(var ze=se.length;ze--;)if(Is(se[ze][0],Re))return ze;return-1}function ol(se,Re){return se&&yr(Re,Ea(Re),se)}function zo(se,Re,ze,pt,bn,sr,lr){var Kn;if(pt&&(Kn=sr?pt(se,bn,sr,lr):pt(se)),Kn!==void 0)return Kn;if(!Ca(se))return se;var Dn=xa(se);if(Dn){if(Kn=Ho(se),!Re)return ro(se,Kn)}else{var Mi=_i(se),Fi=Mi==h||Mi==m;if(io(se))return Wo(se,Re);if(Mi==w||Mi==s||Fi&&!sr){if(ht(se))return sr?se:{};if(Kn=fl(Fi?{}:se),!Re)return ya(se,ol(Kn,se))}else{if(!K[Mi])return sr?se:{};Kn=pn(se,Mi,zo,Re)}}lr||(lr=new mi);var Xo=lr.get(se);if(Xo)return Xo;if(lr.set(se,Kn),!Dn)var so=ze?ba(se):Ea(se);return Ge(so||se,function(cr,Sa){so&&(Sa=cr,cr=se[Sa]),Uo(Kn,Sa,zo(cr,Re,ze,pt,Sa,se,lr))}),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 ul(se){if(!Ca(se)||Yo(se))return!1;var Re=hl(se)||ht(se)?gt:V;return Re.test(Lr(se))}function qo(se){if(!dl(se))return Xr(se);var Re=[];for(var ze in Object(se))tt.call(se,ze)&&ze!="constructor"&&Re.push(ze);return Re}function Wo(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 ll(se,Re){var ze=Re?va(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.byteLength)}function cl(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 nl?Object(nl.call(se)):{}}function Os(se,Re){var ze=Re?va(se.buffer):se.buffer;return new se.constructor(ze,se.byteOffset,se.length)}function ro(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 lr=Re[bn],Kn=void 0;Uo(ze,lr,Kn===void 0?se[lr]:Kn)}return ze}function ya(se,Re){return yr(se,ur(se),Re)}function ba(se){return Hc(se,Ea,ur)}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=Ye(se,Re);return ul(ze)?ze:void 0}var ur=qt?$t(qt,Object):Yt,_i=Gc;(di&&_i(new di(new ArrayBuffer(1)))!=F||kr&&_i(new kr)!=g||Rs&&_i(Rs.resolve())!=x||No&&_i(new No)!=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 el:return x;case Kc:return C;case tl:return k}return Re});function Ho(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 fl(se){return typeof se.constructor=="function"&&!dl(se)?Wc(Cr(se)):{}}function pn(se,Re,ze,pt){var bn=se.constructor;switch(Re){case M:return va(se);case o:case l:return new bn(+se);case F:return ll(se,pt);case N:case te:case ce:case ae:case I:case xe:case Ce:case z:case ee:return Os(se,pt);case g:return cl(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 Go(se,Re){return Re=Re??i,!!Re&&(typeof se=="number"||ne.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 Yo(se){return!!_e&&_e in se}function dl(se){var Re=se&&se.constructor,ze=typeof Re=="function"&&Re.prototype||be;return se===ze}function Lr(se){if(se!=null){try{return Je.call(se)}catch{}try{return se+""}catch{}}return""}function Zo(se){return zo(se,!0,!0)}function Is(se,Re){return se===Re||se!==se&&Re!==Re}function Ls(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)&&!hl(se)}function wa(se){return Zc(se)&&os(se)}var io=gr||nn;function hl(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):qo(se)}function Yt(){return[]}function nn(){return!1}e.exports=Zo})(Wb,Wb.exports);var _o=Wb.exports,Hb=function(){return Hb=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},Hb.apply(this,arguments)};function dX(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 hX(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 nm(e,t,n,r,i){return dX(this,void 0,void 0,function(){var s,a;return hX(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 Gb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Hb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},pX=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=_o(n);nm(t,a,r,this.htmlPluginState,i).then(function(o){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Gb(i,o);s.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=_o(t);nm(this.imgElement,s,n,this.htmlPluginState).then(function(a){if(i.isMounted){var o=Gb(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}},mX=class extends Error{constructor(t="Unsupported"){super(t)}};function W3(e){return new mX(e)}function gX(){return this._qualifierModel||{error:W3(`unsupported qualifier ${this.constructor.name}`)}}let vX=class{constructor(){this._qualifierModel={}}toJson(){return gX.apply(this)}},Ot=class extends vX{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 yX(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function bX(){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:W3(`unsupported action ${this.constructor.name}`)}}let $X=class{constructor(){this._actionModel={}}toJson(){return bX.apply(this)}},_s=class extends $X{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(),yX(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 H3 extends _s{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Jm extends H3{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 Jm;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 xX(){return new Jm}function gk(){return new H3("faces")}function wX(){return new H3("ocr_text")}class CX extends _s{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(wX()),r&&r.regionType==="custom"&&i.region(Jm.fromJson(r)),i}}function Xu(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"},EX={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"},SX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},$k={444:"CHROMA_444",420:"CHROMA_420"},DX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},AX=Xu($k);Xu(DX);const TX=Xu(vk),PX=Xu(EX),xk=Xu(yk);Xu(bk);Xu(SX);class wk extends _s{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 _X 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 Qm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class MX extends _s{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 FX extends _X{level(t){return this._actionModel.level=t,this.setLevel(t)}}class RX extends _s{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 kX extends FX{color(t){return this._actionModel.color=t,this.addQualifier(new Ot("co",new In(Qm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class OX extends _s{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(xX()),i}}const IX=e=>jX(encodeURIComponent,BX,NX)(e),LX=/[!'()*~_.-]/g,VX={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},BX=e=>e.replace(LX,t=>{var n;return(n=VX[t])!==null&&n!==void 0?n:t}),NX=e=>e.replace(/%20/g," "),jX=(...e)=>t=>e.reduce((n,r)=>r(n),t);function KX(e){return new CX(e)}function UX(){return new wk("grayscale")}function UD(e){return new kX("colorize",e)}function zX(){return new MX}function qX(){return new RX}function WX(e){return new OX(e)}let HX=class extends _s{constructor(t){super(),this._actionModel={},this.addQualifier(new Ot("b",new In(Qm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},zD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:W3(`unsupported action ${this.constructor.name}`)}}};function GX(e){const t=e;return"error"in t&&!!t.error}function YX(){return new Qi("ignore_aspect_ratio")}function ZX(){return new Qi("lossy")}function XX(){return new Qi("preserve_transparency")}function JX(e){return new Qi("progressive",e)}function QX(){return new Qi("region_relative")}function eJ(){return new Qi("relative")}let G3=class extends In{constructor(t){super(t),this.val=t}getValue(){return this.val}},Ck=class extends _s{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof G3?i=n.getValue():i=n,this._actionModel.actionType=PX[t],this._actionModel[r]=i,this.addQualifier(new Ot(t,n))}},tJ=class extends Qi{constructor(t){super("progressive",t)}},Yb=class extends Ck{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(ZX()),this}progressive(t){return t instanceof tJ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(JX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(XX()),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}},eg=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 zD(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 zD(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new Yb("q",t)),this}format(t){return this.addAction(new Yb("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 HX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new _s;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(GX(r))return r;t.push(r)}return{actions:t}}};function qD(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class nJ extends In{}class rJ extends _s{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=TX[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 nJ)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ot("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=qD(t),this.addQualifier(new Ot("ar",qD(t)));if(t instanceof Qi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(eJ())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(QX())}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"?YX():a),i&&h.relative(),s&&h.regionRelative(),h}}class Y3 extends Ot{constructor(t){super("g",new In(t))}}class Sk extends Y3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class Dk extends Y3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class Ak extends Y3{constructor(t){super(t)}}function iJ(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 sJ(){return new pc("ocr_text")}function aJ(e){return e&&`${e}`.split(":")[0]==="auto"}function oJ(e){const t=Z3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Z3(e){return`${e}`.replace("g_","")}function uJ(e){return{compass:Z3(e),gravityType:"direction"}}function lJ(e){return Z3(e)==="ocr_text"}function cJ(){return{gravityType:"ocr"}}function fJ(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function dJ(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(dJ)}}function hJ(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 pJ(e){const n=e.split(":").map(r=>new pc(r));return new Dk(n)}function mJ(e){return oJ(e)?uJ(e):lJ(e)?cJ():aJ(e)||fJ(e)?_k(e):hJ(typeof e=="string"?pJ(e):e)}class X3 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 X3(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Mk extends In{constructor(t){super(),this.val=t}toString(){return this.val}}function gJ(e){return e.gravityType==="direction"}function vJ(e){return e.gravityType==="ocr"}function yJ(e){return e.gravityType==="auto"}function bJ(e){const{object:t,weight:n,avoid:r}=e,i=new X3(new pc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function Fk(e){const n=(e.autoFocus||[]).map(bJ);return Pk().autoFocus(...n)}function $J(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 xJ(e){return gJ(e)?new Ak(new Mk(e.compass)):vJ(e)?Tk(sJ()):yJ(e)?Fk(e):$J(e)}class J3 extends rJ{gravity(t){this._actionModel.gravity=mJ(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(xJ(t.gravity)),n}}class jd extends Ot{constructor(t){super("b"),t&&this.addValue(t)}}const Rk=100,wJ=0;class CJ extends jd{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=CJ;class Q3 extends jd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Qm(n)),this}}class Ok extends Q3{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 Q3{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 Q3{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 jd{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_${IX(this._prompt)}`:""}`}}function jk(e){return`${e}`.replace("b_","")}function EJ(){return{backgroundType:"auto"}}function SJ(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 e$(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function DJ(e){return Object.assign(Object.assign({},e$(e)),{backgroundType:"border"})}function Kk(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=e$(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function AJ(e){return Object.assign(Object.assign({},Kk(e)),{backgroundType:"borderGradient"})}function TJ(e){return{backgroundType:"color",color:jk(e)}}function PJ(e){return Object.assign(Object.assign({},e$(e)),{backgroundType:"predominant"})}function _J(e){return Object.assign(Object.assign({},Kk(e)),{backgroundType:"predominantGradient"})}function MJ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function FJ(e){return jk(e)==="auto"?EJ():e instanceof kk?SJ(e):e instanceof Ok?DJ(e):e instanceof Lk?AJ(e):e instanceof Bk?PJ(e):e instanceof Vk?_J(e):e instanceof Nk?MJ(e):TJ(e)}function RJ(){return new G3("svg")}function t$(){return new G3("auto")}function Uk(){return new Ok}function zk(){return new jd("auto")}function qk(){return new Lk}function Wk(){return new Vk}function Hk(){return new Bk}function Gk(e){return new jd(Qm(e))}function kJ(){return new kk}function Yk(){return new Nk}const Zk={auto:zk,border:Uk,borderGradient:qk,predominantGradient:Wk,predominant:Hk,color:Gk,blurred:kJ,generativeFill:Yk};function OJ(e){const{brightness:t,intensity:n}=e,r=Zk.blurred();return r.brightness(t??wJ),r.intensity(n??Rk),r}function WD(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 HD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function IJ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function LJ(e){const{backgroundType:t}=e;switch(t){case"auto":return zk();case"blurred":return OJ(e);case"border":return HD(Uk(),e);case"borderGradient":return WD(qk(),e);case"predominant":return HD(Hk(),e);case"predominantGradient":return WD(Wk(),e);case"generativeFill":return IJ(Yk(),e);default:return Gk(e.color)}}class VJ extends J3{background(t){return this._actionModel.background=FJ(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(LJ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class BJ extends J3{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 NJ extends J3{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 jJ(e,t){return new BJ("crop",e,t)}function KJ(e,t){return new NJ("fill",e,t)}function UJ(e,t){return new VJ("pad",e,t)}class zJ 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=AX[r.toUpperCase()];o&&a.chromaSubSampling(+o)}return i&&a.quantization(i),a}}function tg(e){return new Yb("f",e)}function ng(e){return new zJ(e)}function qJ(){return new Mk("north_east")}UD(70).color("black"),UD(40).color("white"),UX(),qX();var WJ=new eg().effect(zX()).delivery(ng("auto")).delivery(tg(RJ())),HJ=new eg().effect(WX()).delivery(ng("auto")).delivery(tg(t$())),GJ=new eg().effect(KX(2e3)).delivery(ng("auto")).delivery(tg(t$())),YJ=new eg().resize(UJ("iw_div_2").aspectRatio(1).background(Zk.auto())).resize(jJ(1,1).gravity(iJ(qJ()))).resize(KJ().height("ih").width("iw")).delivery(ng("auto")).delivery(tg(t$())),GD={vectorize:WJ,pixelate:HJ,blur:GJ,"predominant-color":YJ},YD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ZD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},XD="?_a=",ZJ=function(){function e(t,n,r,i,s,a,o){var l=this;this.mimeType="video",this.mimeSubTypes=ZD,this.videoElement=t,this.originalVideo=n,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=_o(n);nm(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(_o(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(_o(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(XD),d=l[1]?"".concat(XD).concat(l[1]):"",h=a?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(ZD[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=_o(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]);nm(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,s),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),XJ=typeof Po=="object"&&Po&&Po.Object===Object&&Po,JJ=typeof self=="object"&&self&&self.Object===Object&&self;XJ||JJ||Function("return this")();function n$(){return typeof window<"u"}function QJ(e){return e instanceof HTMLImageElement}function eQ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return tQ.bind(null,r,s)}function tQ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),n$()?new Promise(function(a){var o=function(){return a({lazyload:!0})},l=rQ(n,o,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function nQ(){return window&&"IntersectionObserver"in window}function rQ(e,t,n,r){try{if(!nQ())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 iQ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return sQ.bind(null,r)}function sQ(e,t,n,r,i,s){GD[e]||(e="vectorize");var a=GD[e].actions,o=_o(n);if(a.forEach(function(d){o.addAction(d)}),!n$())return n.transformation=o.transformation,!0;if(QJ(t)){o.transformation.actions.forEach(function(d,h){d instanceof _s&&d.getActionTag()==="responsive"&&delete o.transformation.actions[h]});var l=Gb(i,{placeholder:!0});return t.src=o.toURL(l),t.onerror=function(){t.src=YD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=YD,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function aQ(e,t,n){var r=_o(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 rm(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 Zb=function(e,t){return Zb=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])},Zb(e,t)};function Xk(e,t){Zb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fd=function(){return fd=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},fd.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 F0={sdkSemver:"1.14.3",techVersion:T.version,sdkCode:"J"},oQ=function(e){Xk(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=T.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new pX(this.imageRef.current,this.props.cldImg,this.props.plugins,F0)},t.prototype.componentDidUpdate=function(){rm(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,F0)},t.prototype.componentWillUnmount=function(){rm(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(n$())return T.createElement("img",fd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=aQ(this.props.plugins,this.props.cldImg,F0);return T.createElement("img",fd({},r,{src:i}))},t}(T.Component),uQ=["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=T.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new ZJ(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(){rm(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){rm(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return uQ.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 T.createElement("video",fd({},r,{ref:this.attachRef}))},t})(T.Component);function lQ(e){return!(typeof e!="object"||e instanceof Array)}class cQ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return lQ(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 JD=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class r$ extends cQ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,JD);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,JD);return new r$(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 dd{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 fQ extends Error{constructor(t="Unsupported"){super(t)}}function i$(e){return new fQ(e)}function dQ(){return this._qualifierModel||{error:i$(`unsupported qualifier ${this.constructor.name}`)}}class hQ{constructor(){this._qualifierModel={}}toJson(){return dQ.apply(this)}}class rg extends hQ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof dd?this.qualifierValue=n:(this.qualifierValue=new dd,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 Mo extends rg{constructor(t,n){let r;n?r=new dd([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function pQ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function mQ(){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:i$(`unsupported action ${this.constructor.name}`)}}class gQ{constructor(){this._actionModel={}}toJson(){return mQ.apply(this)}}class s$ extends gQ{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(),pQ(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 Mo(r)):this.qualifiers.set(n,new rg(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Mo(t)):t instanceof Mo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function vQ(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class yQ extends s${constructor(t){super(),this._actionModel={},this.addQualifier(new rg("b",new dd(vQ(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class QD{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:i$(`unsupported action ${this.constructor.name}`)}}}function bQ(e){const t=e;return"error"in t&&!!t.error}function $Q(){return new Mo("lossy")}function xQ(){return new Mo("preserve_transparency")}function wQ(e){return new Mo("progressive",e)}class CQ extends dd{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Ju(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const EQ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},SQ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},DQ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},AQ={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},TQ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},PQ={444:"CHROMA_444",420:"CHROMA_420"},_Q={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Ju(PQ);Ju(_Q);Ju(EQ);const MQ=Ju(SQ);Ju(DQ);Ju(AQ);Ju(TQ);class FQ extends s${constructor(t,n,r){super(),this._actionModel={};let i;n instanceof CQ?i=n.getValue():i=n,this._actionModel.actionType=MQ[t],this._actionModel[r]=i,this.addQualifier(new rg(t,n))}}class RQ extends Mo{constructor(t){super("progressive",t)}}class im extends FQ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag($Q()),this}progressive(t){return t instanceof RQ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(wQ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(xQ()),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 ig{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 QD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof ig?this.actions=this.actions.concat(t.actions):this.actions.push(new QD(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 im("q",t)),this}format(t){return this.addAction(new im("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 yQ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new s$;let r=t;return typeof t=="string"&&(r=new Mo(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(bQ(r))return r;t.push(r)}return{actions:t}}}class kQ extends ig{}class OQ extends ig{}function IQ(e){return e.match(/^https?:\//)}function LQ(e){return e.indexOf("/")<0}function VQ(e){return e.match(/^v[0-9]+/)}function BQ(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 NQ(e){return e||"image"}function jQ(e){return e||"upload"}function KQ(e,t,n){const r=n!==!1;return t?`v${t}`:VQ(e)||IQ(e)||LQ(e)?"":r?"v1":""}function a$(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=UQ(i,r/i.length)),i.slice(0,r)+String(e))}function UQ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const zQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sm={};let eA=0;zQ.split("").forEach(e=>{let t=eA.toString(2);t=a$(t,6,"0"),sm[t]=e,eA++});function qQ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function WQ(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 a$(t,2,"0")}).join(".")}function tA(e){let t="";const r=e.split(".").length*6,i=qQ(e),s=WQ(i);let o=parseInt(s.split(".").join("")).toString(2);if(o=a$(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+=sm[l]}),t}function HQ(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 GQ="1.21.0";function YQ(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 sm[s]+sm[a]}function ZQ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function XQ(e){const t={techVersion:ZQ(),sdkCode:"T",sdkSemver:GQ.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 nA(e){const t=XQ(e),n=HQ(t);try{const r=JQ(n.techVersion),i=tA(n.sdkSemver),s=tA(r),a=YQ(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 JQ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const rA={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class QQ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new r$(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=NQ(this.assetType),n=jQ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=rA[`${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(rA).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=BQ(this.cloudName,this.urlConfig),i=t?t.toString():"",s=KQ(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",nA(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=${nA(n)}`);return d?`${o}?${d}`:o}}}class Qk extends QQ{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 im("q",t)),this}format(t){return this.addAction(new im("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 eee extends Qk{constructor(t,n,r){super(t,n,r,new kQ)}}class tee extends Qk{constructor(t,n,r){super(t,n,r,new OQ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class nee{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new eee(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new tee(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var R0,iA;function ree(){if(iA)return R0;iA=1;var e=ok(),t=z3(),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],x=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,x,b,s,a,D);if(!(C===void 0?t(x,w,n|r,l,D):C))return!1}}return!0}return R0=i,R0}var k0,sA;function e7(){if(sA)return k0;sA=1;var e=Sc();function t(n){return n===n&&!e(n)}return k0=t,k0}var O0,aA;function iee(){if(aA)return O0;aA=1;var e=e7(),t=U3();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 O0=n,O0}var I0,oA;function t7(){if(oA)return I0;oA=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return I0=e,I0}var L0,uA;function see(){if(uA)return L0;uA=1;var e=ree(),t=iee(),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 L0=r,L0}var V0,lA;function o$(){if(lA)return V0;lA=1;var e=Ec(),t=Ac(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return V0=r,V0}var B0,cA;function u$(){if(cA)return B0;cA=1;var e=ha(),t=o$(),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 B0=i,B0}var N0,fA;function aee(){if(fA)return N0;fA=1;var e=L3(),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,N0=n,N0}var j0,dA;function oee(){if(dA)return j0;dA=1;var e=aee(),t=500;function n(r){var i=e(r,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return j0=n,j0}var K0,hA;function uee(){if(hA)return K0;hA=1;var e=oee(),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 K0=r,K0}var U0,pA;function lee(){if(pA)return U0;pA=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 U0=e,U0}var z0,mA;function cee(){if(mA)return z0;mA=1;var e=Gm(),t=lee(),n=ha(),r=o$(),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 z0=a,z0}var q0,gA;function fee(){if(gA)return q0;gA=1;var e=cee();function t(n){return n==null?"":e(n)}return q0=t,q0}var W0,vA;function n7(){if(vA)return W0;vA=1;var e=ha(),t=u$(),n=uee(),r=fee();function i(s,a){return e(s)?s:t(s,a)?[s]:n(r(s))}return W0=i,W0}var H0,yA;function sg(){if(yA)return H0;yA=1;var e=o$();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return H0=t,H0}var G0,bA;function r7(){if(bA)return G0;bA=1;var e=n7(),t=sg();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 G0=n,G0}var Y0,$A;function dee(){if($A)return Y0;$A=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 Y0=t,Y0}var Z0,xA;function hee(){if(xA)return Z0;xA=1;function e(t,n){return t!=null&&n in Object(t)}return Z0=e,Z0}var X0,wA;function pee(){if(wA)return X0;wA=1;var e=n7(),t=ck(),n=ha(),r=B3(),i=N3(),s=sg();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 X0=a,X0}var J0,CA;function mee(){if(CA)return J0;CA=1;var e=hee(),t=pee();function n(r,i){return r!=null&&t(r,i,e)}return J0=n,J0}var Q0,EA;function gee(){if(EA)return Q0;EA=1;var e=z3(),t=dee(),n=mee(),r=u$(),i=e7(),s=t7(),a=sg(),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 Q0=d,Q0}var e1,SA;function vee(){if(SA)return e1;SA=1;function e(t){return t}return e1=e,e1}var t1,DA;function yee(){if(DA)return t1;DA=1;function e(t){return function(n){return n==null?void 0:n[t]}}return t1=e,t1}var n1,AA;function bee(){if(AA)return n1;AA=1;var e=r7();function t(n){return function(r){return e(r,n)}}return n1=t,n1}var r1,TA;function $ee(){if(TA)return r1;TA=1;var e=yee(),t=bee(),n=u$(),r=sg();function i(s){return n(s)?e(r(s)):t(s)}return r1=i,r1}var i1,PA;function i7(){if(PA)return i1;PA=1;var e=see(),t=gee(),n=vee(),r=ha(),i=$ee();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 i1=s,i1}var s1,_A;function xee(){if(_A)return s1;_A=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 s1=e,s1}var a1,MA;function wee(){if(MA)return a1;MA=1;var e=xee(),t=e();return a1=t,a1}var o1,FA;function s7(){if(FA)return o1;FA=1;var e=wee(),t=U3();function n(r,i){return r&&e(r,i,t)}return o1=n,o1}var u1,RA;function Cee(){if(RA)return u1;RA=1;var e=K3();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 u1=t,u1}var l1,kA;function Eee(){if(kA)return l1;kA=1;var e=s7(),t=Cee(),n=t(e);return l1=n,l1}var c1,OA;function See(){if(OA)return c1;OA=1;var e=Eee();function t(n,r){var i;return e(n,function(s,a,o){return i=r(s,a,o),!i}),!!i}return c1=t,c1}var f1,IA;function Dee(){if(IA)return f1;IA=1;var e=k3(),t=K3(),n=B3(),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 f1=i,f1}var d1,LA;function Aee(){if(LA)return d1;LA=1;var e=uk(),t=i7(),n=See(),r=ha(),i=Dee();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 d1=s,d1}var Tee=Aee();const Pee=fi(Tee);var h1={exports:{}},VA;function _ee(){return VA||(VA=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 M,F;switch(o.util.type(S)){case"Object":if(F=o.util.objId(S),k[F])return k[F];M={},k[F]=M;for(var N in S)S.hasOwnProperty(N)&&(M[N]=E(S[N],k));return M;case"Array":return F=o.util.objId(S),k[F]?k[F]:(M=[],k[F]=M,S.forEach(function(te,ce){M[ce]=E(te,k)}),M);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(M){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.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 M="no-"+S;E;){var F=E.classList;if(F.contains(S))return!0;if(F.contains(M))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 M in S)k[M]=S[M];return k},insertBefore:function(E,S,k,M){M=M||o.languages;var F=M[E],N={};for(var te in F)if(F.hasOwnProperty(te)){if(te==S)for(var ce in k)k.hasOwnProperty(ce)&&(N[ce]=k[ce]);k.hasOwnProperty(te)||(N[te]=F[te])}var ae=M[E];return M[E]=N,o.languages.DFS(o.languages,function(I,xe){xe===ae&&I!=E&&(this[I]=N)}),N},DFS:function E(S,k,M,F){F=F||{};var N=o.util.objId;for(var te in S)if(S.hasOwnProperty(te)){k.call(S,te,S[te],M||te);var ce=S[te],ae=o.util.type(ce);ae==="Object"&&!F[N(ce)]?(F[N(ce)]=!0,E(ce,k,null,F)):ae==="Array"&&!F[N(ce)]&&(F[N(ce)]=!0,E(ce,k,te,F))}}},plugins:{},highlightAll:function(E,S){o.highlightAllUnder(document,E,S)},highlightAllUnder:function(E,S,k){var M={callback:k,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),o.hooks.run("before-all-elements-highlight",M);for(var F=0,N;N=M.elements[F++];)o.highlightElement(N,S===!0,M.callback)},highlightElement:function(E,S,k){var M=o.util.getLanguage(E),F=o.languages[M];o.util.setLanguage(E,M);var N=E.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(N,M);var te=E.textContent,ce={element:E,language:M,grammar:F,code:te};function ae(xe){ce.highlightedCode=xe,o.hooks.run("before-insert",ce),ce.element.innerHTML=ce.highlightedCode,o.hooks.run("after-highlight",ce),o.hooks.run("complete",ce),k&&k.call(ce.element)}if(o.hooks.run("before-sanity-check",ce),N=ce.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!ce.code){o.hooks.run("complete",ce),k&&k.call(ce.element);return}if(o.hooks.run("before-highlight",ce),!ce.grammar){ae(o.util.encode(ce.code));return}if(S&&r.Worker){var I=new Worker(o.filename);I.onmessage=function(xe){ae(xe.data)},I.postMessage(JSON.stringify({language:ce.language,code:ce.code,immediateClose:!0}))}else ae(o.highlight(ce.code,ce.grammar,ce.language))},highlight:function(E,S,k){var M={code:E,grammar:S,language:k};if(o.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=o.tokenize(M.code,M.grammar),o.hooks.run("after-tokenize",M),l.stringify(o.util.encode(M.tokens),M.language)},tokenize:function(E,S){var k=S.rest;if(k){for(var M in k)S[M]=k[M];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 M=0,F;F=k[M++];)F(S)}},Token:l};r.Prism=o;function l(E,S,k,M){this.type=E,this.content=S,this.alias=k,this.length=(M||"").length|0}l.stringify=function E(S,k){if(typeof S=="string")return S;if(Array.isArray(S)){var M="";return S.forEach(function(ae){M+=E(ae,k)}),M}var F={type:S.type,content:E(S.content,k),tag:"span",classes:["token",S.type],attributes:{},language:k},N=S.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(F.classes,N):F.classes.push(N)),o.hooks.run("wrap",F);var te="";for(var ce in F.attributes)te+=" "+ce+'="'+(F.attributes[ce]||"").replace(/"/g,""")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+te+">"+F.content+"</"+F.tag+">"};function d(E,S,k,M){E.lastIndex=S;var F=E.exec(k);if(F&&M&&F[1]){var N=F[1].length;F.index+=N,F[0]=F[0].slice(N)}return F}function h(E,S,k,M,F,N){for(var te in k)if(!(!k.hasOwnProperty(te)||!k[te])){var ce=k[te];ce=Array.isArray(ce)?ce:[ce];for(var ae=0;ae<ce.length;++ae){if(N&&N.cause==te+","+ae)return;var I=ce[ae],xe=I.inside,Ce=!!I.lookbehind,z=!!I.greedy,ee=I.alias;if(z&&!I.pattern.global){var U=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,U+"g")}for(var O=I.pattern||I,V=M.next,ne=F;V!==S.tail&&!(N&&ne>=N.reach);ne+=V.value.length,V=V.next){var K=V.value;if(S.length>E.length)return;if(!(K instanceof l)){var le=1,ue;if(z){if(ue=d(O,ne,E,Ce),!ue||ue.index>=E.length)break;var He=ue.index,De=ue.index+ue[0].length,Pe=ne;for(Pe+=V.value.length;He>=Pe;)V=V.next,Pe+=V.value.length;if(Pe-=V.value.length,ne=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--,K=E.slice(ne,Pe),ue.index-=ne}else if(ue=d(O,0,K,Ce),!ue)continue;var He=ue.index,Xe=ue[0],Be=K.slice(0,He),Ge=K.slice(He+Xe.length),Me=ne+K.length;N&&Me>N.reach&&(N.reach=Me);var Le=V.prev;Be&&(Le=g(S,Le,Be),ne+=Be.length),b(S,Le,le);var Ae=new l(te,xe?o.tokenize(Xe,xe):Xe,ee,Xe);if(V=g(S,Le,Ae),Ge&&g(S,V,Ge),le>1){var Ye={cause:te+","+ae,reach:Me};h(E,S,k,V.prev,ne,Ye),N&&Ye.reach>N.reach&&(N.reach=Ye.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 M=S.next,F={value:k,prev:S,next:M};return S.next=F,M.prev=F,E.length++,F}function b(E,S,k){for(var M=S.next,F=0;F<k&&M!==E.tail;F++)M=M.next;S.next=M,M.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,M=S.code,F=S.immediateClose;r.postMessage(o.highlight(M,o.languages[k],k)),F&&r.close()},!1)),o;var x=o.util.currentScript();x&&(o.filename=x.src,x.hasAttribute("data-manual")&&(o.manual=!0));function D(){o.manual||o.highlightAll()}if(!o.manual){var C=document.readyState;C==="loading"||C==="interactive"&&x&&x.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(x,D){return"✖ Error "+x+" 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(x,D,C){var E=new XMLHttpRequest;E.open("GET",x,!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(x){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");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(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var D=x.element;if(D.matches(m)){x.code="",D.setAttribute(o,l);var C=D.appendChild(document.createElement("CODE"));C.textContent=r;var E=D.getAttribute("data-src"),S=x.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 M=n.plugins.autoloader;M&&M.loadLanguages(S),g(E,function(F){D.setAttribute(o,d);var N=b(D.getAttribute("data-range"));if(N){var te=F.split(/\r\n?|\n/g),ce=N[0],ae=N[1]==null?te.length:N[1];ce<0&&(ce+=te.length),ce=Math.max(0,Math.min(ce-1,te.length)),ae<0&&(ae+=te.length),ae=Math.max(0,Math.min(ae,te.length)),F=te.slice(ce,ae).join(`
|
|
133
|
+
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(ce+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)}}()}(h1)),h1.exports}var Mee=_ee();(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),x=getComputedStyle(b);function D(C){return+C.substr(0,C.length-2)}return b.offsetTop+D(x.borderTopWidth)+D(x.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,x){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),M=b.querySelector("code"),F=k?b:M||b,N=[],te=M.textContent.match(n),ce=te?te.length+1:1,ae=!M||F==M?0:o(b,M);D.forEach(function(Ce){var z=Ce.split("-"),ee=+z[0],U=+z[1]||ee;if(U=Math.min(ce+C,U),!(U<ee)){var O=b.querySelector('.line-highlight[data-range="'+Ce+'"]')||document.createElement("div");if(N.push(function(){O.setAttribute("aria-hidden","true"),O.setAttribute("data-range",Ce),O.className=(x||"")+" line-highlight"}),k&&Prism.plugins.lineNumbers){var V=Prism.plugins.lineNumbers.getLine(b,ee),ne=Prism.plugins.lineNumbers.getLine(b,U);if(V){var K=V.offsetTop+ae+"px";N.push(function(){O.style.top=K})}if(ne){var le=ne.offsetTop-V.offsetTop+ne.offsetHeight+"px";N.push(function(){O.style.height=le})}}else N.push(function(){O.setAttribute("data-start",String(ee)),U>ee&&O.setAttribute("data-end",String(U)),O.style.top=(ee-C-1)*S+ae+"px",O.textContent=new Array(U-ee+2).join(`
|
|
134
|
+
`)});N.push(function(){O.style.width=b.scrollWidth+"px"}),N.push(function(){F.appendChild(O)})}});var I=b.id;if(k&&Prism.util.isActive(b,t)&&I){i(b,t)||N.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 U=I+"."+ee;d=!1,location.hash=U,setTimeout(function(){d=!0},1)}})}return function(){N.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(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(x,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(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),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 x=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!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=T.createContext({});function Kd(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const l$=typeof window<"u",o7=l$?T.useLayoutEffect:T.useEffect,c$=T.createContext(null);function f$(e,t){e.indexOf(t)===-1&&e.push(t)}function d$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Fee([...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 Ya=(e,t,n)=>n>t?t:n<e?e:n;function Xb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Tc=()=>{},Ts=()=>{};process.env.NODE_ENV!=="production"&&(Tc=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Xb(t,n))},Ts=(e,t,n)=>{if(!e)throw new Error(Xb(t,n))});const Za={},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 h$(e){let t;return()=>(t===void 0&&(t=e()),t)}const es=e=>e,Ree=(e,t)=>n=>t(e(n)),Ud=(...e)=>e.reduce(Ree),hd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let p$=class{constructor(){this.subscriptions=[]}add(t){return f$(this.subscriptions,t),()=>d$(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 Ss=e=>e*1e3,aa=e=>e/1e3;function f7(e,t){return t?e*(1e3/t):0}const BA=new Set;function m$(e,t,n){e||BA.has(t)||(console.warn(Xb(t,n)),BA.add(t))}const d7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kee=1e-7,Oee=12;function Iee(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)>kee&&++o<Oee);return a}function zd(e,t,n,r){if(e===t&&n===r)return es;const i=s=>Iee(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=zd(.33,1.53,.69,.99),g$=p7(m7),g7=h7(g$),v7=e=>(e*=2)<1?.5*g$(e):.5*(2-Math.pow(2,-10*(e-1))),v$=e=>1-Math.sin(Math.acos(e)),y7=p7(v$),b7=h7(v$),Lee=zd(.42,0,1,1),Vee=zd(0,0,.58,1),$7=zd(.42,0,.58,1),Bee=e=>Array.isArray(e)&&typeof e[0]!="number",x7=e=>Array.isArray(e)&&typeof e[0]=="number",NA={linear:es,easeIn:Lee,easeInOut:$7,easeOut:Vee,circIn:v$,circInOut:b7,circOut:y7,backIn:g$,backInOut:g7,backOut:m7,anticipate:v7},Nee=e=>typeof e=="string",jA=e=>{if(x7(e)){Ts(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return zd(t,n,r,i)}else if(Nee(e))return Ts(NA[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),NA[e];return e},Yh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function jee(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 Kee=40;function w7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Yh.reduce((S,k)=>(S[k]=jee(s),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=a,x=()=>{const S=Za.useManualTiming?i.timestamp:performance.now();n=!1,Za.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Kee),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(x))},D=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Yh.reduce((S,k)=>{const M=a[k];return S[k]=(F,N=!1,te=!1)=>(n||D(),M.schedule(F,N,te)),S},{}),cancel:S=>{for(let k=0;k<Yh.length;k++)a[Yh[k]].cancel(S)},state:i,steps:a}}const{schedule:En,cancel:Xa,state:xr,steps:p1}=w7(typeof requestAnimationFrame<"u"?requestAnimationFrame:es,!0);let wp;function Uee(){wp=void 0}const ui={now:()=>(wp===void 0&&ui.set(xr.isProcessing||Za.useManualTiming?xr.timestamp:performance.now()),wp),set:e=>{wp=e,queueMicrotask(Uee)}},C7=e=>t=>typeof t=="string"&&t.startsWith(e),y$=C7("--"),zee=C7("var(--"),b$=e=>zee(e)?qee.test(e.split("/*")[0].trim()):!1,qee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pd={...Pc,transform:e=>Ya(0,1,e)},Zh={...Pc,default:1},Gf=e=>Math.round(e*1e5)/1e5,$$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wee(e){return e==null}const Hee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,x$=(e,t)=>n=>!!(typeof n=="string"&&Hee.test(n)&&n.startsWith(e)||t&&!Wee(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($$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Gee=e=>Ya(0,255,e),m1={...Pc,transform:e=>Math.round(Gee(e))},Su={test:x$("rgb","red"),parse:E7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+m1.transform(e)+", "+m1.transform(t)+", "+m1.transform(n)+", "+Gf(pd.transform(r))+")"};function Yee(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 Jb={test:x$("#"),parse:Yee,transform:Su.transform},qd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bo=qd("deg"),oa=qd("%"),Dt=qd("px"),Zee=qd("vh"),Xee=qd("vw"),KA={...oa,parse:e=>oa.parse(e)/100,transform:e=>oa.transform(e*100)},Nl={test:x$("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(pd.transform(r))+")"},tr={test:e=>Su.test(e)||Jb.test(e)||Nl.test(e),parse:e=>Su.test(e)?Su.parse(e):Nl.test(e)?Nl.parse(e):Jb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Su.transform(e):Nl.transform(e),getAnimatableNone:e=>{const t=tr.parse(e);return t.alpha=0,tr.transform(t)}},Jee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Qee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match($$))==null?void 0:t.length)||0)+(((n=e.match(Jee))==null?void 0:n.length)||0)>0}const S7="number",D7="color",ete="var",tte="var(",UA="${}",nte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function md(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(nte,l=>(tr.test(l)?(r.color.push(s),i.push(D7),n.push(tr.parse(l))):l.startsWith(tte)?(r.var.push(s),i.push(ete),n.push(l)):(r.number.push(s),i.push(S7),n.push(parseFloat(l))),++s,UA)).split(UA);return{values:n,split:o,indexes:r,types:i}}function A7(e){return md(e).values}function T7(e){const{split:t,types:n}=md(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 rte=e=>typeof e=="number"?0:tr.test(e)?tr.getAnimatableNone(e):e;function ite(e){const t=A7(e);return T7(e)(t.map(rte))}const ko={test:Qee,parse:A7,createTransformer:T7,getAnimatableNone:ite};function g1(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 ste({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=g1(l,o,e+1/3),s=g1(l,o,e),a=g1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function am(e,t){return n=>n>0?t:e}const Pn=(e,t,n)=>e+(t-e)*n,v1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ate=[Jb,Su,Nl],ote=e=>ate.find(t=>t.test(e));function zA(e){const t=ote(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===Nl&&(n=ste(n)),n}const qA=(e,t)=>{const n=zA(e),r=zA(t);if(!n||!r)return am(e,t);const i={...n};return s=>(i.red=v1(n.red,r.red,s),i.green=v1(n.green,r.green,s),i.blue=v1(n.blue,r.blue,s),i.alpha=Pn(n.alpha,r.alpha,s),Su.transform(i))},Qb=new Set(["none","hidden"]);function ute(e,t){return Qb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function lte(e,t){return n=>Pn(e,t,n)}function w$(e){return typeof e=="number"?lte:typeof e=="string"?b$(e)?am:tr.test(e)?qA:dte:Array.isArray(e)?P7:typeof e=="object"?tr.test(e)?qA:cte:am}function P7(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>w$(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function cte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=w$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function fte(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 dte=(e,t)=>{const n=ko.createTransformer(t),r=md(e),i=md(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?Qb.has(e)&&!i.values.length||Qb.has(t)&&!r.values.length?ute(e,t):Ud(P7(fte(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"),am(e,t))};function _7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):w$(e)(e,t)}const hte=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>En.update(t,n),stop:()=>Xa(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)})`},om=2e4;function C$(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<om;)t+=n,r=e.next(t);return t>=om?1/0:t}function pte(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(C$(r),om);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:aa(i)}}const mte=5;function F7(e,t,n){const r=Math.max(t-mte,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},y1=.001;function gte({duration:e=Fn.duration,bounce:t=Fn.bounce,velocity:n=Fn.velocity,mass:r=Fn.mass}){let i,s;Tc(e<=Ss(Fn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Ya(Fn.minDamping,Fn.maxDamping,a),e=Ya(Fn.minDuration,Fn.maxDuration,aa(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=e4(d,a),w=Math.exp(-m);return y1-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),x=e4(Math.pow(d,2),a);return(-i(d)+y1>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-y1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=yte(i,s,o);if(e=Ss(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 vte=12;function yte(e,t,n){let r=n;for(let i=1;i<vte;i++)r=r-e(r)/t(r);return r}function e4(e,t){return e*Math.sqrt(1-t*t)}const bte=["duration","bounce"],$te=["stiffness","damping","mass"];function WA(e,t){return t.some(n=>e[n]!==void 0)}function xte(e){let t={velocity:Fn.velocity,stiffness:Fn.stiffness,damping:Fn.damping,mass:Fn.mass,isResolvedFromDuration:!1,...e};if(!WA(e,$te)&&WA(e,bte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ya(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Fn.mass,stiffness:i,damping:s}}else{const n=gte(e);t={...t,...n,mass:Fn.mass},t.isResolvedFromDuration=!0}return t}function um(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}=xte({...n,velocity:-aa(n.velocity||0)}),w=g||0,x=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(x<1){const M=e4(C,x);S=F=>{const N=Math.exp(-x*C*F);return a-N*((w+x*C*D)/M*Math.sin(M*F)+D*Math.cos(M*F))}}else if(x===1)S=M=>a-Math.exp(-C*M)*(D+(w+C*D)*M);else{const M=C*Math.sqrt(x*x-1);S=F=>{const N=Math.exp(-x*C*F),te=Math.min(M*F,300);return a-N*((w+x*C*D)*Math.sinh(te)+M*D*Math.cosh(te))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const F=S(M);if(b)o.done=M>=m;else{let N=M===0?w:0;x<1&&(N=M===0?Ss(w):F7(S,M,F));const te=Math.abs(N)<=r,ce=Math.abs(a-F)<=i;o.done=te&&ce}return o.value=o.done?a:F,o},toString:()=>{const M=Math.min(C$(k),om),F=M7(N=>k.next(M*N).value,M,30);return M+"ms "+F},toTransition:()=>{}};return k}um.applyToOptions=e=>{const t=pte(e,100,um);return e.ease=t.ease,e.duration=Ss(t.duration),e.type="keyframes",e};function t4({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=te=>o!==void 0&&te<o||l!==void 0&&te>l,w=te=>o===void 0?l:l===void 0||Math.abs(o-te)<Math.abs(l-te)?o:l;let x=n*t;const D=m+x,C=a===void 0?D:a(D);C!==D&&(x=C-m);const E=te=>-x*Math.exp(-te/r),S=te=>C+E(te),k=te=>{const ce=E(te),ae=S(te);g.done=Math.abs(ce)<=d,g.value=g.done?C:ae};let M,F;const N=te=>{b(g.value)&&(M=te,F=um({keyframes:[g.value,w(g.value)],velocity:F7(S,te,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:te=>{let ce=!1;return!F&&M===void 0&&(ce=!0,k(te),N(te)),M!==void 0&&te>=M?F.next(te-M):(!ce&&k(te),g)}}}function wte(e,t,n){const r=[],i=n||Za.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=Ud(l,o)}r.push(o)}return r}function R7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Ts(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=wte(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=hd(e[m],e[m+1],h);return o[m](g)};return n?h=>d(Ya(e[0],e[s-1],h)):d}function Cte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=hd(0,t,r);e.push(Pn(n,1,i))}}function Ete(e){const t=[0];return Cte(t,e.length-1),t}function Ste(e,t){return e.map(n=>n*t)}function Dte(e,t){return e.map(()=>t||$7).splice(0,e.length-1)}function jl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Bee(r)?r.map(jA):jA(r),s={done:!1,value:t[0]},a=Ste(n&&n.length===t.length?n:Ete(t),e),o=R7(a,t,{ease:Array.isArray(i)?i:Dte(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const Ate=e=>e!==null;function E$(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Ate),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Tte={decay:t4,inertia:t4,tween:jl,keyframes:jl,spring:um};function k7(e){typeof e.type=="string"&&(e.type=Tte[e.type])}let S$=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 Pte=e=>e/100;let D$=class extends S${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=jl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||jl;process.env.NODE_ENV!=="production"&&l!==jl&&Ts(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,"spring-two-frames"),l!==jl&&typeof o[0]!="number"&&(this.mixKeyframes=Ud(Pte,_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=C$(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:x,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 te=Math.min(this.currentTime,i)/o;let ce=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&ce--,ce=Math.min(ce,m+1),!!(ce%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),S=Ya(0,1,ae)*o}const M=E?{done:!1,value:h[0]}:k.next(S);s&&(M.value=s(M.value));let{done:F}=M;!E&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return N&&w!==t4&&(M.value=E$(h,this.options,D,this.speed)),x&&x(M.value),N&&this.finish(),M}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=Ss(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=hte,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 _te(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Du=e=>e*180/Math.PI,n4=e=>{const t=Du(Math.atan2(e[1],e[0]));return r4(t)},Mte={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:n4,rotateZ:n4,skewX:e=>Du(Math.atan(e[1])),skewY:e=>Du(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},r4=e=>(e=e%360,e<0&&(e+=360),e),HA=n4,GA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),YA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fte={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:GA,scaleY:YA,scale:e=>(GA(e)+YA(e))/2,rotateX:e=>r4(Du(Math.atan2(e[6],e[5]))),rotateY:e=>r4(Du(Math.atan2(-e[2],e[0]))),rotateZ:HA,rotate:HA,skewX:e=>Du(Math.atan(e[4])),skewY:e=>Du(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function i4(e){return e.includes("scale")?1:0}function s4(e,t){if(!e||e==="none")return i4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Fte,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Mte,i=o}if(!i)return i4(t);const s=r[t],a=i[1].split(",").map(kte);return typeof s=="function"?s(a):a[s]}const Rte=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return s4(n,t)};function kte(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),ZA=e=>e===Pc||e===Dt,Ote=new Set(["x","y","z"]),Ite=_c.filter(e=>!Ote.has(e));function Lte(e){const t=[];return Ite.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})=>s4(t,"x"),y:(e,{transform:t})=>s4(t,"y")};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const Ru=new Set;let a4=!1,o4=!1,u4=!1;function O7(){if(o4){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=Lte(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,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)})}o4=!1,a4=!1,Ru.forEach(e=>e.complete(u4)),Ru.clear()}function I7(){Ru.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o4=!0)})}function Vte(){u4=!0,I7(),O7(),u4=!1}let A$=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),a4||(a4=!0,En.read(I7),En.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])}_te(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 Bte=e=>e.startsWith("--");function Nte(e,t,n){Bte(t)?e.style.setProperty(t,n):e.style[t]=n}const jte=h$(()=>window.ScrollTimeline!==void 0),Kte={};function Ute(e,t){const n=h$(e);return()=>Kte[t]??n()}const L7=Ute(()=>{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})`,XA={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)||XA.easeOut):XA[e]}function zte(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 qte({type:e,...t}){return B7(e)&&L7()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let Wte=class extends S${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,Ts(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=qte(t);this.animation=zte(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=E$(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Nte(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=Ss(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&&jte()?(this.animation.timeline=t,es):n(this)}};const N7={anticipate:v7,backInOut:g7,circInOut:b7};function Hte(e){return e in N7}function Gte(e){typeof e.ease=="string"&&Hte(e.ease)&&(e.ease=N7[e.ease])}const JA=10;let Yte=class extends Wte{constructor(t){Gte(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 D$({...a,autoplay:!1}),l=Ss(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-JA).value,o.sample(l).value,JA),o.stop()}};const QA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ko.test(e)||e==="0")&&!e.startsWith("url("));function Zte(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 Xte(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=QA(i,t),o=QA(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:Zte(e)||(n==="spring"||B7(n))&&r}function l4(e){e.duration=0,e.type}const Jte=new Set(["opacity","clipPath","filter","transform"]),Qte=h$(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ene(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 Qte()&&n&&Jte.has(n)&&(n!=="transform"||!d)&&!l&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const tne=40;let nne=class extends S${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 x,D;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.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)||A$;this.keyframeResolver=new b(o,(x,D,C)=>this.onKeyframesResolved(x,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(),Xte(t,s,a,o)||((Za.instantAnimations||!l)&&(h==null||h(E$(t,r,n))),t[0]=t[t.length-1],l4(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>tne?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&ene(g)?new Yte({...g,element:g.motionValue.owner.current}):new D$(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(),Vte()),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 rne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ine(e){const t=rne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const sne=4;function j7(e,t,n=1){Ts(n<=sne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=ine(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return u7(a)?parseFloat(a):a}return b$(i)?j7(i,t,n+1):i}function T$(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]),ane={test:e=>e==="auto",parse:e=>e},U7=e=>t=>t.test(e),z7=[Pc,Dt,oa,bo,Xee,Zee,ane],eT=e=>z7.find(U7(e));function one(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c7(e):!0}const une=new Set(["brightness","contrast","saturate","opacity"]);function lne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($$)||[];if(!r)return e;const i=n.replace(r,"");let s=une.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const cne=/\b([a-z-]*)\(.*?\)/gu,c4={...ko,getAnimatableNone:e=>{const t=e.match(cne);return t?t.map(lne).join(" "):e}},tT={...Pc,transform:Math.round},fne={rotate:bo,rotateX:bo,rotateY:bo,rotateZ:bo,scale:Zh,scaleX:Zh,scaleY:Zh,scaleZ:Zh,skew:bo,skewX:bo,skewY:bo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:pd,originX:KA,originY:KA,originZ:Dt},P$={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,...fne,zIndex:tT,fillOpacity:pd,strokeOpacity:pd,numOctaves:tT},dne={...P$,color:tr,backgroundColor:tr,outlineColor:tr,fill:tr,stroke:tr,borderColor:tr,borderTopColor:tr,borderRightColor:tr,borderBottomColor:tr,borderLeftColor:tr,filter:c4,WebkitFilter:c4},q7=e=>dne[e];function W7(e,t){let n=q7(e);return n!==c4&&(n=ko),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hne=new Set(["auto","none","0"]);function pne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!hne.has(s)&&md(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=W7(n,i)}let mne=class extends A${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(),b$(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=eT(i),o=eT(s);if(a!==o)if(ZA(a)&&ZA(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||one(t[i]))&&r.push(i);r.length&&pne(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 gne(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 vne(e){return l7(e)&&"offsetHeight"in e}const nT=30,yne=e=>!isNaN(parseFloat(e)),Yf={current:void 0};let bne=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=yne(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&m$(!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 p$);const r=this.events[t].add(n);return t==="change"?()=>{r(),En.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return 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>nT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nT);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 Wu(e,t){return new bne(e,t)}const{schedule:_$}=w7(queueMicrotask,!1),ys={x:!1,y:!1};function G7(){return ys.x||ys.y}function $ne(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=gne(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function rT(e){return!(e.pointerType==="touch"||G7())}function xne(e,t,n={}){const[r,i,s]=Y7(e,n),a=o=>{if(!rT(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{rT(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,M$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wne=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Cne(e){return wne.has(e.tagName)||e.tabIndex!==-1}const Cp=new WeakSet;function iT(e){return t=>{t.key==="Enter"&&e(t)}}function b1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ene=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=iT(()=>{if(Cp.has(n))return;b1(n,"down");const i=iT(()=>{b1(n,"up")}),s=()=>b1(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 sT(e){return M$(e)&&!G7()}function Sne(e,t,n={}){const[r,i,s]=Y7(e,n),a=o=>{const l=o.currentTarget;if(!sT(o))return;Cp.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Cp.has(l)&&Cp.delete(l),sT(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),vne(o)&&(o.addEventListener("focus",d=>Ene(d,i)),!Cne(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function X7(e){return l7(e)&&"ownerSVGElement"in e}function Dne(e){return X7(e)&&e.tagName==="svg"}function Ane(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],a=e[3+n],o=R7(i,s,a);return t?o(r):o}const wr=e=>!!(e&&e.getVelocity),Tne=[...z7,tr,ko],Pne=e=>Tne.find(U7(e)),F$=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _ne(e=!0){const t=T.useContext(c$);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=T.useId();T.useEffect(()=>{if(e)return i(s)},[e]);const a=T.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const J7=T.createContext({strict:!1}),aT={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 aT)mc[e]={isEnabled:t=>aT[e].some(n=>!!t[n])};function Mne(e){for(const t in e)mc[t]={...mc[t],...e[t]}}const Fne=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 lm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Fne.has(e)}let Q7=e=>!lm(e);function Rne(e){typeof e=="function"&&(Q7=t=>t.startsWith("on")?!lm(t):e(t))}try{Rne(require("@emotion/is-prop-valid").default)}catch{}function kne(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Q7(i)||n===!0&&lm(i)||!t&&!lm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ag=T.createContext({});function og(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function gd(e){return typeof e=="string"||Array.isArray(e)}const R$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],k$=["initial",...R$];function ug(e){return og(e.animate)||k$.some(t=>gd(e[t]))}function eO(e){return!!(ug(e)||e.variants)}function One(e,t){if(ug(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gd(n)?n:void 0,animate:gd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ine(e){const{initial:t,animate:n}=One(e,T.useContext(ag));return T.useMemo(()=>({initial:t,animate:n}),[oT(t),oT(n)])}function oT(e){return Array.isArray(e)?e.join(" "):e}const vd={};function Lne(e){for(const t in e)vd[t]=e[t],y$(t)&&(vd[t].isCSSVariable=!0)}function tO(e,{layout:t,layoutId:n}){return Mc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vd[e]||e==="opacity")}const Vne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bne=_c.length;function Nne(e,t,n){let r="",i=!0;for(let s=0;s<Bne;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,P$[a]);if(!l){i=!1;const h=Vne[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function O$(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(y$(l)){i[l]=d;continue}else{const h=H7(d,P$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=Nne(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 I$=()=>({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 jne({transformTemplate:e},t){return T.useMemo(()=>{const n=I$();return O$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Kne(e,t){const n=e.style||{},r={};return nO(r,n,e),Object.assign(r,jne(e,t)),r}function Une(e,t){const n={},r=Kne(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const zne={offset:"stroke-dashoffset",array:"stroke-dasharray"},qne={offset:"strokeDashoffset",array:"strokeDasharray"};function Wne(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?zne:qne;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(O$(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&&Wne(m,i,s,a,!1)}const iO=()=>({...I$(),attrs:{}}),sO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hne(e,t,n,r){const i=T.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 Gne=["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 L$(e){return typeof e!="string"||e.includes("-")?!1:!!(Gne.indexOf(e)>-1||/[A-Z]/u.test(e))}function Yne(e,t,n,{latestValues:r},i,s=!1){const o=(L$(e)?Hne:Une)(t,r,i,e),l=kne(t,typeof e=="string",s),d=e!==T.Fragment?{...l,...o,ref:n}:{},{children:h}=t,m=T.useMemo(()=>wr(h)?h.get():h,[h]);return T.createElement(e,{...d,children:m})}function uT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function V$(e,t,n,r){if(typeof t=="function"){const[i,s]=uT(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]=uT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Ep(e){return wr(e)?e.get():e}function Zne({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Xne(n,r,i,e),renderState:t()}}function Xne(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=Ep(s[g]);let{initial:a,animate:o}=e;const l=ug(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"&&!og(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=V$(e,g[b]);if(w){const{transitionEnd:x,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 x)i[E]=x[E]}}}return i}const aO=e=>(t,n)=>{const r=T.useContext(ag),i=T.useContext(c$),s=()=>Zne(e,t,r,i);return n?s():Kd(s)};function B$(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 Jne=aO({scrapeMotionValuesFromProps:B$,createRenderState:I$});function oO(e,t,n){const r=B$(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 Qne=aO({scrapeMotionValuesFromProps:oO,createRenderState:iO}),ere=Symbol.for("motionComponentSymbol");function Kl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tre(e,t,n){return T.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Kl(n)&&(n.current=r))},[t])}const N$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nre="framerAppearId",uO="data-"+N$(nre),lO=T.createContext({});function rre(e,t,n,r,i){var x,D;const{visualElement:s}=T.useContext(ag),a=T.useContext(J7),o=T.useContext(c$),l=T.useContext(F$).reducedMotion,d=T.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=T.useContext(lO);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&ire(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[uO],w=T.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.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())}),T.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 ire(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&&Kl(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 $1(e,{forwardMotionProps:t=!1}={},n,r){n&&Mne(n);const i=L$(e)?Qne:Jne;function s(o,l){let d;const h={...T.useContext(F$),...o,layoutId:sre(o)},{isStatic:m}=h,g=Ine(o),b=i(o,m);if(!m&&l$){are(h,n);const w=ore(h);d=w.MeasureLayout,g.visualElement=rre(e,b,h,r,w.ProjectionNode)}return la.jsxs(ag.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,Yne(e,o,tre(b,g.visualElement,l),b,m,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=T.forwardRef(s);return a[ere]=e,a}function sre({layoutId:e}){const t=T.useContext(a7).id;return t&&e!==void 0?t+"-"+e:e}function are(e,t){const n=T.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"):Ts(!1,r,"lazy-strict-mode")}}function ore(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 ure(e,t){if(typeof Proxy>"u")return $1;const n=new Map,r=(s,a)=>$1(s,a,e,t),i=(s,a)=>(process.env.NODE_ENV!=="production"&&m$(!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,$1(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 lre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cre(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 x1(e){return e===void 0||e===1}function f4({scale:e,scaleX:t,scaleY:n}){return!x1(e)||!x1(t)||!x1(n)}function mu(e){return f4(e)||dO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dO(e){return lT(e.x)||lT(e.y)}function lT(e){return e&&e!=="0%"}function cm(e,t,n){const r=e-n,i=t*r;return n+i}function cT(e,t,n,r,i){return i!==void 0&&(e=cm(e,i,r)),cm(e,n,r)+t}function d4(e,t=0,n=1,r,i){e.min=cT(e.min,t,n,r,i),e.max=cT(e.max,t,n,r,i)}function hO(e,{x:t,y:n}){d4(e.x,t.translate,t.scale,t.originPoint),d4(e.y,n.translate,n.scale,n.originPoint)}const fT=.999999999999,dT=1.0000000000001;function fre(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&&zl(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&&mu(s.latestValues)&&zl(e,s.latestValues))}t.x<dT&&t.x>fT&&(t.x=1),t.y<dT&&t.y>fT&&(t.y=1)}function Ul(e,t){e.min=e.min+t,e.max=e.max+t}function hT(e,t,n,r,i=.5){const s=Pn(e.min,e.max,i);d4(e,t,n,s,r)}function zl(e,t){hT(e.x,t.x,t.scaleX,t.scale,t.originX),hT(e.y,t.y,t.scaleY,t.scale,t.originY)}function pO(e,t){return fO(cre(e.getBoundingClientRect(),t))}function dre(e,t,n){const r=pO(e,n),{scroll:i}=t;return i&&(Ul(r.x,i.offset.x),Ul(r.y,i.offset.y)),r}const pT=()=>({translate:0,scale:1,origin:0,originPoint:0}),ql=()=>({x:pT(),y:pT()}),mT=()=>({min:0,max:0}),Gn=()=>({x:mT(),y:mT()}),h4={current:null},mO={current:!1};function hre(){if(mO.current=!0,!!l$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>h4.current=e.matches;e.addEventListener("change",t),t()}else h4.current=!1}const pre=new WeakMap;function mre(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,Wu(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,Wu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let gre=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=A$,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,En.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=ug(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,pre.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||hre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:h4.current,process.env.NODE_ENV!=="production"&&m$(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(),Xa(this.notifyUpdate),Xa(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&&En.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):Gn()}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<gT.length;r++){const i=gT[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=mre(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=Wu(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):!Pne(r)&&ko.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=V$(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 p$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){_$.render(this.render)}},gO=class extends gre{constructor(){super(...arguments),this.KeyframeResolver=mne}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 vre(e){return window.getComputedStyle(e)}let yre=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?i4(n):Rte(t,n);{const i=vre(t),s=(y$(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){O$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return B$(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 bre(e,t,n,r){vO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yO.has(i)?i:N$(i),t.attrs[i])}let $re=class extends gO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Gn}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:N$(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){bre(t,n,r,i)}mount(t){this.isSVGTag=sO(t.tagName),super.mount(t)}};const xre=(e,t)=>L$(e)?new $re(t):new yre(t,{allowProjection:e!==T.Fragment});function yd(e,t,n){const r=e.getProps();return V$(r,t,n!==void 0?n:r.custom,e)}const p4=e=>Array.isArray(e);function wre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wu(n))}function Cre(e){return p4(e)?e[e.length-1]||0:e}function Ere(e,t){const n=yd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Cre(s[a]);wre(e,a,o)}}function Sre(e){return!!(wr(e)&&e.add)}function m4(e,t){const n=e.getValue("willChange");if(Sre(n))return n.add(t);if(!n&&Za.WillChange){const r=new Za.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bO(e){return e.props[uO]}const Dre=e=>e!==null;function Are(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Dre),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Tre={type:"spring",stiffness:500,damping:25,restSpeed:10},Pre=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_re={type:"keyframes",duration:.8},Mre={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fre=(e,{keyframes:t})=>t.length>2?_re:Mc.has(e)?e.startsWith("scale")?Pre(t[1]):Tre:Mre;function Rre({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 j$=(e,t,n,r={},i,s)=>a=>{const o=T$(r,e)||{},l=o.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ss(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};Rre(o)||Object.assign(h,Fre(e,h)),h.duration&&(h.duration=Ss(h.duration)),h.repeatDelay&&(h.repeatDelay=Ss(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(l4(h),h.delay===0&&(m=!0)),(Za.instantAnimations||Za.skipAnimations)&&(m=!0,l4(h),h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Are(h.keyframes,o);if(g!==void 0){En.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new D$(h):new nne(h)};function kre({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&&kre(d,h))continue;const b={delay:n,...T$(s||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=bO(e);if(C){const E=window.MotionHandoffAnimation(C,h,En);E!==null&&(b.startTime=E,x=!0)}}m4(e,h),m.start(j$(h,m,g,e.shouldReduceMotion&&K7.has(h)?{type:!1}:b,e,x));const D=m.animation;D&&l.push(D)}return a&&Promise.all(l).then(()=>{En.update(()=>{a&&Ere(e,a)})}),l}function g4(e,t,n={}){var l;const r=yd(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 Ore(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 Ore(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(Ire).forEach((g,b)=>{g.notify("AnimationStart",t),o.push(g4(g,t,{...a,delay:n+(h?0:r)+m(b)}).then(()=>g.notify("AnimationComplete",t)))}),Promise.all(o)}function Ire(e,t){return e.sortNodePosition(t)}function Lre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>g4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=g4(e,t,n);else{const i=typeof t=="function"?yd(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 Vre=k$.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<Vre;n++){const r=k$[n],i=e.props[r];(gd(i)||i===!1)&&(t[r]=i)}return t}const Bre=[...R$].reverse(),Nre=R$.length;function jre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Lre(e,n,r)))}function Kre(e){let t=jre(e),n=vT(),r=!0;const i=l=>(d,h)=>{var g;const m=yd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...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<Nre;D++){const C=Bre[D],E=n[C],S=d[C]!==void 0?d[C]:h[C],k=gd(S),M=C===l?E.isActive:null;M===!1&&(w=D);let F=S===h[C]&&S!==d[C]&&k;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&M===null||!S&&!E.prevProp||og(S)||typeof S=="boolean")continue;const N=Ure(E.prevProp,S);let te=N||C===l&&E.isActive&&!F&&k||D>w&&k,ce=!1;const ae=Array.isArray(S)?S:[S];let I=ae.reduce(i(C),{});M===!1&&(I={});const{prevResolvedValues:xe={}}=E,Ce={...xe,...I},z=O=>{te=!0,g.has(O)&&(ce=!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],ne=xe[O];if(b.hasOwnProperty(O))continue;let K=!1;p4(V)&&p4(ne)?K=!xO(V,ne):K=V!==ne,K?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&&(te=!1),te&&(!(F&&N)||ce)&&m.push(...ae.map(O=>({animation:O,options:{type:C}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const C=yd(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 x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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=vT(),r=!0}}}function Ure(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xO(t,e):!1}function hu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vT(){return{animate:hu(!0),whileInView:hu(),whileHover:hu(),whileTap:hu(),whileDrag:hu(),whileFocus:hu(),exit:hu()}}let Bo=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},zre=class extends Bo{constructor(t){super(t),t.animationState||(t.animationState=Kre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();og(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)}},qre=0,Wre=class extends Bo{constructor(){super(...arguments),this.id=qre++}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 Hre={animation:{Feature:zre},exit:{Feature:Wre}};function bd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wd(e){return{point:{x:e.pageX,y:e.pageY}}}const Gre=e=>t=>M$(t)&&e(t,Wd(t));function Zf(e,t,n,r){return bd(e,t,Gre(n),r)}const CO=1e-4,Yre=1-CO,Zre=1+CO,EO=.01,Xre=0-EO,Jre=0+EO;function zr(e){return e.max-e.min}function Qre(e,t,n){return Math.abs(e-t)<=n}function yT(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=zr(n)/zr(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yre&&e.scale<=Zre||isNaN(e.scale))&&(e.scale=1),(e.translate>=Xre&&e.translate<=Jre||isNaN(e.translate))&&(e.translate=0)}function Xf(e,t,n,r){yT(e.x,t.x,n.x,r?r.originX:void 0),yT(e.y,t.y,n.y,r?r.originY:void 0)}function bT(e,t,n){e.min=n.min+t.min,e.max=e.min+zr(t)}function eie(e,t,n){bT(e.x,t.x,n.x),bT(e.y,t.y,n.y)}function $T(e,t,n){e.min=t.min-n.min,e.max=e.min+zr(t)}function Jf(e,t,n){$T(e.x,t.x,n.x),$T(e.y,t.y,n.y)}function zi(e){return[e("x"),e("y")]}const SO=({current:e})=>e?e.ownerDocument.defaultView:null,xT=(e,t)=>Math.abs(e-t);function tie(e,t){const n=xT(e.x,t.x),r=xT(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=C1(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=tie(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:D}=xr;this.history.push({...x,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=w1(b,this.transformPagePoint),En.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:D}=this.handlers;if(this.dragSnapToOrigin&&D&&D(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=C1(g.type==="pointercancel"?this.lastMoveEventInfo:w1(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),x&&x(g,C)},!M$(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const o=Wd(t),l=w1(o,this.transformPagePoint),{point:d}=l,{timestamp:h}=xr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,C1(l,this.history)),this.removeListeners=Ud(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(),Xa(this.updatePoint)}}function w1(e,t){return t?{point:t(e.point)}:e}function wT(e,t){return{x:e.x-t.x,y:e.y-t.y}}function C1({point:e},t){return{point:e,delta:wT(e,AO(t)),offset:wT(e,nie(t)),velocity:rie(t,.1)}}function nie(e){return e[0]}function AO(e){return e[e.length-1]}function rie(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>Ss(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 iie(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function CT(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 sie(e,{top:t,left:n,bottom:r,right:i}){return{x:CT(e.x,n,i),y:CT(e.y,t,r)}}function ET(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 aie(e,t){return{x:ET(e.x,t.x),y:ET(e.y,t.y)}}function oie(e,t){let n=.5;const r=zr(e),i=zr(t);return i>r?n=hd(t.min,t.max-r,e.min):r>i&&(n=hd(e.min,e.max-i,t.min)),Ya(0,1,n)}function uie(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 v4=.35;function lie(e=v4){return e===!1?e=0:e===!0&&(e=v4),{x:ST(e,"left","right"),y:ST(e,"top","bottom")}}function ST(e,t,n){return{min:DT(e,t),max:DT(e,n)}}function DT(e,t){return typeof e=="number"?e:e[t]||0}const cie=new WeakMap;class fie{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=Gn(),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(Wd(m).point)},a=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=$ne(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}),x&&En.postRender(()=>x(m,g)),m4(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:x,onDrag:D}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=die(C),this.currentDirection!==null&&x&&x(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&&En.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||!Xh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=iie(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&&Kl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=sie(r.layoutBox,t):this.constraints=!1,this.elastic=lie(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&zi(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=uie(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kl(t))return!1;const r=t.current;Ts(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=dre(r,i.root,this.visualElement.getTransformPagePoint());let a=aie(i.layout.layoutBox,s);if(n){const o=n(lre(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(!Xh(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 m4(this.visualElement,t),r.start(j$(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(!Xh(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]-Pn(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kl(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]=oie({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(!Xh(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];o.set(Pn(l,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;cie.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();Kl(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()),En.read(r);const a=bd(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=v4,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Xh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function die(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hie extends Bo{constructor(t){super(t),this.removeGroupControls=es,this.removeListeners=es,this.controls=new fie(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 AT=e=>(t,n)=>{e&&En.postRender(()=>e(t,n))};class pie extends Bo{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:AT(t),onStart:AT(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&En.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 Sp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TT(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=TT(e,t.target.x),r=TT(e,t.target.y);return`${n}% ${r}%`}},mie={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ko.parse(e);if(i.length>5)return r;const s=ko.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=Pn(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 PT=!1;class gie extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Lne(vie),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),PT&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Sp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,PT=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||En.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),_$.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]=_ne(),r=T.useContext(a7);return la.jsx(gie,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(lO),isPresent:t,safeToRemove:n})}const vie={borderRadius:{...Sf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sf,borderTopRightRadius:Sf,borderBottomLeftRadius:Sf,borderBottomRightRadius:Sf,boxShadow:mie};function yie(e,t,n){const r=wr(e)?e:Wu(e);return r.start(j$("",r,t,n)),r.animation}const bie=(e,t)=>e.depth-t.depth;class $ie{constructor(){this.children=[],this.isDirty=!1}add(t){f$(this.children,t),this.isDirty=!0}remove(t){d$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bie),this.isDirty=!1,this.children.forEach(t)}}function xie(e,t){const n=ui.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Xa(r),e(s-t))};return En.setup(r,!0),()=>Xa(r)}const PO=["TopLeft","TopRight","BottomLeft","BottomRight"],wie=PO.length,_T=e=>typeof e=="string"?parseFloat(e):e,MT=e=>typeof e=="number"||Dt.test(e);function Cie(e,t,n,r,i,s){i?(e.opacity=Pn(0,n.opacity??1,Eie(r)),e.opacityExit=Pn(t.opacity??1,0,Sie(r))):s&&(e.opacity=Pn(t.opacity??1,n.opacity??1,r));for(let a=0;a<wie;a++){const o=`border${PO[a]}Radius`;let l=FT(t,o),d=FT(n,o);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||MT(l)===MT(d)?(e[o]=Math.max(Pn(_T(l),_T(d),r),0),(oa.test(d)||oa.test(l))&&(e[o]+="%")):e[o]=d}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function FT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Eie=_O(0,.5,y7),Sie=_O(.5,.95,es);function _O(e,t,n){return r=>r<e?0:r>t?1:n(hd(e,t,r))}function RT(e,t){e.min=t.min,e.max=t.max}function ji(e,t){RT(e.x,t.x),RT(e.y,t.y)}function kT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function OT(e,t,n,r,i){return e-=t,e=cm(e,1/n,r),i!==void 0&&(e=cm(e,1/i,r)),e}function Die(e,t=0,n=1,r=.5,i,s=e,a=e){if(oa.test(t)&&(t=parseFloat(t),t=Pn(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=Pn(s.min,s.max,r);e===s&&(o-=t),e.min=OT(e.min,t,n,o,i),e.max=OT(e.max,t,n,o,i)}function IT(e,t,[n,r,i],s,a){Die(e,t[n],t[r],t[i],t.scale,s,a)}const Aie=["x","scaleX","originX"],Tie=["y","scaleY","originY"];function LT(e,t,n,r){IT(e.x,t,Aie,n?n.x:void 0,r?r.x:void 0),IT(e.y,t,Tie,n?n.y:void 0,r?r.y:void 0)}function VT(e){return e.translate===0&&e.scale===1}function MO(e){return VT(e.x)&&VT(e.y)}function BT(e,t){return e.min===t.min&&e.max===t.max}function Pie(e,t){return BT(e.x,t.x)&&BT(e.y,t.y)}function NT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function FO(e,t){return NT(e.x,t.x)&&NT(e.y,t.y)}function jT(e){return zr(e.x)/zr(e.y)}function KT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _ie{constructor(){this.members=[]}add(t){f$(this.members,t),t.scheduleRender()}remove(t){if(d$(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 Mie(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 E1=["","X","Y","Z"],Fie=1e3;let Rie=0;function S1(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",En,!(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=Rie++,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(Iie),this.nodes.forEach(Nie),this.nodes.forEach(jie),this.nodes.forEach(Lie)},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 $ie)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new p$),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)&&!Dne(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;En.read(()=>{m=window.innerWidth}),e(a,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=xie(g,250),Sp.hasAnimatedSinceResize&&(Sp.hasAnimatedSinceResize=!1,this.nodes.forEach(qT)))})}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()||Wie,{onLayoutAnimationStart:x,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={...T$(w,"layout"),onPlay:x,onComplete:D};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||qT(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(),Xa(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(Kie),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(UT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(zT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bie),this.nodes.forEach(kie),this.nodes.forEach(Oie)):this.nodes.forEach(zT),this.clearAllSnapshots();const o=ui.now();xr.delta=Ya(0,1e3/60,o-xr.timestamp),xr.timestamp=o,xr.isProcessing=!0,p1.update.process(xr),p1.preRender.process(xr),p1.render.process(xr),xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_$.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vie),this.sharedNodes.forEach(Uie)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,En.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){En.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!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=Gn(),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||mu(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)),Hie(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:a}=this.options;if(!a)return Gn();const o=a.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Gie))){const{scroll:h}=this.root;h&&(Ul(o.x,h.offset.x),Ul(o.y,h.offset.y))}return o}removeElementScroll(a){var l;const o=Gn();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),Ul(o.x,m.offset.x),Ul(o.y,m.offset.y))}return o}applyTransform(a,o=!1){const l=Gn();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&&zl(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),mu(h.latestValues)&&zl(l,h.latestValues)}return mu(this.latestValues)&&zl(l,this.latestValues),l}removeTransform(a){const o=Gn();ji(o,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!mu(d.latestValues))continue;f4(d.latestValues)&&d.updateSnapshot();const h=Gn(),m=d.measurePageBox();ji(h,m),LT(o,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return mu(this.latestValues)&<(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=Gn(),this.relativeTargetOrigin=Gn(),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=Gn(),this.targetWithTransforms=Gn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),eie(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=Gn(),this.relativeTargetOrigin=Gn(),Jf(this.relativeTargetOrigin,this.target,b.target),ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||f4(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;fre(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=Gn());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kT(this.prevProjectionDelta.x,this.projectionDelta.x),kT(this.prevProjectionDelta.y,this.projectionDelta.y)),Xf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!KT(this.projectionDelta.x,this.prevProjectionDelta.x)||!KT(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=ql(),this.projectionDelta=ql(),this.projectionDeltaWithTransform=ql()}setAnimationOrigin(a,o=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=ql();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const g=Gn(),b=l?l.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,D=this.getStack(),C=!D||D.members.length<=1,E=!!(x&&!C&&this.options.crossfade===!0&&!this.path.some(qie));this.animationProgress=0;let S;this.mixTargetDelta=k=>{const M=k/1e3;WT(m.x,a.x,M),WT(m.y,a.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zie(this.relativeTarget,this.relativeTargetOrigin,g,M),S&&Pie(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Gn()),ji(S,this.relativeTarget)),x&&(this.animationValues=h,Cie(h,d,this.latestValues,M,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},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&&(Xa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=En.update(()=>{Sp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Wu(0)),this.currentAnimation=yie(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(Fie),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||Gn();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),zl(o,h),Xf(this.projectionDeltaWithTransform,this.layoutCorrected,o,h)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new _ie),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&&S1("z",a,d,this.animationValues);for(let h=0;h<E1.length;h++)S1(`rotate${E1[h]}`,a,d,this.animationValues),S1(`skew${E1[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=Ep(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=Ep(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!mu(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Mie(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 vd){if(h[w]===void 0)continue;const{correct:x,applyTo:D,isCSSVariable:C}=vd[w],E=m==="none"?h[w]:x(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?Ep(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(UT),this.root.sharedNodes.clear()}}}function kie(e){e.updateLayout()}function Oie(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=ql();Xf(o,r,t.layoutBox);const l=ql();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=Gn();Jf(w,t.layoutBox,g.layoutBox);const x=Gn();Jf(x,r,b.layoutBox),FO(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,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 Iie(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 Lie(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Vie(e){e.clearSnapshot()}function UT(e){e.clearMeasurements()}function zT(e){e.isLayoutDirty=!1}function Bie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function qT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nie(e){e.resolveTargetDelta()}function jie(e){e.calcProjection()}function Kie(e){e.resetSkewAndRotation()}function Uie(e){e.removeLeadSnapshot()}function WT(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function HT(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function zie(e,t,n,r){HT(e.x,t.x,n.x,r),HT(e.y,t.y,n.y,r)}function qie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Wie={duration:.45,ease:[.4,0,.1,1]},GT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),YT=GT("applewebkit/")&&!GT("chrome/")?Math.round:es;function ZT(e){e.min=YT(e.min),e.max=YT(e.max)}function Hie(e){ZT(e.x),ZT(e.y)}function OO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qre(jT(t),jT(n),.2)}function Gie(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Yie=kO({attachResizeListener:(e,t)=>bd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),D1={current:void 0},IO=kO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!D1.current){const e=new Yie({});e.mount(window),e.setOptions({layoutScroll:!0}),D1.current=e}return D1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Zie={pan:{Feature:pie},drag:{Feature:hie,ProjectionNode:IO,MeasureLayout:TO}};function XT(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&&En.postRender(()=>s(t,Wd(t)))}let Xie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=xne(t,(n,r)=>(XT(this.node,r,"Start"),i=>XT(this.node,i,"End"))))}unmount(){}},Jie=class extends Bo{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=Ud(bd(this.node.current,"focus",()=>this.onFocus()),bd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function JT(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&&En.postRender(()=>s(t,Wd(t)))}let Qie=class extends Bo{mount(){const{current:t}=this.node;t&&(this.unmount=Sne(t,(n,r)=>(JT(this.node,r,"Start"),(i,{success:s})=>JT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const y4=new WeakMap,A1=new WeakMap,ese=e=>{const t=y4.get(e.target);t&&t(e)},tse=e=>{e.forEach(ese)};function nse({root:e,...t}){const n=e||document;A1.has(n)||A1.set(n,{});const r=A1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(tse,{root:e,...t})),r[i]}function rse(e,t,n){const r=nse(t);return y4.set(e,n),r.observe(e),()=>{y4.delete(e),r.unobserve(e)}}const ise={some:0,all:1};let sse=class extends Bo{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:ise[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 rse(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(ase(t,n))&&this.startObserver()}unmount(){}};function ase({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const ose={inView:{Feature:sse},tap:{Feature:Qie},focus:{Feature:Jie},hover:{Feature:Xie}},use={layout:{ProjectionNode:IO,MeasureLayout:TO}},lse={...Hre,...ose,...Zie,...use},LO=ure(lse,xre);function VO(e){const t=Kd(()=>Wu(e)),{isStatic:n}=T.useContext(F$);if(n){const[,r]=T.useState(e);T.useEffect(()=>t.on("change",r),[])}return t}function BO(e,t){const n=VO(t()),r=()=>n.set(t());return r(),o7(()=>{const i=()=>En.preRender(r,!1,!0),s=e.map(a=>a.on("change",i));return()=>{s.forEach(a=>a()),Xa(r)}}),n}function cse(e){Yf.current=[],e();const t=BO(Yf.current,e);return Yf.current=void 0,t}function fse(e,t,n,r){if(typeof e=="function")return cse(e);const i=typeof t=="function"?t:Ane(t,n,r);return Array.isArray(e)?QT(e,i):QT([e],([s])=>i(s))}function QT(e,t){const n=Kd(()=>[]);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=T.createContext(null);function dse(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=Pn(l.min,l.max,.5);return s===1&&o.layout.max+n>d||s===-1&&o.layout.min+n<d?Fee(e,i,i+s):e}function hse({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},a){const o=Kd(()=>LO[t]),l=[],d=T.useRef(!1);Ts(!!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(gse)},updateOrder:(m,g,b)=>{if(d.current)return;const w=dse(l,m,g,b);l!==w&&(d.current=!0,r(w.map(mse).filter(x=>i.indexOf(x)!==-1)))}};return T.useEffect(()=>{d.current=!1}),la.jsx(o,{...s,ref:a,ignoreStrict:!0,children:la.jsx(NO.Provider,{value:h,children:e})})}const pse=T.forwardRef(hse);function mse(e){return e.value}function gse(e,t){return e.layout.min-t.layout.min}function e2(e,t=0){return wr(e)?e:VO(t)}function vse({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...a},o){const l=Kd(()=>LO[r]),d=T.useContext(NO),h={x:e2(t.x),y:e2(t.y)},m=fse([h.x,h.y],([x,D])=>x||D?1:"unset");Ts(!!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:(x,D)=>{const{velocity:C}=D;C[g]&&w(n,h[g].get(),C[g]),i&&i(x,D)},onLayoutMeasure:x=>b(n,x),ref:o,ignoreStrict:!0,children:e})}const yse=T.forwardRef(vse);var Dp={exports:{}},bse=Dp.exports,t2;function $se(){return t2||(t2=1,function(e,t){(function(n,r){e.exports=r()})(bse,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,x){var D=x&&x.toUpperCase();return w||g[x]||n[x]||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)}}})}(Dp)),Dp.exports}var xse=$se();const wse=fi(xse),n2=(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?n2(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>n2(i,n,e))}},Cse=(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(Ese(t.names||Object.keys(e),r)){const a=Object.assign({},it(n,r));tn(a,"root",s),tn(n,r,a)}else tn(n,r,s)}return n},Ese=(e,t)=>{const n=r2(t);return e.some(r=>r2(r).match(`^${n}\\.\\d+`))};function r2(e){return e.replace(/\]|\[/g,"")}function Sse(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:Cse((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:{}},Dse=Kf.exports,i2;function Ase(){return i2||(i2=1,function(e,t){(function(n,r){r(t,T)})(Dse,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(U,O){z.exports=O()}(a,function(){var U="http://www.w3.org/2000/svg",O="",V=!1,ne=-999999,K=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,$=c.length,P;for(v=0;v<$;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function He(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,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,P=this.audios.length;for($=0;$<P;$+=1)this.audios[$].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,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),Be=function(){function c(v,$){var P=0,_=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(P=0;P<$;P+=1)_.push(q);return _}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):c(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ge(c){return Array.apply(null,{length:c})}var Me=!0,Le=null,Ae="",Ye=/^((?!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,be=.5519;function Se(c,p,v,$){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function _e(c,p){this.type=c,this.direction=p<0?-1:1}function Je(c,p,v,$){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=$<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 $,P,_,q,me,J,ye,we;switch(q=Math.floor(c*6),me=c*6-q,J=v*(1-p),ye=v*(1-me*p),we=v*(1-(1-me)*p),q%6){case 0:$=v,P=we,_=J;break;case 1:$=ye,P=v,_=J;break;case 2:$=J,P=v,_=we;break;case 3:$=J,P=ye,_=v;break;case 4:$=we,P=J,_=v;break;case 5:$=v,P=J,_=ye;break}return[$,P,_]}function Cr(c,p,v){var $=Math.max(c,p,v),P=Math.min(c,p,v),_=$-P,q,me=$===0?0:_/$,J=$/255;switch($){case P:q=0;break;case c:q=p-v+_*(p<v?6:0),q/=6*_;break;case p:q=v-c+_*2,q/=6*_;break;case v:q=c-p+_*4,q/=6*_;break}return[q,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($,P,_){return $<0&&($=0),P<0&&(P=0),_<0&&(_=0),"#"+c[$]+c[P]+c[_]}})();var qt=function(p){Me=!!p},gr=function(){return Me},Xr=function(p){Le=p},di=function(){return Le},kr=function(p){Zr=p},Rs=function(){return Zr},No=function(p){Ae=p};function bt(c){return document.createElementNS(U,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,$,P={onmessage:function(){},postMessage:function(Q){v({data:Q})}},_={postMessage:function(Q){P.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,P}function me(){$||($=q(function(Q){function G(){function de(Ve,$e){var fe,X,ge=Ve.length,je,Oe,lt,At;for(X=0;X<ge;X+=1)if(fe=Ve[X],"ks"in fe&&!fe.completed){if(fe.completed=!0,fe.hasMask){var Ct=fe.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])}fe.ty===0?(fe.layers=L(fe.refId,$e),de(fe.layers,$e)):fe.ty===4?j(fe.shapes):fe.ty===5&&ot(fe)}}function W(Ve,$e){if(Ve){var fe=0,X=Ve.length;for(fe=0;fe<X;fe+=1)Ve[fe].t===1&&(Ve[fe].data.layers=L(Ve[fe].data.refId,$e),de(Ve[fe].data.layers,$e))}}function Y(Ve,$e){for(var fe=0,X=$e.length;fe<X;){if($e[fe].id===Ve)return $e[fe];fe+=1}return null}function L(Ve,$e){var fe=Y(Ve,$e);return fe?fe.layers.__used?JSON.parse(JSON.stringify(fe.layers)):(fe.layers.__used=!0,fe.layers):null}function j(Ve){var $e,fe=Ve.length,X,ge;for($e=fe-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"&&j(Ve[$e].it)}function H(Ve){var $e,fe=Ve.i.length;for($e=0;$e<fe;$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 re(Ve,$e){var fe=$e?$e.split("."):[100,100,100];return Ve[0]>fe[0]?!0:fe[0]>Ve[0]?!1:Ve[1]>fe[1]?!0:fe[1]>Ve[1]?!1:Ve[2]>fe[2]?!0:fe[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 fe(X){var ge,je=X.length;for(ge=0;ge<je;ge+=1)X[ge].ty===5&&$e(X[ge])}return function(X){if(re(Ve,X.v)&&(fe(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&fe(X.assets[ge].layers)}}}(),pe=function(){var Ve=[4,7,99];return function($e){if($e.chars&&!re(Ve,$e.v)){var fe,X=$e.chars.length;for(fe=0;fe<X;fe+=1){var ge=$e.chars[fe];ge.data&&ge.data.shapes&&(j(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[fe].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 fe(X){var ge,je=X.length;for(ge=0;ge<je;ge+=1)X[ge].ty===5&&$e(X[ge])}return function(X){if(re(Ve,X.v)&&(fe(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&fe(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 fe(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(re(Ve,X.v)&&(fe(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&fe(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 fe(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(re(Ve,X.v)&&(fe(X.layers),X.assets)){var ge,je=X.assets.length;for(ge=0;ge<je;ge+=1)X.assets[ge].layers&&fe(X.assets[ge].layers)}}}();function Ne(Ve){Ve.__complete||(nt(Ve),oe(Ve),pe(Ve),Ie(Ve),et(Ve),de(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=de,ct}if(_.dataManager||(_.dataManager=G()),_.assetLoader||(_.assetLoader=function(){function de(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,j,H){var re,oe=new XMLHttpRequest;try{oe.responseType="json"}catch{}oe.onreadystatechange=function(){if(oe.readyState===4)if(oe.status===200)re=de(oe),j(re);else try{re=de(oe),j(re)}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")_.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){_.dataManager.completeData(de),_.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){_.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;_.dataManager.completeData(he),_.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&_.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){_.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){_.postMessage({id:Q.data.id,status:"error"})})}),$.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 ye(R,Q,G){me();var he=J(Q,G);$.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);$.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);$.postMessage({type:"complete",animation:R,id:he})}return{loadAnimation:ye,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 $(W,Y,L){var j="";if(W.e)j=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),j=Y+H}else j=L,j+=W.u?W.u:"",j+=W.p;return j}function P(W){var Y=0,L=setInterval((function(){var j=W.getBBox();(j.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function _(W){var Y=$(W,this.assetsPath,this.path),L=bt("image");Ye?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var j={img:L,assetData:W};return j}function q(W){var Y=$(W,this.assetsPath,this.path),L=Pe("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){j.img=c,this._imageLoaded()}).bind(this),!1),L.src=Y;var j={img:L,assetData:W};return j}function me(W){var Y={assetData:W},L=$(W,this.assetsPath,this.path);return pa.loadData(L,(function(j){Y.img=j,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,j=W.length;for(L=0;L<j;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function ye(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 de(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.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 de.prototype={loadAssets:J,setAssetsPath:we,setPath:ye,loadedImages:Q,loadedFootages:G,destroy:R,getAsset:ke,createImgData:q,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:he},de}();function el(){}el.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],P=0;P<$.length;P+=1)$[P](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,P=this._cbs[p].length;$<P;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,P-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var Kc=function(){function c(p){for(var v=p.split(`\r
|
|
135
|
+
`),$={},P,_=0,q=0;q<v.length;q+=1)P=v[q].split(":"),P.length===2&&($[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var P=p[$],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[$].cm)}catch{try{_.payload=c(p[$].cm)}catch{_.payload={name:p[$].cm}}}v.push(_)}return v}}(),tl=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,P=this.compositions.length;$<P;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),jo={},nl=function(p,v){jo[p]=v};function is(c){return jo[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=tl(),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([el],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},$=c.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var P=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.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,$=p.length,P=c.layers,_,q=P.length;for(_=0;_<q;_+=1)for(v=0;v<$;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for($=c.assets.length,v=0;v<$;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,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},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 $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.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 $=Number(c);if(isNaN($)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop($,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,$=c.length;for(v=0;v<$;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 $=this.renderer.getElementByPath(c);$.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 Sn=function(){var c={},p=[],v=0,$=0,P=0,_=!0,q=!1;function me($e){for(var fe=0,X=$e.target;fe<$;)p[fe].animation===X&&(p.splice(fe,1),fe-=1,$-=1,X.isPaused||ke()),fe+=1}function J($e,fe){if(!$e)return null;for(var X=0;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,fe),ge}function ye(){var $e,fe=p.length,X=[];for($e=0;$e<fe;$e+=1)X.push(p[$e].animation);return X}function we(){P+=1,nt()}function ke(){P-=1}function R($e,fe){$e.addEventListener("destroy",me),$e.addEventListener("_active",we),$e.addEventListener("_idle",ke),p.push({elem:fe,animation:$e}),$+=1}function Q($e){var fe=new yt;return R(fe,null),fe.setParams($e),fe}function G($e,fe){var X;for(X=0;X<$;X+=1)p[X].animation.setSpeed($e,fe)}function he($e,fe){var X;for(X=0;X<$;X+=1)p[X].animation.setDirection($e,fe)}function de($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.play($e)}function W($e){var fe=$e-v,X;for(X=0;X<$;X+=1)p[X].animation.advanceTime(fe);v=$e,P&&!q?window.requestAnimationFrame(W):_=!0}function Y($e){v=$e,window.requestAnimationFrame(W)}function L($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.pause($e)}function j($e,fe,X){var ge;for(ge=0;ge<$;ge+=1)p[ge].animation.goToAndStop($e,fe,X)}function H($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.stop($e)}function re($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.togglePause($e)}function oe($e){var fe;for(fe=$-1;fe>=0;fe-=1)p[fe].animation.destroy($e)}function pe($e,fe,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(fe&&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<$;$e+=1)p[$e].animation.resize()}function nt(){!q&&P&&_&&(window.requestAnimationFrame(Y),_=!1)}function et(){q=!0}function Ne(){q=!1,nt()}function ot($e,fe){var X;for(X=0;X<$;X+=1)p[X].animation.setVolume($e,fe)}function ct($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.mute($e)}function Ve($e){var fe;for(fe=0;fe<$;fe+=1)p[fe].animation.unmute($e)}return c.registerAnimation=J,c.loadAnimation=Q,c.setSpeed=G,c.setDirection=he,c.play=de,c.pause=L,c.stop=H,c.togglePause=re,c.searchAnimations=pe,c.resize=Ie,c.goToAndStop=j,c.destroy=oe,c.freeze=et,c.unfreeze=Ne,c.setVolume=ot,c.mute=ct,c.unmute=Ve,c.getRegisteredAnimations=ye,c}(),ma=function(){var c={};c.getBezierEasing=v;var p={};function v(Y,L,j,H,re){var oe=re||("bez_"+Y+"_"+L+"_"+j+"_"+H).replace(/\./g,"p");if(p[oe])return p[oe];var pe=new W([Y,L,j,H]);return p[oe]=pe,pe}var $=4,P=.001,_=1e-7,q=10,me=11,J=1/(me-1),ye=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,j){return((we(L,j)*Y+ke(L,j))*Y+R(L))*Y}function G(Y,L,j){return 3*we(L,j)*Y*Y+2*ke(L,j)*Y+R(L)}function he(Y,L,j,H,re){var oe,pe,Ie=0;do pe=L+(j-L)/2,oe=Q(pe,H,re)-Y,oe>0?j=pe:L=pe;while(Math.abs(oe)>_&&++Ie<q);return pe}function de(Y,L,j,H){for(var re=0;re<$;++re){var oe=G(L,j,H);if(oe===0)return L;var pe=Q(L,j,H)-Y;L-=pe/oe}return L}function W(Y){this._p=Y,this._mSampleValues=ye?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var j=this._p[0],H=this._p[1],re=this._p[2],oe=this._p[3];return this._precomputed||this._precompute(),j===H&&re===oe?L:L===0?0:L===1?1:Q(this._getTForX(L),H,oe)},_precompute:function(){var L=this._p[0],j=this._p[1],H=this._p[2],re=this._p[3];this._precomputed=!0,(L!==j||H!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],j=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,L,j)},_getTForX:function(L){for(var j=this._p[0],H=this._p[2],re=this._mSampleValues,oe=0,pe=1,Ie=me-1;pe!==Ie&&re[pe]<=L;++pe)oe+=J;--pe;var nt=(L-re[pe])/(re[pe+1]-re[pe]),et=oe+nt*J,Ne=G(et,j,H);return Ne>=P?de(L,et,j,H):Ne===0?et:he(L,oe,oe+J,j,H)}},c}(),rl=function(){function c(p){return p.concat(Ge(p.length))}return{double:c}}(),Er=function(){return function(c,p,v){var $=0,P=c,_=Ge(P),q={newElement:me,release:J};function me(){var ye;return $?($-=1,ye=_[$]):ye=p(),ye}function J(ye){$===P&&(_=rl.double(_),P*=2),v&&v(ye),_[$]=ye,$+=1}return q}}(),il=function(){function c(){return{addedLength:0,percents:Be("float32",Rs()),lengths:Be("float32",Rs())}}return Er(8,c)}(),sl=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var $,P=v.lengths.length;for($=0;$<P;$+=1)il.release(v.lengths[$]);v.lengths.length=0}return Er(8,c,p)}();function Uc(){var c=Math;function p(R,Q,G,he,de,W){var Y=R*he+Q*de+G*W-de*he-W*R-G*Q;return Y>-.001&&Y<.001}function v(R,Q,G,he,de,W,Y,L,j){if(G===0&&W===0&&j===0)return p(R,Q,he,de,Y,L);var H=c.sqrt(c.pow(he-R,2)+c.pow(de-Q,2)+c.pow(W-G,2)),re=c.sqrt(c.pow(Y-R,2)+c.pow(L-Q,2)+c.pow(j-G,2)),oe=c.sqrt(c.pow(Y-he,2)+c.pow(L-de,2)+c.pow(j-W,2)),pe;return H>re?H>oe?pe=H-re-oe:pe=oe-re-H:oe>re?pe=oe-re-H:pe=re-H-oe,pe>-1e-4&&pe<1e-4}var $=function(){return function(R,Q,G,he){var de=Rs(),W,Y,L,j,H,re=0,oe,pe=[],Ie=[],nt=il.newElement();for(L=G.length,W=0;W<de;W+=1){for(H=W/(de-1),oe=0,Y=0;Y<L;Y+=1)j=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]=j,Ie[Y]!==null&&(oe+=ht(pe[Y]-Ie[Y],2)),Ie[Y]=pe[Y];oe&&(oe=Gt(oe),re+=oe),nt.percents[W]=H,nt.lengths[W]=re}return nt.addedLength=re,nt}}();function P(R){var Q=sl.newElement(),G=R.c,he=R.v,de=R.o,W=R.i,Y,L=R._length,j=Q.lengths,H=0;for(Y=0;Y<L-1;Y+=1)j[Y]=$(he[Y],he[Y+1],de[Y],W[Y+1]),H+=j[Y].addedLength;return G&&L&&(j[Y]=$(he[Y],he[0],de[Y],W[0]),H+=j[Y].addedLength),Q.totalLength=H,Q}function _(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,de){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+de[0]+"_"+de[1]).replace(/\./g,"p");if(!R[W]){var Y=Rs(),L,j,H,re,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]+de[0],G[1]+de[1])&&(Y=2);var Ne=new _(Y);for(H=he.length,L=0;L<Y;L+=1){for(nt=Ge(H),oe=L/(Y-1),Ie=0,j=0;j<H;j+=1)re=ht(1-oe,3)*Q[j]+3*ht(1-oe,2)*oe*(Q[j]+he[j])+3*(1-oe)*ht(oe,2)*(G[j]+de[j])+ht(oe,3)*G[j],nt[j]=re,et!==null&&(Ie+=ht(nt[j]-et[j],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,de=G.length,W=$t((de-1)*R),Y=R*Q.addedLength,L=0;if(W===de-1||W===0||Y===he[W])return G[W];for(var j=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+=j,W<0||W>=de-1){if(W===de-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*L}function ye(R,Q,G,he,de,W){var Y=J(de,W),L=1-Y,j=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[j,H]}var we=Be("float32",8);function ke(R,Q,G,he,de,W,Y){de<0?de=0:de>1&&(de=1);var L=J(de,Y);W=W>1?1:W;var j=J(W,Y),H,re=R.length,oe=1-L,pe=1-j,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*j,Ve=L*L*pe+oe*L*j+L*oe*j,$e=L*L*j,fe=oe*pe*pe,X=L*pe*pe+oe*j*pe+oe*pe*j,ge=L*j*pe+oe*j*j+L*pe*j,je=L*j*j,Oe=pe*pe*pe,lt=j*pe*pe+pe*j*pe+pe*pe*j,At=j*j*pe+pe*j*j+j*pe*j,Ct=j*j*j;for(H=0;H<re;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((fe*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:P,getNewSegment:ke,getPointInSegment:ye,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Jr=Uc(),st=function(){var c=ne,p=Math.abs;function v(de,W){var Y=this.offsetTime,L;this.propType==="multidimensional"&&(L=Be("float32",this.pv.length));for(var j=W.lastIndex,H=j,re=this.keyframes.length-1,oe=!0,pe,Ie,nt;oe;){if(pe=this.keyframes[H],Ie=this.keyframes[H+1],H===re-1&&de>=Ie.t-Y){pe.h&&(pe=Ie),j=0;break}if(Ie.t-Y>de){j=H;break}H<re-1?H+=1:(j=0,oe=!1)}nt=this.keyframesMetadata[H]||{};var et,Ne,ot,ct,Ve,$e,fe=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(de>=fe||de<X){var Oe=de>=fe?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((de-X)/(fe-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Ve=W.lastFrame<de&&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,hr,Jn,Nn;if(re=pe.s.length,ge=Ie.s||pe.e,this.sh&&pe.h!==1)if(de>=fe)L[0]=ge[0],L[1]=ge[1],L[2]=ge[2];else if(de<=X)L[0]=pe.s[0],L[1]=pe.s[1],L[2]=pe.s[2];else{var Un=_(pe.s),zn=_(ge),br=(de-X)/(fe-X);P(L,$(Un,zn,br))}else for(H=0;H<re;H+=1)pe.h!==1&&(de>=fe?ot=1:de<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],hr=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Jn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],$e=ma.getBezierEasing($n,Wt,hr,Jn).get,nt.__fnct[H]=$e)):nt.__fnct?$e=nt.__fnct:($n=pe.o.x,Wt=pe.o.y,hr=pe.i.x,Jn=pe.i.y,$e=ma.getBezierEasing($n,Wt,hr,Jn).get,pe.keyframeMetadata=$e),ot=$e((de-X)/(fe-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=j,L}function $(de,W,Y){var L=[],j=de[0],H=de[1],re=de[2],oe=de[3],pe=W[0],Ie=W[1],nt=W[2],et=W[3],Ne,ot,ct,Ve,$e;return ot=j*pe+H*Ie+re*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*j+$e*pe,L[1]=Ve*H+$e*Ie,L[2]=Ve*re+$e*nt,L[3]=Ve*oe+$e*et,L}function P(de,W){var Y=W[0],L=W[1],j=W[2],H=W[3],re=Math.atan2(2*L*H-2*Y*j,1-2*L*L-2*j*j),oe=Math.asin(2*Y*L+2*j*H),pe=Math.atan2(2*Y*H-2*L*j,1-2*Y*Y-2*j*j);de[0]=re/en,de[1]=oe/en,de[2]=pe/en}function _(de){var W=de[0]*en,Y=de[1]*en,L=de[2]*en,j=Math.cos(W/2),H=Math.cos(Y/2),re=Math.cos(L/2),oe=Math.sin(W/2),pe=Math.sin(Y/2),Ie=Math.sin(L/2),nt=j*H*re-oe*pe*Ie,et=oe*pe*re+j*H*Ie,Ne=oe*H*re+j*pe*Ie,ot=j*pe*re-oe*H*Ie;return[et,Ne,ot,nt]}function q(){var de=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(de===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Y&&de>=Y||this._caching.lastFrame<W&&de<W))){this._caching.lastFrame>=de&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(de,this._caching);this.pv=L}return this._caching.lastFrame=de,this.pv}function me(de){var W;if(this.propType==="unidimensional")W=de*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=de[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 de,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(de=0;de<W;de+=1)Y=this.effectsSequence[de](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(de){this.effectsSequence.push(de),this.container.addDynamicProperty(this)}function we(de,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=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=ye}function ke(de,W,Y,L){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.frameId=-1;var j,H=W.k.length;for(this.v=Be("float32",H),this.pv=Be("float32",H),this.vel=Be("float32",H),j=0;j<H;j+=1)this.v[j]=W.k[j]*this.mult,this.pv[j]=W.k[j];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=ye}function R(de,W,Y,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.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=de,this.container=L,this.comp=de.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=ye}function Q(de,W,Y,L){this.propType="multidimensional";var j,H=W.k.length,re,oe,pe,Ie;for(j=0;j<H-1;j+=1)W.k[j].to&&W.k[j].s&&W.k[j+1]&&W.k[j+1].s&&(re=W.k[j].s,oe=W.k[j+1].s,pe=W.k[j].to,Ie=W.k[j].ti,(re.length===2&&!(re[0]===oe[0]&&re[1]===oe[1])&&Jr.pointOnLine2D(re[0],re[1],oe[0],oe[1],re[0]+pe[0],re[1]+pe[1])&&Jr.pointOnLine2D(re[0],re[1],oe[0],oe[1],oe[0]+Ie[0],oe[1]+Ie[1])||re.length===3&&!(re[0]===oe[0]&&re[1]===oe[1]&&re[2]===oe[2])&&Jr.pointOnLine3D(re[0],re[1],re[2],oe[0],oe[1],oe[2],re[0]+pe[0],re[1]+pe[1],re[2]+pe[2])&&Jr.pointOnLine3D(re[0],re[1],re[2],oe[0],oe[1],oe[2],oe[0]+Ie[0],oe[1]+Ie[1],oe[2]+Ie[2]))&&(W.k[j].to=null,W.k[j].ti=null),re[0]===oe[0]&&re[1]===oe[1]&&pe[0]===0&&pe[1]===0&&Ie[0]===0&&Ie[1]===0&&(re.length===2||re[2]===oe[2]&&pe[2]===0&&Ie[2]===0)&&(W.k[j].to=null,W.k[j].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.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),j=0;j<nt;j+=1)this.v[j]=c,this.pv[j]=c;this._caching={lastFrame:c,lastIndex:0,value:Be("float32",nt)},this.addEffect=ye}function G(de,W,Y,L,j){var H;if(!W.k.length)H=new we(de,W,L,j);else if(typeof W.k[0]=="number")H=new ke(de,W,L,j);else switch(Y){case 0:H=new R(de,W,L,j);break;case 1:H=new Q(de,W,L,j);break}return H.effectsSequence.length&&j.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=Ge(this._maxLength),this.o=Ge(this._maxLength),this.i=Ge(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(Ge(this._maxLength)),this.i=this.i.concat(Ge(this._maxLength)),this.o=this.o.concat(Ge(this._maxLength)),this._maxLength*=2},pi.prototype.setXYAt=function(c,p,v,$,P){var _;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[$]||_[$]&&!P)&&(_[$]=as.newElement()),_[$][0]=c,_[$][1]=p},pi.prototype.setTripleAt=function(c,p,v,$,P,_,q,me){this.setXYAt(c,p,"v",q,me),this.setXYAt(v,$,"o",q,me),this.setXYAt(P,_,"i",q,me)},pi.prototype.reverse=function(){var c=new pi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,q=this._length,me;for(me=P;me<q;me+=1)c.setTripleAt(p[_][0],p[_][1],$[_][0],$[_][1],v[_][0],v[_][1],me,!1),_-=1;return c},pi.prototype.length=function(){return this._length};var Xn=function(){function c(){return new pi}function p(P){var _=P._length,q;for(q=0;q<_;q+=1)as.release(P.v[q]),as.release(P.i[q]),as.release(P.o[q]),P.v[q]=null,P.i[q]=null,P.o[q]=null;P._length=0,P.c=!1}function v(P){var _=$.newElement(),q,me=P._length===void 0?P.v.length:P._length;for(_.setLength(me),_.c=P.c,q=0;q<me;q+=1)_.setTripleAt(P.v[q][0],P.v[q][1],P.o[q][0],P.o[q][1],P.i[q][0],P.i[q][1],q);return _}var $=Er(4,c,p);return $.clone=v,$}();function Ko(){this._length=0,this._maxLength=4,this.shapes=Ge(this._maxLength)}Ko.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ge(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Ko.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Xn.release(this.shapes[c]);this._length=0};var ks=function(){var c={newShapeCollection:P,release:_},p=0,v=4,$=Ge(v);function P(){var q;return p?(p-=1,q=$[p]):q=new Ko,q}function _(q){var me,J=q._length;for(me=0;me<J;me+=1)Xn.release(q.shapes[me]);q._length=0,p===v&&($=rl.double($),v*=2),$[p]=q,p+=1}return c}(),mi=function(){var c=-999999;function p(W,Y,L){var j=L.lastIndex,H,re,oe,pe,Ie,nt,et,Ne,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],oe=!0,j=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],oe=!0;else{for(var Ve=j,$e=ct.length-1,fe=!0,X,ge,je;fe&&(X=ct[Ve],ge=ct[Ve+1],!(ge.t-this.offsetTime>W));)Ve<$e-1?Ve+=1:fe=!1;if(je=this.keyframesMetadata[Ve]||{},oe=X.h===1,j=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)))}re=ge.s?ge.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,et=H.i[0].length,L.lastIndex=j,pe=0;pe<nt;pe+=1)for(Ie=0;Ie<et;Ie+=1)ot=oe?H.i[pe][Ie]:H.i[pe][Ie]+(re.i[pe][Ie]-H.i[pe][Ie])*Ne,Y.i[pe][Ie]=ot,ot=oe?H.o[pe][Ie]:H.o[pe][Ie]+(re.o[pe][Ie]-H.o[pe][Ie])*Ne,Y.o[pe][Ie]=ot,ot=oe?H.v[pe][Ie]:H.v[pe][Ie]+(re.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,j=this._caching.lastFrame;return j!==c&&(j<Y&&W<Y||j>L&&W>L)||(this._caching.lastIndex=j<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function P(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var L,j=W._length;for(L=0;L<j;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 _(W){P(this.v,W)||(this.v=Xn.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 j=L===3?Y.pt.k:Y.ks.k;this.v=Xn.clone(j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=_,me.prototype.addEffect=J;function ye(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 j=this.keyframes[0].s[0].i.length;this.v=Xn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,j),this.pv=Xn.clone(this.v),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=$,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}ye.prototype.getValue=q,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=J;var we=function(){var W=be;function Y(L,j){this.v=Xn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=ks.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=j.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=st.getProp(L,j.p,1,0,this),this.s=st.getProp(L,j.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var j=this.p.v[0],H=this.p.v[1],re=this.s.v[0]/2,oe=this.s.v[1]/2,pe=this.d!==3,Ie=this.v;Ie.v[0][0]=j,Ie.v[0][1]=H-oe,Ie.v[1][0]=pe?j+re:j-re,Ie.v[1][1]=H,Ie.v[2][0]=j,Ie.v[2][1]=H+oe,Ie.v[3][0]=pe?j-re:j+re,Ie.v[3][1]=H,Ie.i[0][0]=pe?j-re*W:j+re*W,Ie.i[0][1]=H-oe,Ie.i[1][0]=pe?j+re:j-re,Ie.i[1][1]=H-oe*W,Ie.i[2][0]=pe?j+re*W:j-re*W,Ie.i[2][1]=H+oe,Ie.i[3][0]=pe?j-re:j+re,Ie.i[3][1]=H+oe*W,Ie.o[0][0]=pe?j+re*W:j-re*W,Ie.o[0][1]=H-oe,Ie.o[1][0]=pe?j+re:j-re,Ie.o[1][1]=H+oe*W,Ie.o[2][0]=pe?j-re*W:j+re*W,Ie.o[2][1]=H+oe,Ie.o[3][0]=pe?j-re:j+re,Ie.o[3][1]=H-oe*W}},Fe([dn],Y),Y}(),ke=function(){function W(Y,L){this.v=Xn.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=ks.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:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,j=Math.PI*2/L,H=!0,re=this.or.v,oe=this.ir.v,pe=this.os.v,Ie=this.is.v,nt=2*Math.PI*re/(L*2),et=2*Math.PI*oe/(L*2),Ne,ot,ct,Ve,$e=-Math.PI/2;$e+=this.r.v;var fe=this.data.d===3?-1:1;for(this.v._length=0,Ne=0;Ne<L;Ne+=1){ot=H?re: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*fe,ge-Oe*Ve*ct*fe,X+je*Ve*ct*fe,ge+Oe*Ve*ct*fe,Ne,!0),H=!H,$e+=j*fe}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),j=Math.PI*2/L,H=this.or.v,re=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*re*nt,Ne-ct*oe*re*nt,et+ot*oe*re*nt,Ne+ct*oe*re*nt,pe,!0),Ie+=j*nt}this.paths.length=0,this.paths[0]=this.v}},Fe([dn],W),W}(),R=function(){function W(Y,L){this.v=Xn.newElement(),this.v.c=!0,this.localShapeCollection=ks.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],j=this.p.v[1],H=this.s.v[0]/2,re=this.s.v[1]/2,oe=_t(H,re,this.r.v),pe=oe*(1-be);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,j-re+oe,L+H,j-re+oe,L+H,j-re+pe,0,!0),this.v.setTripleAt(L+H,j+re-oe,L+H,j+re-pe,L+H,j+re-oe,1,!0),oe!==0?(this.v.setTripleAt(L+H-oe,j+re,L+H-oe,j+re,L+H-pe,j+re,2,!0),this.v.setTripleAt(L-H+oe,j+re,L-H+pe,j+re,L-H+oe,j+re,3,!0),this.v.setTripleAt(L-H,j+re-oe,L-H,j+re-oe,L-H,j+re-pe,4,!0),this.v.setTripleAt(L-H,j-re+oe,L-H,j-re+pe,L-H,j-re+oe,5,!0),this.v.setTripleAt(L-H+oe,j-re,L-H+oe,j-re,L-H+pe,j-re,6,!0),this.v.setTripleAt(L+H-oe,j-re,L+H-pe,j-re,L+H-oe,j-re,7,!0)):(this.v.setTripleAt(L-H,j+re,L-H+pe,j+re,L-H,j+re,2),this.v.setTripleAt(L-H,j-re,L-H,j-re+pe,L-H,j-re,3))):(this.v.setTripleAt(L+H,j-re+oe,L+H,j-re+pe,L+H,j-re+oe,0,!0),oe!==0?(this.v.setTripleAt(L+H-oe,j-re,L+H-oe,j-re,L+H-pe,j-re,1,!0),this.v.setTripleAt(L-H+oe,j-re,L-H+pe,j-re,L-H+oe,j-re,2,!0),this.v.setTripleAt(L-H,j-re+oe,L-H,j-re+oe,L-H,j-re+pe,3,!0),this.v.setTripleAt(L-H,j+re-oe,L-H,j+re-pe,L-H,j+re-oe,4,!0),this.v.setTripleAt(L-H+oe,j+re,L-H+oe,j+re,L-H+pe,j+re,5,!0),this.v.setTripleAt(L+H-oe,j+re,L+H-pe,j+re,L+H-oe,j+re,6,!0),this.v.setTripleAt(L+H,j+re-oe,L+H,j+re-oe,L+H,j+re-pe,7,!0)):(this.v.setTripleAt(L-H,j-re,L-H+pe,j-re,L-H,j-re,1,!0),this.v.setTripleAt(L-H,j+re,L-H,j+re-pe,L-H,j+re,2,!0),this.v.setTripleAt(L+H,j+re,L+H-pe,j+re,L+H,j+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Fe([dn],W),W}();function Q(W,Y,L){var j;if(L===3||L===4){var H=L===3?Y.pt:Y.ks,re=H.k;re.length?j=new ye(W,Y,L):j=new me(W,Y,L)}else L===5?j=new R(W,Y):L===6?j=new we(W,Y):L===7&&(j=new ke(W,Y));return j.k&&W.addDynamicProperty(j),j}function G(){return me}function he(){return ye}var de={};return de.getShapeProp=Q,de.getConstructorFunction=G,de.getKeyframedConstructorFunction=he,de}();/*!
|
|
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,$=Math.round;function P(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _(fe){if(fe===0)return this;var X=c(fe),ge=p(fe);return this._t(X,-ge,0,0,ge,X,0,0,0,0,1,0,0,0,0,1)}function q(fe){if(fe===0)return this;var X=c(fe),ge=p(fe);return this._t(1,0,0,0,0,X,-ge,0,0,ge,X,0,0,0,0,1)}function me(fe){if(fe===0)return this;var X=c(fe),ge=p(fe);return this._t(X,0,ge,0,0,1,0,0,-ge,0,X,0,0,0,0,1)}function J(fe){if(fe===0)return this;var X=c(fe),ge=p(fe);return this._t(X,-ge,0,0,ge,X,0,0,0,0,1,0,0,0,0,1)}function ye(fe,X){return this._t(1,X,fe,1,0,0)}function we(fe,X){return this.shear(v(fe),v(X))}function ke(fe,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(fe),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(fe,X,ge){return!ge&&ge!==0&&(ge=1),fe===1&&X===1&&ge===1?this:this._t(fe,0,0,0,0,X,0,0,0,0,ge,0,0,0,0,1)}function Q(fe,X,ge,je,Oe,lt,At,Ct,$n,Wt,hr,Jn,Nn,Un,zn,br){return this.props[0]=fe,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]=hr,this.props[11]=Jn,this.props[12]=Nn,this.props[13]=Un,this.props[14]=zn,this.props[15]=br,this}function G(fe,X,ge){return ge=ge||0,fe!==0||X!==0||ge!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,fe,X,ge,1):this}function he(fe,X,ge,je,Oe,lt,At,Ct,$n,Wt,hr,Jn,Nn,Un,zn,br){var ft=this.props;if(fe===1&&X===0&&ge===0&&je===0&&Oe===0&<===1&&At===0&&Ct===0&&$n===0&&Wt===0&&hr===1&&Jn===0)return ft[12]=ft[12]*fe+ft[15]*Nn,ft[13]=ft[13]*lt+ft[15]*Un,ft[14]=ft[14]*hr+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],Us=ft[9],bi=ft[10],hs=ft[11],$i=ft[12],ps=ft[13],zs=ft[14],uo=ft[15];return ft[0]=fn*fe+ei*Oe+ki*$n+cs*Nn,ft[1]=fn*X+ei*lt+ki*Wt+cs*Un,ft[2]=fn*ge+ei*At+ki*hr+cs*zn,ft[3]=fn*je+ei*Ct+ki*Jn+cs*br,ft[4]=yi*fe+fs*Oe+ds*$n+Zt*Nn,ft[5]=yi*X+fs*lt+ds*Wt+Zt*Un,ft[6]=yi*ge+fs*At+ds*hr+Zt*zn,ft[7]=yi*je+fs*Ct+ds*Jn+Zt*br,ft[8]=xn*fe+Us*Oe+bi*$n+hs*Nn,ft[9]=xn*X+Us*lt+bi*Wt+hs*Un,ft[10]=xn*ge+Us*At+bi*hr+hs*zn,ft[11]=xn*je+Us*Ct+bi*Jn+hs*br,ft[12]=$i*fe+ps*Oe+zs*$n+uo*Nn,ft[13]=$i*X+ps*lt+zs*Wt+uo*Un,ft[14]=$i*ge+ps*At+zs*hr+uo*zn,ft[15]=$i*je+ps*Ct+zs*Jn+uo*br,this._identityCalculated=!1,this}function de(){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(fe){for(var X=0;X<16;){if(fe.props[X]!==this.props[X])return!1;X+=1}return!0}function Y(fe){var X;for(X=0;X<16;X+=1)fe.props[X]=this.props[X];return fe}function L(fe){var X;for(X=0;X<16;X+=1)this.props[X]=fe[X]}function j(fe,X,ge){return{x:fe*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12],y:fe*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13],z:fe*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]}}function H(fe,X,ge){return fe*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12]}function re(fe,X,ge){return fe*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13]}function oe(fe,X,ge){return fe*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]}function pe(){var fe=this.props[0]*this.props[5]-this.props[1]*this.props[4],X=this.props[5]/fe,ge=-this.props[1]/fe,je=-this.props[4]/fe,Oe=this.props[0]/fe,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/fe,At=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/fe,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(fe){var X=this.getInverseMatrix();return X.applyToPointArray(fe[0],fe[1],fe[2]||0)}function nt(fe){var X,ge=fe.length,je=[];for(X=0;X<ge;X+=1)je[X]=Ie(fe[X]);return je}function et(fe,X,ge){var je=Be("float32",6);if(this.isIdentity())je[0]=fe[0],je[1]=fe[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]=fe[0]*Oe+fe[1]*At+$n,je[1]=fe[0]*lt+fe[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(fe,X,ge){var je;return this.isIdentity()?je=[fe,X,ge]:je=[fe*this.props[0]+X*this.props[4]+ge*this.props[8]+this.props[12],fe*this.props[1]+X*this.props[5]+ge*this.props[9]+this.props[13],fe*this.props[2]+X*this.props[6]+ge*this.props[10]+this.props[14]],je}function ot(fe,X){if(this.isIdentity())return fe+","+X;var ge=this.props;return Math.round((fe*ge[0]+X*ge[4]+ge[12])*100)/100+","+Math.round((fe*ge[1]+X*ge[5]+ge[13])*100)/100}function ct(){for(var fe=0,X=this.props,ge="matrix3d(",je=1e4;fe<16;)ge+=$(X[fe]*je)/je,ge+=fe===15?")":",",fe+=1;return ge}function Ve(fe){var X=1e4;return fe<1e-6&&fe>0||fe>-1e-6&&fe<0?$(fe*X)/X:fe}function $e(){var fe=this.props,X=Ve(fe[0]),ge=Ve(fe[1]),je=Ve(fe[4]),Oe=Ve(fe[5]),lt=Ve(fe[12]),At=Ve(fe[13]);return"matrix("+X+","+ge+","+je+","+Oe+","+lt+","+At+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=q,this.rotateY=me,this.rotateZ=J,this.skew=we,this.skewFromAxis=ke,this.shear=ye,this.scale=R,this.setTransform=Q,this.translate=G,this.transform=he,this.applyToPoint=j,this.applyToX=H,this.applyToY=re,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=de,this._identity=!0,this._identityCalculated=!1,this.props=Be("float32",16),this.reset()}}();function no(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?no=function(v){return typeof v}:no=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},no(c)}var Kt={};function zc(c){ue(c)}function al(){Sn.searchAnimations()}function qc(c){qt(c)}function Uo(c){No(c)}function ga(c){return Sn.loadAnimation(c)}function ol(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 zo(){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=Sn.play,Kt.pause=Sn.pause,Kt.setLocationHref=zc,Kt.togglePause=Sn.togglePause,Kt.setSpeed=Sn.setSpeed,Kt.setDirection=Sn.setDirection,Kt.stop=Sn.stop,Kt.searchAnimations=al,Kt.registerAnimation=Sn.registerAnimation,Kt.loadAnimation=ga,Kt.setSubframeRendering=qc,Kt.resize=Sn.resize,Kt.goToAndStop=Sn.goToAndStop,Kt.destroy=Sn.destroy,Kt.setQuality=ol,Kt.inBrowser=zo,Kt.installPlugin=Wc,Kt.freeze=Sn.freeze,Kt.unfreeze=Sn.unfreeze,Kt.setVolume=Sn.setVolume,Kt.mute=Sn.mute,Kt.unmute=Sn.unmute,Kt.getRegisteredAnimations=Sn.getRegisteredAnimations,Kt.useWebWorker=K,Kt.setIDPrefix=Uo,Kt.__getFactory=Hc,Kt.version="5.10.2";function Gc(){document.readyState==="complete"&&(clearInterval(cl),al())}function ul(c){for(var p=qo.split("&"),v=0;v<p.length;v+=1){var $=p[v].split("=");if(decodeURIComponent($[0])==c)return decodeURIComponent($[1])}return null}var qo="";{var Wo=document.getElementsByTagName("script"),va=Wo.length-1,ll=Wo[va]||{src:""};qo=ll.src?ll.src.replace(/^[^\?]+\??/,""):"",ul("renderer")}var cl=setInterval(Gc,100);try{no(ee)!=="object"&&(window.bodymovin=Kt)}catch{}var Or=function(){var c={},p={};c.registerModifier=v,c.getModifier=$;function v(P,_){p[P]||(p[P]=_)}function $(P,_,q){return new p[P](_,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:ks.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=ne,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,$,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var q=[],me,J=_.length,ye;for(me=0;me<J;me+=1)if(ye=_[me],!(ye.e*P<$||ye.s*P>$+v)){var we,ke;ye.s*P<=$?we=0:we=(ye.s*P-$)/v,ye.e*P>=$+v?ke=1:ke=(ye.e*P-$)/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)sl.release(c[p]);return c.length=0,c},Ir.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var $=this.o.v%360/360;if($<0&&($+=1),this.s.v>1?p=1+$:this.s.v<0?p=0+$:p=this.s.v+$,this.e.v>1?v=1+$:this.e.v<0?v=0+$:v=this.e.v+$,p>v){var P=p;p=v,v=P}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var _,q,me=this.shapes.length,J,ye,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,de;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(_=he.shape.paths,ye=_._length,R=0,!he.shape._mdf&&he.pathsData.length)R=he.totalShapeLength;else{for(we=this.releasePathsData(he.pathsData),J=0;J<ye;J+=1)ke=Jr.getSegmentsLength(_.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,j;for(q=me-1;q>=0;q-=1)if(he=this.shapes[q],he.shape._mdf){for(de=he.localShapeCollection,de.releaseShapes(),this.m===2&&me>1?(j=this.calculateShapeEdges(p,v,he.totalShapeLength,L,Q),L+=he.totalShapeLength):j=[[W,Y]],ye=j.length,J=0;J<ye;J+=1){W=j[J][0],Y=j[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 re=he.shape.paths.shapes[he.shape.paths._length-1];if(re.c){var oe=H.pop();this.addPaths(H,de),H=this.addShapes(he,G[1],oe)}else this.addPaths(H,de),H=this.addShapes(he,G[1])}this.addPaths(H,de)}}he.shape.paths=de}}},Ir.prototype.addPaths=function(c,p){var v,$=c.length;for(v=0;v<$;v+=1)p.addShape(c[v])},Ir.prototype.addSegment=function(c,p,v,$,P,_,q){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),q&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt($[0],$[1],"v",_+1)},Ir.prototype.addSegmentFromArray=function(c,p,v,$){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),$&&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 $=c.pathsData,P=c.shape.paths.shapes,_,q=c.shape.paths._length,me,J,ye=0,we,ke,R,Q,G=[],he,de=!0;for(v?(ke=v._length,he=v._length):(v=Xn.newElement(),ke=0,he=0),G.push(v),_=0;_<q;_+=1){for(R=$[_].lengths,v.c=P[_].c,J=P[_].c?R.length:R.length+1,me=1;me<J;me+=1)if(we=R[me-1],ye+we.addedLength<p.s)ye+=we.addedLength,v.c=!1;else if(ye>p.e){v.c=!1;break}else p.s<=ye&&p.e>=ye+we.addedLength?(this.addSegment(P[_].v[me-1],P[_].o[me-1],P[_].i[me],P[_].v[me],v,ke,de),de=!1):(Q=Jr.getNewSegment(P[_].v[me-1],P[_].v[me],P[_].o[me-1],P[_].i[me],(p.s-ye)/we.addedLength,(p.e-ye)/we.addedLength,R[me-1]),this.addSegmentFromArray(Q,v,ke,de),de=!1,v.c=!1),ye+=we.addedLength,ke+=1;if(P[_].c&&R.length){if(we=R[me-1],ye<=p.e){var W=R[me-1].addedLength;p.s<=ye&&p.e>=ye+W?(this.addSegment(P[_].v[me-1],P[_].o[me-1],P[_].i[0],P[_].v[0],v,ke,de),de=!1):(Q=Jr.getNewSegment(P[_].v[me-1],P[_].v[0],P[_].o[me-1],P[_].i[0],(p.s-ye)/W,(p.e-ye)/W,R[me-1]),this.addSegmentFromArray(Q,v,ke,de),de=!1,v.c=!1)}else v.c=!1;ye+=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)),ye>p.e)break;_<q-1&&(v=Xn.newElement(),de=!0,G.push(v),ke=0)}return G};function Os(){}Fe([vr],Os),Os.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},Os.prototype.processPath=function(c,p){var v=p/100,$=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)$[0]+=c.v[_][0],$[1]+=c.v[_][1];$[0]/=P,$[1]/=P;var q=Xn.newElement();q.c=c.c;var me,J,ye,we,ke,R;for(_=0;_<P;_+=1)me=c.v[_][0]+($[0]-c.v[_][0])*v,J=c.v[_][1]+($[1]-c.v[_][1])*v,ye=c.o[_][0]+($[0]-c.o[_][0])*-v,we=c.o[_][1]+($[1]-c.o[_][1])*-v,ke=c.i[_][0]+($[0]-c.i[_][0])*-v,R=c.i[_][1]+($[1]-c.i[_][1])*-v,q.setTripleAt(me,J,ye,we,ke,R,_);return q},Os.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amount.v;if(q!==0){var me,J;for(v=0;v<$;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,_=me.shape.paths._length,P=0;P<_;P+=1)J.addShape(this.processPath(p[P],q));me.shape.paths=me.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var ro=function(){var c=[0,0];function p(J){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,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 ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var we,ke;if(ye=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(we=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ye,0),ke=this.p.getValueAtTime(this.p.keyframes[0].t/ye,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(we=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ye,0),ke=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):(we=this.p.pv,ke=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){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)/ye,0),we[1]=Q.getValueAtTime((Q.keyframes[0].t+.01)/ye,0),ke[0]=R.getValueAtTime(R.keyframes[0].t/ye,0),ke[1]=Q.getValueAtTime(Q.keyframes[0].t/ye,0)):R._caching.lastFrame+R.offsetTime>=R.keyframes[R.keyframes.length-1].t?(we[0]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/ye,0),we[1]=Q.getValueAtTime(Q.keyframes[Q.keyframes.length-1].t/ye,0),ke[0]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/ye,0),ke[1]=Q.getValueAtTime((Q.keyframes[Q.keyframes.length-1].t-.01)/ye,0)):(we=[R.pv,Q.pv],ke[0]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/ye,R.offsetTime),ke[1]=Q.getValueAtTime((Q._caching.lastFrame+Q.offsetTime-.01)/ye,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 $(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(J){this._addDynamicProperty(J),this.elem.addDynamicProperty(J),this._isDirty=!0}function q(J,ye,we){if(this.elem=J,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new Ln,this.pre=new Ln,this.appliedTransformations=0,this.initDynamicPropertyContainer(we||J),ye.p&&ye.p.s?(this.px=st.getProp(J,ye.p.x,0,0,this),this.py=st.getProp(J,ye.p.y,0,0,this),ye.p.z&&(this.pz=st.getProp(J,ye.p.z,0,0,this))):this.p=st.getProp(J,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=st.getProp(J,ye.rx,0,en,this),this.ry=st.getProp(J,ye.ry,0,en,this),this.rz=st.getProp(J,ye.rz,0,en,this),ye.or.k[0].ti){var ke,R=ye.or.k.length;for(ke=0;ke<R;ke+=1)ye.or.k[ke].to=null,ye.or.k[ke].ti=null}this.or=st.getProp(J,ye.or,1,en,this),this.or.sh=!0}else this.r=st.getProp(J,ye.r||{k:0},0,en,this);ye.sk&&(this.sk=st.getProp(J,ye.sk,0,en,this),this.sa=st.getProp(J,ye.sa,0,en,this)),this.a=st.getProp(J,ye.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(J,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=st.getProp(J,ye.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:$,autoOrient:P},Fe([dn],q),q.prototype.addDynamicProperty=_,q.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function me(J,ye,we){return new q(J,ye,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=ro.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,$,P,_){var q=_?-1:1,me=$.s.v[0]+(1-$.s.v[0])*(1-P),J=$.s.v[1]+(1-$.s.v[1])*(1-P);c.translate($.p.v[0]*q*P,$.p.v[1]*q*P,$.p.v[2]),p.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),p.rotate(-$.r.v*q*P),p.translate($.a.v[0],$.a.v[1],$.a.v[2]),v.translate(-$.a.v[0],-$.a.v[1],$.a.v[2]),v.scale(_?1/me:me,_?1/J:J),v.translate($.a.v[0],$.a.v[1],$.a.v[2])},yr.prototype.init=function(c,p,v,$){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=$,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,$=c.length;for(v=0;v<$;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},yr.prototype.processShapes=function(c){var p,v,$,P,_,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}_=0;var ye;for($=0;$<=this._groups.length-1;$+=1){if(ye=_<me,this._groups[$]._render=ye,this.changeGroupRender(this._groups[$].it,ye),!ye){var we=this.elemsData[$].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}_+=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,de=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)}$=this.data.m===1?0:this._currentCopies-1,P=this.data.m===1?1:-1,_=this._currentCopies;for(var L,j;_;){if(p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,j=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*($/(this._currentCopies-1)),Y!==0){for(($!==0&&P===1||$!==this._currentCopies-1&&P===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),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<j;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<j;L+=1)v[L]=this.matrix.props[L];Y+=1,_-=1,$+=P}}else for(_=this._currentCopies,$=0,P=1;_;)p=this.elemsData[$].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,_-=1,$+=P;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=Xn.newElement();v.c=c.c;var $,P=c._length,_,q,me,J,ye,we,ke=0,R,Q,G,he,de,W;for($=0;$<P;$+=1)_=c.v[$],me=c.o[$],q=c.i[$],_[0]===me[0]&&_[1]===me[1]&&_[0]===q[0]&&_[1]===q[1]?($===0||$===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],me[0],me[1],q[0],q[1],ke),ke+=1):($===0?J=c.v[P-1]:J=c.v[$-1],ye=Math.sqrt(Math.pow(_[0]-J[0],2)+Math.pow(_[1]-J[1],2)),we=ye?Math.min(ye/2,p)/ye:0,de=_[0]+(J[0]-_[0])*we,R=de,W=_[1]-(_[1]-J[1])*we,Q=W,G=R-(R-_[0])*be,he=Q-(Q-_[1])*be,v.setTripleAt(R,Q,G,he,de,W,ke),ke+=1,$===P-1?J=c.v[0]:J=c.v[$+1],ye=Math.sqrt(Math.pow(_[0]-J[0],2)+Math.pow(_[1]-J[1],2)),we=ye?Math.min(ye/2,p)/ye:0,G=_[0]+(J[0]-_[0])*we,R=G,he=_[1]+(J[1]-_[1])*we,Q=he,de=R-(R-_[0])*be,W=Q-(Q-_[1])*be,v.setTripleAt(R,Q,G,he,de,W,ke),ke+=1):(v.setTripleAt(c.v[$][0],c.v[$][1],c.o[$][0],c.o[$][1],c.i[$][0],c.i[$][1],ke),ke+=1);return v},ya.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.rd.v;if(q!==0){var me,J;for(v=0;v<$;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,_=me.shape.paths._length,P=0;P<_;P+=1)J.addShape(this.processPath(p[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 ur(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 $=p*p-4*c*v;if($<0)return[];var P=-p/(2*c);if($===0)return[P];var _=Math.sqrt($)/(2*c);return[P-_,P+_]}function Ho(c,p,v,$){return[-c+3*p-3*v+$,3*c-6*p+3*v,-3*c+3*p,c]}function fl(c){return new pn(c,c,c,c,!1)}function pn(c,p,v,$,P){P&&os(c,p)&&(p=ur(c,$,1/3)),P&&os(v,$)&&(v=ur(c,$,2/3));var _=Ho(c[0],p[0],v[0],$[0]),q=Ho(c[1],p[1],v[1],$[1]);this.a=[_[0],q[0]],this.b=[_[1],q[1]],this.c=[_[2],q[2]],this.d=[_[3],q[3]],this.points=[c,p,v,$]}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 $=Math.sqrt(v);return Pi($)?$>0&&$<1?[p]:[]:[p-$,p+$].filter(function(P){return P>0&&P<1})},pn.prototype.split=function(c){if(c<=0)return[fl(this.points[0]),this];if(c>=1)return[this,fl(this.points[this.points.length-1])];var p=ur(this.points[0],this.points[1],c),v=ur(this.points[1],this.points[2],c),$=ur(this.points[2],this.points[3],c),P=ur(p,v,c),_=ur(v,$,c),q=ur(P,_,c);return[new pn(this.points[0],p,P,q,!0),new pn(q,_,$,this.points[3],!0)]};function Go(c,p){var v=c.points[0][p],$=c.points[c.points.length-1][p];if(v>$){var P=$;$=v,v=P}for(var _=_i(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<_.length;q+=1)if(_[q]>0&&_[q]<1){var me=c.point(_[q])[p];me<v?v=me:me>$&&($=me)}return{min:v,max:$}}pn.prototype.bounds=function(){return{x:Go(this,0),y:Go(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 $=c.boundingBox();return{cx:$.cx,cy:$.cy,width:$.width,height:$.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Yo(c){var p=c.bez.split(.5);return[$a(p[0],c.t1,c.t),$a(p[1],c.t,c.t2)]}function dl(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,$,P,_){if(dl(c,p)){if(v>=_||c.width<=$&&c.height<=$&&p.width<=$&&p.height<=$){P.push([c.t,p.t]);return}var q=Yo(c),me=Yo(p);Lr(q[0],me[0],v+1,$,P,_),Lr(q[0],me[1],v+1,$,P,_),Lr(q[1],me[0],v+1,$,P,_),Lr(q[1],me[1],v+1,$,P,_)}}pn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var $=[];return Lr($a(this,0,1),$a(c,0,1),0,p,$,v),$},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 Zo(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 Is(c,p,v,$){var P=[c[0],c[1],1],_=[p[0],p[1],1],q=[v[0],v[1],1],me=[$[0],$[1],1],J=Zo(Zo(P,_),Zo(q,me));return Pi(J[2])?null:[J[0]/J[2],J[1]/J[2]]}function Ls(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 io(c,p,v,$,P,_,q){var me=v-Math.PI/2,J=v+Math.PI/2,ye=p[0]+Math.cos(v)*$*P,we=p[1]-Math.sin(v)*$*P;c.setTripleAt(ye,we,ye+Math.cos(me)*_,we-Math.sin(me)*_,ye+Math.cos(J)*q,we-Math.sin(J)*q,c.length())}function hl(c,p){var v=[p[0]-c[0],p[1]-c[1]],$=-Math.PI*.5,P=[Math.cos($)*v[0]-Math.sin($)*v[1],Math.sin($)*v[0]+Math.cos($)*v[1]];return P}function Yc(c,p){var v=p===0?c.length()-1:p-1,$=(p+1)%c.length(),P=c.v[v],_=c.v[$],q=hl(P,_);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function Ca(c,p,v,$,P,_,q){var me=Yc(p,v),J=p.v[v%p._length],ye=p.v[v===0?p._length-1:v-1],we=p.v[(v+1)%p._length],ke=_===2?Math.sqrt(Math.pow(J[0]-ye[0],2)+Math.pow(J[1]-ye[1],2)):0,R=_===2?Math.sqrt(Math.pow(J[0]-we[0],2)+Math.pow(J[1]-we[1],2)):0;io(c,p.v[v%p._length],me,q,$,R/((P+1)*2),ke/((P+1)*2))}function Zc(c,p,v,$,P,_){for(var q=0;q<$;q+=1){var me=(q+1)/($+1),J=P===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,ye=p.normalAngle(me),we=p.point(me);io(c,we,ye,_,v,J/(($+1)*2),J/(($+1)*2)),_=-_}return _}wa.prototype.processPath=function(c,p,v,$){var P=c._length,_=Xn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var q=-1,me=pn.shapeSegment(c,0);Ca(_,c,0,p,v,$,q);for(var J=0;J<P;J+=1)q=Zc(_,me,p,v,$,-q),J===P-1&&!c.c?me=null:me=pn.shapeSegment(c,(J+1)%P),Ca(_,c,J+1,p,v,$,q);return _},wa.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amplitude.v,me=Math.max(0,Math.round(this.frequency.v)),J=this.pointsType.v;if(q!==0){var ye,we;for(v=0;v<$;v+=1){if(ye=this.shapes[v],we=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)we.addShape(this.processPath(p[P],q,me,J));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ea(c,p,v){var $=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Ls(c,$,v),Ls(p,$,v)]}function Yt(c,p){var v,$,P,_,q,me,J;J=Ea(c.points[0],c.points[1],p),v=J[0],$=J[1],J=Ea(c.points[1],c.points[2],p),P=J[0],_=J[1],J=Ea(c.points[2],c.points[3],p),q=J[0],me=J[1];var ye=Is(v,$,P,_);ye===null&&(ye=$);var we=Is(q,me,P,_);return we===null&&(we=q),new pn(v,ye,we,me)}function nn(c,p,v,$,P){var _=p.points[3],q=v.points[0];if($===3||os(_,q))return _;if($===2){var me=-p.tangentAngle(1),J=-v.tangentAngle(0)+Math.PI,ye=Is(_,Ls(_,me+Math.PI/2,100),q,Ls(q,me+Math.PI/2,100)),we=ye?xa(ye,_):xa(_,q)/2,ke=Ls(_,me,2*we*be);return c.setXYAt(ke[0],ke[1],"o",c.length()-1),ke=Ls(q,J,2*we*be),c.setTripleAt(q[0],q[1],q[0],q[1],ke[0],ke[1],c.length()),q}var R=os(_,p.points[2])?p.points[0]:p.points[2],Q=os(q,v.points[1])?v.points[3]:v.points[1],G=Is(R,_,q,Q);return G&&xa(G,_)<P?(c.setTripleAt(G[0],G[1],G[0],G[1],G[0],G[1],c.length()),G):_}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(),$=p.slice(),P=se(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],$[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=se(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,$]}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(),$,P,_,q;if(v.length===0)return[Yt(c,p)];if(v.length===1||ba(v[1],1))return _=c.split(v[0]),$=_[0],P=_[1],[Yt($,p),Yt(P,p)];_=c.split(v[0]),$=_[0];var me=(v[1]-v[0])/(1-v[0]);return _=_[1].split(me),q=_[0],P=_[1],[Yt($,p),Yt(q,p),Yt(P,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,$){var P=Xn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var q,me,J,ye=[];for(q=0;q<_;q+=1)J=pn.shapeSegment(c,q),ye.push(pt(J,p));if(!c.c)for(q=_-1;q>=0;q-=1)J=pn.shapeSegmentInverted(c,q),ye.push(pt(J,p));ye=ze(ye);var we=null,ke=null;for(q=0;q<ye.length;q+=1){var R=ye[q];for(ke&&(we=nn(P,ke,R[0],v,$)),ke=R[R.length-1],me=0;me<R.length;me+=1)J=R[me],we&&os(J.points[0],we)?P.setXYAt(J.points[1][0],J.points[1][1],"o",P.length()-1):P.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],P.length()),P.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],P.length()),we=J.points[3]}return ye.length&&nn(P,ke,ye[0][0],v,$),P},bn.prototype.processShapes=function(c){var p,v,$=this.shapes.length,P,_,q=this.amount.v,me=this.miterLimit.v,J=this.lineJoin;if(q!==0){var ye,we;for(v=0;v<$;v+=1){if(ye=this.shapes[v],we=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)we.addShape(this.processPath(p[P],q,J,me));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function sr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",$="normal",P=p.length,_,q=0;q<P;q+=1)switch(_=p[q].toLowerCase(),_){case"italic":$="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:$,weight:c.fWeight||v}}var lr=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 $=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],P=[65039,8205];function _(j){var H=j.split(","),re,oe=H.length,pe=[];for(re=0;re<oe;re+=1)H[re]!=="sans-serif"&&H[re]!=="monospace"&&pe.push(H[re]);return pe.join(",")}function q(j,H){var re=Pe("span");re.setAttribute("aria-hidden",!0),re.style.fontFamily=H;var oe=Pe("span");oe.innerText="giItT1WQy@!-/#",re.style.position="absolute",re.style.left="-10000px",re.style.top="-10000px",re.style.fontSize="300px",re.style.fontVariant="normal",re.style.fontStyle="normal",re.style.fontWeight="normal",re.style.letterSpacing="0",re.appendChild(oe),document.body.appendChild(re);var pe=oe.offsetWidth;return oe.style.fontFamily=_(j)+", "+H,{node:oe,w:pe,parent:re}}function me(){var j,H=this.fonts.length,re,oe,pe=H;for(j=0;j<H;j+=1)this.fonts[j].loaded?pe-=1:this.fonts[j].fOrigin==="n"||this.fonts[j].origin===0?this.fonts[j].loaded=!0:(re=this.fonts[j].monoCase.node,oe=this.fonts[j].monoCase.w,re.offsetWidth!==oe?(pe-=1,this.fonts[j].loaded=!0):(re=this.fonts[j].sansCase.node,oe=this.fonts[j].sansCase.w,re.offsetWidth!==oe&&(pe-=1,this.fonts[j].loaded=!0)),this.fonts[j].loaded&&(this.fonts[j].sansCase.parent.parentNode.removeChild(this.fonts[j].sansCase.parent),this.fonts[j].monoCase.parent.parentNode.removeChild(this.fonts[j].monoCase.parent)));pe!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function J(j,H){var re=document.body&&H?"svg":"canvas",oe,pe=sr(j);if(re==="svg"){var Ie=bt("text");Ie.style.fontSize="100px",Ie.setAttribute("font-family",j.fFamily),Ie.setAttribute("font-style",pe.style),Ie.setAttribute("font-weight",pe.weight),Ie.textContent="1",j.fClass?(Ie.style.fontFamily="inherit",Ie.setAttribute("class",j.fClass)):Ie.style.fontFamily=j.fFamily,H.appendChild(Ie),oe=Ie}else{var nt=new OffscreenCanvas(500,500).getContext("2d");nt.font=pe.style+" "+pe.weight+" 100px "+j.fFamily,oe=nt}function et(Ne){return re==="svg"?(oe.textContent=Ne,oe.getComputedTextLength()):oe.measureText(Ne).width}return{measureText:et}}function ye(j,H){if(!j){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=j.list;return}if(!document.body){this.isLoaded=!0,j.list.forEach(function($e){$e.helper=J($e),$e.cache={}}),this.fonts=j.list;return}var re=j.list,oe,pe=re.length,Ie=pe;for(oe=0;oe<pe;oe+=1){var nt=!0,et,Ne;if(re[oe].loaded=!1,re[oe].monoCase=q(re[oe].fFamily,"monospace"),re[oe].sansCase=q(re[oe].fFamily,"sans-serif"),!re[oe].fPath)re[oe].loaded=!0,Ie-=1;else if(re[oe].fOrigin==="p"||re[oe].origin===3){if(et=document.querySelectorAll('style[f-forigin="p"][f-family="'+re[oe].fFamily+'"], style[f-origin="3"][f-family="'+re[oe].fFamily+'"]'),et.length>0&&(nt=!1),nt){var ot=Pe("style");ot.setAttribute("f-forigin",re[oe].fOrigin),ot.setAttribute("f-origin",re[oe].origin),ot.setAttribute("f-family",re[oe].fFamily),ot.type="text/css",ot.innerText="@font-face {font-family: "+re[oe].fFamily+"; font-style: normal; src: url('"+re[oe].fPath+"');}",H.appendChild(ot)}}else if(re[oe].fOrigin==="g"||re[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(re[oe].fPath)!==-1&&(nt=!1);if(nt){var ct=Pe("link");ct.setAttribute("f-forigin",re[oe].fOrigin),ct.setAttribute("f-origin",re[oe].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=re[oe].fPath,document.body.appendChild(ct)}}else if(re[oe].fOrigin==="t"||re[oe].origin===2){for(et=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ne=0;Ne<et.length;Ne+=1)re[oe].fPath===et[Ne].src&&(nt=!1);if(nt){var Ve=Pe("link");Ve.setAttribute("f-forigin",re[oe].fOrigin),Ve.setAttribute("f-origin",re[oe].origin),Ve.setAttribute("rel","stylesheet"),Ve.setAttribute("href",re[oe].fPath),H.appendChild(Ve)}}re[oe].helper=J(re[oe],H),re[oe].cache={},this.fonts.push(re[oe])}Ie===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function we(j){if(j){this.chars||(this.chars=[]);var H,re=j.length,oe,pe=this.chars.length,Ie;for(H=0;H<re;H+=1){for(oe=0,Ie=!1;oe<pe;)this.chars[oe].style===j[H].style&&this.chars[oe].fFamily===j[H].fFamily&&this.chars[oe].ch===j[H].ch&&(Ie=!0),oe+=1;Ie||(this.chars.push(j[H]),pe+=1)}}}function ke(j,H,re){for(var oe=0,pe=this.chars.length;oe<pe;){if(this.chars[oe].ch===j&&this.chars[oe].style===H&&this.chars[oe].fFamily===re)return this.chars[oe];oe+=1}return(typeof j=="string"&&j.charCodeAt(0)!==13||!j)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",j,H,re)),p}function R(j,H,re){var oe=this.getFontByName(H),pe=j.charCodeAt(0);if(!oe.cache[pe+1]){var Ie=oe.helper;if(j===" "){var nt=Ie.measureText("|"+j+"|"),et=Ie.measureText("||");oe.cache[pe+1]=(nt-et)/100}else oe.cache[pe+1]=Ie.measureText(j)/100}return oe.cache[pe+1]*re}function Q(j){for(var H=0,re=this.fonts.length;H<re;){if(this.fonts[H].fName===j)return this.fonts[H];H+=1}return this.fonts[0]}function G(j,H){var re=j.toString(16)+H.toString(16);return $.indexOf(re)!==-1}function he(j,H){return H?j===P[0]&&H===P[1]:j===P[1]}function de(j){return v.indexOf(j)!==-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=de;var L={addChars:we,addFonts:ye,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 Dn=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function 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 Xo(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function so(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function cr(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 ih(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function sh(){this.p={}}function Xc(c,p){var v=c.ef||[];this.effectElements=[];var $,P=v.length,_;for($=0;$<P;$+=1)_=new ao(v[$],p),this.effectElements.push(_)}function ao(c,p){this.init(c,p)}Fe([dn],ao),ao.prototype.getValue=ao.prototype.iterateDynamicProperties,ao.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,$=this.data.ef.length,P,_=this.data.ef;for(v=0;v<$;v+=1){switch(P=null,_[v].ty){case 0:P=new Mi(_[v],p,this);break;case 1:P=new Fi(_[v],p,this);break;case 2:P=new Xo(_[v],p,this);break;case 3:P=new so(_[v],p,this);break;case 4:case 7:P=new ih(_[v],p,this);break;case 10:P=new cr(_[v],p,this);break;case 11:P=new Sa(_[v],p,this);break;case 5:P=new Xc(_[v],p);break;default:P=new sh(_[v]);break}P&&this.effectElements.push(P)}};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=Dn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,$){this.globalData=v,this.comp=$,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 $,P=this.dynamicProperties.length;for($=0;$<P;$+=1)(v||this._isParent&&this.dynamicProperties[$].propType==="transform")&&(this.dynamicProperties[$].getValue(),this.dynamicProperties[$]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Vs(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)}Vs.prototype.prepareFrame=function(){},Fe([Kn,us,Vn],Vs),Vs.prototype.getBaseElement=function(){return null},Vs.prototype.renderFrame=function(){},Vs.prototype.destroy=function(){},Vs.prototype.initExpressions=function(){},Vs.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 $=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio($),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 fr(){}fr.prototype.checkLayers=function(c){var p,v=this.layers.length,$;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||($=this.layers[p],$.ip-$.st<=c-this.layers[p].st&&$.op-$.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},fr.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)}},fr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},fr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},fr.prototype.createFootage=function(c){return new Vs(c,this.globalData,this)},fr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},fr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,$,P=this.layers.length;for(p=0;p<v;p+=1)for($=0;$<P;){if(this.layers[$].id===c[p].id){this.layers[$]=c[p];break}$+=1}},fr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},fr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},fr.prototype.buildElementParenting=function(c,p,v){for(var $=this.elements,P=this.layers,_=0,q=P.length;_<q;)P[_].ind==p&&(!$[_]||$[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push($[_]),$[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},fr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},fr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var $=this.createComp(c[p]);$.initExpressions(),this.globalData.projectInterface.registerComposition($)}},fr.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},fr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var $,P=this.elements.length;for($=0;$<P;$+=1)if(this.elements[$].data.nm===p){v=this.elements[$];break}}return c.length===0?v:v.getElementByPath(c)},fr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new lr,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?ro.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,$=0,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;$<P;){if(this.hierarchy[$].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}$+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),$=0;$<P;$+=1)p=this.hierarchy[$].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 $=!0,P=this.comp;$;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):$=!1;var _,q=v.length,me;for(_=0;_<q;_+=1)me=v[_].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 $=this.globalData.defs,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ge(_),this.solidPath="";var q,me=this.masksProperties,J=0,ye=[],we,ke,R=xt(),Q,G,he,de,W="clipPath",Y="clip-path";for(P=0;P<_;P+=1)if((me[P].mode!=="a"&&me[P].mode!=="n"||me[P].inv||me[P].o.k!==100||me[P].o.x)&&(W="mask",Y="mask"),(me[P].mode==="s"||me[P].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),ye.push(Q)):Q=null,q=bt("path"),me[P].mode==="n")this.viewData[P]={op:st.getProp(this.element,me[P].o,0,.01,this.element),prop:mi.getShapeProp(this.element,me[P],3),elem:q,lastPath:""},$.appendChild(q);else{J+=1,q.setAttribute("fill",me[P].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var L;if(me[P].x.k!==0?(W="mask",Y="mask",de=st.getProp(this.element,me[P].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),$.appendChild(G),q.setAttribute("stroke",me[P].mode==="s"?"#000000":"#ffffff")):(he=null,de=null),this.storedData[P]={elem:q,x:de,expan:he,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},me[P].mode==="i"){ke=ye.length;var j=bt("g");for(we=0;we<ke;we+=1)j.appendChild(ye[we]);var H=bt("mask");H.setAttribute("mask-type","alpha"),H.setAttribute("id",R+"_"+J),H.appendChild(q),$.appendChild(H),j.setAttribute("mask","url("+De()+"#"+R+"_"+J+")"),ye.length=0,ye.push(j)}else ye.push(q);me[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:q,lastPath:"",op:st.getProp(this.element,me[P].o,0,.01,this.element),prop:mi.getShapeProp(this.element,me[P],3),invRect:Q},this.viewData[P].prop.k||this.drawPath(me[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=bt(W),_=ye.length,P=0;P<_;P+=1)this.maskElement.appendChild(ye[P]);J>0&&(this.maskElement.setAttribute("id",R),this.element.maskedElement.setAttribute(Y,"url("+De()+"#"+R+")"),$.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,$=this.masksProperties.length;for(v=0;v<$;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var P=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+De()+"#"+this.storedData[v].filterId+")")),P.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},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 $=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)$+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&($+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==$){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+$:$),v.elem.setAttribute("d",q)),v.lastPath=$}},Sr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Bs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p($,P){var _=bt("filter");return _.setAttribute("id",$),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var $=bt("feColorMatrix");return $.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),$}return c}(),pl=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 ml(c){var p,v="SourceGraphic",$=c.data.ef?c.data.ef.length:0,P=xt(),_=Bs.createFilter(P,!0),q=0;this.filters=[];var me;for(p=0;p<$;p+=1){me=null;var J=c.data.ef[p].ty;if(cn[J]){var ye=cn[J].effect;me=new ye(_,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(_),c.layerElement.setAttribute("filter","url("+De()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}ml.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Jo(){}Jo.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 $=bt("clipPath"),P=bt("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=xt();if($.setAttribute("id",_),$.appendChild(P),this.globalData.defs.appendChild($),this.checkMasks()){var q=bt("g");q.setAttribute("clip-path","url("+De()+"#"+_+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+De()+"#"+_+")")}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 ml(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,$,P,_,q;if(p===1||p===3){var me=bt("mask");me.setAttribute("id",v),me.setAttribute("mask-type",p===3?"luminance":"alpha"),_=bt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),me.appendChild(_),this.globalData.defs.appendChild(me),!pl.maskType&&p===1&&(me.setAttribute("mask-type","luminance"),$=xt(),P=Bs.createFilter($),this.globalData.defs.appendChild(P),P.appendChild(Bs.createAlphaToLuminanceFilter()),q=bt("g"),q.appendChild(_),me.appendChild(q),q.setAttribute("filter","url("+De()+"#"+$+")"))}else if(p===2){var J=bt("mask");J.setAttribute("id",v),J.setAttribute("mask-type","alpha");var ye=bt("g");J.appendChild(ye),$=xt(),P=Bs.createFilter($);var we=bt("feComponentTransfer");we.setAttribute("in","SourceGraphic"),P.appendChild(we);var ke=bt("feFuncA");ke.setAttribute("type","table"),ke.setAttribute("tableValues","1.0 0.0"),we.appendChild(ke),this.globalData.defs.appendChild(P);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"),ye.setAttribute("filter","url("+De()+"#"+$+")"),ye.appendChild(R),_=bt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(_),pl.maskType||(J.setAttribute("mask-type","luminance"),P.appendChild(Bs.createAlphaToLuminanceFilter()),q=bt("g"),ye.appendChild(R),q.appendChild(this.layerElement),ye.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 Ns(){}Ns.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 Qo(){}(function(){var c={initElement:function(v,$,P){this.initFrame(),this.initBaseData(v,$,P),this.initTransform(v,$,P),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Fe([Kn,He(c)],Qo)})();function eu(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,Jo,Ns,Vn,Qo],eu),eu.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)},eu.prototype.sourceRectAtTime=function(){return this.sourceRect};function gg(c,p){this.elem=c,this.pos=p}function Jc(){}Jc.prototype={addShapeToModifiers:function(p){var v,$=this.shapeModifiers.length;for(v=0;v<$;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,$=this.shapeModifiers.length;v<$;)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 $;for(p=v-1;p>=0&&($=this.shapeModifiers[p].processShapes(this._isFirstFrame),!$);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,$=0,P=v.length;$<P;){if(v[$].elem===p)return v[$].pos;$+=1}return 0},addProcessedElement:function(p,v){for(var $=this.processedElements,P=$.length;P;)if(P-=1,$[P].elem===p){$[P].pos=v;return}$.push(new gg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var tu={1:"butt",2:"round",3:"square"},Aa={1:"miter",2:"round",3:"bevel"};function ah(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var $=0,P=c.length;$<P;){if(c[$].mProps.dynamicProperties.length){this._isAnimated=!0;break}$+=1}}ah.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 nu(c,p,v,$){this.elem=c,this.frameId=-1,this.dataProps=Ge(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($);var P,_=p.length||0,q;for(P=0;P<_;P+=1)q=st.getProp(c,p[P].v,0,0,this),this.k=q.k||this.k,this.dataProps[P]={n:p[P].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}nu.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],nu);function gl(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 nu(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Fe([dn],gl);function vl(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],vl);function ef(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Fe([dn],ef);function ru(c,p,v){this.data=p,this.c=Be("uint8c",p.p*4);var $=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",$),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=$,this.initDynamicPropertyContainer(v),this.prop=st.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ru.prototype.comparePoints=function(c,p){for(var v=0,$=this.o.length/2,P;v<$;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},ru.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},ru.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,$,P;for(p=0;p<v;p+=1)$=p%4===0?100:255,P=Math.round(this.prop.v[p]*$),this.c[p]!==P&&(this.c[p]=P,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)$=p%2===0?100:1,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Fe([dn],ru);function js(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}js.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 ru(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},js.prototype.setGradientData=function(c,p){var v=xt(),$=bt(p.t===1?"linearGradient":"radialGradient");$.setAttribute("id",v),$.setAttribute("spreadMethod","pad"),$.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,q,me;for(me=p.g.p*4,q=0;q<me;q+=4)_=bt("stop"),$.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+De()+"#"+v+")"),this.gf=$,this.cst=P},js.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,$,P,_=bt("mask"),q=bt("path");_.appendChild(q);var me=xt(),J=xt();_.setAttribute("id",J);var ye=bt(c.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",me),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),P=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var we=this.stops;for($=c.g.p*4;$<P;$+=2)v=bt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(v),we.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+De()+"#"+me+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",tu[c.lc||2]),q.setAttribute("stroke-linejoin",Aa[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=ye,this.ms=_,this.ost=we,this.maskId=J,p.msElem=q}},Fe([dn],js);function yl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new nu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Fe([js,dn],yl);function vg(){this.it=[],this.prevViewData=[],this.gr=bt("g")}function oh(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,$,P){if(v===0)return"";var _=p.o,q=p.i,me=p.v,J,ye=" M"+P.applyToPointStringified(me[0][0],me[0][1]);for(J=1;J<v;J+=1)ye+=" C"+P.applyToPointStringified(_[J-1][0],_[J-1][1])+" "+P.applyToPointStringified(q[J][0],q[J][1])+" "+P.applyToPointStringified(me[J][0],me[J][1]);return $&&v&&(ye+=" C"+P.applyToPointStringified(_[J-1][0],_[J-1][1])+" "+P.applyToPointStringified(q[0][0],q[0][1])+" "+P.applyToPointStringified(me[0][0],me[0][1]),ye+="z"),ye},tf=function(){var c=new Ln,p=new Ln,v={createRenderFunction:$};function $(ke){switch(ke.ty){case"fl":return me;case"gf":return ye;case"gs":return J;case"st":return we;case"sh":case"el":case"rc":case"sr":return q;case"tr":return P;case"no":return _;default:return null}}function P(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 _(){}function q(ke,R,Q){var G,he,de,W,Y,L,j=R.styles.length,H=R.lvl,re,oe,pe,Ie,nt;for(L=0;L<j;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(re=R.sh.paths,he=re._length,W){for(de="",G=0;G<he;G+=1)Y=re.shapes[G],Y&&Y._length&&(de+=Dr(Y,Y._length,Y.c,oe));R.caches[L]=de}else de=R.caches[L];R.styles[L].d+=ke.hd===!0?"":de,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){ye(ke,R,Q),we(ke,R,Q)}function ye(ke,R,Q){var G=R.gf,he=R.g._hasOpacity,de=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",j=L==="x1"?"y1":"cy";G.setAttribute(L,de[0]),G.setAttribute(j,de[1]),he&&!R.g._collapsable&&(R.of.setAttribute(L,de[0]),R.of.setAttribute(j,de[1]))}var H,re,oe,pe;if(R.g._cmdf||Q){H=R.cst;var Ie=R.g.c;for(oe=H.length,re=0;re<oe;re+=1)pe=H[re],pe.setAttribute("offset",Ie[re*4]+"%"),pe.setAttribute("stop-color","rgb("+Ie[re*4+1]+","+Ie[re*4+2]+","+Ie[re*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,re=0;re<oe;re+=1)pe=H[re],R.g._collapsable||pe.setAttribute("offset",nt[re*2]+"%"),pe.setAttribute("stop-opacity",nt[re*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(de[0]-W[0],2)+Math.pow(de[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(de[0]-W[0],2)+Math.pow(de[1]-W[1],2)));var Ne=Math.atan2(W[1]-de[1],W[0]-de[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+de[0],$e=Math.sin(Ne+R.a.v)*ct+de[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,Jo,Jc,Ns,Vn,Qo],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,$,P=this.stylesList.length,_,q=[],me=!1;for($=0;$<P;$+=1){for(_=this.stylesList[$],me=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-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,$=new Qc(c,p),P=$.pElem;if(c.ty==="st")v=new gl(this,c,$);else if(c.ty==="fl")v=new vl(this,c,$);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?js:yl;v=new _(this,c,$),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),P.setAttribute("mask","url("+De()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new ef(this,c,$));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",tu[c.lc||2]),P.setAttribute("stroke-linejoin",Aa[c.lj||2]),P.setAttribute("fill-opacity","0"),c.lj===1&&P.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&P.setAttribute("fill-rule","evenodd"),c.ln&&P.setAttribute("id",c.ln),c.cl&&P.setAttribute("class",c.cl),c.bm&&(P.style["mix-blend-mode"]=Dn(c.bm)),this.stylesList.push($),this.addToAnimatedContents(c,v),v},mn.prototype.createGroupElement=function(c){var p=new vg;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=Dn(c.bm)),p},mn.prototype.createTransformElement=function(c,p){var v=ro.getTransformProperty(this,c,this),$=new oh(v,v.o,p);return this.addToAnimatedContents(c,$),$},mn.prototype.createShapeElement=function(c,p,v){var $=4;c.ty==="rc"?$=5:c.ty==="el"?$=6:c.ty==="sr"&&($=7);var P=mi.getShapeProp(this,c,$,this),_=new ah(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},mn.prototype.addToAnimatedContents=function(c,p){for(var v=0,$=this.animatedContents.length;v<$;){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,$=this.stylesList.length;for(v=0;v<$;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,$,P,_,q){var me=[].concat(_),J,ye=c.length-1,we,ke,R=[],Q=[],G,he,de;for(J=ye;J>=0;J-=1){if(de=this.searchProcessedElement(c[J]),de?p[J]=v[de-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")de?p[J].style.closed=!1:p[J]=this.createStyleElement(c[J],P),c[J]._render&&p[J].style.pElem.parentNode!==$&&$.appendChild(p[J].style.pElem),R.push(p[J].style);else if(c[J].ty==="gr"){if(!de)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,P+1,me,q),c[J]._render&&p[J].gr.parentNode!==$&&$.appendChild(p[J].gr)}else c[J].ty==="tr"?(de||(p[J]=this.createTransformElement(c[J],$)),G=p[J].transform,me.push(G)):c[J].ty==="sh"||c[J].ty==="rc"||c[J].ty==="el"||c[J].ty==="sr"?(de||(p[J]=this.createShapeElement(c[J],me,P)),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"?(de?(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"&&(de?(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(ye=R.length,J=0;J<ye;J+=1)R[J].closed=!0;for(ye=Q.length,J=0;J<ye;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 bl(c,p,v,$,P,_){this.o=c,this.sw=p,this.sc=v,this.fc=$,this.m=P,this.p=_,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!$,m:!0,p:!0}}bl.prototype.update=function(c,p,v,$,P,_){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==$&&(this.fc=$,this._mdf.fc=!0,q=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,q=!0),_.length&&(this.p[0]!==_[0]||this.p[1]!==_[1]||this.p[4]!==_[4]||this.p[5]!==_[5]||this.p[12]!==_[12]||this.p[13]!==_[13])&&(this.p=_,this._mdf.p=!0,q=!0),q};function dr(c,p){this._frameId=ne,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)}dr.prototype.defaultBoxWidth=[0,0],dr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},dr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},dr.prototype.searchProperty=function(){return this.searchKeyframes()},dr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},dr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},dr.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 $,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for($=0;$<P;$+=1)v!==this.keysIndex?_=this.effectsSequence[$](_,_.t):_=this.effectsSequence[$](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},dr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,$=c.length;v<=$-1&&!(v===$-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},dr.prototype.buildFinalText=function(c){for(var p=[],v=0,$=c.length,P,_,q=!1;v<$;)P=c.charCodeAt(v),lr.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(q||lr.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),lr.isZeroWidthJoiner(P,_)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):lr.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},dr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,$=[],P,_,q,me=0,J,ye=v.m.g,we=0,ke=0,R=0,Q=[],G=0,he=0,de,W,Y=p.getFontByName(c.f),L,j=0,H=sr(Y);c.fWeight=H.weight,c.fStyle=H.style,c.finalSize=c.s,c.finalText=this.buildFinalText(c.t),_=c.finalText.length,c.finalLineHeight=c.lh;var re=c.tr/1e3*c.finalSize,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,_=Ne.length,re=c.tr/1e3*c.finalSize;var ot=-1;for(P=0;P<_;P+=1)oe=Ne[P].charCodeAt(0),q=!1,Ne[P]===" "?ot=P:(oe===13||oe===3)&&(G=0,q=!0,et+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ne[P],Y.fStyle,Y.fFamily),j=q?0:L.w*c.finalSize/100):j=p.measureText(Ne[P],c.f,c.finalSize),G+j>Ie&&Ne[P]!==" "?(ot===-1?_+=1:P=ot,et+=c.finalLineHeight||c.finalSize*1.2,Ne.splice(P,ot===P?1:0,"\r"),ot=-1,G=0):(G+=j,G+=re);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,_=c.finalText.length,pe=!1)}G=-re,j=0;var ct=0,Ve;for(P=0;P<_;P+=1)if(q=!1,Ve=c.finalText[P],oe=Ve.charCodeAt(0),oe===13||oe===3?(ct=0,Q.push(G),he=G>he?G:he,G=-2*re,J="",q=!0,R+=1):J=Ve,p.chars?(L=p.getCharData(Ve,Y.fStyle,p.getFontByName(c.f).fFamily),j=q?0:L.w*c.finalSize/100):j=p.measureText(J,c.f,c.finalSize),Ve===" "?ct+=j+re:(G+=j+re+ct,ct=0),$.push({l:j,an:j,add:we,n:q,anIndexes:[],val:J,line:R,animatorJustifyOffset:0}),ye==2){if(we+=j,J===""||J===" "||P===_-1){for((J===""||J===" ")&&(we-=j);ke<=P;)$[ke].an=we,$[ke].ind=me,$[ke].extra=j,ke+=1;me+=1,we=0}}else if(ye==3){if(we+=j,J===""||P===_-1){for(J===""&&(we-=j);ke<=P;)$[ke].an=we,$[ke].ind=me,$[ke].extra=j,ke+=1;we=0,me+=1}}else $[me].ind=me,$[me].extra=0,me+=1;if(c.l=$,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,fe,X;W=$e.length;var ge,je,Oe=[];for(de=0;de<W;de+=1){for(fe=$e[de],fe.a.sc&&(c.strokeColorAnim=!0),fe.a.sw&&(c.strokeWidthAnim=!0),(fe.a.fc||fe.a.fh||fe.a.fs||fe.a.fb)&&(c.fillColorAnim=!0),je=0,ge=fe.s.b,P=0;P<_;P+=1)X=$[P],X.anIndexes[de]=je,(ge==1&&X.val!==""||ge==2&&X.val!==""&&X.val!==" "||ge==3&&(X.n||X.val==" "||P==_-1)||ge==4&&(X.n||P==_-1))&&(fe.s.rn===1&&Oe.push(je),je+=1);v.a[de].s.totalChars=je;var lt=-1,At;if(fe.s.rn===1)for(P=0;P<_;P+=1)X=$[P],lt!=X.anIndexes[de]&&(lt=X.anIndexes[de],At=Oe.splice(Math.floor(Math.random()*Oe.length),1)[0]),X.anIndexes[de]=At}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Y.ascent*c.finalSize/100},dr.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)},dr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},dr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},dr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var yg=function(){var c=Math.max,p=Math.min,v=Math.floor;function $(_,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=st.getProp(_,q.s||{k:0},0,0,this),"e"in q?this.e=st.getProp(_,q.e,0,0,this):this.e={v:100},this.o=st.getProp(_,q.o||{k:0},0,0,this),this.xe=st.getProp(_,q.xe||{k:0},0,0,this),this.ne=st.getProp(_,q.ne||{k:0},0,0,this),this.sm=st.getProp(_,q.sm||{k:100},0,0,this),this.a=st.getProp(_,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}$.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var me=0,J=0,ye=1,we=1;this.ne.v>0?me=this.ne.v/100:J=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:we=1+this.xe.v/100;var ke=ma.getBezierEasing(me,J,ye,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 de=G-Q;q=p(c(0,q+.5-Q),G-Q);var W=-de/2+q,Y=de/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 j=.5-L*.5;R<j?R=0:(R=(R-j)/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,ye=this.s.v/me+J,we=this.e.v/me+J;if(ye>we){var ke=ye;ye=we,we=ke}this.finalS=ye,this.finalE=we}},Fe([dn],$);function P(_,q,me){return new $(_,q)}return{getTextSelectorProp:P}}();function bg(c,p,v){var $={propType:!1},P=st.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,en,v):$,rx:_.rx?P(c,_.rx,0,en,v):$,ry:_.ry?P(c,_.ry,0,en,v):$,sk:_.sk?P(c,_.sk,0,en,v):$,sa:_.sa?P(c,_.sa,0,en,v):$,s:_.s?P(c,_.s,1,.01,v):$,a:_.a?P(c,_.a,1,0,v):$,o:_.o?P(c,_.o,0,.01,v):$,p:_.p?P(c,_.p,1,0,v):$,sw:_.sw?P(c,_.sw,0,0,v):$,sc:_.sc?P(c,_.sc,1,0,v):$,fc:_.fc?P(c,_.fc,1,0,v):$,fh:_.fh?P(c,_.fh,0,0,v):$,fs:_.fs?P(c,_.fs,0,.01,v):$,fb:_.fb?P(c,_.fb,0,.01,v):$,t:_.t?P(c,_.t,0,0,v):$},this.s=yg.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=Ge(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,$=st.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new bg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:$(this._elem,this._textData.p.a,0,0,this),f:$(this._elem,this._textData.p.f,0,0,this),l:$(this._elem,this._textData.p.l,0,0,this),r:$(this._elem,this._textData.p.r,0,0,this),p:$(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=$(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,$=this._animatorsData,P=this._textData,_=this.mHelper,q=this._renderType,me=this.renderedLetters.length,J,ye,we,ke,R=c.l,Q,G,he,de,W,Y,L,j,H,re,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,de=0,W=!0,re=Q.segments,G<0&&et.v.c)for(Q.tLength<Math.abs(G)&&(G=-Math.abs(G)%Q.tLength),L=re.length-1,H=re[L].points,Y=H.length-1;G<0;)G+=H[Y].partialLength,Y-=1,Y<0&&(L-=1,H=re[L].points,Y=H.length-1);H=re[L].points,j=H[Y-1],he=H[Y],oe=he.partialLength}ke=R.length,J=0,ye=0;var ct=c.finalSize*1.2*.714,Ve=!0,$e,fe,X,ge,je;ge=$.length;var Oe,lt=-1,At,Ct,$n,Wt=G,hr=L,Jn=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,Us=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].a,$e.t.propType&&(hs&&c.j===2&&(xn+=$e.t.v*Us),fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),Oe.length?Zt+=$e.t.v*Oe[0]*Us:Zt+=$e.t.v*Oe*Us);hs=!1}for(Zt&&(Zt+=xn);bi<we;)R[bi].animatorJustifyOffset=Zt,bi+=1}for(we=0;we<ke;we+=1){if(_.reset(),Un=1,R[we].n)J=0,ye+=c.yOffset,ye+=Ve?1:0,G=Wt,Ve=!1,this._hasMaskedPath&&(L=hr,Y=Jn,H=re[L].points,j=H[Y-1],he=H[Y],oe=he.partialLength,de=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].a,$e.p.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),Oe.length?$i+=$e.p.v[0]*Oe[0]:$i+=$e.p.v[0]*Oe),$e.a.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.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;)de+oe>=G+$i||!H?(Ie=(G+$i-de)/he.partialLength,Ct=j.point[0]+(he.point[0]-j.point[0])*Ie,$n=j.point[1]+(he.point[1]-j.point[1])*Ie,_.translate(-v[0]*R[we].an*.005,-(v[1]*ct)*.01),W=!1):H&&(de+=he.partialLength,Y+=1,Y>=H.length&&(Y=0,L+=1,re[L]?H=re[L].points:et.v.c?(Y=0,L=0,H=re[L].points):(de-=he.partialLength,H=null)),H&&(j=he,he=H[Y],oe=he.partialLength));At=R[we].an/2-R[we].add,_.translate(-At,0,0)}else At=R[we].an/2-R[we].add,_.translate(-At,0,0),_.translate(-v[0]*R[we].an*.005,-v[1]*ct*.01,0);for(X=0;X<ge;X+=1)$e=$[X].a,$e.t.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.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].a,$e.a.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),Oe.length?_.translate(-$e.a.v[0]*Oe[0],-$e.a.v[1]*Oe[1],$e.a.v[2]*Oe[2]):_.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].a,$e.s.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),Oe.length?_.scale(1+($e.s.v[0]-1)*Oe[0],1+($e.s.v[1]-1)*Oe[1],1):_.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].a,fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),$e.sk.propType&&(Oe.length?_.skewFromAxis(-$e.sk.v*Oe[0],$e.sa.v*Oe[1]):_.skewFromAxis(-$e.sk.v*Oe,$e.sa.v*Oe)),$e.r.propType&&(Oe.length?_.rotateZ(-$e.r.v*Oe[2]):_.rotateZ(-$e.r.v*Oe)),$e.ry.propType&&(Oe.length?_.rotateY($e.ry.v*Oe[1]):_.rotateY($e.ry.v*Oe)),$e.rx.propType&&(Oe.length?_.rotateX($e.rx.v*Oe[0]):_.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].a,$e.p.propType&&(fe=$[X].s,Oe=fe.getMult(R[we].anIndexes[X],P.a[X].s.totalChars),this._hasMaskedPath?Oe.length?_.translate(0,$e.p.v[1]*Oe[0],-$e.p.v[2]*Oe[1]):_.translate(0,$e.p.v[1]*Oe,-$e.p.v[2]*Oe):Oe.length?_.translate($e.p.v[0]*Oe[0],$e.p.v[1]*Oe[1],-$e.p.v[2]*Oe[2]):_.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(_.translate(0,-c.ls),_.translate(0,v[1]*ct*.01+ye,0),this._pathData.p.v){nt=(he.point[1]-j.point[1])/(he.point[0]-j.point[0]);var ps=Math.atan(nt)*180/Math.PI;he.point[0]<j.point[0]&&(ps+=180),_.rotate(-ps*Math.PI/180)}_.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(_.translate(J,ye,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line]),0,0);break;case 2:_.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(At,0,0),_.translate(v[0]*R[we].an*.005,v[1]*ct*.01,0),J+=R[we].l+c.tr*.001*c.finalSize}q==="html"?yi=_.toCSS():q==="svg"?yi=_.to2dCSS():fs=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],ds=Un}me<=we?(je=new bl(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 dr(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,$=p.length,P,_="";for(v=0;v<$;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Dr(P,P.i.length,!0,c));return _},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,$,P){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate($,P,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 bl,vi.prototype.destroy=function(){};var $g={shapes:[]};function Ar(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Fe([us,Da,Jo,Ns,Vn,Qo,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,$=[],P="";p<v;)c[p]==="\r"||c[p]===""?($.push(P),P=""):P+=c[p],p+=1;return $.push(P),$},Ar.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var $=v.it[v.it.length-1];$.s&&($.s.k[0]=p,$.s.k[1]=p)}}return c},Ar.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ge(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 $=this.globalData.fontManager.getFontByName(v.f);if($.fClass)this.layerElement.setAttribute("class",$.fClass);else{this.layerElement.setAttribute("font-family",$.fFamily);var P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],me=!!this.globalData.fontManager.chars;p=q.length;var J,ye=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 de=this.textContainer,W="start";switch(v.j){case 1:W="end";break;case 2:W="middle";break;default:W="start";break}de.setAttribute("text-anchor",W),de.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",de.appendChild(J),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=J,Q+=v.finalLineHeight;this.layerElement.appendChild(de)}else{var L=this.textSpans.length,j;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!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(ye.reset(),ke&&(q[c].n&&(R=-he,Q+=v.yOffset,Q+=G?1:0,G=!1),this.applyTextPropertiesToMatrix(v,ye,q[c].line,R,Q),R+=q[c].l||0,R+=he),me){j=this.globalData.fontManager.getCharData(v.finalText[c],$.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var re;if(j.t===1)re=new Qr(j.data,this.globalData,this);else{var oe=$g;j.data&&j.data.shapes&&(oe=this.buildShapeData(j.data,v.finalSize)),re=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=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[c].childSpan.appendChild(re.layerElement),j.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else ke&&J.setAttribute("transform","translate("+ye.props[12]+","+ye.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,$=this.textProperty.currentData.l;p=$.length;var P,_,q;for(c=0;c<p;c+=1)$[c].n||(P=v[c],_=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function nf(c,p,v){this.initElement(c,p,v)}Fe([eu],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 Ks(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Ks.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Ks.prototype.renderFrame=function(){},Ks.prototype.getBaseElement=function(){return null},Ks.prototype.destroy=function(){},Ks.prototype.sourceRectAtTime=function(){},Ks.prototype.hide=function(){},Fe([us,Da,Ns,Vn],Ks);function Bn(){}Fe([fr],Bn),Bn.prototype.createNull=function(c){return new Ks(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 eu(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"),$=bt("rect");$.setAttribute("width",c.w),$.setAttribute("height",c.h),$.setAttribute("x",0),$.setAttribute("y",0);var P=xt();v.setAttribute("id",P),v.appendChild($),this.layerElement.setAttribute("clip-path","url("+De()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ge(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 $="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if($===-1)return;if(!this.elements[$]||this.elements[$]===!0)this.buildItem($),this.addPendingElement(v);else{var P=p[$],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},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 $="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,P=this.elements[$],_=P.getMatte(this.layers[p].tt);c.setMatte(_);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 $=0,P;$<p;)this.elements[$]&&this.elements[$]!==!0&&this.elements[$].getBaseElement()&&(P=this.elements[$].getBaseElement()),$+=1;P?this.layerElement.insertBefore(v,P):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,Ns,Vn,Qo],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,$=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=$-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?Ge(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,Jo],Qr),Qr.prototype.createComp=function(c){return new Qr(c,this.globalData,this)};function oo(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=bt("svg");var v="";if(p&&p.title){var $=bt("title"),P=xt();$.setAttribute("id",P),$.textContent=p.title,this.svgElement.appendChild($),v+=P}if(p&&p.description){var _=bt("desc"),q=xt();_.setAttribute("id",q),_.textContent=p.description,this.svgElement.appendChild(_),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],oo),oo.prototype.createComp=function(c){return new Qr(c,this.globalData,this)},nl("svg",oo),Or.registerModifier("tm",Ir),Or.registerModifier("pb",Os),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 U=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(U!=null){var O,V,ne,K,le=[],ue=!0,De=!1;try{if(ne=(U=U.call(z)).next,ee!==0)for(;!(ue=(O=ne.call(U)).done)&&(le.push(O.value),le.length!==ee);ue=!0);}catch(Pe){De=!0,V=Pe}finally{try{if(!ue&&U.return!=null&&(K=U.return(),Object(K)!==K))return}finally{if(De)throw V}}return le}}function h(z,ee){var U=Object.keys(z);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(z);ee&&(O=O.filter(function(V){return Object.getOwnPropertyDescriptor(z,V).enumerable})),U.push.apply(U,O)}return U}function m(z){for(var ee=1;ee<arguments.length;ee++){var U=arguments[ee]!=null?arguments[ee]:{};ee%2?h(Object(U),!0).forEach(function(O){g(z,O,U[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(U)):h(Object(U)).forEach(function(O){Object.defineProperty(z,O,Object.getOwnPropertyDescriptor(U,O))})}return z}function g(z,ee,U){return ee=M(ee),ee in z?Object.defineProperty(z,ee,{value:U,enumerable:!0,configurable:!0,writable:!0}):z[ee]=U,z}function b(z,ee){if(z==null)return{};var U={},O=Object.keys(z),V,ne;for(ne=0;ne<O.length;ne++)V=O[ne],!(ee.indexOf(V)>=0)&&(U[V]=z[V]);return U}function w(z,ee){if(z==null)return{};var U=b(z,ee),O,V;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(z);for(V=0;V<ne.length;V++)O=ne[V],!(ee.indexOf(O)>=0)&&Object.prototype.propertyIsEnumerable.call(z,O)&&(U[O]=z[O])}return U}function x(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 U=Object.prototype.toString.call(z).slice(8,-1);if(U==="Object"&&z.constructor&&(U=z.constructor.name),U==="Map"||U==="Set")return Array.from(z);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return E(z,ee)}}function E(z,ee){(ee==null||ee>z.length)&&(ee=z.length);for(var U=0,O=new Array(ee);U<ee;U++)O[U]=z[U];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 U=z[Symbol.toPrimitive];if(U!==void 0){var O=U.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 M(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"],N=function(ee,U){var O=ee.animationData,V=ee.loop,ne=ee.autoplay,K=ee.initialSegment,le=ee.onComplete,ue=ee.onLoopComplete,De=ee.onEnterFrame,Pe=ee.onSegmentStart,Fe=ee.onConfigReady,He=ee.onDataReady,Xe=ee.onDataFailed,Be=ee.onLoadedImages,Ge=ee.onDOMLoaded,Me=ee.onDestroy;ee.lottieRef,ee.renderer,ee.name,ee.assetsPath,ee.rendererSettings;var Le=w(ee,F),Ae=r.useState(!1),Ye=x(Ae,2),ht=Ye[0],Gt=Ye[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()},be=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=!!ne)},[ne]),r.useEffect(function(){if($t.current){if(!K){$t.current.resetSegments(!0);return}!Array.isArray(K)||!K.length||(($t.current.currentRawFrame<K[0]||$t.current.currentRawFrame>K[1])&&($t.current.currentRawFrame=K[0]),$t.current.setSegment(K[0],K[1]))}},[K]),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:He},{name:"data_failed",handler:Xe},{name:"loaded_images",handler:Be},{name:"DOMLoaded",handler:Ge},{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,He,Xe,Be,Ge,Me]);var Cr=s.default.createElement("div",m({style:U,ref:_t},Le));return{View:Cr,play:Zr,stop:en,pause:be,setSpeed:Se,goToAndStop:Je,goToAndPlay:_e,setDirection:tt,playSegments:Qe,setSubframe:gt,getDuration:Rt,destroy:xt,animationContainerRef:_t,animationLoaded:ht,animationItem:$t.current}};function te(z){var ee=z.getBoundingClientRect(),U=ee.top,O=ee.height,V=window.innerHeight-U,ne=window.innerHeight+O;return V/ne}function ce(z,ee,U){var O=z.getBoundingClientRect(),V=O.top,ne=O.left,K=O.width,le=O.height,ue=(ee-ne)/K,De=(U-V)/le;return{x:ue,y:De}}var ae=function(ee){var U=ee.wrapperRef,O=ee.animationItem,V=ee.mode,ne=ee.actions;r.useEffect(function(){var K=U.current;if(!(!K||!O||!ne.length)){O.stop();var le=function(){var Pe=null,Fe=function(){var Xe=te(K),Be=ne.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 Ge=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(Ge-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,Ge){var Me=Be,Le=Ge;if(Me!==-1&&Le!==-1){var Ae=ce(K,Me,Le);Me=Ae.x,Le=Ae.y}var Ye=ne.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(Ye){if(Ye.type==="seek"&&Ye.position&&Array.isArray(Ye.position.x)&&Array.isArray(Ye.position.y)&&Ye.frames.length===2){var ht=(Me-Ye.position.x[0])/(Ye.position.x[1]-Ye.position.x[0]),Gt=(Le-Ye.position.y[0])/(Ye.position.y[1]-Ye.position.y[0]);O.playSegments(Ye.frames,!0),O.goToAndStop(Math.ceil((ht+Gt)/2*(Ye.frames[1]-Ye.frames[0])),!0)}Ye.type==="loop"&&O.playSegments(Ye.frames,!0),Ye.type==="play"&&(O.isPaused&&O.resetSegments(!1),O.playSegments(Ye.frames)),Ye.type==="stop"&&O.goToAndStop(Ye.frames[0],!0)}},Fe=function(Be){Pe(Be.clientX,Be.clientY)},He=function(){Pe(-1,-1)};return K.addEventListener("mousemove",Fe),K.addEventListener("mouseout",He),function(){K.removeEventListener("mousemove",Fe),K.removeEventListener("mouseout",He)}};switch(V){case"scroll":return le();case"cursor":return ue()}}},[V,O])},I=function(ee){var U=ee.actions,O=ee.mode,V=ee.lottieObj,ne=V.animationItem,K=V.View,le=V.animationContainerRef;return ae({actions:U,animationItem:ne,mode:O,wrapperRef:le}),K},xe=["style","interactivity"],Ce=function(ee){var U,O,V,ne=ee.style,K=ee.interactivity,le=w(ee,xe),ue=N(le,ne),De=ue.View,Pe=ue.play,Fe=ue.stop,He=ue.pause,Xe=ue.setSpeed,Be=ue.goToAndStop,Ge=ue.goToAndPlay,Me=ue.setDirection,Le=ue.playSegments,Ae=ue.setSubframe,Ye=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:He,setSpeed:Xe,goToAndPlay:Ge,goToAndStop:Be,setDirection:Me,playSegments:Le,setSubframe:Ae,getDuration:Ye,destroy:ht,animationContainerRef:Gt,animationLoaded:$t,animationItem:_t})},[(U=ee.lottieRef)===null||U===void 0?void 0:U.current]),I({lottieObj:{View:De,play:Pe,stop:Fe,pause:He,setSpeed:Xe,goToAndStop:Be,goToAndPlay:Ge,setDirection:Me,playSegments:Le,setSubframe:Ae,getDuration:Ye,destroy:ht,animationContainerRef:Gt,animationLoaded:$t,animationItem:_t},actions:(O=K==null?void 0:K.actions)!==null&&O!==void 0?O:[],mode:(V=K==null?void 0:K.mode)!==null&&V!==void 0?V:"scroll"})};n.LottiePlayer=l,n.default=Ce,n.useLottie=N,n.useLottieInteractivity=I,Object.defineProperty(n,"__esModule",{value:!0})})}(Kf,Kf.exports)),Kf.exports}var Tse=Ase();const Pse=fi(Tse),_se=T.createContext({});function Mse(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const K$=typeof window<"u",Fse=K$?T.useLayoutEffect:T.useEffect,KO=T.createContext(null),UO=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Rse(e){return typeof e=="object"&&e!==null}function zO(e){return Rse(e)&&"offsetHeight"in e}const Jh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kse(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 Ja={},Ose=40;function qO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Jh.reduce((S,k)=>(S[k]=kse(s),S),{}),{setup:o,read:l,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=a,x=()=>{const S=Ja.useManualTiming?i.timestamp:performance.now();n=!1,Ja.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Ose),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(x))},D=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:Jh.reduce((S,k)=>{const M=a[k];return S[k]=(F,N=!1,te=!1)=>(n||D(),M.schedule(F,N,te)),S},{}),cancel:S=>{for(let k=0;k<Jh.length;k++)a[Jh[k]].cancel(S)},state:i,steps:a}}const Fc=e=>e,{schedule:Ps,cancel:b4,state:fm}=qO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fc,!0),U$=T.createContext({strict:!1}),s2={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 s2)gc[e]={isEnabled:t=>s2[e].some(n=>!!t[n])};function a2(e){for(const t in e)gc[t]={...gc[t],...e[t]}}function Ise({children:e,features:t,strict:n=!1}){const[,r]=T.useState(!T1(t)),i=T.useRef(void 0);if(!T1(t)){const{renderer:s,...a}=t;i.current=s,a2(a)}return T.useEffect(()=>{T1(t)&&t().then(({renderer:s,...a})=>{a2(a),i.current=s,r(!0)})},[]),la.jsx(U$.Provider,{value:{renderer:i.current,strict:n},children:e})}function T1(e){return typeof e=="function"}const Lse=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 dm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Lse.has(e)}let WO=e=>!dm(e);function Vse(e){e&&(WO=t=>t.startsWith("on")?!dm(t):e(t))}try{Vse(require("@emotion/is-prop-valid").default)}catch{}function Bse(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(WO(i)||n===!0&&dm(i)||!t&&!dm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const o2=new Set;function z$(e,t,n){e||o2.has(t)||(console.warn(t),o2.add(t))}function Nse(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&z$(!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 lg=T.createContext({});function cg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $d(e){return typeof e=="string"||Array.isArray(e)}const q$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],W$=["initial",...q$];function fg(e){return cg(e.animate)||W$.some(t=>$d(e[t]))}function HO(e){return!!(fg(e)||e.variants)}function jse(e,t){if(fg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$d(n)?n:void 0,animate:$d(r)?r:void 0}}return e.inherit!==!1?t:{}}function Kse(e){const{initial:t,animate:n}=jse(e,T.useContext(lg));return T.useMemo(()=>({initial:t,animate:n}),[u2(t),u2(n)])}function u2(e){return Array.isArray(e)?e.join(" "):e}const Use=Symbol.for("motionComponentSymbol");function GO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zse(e,t,n){return T.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 H$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qse="framerAppearId",YO="data-"+H$(qse),Wse=T.createContext({}),{schedule:Hse}=qO(queueMicrotask,!1);function Gse(e,t,n,r,i){var x,D;const{visualElement:s}=T.useContext(lg),a=T.useContext(U$),o=T.useContext(KO),l=T.useContext(UO).reducedMotion,d=T.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=T.useContext(Wse);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&Yse(d.current,n,i,m);const g=T.useRef(!1);T.useInsertionEffect(()=>{h&&g.current&&h.update(n,o)});const b=n[YO],w=T.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((D=window.MotionHasOptimisedAnimation)==null?void 0:D.call(window,b)));return Fse(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Hse.render(h.render),w.current&&h.animationState&&h.animationState.animateChanges())}),T.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 Yse(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 Hd=()=>{},Hu=()=>{};process.env.NODE_ENV!=="production"&&(Hd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Hu=(e,t)=>{if(!e)throw new Error(t)});function Zse({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){function s(o,l){let d;const h={...T.useContext(UO),...o,layoutId:Xse(o)},{isStatic:m}=h,g=Kse(o),b=r(o,m);if(!m&&K$){Jse(h,e);const w=Qse(h);d=w.MeasureLayout,g.visualElement=Gse(i,b,h,t,w.ProjectionNode)}return la.jsxs(lg.Provider,{value:g,children:[d&&g.visualElement?la.jsx(d,{visualElement:g.visualElement,...h}):null,n(i,o,zse(b,g.visualElement,l),b,m,g.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=T.forwardRef(s);return a[Use]=i,a}function Xse({layoutId:e}){const t=T.useContext(_se).id;return t&&e!==void 0?t+"-"+e:e}function Jse(e,t){T.useContext(U$).strict,process.env.NODE_ENV}function Qse(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("--"),eae=XO("var(--"),G$=e=>eae(e)?tae.test(e.split("/*")[0].trim()):!1,tae=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nae={},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)&&(!!nae[e]||e==="opacity")}const eI=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gu=(e,t,n)=>n>t?t:n<e?e:n,Oc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xd={...Oc,transform:e=>Gu(0,1,e)},Qh={...Oc,default:1},l2={...Oc,transform:Math.round},Gd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$o=Gd("deg"),rc=Gd("%"),Tt=Gd("px"),rae=Gd("vh"),iae=Gd("vw"),c2={...rc,parse:e=>rc.parse(e)/100,transform:e=>rc.transform(e*100)},sae={rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scale:Qh,scaleX:Qh,scaleY:Qh,scaleZ:Qh,skew:$o,skewX:$o,skewY:$o,distance:Tt,translateX:Tt,translateY:Tt,translateZ:Tt,x:Tt,y:Tt,z:Tt,perspective:Tt,transformPerspective:Tt,opacity:xd,originX:c2,originY:c2,originZ:Tt},Y$={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,...sae,zIndex:l2,fillOpacity:xd,strokeOpacity:xd,numOctaves:l2},aae={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oae=Rc.length;function uae(e,t,n){let r="",i=!0;for(let s=0;s<oae;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,Y$[a]);if(!l){i=!1;const h=aae[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Z$(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,Y$[l]);l.startsWith("origin")?(o=!0,s[l]=h):r[l]=h}}if(t.transform||(a||n?r.transform=uae(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 X$=()=>({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 lae({transformTemplate:e},t){return T.useMemo(()=>{const n=X$();return Z$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cae(e,t){const n=e.style||{},r={};return tI(r,n,e),Object.assign(r,lae(e,t)),r}function fae(e,t){const n={},r=cae(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 dae={offset:"stroke-dashoffset",array:"stroke-dasharray"},hae={offset:"strokeDashoffset",array:"strokeDasharray"};function pae(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?dae:hae;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(Z$(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&&pae(m,i,s,a,!1)}const rI=()=>({...X$(),attrs:{}}),iI=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mae(e,t,n,r){const i=T.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 gae=["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 J$(e){return typeof e!="string"||e.includes("-")?!1:!!(gae.indexOf(e)>-1||/[A-Z]/u.test(e))}function vae(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(J$(n)?mae:fae)(r,s,a,n),d=Bse(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>qr(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function f2(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Q$(e,t,n,r){if(typeof t=="function"){const[i,s]=f2(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]=f2(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function yae(e){return qr(e)?e.get():e}function bae({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:$ae(n,r,i,e),renderState:t()}}const sI=e=>(t,n)=>{const r=T.useContext(lg),i=T.useContext(KO),s=()=>bae(e,t,r,i);return n?s():Mse(s)};function $ae(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=yae(s[g]);let{initial:a,animate:o}=e;const l=fg(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"&&!cg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=Q$(e,g[b]);if(w){const{transitionEnd:x,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 x)i[E]=x[E]}}}return i}function ex(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 xae={useVisualState:sI({scrapeMotionValuesFromProps:ex,createRenderState:X$})};function aI(e,t,n){const r=ex(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 wae={useVisualState:sI({scrapeMotionValuesFromProps:aI,createRenderState:rI})};function Cae(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...J$(r)?wae:xae,preloadedFeatures:e,useRender:vae(i),createVisualElement:t,Component:r};return Zse(a)}}const Eae=Cae(),Sae=Nse(Eae);function wd(e,t,n){const r=e.getProps();return Q$(r,t,n!==void 0?n:r.custom,e)}const $4=e=>Array.isArray(e);let Ap;function Dae(){Ap=void 0}const Xi={now:()=>(Ap===void 0&&Xi.set(fm.isProcessing||Ja.useManualTiming?fm.timestamp:performance.now()),Ap),set:e=>{Ap=e,queueMicrotask(Dae)}};function Aae(e,t){e.indexOf(t)===-1&&e.push(t)}function Tae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oI{constructor(){this.subscriptions=[]}add(t){return Aae(this.subscriptions,t),()=>Tae(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 d2=30,Pae=e=>!isNaN(parseFloat(e));class _ae{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=Pae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&z$(!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(),Ps.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>d2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,d2);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 hm(e,t){return new _ae(e,t)}function Mae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hm(n))}function Fae(e){return $4(e)?e[e.length-1]||0:e}function Rae(e,t){const n=wd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Fae(s[a]);Mae(e,a,o)}}function kae(e){return!!(qr(e)&&e.add)}function Oae(e,t){const n=e.getValue("willChange");if(kae(n))return n.add(t);if(!n&&Ja.WillChange){const r=new Ja.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Iae(e){return e.props[YO]}const Lae=e=>e!==null;function Vae(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Lae),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Bae={type:"spring",stiffness:500,damping:25,restSpeed:10},Nae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jae={type:"keyframes",duration:.8},Kae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uae=(e,{keyframes:t})=>t.length>2?jae:kc.has(e)?e.startsWith("scale")?Nae(t[1]):Bae:Kae;function zae({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,Ha=e=>e/1e3,Qf=e=>Math.round(e*1e5)/1e5,tx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qae(e){return e==null}const Wae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nx=(e,t)=>n=>!!(typeof n=="string"&&Wae.test(n)&&n.startsWith(e)||t&&!qae(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(tx);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Hae=e=>Gu(0,255,e),P1={...Oc,transform:e=>Math.round(Hae(e))},Au={test:nx("rgb","red"),parse:cI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+P1.transform(e)+", "+P1.transform(t)+", "+P1.transform(n)+", "+Qf(xd.transform(r))+")"};function Gae(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 x4={test:nx("#"),parse:Gae,transform:Au.transform},Wl={test:nx("hsl","hue"),parse:cI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rc.transform(Qf(t))+", "+rc.transform(Qf(n))+", "+Qf(xd.transform(r))+")"},Pr={test:e=>Au.test(e)||x4.test(e)||Wl.test(e),parse:e=>Au.test(e)?Au.parse(e):Wl.test(e)?Wl.parse(e):x4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Au.transform(e):Wl.transform(e)},Yae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Zae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(tx))==null?void 0:t.length)||0)+(((n=e.match(Yae))==null?void 0:n.length)||0)>0}const fI="number",dI="color",Xae="var",Jae="var(",h2="${}",Qae=/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 Cd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(Qae,l=>(Pr.test(l)?(r.color.push(s),i.push(dI),n.push(Pr.parse(l))):l.startsWith(Jae)?(r.var.push(s),i.push(Xae),n.push(l)):(r.number.push(s),i.push(fI),n.push(parseFloat(l))),++s,h2)).split(h2);return{values:n,split:o,indexes:r,types:i}}function hI(e){return Cd(e).values}function pI(e){const{split:t,types:n}=Cd(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 eoe=e=>typeof e=="number"?0:e;function toe(e){const t=hI(e);return pI(e)(t.map(eoe))}const Ic={test:Zae,parse:hI,createTransformer:pI,getAnimatableNone:toe};function _1(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 noe({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=_1(l,o,e+1/3),s=_1(l,o,e),a=_1(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function pm(e,t){return n=>n>0?t:e}const dg=(e,t,n)=>e+(t-e)*n,M1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},roe=[x4,Au,Wl],ioe=e=>roe.find(t=>t.test(e));function p2(e){const t=ioe(e);if(Hd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Wl&&(n=noe(n)),n}const m2=(e,t)=>{const n=p2(e),r=p2(t);if(!n||!r)return pm(e,t);const i={...n};return s=>(i.red=M1(n.red,r.red,s),i.green=M1(n.green,r.green,s),i.blue=M1(n.blue,r.blue,s),i.alpha=dg(n.alpha,r.alpha,s),Au.transform(i))},w4=new Set(["none","hidden"]);function soe(e,t){return w4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}const aoe=(e,t)=>n=>t(e(n)),hg=(...e)=>e.reduce(aoe);function ooe(e,t){return n=>dg(e,t,n)}function rx(e){return typeof e=="number"?ooe:typeof e=="string"?G$(e)?pm:Pr.test(e)?m2:coe:Array.isArray(e)?mI:typeof e=="object"?Pr.test(e)?m2:uoe:pm}function mI(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>rx(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function uoe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rx(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function loe(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 coe=(e,t)=>{const n=Ic.createTransformer(t),r=Cd(e),i=Cd(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?w4.has(e)&&!i.values.length||w4.has(t)&&!r.values.length?soe(e,t):hg(mI(loe(r,i),i.values),n):(Hd(!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.`),pm(e,t))};function gI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dg(e,t,n):rx(e)(e,t)}const foe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ps.update(t,n),stop:()=>b4(t),now:()=>fm.isProcessing?fm.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)})`},mm=2e4;function ix(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mm;)t+=n,r=e.next(t);return t>=mm?1/0:t}function doe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(ix(r),mm);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ha(i)}}const hoe=5;function yI(e,t,n){const r=Math.max(t-hoe,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},F1=.001;function poe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;Hd(e<=ua(Rn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Gu(Rn.minDamping,Rn.maxDamping,a),e=Gu(Rn.minDuration,Rn.maxDuration,Ha(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,b=C4(d,a),w=Math.exp(-m);return F1-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),x=C4(Math.pow(d,2),a);return(-i(d)+F1>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-F1+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const o=5/e,l=goe(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 moe=12;function goe(e,t,n){let r=n;for(let i=1;i<moe;i++)r=r-e(r)/t(r);return r}function C4(e,t){return e*Math.sqrt(1-t*t)}const voe=["duration","bounce"],yoe=["stiffness","damping","mass"];function g2(e,t){return t.some(n=>e[n]!==void 0)}function boe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!g2(e,yoe)&&g2(e,voe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Gu(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=poe(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function gm(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}=boe({...n,velocity:-Ha(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(l*h)),D=a-s,C=Ha(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(x<1){const M=C4(C,x);S=F=>{const N=Math.exp(-x*C*F);return a-N*((w+x*C*D)/M*Math.sin(M*F)+D*Math.cos(M*F))}}else if(x===1)S=M=>a-Math.exp(-C*M)*(D+(w+C*D)*M);else{const M=C*Math.sqrt(x*x-1);S=F=>{const N=Math.exp(-x*C*F),te=Math.min(M*F,300);return a-N*((w+x*C*D)*Math.sinh(te)+M*D*Math.cosh(te))/M}}const k={calculatedDuration:b&&m||null,next:M=>{const F=S(M);if(b)o.done=M>=m;else{let N=M===0?w:0;x<1&&(N=M===0?ua(w):yI(S,M,F));const te=Math.abs(N)<=r,ce=Math.abs(a-F)<=i;o.done=te&&ce}return o.value=o.done?a:F,o},toString:()=>{const M=Math.min(ix(k),mm),F=vI(N=>k.next(M*N).value,M,30);return M+"ms "+F},toTransition:()=>{}};return k}gm.applyToOptions=e=>{const t=doe(e,100,gm);return e.ease=t.ease,e.duration=ua(t.duration),e.type="keyframes",e};function E4({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=te=>o!==void 0&&te<o||l!==void 0&&te>l,w=te=>o===void 0?l:l===void 0||Math.abs(o-te)<Math.abs(l-te)?o:l;let x=n*t;const D=m+x,C=a===void 0?D:a(D);C!==D&&(x=C-m);const E=te=>-x*Math.exp(-te/r),S=te=>C+E(te),k=te=>{const ce=E(te),ae=S(te);g.done=Math.abs(ce)<=d,g.value=g.done?C:ae};let M,F;const N=te=>{b(g.value)&&(M=te,F=gm({keyframes:[g.value,w(g.value)],velocity:yI(S,te,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:te=>{let ce=!1;return!F&&M===void 0&&(ce=!0,k(te),N(te)),M!==void 0&&te>=M?F.next(te-M):(!ce&&k(te),g)}}}const bI=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};function $oe(e,t,n){const r=[],i=n||Ja.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=hg(l,o)}r.push(o)}return r}function xoe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Hu(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=$oe(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(Gu(e[0],e[s-1],h)):d}function woe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bI(0,t,r);e.push(dg(n,1,i))}}function Coe(e){const t=[0];return woe(t,e.length-1),t}function Eoe(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,Soe=1e-7,Doe=12;function Aoe(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)>Soe&&++o<Doe);return a}function Yd(e,t,n,r){if(e===t&&n===r)return Fc;const i=s=>Aoe(s,0,1,e,n);return s=>s===0||s===1?s:$I(i(s),t,r)}const Toe=Yd(.42,0,1,1),Poe=Yd(0,0,.58,1),xI=Yd(.42,0,.58,1),_oe=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=Yd(.33,1.53,.69,.99),sx=CI(EI),SI=wI(sx),DI=e=>(e*=2)<1?.5*sx(e):.5*(2-Math.pow(2,-10*(e-1))),ax=e=>1-Math.sin(Math.acos(e)),Moe=CI(ax),AI=wI(ax),TI=e=>Array.isArray(e)&&typeof e[0]=="number",v2={linear:Fc,easeIn:Toe,easeInOut:xI,easeOut:Poe,circIn:ax,circInOut:AI,circOut:Moe,backIn:sx,backInOut:SI,backOut:EI,anticipate:DI},Foe=e=>typeof e=="string",y2=e=>{if(TI(e)){Hu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Yd(t,n,r,i)}else if(Foe(e))return Hu(v2[e]!==void 0,`Invalid easing type '${e}'`),v2[e];return e};function Roe(e,t){return e.map(()=>t||xI).splice(0,e.length-1)}function Hl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_oe(r)?r.map(y2):y2(r),s={done:!1,value:t[0]},a=Eoe(n&&n.length===t.length?n:Coe(t),e),o=xoe(a,t,{ease:Array.isArray(i)?i:Roe(t,i)});return{calculatedDuration:e,next:l=>(s.value=o(l),s.done=l>=e,s)}}const koe=e=>e!==null;function ox(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(koe),o=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const Ooe={decay:E4,inertia:E4,tween:Hl,keyframes:Hl,spring:gm};function PI(e){typeof e.type=="string"&&(e.type=Ooe[e.type])}class ux{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 Ioe=e=>e/100;class lx extends ux{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=Hl,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:o}=t;const l=n||Hl;process.env.NODE_ENV!=="production"&&l!==Hl&&Hu(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`),l!==Hl&&typeof o[0]!="number"&&(this.mixKeyframes=hg(Ioe,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=ix(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:x,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 te=Math.min(this.currentTime,i)/o;let ce=Math.floor(te),ae=te%1;!ae&&te>=1&&(ae=1),ae===1&&ce--,ce=Math.min(ce,m+1),!!(ce%2)&&(g==="reverse"?(ae=1-ae,b&&(ae-=b/o)):g==="mirror"&&(k=a)),S=Gu(0,1,ae)*o}const M=E?{done:!1,value:h[0]}:k.next(S);s&&(M.value=s(M.value));let{done:F}=M;!E&&l!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return N&&w!==E4&&(M.value=ox(h,this.options,D,this.speed)),x&&x(M.value),N&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return Ha(this.calculatedDuration)}get time(){return Ha(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=Ha(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=foe,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 Loe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Tu=e=>e*180/Math.PI,S4=e=>{const t=Tu(Math.atan2(e[1],e[0]));return D4(t)},Voe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:S4,rotateZ:S4,skewX:e=>Tu(Math.atan(e[1])),skewY:e=>Tu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},D4=e=>(e=e%360,e<0&&(e+=360),e),b2=S4,$2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),x2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Boe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$2,scaleY:x2,scale:e=>($2(e)+x2(e))/2,rotateX:e=>D4(Tu(Math.atan2(e[6],e[5]))),rotateY:e=>D4(Tu(Math.atan2(-e[2],e[0]))),rotateZ:b2,rotate:b2,skewX:e=>Tu(Math.atan(e[4])),skewY:e=>Tu(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 T4(e,t){if(!e||e==="none")return A4(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Boe,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Voe,i=o}if(!i)return A4(t);const s=r[t],a=i[1].split(",").map(joe);return typeof s=="function"?s(a):a[s]}const Noe=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return T4(n,t)};function joe(e){return parseFloat(e.trim())}const w2=e=>e===Oc||e===Tt,Koe=new Set(["x","y","z"]),Uoe=Rc.filter(e=>!Koe.has(e));function zoe(e){const t=[];return Uoe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const 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})=>T4(t,"x"),y:(e,{transform:t})=>T4(t,"y")};ku.translateX=ku.x;ku.translateY=ku.y;const Ou=new Set;let P4=!1,_4=!1,M4=!1;function _I(){if(_4){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=zoe(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)})}_4=!1,P4=!1,Ou.forEach(e=>e.complete(M4)),Ou.clear()}function MI(){Ou.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_4=!0)})}function qoe(){M4=!0,MI(),_I(),M4=!1}class cx{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),P4||(P4=!0,Ps.read(MI),Ps.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])}Loe(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 Woe=e=>e.startsWith("--");function Hoe(e,t,n){Woe(t)?e.style.setProperty(t,n):e.style[t]=n}function fx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Goe=fx(()=>window.ScrollTimeline!==void 0),Yoe={};function Zoe(e,t){const n=fx(e);return()=>Yoe[t]??n()}const FI=Zoe(()=>{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})`,C2={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)||C2.easeOut):C2[e]}function Xoe(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 Joe({type:e,...t}){return kI(e)&&FI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Qoe extends ux{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,Hu(typeof t.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);const d=Joe(t);this.animation=Xoe(n,r,i,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const h=ox(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(h):Hoe(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 Ha(Number(t))}get time(){return Ha(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&&Goe()?(this.animation.timeline=t,Fc):n(this)}}const OI={anticipate:DI,backInOut:SI,circInOut:AI};function eue(e){return e in OI}function tue(e){typeof e.ease=="string"&&eue(e.ease)&&(e.ease=OI[e.ease])}const E2=10;class nue extends Qoe{constructor(t){tue(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 lx({...a,autoplay:!1}),l=ua(this.finishedTime??this.time);n.setWithVelocity(o.sample(l-E2).value,o.sample(l).value,E2),o.stop()}}const S2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ic.test(e)||e==="0")&&!e.startsWith("url("));function rue(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 iue(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=S2(i,t),o=S2(s,t);return Hd(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:rue(e)||(n==="spring"||kI(n))&&r}const sue=new Set(["opacity","clipPath","filter","transform"]),aue=fx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function oue(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 aue()&&n&&sue.has(n)&&(n!=="transform"||!l)&&!o&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const uue=40;class lue extends ux{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 x,D;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.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)||cx;this.keyframeResolver=new b(o,(x,D,C)=>this.onKeyframesResolved(x,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(),iue(t,s,a,o)||((Ja.instantAnimations||!l)&&(h==null||h(ox(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>uue?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&oue(g)?new nue({...g,element:g.motionValue.owner.current}):new lx(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(),qoe()),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 cue=(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};zae(o)||Object.assign(h,Uae(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)),(Ja.instantAnimations||Ja.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!o.type&&!o.ease,m&&!s&&t.get()!==void 0){const g=Vae(h.keyframes,o);if(g!==void 0){Ps.update(()=>{h.onUpdate(g),h.onComplete()});return}}return o.isSync?new lx(h):new lue(h)},II=new Set(["width","height","top","left","right","bottom",...Rc]);function fue({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&&fue(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 x=!1;if(window.MotionHandoffAnimation){const C=Iae(e);if(C){const E=window.MotionHandoffAnimation(C,h,Ps);E!==null&&(b.startTime=E,x=!0)}}Oae(e,h),m.start(cue(h,m,g,e.shouldReduceMotion&&II.has(h)?{type:!1}:b,e,x));const D=m.animation;D&&l.push(D)}return a&&Promise.all(l).then(()=>{Ps.update(()=>{a&&Rae(e,a)})}),l}function F4(e,t,n={}){var l;const r=wd(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 due(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 due(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(hue).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(F4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function hue(e,t){return e.sortNodePosition(t)}function pue(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>F4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=F4(e,t,n);else{const i=typeof t=="function"?wd(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 mue=W$.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<mue;n++){const r=W$[n],i=e.props[r];($d(i)||i===!1)&&(t[r]=i)}return t}const gue=[...q$].reverse(),vue=q$.length;function yue(e){return t=>Promise.all(t.map(({animation:n,options:r})=>pue(e,n,r)))}function bue(e){let t=yue(e),n=D2(),r=!0;const i=l=>(d,h)=>{var g;const m=wd(e,h,l==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...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<vue;D++){const C=gue[D],E=n[C],S=d[C]!==void 0?d[C]:h[C],k=$d(S),M=C===l?E.isActive:null;M===!1&&(w=D);let F=S===h[C]&&S!==d[C]&&k;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&M===null||!S&&!E.prevProp||cg(S)||typeof S=="boolean")continue;const N=$ue(E.prevProp,S);let te=N||C===l&&E.isActive&&!F&&k||D>w&&k,ce=!1;const ae=Array.isArray(S)?S:[S];let I=ae.reduce(i(C),{});M===!1&&(I={});const{prevResolvedValues:xe={}}=E,Ce={...xe,...I},z=O=>{te=!0,g.has(O)&&(ce=!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],ne=xe[O];if(b.hasOwnProperty(O))continue;let K=!1;$4(V)&&$4(ne)?K=!VI(V,ne):K=V!==ne,K?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&&(te=!1),te&&(!(F&&N)||ce)&&m.push(...ae.map(O=>({animation:O,options:{type:C}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const C=wd(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 x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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=D2(),r=!0}}}function $ue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!VI(t,e):!1}function pu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function D2(){return{animate:pu(!0),whileInView:pu(),whileHover:pu(),whileTap:pu(),whileDrag:pu(),whileFocus:pu(),exit:pu()}}class Lc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class xue extends Lc{constructor(t){super(t),t.animationState||(t.animationState=bue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();cg(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 wue=0;class Cue extends Lc{constructor(){super(...arguments),this.id=wue++}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 Eue={animation:{Feature:xue},exit:{Feature:Cue}};function A2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Sue=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 Due({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aue(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 T2=()=>({min:0,max:0}),jI=()=>({x:T2(),y:T2()});function Tue(e,t){return Due(Aue(e.getBoundingClientRect(),t))}const Pue={y:!1};function _ue(){return Pue.y}function Mue(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=Mue(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function P2(e){return!(e.pointerType==="touch"||_ue())}function Fue(e,t,n={}){const[r,i,s]=KI(e,n),a=o=>{if(!P2(o))return;const{target:l}=o,d=t(l,o);if(typeof d!="function"||!l)return;const h=m=>{P2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(o=>{o.addEventListener("pointerenter",a,i)}),s}function _2(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&&Ps.postRender(()=>s(t,NI(t)))}class Rue extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=Fue(t,(n,r)=>(_2(this.node,r,"Start"),i=>_2(this.node,i,"End"))))}unmount(){}}class kue 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=hg(A2(this.node.current,"focus",()=>this.onFocus()),A2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const UI=(e,t)=>t?e===t?!0:UI(e,t.parentElement):!1,Oue=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Iue(e){return Oue.has(e.tagName)||e.tabIndex!==-1}const Tp=new WeakSet;function M2(e){return t=>{t.key==="Enter"&&e(t)}}function R1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Lue=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=M2(()=>{if(Tp.has(n))return;R1(n,"down");const i=M2(()=>{R1(n,"up")}),s=()=>R1(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 F2(e){return Sue(e)&&!0}function Vue(e,t,n={}){const[r,i,s]=KI(e,n),a=o=>{const l=o.currentTarget;if(!F2(o))return;Tp.add(l);const d=t(l,o),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Tp.has(l)&&Tp.delete(l),F2(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=>Lue(d,i)),!Iue(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),s}function R2(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&&Ps.postRender(()=>s(t,NI(t)))}class Bue extends Lc{mount(){const{current:t}=this.node;t&&(this.unmount=Vue(t,(n,r)=>(R2(this.node,r,"Start"),(i,{success:s})=>R2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const R4=new WeakMap,k1=new WeakMap,Nue=e=>{const t=R4.get(e.target);t&&t(e)},jue=e=>{e.forEach(Nue)};function Kue({root:e,...t}){const n=e||document;k1.has(n)||k1.set(n,{});const r=k1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jue,{root:e,...t})),r[i]}function Uue(e,t,n){const r=Kue(t);return R4.set(e,n),r.observe(e),()=>{R4.delete(e),r.unobserve(e)}}const zue={some:0,all:1};class que 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:zue[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 Uue(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(Wue(t,n))&&this.startObserver()}unmount(){}}function Wue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Hue={inView:{Feature:que},tap:{Feature:Bue},focus:{Feature:kue},hover:{Feature:Rue}},k4={current:null},zI={current:!1};function Gue(){if(zI.current=!0,!!K$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>k4.current=e.matches;e.addListener(t),t()}else k4.current=!1}const Yue=new WeakMap;function Zue(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,hm(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,hm(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),Xue={test:e=>e==="auto",parse:e=>e},HI=e=>t=>t.test(e),GI=[Oc,Tt,rc,$o,iae,rae,Xue],k2=e=>GI.find(HI(e)),Jue=[...GI,Pr,Ic],Que=e=>Jue.find(HI(e)),ele=new Set(["brightness","contrast","saturate","opacity"]);function tle(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(tx)||[];if(!r)return e;const i=n.replace(r,"");let s=ele.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const nle=/\b([a-z-]*)\(.*?\)/gu,O4={...Ic,getAnimatableNone:e=>{const t=e.match(nle);return t?t.map(tle).join(" "):e}},rle={...Y$,color:Pr,backgroundColor:Pr,outlineColor:Pr,fill:Pr,stroke:Pr,borderColor:Pr,borderTopColor:Pr,borderRightColor:Pr,borderBottomColor:Pr,borderLeftColor:Pr,filter:O4,WebkitFilter:O4},YI=e=>rle[e];function ZI(e,t){let n=YI(e);return n!==O4&&(n=Ic),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const O2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ile{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=cx,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,Ps.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=fg(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,Yue.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||Gue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:k4.current,process.env.NODE_ENV!=="production"&&z$(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(),b4(this.notifyUpdate),b4(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&&Ps.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<O2.length;r++){const i=O2[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=Zue(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=hm(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):!Que(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=Q$(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 sle=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ale(e){const t=sle.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ole=4;function XI(e,t,n=1){Hu(n<=ole,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ale(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return qI(a)?parseFloat(a):a}return G$(i)?XI(i,t,n+1):i}function ule(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WI(e):!0}const lle=new Set(["auto","none","0"]);function cle(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!lle.has(s)&&Cd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=ZI(n,i)}class fle extends cx{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(),G$(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=k2(i),o=k2(s);if(a!==o)if(w2(a)&&w2(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||ule(t[i]))&&r.push(i);r.length&&cle(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 ile{constructor(){super(...arguments),this.KeyframeResolver=fle}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 dle(e){return window.getComputedStyle(e)}class hle 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?A4(n):Noe(t,n);{const i=dle(t),s=(JO(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Tue(t,n)}build(t,n,r){Z$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ex(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 ple(e,t,n,r){QI(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e9.has(i)?i:H$(i),t.attrs[i])}class mle 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:H$(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){ple(t,n,r,i)}mount(t){this.isSVGTag=iI(t.tagName),super.mount(t)}}const gle=(e,t)=>J$(e)?new mle(t):new hle(t,{allowProjection:e!==T.Fragment}),vle={renderer:gle,...Eue,...Hue},yle=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t9=e=>Array.isArray(e)&&e.every(t=>typeof t=="object"&&!(t instanceof Array)),ble=e=>Array.isArray(e)&&e.every(t=>Array.isArray(t)),$le=e=>Array.from(e.map(t=>Object.keys(t)).reduce((t,n)=>new Set([...t,...n]),[])),xle=(e,t)=>{t=t||$le(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=>wle(a,s)));return[n,...i]},wle=(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},Cle=e=>typeof e>"u"||e===null?"":e,n9=(e,t=",",n='"')=>e.filter(r=>r).map(r=>r.map(i=>Cle(i)).map(i=>`${n}${i}${n}`).join(t)).join(`
|
|
145
|
+
`),Ele=(e,t,n,r)=>n9(t?[t,...e]:e,n,r),Sle=(e,t,n,r)=>n9(xle(e,t),n,r),Dle=(e,t,n,r)=>t?`${t.join(n)}
|
|
146
|
+
${e}`:e.replace(/"/g,'""'),r9=(e,t,n,r)=>{if(t9(e))return Sle(e,t,n,r);if(ble(e))return Ele(e,t,n,r);if(typeof e=="string")return Dle(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=yle()?"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 ep={exports:{}},tp={exports:{}},un={};/** @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 I2;function Ale(){if(I2)return un;I2=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,x=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(M){if(typeof M=="object"&&M!==null){var F=M.$$typeof;switch(F){case t:switch(M=M.type,M){case l:case d:case r:case s:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case o:case h:case w:case b:case a:return M;default:return F}}case n:return F}}}function k(M){return S(M)===d}return un.AsyncMode=l,un.ConcurrentMode=d,un.ContextConsumer=o,un.ContextProvider=a,un.Element=t,un.ForwardRef=h,un.Fragment=r,un.Lazy=w,un.Memo=b,un.Portal=n,un.Profiler=s,un.StrictMode=i,un.Suspense=m,un.isAsyncMode=function(M){return k(M)||S(M)===l},un.isConcurrentMode=k,un.isContextConsumer=function(M){return S(M)===o},un.isContextProvider=function(M){return S(M)===a},un.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},un.isForwardRef=function(M){return S(M)===h},un.isFragment=function(M){return S(M)===r},un.isLazy=function(M){return S(M)===w},un.isMemo=function(M){return S(M)===b},un.isPortal=function(M){return S(M)===n},un.isProfiler=function(M){return S(M)===s},un.isStrictMode=function(M){return S(M)===i},un.isSuspense=function(M){return S(M)===m},un.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===s||M===i||M===m||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===b||M.$$typeof===a||M.$$typeof===o||M.$$typeof===h||M.$$typeof===D||M.$$typeof===C||M.$$typeof===E||M.$$typeof===x)},un.typeOf=S,un}var ln={};/** @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 L2;function Tle(){return L2||(L2=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,x=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===x)}function k(Ae){if(typeof Ae=="object"&&Ae!==null){var Ye=Ae.$$typeof;switch(Ye){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 Ye}}case n:return Ye}}}var M=l,F=d,N=o,te=a,ce=t,ae=h,I=r,xe=w,Ce=b,z=n,ee=s,U=i,O=m,V=!1;function ne(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.")),K(Ae)||k(Ae)===l}function K(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 He(Ae){return k(Ae)===w}function Xe(Ae){return k(Ae)===b}function Be(Ae){return k(Ae)===n}function Ge(Ae){return k(Ae)===s}function Me(Ae){return k(Ae)===i}function Le(Ae){return k(Ae)===m}ln.AsyncMode=M,ln.ConcurrentMode=F,ln.ContextConsumer=N,ln.ContextProvider=te,ln.Element=ce,ln.ForwardRef=ae,ln.Fragment=I,ln.Lazy=xe,ln.Memo=Ce,ln.Portal=z,ln.Profiler=ee,ln.StrictMode=U,ln.Suspense=O,ln.isAsyncMode=ne,ln.isConcurrentMode=K,ln.isContextConsumer=le,ln.isContextProvider=ue,ln.isElement=De,ln.isForwardRef=Pe,ln.isFragment=Fe,ln.isLazy=He,ln.isMemo=Xe,ln.isPortal=Be,ln.isProfiler=Ge,ln.isStrictMode=Me,ln.isSuspense=Le,ln.isValidElementType=S,ln.typeOf=k}()),ln}var V2;function s9(){return V2||(V2=1,process.env.NODE_ENV==="production"?tp.exports=Ale():tp.exports=Tle()),tp.exports}/*
|
|
161
|
+
object-assign
|
|
162
|
+
(c) Sindre Sorhus
|
|
163
|
+
@license MIT
|
|
164
|
+
*/var O1,B2;function Ple(){if(B2)return O1;B2=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 O1=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},O1}var I1,N2;function dx(){if(N2)return I1;N2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return I1=e,I1}var L1,j2;function a9(){return j2||(j2=1,L1=Function.call.bind(Object.prototype.hasOwnProperty)),L1}var V1,K2;function _le(){if(K2)return V1;K2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dx(),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={})},V1=i,V1}var B1,U2;function Mle(){if(U2)return B1;U2=1;var e=s9(),t=Ple(),n=dx(),r=a9(),i=_le(),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 B1=function(o,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(K){var le=K&&(d&&K[d]||K[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:M(),instanceOf:F,node:ae(),objectOf:te,oneOf:N,oneOfType:ce,shape:xe,exact:Ce};function w(K,le){return K===le?K!==0||1/K===1/le:K!==K&&le!==le}function x(K,le){this.message=K,this.data=le&&typeof le=="object"?le:{},this.stack=""}x.prototype=Error.prototype;function D(K){if(process.env.NODE_ENV!=="production")var le={},ue=0;function De(Fe,He,Xe,Be,Ge,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 Ye=Be+":"+Xe;!le[Ye]&&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[Ye]=!0,ue++)}}return He[Xe]==null?Fe?He[Xe]===null?new x("The "+Ge+" `"+Me+"` is marked as required "+("in `"+Be+"`, but its value is `null`.")):new x("The "+Ge+" `"+Me+"` is marked as required in "+("`"+Be+"`, but its value is `undefined`.")):null:K(He,Xe,Be,Ge,Me)}var Pe=De.bind(null,!1);return Pe.isRequired=De.bind(null,!0),Pe}function C(K){function le(ue,De,Pe,Fe,He,Xe){var Be=ue[De],Ge=U(Be);if(Ge!==K){var Me=O(Be);return new x("Invalid "+Fe+" `"+He+"` of type "+("`"+Me+"` supplied to `"+Pe+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return D(le)}function E(){return D(a)}function S(K){function le(ue,De,Pe,Fe,He){if(typeof K!="function")return new x("Property `"+He+"` of component `"+Pe+"` has invalid PropType notation inside arrayOf.");var Xe=ue[De];if(!Array.isArray(Xe)){var Be=U(Xe);return new x("Invalid "+Fe+" `"+He+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected an array."))}for(var Ge=0;Ge<Xe.length;Ge++){var Me=K(Xe,Ge,Pe,Fe,He+"["+Ge+"]",n);if(Me instanceof Error)return Me}return null}return D(le)}function k(){function K(le,ue,De,Pe,Fe){var He=le[ue];if(!o(He)){var Xe=U(He);return new x("Invalid "+Pe+" `"+Fe+"` of type "+("`"+Xe+"` supplied to `"+De+"`, expected a single ReactElement."))}return null}return D(K)}function M(){function K(le,ue,De,Pe,Fe){var He=le[ue];if(!e.isValidElementType(He)){var Xe=U(He);return new x("Invalid "+Pe+" `"+Fe+"` of type "+("`"+Xe+"` supplied to `"+De+"`, expected a single ReactElement type."))}return null}return D(K)}function F(K){function le(ue,De,Pe,Fe,He){if(!(ue[De]instanceof K)){var Xe=K.name||g,Be=ne(ue[De]);return new x("Invalid "+Fe+" `"+He+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected ")+("instance of `"+Xe+"`."))}return null}return D(le)}function N(K){if(!Array.isArray(K))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,He){for(var Xe=ue[De],Be=0;Be<K.length;Be++)if(w(Xe,K[Be]))return null;var Ge=JSON.stringify(K,function(Le,Ae){var Ye=O(Ae);return Ye==="symbol"?String(Ae):Ae});return new x("Invalid "+Fe+" `"+He+"` of value `"+String(Xe)+"` "+("supplied to `"+Pe+"`, expected one of "+Ge+"."))}return D(le)}function te(K){function le(ue,De,Pe,Fe,He){if(typeof K!="function")return new x("Property `"+He+"` of component `"+Pe+"` has invalid PropType notation inside objectOf.");var Xe=ue[De],Be=U(Xe);if(Be!=="object")return new x("Invalid "+Fe+" `"+He+"` of type "+("`"+Be+"` supplied to `"+Pe+"`, expected an object."));for(var Ge in Xe)if(r(Xe,Ge)){var Me=K(Xe,Ge,Pe,Fe,He+"."+Ge,n);if(Me instanceof Error)return Me}return null}return D(le)}function ce(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var le=0;le<K.length;le++){var ue=K[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,He,Xe,Be){for(var Ge=[],Me=0;Me<K.length;Me++){var Le=K[Me],Ae=Le(Pe,Fe,He,Xe,Be,n);if(Ae==null)return null;Ae.data&&r(Ae.data,"expectedType")&&Ge.push(Ae.data.expectedType)}var Ye=Ge.length>0?", expected one of type ["+Ge.join(", ")+"]":"";return new x("Invalid "+Xe+" `"+Be+"` supplied to "+("`"+He+"`"+Ye+"."))}return D(De)}function ae(){function K(le,ue,De,Pe,Fe){return z(le[ue])?null:new x("Invalid "+Pe+" `"+Fe+"` supplied to "+("`"+De+"`, expected a ReactNode."))}return D(K)}function I(K,le,ue,De,Pe){return new x((K||"React class")+": "+le+" type `"+ue+"."+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Pe+"`.")}function xe(K){function le(ue,De,Pe,Fe,He){var Xe=ue[De],Be=U(Xe);if(Be!=="object")return new x("Invalid "+Fe+" `"+He+"` of type `"+Be+"` "+("supplied to `"+Pe+"`, expected `object`."));for(var Ge in K){var Me=K[Ge];if(typeof Me!="function")return I(Pe,Fe,He,Ge,O(Me));var Le=Me(Xe,Ge,Pe,Fe,He+"."+Ge,n);if(Le)return Le}return null}return D(le)}function Ce(K){function le(ue,De,Pe,Fe,He){var Xe=ue[De],Be=U(Xe);if(Be!=="object")return new x("Invalid "+Fe+" `"+He+"` of type `"+Be+"` "+("supplied to `"+Pe+"`, expected `object`."));var Ge=t({},ue[De],K);for(var Me in Ge){var Le=K[Me];if(r(K,Me)&&typeof Le!="function")return I(Pe,Fe,He,Me,O(Le));if(!Le)return new x("Invalid "+Fe+" `"+He+"` key `"+Me+"` supplied to `"+Pe+"`.\nBad object: "+JSON.stringify(ue[De],null," ")+`
|
|
165
|
+
Valid keys: `+JSON.stringify(Object.keys(K),null," "));var Ae=Le(Xe,Me,Pe,Fe,He+"."+Me,n);if(Ae)return Ae}return null}return D(le)}function z(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(z);if(K===null||o(K))return!0;var le=m(K);if(le){var ue=le.call(K),De;if(le!==K.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(K,le){return K==="symbol"?!0:le?le["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&le instanceof Symbol:!1}function U(K){var le=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":ee(le,K)?"symbol":le}function O(K){if(typeof K>"u"||K===null)return""+K;var le=U(K);if(le==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return le}function V(K){var le=O(K);switch(le){case"array":case"object":return"an "+le;case"boolean":case"date":case"regexp":return"a "+le;default:return le}}function ne(K){return!K.constructor||!K.constructor.name?g:K.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},B1}var N1,z2;function Fle(){if(z2)return N1;z2=1;var e=dx();function t(){}function n(){}return n.resetWarningCache=t,N1=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},N1}var q2;function Rle(){if(q2)return ep.exports;if(q2=1,process.env.NODE_ENV!=="production"){var e=s9(),t=!0;ep.exports=Mle()(e.isElement,t)}else ep.exports=Fle()();return ep.exports}var Si=Rle();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:'"'},kle={target:"_blank"};class W2 extends T.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(W2,"defaultProps",Object.assign(u9,kle)),gf(W2,"propTypes",o9);var rp;let Ole=(rp=class extends T.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(rp,"defaultProps",u9),gf(rp,"propTypes",o9),rp);const Ile=Ole;var j1,H2;function Lle(){if(H2)return j1;H2=1;function e(t){return t==null}return j1=e,j1}var Vle=Lle();const Ble=fi(Vle);/**
|
|
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 Nle(e,t){return e?jle(e)?We.createElement(e,t):e:null}function jle(e){return Kle(e)||typeof e=="function"||Ule(e)}function Kle(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Ule(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var K1,G2;function zle(){if(G2)return K1;G2=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 K1=e,K1}var U1,Y2;function qle(){if(Y2)return U1;Y2=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 U1=n,U1}var z1,Z2;function Wle(){if(Z2)return z1;Z2=1;var e=fk(),t=e(Object.getPrototypeOf,Object);return z1=t,z1}var q1,X2;function Hle(){if(X2)return q1;X2=1;var e=zle(),t=qle(),n=s7(),r=i7(),i=Wle(),s=ha(),a=V3(),o=O3(),l=Sc(),d=j3();function h(m,g,b){var w=s(m),x=w||a(m)||d(m);if(g=r(g,4),b==null){var D=m&&m.constructor;x?b=w?new D:[]:l(m)?b=o(D)?t(i(m)):{}:b={}}return(x?e:n)(m,function(C,E,S){return g(b,C,E,S)}),b}return q1=h,q1}var Gle=Hle();const Yle=fi(Gle);function l9(e){return t=>typeof t===e}var Zle=l9("function"),Xle=e=>e===null,J2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",Q2=e=>!Jle(e)&&!Xle(e)&&(Zle(e)||typeof e=="object"),Jle=l9("undefined");function Qle(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 ece(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 tce(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 nce(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&&Q2(e)&&t&&Q2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Qle(e,t);if(e instanceof Map&&t instanceof Map)return tce(e,t);if(e instanceof Set&&t instanceof Set)return nce(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ece(e,t);if(J2(e)&&J2(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 rce=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ice=["bigint","boolean","null","number","string","symbol","undefined"];function pg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(sce(t))return t}function Ms(e){return t=>pg(t)===e}function sce(e){return rce.includes(e)}function Vc(e){return t=>typeof t===e}function ace(e){return ice.includes(e)}var oce=["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=pg(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=>pg(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ms("AsyncFunction");ut.bigint=Vc("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ms("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&oce.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=Ms("Error");ut.function=Vc("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ms("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=Ms("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=Ms("Function");ut.plainObject=e=>{if(pg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||ace(typeof e);ut.promise=Ms("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=Ms("RegExp");ut.set=Ms("Set");ut.string=Vc("string");ut.symbol=Vc("symbol");ut.undefined=Vc("undefined");ut.weakMap=Ms("WeakMap");ut.weakSet=Ms("WeakSet");var dt=ut;function uce(...e){return e.every(t=>dt.string(t)||dt.array(t)||dt.plainObject(t))}function lce(e,t,n){return c9(e,t)?[e,t].every(dt.array)?!e.some(iP(n))&&t.some(iP(n)):[e,t].every(dt.plainObject)?!Object.entries(e).some(rP(n))&&Object.entries(t).some(rP(n)):t===n:!1}function eP(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 tP(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 lce(l,d,s)}else return Wr(d,s);return!1}return[a,o].every(dt.array)?!d.every(hx(l)):[a,o].every(dt.plainObject)?cce(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 nP(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(!uce(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 rP(e){return([t,n])=>dt.array(e)?Wr(e,n)||e.some(r=>Wr(r,n)||dt.array(n)&&hx(n)(r)):dt.plainObject(e)&&e[t]?!!e[t]&&Wr(e[t],n):Wr(e,n)}function cce(e,t){return t.some(n=>!e.includes(n))}function iP(e){return t=>dt.array(e)?e.some(n=>Wr(n,t)||dt.array(t)&&hx(t)(n)):Wr(e,t)}function Df(e,t){return dt.array(e)?e.some(n=>Wr(n,t)):Wr(e,t)}function hx(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 vm(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 tP(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),x=dt.defined(m),D=dt.defined(g);if(x||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),x=dt.defined(g);return Df(m,b)&&(x?Df(g,w):!x)}catch{return!1}},decreased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return eP(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=nP(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=nP(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!dt.defined(h))return!1;try{return eP(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return tP(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var W1,sP;function fce(){if(sP)return W1;sP=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;W1={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],x=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 M=r(),F=n(1,(M-b)/D),N=x(F);d[o]=N*(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 W1}var dce=fce();const hce=fi(dce);var Pp={exports:{}},pce=Pp.exports,aP;function mce(){return aP||(aP=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(pce,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})}(Pp)),Pp.exports}var gce=mce();const f9=fi(gce);var H1,oP;function vce(){if(oP)return H1;oP=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,H1=n,H1}var yce=vce();const uP=fi(yce);var G1,lP;function bce(){if(lP)return G1;lP=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)?x(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 x;var S=E.customMerge(C);return typeof S=="function"?S:x}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(M){k[M]=o(C[M],S)}),m(E).forEach(function(M){b(C,M)||(g(C,M)&&S.isMergeableObject(E[M])?k[M]=d(M,S)(C[M],E[M],S):k[M]=o(E[M],S))}),k}function x(C,E,S){S=S||{},S.arrayMerge=S.arrayMerge||l,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var k=Array.isArray(E),M=Array.isArray(C),F=k===M;return F?k?S.arrayMerge(C,E,S):w(C,E,S):o(E,S)}x.all=function(E,S){if(!Array.isArray(E))throw new Error("first argument should be an array");return E.reduce(function(k,M){return x(k,M,S)},{})};var D=x;return G1=D,G1}var $ce=bce();const Cs=fi($ce);/**!
|
|
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 Zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",xce=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function wce(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Cce(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},xce))}}var Ece=Zd&&window.Promise,Sce=Ece?wce:Cce;function d9(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Qu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function px(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Xd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Qu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Xd(px(e))}function h9(e){return e&&e.referenceNode?e.referenceNode:e}var cP=Zd&&!!(window.MSInputMethodContext&&document.documentMode),fP=Zd&&/MSIE 10/.test(navigator.userAgent);function Bc(e){return e===11?cP:e===10?fP:cP||fP}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&&Qu(n,"position")==="static"?vc(n):n}function Dce(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||vc(e.firstElementChild)===e}function I4(e){return e.parentNode!==null?I4(e.parentNode):e}function ym(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 Dce(a)?a:vc(a);var o=I4(e);return o.host?ym(o.host,t):ym(e,I4(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 Ace(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 dP(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 hP(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:hP("Height",t,n,r),width:hP("Width",t,n,r)}}var Tce=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Pce=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 Oo(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function L4(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=Qu(e);l-=dP(h,"x"),d-=dP(h,"y"),i.width-=l,i.height-=d}return Oo(i)}function mx(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Bc(10),i=t.nodeName==="HTML",s=L4(e),a=L4(t),o=Xd(e),l=Qu(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=Oo({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=Ace(m,t)),m}function _ce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=mx(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 Oo(l)}function m9(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Qu(e,"position")==="fixed")return!0;var n=px(e);return n?m9(n):!1}function g9(e){if(!e||!e.parentElement||Bc())return document.documentElement;for(var t=e.parentElement;t&&Qu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function gx(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):ym(e,h9(t));if(r==="viewport")s=_ce(a,i);else{var o=void 0;r==="scrollParent"?(o=Xd(px(t)),o.nodeName==="BODY"&&(o=e.ownerDocument.documentElement)):r==="window"?o=e.ownerDocument.documentElement:o=r;var l=mx(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 Mce(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=gx(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:Mce(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):ym(t,h9(n));return mx(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 bm(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[bm(o)],i}function Jd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fce(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Jd(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,Fce(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=Oo(t.offsets.popper),t.offsets.reference=Oo(t.offsets.reference),t=s(t,i))}),t}function Rce(){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 vx(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 kce(){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[vx("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(Xd(s.parentNode),t,n,r),r.push(s)}function Oce(e,t,n,r){n.updateBound=r,C9(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Xd(e);return E9(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Ice(){this.state.eventsEnabled||(this.state=Oce(this.reference,this.options,this.state,this.scheduleUpdate))}function Lce(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 Vce(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Lce(this.reference,this.state))}function yx(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function V4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&yx(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Bce(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Nce(e){return V4(e.instance.popper,e.styles),Bce(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V4(e.arrowElement,e.arrowStyles),e}function jce(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),V4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Kce(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,x=t?s:o;return{left:w(b&&!m&&t?r.left-1:r.left),top:x(r.top),bottom:x(r.bottom),right:w(r.right)}}var Uce=Zd&&/Firefox/i.test(navigator.userAgent);function zce(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Jd(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=L4(o),d={position:i.position},h=Kce(e,window.devicePixelRatio<2||!Uce),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=vx("transform"),w=void 0,x=void 0;if(m==="bottom"?o.nodeName==="HTML"?x=-o.clientHeight+h.bottom:x=-l.height+h.bottom:x=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, "+x+"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]=x*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=Jd(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 qce(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=Oo(e.offsets.popper);var x=o[m]+o[d]/2-w/2,D=Qu(e.instance.popper),C=parseFloat(D["margin"+h]),E=parseFloat(D["border"+h+"Width"]),S=x-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 Wce(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"],Y1=D9.slice(3);function pP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Y1.indexOf(e),r=Y1.slice(n+1).concat(Y1.slice(0,n));return t?r.reverse():r}var Z1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Hce(e,t){if(w9(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=gx(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=bm(r),s=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Z1.FLIP:a=[r,i];break;case Z1.CLOCKWISE:a=pP(r);break;case Z1.COUNTERCLOCKWISE:a=pP(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=bm(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),x=m(d.top)<m(n.top),D=m(d.bottom)>m(n.bottom),C=r==="left"&&b||r==="right"&&w||r==="top"&&x||r==="bottom"&&D,E=["top","bottom"].indexOf(r)!==-1,S=!!t.flipVariations&&(E&&s==="start"&&b||E&&s==="end"&&w||!E&&s==="start"&&x||!E&&s==="end"&&D),k=!!t.flipVariationsByContent&&(E&&s==="start"&&w||E&&s==="end"&&b||!E&&s==="start"&&D||!E&&s==="end"&&x),M=S||k;(g||C||M)&&(e.flipped=!0,(g||C)&&(r=a[l+1]),M&&(s=Wce(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 Gce(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 Yce(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=Oo(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 Zce(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(Jd(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,x){return w[w.length-1]===""&&["+","-"].indexOf(x)!==-1?(w[w.length-1]=x,b=!0,w):b?(w[w.length-1]+=x,b=!1,w):w.concat(x)},[]).map(function(w){return Yce(w,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){yx(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Xce(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 yx(+n)?l=[+n,0]:l=Zce(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 Jce(e,t){var n=t.boundariesElement||vc(e.instance.popper);e.instance.reference===n&&(n=vc(n));var r=vx("transform"),i=e.instance.popper.style,s=i.top,a=i.left,o=i[r];i.top="",i.left="",i[r]="";var l=gx(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",x=h[w];return h[b]>l[b]&&!t.escapeWithReference&&(x=Math.min(h[w],l[b]-(b==="right"?h.width:h.height))),bc({},w,x)}};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 Qce(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 efe(e){if(!S9(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Jd(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 tfe(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=bm(t),e.offsets.popper=Oo(i),e}var nfe={shift:{order:100,enabled:!0,fn:Qce},offset:{order:200,enabled:!0,fn:Xce,offset:0},preventOverflow:{order:300,enabled:!0,fn:Jce,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Gce},arrow:{order:500,enabled:!0,fn:qce,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Hce,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:tfe},hide:{order:800,enabled:!0,fn:efe},computeStyle:{order:850,enabled:!0,fn:zce,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Nce,onLoad:jce,gpuAcceleration:void 0}},rfe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nfe},Ed=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Tce(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Sce(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 Pce(e,[{key:"update",value:function(){return Rce.call(this)}},{key:"destroy",value:function(){return kce.call(this)}},{key:"enableEventListeners",value:function(){return Ice.call(this)}},{key:"disableEventListeners",value:function(){return Vce.call(this)}}]),e}();Ed.Utils=(typeof window<"u"?window:global).PopperUtils;Ed.placements=D9;Ed.Defaults=rfe;var ife=["innerHTML","ownerDocument","style","attributes","nodeValue"],sfe=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],afe=["bigint","boolean","null","number","string","symbol","undefined"];function mg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ofe(t))return t}function Fs(e){return function(t){return mg(t)===e}}function ofe(e){return sfe.includes(e)}function Nc(e){return function(t){return typeof t===e}}function ufe(e){return afe.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=mg(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 mg(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Fs("AsyncFunction");Ke.bigint=Nc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Fs("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)&&ife.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=Fs("Error");Ke.function=Nc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Fs("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=Fs("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=Fs("Function");Ke.plainObject=function(e){if(mg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||ufe(typeof e)};Ke.promise=Fs("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=Fs("RegExp");Ke.set=Fs("Set");Ke.string=Nc("string");Ke.symbol=Nc("symbol");Ke.undefined=Nc("undefined");Ke.weakMap=Fs("WeakMap");Ke.weakSet=Fs("WeakSet");function A9(e){return function(t){return typeof t===e}}var lfe=A9("function"),cfe=function(e){return e===null},mP=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},gP=function(e){return!ffe(e)&&!cfe(e)&&(lfe(e)||typeof e=="object")},ffe=A9("undefined"),B4=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 dfe(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 hfe(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 pfe(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var a=B4(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=B4(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 mfe(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=B4(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&&gP(e)&&t&&gP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return dfe(e,t);if(e instanceof Map&&t instanceof Map)return pfe(e,t);if(e instanceof Set&&t instanceof Set)return mfe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return hfe(e,t);if(mP(e)&&mP(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 gfe(){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 vfe(e,t,n){return T9(e,t)?[e,t].every(Ke.array)?!e.some(xP(n))&&t.some(xP(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some($P(n))&&Object.entries(t).some($P(n)):t===n:!1}function vP(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 yP(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 vfe(l,d,s)}else return li(d,s);return!1}return[a,o].every(Ke.array)?!d.every(bx(l)):[a,o].every(Ke.plainObject)?yfe(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 bP(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(!gfe(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 $P(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)&&bx(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&li(e[n],r):li(e,r)}}function yfe(e,t){return t.some(function(n){return!e.includes(n)})}function xP(e){return function(t){return Ke.array(e)?e.some(function(n){return li(n,t)||Ke.array(t)&&bx(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 bx(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 bfe(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 yP(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var w=ra(e,m),x=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,x);return E&&S}return[w,x].every(Ke.array)||[w,x].every(Ke.plainObject)?!li(w,x):w!==x}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var w=ra(e,m),x=ra(t,m),D=Ke.defined(b);return Af(g,w)&&(D?Af(b,x):!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 vP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},o=function(m){try{var g=bP(e,t,{key:m}),b=g[0],w=g[1];return!!b.length&&!w.length}catch{return!1}},l=function(m){try{var g=bP(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 vP(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return yP(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 wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $fe(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 eh(e,t,n){return t&&$fe(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 th(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&&N4(e,t)}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$m(e)}function N4(e,t){return N4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N4(e,t)}function xfe(){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 wfe(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=wfe(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 Cfe(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 nh(e){var t=xfe();return function(){var r=$m(e),i;if(t){var s=$m(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Cfe(this,i)}}function Efe(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=Efe(e,"string");return typeof t=="symbol"?t:String(t)}var Sfe={flip:{padding:20},preventOverflow:{padding:10}},Dfe="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Afe="The error message is optional, but must be a string if provided.";function Tfe(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Pfe(e,t){return Object.hasOwnProperty.call(e,t)}function _fe(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Mfe(e,t){if(typeof e!="function")throw new TypeError(Dfe);if(t&&typeof t!="string")throw new TypeError(Afe)}function CP(e,t,n){return Mfe(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 Tfe(t,r,i,s)?Pfe(r,i)?e.apply(void 0,[r,i,s].concat(o)):_fe(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=qa.createPortal!==void 0;function Zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function X1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function np(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 Ffe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Rfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function kfe(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Rfe(e,t,i)},Ffe(e,t,i,r)}function EP(){}var M9=function(e){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(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||qa.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 qa.createPortal(s,this.node);var o=qa.unstable_renderSubtreeIntoContainer(this,s.length>1?T.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}(T.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){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(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,x={display:h,position:b},D,C=w,E=m;return s.startsWith("top")?(D="0,0 ".concat(C/2,",").concat(E," ").concat(C,",0"),x.bottom=0,x.marginLeft=g,x.marginRight=g):s.startsWith("bottom")?(D="".concat(C,",").concat(E," ").concat(C/2,",0 0,").concat(E),x.top=0,x.marginLeft=g,x.marginRight=g):s.startsWith("left")?(E=w,C=m,D="0,0 ".concat(C,",").concat(E/2," 0,").concat(E),x.right=0,x.marginTop=g,x.marginBottom=g):s.startsWith("right")&&(E=w,C=m,D="".concat(C,",").concat(E," ").concat(C,",0 0,").concat(E/2),x.left=0,x.marginTop=g,x.marginBottom=g),T.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T.createElement("span",{ref:a,style:x},T.createElement("svg",{width:C,height:E,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("polygon",{points:D,fill:d}))))}}]),n}(T.Component);_r(F9,"propTypes",{placement:rt.string.isRequired,setArrowRef:rt.func.isRequired,styles:rt.object.isRequired});var Ofe=["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,Ofe);return T.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},T.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"},T.createElement("g",null,T.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:T.isValidElement(t)?t:T.createElement("div",{className:"__floater__content",style:l.content},t)};return o&&(d.title=T.isValidElement(o)?o:T.createElement("div",{className:"__floater__title",style:l.title},o)),n&&(d.footer=T.isValidElement(n)?n:T.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||s)&&!Ke.boolean(i)&&(d.close=T.createElement(R9,{styles:l.close,handleClick:r})),T.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){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(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,x=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=Tn(Tn({},E),x)),d===Xt.CLOSING&&(E=Tn(Tn({},E),w)),d===Xt.OPEN&&!s&&(E=Tn(Tn({},E),D)),o==="center"&&(E=Tn(Tn({},E),b)),a&&(E=Tn(Tn({},E),C)),Tn(Tn({},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?T.isValidElement(s)?h.content=T.cloneElement(s,{closeFn:a}):h.content=s({closeFn:a}):h.content=T.createElement(k9,this.props),d===Xt.OPEN&&m.push("__floater__open"),o||(h.arrow=T.createElement(F9,this.props)),T.createElement("div",{ref:l,className:m.join(" "),style:this.style},T.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(T.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){th(n,e);var t=nh(n);function n(){return Qd(this,n),t.apply(this,arguments)}return eh(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(T.Children.count(s)===1)if(!T.isValidElement(s))b=T.createElement("span",null,s);else{var w=Ke.function(s.type)?"innerRef":"ref";b=T.cloneElement(T.Children.only(s),_r({},w,d))}else b=s;return b?T.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:a,onMouseEnter:o,onMouseLeave:l},b):null}}]),n}(T.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 Ife={zIndex:100};function Lfe(e){var t=Cs(Ife,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 Vfe=["arrow","flip","offset"],Bfe=["position","top","right","bottom","left"],$x=function(e){th(n,e);var t=nh(n);function n(r){var i;return Qd(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)&&(np({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)||X1())){var l=i.state.status;i.event==="hover"&&l===Xt.IDLE&&(np({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)||X1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(np({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 eh(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,np({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=bfe(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))&&kfe(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 x=this.options,D=x.arrow,C=x.flip,E=x.offset,S=P9(x,Vfe);new Ed(s,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},D),flip:Tn({enabled:!l,behavior:w},C),offset:Tn({offset:"0, ".concat(m,"px")},E)},S),onCreate:function(F){var N;if(i.popper=F,!((N=i.floaterRef)!==null&&N!==void 0&&N.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 N=i.state.currentPlacement;i._isMounted&&F.placement!==N&&i.setState({currentPlacement:F.placement})}})}if(a){var k=Ke.undefined(b.offset)?0:b.offset;new Ed(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"&&X1()&&!s?"click":a}},{key:"options",get:function(){var i=this.props.options;return Cs(Sfe,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=Cs(Lfe(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=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(Bfe.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!Zs())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,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,x=l.id,D=l.open,C=l.showCloseButton,E=l.style,S=l.target,k=l.title,M=T.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=M:F.wrapperAsChildren=M,T.createElement("span",null,T.createElement(M9,{hasChildren:!!d,id:x,placement:s,setRef:this.setFloaterRef,target:S,zIndex:this.styles.options.zIndex},T.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}(T.Component);_r($x,"propTypes",{autoOpen:rt.bool,callback:rt.func,children:rt.node,component:CP(rt.oneOfType([rt.func,rt.element]),function(e){return!e.content}),content:CP(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($x,"defaultProps",{autoOpen:!1,callback:EP,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:EP,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Nfe=Object.defineProperty,jfe=(e,t,n)=>t in e?Nfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>jfe(e,typeof t!="symbol"?t+"":t,n),an={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 Kfe(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 za(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 Ufe(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Sd(e,t,n){if(!e)return Pu();const r=f9(e);if(r){if(r.isSameNode(Pu()))return n?document:Pu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Pu()}return r}function rh(e,t){if(!e)return!1;const n=Sd(e,t);return n?!n.isSameNode(Pu()):!1}function zfe(e){return e.offsetParent!==document.body}function $c(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Ufe(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?$c(e.parentNode,t):!1}function qfe(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 Wfe(e,t,n){var r,i,s;const a=L9(e),o=Sd(e,n),l=rh(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(Pu())||(m+=Pu().scrollTop));return Math.floor(m-t)}function Hfe(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&&(rh(e,n)||zfe(e))&&(a-=i);const o=Math.floor(a-t);return o<0?0:o}function Pu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Gfe(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:a}=r,o=e>a?e-a:a-e;hce.top(r,e,{duration:o<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var Pf=qa.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 _p(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=uP(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(T.isValidElement(e)&&!Object.values(e.props).length&&_p(e.type)==="function"){const a=e.type({});s=Xs(a,t)}else s=uP(n);return s}function Yfe(e,t){return!dt.plainObject(e)||!dt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Zfe(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 SP(e){return e.disableBeacon||e.placement==="center"}function DP(){return!["chrome","safari","firefox","opera"].includes(V9())}function Io({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 Xfe(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 Jfe(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 j4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(_p(e)==="string")return r(e);if(!T.isValidElement(e))return e;const{children:i}=e.props;if(_p(i)==="string"&&i.includes("{step}"))return T.cloneElement(e,{children:r(i)});if(Array.isArray(i))return T.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):j4(s,t,n))});if(_p(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return j4(s,t,n)}return e}function Qfe(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 ede={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"},tde={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},nde={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:[]},rde={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"},AP={borderRadius:4,position:"absolute"};function ide(e,t){var n,r,i,s,a;const{floaterProps:o,styles:l}=e,d=Cs((n=t.floaterProps)!=null?n:{},o??{}),h=Cs(l??{},(r=t.styles)!=null?r:{}),m=Cs(rde,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},x={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(${Zfe(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:{...AP,backgroundColor:"gray"},spotlightLegacy:{...AP,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 Cs(x,h)}function sde(e){return Jfe(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Rl(e,t){var n,r,i,s,a,o;const l=t??{},d=Cs.all([tde,sde(e),l],{isMergeableObject:dt.plainObject}),h=ide(e,d),m=rh(za(d.target),d.disableScrollParentFix),g=Cs.all([ede,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=Cs((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:Cs.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:(Io({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(Io({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function TP(e,t=!1){return dt.array(e)?e.every(n=>j9(n,t)):(Io({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},PP=Xfe(B9(K9,"controlled","size")),ade=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:an.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:an.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:an.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===jt.RUNNING&&this.setState({...this.getNextState({action:an.UPDATE,lifecycle:Ft.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===jt.RUNNING&&this.setState({...this.getNextState({action:an.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:an.RESET,index:0}),status:i?jt.RUNNING:jt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===jt.RUNNING&&this.setState({action:an.SKIP,lifecycle:Ft.INIT,status:jt.SKIPPED})}),mt(this,"start",i=>{const{index:s,size:a}=this.getState();this.setState({...this.getNextState({action:an.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:an.STOP,index:s+(i?1:0)}),status:jt.PAUSED})}),mt(this,"update",i=>{var s,a;if(!Yfe(i,PP))throw new Error(`State is not valid. Valid keys: ${PP.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:an.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:an.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 ode(e){return new ade(e)}function ude({styles:e}){return We.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var lde=ude,cde=class extends We.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=za(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=za(r);this.scrollParent=Sd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&rh(i,!0)&&Io({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}=vm(e,this.props);if(a("target")||a("disableScrollParentFix")){const o=za(s);this.scrollParent=Sd(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 DP()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Kfe(),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=za(l),h=L9(d),m=$c(d),g=Wfe(d,a,i);return{...DP()?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&&We.createElement(lde,{styles:s});if(V9()==="safari"){const{mixBlendMode:o,zIndex:l,...d}=i;a=We.createElement("div",{style:{...d}},a),delete i.backgroundColor}return We.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},fde=class extends We.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||ip.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&&ip.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!Eo()||!Pf)return null;const{children:e}=this.props;return this.node?ip.createPortal(e,this.node):null}render(){return Pf?this.renderReact16():null}},dde=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()}},hde=class extends We.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=We.createElement(g,{continuous:t,index:n,isLastStep:r,size:a,step:o,...h})}else m=We.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},We.createElement("span",{style:l.beaconInner}),We.createElement("span",{style:l.beaconOuter}));return m}};function pde({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return T.createElement("button",{style:s,type:"button",...t},T.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},T.createElement("g",null,T.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 mde=pde;function gde(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:x}=o,D={};return D.primary=We.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...s}),b&&!i&&(D.skip=We.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...a})),!h&&r>0&&(D.back=We.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),D.close=!m&&We.createElement(mde,{"data-test-id":"button-close",styles:w.buttonClose,...n}),We.createElement("div",{key:"JoyrideTooltip","aria-label":Xs(x??d),className:"react-joyride__tooltip",style:w.tooltip,...l},We.createElement("div",{style:w.tooltipContainer},x&&We.createElement("h1",{"aria-label":Xs(x),style:w.tooltipTitle},x),We.createElement("div",{style:w.tooltipContent},d)),!g&&We.createElement("div",{style:w.tooltipFooter},We.createElement("div",{style:w.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var vde=gde,yde=class extends We.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),x=Xs(d),D=Xs(m);let C=o,E=b;if(e){if(C=d,E=x,s.showProgress&&!n){const S=Xs(h,{step:t+1,steps:i});C=j4(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=We.createElement(m,{...h})}else d=We.createElement(vde,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},bde=class extends We.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 We.createElement(yde,{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;Io({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:x}=vm(e,this.props),D=o.info(),C=i&&n!==an.CLOSE&&(l>0||n===an.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),k=w("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE]),M=s&&l===e.index;if(k&&(S||M)&&r({...D,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:Hi.STEP_AFTER}),g.placement==="center"&&m===jt.RUNNING&&w("index")&&n!==an.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=za(g.target),N=!!F;N&&qfe(F)?(x("status",jt.READY,jt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...D,step:g,type:Hi.STEP_BEFORE}):(console.warn(N?"Target not visible":"Target not mounted",g),r({...D,type:Hi.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===an.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:SP(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Io({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 dde(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return SP(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:a}=this.props,o=za(a.target);return!j9(a)||!dt.domElement(o)?null:We.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},We.createElement($x,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},We.createElement(hde,{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 We.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;Rl(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=ode({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Io({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;TP(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:x,update:D}=this.store,{changed:C}=vm(e,this.props),{changed:E,changedFrom:S}=vm(t,this.state),k=Rl(this.props,d[i]),M=!Wr(m,d),F=dt.number(l)&&C("stepIndex"),N=za(k.target);if(M&&(TP(d,a)?b(d):console.warn("Steps are not valid",d)),C("run")&&(o?w(l):x()),F){let ae=dt.number(h)&&h<l?an.NEXT:an.PREV;n===an.STOP&&(ae=an.START),[jt.FINISHED,jt.SKIPPED].includes(s)||D({action:n===an.CLOSE?an.CLOSE:ae,index:l,lifecycle:Ft.INIT})}!r&&s===jt.RUNNING&&i===0&&!N&&(this.store.update({index:i+1}),this.callback({...this.state,type:Hi.TARGET_NOT_FOUND,step:k}));const te={...this.state,index:i,step:k};if(E("action",[an.NEXT,an.PREV,an.SKIP,an.CLOSE])&&E("status",jt.PAUSED)){const ae=Rl(this.props,d[t.index]);this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Hi.STEP_AFTER})}if(E("status",[jt.FINISHED,jt.SKIPPED])){const ae=Rl(this.props,d[t.index]);r||this.callback({...te,index:t.index,lifecycle:Ft.COMPLETE,step:ae,type:Hi.STEP_AFTER}),this.callback({...te,type:Hi.TOUR_END,step:ae,index:t.index}),g()}else S("status",[jt.IDLE,jt.READY],jt.RUNNING)?this.callback({...te,type:Hi.TOUR_START}):(E("status")||E("action",an.RESET))&&this.callback({...te,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=Rl(this.props,d[t]),m=za(h.target),g=Qfe({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===jt.RUNNING&&g){const b=rh(m,s),w=Sd(m,s);let x=Math.floor(Hfe(m,o,s))||0;Io({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&&(x=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?x=Math.floor(S.popper.top-o):x-=h.spotlightPadding}x=x>=0?x:0,r===jt.RUNNING&&Gfe(x,{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=Rl(this.props,o[e]);d.step=We.createElement(bde,{...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=We.createElement(fde,{id:"react-joyride-portal"},We.createElement(cde,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return We.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(U9,"defaultProps",nde);var $de=U9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=vR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=a_;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Od;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=c_;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=nr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=XG;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=mR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=ZH;exports.$293f70390ea03370$export$497855f14858aa34=qG;exports.$32489daedd52963e$export$1315d136e6f7581=rY;exports.$337b884510726a0d$export$c6fdb837b070b4ff=AG;exports.$36a0ac60f04457c5$export$136073280381448e=NH;exports.$3c0fc76039f1c516$export$60e84778edff6d26=ik;exports.$40df3f8667284809$export$d55e7ee900f34e93=oY;exports.$46a4342aab3d8076$export$87e0539f600c24e5=LH;exports.$47b897dc8cdb026b$export$8d15029008292ae=eG;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=JH;exports.$6057a3d2a53a12fd$export$42df105a73306d51=QG;exports.$64244302c3013299$export$dd0bbc9b26defe37=oH;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=xH;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=aY;exports.$93c38a5e28be6249$export$e50a61c1de9f574=DY;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=IH;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=uY;exports.$a916eb452884faea$export$b7a616150fdb9f44=$H;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=pY;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=$Y;exports.$bb77f239b46e8c72$export$3274cf84b703fff=L_;exports.$bcca50147b47f54d$export$56b2c08e277f365=QH;exports.$c132121280ec012d$export$50eacbbf140a3141=LG;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=BG;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=YG;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VH;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=AY;exports.$f2f8a6077418541e$export$542a6fd13ac93354=DG;exports.$fae977aafc393c5c$export$588937bcd60ade55=IW;exports.$fae977aafc393c5c$export$6b862160d295c8e=OW;exports.ACTIONS=an;exports.AdvancedImage=oQ;exports.CSVLink=Ile;exports.Cloudinary=nee;exports.Controller=Tz;exports.EVENTS=Hi;exports.FormProvider=Dz;exports.Je=KK;exports.LazyMotion=Ise;exports.Lottie=Pse;exports.M=xs;exports.R=Zu;exports.ReorderGroup=pse;exports.ReorderItem=yse;exports.STATUS=jt;exports.Xe=UK;exports._=Cz;exports.autoUpdate=YU;exports.components_default=$de;exports.ct=qK;exports.dayjs=VZ;exports.dayjs_minExports=dk;exports.domAnimation=vle;exports.ee=mk;exports.flexRender=Nle;exports.flip=iz;exports.isEqual=OZ;exports.isNil=Ble;exports.isNumber=jZ;exports.lazyload=eQ;exports.localizedFormat=wse;exports.lodashExports=g5;exports.m=Sae;exports.nt=H4;exports.o=Sse;exports.offset=nz;exports.placeholder=iQ;exports.prismExports=Mee;exports.q=q3;exports.shift=rz;exports.some=Pee;exports.st=JP;exports.transform=Yle;exports.useController=S5;exports.useFieldArray=Kz;exports.useFloating=gz;exports.useFloating$1=d5;exports.useFocus=vz;exports.useForm=Uz;exports.useFormContext=Pd;exports.useHover=pz;exports.useInteractions=yz;exports.useRole=$z;exports.useWatch=E5;
|