@fluidattacks/design 3.16.3 → 3.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-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/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-_JbpXhe6.js → components-CAuhgM55.js} +187 -186
- package/dist/{components-3G2ZcBCV.mjs → components-DRqO8HHB.mjs} +806 -805
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-BQBri7G-.mjs → vendor-4R9pmxhU.mjs} +20032 -20764
- package/dist/vendor-DuayZeS3.js +204 -0
- package/package.json +6 -6
- package/dist/vendor-C1dWvaay.js +0 -223
package/dist/vendor-C1dWvaay.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";require('./assets/vendor.css');const T=require("react"),sa=require("react/jsx-runtime"),Ya=require("react-dom");function a2(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 et=a2(T),Qh=a2(Ya);var Hr=function(){return Hr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Hr.apply(this,arguments)};function Hu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function bj(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var xj=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$j=bj(function(e){return xj.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),so=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var In="-ms-",Lf="-moz-",vn="-webkit-",u2="comm",pm="rule",_4="decl",wj="@import",l2="@keyframes",Cj="@layer",c2=Math.abs,R4=String.fromCharCode,q1=Object.assign;function Sj(e,t){return Tr(e,0)^45?(((t<<2^Tr(e,0))<<2^Tr(e,1))<<2^Tr(e,2))<<2^Tr(e,3):0}function f2(e){return e.trim()}function Js(e,t){return(e=t.exec(e))?e[0]:e}function qt(e,t,n){return e.replace(t,n)}function ep(e,t,n){return e.indexOf(t,n)}function Tr(e,t){return e.charCodeAt(t)|0}function ec(e,t,n){return e.slice(t,n)}function ss(e){return e.length}function d2(e){return e.length}function Cf(e,t){return t.push(e),e}function Ej(e,t){return e.map(t).join("")}function zw(e,t){return e.filter(function(n){return!Js(n,t)})}var mm=1,tc=1,h2=0,co=0,hr=0,Sc="";function gm(e,t,n,r,i,o,s,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:mm,column:tc,length:s,return:"",siblings:u}}function La(e,t){return q1(gm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dl(e){for(;e.root;)e=La(e.root,{children:[e]});Cf(e,e.siblings)}function Dj(){return hr}function Aj(){return hr=co>0?Tr(Sc,--co):0,tc--,hr===10&&(tc=1,mm--),hr}function Oo(){return hr=co<h2?Tr(Sc,co++):0,tc++,hr===10&&(tc=1,mm++),hr}function Ku(){return Tr(Sc,co)}function tp(){return co}function vm(e,t){return ec(Sc,e,t)}function W1(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 Tj(e){return mm=tc=1,h2=ss(Sc=e),co=0,[]}function Pj(e){return Sc="",e}function lv(e){return f2(vm(co-1,H1(e===91?e+2:e===40?e+1:e)))}function _j(e){for(;(hr=Ku())&&hr<33;)Oo();return W1(e)>2||W1(hr)>3?"":" "}function Rj(e,t){for(;--t&&Oo()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return vm(e,tp()+(t<6&&Ku()==32&&Oo()==32))}function H1(e){for(;Oo();)switch(hr){case e:return co;case 34:case 39:e!==34&&e!==39&&H1(hr);break;case 40:e===41&&H1(e);break;case 92:Oo();break}return co}function Mj(e,t){for(;Oo()&&e+hr!==57;)if(e+hr===84&&Ku()===47)break;return"/*"+vm(t,co-1)+"*"+R4(e===47?e:Oo())}function Fj(e){for(;!W1(Ku());)Oo();return vm(e,co)}function kj(e){return Pj(np("",null,null,null,[""],e=Tj(e),0,[0],e))}function np(e,t,n,r,i,o,s,u,l){for(var d=0,h=0,m=s,g=0,b=0,$=0,C=1,A=1,S=1,w=0,D="",O=i,R=o,k=r,j=D;A;)switch($=w,w=Oo()){case 40:if($!=108&&Tr(j,m-1)==58){ep(j+=qt(lv(w),"&","&\f"),"&\f",c2(d?u[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:j+=lv(w);break;case 9:case 10:case 13:case 32:j+=_j($);break;case 92:j+=Rj(tp()-1,7);continue;case 47:switch(Ku()){case 42:case 47:Cf(Oj(Mj(Oo(),tp()),t,n,l),l);break;default:j+="/"}break;case 123*C:u[d++]=ss(j)*S;case 125*C:case 59:case 0:switch(w){case 0:case 125:A=0;case 59+h:S==-1&&(j=qt(j,/\f/g,"")),b>0&&ss(j)-m&&Cf(b>32?Ww(j+";",r,n,m-1,l):Ww(qt(j," ","")+";",r,n,m-2,l),l);break;case 59:j+=";";default:if(Cf(k=qw(j,t,n,d,h,i,u,D,O=[],R=[],m,o),o),w===123)if(h===0)np(j,t,k,k,O,o,m,u,R);else switch(g===99&&Tr(j,3)===110?100:g){case 100:case 108:case 109:case 115:np(e,k,k,r&&Cf(qw(e,k,k,0,0,i,u,D,i,O=[],m,R),R),i,R,m,u,r?O:R);break;default:np(j,k,k,k,[""],R,0,u,R)}}d=h=b=0,C=S=1,D=j="",m=s;break;case 58:m=1+ss(j),b=$;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&Aj()==125)continue}switch(j+=R4(w),w*C){case 38:S=h>0?1:(j+="\f",-1);break;case 44:u[d++]=(ss(j)-1)*S,S=1;break;case 64:Ku()===45&&(j+=lv(Oo())),g=Ku(),h=m=ss(D=j+=Fj(tp())),w++;break;case 45:$===45&&ss(j)==2&&(C=0)}}return o}function qw(e,t,n,r,i,o,s,u,l,d,h,m){for(var g=i-1,b=i===0?o:[""],$=d2(b),C=0,A=0,S=0;C<r;++C)for(var w=0,D=ec(e,g+1,g=c2(A=s[C])),O=e;w<$;++w)(O=f2(A>0?b[w]+" "+D:qt(D,/&\f/g,b[w])))&&(l[S++]=O);return gm(e,t,n,i===0?pm:u,l,d,h,m)}function Oj(e,t,n,r){return gm(e,t,n,u2,R4(Dj()),ec(e,2,-2),0,r)}function Ww(e,t,n,r,i){return gm(e,t,n,_4,ec(e,0,r),ec(e,r+1,-1),r,i)}function p2(e,t,n){switch(Sj(e,t)){case 5103:return vn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return vn+e+e;case 4789:return Lf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vn+e+Lf+e+In+e+e;case 5936:switch(Tr(e,t+11)){case 114:return vn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vn+e+In+qt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return vn+e+In+e+e;case 6165:return vn+e+In+"flex-"+e+e;case 5187:return vn+e+qt(e,/(\w+).+(:[^]+)/,vn+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return vn+e+In+"flex-item-"+qt(e,/flex-|-self/g,"")+(Js(e,/flex-|baseline/)?"":In+"grid-row-"+qt(e,/flex-|-self/g,""))+e;case 4675:return vn+e+In+"flex-line-pack"+qt(e,/align-content|flex-|-self/g,"")+e;case 5548:return vn+e+In+qt(e,"shrink","negative")+e;case 5292:return vn+e+In+qt(e,"basis","preferred-size")+e;case 6060:return vn+"box-"+qt(e,"-grow","")+vn+e+In+qt(e,"grow","positive")+e;case 4554:return vn+qt(e,/([^-])(transform)/g,"$1"+vn+"$2")+e;case 6187:return qt(qt(qt(e,/(zoom-|grab)/,vn+"$1"),/(image-set)/,vn+"$1"),e,"")+e;case 5495:case 3959:return qt(e,/(image-set\([^]*)/,vn+"$1$`$1");case 4968:return qt(qt(e,/(.+:)(flex-)?(.*)/,vn+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+vn+e+e;case 4200:if(!Js(e,/flex-|baseline/))return In+"grid-column-align"+ec(e,t)+e;break;case 2592:case 3360:return In+qt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Js(r.props,/grid-\w+-end/)})?~ep(e+(n=n[t].value),"span",0)?e:In+qt(e,"-start","")+e+In+"grid-row-span:"+(~ep(n,"span",0)?Js(n,/\d+/):+Js(n,/\d+/)-+Js(e,/\d+/))+";":In+qt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Js(r.props,/grid-\w+-start/)})?e:In+qt(qt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return qt(e,/(.+)-inline(.+)/,vn+"$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(ss(e)-1-t>6)switch(Tr(e,t+1)){case 109:if(Tr(e,t+4)!==45)break;case 102:return qt(e,/(.+:)(.+)-([^]+)/,"$1"+vn+"$2-$3$1"+Lf+(Tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ep(e,"stretch",0)?p2(qt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return qt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,u,l,d){return In+i+":"+o+d+(s?In+i+"-span:"+(u?l:+l-+o)+d:"")+e});case 4949:if(Tr(e,t+6)===121)return qt(e,":",":"+vn)+e;break;case 6444:switch(Tr(e,Tr(e,14)===45?18:11)){case 120:return qt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+vn+(Tr(e,14)===45?"inline-":"")+"box$3$1"+vn+"$2$3$1"+In+"$2box$3")+e;case 100:return qt(e,":",":"+In)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return qt(e,"scroll-","scroll-snap-")+e}return e}function wp(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ij(e,t,n,r){switch(e.type){case Cj:if(e.children.length)break;case wj:case _4:return e.return=e.return||e.value;case u2:return"";case l2:return e.return=e.value+"{"+wp(e.children,r)+"}";case pm:if(!ss(e.value=e.props.join(",")))return""}return ss(n=wp(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lj(e){var t=d2(e);return function(n,r,i,o){for(var s="",u=0;u<t;u++)s+=e[u](n,r,i,o)||"";return s}}function Bj(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _4:e.return=p2(e.value,e.length,n);return;case l2:return wp([La(e,{value:qt(e.value,"@","@"+vn)})],r);case pm:if(e.length)return Ej(n=e.props,function(i){switch(Js(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dl(La(e,{props:[qt(i,/:(read-\w+)/,":"+Lf+"$1")]})),Dl(La(e,{props:[i]})),q1(e,{props:zw(n,r)});break;case"::placeholder":Dl(La(e,{props:[qt(i,/:(plac\w+)/,":"+vn+"input-$1")]})),Dl(La(e,{props:[qt(i,/:(plac\w+)/,":"+Lf+"$1")]})),Dl(La(e,{props:[qt(i,/:(plac\w+)/,In+"input-$1")]})),Dl(La(e,{props:[i]})),q1(e,{props:zw(n,r)});break}return""})}}var Nj={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},Gu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m2="active",g2="data-styled-version",ym="6.1.15",M4=`/*!sc*/
|
|
2
|
-
`,Cp=typeof window<"u"&&"HTMLElement"in window,jj=!!(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"),Hw=/invalid hook call/i,Ph=new Set,Kj=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(s){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Hw.test(s)?(o=!1,Ph.delete(r)):i.apply(void 0,Hu([s],u,!1))},T.useRef(),o&&!Ph.has(r)&&(console.warn(r),Ph.add(r))}catch(s){Hw.test(s.message)&&Ph.delete(r)}finally{console.error=i}}},bm=Object.freeze([]),nc=Object.freeze({});function Uj(e,t,n){return n===void 0&&(n=nc),e.theme!==n.theme&&e.theme||t||n.theme}var G1=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"]),zj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qj=/(^-|-$)/g;function Gw(e){return e.replace(zj,"-").replace(qj,"")}var Wj=/(a)(d)/gi,_h=52,Yw=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y1(e){var t,n="";for(t=Math.abs(e);t>_h;t=t/_h|0)n=Yw(t%_h)+n;return(Yw(t%_h)+n).replace(Wj,"$1-$2")}var cv,v2=5381,Ru=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},y2=function(e){return Ru(v2,e)};function b2(e){return Y1(y2(e)>>>0)}function x2(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function fv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var $2=typeof Symbol=="function"&&Symbol.for,w2=$2?Symbol.for("react.memo"):60115,Hj=$2?Symbol.for("react.forward_ref"):60112,Gj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},C2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zj=((cv={})[Hj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cv[w2]=C2,cv);function Zw(e){return("type"in(t=e)&&t.type.$$typeof)===w2?C2:"$$typeof"in e?Zj[e.$$typeof]:Gj;var t}var Xj=Object.defineProperty,Jj=Object.getOwnPropertyNames,Xw=Object.getOwnPropertySymbols,Qj=Object.getOwnPropertyDescriptor,eK=Object.getPrototypeOf,Jw=Object.prototype;function S2(e,t,n){if(typeof t!="string"){if(Jw){var r=eK(t);r&&r!==Jw&&S2(e,r,n)}var i=Jj(t);Xw&&(i=i.concat(Xw(t)));for(var o=Zw(e),s=Zw(t),u=0;u<i.length;++u){var l=i[u];if(!(l in Yj||n&&n[l]||s&&l in s||o&&l in o)){var d=Qj(t,l);try{Xj(e,l,d)}catch{}}}}return e}function Yu(e){return typeof e=="function"}function F4(e){return typeof e=="object"&&"styledComponentId"in e}function ku(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Z1(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function rc(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function X1(e,t,n){if(n===void 0&&(n=!1),!n&&!rc(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=X1(e[r],t[r]);else if(rc(t))for(var r in t)e[r]=X1(e[r],t[r]);return e}function k4(e,t){Object.defineProperty(e,"toString",{value:t})}var tK=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
5
|
-
|
|
6
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
7
|
-
|
|
8
|
-
- Are you trying to reuse it across renders?
|
|
9
|
-
- Are you accidentally calling collectStyles twice?
|
|
10
|
-
|
|
11
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
12
|
-
|
|
13
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
14
|
-
|
|
15
|
-
- Does this error occur on the client and is your target falsy?
|
|
16
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
17
|
-
|
|
18
|
-
`,5:`The clone method cannot be used on the client!
|
|
19
|
-
|
|
20
|
-
- Are you running in a client-like environment on the server?
|
|
21
|
-
- Are you trying to run SSR on the client?
|
|
22
|
-
|
|
23
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
24
|
-
|
|
25
|
-
- Are you using a custom target that isn't mounted?
|
|
26
|
-
- Does your document not have a valid head element?
|
|
27
|
-
- Have you accidentally removed a style tag manually?
|
|
28
|
-
|
|
29
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
30
|
-
|
|
31
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
32
|
-
|
|
33
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
34
|
-
|
|
35
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
36
|
-
|
|
37
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
38
|
-
|
|
39
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
40
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
41
|
-
as for instance in your render method then you may be running into this limitation.
|
|
42
|
-
|
|
43
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
44
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
45
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function nK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function gs(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(nK.apply(void 0,Hu([tK[e]],t,!1)).trim())}var rK=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw gs(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}for(var u=this.indexOfGroup(t+1),l=(s=0,n.length);s<l;s++)this.tag.insertRule(u,n[s])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s<o;s++)n+="".concat(this.tag.getRule(s)).concat(M4);return n},e}(),iK=1<<30,rp=new Map,Sp=new Map,ip=1,Rh=function(e){if(rp.has(e))return rp.get(e);for(;Sp.has(ip);)ip++;var t=ip++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>iK))throw gs(16,"".concat(t));return rp.set(e,t),Sp.set(t,e),t},oK=function(e,t){ip=t+1,rp.set(e,t),Sp.set(t,e)},sK="style[".concat(Gu,"][").concat(g2,'="').concat(ym,'"]'),aK=new RegExp("^".concat(Gu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),uK=function(e,t,n){for(var r,i=n.split(","),o=0,s=i.length;o<s;o++)(r=i[o])&&e.registerName(t,r)},lK=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(M4),i=[],o=0,s=r.length;o<s;o++){var u=r[o].trim();if(u){var l=u.match(aK);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(oK(h,d),uK(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},Qw=function(e){for(var t=document.querySelectorAll(sK),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Gu)!==m2&&(lK(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function cK(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var E2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(Gu,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Gu,m2),r.setAttribute(g2,ym);var s=cK();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},fK=function(){function e(t){this.element=E2(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var s=r[i];if(s.ownerNode===n)return s}throw gs(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}(),dK=function(){function e(t){this.element=E2(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}(),hK=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}(),eC=Cp,pK={isServer:!Cp,useCSSOMInjection:!jj},D2=function(){function e(t,n,r){t===void 0&&(t=nc),n===void 0&&(n={});var i=this;this.options=Hr(Hr({},pK),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Cp&&eC&&(eC=!1,Qw(this)),k4(this,function(){return function(o){for(var s=o.getTag(),u=s.length,l="",d=function(m){var g=function(S){return Sp.get(S)}(m);if(g===void 0)return"continue";var b=o.names.get(g),$=s.getGroup(m);if(b===void 0||!b.size||$.length===0)return"continue";var C="".concat(Gu,".g").concat(m,'[id="').concat(g,'"]'),A="";b!==void 0&&b.forEach(function(S){S.length>0&&(A+="".concat(S,","))}),l+="".concat($).concat(C,'{content:"').concat(A,'"}').concat(M4)},h=0;h<u;h++)d(h);return l}(i)})}return e.registerId=function(t){return Rh(t)},e.prototype.rehydrate=function(){!this.server&&Cp&&Qw(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Hr(Hr({},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 hK(i):r?new fK(i):new dK(i)}(this.options),new rK(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(Rh(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(Rh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Rh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),mK=/&/g,gK=/^\s*\/\/.*$/gm;function A2(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=A2(n.children,t)),n})}function vK(e){var t,n,r,i=nc,o=i.options,s=o===void 0?nc:o,u=i.plugins,l=u===void 0?bm:u,d=function(g,b,$){return $.startsWith(n)&&$.endsWith(n)&&$.replaceAll(n,"").length>0?".".concat(t):g},h=l.slice();h.push(function(g){g.type===pm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(mK,n).replace(r,d))}),s.prefix&&h.push(Vj),h.push(Ij);var m=function(g,b,$,C){b===void 0&&(b=""),$===void 0&&($=""),C===void 0&&(C="&"),t=C,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var A=g.replace(gK,""),S=kj($||b?"".concat($," ").concat(b," { ").concat(A," }"):A);s.namespace&&(S=A2(S,s.namespace));var w=[];return wp(S,Lj(h.concat(Bj(function(D){return w.push(D)})))),w};return m.hash=l.length?l.reduce(function(g,b){return b.name||gs(15),Ru(g,b.name)},v2).toString():"",m}var yK=new D2,J1=vK(),T2=T.createContext({shouldForwardProp:void 0,styleSheet:yK,stylis:J1});T2.Consumer;T.createContext(void 0);function tC(){return T.useContext(T2)}var Q1=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=J1);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,k4(this,function(){throw gs(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=J1),this.name+t.hash},e}(),bK=function(e){return e>="A"&&e<="Z"};function nC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;bK(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var P2=function(e){return e==null||e===!1||e===""},_2=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!P2(o)&&(Array.isArray(o)&&o.isCss||Yu(o)?r.push("".concat(nC(i),":"),o,";"):rc(o)?r.push.apply(r,Hu(Hu(["".concat(i," {")],_2(o),!1),["}"],!1)):r.push("".concat(nC(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Nj||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Uu(e,t,n,r){if(P2(e))return[];if(F4(e))return[".".concat(e.styledComponentId)];if(Yu(e)){if(!Yu(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Q1||rc(i)||i===null||console.error("".concat(x2(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.")),Uu(i,t,n,r)}var o;return e instanceof Q1?n?(e.inject(n,r),[e.getName(r)]):[e]:rc(e)?_2(e):Array.isArray(e)?Array.prototype.concat.apply(bm,e.map(function(s){return Uu(s,t,n,r)})):[e.toString()]}function xK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Yu(n)&&!F4(n))return!1}return!0}var $K=y2(ym),wK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&xK(t),this.componentId=n,this.baseHash=Ru($K,n),this.baseStyle=r,D2.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=ku(i,this.staticRulesId);else{var o=Z1(Uu(this.rules,t,n,r)),s=Y1(Ru(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,s)){var u=r(o,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,u)}i=ku(i,s),this.staticRulesId=s}else{for(var l=Ru(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=Ru(l,m));else if(m){var g=Z1(Uu(m,t,n,r));l=Ru(l,g+h),d+=g}}if(d){var b=Y1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=ku(i,b)}}return i},e}(),Yf=T.createContext(void 0);Yf.Consumer;function CK(){var e=T.useContext(Yf);if(!e)throw gs(18);return e}function SK(e){var t=T.useContext(Yf),n=T.useMemo(function(){return function(r,i){if(!r)throw gs(14);if(Yu(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw gs(7);return o}if(Array.isArray(r)||typeof r!="object")throw gs(8);return i?Hr(Hr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?T.createElement(Yf.Provider,{value:n},e.children):null}var dv={},rC=new Set;function EK(e,t,n){var r=F4(e),i=e,o=!fv(e),s=t.attrs,u=s===void 0?bm:s,l=t.componentId,d=l===void 0?function(O,R){var k=typeof O!="string"?"sc":Gw(O);dv[k]=(dv[k]||0)+1;var j="".concat(k,"-").concat(b2(ym+k+dv[k]));return R?"".concat(R,"-").concat(j):j}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(O){return fv(O)?"styled.".concat(O):"Styled(".concat(x2(O),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Gw(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,$=t.shouldForwardProp;if(r&&i.shouldForwardProp){var C=i.shouldForwardProp;if(t.shouldForwardProp){var A=t.shouldForwardProp;$=function(O,R){return C(O,R)&&A(O,R)}}else $=C}var S=new wK(n,g,r?i.componentStyle:void 0);function w(O,R){return function(k,j,M){var ue=k.attrs,ae=k.componentStyle,W=k.defaultProps,De=k.foldedComponentIds,q=k.styledComponentId,K=k.target,ne=T.useContext(Yf),U=tC(),N=k.shouldForwardProp||U.shouldForwardProp;process.env.NODE_ENV!=="production"&&T.useDebugValue(q);var I=Uj(j,ne,W)||nc,de=function(Le,Je,Qe){for(var ye,Ne=Hr(Hr({},Je),{className:void 0,theme:Qe}),He=0;He<Le.length;He+=1){var Ke=Yu(ye=Le[He])?ye(Ne):ye;for(var Be in Ke)Ne[Be]=Be==="className"?ku(Ne[Be],Ke[Be]):Be==="style"?Hr(Hr({},Ne[Be]),Ke[Be]):Ke[Be]}return Je.className&&(Ne.className=ku(Ne.className,Je.className)),Ne}(ue,j,I),se=de.as||K,ie={};for(var Ae in de)de[Ae]===void 0||Ae[0]==="$"||Ae==="as"||Ae==="theme"&&de.theme===I||(Ae==="forwardedAs"?ie.as=de.forwardedAs:N&&!N(Ae,se)||(ie[Ae]=de[Ae],N||process.env.NODE_ENV!=="development"||$j(Ae)||rC.has(Ae)||!G1.has(se)||(rC.add(Ae),console.warn('styled-components: it looks like an unknown prop "'.concat(Ae,'" 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 Pe=function(Le,Je){var Qe=tC(),ye=Le.generateAndInjectStyles(Je,Qe.styleSheet,Qe.stylis);return process.env.NODE_ENV!=="production"&&T.useDebugValue(ye),ye}(ae,de);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(Pe);var Ie=ku(De,q);return Pe&&(Ie+=" "+Pe),de.className&&(Ie+=" "+de.className),ie[fv(se)&&!G1.has(se)?"class":"className"]=Ie,M&&(ie.ref=M),T.createElement(se,ie)}(D,O,R)}w.displayName=m;var D=T.forwardRef(w);return D.attrs=b,D.componentStyle=S,D.displayName=m,D.shouldForwardProp=$,D.foldedComponentIds=r?ku(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=g,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(R){for(var k=[],j=1;j<arguments.length;j++)k[j-1]=arguments[j];for(var M=0,ue=k;M<ue.length;M++)X1(R,ue[M],!0);return R}({},i.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(Kj(m,g),D.warnTooManyClasses=function(O,R){var k={},j=!1;return function(M){if(!j&&(k[M]=!0,Object.keys(k).length>=200)){var ue=R?' with the id of "'.concat(R,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(ue,`.
|
|
46
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
47
|
-
Example:
|
|
48
|
-
const Component = styled.div.attrs(props => ({
|
|
49
|
-
style: {
|
|
50
|
-
background: props.background,
|
|
51
|
-
},
|
|
52
|
-
}))\`width: 100%;\`
|
|
53
|
-
|
|
54
|
-
<Component />`),j=!0,k={}}}}(m,g)),k4(D,function(){return".".concat(D.styledComponentId)}),o&&S2(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function iC(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 oC=function(e){return Object.assign(e,{isCss:!0})};function O4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Yu(e)||rc(e))return oC(Uu(iC(bm,Hu([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Uu(r):oC(Uu(iC(r,t)))}function eb(e,t,n){if(n===void 0&&(n=nc),!t)throw gs(1,t);var r=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,n,O4.apply(void 0,Hu([i],o,!1)))};return r.attrs=function(i){return eb(e,t,Hr(Hr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return eb(e,t,Hr(Hr({},n),i))},r}var R2=function(e){return eb(EK,e)},M2=R2;G1.forEach(function(e){M2[e]=R2(e)});function DK(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=Z1(O4.apply(void 0,Hu([e],t,!1))),i=b2(r);return new Q1(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
55
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
56
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Mh="__sc-".concat(Gu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Mh]||(window[Mh]=0),window[Mh]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
57
|
-
|
|
58
|
-
See https://s-c.sh/2BAXzed for more info.`),window[Mh]+=1);function xm(){return typeof window<"u"}function Ec(e){return F2(e)?(e.nodeName||"").toLowerCase():"#document"}function $i(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ws(e){var t;return(t=(F2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function F2(e){return xm()?e instanceof Node||e instanceof $i(e).Node:!1}function pr(e){return xm()?e instanceof Element||e instanceof $i(e).Element:!1}function fo(e){return xm()?e instanceof HTMLElement||e instanceof $i(e).HTMLElement:!1}function tb(e){return!xm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $i(e).ShadowRoot}function xd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Io(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function AK(e){return["table","td","th"].includes(Ec(e))}function $m(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function I4(e){const t=L4(),n=pr(e)?Io(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TK(e){let t=Qa(e);for(;fo(t)&&!ic(t);){if(I4(t))return t;if($m(t))return null;t=Qa(t)}return null}function L4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ic(e){return["html","body","#document"].includes(Ec(e))}function Io(e){return $i(e).getComputedStyle(e)}function wm(e){return pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qa(e){if(Ec(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tb(e)&&e.host||ws(e);return tb(t)?t.host:t}function k2(e){const t=Qa(e);return ic(t)?e.ownerDocument?e.ownerDocument.body:e.body:fo(t)&&xd(t)?t:k2(t)}function Zf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=k2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=$i(i);if(o){const u=nb(s);return t.concat(s,s.visualViewport||[],xd(i)?i:[],u&&n?Zf(u):[])}return t.concat(i,Zf(i,[],n))}function nb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sC(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 rb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&tb(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function O2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function I2(){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 PK(e){return MK()?!1:!aC()&&e.width===0&&e.height===0||aC()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function _K(){return/apple/i.test(navigator.vendor)}function aC(){const e=/android/i;return e.test(O2())||e.test(I2())}function RK(){return O2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function MK(){return I2().includes("jsdom/")}function ib(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Sf(e){return(e==null?void 0:e.ownerDocument)||document}function FK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const kK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function OK(e){return fo(e)&&e.matches(kK)}const Ep=Math.min,zu=Math.max,Dp=Math.round,Fh=Math.floor,vs=e=>({x:e,y:e}),IK={left:"right",right:"left",bottom:"top",top:"bottom"},LK={start:"end",end:"start"};function uC(e,t,n){return zu(e,Ep(t,n))}function Cm(e,t){return typeof e=="function"?e(t):e}function Zu(e){return e.split("-")[0]}function Sm(e){return e.split("-")[1]}function L2(e){return e==="x"?"y":"x"}function B2(e){return e==="y"?"height":"width"}function oc(e){return["top","bottom"].includes(Zu(e))?"y":"x"}function V2(e){return L2(oc(e))}function BK(e,t,n){n===void 0&&(n=!1);const r=Sm(e),i=V2(e),o=B2(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ap(s)),[s,Ap(s)]}function VK(e){const t=Ap(e);return[ob(e),t,ob(t)]}function ob(e){return e.replace(/start|end/g,t=>LK[t])}function NK(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function jK(e,t,n,r){const i=Sm(e);let o=NK(Zu(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ob)))),o}function Ap(e){return e.replace(/left|right|bottom|top/g,t=>IK[t])}function KK(e){return{top:0,right:0,bottom:0,left:0,...e}}function UK(e){return typeof e!="number"?KK(e):{top:e,right:e,bottom:e,left:e}}function Tp(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 lC(e,t,n){let{reference:r,floating:i}=e;const o=oc(t),s=V2(t),u=B2(s),l=Zu(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Sm(t)){case"start":b[s]-=g*(n&&d?-1:1);break;case"end":b[s]+=g*(n&&d?-1:1);break}return b}const zK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,u=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=lC(d,r,l),g=r,b={},$=0;for(let C=0;C<u.length;C++){const{name:A,fn:S}=u[C],{x:w,y:D,data:O,reset:R}=await S({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});h=w??h,m=D??m,b={...b,[A]:{...b[A],...O}},R&&$<=50&&($++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(d=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:h,y:m}=lC(d,g,l)),C=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function N2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Cm(t,e),$=UK(b),A=u[g?m==="floating"?"reference":"floating":m],S=Tp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:l})),w=m==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),O=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},R=Tp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:D,strategy:l}):w);return{top:(S.top-R.top+$.top)/O.y,bottom:(R.bottom-S.bottom+$.bottom)/O.y,left:(S.left-R.left+$.left)/O.x,right:(R.right-S.right+$.right)/O.x}}const qK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:C=!0,...A}=Cm(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=Zu(i),w=oc(u),D=Zu(u)===u,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),R=g||(D||!C?[Ap(u)]:VK(u)),k=$!=="none";!g&&k&&R.push(...jK(u,C,$,O));const j=[u,...R],M=await N2(t,A),ue=[];let ae=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&ue.push(M[S]),m){const K=BK(i,s,O);ue.push(M[K[0]],M[K[1]])}if(ae=[...ae,{placement:i,overflows:ue}],!ue.every(K=>K<=0)){var W,De;const K=(((W=o.flip)==null?void 0:W.index)||0)+1,ne=j[K];if(ne)return{data:{index:K,overflows:ae},reset:{placement:ne}};let U=(De=ae.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])==null?void 0:De.placement;if(!U)switch(b){case"bestFit":{var q;const N=(q=ae.filter(I=>{if(k){const de=oc(I.placement);return de===w||de==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(de=>de>0).reduce((de,se)=>de+se,0)]).sort((I,de)=>I[1]-de[1])[0])==null?void 0:q[0];N&&(U=N);break}case"initialPlacement":U=u;break}if(i!==U)return{reset:{placement:U}}}return{}}}};async function WK(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Zu(n),u=Sm(n),l=oc(n)==="y",d=["left","top"].includes(s)?-1:1,h=o&&l?-1:1,m=Cm(t,e);let{mainAxis:g,crossAxis:b,alignmentAxis:$}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof $=="number"&&(b=u==="end"?$*-1:$),l?{x:b*h,y:g*d}:{x:g*d,y:b*h}}const HK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:u}=t,l=await WK(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},GK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:u={fn:A=>{let{x:S,y:w}=A;return{x:S,y:w}}},...l}=Cm(e,t),d={x:n,y:r},h=await N2(t,l),m=oc(Zu(i)),g=L2(m);let b=d[g],$=d[m];if(o){const A=g==="y"?"top":"left",S=g==="y"?"bottom":"right",w=b+h[A],D=b-h[S];b=uC(w,b,D)}if(s){const A=m==="y"?"top":"left",S=m==="y"?"bottom":"right",w=$+h[A],D=$-h[S];$=uC(w,$,D)}const C=u.fn({...t,[g]:b,[m]:$});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[g]:o,[m]:s}}}}}};function j2(e){const t=Io(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=fo(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=Dp(n)!==o||Dp(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function B4(e){return pr(e)?e:e.contextElement}function ql(e){const t=B4(e);if(!fo(t))return vs(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=j2(t);let s=(o?Dp(n.width):n.width)/r,u=(o?Dp(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const YK=vs(0);function K2(e){const t=$i(e);return!L4()||!t.visualViewport?YK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$i(e)?!1:t}function Xu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=B4(e);let s=vs(1);t&&(r?pr(r)&&(s=ql(r)):s=ql(e));const u=ZK(o,n,r)?K2(o):vs(0);let l=(i.left+u.x)/s.x,d=(i.top+u.y)/s.y,h=i.width/s.x,m=i.height/s.y;if(o){const g=$i(o),b=r&&pr(r)?$i(r):r;let $=g,C=nb($);for(;C&&r&&b!==$;){const A=ql(C),S=C.getBoundingClientRect(),w=Io(C),D=S.left+(C.clientLeft+parseFloat(w.paddingLeft))*A.x,O=S.top+(C.clientTop+parseFloat(w.paddingTop))*A.y;l*=A.x,d*=A.y,h*=A.x,m*=A.y,l+=D,d+=O,$=$i(C),C=nb($)}}return Tp({width:h,height:m,x:l,y:d})}function V4(e,t){const n=wm(e).scrollLeft;return t?t.left+n:Xu(ws(e)).left+n}function U2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:V4(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function XK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ws(r),u=t?$m(t.floating):!1;if(r===s||u&&o)return n;let l={scrollLeft:0,scrollTop:0},d=vs(1);const h=vs(0),m=fo(r);if((m||!m&&!o)&&((Ec(r)!=="body"||xd(s))&&(l=wm(r)),fo(r))){const b=Xu(r);d=ql(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=s&&!m&&!o?U2(s,l,!0):vs(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 JK(e){return Array.from(e.getClientRects())}function QK(e){const t=ws(e),n=wm(e),r=e.ownerDocument.body,i=zu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=zu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+V4(e);const u=-n.scrollTop;return Io(r).direction==="rtl"&&(s+=zu(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:u}}function eU(e,t){const n=$i(e),r=ws(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,u=0,l=0;if(i){o=i.width,s=i.height;const d=L4();(!d||d&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:u,y:l}}function tU(e,t){const n=Xu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=fo(e)?ql(e):vs(1),s=e.clientWidth*o.x,u=e.clientHeight*o.y,l=i*o.x,d=r*o.y;return{width:s,height:u,x:l,y:d}}function cC(e,t,n){let r;if(t==="viewport")r=eU(e,n);else if(t==="document")r=QK(ws(e));else if(pr(t))r=tU(t,n);else{const i=K2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Tp(r)}function z2(e,t){const n=Qa(e);return n===t||!pr(n)||ic(n)?!1:Io(n).position==="fixed"||z2(n,t)}function nU(e,t){const n=t.get(e);if(n)return n;let r=Zf(e,[],!1).filter(u=>pr(u)&&Ec(u)!=="body"),i=null;const o=Io(e).position==="fixed";let s=o?Qa(e):e;for(;pr(s)&&!ic(s);){const u=Io(s),l=I4(s);!l&&u.position==="fixed"&&(i=null),(o?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||xd(s)&&!l&&z2(e,s))?r=r.filter(h=>h!==s):i=u,s=Qa(s)}return t.set(e,r),r}function rU(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?$m(t)?[]:nU(t,this._c):[].concat(n),r],u=s[0],l=s.reduce((d,h)=>{const m=cC(t,h,i);return d.top=zu(m.top,d.top),d.right=Ep(m.right,d.right),d.bottom=Ep(m.bottom,d.bottom),d.left=zu(m.left,d.left),d},cC(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iU(e){const{width:t,height:n}=j2(e);return{width:t,height:n}}function oU(e,t,n){const r=fo(t),i=ws(t),o=n==="fixed",s=Xu(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const l=vs(0);if(r||!r&&!o)if((Ec(t)!=="body"||xd(i))&&(u=wm(t)),r){const g=Xu(t,!0,o,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&(l.x=V4(i));const d=i&&!r&&!o?U2(i,u):vs(0),h=s.left+u.scrollLeft-l.x-d.x,m=s.top+u.scrollTop-l.y-d.y;return{x:h,y:m,width:s.width,height:s.height}}function hv(e){return Io(e).position==="static"}function fC(e,t){if(!fo(e)||Io(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ws(e)===n&&(n=n.ownerDocument.body),n}function q2(e,t){const n=$i(e);if($m(e))return n;if(!fo(e)){let i=Qa(e);for(;i&&!ic(i);){if(pr(i)&&!hv(i))return i;i=Qa(i)}return n}let r=fC(e,t);for(;r&&AK(r)&&hv(r);)r=fC(r,t);return r&&ic(r)&&hv(r)&&!I4(r)?n:r||TK(e)||n}const sU=async function(e){const t=this.getOffsetParent||q2,n=this.getDimensions,r=await n(e.floating);return{reference:oU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function aU(e){return Io(e).direction==="rtl"}const uU={convertOffsetParentRelativeRectToViewportRelativeRect:XK,getDocumentElement:ws,getClippingRect:rU,getOffsetParent:q2,getElementRects:sU,getClientRects:JK,getDimensions:iU,getScale:ql,isElement:pr,isRTL:aU};function W2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lU(e,t){let n=null,r;const i=ws(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(u||t(),!g||!b)return;const $=Fh(m),C=Fh(i.clientWidth-(h+g)),A=Fh(i.clientHeight-(m+b)),S=Fh(h),D={rootMargin:-$+"px "+-C+"px "+-A+"px "+-S+"px",threshold:zu(0,Ep(1,l))||1};let O=!0;function R(k){const j=k[0].intersectionRatio;if(j!==l){if(!O)return s();j?s(!1,j):r=setTimeout(()=>{s(!1,1e-7)},1e3)}j===1&&!W2(d,e.getBoundingClientRect())&&s(),O=!1}try{n=new IntersectionObserver(R,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(R,D)}n.observe(e)}return s(!0),o}function cU(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=B4(e),h=i||o?[...d?Zf(d):[],...Zf(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const m=d&&u?lU(d,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(S=>{let[w]=S;w&&w.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=b)==null||D.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let $,C=l?Xu(e):null;l&&A();function A(){const S=Xu(e);C&&!W2(C,S)&&n(),C=S,$=requestAnimationFrame(A)}return n(),()=>{var S;h.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,l&&cancelAnimationFrame($)}}const fU=HK,dU=GK,hU=qK,pU=(e,t,n)=>{const r=new Map,i={platform:uU,...n},o={...i.platform,_c:r};return zK(e,t,{...i,platform:o})};var op=typeof document<"u"?T.useLayoutEffect:T.useEffect;function Pp(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(!Pp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Pp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function H2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dC(e,t){const n=H2(e);return Math.round(t*n)/n}function pv(e){const t=et.useRef(e);return op(()=>{t.current=e}),t}function G2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:u=!0,whileElementsMounted:l,open:d}=e,[h,m]=et.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=et.useState(r);Pp(g,r)||b(r);const[$,C]=et.useState(null),[A,S]=et.useState(null),w=et.useCallback(I=>{I!==k.current&&(k.current=I,C(I))},[]),D=et.useCallback(I=>{I!==j.current&&(j.current=I,S(I))},[]),O=o||$,R=s||A,k=et.useRef(null),j=et.useRef(null),M=et.useRef(h),ue=l!=null,ae=pv(l),W=pv(i),De=pv(d),q=et.useCallback(()=>{if(!k.current||!j.current)return;const I={placement:t,strategy:n,middleware:g};W.current&&(I.platform=W.current),pU(k.current,j.current,I).then(de=>{const se={...de,isPositioned:De.current!==!1};K.current&&!Pp(M.current,se)&&(M.current=se,Qh.flushSync(()=>{m(se)}))})},[g,t,n,W,De]);op(()=>{d===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,m(I=>({...I,isPositioned:!1})))},[d]);const K=et.useRef(!1);op(()=>(K.current=!0,()=>{K.current=!1}),[]),op(()=>{if(O&&(k.current=O),R&&(j.current=R),O&&R){if(ae.current)return ae.current(O,R,q);q()}},[O,R,q,ae,ue]);const ne=et.useMemo(()=>({reference:k,floating:j,setReference:w,setFloating:D}),[w,D]),U=et.useMemo(()=>({reference:O,floating:R}),[O,R]),N=et.useMemo(()=>{const I={position:n,left:0,top:0};if(!U.floating)return I;const de=dC(U.floating,h.x),se=dC(U.floating,h.y);return u?{...I,transform:"translate("+de+"px, "+se+"px)",...H2(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:de,top:se}},[n,u,U.floating,h.x,h.y]);return et.useMemo(()=>({...h,update:q,refs:ne,elements:U,floatingStyles:N}),[h,q,ne,U,N])}const mU=(e,t)=>({...fU(e),options:[e,t]}),gU=(e,t)=>({...dU(e),options:[e,t]}),vU=(e,t)=>({...hU(e),options:[e,t]}),Y2={...et},yU=Y2.useInsertionEffect,bU=yU||(e=>e());function sp(e){const t=et.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return bU(()=>{t.current=e}),et.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var sc=typeof document<"u"?T.useLayoutEffect:T.useEffect;let hC=!1,xU=0;const pC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xU++;function $U(){const[e,t]=et.useState(()=>hC?pC():void 0);return sc(()=>{e==null&&t(pC())},[]),et.useEffect(()=>{hC=!0},[]),e}const wU=Y2.useId,Z2=wU||$U;let sb;process.env.NODE_ENV!=="production"&&(sb=new Set);function CU(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=sb)!=null&&e.has(i))){var o;(o=sb)==null||o.add(i),console.error(i)}}function SU(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const EU=et.createContext(null),DU=et.createContext(null),N4=()=>{var e;return((e=et.useContext(EU))==null?void 0:e.id)||null},X2=()=>et.useContext(DU);function J2(e){return"data-floating-ui-"+e}function mv(e){const t=T.useRef(e);return sc(()=>{t.current=e}),t}const mC=J2("safe-polygon");function gv(e,t,n){return n&&!ib(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function AU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=X2(),$=N4(),C=mv(d),A=mv(l),S=mv(n),w=et.useRef(),D=et.useRef(-1),O=et.useRef(),R=et.useRef(-1),k=et.useRef(!0),j=et.useRef(!1),M=et.useRef(()=>{}),ue=et.useRef(!1),ae=et.useCallback(()=>{var N;const I=(N=i.current.openEvent)==null?void 0:N.type;return(I==null?void 0:I.includes("mouse"))&&I!=="mousedown"},[i]);et.useEffect(()=>{if(!u)return;function N(I){let{open:de}=I;de||(clearTimeout(D.current),clearTimeout(R.current),k.current=!0,ue.current=!1)}return o.on("openchange",N),()=>{o.off("openchange",N)}},[u,o]),et.useEffect(()=>{if(!u||!C.current||!n)return;function N(de){ae()&&r(!1,de,"hover")}const I=Sf(s.floating).documentElement;return I.addEventListener("mouseleave",N),()=>{I.removeEventListener("mouseleave",N)}},[s.floating,n,r,u,C,ae]);const W=et.useCallback(function(N,I,de){I===void 0&&(I=!0),de===void 0&&(de="hover");const se=gv(A.current,"close",w.current);se&&!O.current?(clearTimeout(D.current),D.current=window.setTimeout(()=>r(!1,N,de),se)):I&&(clearTimeout(D.current),r(!1,N,de))},[A,r]),De=sp(()=>{M.current(),O.current=void 0}),q=sp(()=>{if(j.current){const N=Sf(s.floating).body;N.style.pointerEvents="",N.removeAttribute(mC),j.current=!1}}),K=sp(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);et.useEffect(()=>{if(!u)return;function N(ie){if(clearTimeout(D.current),k.current=!1,h&&!ib(w.current)||m>0&&!gv(A.current,"open"))return;const Ae=gv(A.current,"open",w.current);Ae?D.current=window.setTimeout(()=>{S.current||r(!0,ie,"hover")},Ae):n||r(!0,ie,"hover")}function I(ie){if(K())return;M.current();const Ae=Sf(s.floating);if(clearTimeout(R.current),ue.current=!1,C.current&&i.current.floatingContext){n||clearTimeout(D.current),O.current=C.current({...i.current.floatingContext,tree:b,x:ie.clientX,y:ie.clientY,onClose(){q(),De(),K()||W(ie,!0,"safe-polygon")}});const Ie=O.current;Ae.addEventListener("mousemove",Ie),M.current=()=>{Ae.removeEventListener("mousemove",Ie)};return}(w.current==="touch"?!rb(s.floating,ie.relatedTarget):!0)&&W(ie)}function de(ie){K()||i.current.floatingContext&&(C.current==null||C.current({...i.current.floatingContext,tree:b,x:ie.clientX,y:ie.clientY,onClose(){q(),De(),K()||W(ie)}})(ie))}if(pr(s.domReference)){var se;const ie=s.domReference;return n&&ie.addEventListener("mouseleave",de),(se=s.floating)==null||se.addEventListener("mouseleave",de),g&&ie.addEventListener("mousemove",N,{once:!0}),ie.addEventListener("mouseenter",N),ie.addEventListener("mouseleave",I),()=>{var Ae;n&&ie.removeEventListener("mouseleave",de),(Ae=s.floating)==null||Ae.removeEventListener("mouseleave",de),g&&ie.removeEventListener("mousemove",N),ie.removeEventListener("mouseenter",N),ie.removeEventListener("mouseleave",I)}}},[s,u,e,h,m,g,W,De,q,r,n,S,b,A,C,i,K]),sc(()=>{var N;if(u&&n&&(N=C.current)!=null&&N.__options.blockPointerEvents&&ae()){j.current=!0;const de=s.floating;if(pr(s.domReference)&&de){var I;const se=Sf(s.floating).body;se.setAttribute(mC,"");const ie=s.domReference,Ae=b==null||(I=b.nodesRef.current.find(Pe=>Pe.id===$))==null||(I=I.context)==null?void 0:I.elements.floating;return Ae&&(Ae.style.pointerEvents=""),se.style.pointerEvents="none",ie.style.pointerEvents="auto",de.style.pointerEvents="auto",()=>{se.style.pointerEvents="",ie.style.pointerEvents="",de.style.pointerEvents=""}}}},[u,n,$,s,b,C,ae]),sc(()=>{n||(w.current=void 0,ue.current=!1,De(),q())},[n,De,q]),et.useEffect(()=>()=>{De(),clearTimeout(D.current),clearTimeout(R.current),q()},[u,s.domReference,De,q]);const ne=et.useMemo(()=>{function N(I){w.current=I.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(I){const{nativeEvent:de}=I;function se(){!k.current&&!S.current&&r(!0,de,"hover")}h&&!ib(w.current)||n||m===0||ue.current&&I.movementX**2+I.movementY**2<2||(clearTimeout(R.current),w.current==="touch"?se():(ue.current=!0,R.current=window.setTimeout(se,m)))}}},[h,r,n,S,m]),U=et.useMemo(()=>({onMouseEnter(){clearTimeout(D.current)},onMouseLeave(N){K()||W(N.nativeEvent,!1)}}),[W,K]);return et.useMemo(()=>u?{reference:ne,floating:U}:{},[u,ne,U])}const TU="data-floating-ui-focusable";function PU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Z2(),o=et.useRef({}),[s]=et.useState(()=>SU()),u=N4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!pr(b)&&CU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=et.useState(r.reference),h=sp((b,$,C)=>{o.current.openEvent=b?$:void 0,s.emit("openchange",{open:b,event:$,reason:C,nested:u}),n==null||n(b,$,C)}),m=et.useMemo(()=>({setPositionReference:d}),[]),g=et.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return et.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:s,floatingId:i,refs:m}),[t,h,g,s,i,m])}function _U(e){e===void 0&&(e={});const{nodeId:t}=e,n=PU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=et.useState(null),[u,l]=et.useState(null),h=(i==null?void 0:i.domReference)||o,m=et.useRef(null),g=X2();sc(()=>{h&&(m.current=h)},[h]);const b=G2({...e,elements:{...i,...u&&{reference:u}}}),$=et.useCallback(D=>{const O=pr(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),contextElement:D}:D;l(O),b.refs.setReference(O)},[b.refs]),C=et.useCallback(D=>{(pr(D)||D===null)&&(m.current=D,s(D)),(pr(b.refs.reference.current)||b.refs.reference.current===null||D!==null&&!pr(D))&&b.refs.setReference(D)},[b.refs]),A=et.useMemo(()=>({...b.refs,setReference:C,setPositionReference:$,domReference:m}),[b.refs,C,$]),S=et.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),w=et.useMemo(()=>({...b,...r,refs:A,elements:S,nodeId:t}),[b,A,S,t,r]);return sc(()=>{r.dataRef.current.floatingContext=w;const D=g==null?void 0:g.nodesRef.current.find(O=>O.id===t);D&&(D.context=w)}),et.useMemo(()=>({...b,context:w,refs:A,elements:S}),[b,A,S,w])}function RU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:s}=e,{enabled:u=!0,visibleOnly:l=!0}=t,d=et.useRef(!1),h=et.useRef(),m=et.useRef(!0);et.useEffect(()=>{if(!u)return;const b=$i(s.domReference);function $(){!n&&fo(s.domReference)&&s.domReference===sC(Sf(s.domReference))&&(d.current=!0)}function C(){m.current=!0}return b.addEventListener("blur",$),b.addEventListener("keydown",C,!0),()=>{b.removeEventListener("blur",$),b.removeEventListener("keydown",C,!0)}},[s.domReference,n,u]),et.useEffect(()=>{if(!u)return;function b($){let{reason:C}=$;(C==="reference-press"||C==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,u]),et.useEffect(()=>()=>{clearTimeout(h.current)},[]);const g=et.useMemo(()=>({onPointerDown(b){PK(b.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const $=FK(b.nativeEvent);if(l&&pr($))try{if(_K()&&RK())throw Error();if(!$.matches(":focus-visible"))return}catch{if(!m.current&&!OK($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const $=b.relatedTarget,C=b.nativeEvent,A=pr($)&&$.hasAttribute(J2("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const w=sC(s.domReference?s.domReference.ownerDocument:document);!$&&w===s.domReference||rb((S=o.current.floatingContext)==null?void 0:S.refs.floating.current,w)||rb(s.domReference,w)||A||r(!1,C,"focus")})}}),[o,s.domReference,r,l]);return et.useMemo(()=>u?{reference:g}:{},[u,g])}const gC="active",vC="selected";function vv(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[gC]:s,[vC]:u,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[TU]:""},...o,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(l=>{let[d,h]=l;if(!(i&&[gC,vC].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),s[d]=function(){for(var g,b=arguments.length,$=new Array(b),C=0;C<b;C++)$[C]=arguments[C];return(g=r.get(d))==null?void 0:g.map(A=>A(...$)).find(A=>A!==void 0)}}}else s[d]=h}),s),{})}}function MU(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=et.useCallback(u=>vv(u,e,"reference"),t),o=et.useCallback(u=>vv(u,e,"floating"),n),s=et.useCallback(u=>vv(u,e,"item"),r);return et.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const FU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,u=(n=FU.get(s))!=null?n:s,l=Z2(),h=N4()!=null,m=et.useMemo(()=>u==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?i:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:l},...u==="menu"&&h&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[u,i,h,r,l,s]),g=et.useMemo(()=>{const $={id:i,...u&&{role:u}};return u==="tooltip"||s==="label"?$:{...$,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,s]),b=et.useCallback($=>{let{active:C,selected:A}=$;const S={role:"option",...C&&{id:i+"-option"}};switch(s){case"select":return{...S,"aria-selected":C&&A};case"combobox":return{...S,...C&&{"aria-selected":!0}}}return{}},[i,s]);return et.useMemo(()=>o?{reference:m,floating:g,item:b}:{},[o,m,g,b])}var Ef={exports:{}};/**
|
|
59
|
-
* @license
|
|
60
|
-
* Lodash <https://lodash.com/>
|
|
61
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
62
|
-
* Released under MIT license <https://lodash.com/license>
|
|
63
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
64
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
65
|
-
*/var OU=Ef.exports,yC;function IU(){return yC||(yC=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,$=1,C=2,A=1,S=2,w=4,D=8,O=16,R=32,k=64,j=128,M=256,ue=512,ae=30,W="...",De=800,q=16,K=1,ne=2,U=3,N=1/0,I=9007199254740991,de=17976931348623157e292,se=NaN,ie=4294967295,Ae=ie-1,Pe=ie>>>1,Ie=[["ary",j],["bind",A],["bindKey",S],["curry",D],["curryRight",O],["flip",ue],["partial",R],["partialRight",k],["rearg",M]],Le="[object Arguments]",Je="[object Array]",Qe="[object AsyncFunction]",ye="[object Boolean]",Ne="[object Date]",He="[object DOMException]",Ke="[object Error]",Be="[object Function]",st="[object GeneratorFunction]",Dt="[object Map]",ln="[object Number]",At="[object Null]",It="[object Object]",we="[object Promise]",Se="[object Proxy]",Re="[object RegExp]",Ge="[object Set]",rt="[object String]",nt="[object Symbol]",dt="[object Undefined]",Et="[object WeakMap]",$n="[object WeakSet]",en="[object ArrayBuffer]",Gt="[object DataView]",Lr="[object Float32Array]",Pr="[object Float64Array]",Yt="[object Int8Array]",kt="[object Int16Array]",jt="[object Int32Array]",tn="[object Uint8Array]",Xn="[object Uint8ClampedArray]",Ei="[object Uint16Array]",li="[object Uint32Array]",ci=/\b__p \+= '';/g,Yr=/\b(__p \+=) '' \+/g,Uo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ct=/&(?:amp|lt|gt|quot|#39);/g,_r=/[&<>"']/g,Di=RegExp(Ct.source),Ss=RegExp(_r.source),ma=/<%-([\s\S]+?)%>/g,au=/<%([\s\S]+?)%>/g,ga=/<%=([\s\S]+?)%>/g,po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,va=/^\w*$/,Ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ti=/[\\^$.*+?()[\]{}|]/g,wt=RegExp(Ti.source),An=/^\s+/,mo=/\s/,ya=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mr=/\{\n\/\* \[wrapped with (.+)\] \*/,ba=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uu=/[()=,{}\[\]\/\s]/,Br=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yn=/\w*$/,Pi=/^[-+]0x[0-9a-f]+$/i,Zr=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,Es=/^0o[0-7]+$/i,Vi=/^(?:0|[1-9]\d*)$/,Xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tn=/($^)/,go=/['\n\r\u2028\u2029\\]/g,Ht="\\ud800-\\udfff",lu="\\u0300-\\u036f",Ds="\\ufe20-\\ufe2f",cu="\\u20d0-\\u20ff",zo=lu+Ds+cu,Ni="\\u2700-\\u27bf",As="a-z\\xdf-\\xf6\\xf8-\\xff",Ts="\\xac\\xb1\\xd7\\xf7",xa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$a="\\u2000-\\u206f",fu=" \\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",wa="A-Z\\xc0-\\xd6\\xd8-\\xde",qo="\\ufe0e\\ufe0f",Ps=Ts+xa+$a+fu,vo="['’]",Ca="["+Ht+"]",Sa="["+Ps+"]",Mr="["+zo+"]",gr="\\d+",te="["+Ni+"]",Te="["+As+"]",Ve="[^"+Ht+Ps+gr+Ni+As+wa+"]",We="\\ud83c[\\udffb-\\udfff]",ct="(?:"+Mr+"|"+We+")",Bt="[^"+Ht+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+wa+"]",Pn="\\u200d",ur="(?:"+Te+"|"+Ve+")",lr="(?:"+Zt+"|"+Ve+")",on="(?:"+vo+"(?:d|ll|m|re|s|t|ve))?",xr="(?:"+vo+"(?:D|LL|M|RE|S|T|VE))?",yo=ct+"?",Wo="["+qo+"]?",_s="(?:"+Pn+"(?:"+[Bt,St,Tt].join("|")+")"+Wo+yo+")*",Jr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",du="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ho=Wo+yo+_s,Go="(?:"+[te,St,Tt].join("|")+")"+Ho,Rs="(?:"+[Bt+Mr+"?",Mr,St,Tt,Ca].join("|")+")",bo=RegExp(vo,"g"),Ms=RegExp(Mr,"g"),Ea=RegExp(We+"(?="+We+")|"+Rs+Ho,"g"),fl=RegExp([Zt+"?"+Te+"+"+on+"(?="+[Sa,Zt,"$"].join("|")+")",lr+"+"+xr+"(?="+[Sa,Zt+ur,"$"].join("|")+")",Zt+"?"+ur+"+"+on,Zt+"+"+xr,du,Jr,gr,Go].join("|"),"g"),Kc=RegExp("["+Pn+Ht+zo+qo+"]"),Fs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ks=-1,sn={};sn[Lr]=sn[Pr]=sn[Yt]=sn[kt]=sn[jt]=sn[tn]=sn[Xn]=sn[Ei]=sn[li]=!0,sn[Le]=sn[Je]=sn[en]=sn[ye]=sn[Gt]=sn[Ne]=sn[Ke]=sn[Be]=sn[Dt]=sn[ln]=sn[It]=sn[Re]=sn[Ge]=sn[rt]=sn[Et]=!1;var fn={};fn[Le]=fn[Je]=fn[en]=fn[Gt]=fn[ye]=fn[Ne]=fn[Lr]=fn[Pr]=fn[Yt]=fn[kt]=fn[jt]=fn[Dt]=fn[ln]=fn[It]=fn[Re]=fn[Ge]=fn[rt]=fn[nt]=fn[tn]=fn[Xn]=fn[Ei]=fn[li]=!0,fn[Ke]=fn[Be]=fn[Et]=!1;var le={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Me={"&":"&","<":"<",">":">",'"':""","'":"'"},Ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},bt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fn=parseFloat,vr=parseInt,$r=typeof so=="object"&&so&&so.Object===Object&&so,Jn=typeof self=="object"&&self&&self.Object===Object&&self,Bn=$r||Jn||Function("return this")(),ji=t&&!t.nodeType&&t,Ki=ji&&!0&&e&&!e.nodeType&&e,hu=Ki&&Ki.exports===ji,Da=hu&&$r.process,wr=function(){try{var F=Ki&&Ki.require&&Ki.require("util").types;return F||Da&&Da.binding&&Da.binding("util")}catch{}}(),Os=wr&&wr.isArrayBuffer,eh=wr&&wr.isDate,th=wr&&wr.isMap,zc=wr&&wr.isRegExp,Aa=wr&&wr.isSet,xo=wr&&wr.isTypedArray;function Hn(F,ee,Y){switch(Y.length){case 0:return F.call(ee);case 1:return F.call(ee,Y[0]);case 2:return F.call(ee,Y[0],Y[1]);case 3:return F.call(ee,Y[0],Y[1],Y[2])}return F.apply(ee,Y)}function Yo(F,ee,Y,pe){for(var he=-1,H=F==null?0:F.length;++he<H;){var Z=F[he];ee(pe,Z,Y(Z),F)}return pe}function Sn(F,ee){for(var Y=-1,pe=F==null?0:F.length;++Y<pe&&ee(F[Y],Y,F)!==!1;);return F}function Cr(F,ee){for(var Y=F==null?0:F.length;Y--&&ee(F[Y],Y,F)!==!1;);return F}function Is(F,ee){for(var Y=-1,pe=F==null?0:F.length;++Y<pe;)if(!ee(F[Y],Y,F))return!1;return!0}function Vr(F,ee){for(var Y=-1,pe=F==null?0:F.length,he=0,H=[];++Y<pe;){var Z=F[Y];ee(Z,Y,F)&&(H[he++]=Z)}return H}function Zo(F,ee){var Y=F==null?0:F.length;return!!Y&&Ls(F,ee,0)>-1}function dl(F,ee,Y){for(var pe=-1,he=F==null?0:F.length;++pe<he;)if(Y(ee,F[pe]))return!0;return!1}function wn(F,ee){for(var Y=-1,pe=F==null?0:F.length,he=Array(pe);++Y<pe;)he[Y]=ee(F[Y],Y,F);return he}function $o(F,ee){for(var Y=-1,pe=ee.length,he=F.length;++Y<pe;)F[he+Y]=ee[Y];return F}function hl(F,ee,Y,pe){var he=-1,H=F==null?0:F.length;for(pe&&H&&(Y=F[++he]);++he<H;)Y=ee(Y,F[he],he,F);return Y}function pu(F,ee,Y,pe){var he=F==null?0:F.length;for(pe&&he&&(Y=F[--he]);he--;)Y=ee(Y,F[he],he,F);return Y}function Xo(F,ee){for(var Y=-1,pe=F==null?0:F.length;++Y<pe;)if(ee(F[Y],Y,F))return!0;return!1}var mu=pl("length");function gu(F){return F.split("")}function pg(F){return F.match(Rr)||[]}function qc(F,ee,Y){var pe;return Y(F,function(he,H,Z){if(ee(he,H,Z))return pe=H,!1}),pe}function vu(F,ee,Y,pe){for(var he=F.length,H=Y+(pe?1:-1);pe?H--:++H<he;)if(ee(F[H],H,F))return H;return-1}function Ls(F,ee,Y){return ee===ee?p(F,ee,Y):vu(F,Wc,Y)}function nh(F,ee,Y,pe){for(var he=Y-1,H=F.length;++he<H;)if(pe(F[he],ee))return he;return-1}function Wc(F){return F!==F}function yu(F,ee){var Y=F==null?0:F.length;return Y?Jo(F,ee)/Y:se}function pl(F){return function(ee){return ee==null?n:ee[F]}}function ml(F){return function(ee){return F==null?n:F[ee]}}function Hc(F,ee,Y,pe,he){return he(F,function(H,Z,L){Y=pe?(pe=!1,H):ee(Y,H,Z,L)}),Y}function bu(F,ee){var Y=F.length;for(F.sort(ee);Y--;)F[Y]=F[Y].value;return F}function Jo(F,ee){for(var Y,pe=-1,he=F.length;++pe<he;){var H=ee(F[pe]);H!==n&&(Y=Y===n?H:Y+H)}return Y}function gl(F,ee){for(var Y=-1,pe=Array(F);++Y<F;)pe[Y]=ee(Y);return pe}function mg(F,ee){return wn(ee,function(Y){return[Y,F[Y]]})}function rh(F){return F&&F.slice(0,_(F)+1).replace(An,"")}function Nr(F){return function(ee){return F(ee)}}function Gc(F,ee){return wn(ee,function(Y){return F[Y]})}function _n(F,ee){return F.has(ee)}function vl(F,ee){for(var Y=-1,pe=F.length;++Y<pe&&Ls(ee,F[Y],0)>-1;);return Y}function Sr(F,ee){for(var Y=F.length;Y--&&Ls(ee,F[Y],0)>-1;);return Y}function gg(F,ee){for(var Y=F.length,pe=0;Y--;)F[Y]===ee&&++pe;return pe}var vg=ml(le),Bs=ml(Me);function _i(F){return"\\"+bt[F]}function yg(F,ee){return F==null?n:F[ee]}function jr(F){return Kc.test(F)}function Yc(F){return Fs.test(F)}function Qo(F){for(var ee,Y=[];!(ee=F.next()).done;)Y.push(ee.value);return Y}function Gn(F){var ee=-1,Y=Array(F.size);return F.forEach(function(pe,he){Y[++ee]=[he,pe]}),Y}function Ui(F,ee){return function(Y){return F(ee(Y))}}function fi(F,ee){for(var Y=-1,pe=F.length,he=0,H=[];++Y<pe;){var Z=F[Y];(Z===ee||Z===h)&&(F[Y]=h,H[he++]=Y)}return H}function Ta(F){var ee=-1,Y=Array(F.size);return F.forEach(function(pe){Y[++ee]=pe}),Y}function c(F){var ee=-1,Y=Array(F.size);return F.forEach(function(pe){Y[++ee]=[pe,pe]}),Y}function p(F,ee,Y){for(var pe=Y-1,he=F.length;++pe<he;)if(F[pe]===ee)return pe;return-1}function v(F,ee,Y){for(var pe=Y+1;pe--;)if(F[pe]===ee)return pe;return pe}function x(F){return jr(F)?ge(F):mu(F)}function P(F){return jr(F)?Q(F):gu(F)}function _(F){for(var ee=F.length;ee--&&mo.test(F.charAt(ee)););return ee}var z=ml(Ze);function ge(F){for(var ee=Ea.lastIndex=0;Ea.test(F);)++ee;return ee}function Q(F){return F.match(Ea)||[]}function xe(F){return F.match(fl)||[]}var Ce=function F(ee){ee=ee==null?Bn:Fe.defaults(Bn.Object(),ee,Fe.pick(Bn,Uc));var Y=ee.Array,pe=ee.Date,he=ee.Error,H=ee.Function,Z=ee.Math,L=ee.Object,V=ee.RegExp,G=ee.String,re=ee.TypeError,ce=Y.prototype,me=H.prototype,Oe=L.prototype,ot=ee["__core-js_shared__"],it=me.toString,Ue=Oe.hasOwnProperty,ht=0,gt=function(){var a=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),je=Oe.toString,$e=it.call(L),fe=Bn._,J=V("^"+it.call(Ue).replace(Ti,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=hu?ee.Buffer:n,ze=ee.Symbol,ke=ee.Uint8Array,mt=ve?ve.allocUnsafe:n,Lt=Ui(L.getPrototypeOf,L),_t=L.create,kn=Oe.propertyIsEnumerable,nn=ce.splice,Er=ze?ze.isConcatSpreadable:n,cr=ze?ze.iterator:n,Yn=ze?ze.toStringTag:n,Qn=function(){try{var a=Su(L,"defineProperty");return a({},"",{}),a}catch{}}(),er=ee.clearTimeout!==Bn.clearTimeout&&ee.clearTimeout,Fr=pe&&pe.now!==Bn.Date.now&&pe.now,vt=ee.setTimeout!==Bn.setTimeout&&ee.setTimeout,Cn=Z.ceil,di=Z.floor,zi=L.getOwnPropertySymbols,wo=ve?ve.isBuffer:n,Ri=ee.isFinite,Co=ce.join,So=Ui(L.keys,L),an=Z.max,On=Z.min,es=pe.now,Mi=ee.parseInt,Eo=Z.random,Fi=ce.reverse,Do=Su(ee,"DataView"),ts=Su(ee,"Map"),Pa=Su(ee,"Promise"),yl=Su(ee,"Set"),Zc=Su(ee,"WeakMap"),Xc=Su(L,"create"),ih=Zc&&new Zc,bl={},A9=Eu(Do),T9=Eu(ts),P9=Eu(Pa),_9=Eu(yl),R9=Eu(Zc),oh=ze?ze.prototype:n,Jc=oh?oh.valueOf:n,u$=oh?oh.toString:n;function X(a){if(Zn(a)&&!Vt(a)&&!(a instanceof Qt)){if(a instanceof qi)return a;if(Ue.call(a,"__wrapped__"))return lw(a)}return new qi(a)}var xl=function(){function a(){}return function(f){if(!jn(f))return{};if(_t)return _t(f);a.prototype=f;var y=new a;return a.prototype=n,y}}();function sh(){}function qi(a,f){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:ma,evaluate:au,interpolate:ga,variable:"",imports:{_:X}},X.prototype=sh.prototype,X.prototype.constructor=X,qi.prototype=xl(sh.prototype),qi.prototype.constructor=qi;function Qt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ie,this.__views__=[]}function M9(){var a=new Qt(this.__wrapped__);return a.__actions__=hi(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=hi(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=hi(this.__views__),a}function F9(){if(this.__filtered__){var a=new Qt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function k9(){var a=this.__wrapped__.value(),f=this.__dir__,y=Vt(a),E=f<0,B=y?a.length:0,oe=WL(0,B,this.__views__),be=oe.start,Ee=oe.end,_e=Ee-be,Ye=E?Ee:be-1,Xe=this.__iteratees__,tt=Xe.length,ft=0,$t=On(_e,this.__takeCount__);if(!y||!E&&B==_e&&$t==_e)return M$(a,this.__actions__);var Rt=[];e:for(;_e--&&ft<$t;){Ye+=f;for(var zt=-1,Mt=a[Ye];++zt<tt;){var Xt=Xe[zt],rn=Xt.iteratee,Ii=Xt.type,ti=rn(Mt);if(Ii==ne)Mt=ti;else if(!ti){if(Ii==K)continue e;break e}}Rt[ft++]=Mt}return Rt}Qt.prototype=xl(sh.prototype),Qt.prototype.constructor=Qt;function xu(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function O9(){this.__data__=Xc?Xc(null):{},this.size=0}function I9(a){var f=this.has(a)&&delete this.__data__[a];return this.size-=f?1:0,f}function L9(a){var f=this.__data__;if(Xc){var y=f[a];return y===l?n:y}return Ue.call(f,a)?f[a]:n}function B9(a){var f=this.__data__;return Xc?f[a]!==n:Ue.call(f,a)}function V9(a,f){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Xc&&f===n?l:f,this}xu.prototype.clear=O9,xu.prototype.delete=I9,xu.prototype.get=L9,xu.prototype.has=B9,xu.prototype.set=V9;function Vs(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function N9(){this.__data__=[],this.size=0}function j9(a){var f=this.__data__,y=ah(f,a);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():nn.call(f,y,1),--this.size,!0}function K9(a){var f=this.__data__,y=ah(f,a);return y<0?n:f[y][1]}function U9(a){return ah(this.__data__,a)>-1}function z9(a,f){var y=this.__data__,E=ah(y,a);return E<0?(++this.size,y.push([a,f])):y[E][1]=f,this}Vs.prototype.clear=N9,Vs.prototype.delete=j9,Vs.prototype.get=K9,Vs.prototype.has=U9,Vs.prototype.set=z9;function Ns(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function q9(){this.size=0,this.__data__={hash:new xu,map:new(ts||Vs),string:new xu}}function W9(a){var f=bh(this,a).delete(a);return this.size-=f?1:0,f}function H9(a){return bh(this,a).get(a)}function G9(a){return bh(this,a).has(a)}function Y9(a,f){var y=bh(this,a),E=y.size;return y.set(a,f),this.size+=y.size==E?0:1,this}Ns.prototype.clear=q9,Ns.prototype.delete=W9,Ns.prototype.get=H9,Ns.prototype.has=G9,Ns.prototype.set=Y9;function $u(a){var f=-1,y=a==null?0:a.length;for(this.__data__=new Ns;++f<y;)this.add(a[f])}function Z9(a){return this.__data__.set(a,l),this}function X9(a){return this.__data__.has(a)}$u.prototype.add=$u.prototype.push=Z9,$u.prototype.has=X9;function Ao(a){var f=this.__data__=new Vs(a);this.size=f.size}function J9(){this.__data__=new Vs,this.size=0}function Q9(a){var f=this.__data__,y=f.delete(a);return this.size=f.size,y}function eL(a){return this.__data__.get(a)}function tL(a){return this.__data__.has(a)}function nL(a,f){var y=this.__data__;if(y instanceof Vs){var E=y.__data__;if(!ts||E.length<i-1)return E.push([a,f]),this.size=++y.size,this;y=this.__data__=new Ns(E)}return y.set(a,f),this.size=y.size,this}Ao.prototype.clear=J9,Ao.prototype.delete=Q9,Ao.prototype.get=eL,Ao.prototype.has=tL,Ao.prototype.set=nL;function l$(a,f){var y=Vt(a),E=!y&&Du(a),B=!y&&!E&&ka(a),oe=!y&&!E&&!B&&Sl(a),be=y||E||B||oe,Ee=be?gl(a.length,G):[],_e=Ee.length;for(var Ye in a)(f||Ue.call(a,Ye))&&!(be&&(Ye=="length"||B&&(Ye=="offset"||Ye=="parent")||oe&&(Ye=="buffer"||Ye=="byteLength"||Ye=="byteOffset")||zs(Ye,_e)))&&Ee.push(Ye);return Ee}function c$(a){var f=a.length;return f?a[Pg(0,f-1)]:n}function rL(a,f){return xh(hi(a),wu(f,0,a.length))}function iL(a){return xh(hi(a))}function bg(a,f,y){(y!==n&&!To(a[f],y)||y===n&&!(f in a))&&js(a,f,y)}function Qc(a,f,y){var E=a[f];(!(Ue.call(a,f)&&To(E,y))||y===n&&!(f in a))&&js(a,f,y)}function ah(a,f){for(var y=a.length;y--;)if(To(a[y][0],f))return y;return-1}function oL(a,f,y,E){return _a(a,function(B,oe,be){f(E,B,y(B),be)}),E}function f$(a,f){return a&&rs(f,Dr(f),a)}function sL(a,f){return a&&rs(f,mi(f),a)}function js(a,f,y){f=="__proto__"&&Qn?Qn(a,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[f]=y}function xg(a,f){for(var y=-1,E=f.length,B=Y(E),oe=a==null;++y<E;)B[y]=oe?n:ev(a,f[y]);return B}function wu(a,f,y){return a===a&&(y!==n&&(a=a<=y?a:y),f!==n&&(a=a>=f?a:f)),a}function Wi(a,f,y,E,B,oe){var be,Ee=f&m,_e=f&g,Ye=f&b;if(y&&(be=B?y(a,E,B,oe):y(a)),be!==n)return be;if(!jn(a))return a;var Xe=Vt(a);if(Xe){if(be=GL(a),!Ee)return hi(a,be)}else{var tt=Kr(a),ft=tt==Be||tt==st;if(ka(a))return O$(a,Ee);if(tt==It||tt==Le||ft&&!B){if(be=_e||ft?{}:ew(a),!Ee)return _e?LL(a,sL(be,a)):IL(a,f$(be,a))}else{if(!fn[tt])return B?a:{};be=YL(a,tt,Ee)}}oe||(oe=new Ao);var $t=oe.get(a);if($t)return $t;oe.set(a,be),Pw(a)?a.forEach(function(Mt){be.add(Wi(Mt,f,y,Mt,a,oe))}):Aw(a)&&a.forEach(function(Mt,Xt){be.set(Xt,Wi(Mt,f,y,Xt,a,oe))});var Rt=Ye?_e?Ng:Vg:_e?mi:Dr,zt=Xe?n:Rt(a);return Sn(zt||a,function(Mt,Xt){zt&&(Xt=Mt,Mt=a[Xt]),Qc(be,Xt,Wi(Mt,f,y,Xt,a,oe))}),be}function aL(a){var f=Dr(a);return function(y){return d$(y,a,f)}}function d$(a,f,y){var E=y.length;if(a==null)return!E;for(a=L(a);E--;){var B=y[E],oe=f[B],be=a[B];if(be===n&&!(B in a)||!oe(be))return!1}return!0}function h$(a,f,y){if(typeof a!="function")throw new re(s);return af(function(){a.apply(n,y)},f)}function ef(a,f,y,E){var B=-1,oe=Zo,be=!0,Ee=a.length,_e=[],Ye=f.length;if(!Ee)return _e;y&&(f=wn(f,Nr(y))),E?(oe=dl,be=!1):f.length>=i&&(oe=_n,be=!1,f=new $u(f));e:for(;++B<Ee;){var Xe=a[B],tt=y==null?Xe:y(Xe);if(Xe=E||Xe!==0?Xe:0,be&&tt===tt){for(var ft=Ye;ft--;)if(f[ft]===tt)continue e;_e.push(Xe)}else oe(f,tt,E)||_e.push(Xe)}return _e}var _a=N$(ns),p$=N$(wg,!0);function uL(a,f){var y=!0;return _a(a,function(E,B,oe){return y=!!f(E,B,oe),y}),y}function uh(a,f,y){for(var E=-1,B=a.length;++E<B;){var oe=a[E],be=f(oe);if(be!=null&&(Ee===n?be===be&&!Oi(be):y(be,Ee)))var Ee=be,_e=oe}return _e}function lL(a,f,y,E){var B=a.length;for(y=Kt(y),y<0&&(y=-y>B?0:B+y),E=E===n||E>B?B:Kt(E),E<0&&(E+=B),E=y>E?0:Rw(E);y<E;)a[y++]=f;return a}function m$(a,f){var y=[];return _a(a,function(E,B,oe){f(E,B,oe)&&y.push(E)}),y}function kr(a,f,y,E,B){var oe=-1,be=a.length;for(y||(y=XL),B||(B=[]);++oe<be;){var Ee=a[oe];f>0&&y(Ee)?f>1?kr(Ee,f-1,y,E,B):$o(B,Ee):E||(B[B.length]=Ee)}return B}var $g=j$(),g$=j$(!0);function ns(a,f){return a&&$g(a,f,Dr)}function wg(a,f){return a&&g$(a,f,Dr)}function lh(a,f){return Vr(f,function(y){return qs(a[y])})}function Cu(a,f){f=Ma(f,a);for(var y=0,E=f.length;a!=null&&y<E;)a=a[is(f[y++])];return y&&y==E?a:n}function v$(a,f,y){var E=f(a);return Vt(a)?E:$o(E,y(a))}function Qr(a){return a==null?a===n?dt:At:Yn&&Yn in L(a)?qL(a):i8(a)}function Cg(a,f){return a>f}function cL(a,f){return a!=null&&Ue.call(a,f)}function fL(a,f){return a!=null&&f in L(a)}function dL(a,f,y){return a>=On(f,y)&&a<an(f,y)}function Sg(a,f,y){for(var E=y?dl:Zo,B=a[0].length,oe=a.length,be=oe,Ee=Y(oe),_e=1/0,Ye=[];be--;){var Xe=a[be];be&&f&&(Xe=wn(Xe,Nr(f))),_e=On(Xe.length,_e),Ee[be]=!y&&(f||B>=120&&Xe.length>=120)?new $u(be&&Xe):n}Xe=a[0];var tt=-1,ft=Ee[0];e:for(;++tt<B&&Ye.length<_e;){var $t=Xe[tt],Rt=f?f($t):$t;if($t=y||$t!==0?$t:0,!(ft?_n(ft,Rt):E(Ye,Rt,y))){for(be=oe;--be;){var zt=Ee[be];if(!(zt?_n(zt,Rt):E(a[be],Rt,y)))continue e}ft&&ft.push(Rt),Ye.push($t)}}return Ye}function hL(a,f,y,E){return ns(a,function(B,oe,be){f(E,y(B),oe,be)}),E}function tf(a,f,y){f=Ma(f,a),a=iw(a,f);var E=a==null?a:a[is(Gi(f))];return E==null?n:Hn(E,a,y)}function y$(a){return Zn(a)&&Qr(a)==Le}function pL(a){return Zn(a)&&Qr(a)==en}function mL(a){return Zn(a)&&Qr(a)==Ne}function nf(a,f,y,E,B){return a===f?!0:a==null||f==null||!Zn(a)&&!Zn(f)?a!==a&&f!==f:gL(a,f,y,E,nf,B)}function gL(a,f,y,E,B,oe){var be=Vt(a),Ee=Vt(f),_e=be?Je:Kr(a),Ye=Ee?Je:Kr(f);_e=_e==Le?It:_e,Ye=Ye==Le?It:Ye;var Xe=_e==It,tt=Ye==It,ft=_e==Ye;if(ft&&ka(a)){if(!ka(f))return!1;be=!0,Xe=!1}if(ft&&!Xe)return oe||(oe=new Ao),be||Sl(a)?X$(a,f,y,E,B,oe):UL(a,f,_e,y,E,B,oe);if(!(y&$)){var $t=Xe&&Ue.call(a,"__wrapped__"),Rt=tt&&Ue.call(f,"__wrapped__");if($t||Rt){var zt=$t?a.value():a,Mt=Rt?f.value():f;return oe||(oe=new Ao),B(zt,Mt,y,E,oe)}}return ft?(oe||(oe=new Ao),zL(a,f,y,E,B,oe)):!1}function vL(a){return Zn(a)&&Kr(a)==Dt}function Eg(a,f,y,E){var B=y.length,oe=B,be=!E;if(a==null)return!oe;for(a=L(a);B--;){var Ee=y[B];if(be&&Ee[2]?Ee[1]!==a[Ee[0]]:!(Ee[0]in a))return!1}for(;++B<oe;){Ee=y[B];var _e=Ee[0],Ye=a[_e],Xe=Ee[1];if(be&&Ee[2]){if(Ye===n&&!(_e in a))return!1}else{var tt=new Ao;if(E)var ft=E(Ye,Xe,_e,a,f,tt);if(!(ft===n?nf(Xe,Ye,$|C,E,tt):ft))return!1}}return!0}function b$(a){if(!jn(a)||QL(a))return!1;var f=qs(a)?J:Wn;return f.test(Eu(a))}function yL(a){return Zn(a)&&Qr(a)==Re}function bL(a){return Zn(a)&&Kr(a)==Ge}function xL(a){return Zn(a)&&Dh(a.length)&&!!sn[Qr(a)]}function x$(a){return typeof a=="function"?a:a==null?gi:typeof a=="object"?Vt(a)?C$(a[0],a[1]):w$(a):Kw(a)}function Dg(a){if(!sf(a))return So(a);var f=[];for(var y in L(a))Ue.call(a,y)&&y!="constructor"&&f.push(y);return f}function $L(a){if(!jn(a))return r8(a);var f=sf(a),y=[];for(var E in a)E=="constructor"&&(f||!Ue.call(a,E))||y.push(E);return y}function Ag(a,f){return a<f}function $$(a,f){var y=-1,E=pi(a)?Y(a.length):[];return _a(a,function(B,oe,be){E[++y]=f(B,oe,be)}),E}function w$(a){var f=Kg(a);return f.length==1&&f[0][2]?nw(f[0][0],f[0][1]):function(y){return y===a||Eg(y,a,f)}}function C$(a,f){return zg(a)&&tw(f)?nw(is(a),f):function(y){var E=ev(y,a);return E===n&&E===f?tv(y,a):nf(f,E,$|C)}}function ch(a,f,y,E,B){a!==f&&$g(f,function(oe,be){if(B||(B=new Ao),jn(oe))wL(a,f,be,y,ch,E,B);else{var Ee=E?E(Wg(a,be),oe,be+"",a,f,B):n;Ee===n&&(Ee=oe),bg(a,be,Ee)}},mi)}function wL(a,f,y,E,B,oe,be){var Ee=Wg(a,y),_e=Wg(f,y),Ye=be.get(_e);if(Ye){bg(a,y,Ye);return}var Xe=oe?oe(Ee,_e,y+"",a,f,be):n,tt=Xe===n;if(tt){var ft=Vt(_e),$t=!ft&&ka(_e),Rt=!ft&&!$t&&Sl(_e);Xe=_e,ft||$t||Rt?Vt(Ee)?Xe=Ee:tr(Ee)?Xe=hi(Ee):$t?(tt=!1,Xe=O$(_e,!0)):Rt?(tt=!1,Xe=I$(_e,!0)):Xe=[]:uf(_e)||Du(_e)?(Xe=Ee,Du(Ee)?Xe=Mw(Ee):(!jn(Ee)||qs(Ee))&&(Xe=ew(_e))):tt=!1}tt&&(be.set(_e,Xe),B(Xe,_e,E,oe,be),be.delete(_e)),bg(a,y,Xe)}function S$(a,f){var y=a.length;if(y)return f+=f<0?y:0,zs(f,y)?a[f]:n}function E$(a,f,y){f.length?f=wn(f,function(oe){return Vt(oe)?function(be){return Cu(be,oe.length===1?oe[0]:oe)}:oe}):f=[gi];var E=-1;f=wn(f,Nr(Pt()));var B=$$(a,function(oe,be,Ee){var _e=wn(f,function(Ye){return Ye(oe)});return{criteria:_e,index:++E,value:oe}});return bu(B,function(oe,be){return OL(oe,be,y)})}function CL(a,f){return D$(a,f,function(y,E){return tv(a,E)})}function D$(a,f,y){for(var E=-1,B=f.length,oe={};++E<B;){var be=f[E],Ee=Cu(a,be);y(Ee,be)&&rf(oe,Ma(be,a),Ee)}return oe}function SL(a){return function(f){return Cu(f,a)}}function Tg(a,f,y,E){var B=E?nh:Ls,oe=-1,be=f.length,Ee=a;for(a===f&&(f=hi(f)),y&&(Ee=wn(a,Nr(y)));++oe<be;)for(var _e=0,Ye=f[oe],Xe=y?y(Ye):Ye;(_e=B(Ee,Xe,_e,E))>-1;)Ee!==a&&nn.call(Ee,_e,1),nn.call(a,_e,1);return a}function A$(a,f){for(var y=a?f.length:0,E=y-1;y--;){var B=f[y];if(y==E||B!==oe){var oe=B;zs(B)?nn.call(a,B,1):Mg(a,B)}}return a}function Pg(a,f){return a+di(Eo()*(f-a+1))}function EL(a,f,y,E){for(var B=-1,oe=an(Cn((f-a)/(y||1)),0),be=Y(oe);oe--;)be[E?oe:++B]=a,a+=y;return be}function _g(a,f){var y="";if(!a||f<1||f>I)return y;do f%2&&(y+=a),f=di(f/2),f&&(a+=a);while(f);return y}function Wt(a,f){return Hg(rw(a,f,gi),a+"")}function DL(a){return c$(El(a))}function AL(a,f){var y=El(a);return xh(y,wu(f,0,y.length))}function rf(a,f,y,E){if(!jn(a))return a;f=Ma(f,a);for(var B=-1,oe=f.length,be=oe-1,Ee=a;Ee!=null&&++B<oe;){var _e=is(f[B]),Ye=y;if(_e==="__proto__"||_e==="constructor"||_e==="prototype")return a;if(B!=be){var Xe=Ee[_e];Ye=E?E(Xe,_e,Ee):n,Ye===n&&(Ye=jn(Xe)?Xe:zs(f[B+1])?[]:{})}Qc(Ee,_e,Ye),Ee=Ee[_e]}return a}var T$=ih?function(a,f){return ih.set(a,f),a}:gi,TL=Qn?function(a,f){return Qn(a,"toString",{configurable:!0,enumerable:!1,value:rv(f),writable:!0})}:gi;function PL(a){return xh(El(a))}function Hi(a,f,y){var E=-1,B=a.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 oe=Y(B);++E<B;)oe[E]=a[E+f];return oe}function _L(a,f){var y;return _a(a,function(E,B,oe){return y=f(E,B,oe),!y}),!!y}function fh(a,f,y){var E=0,B=a==null?E:a.length;if(typeof f=="number"&&f===f&&B<=Pe){for(;E<B;){var oe=E+B>>>1,be=a[oe];be!==null&&!Oi(be)&&(y?be<=f:be<f)?E=oe+1:B=oe}return B}return Rg(a,f,gi,y)}function Rg(a,f,y,E){var B=0,oe=a==null?0:a.length;if(oe===0)return 0;f=y(f);for(var be=f!==f,Ee=f===null,_e=Oi(f),Ye=f===n;B<oe;){var Xe=di((B+oe)/2),tt=y(a[Xe]),ft=tt!==n,$t=tt===null,Rt=tt===tt,zt=Oi(tt);if(be)var Mt=E||Rt;else Ye?Mt=Rt&&(E||ft):Ee?Mt=Rt&&ft&&(E||!$t):_e?Mt=Rt&&ft&&!$t&&(E||!zt):$t||zt?Mt=!1:Mt=E?tt<=f:tt<f;Mt?B=Xe+1:oe=Xe}return On(oe,Ae)}function P$(a,f){for(var y=-1,E=a.length,B=0,oe=[];++y<E;){var be=a[y],Ee=f?f(be):be;if(!y||!To(Ee,_e)){var _e=Ee;oe[B++]=be===0?0:be}}return oe}function _$(a){return typeof a=="number"?a:Oi(a)?se:+a}function ki(a){if(typeof a=="string")return a;if(Vt(a))return wn(a,ki)+"";if(Oi(a))return u$?u$.call(a):"";var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function Ra(a,f,y){var E=-1,B=Zo,oe=a.length,be=!0,Ee=[],_e=Ee;if(y)be=!1,B=dl;else if(oe>=i){var Ye=f?null:jL(a);if(Ye)return Ta(Ye);be=!1,B=_n,_e=new $u}else _e=f?[]:Ee;e:for(;++E<oe;){var Xe=a[E],tt=f?f(Xe):Xe;if(Xe=y||Xe!==0?Xe:0,be&&tt===tt){for(var ft=_e.length;ft--;)if(_e[ft]===tt)continue e;f&&_e.push(tt),Ee.push(Xe)}else B(_e,tt,y)||(_e!==Ee&&_e.push(tt),Ee.push(Xe))}return Ee}function Mg(a,f){return f=Ma(f,a),a=iw(a,f),a==null||delete a[is(Gi(f))]}function R$(a,f,y,E){return rf(a,f,y(Cu(a,f)),E)}function dh(a,f,y,E){for(var B=a.length,oe=E?B:-1;(E?oe--:++oe<B)&&f(a[oe],oe,a););return y?Hi(a,E?0:oe,E?oe+1:B):Hi(a,E?oe+1:0,E?B:oe)}function M$(a,f){var y=a;return y instanceof Qt&&(y=y.value()),hl(f,function(E,B){return B.func.apply(B.thisArg,$o([E],B.args))},y)}function Fg(a,f,y){var E=a.length;if(E<2)return E?Ra(a[0]):[];for(var B=-1,oe=Y(E);++B<E;)for(var be=a[B],Ee=-1;++Ee<E;)Ee!=B&&(oe[B]=ef(oe[B]||be,a[Ee],f,y));return Ra(kr(oe,1),f,y)}function F$(a,f,y){for(var E=-1,B=a.length,oe=f.length,be={};++E<B;){var Ee=E<oe?f[E]:n;y(be,a[E],Ee)}return be}function kg(a){return tr(a)?a:[]}function Og(a){return typeof a=="function"?a:gi}function Ma(a,f){return Vt(a)?a:zg(a,f)?[a]:uw(pn(a))}var RL=Wt;function Fa(a,f,y){var E=a.length;return y=y===n?E:y,!f&&y>=E?a:Hi(a,f,y)}var k$=er||function(a){return Bn.clearTimeout(a)};function O$(a,f){if(f)return a.slice();var y=a.length,E=mt?mt(y):new a.constructor(y);return a.copy(E),E}function Ig(a){var f=new a.constructor(a.byteLength);return new ke(f).set(new ke(a)),f}function ML(a,f){var y=f?Ig(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function FL(a){var f=new a.constructor(a.source,yn.exec(a));return f.lastIndex=a.lastIndex,f}function kL(a){return Jc?L(Jc.call(a)):{}}function I$(a,f){var y=f?Ig(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function L$(a,f){if(a!==f){var y=a!==n,E=a===null,B=a===a,oe=Oi(a),be=f!==n,Ee=f===null,_e=f===f,Ye=Oi(f);if(!Ee&&!Ye&&!oe&&a>f||oe&&be&&_e&&!Ee&&!Ye||E&&be&&_e||!y&&_e||!B)return 1;if(!E&&!oe&&!Ye&&a<f||Ye&&y&&B&&!E&&!oe||Ee&&y&&B||!be&&B||!_e)return-1}return 0}function OL(a,f,y){for(var E=-1,B=a.criteria,oe=f.criteria,be=B.length,Ee=y.length;++E<be;){var _e=L$(B[E],oe[E]);if(_e){if(E>=Ee)return _e;var Ye=y[E];return _e*(Ye=="desc"?-1:1)}}return a.index-f.index}function B$(a,f,y,E){for(var B=-1,oe=a.length,be=y.length,Ee=-1,_e=f.length,Ye=an(oe-be,0),Xe=Y(_e+Ye),tt=!E;++Ee<_e;)Xe[Ee]=f[Ee];for(;++B<be;)(tt||B<oe)&&(Xe[y[B]]=a[B]);for(;Ye--;)Xe[Ee++]=a[B++];return Xe}function V$(a,f,y,E){for(var B=-1,oe=a.length,be=-1,Ee=y.length,_e=-1,Ye=f.length,Xe=an(oe-Ee,0),tt=Y(Xe+Ye),ft=!E;++B<Xe;)tt[B]=a[B];for(var $t=B;++_e<Ye;)tt[$t+_e]=f[_e];for(;++be<Ee;)(ft||B<oe)&&(tt[$t+y[be]]=a[B++]);return tt}function hi(a,f){var y=-1,E=a.length;for(f||(f=Y(E));++y<E;)f[y]=a[y];return f}function rs(a,f,y,E){var B=!y;y||(y={});for(var oe=-1,be=f.length;++oe<be;){var Ee=f[oe],_e=E?E(y[Ee],a[Ee],Ee,y,a):n;_e===n&&(_e=a[Ee]),B?js(y,Ee,_e):Qc(y,Ee,_e)}return y}function IL(a,f){return rs(a,Ug(a),f)}function LL(a,f){return rs(a,J$(a),f)}function hh(a,f){return function(y,E){var B=Vt(y)?Yo:oL,oe=f?f():{};return B(y,a,Pt(E,2),oe)}}function $l(a){return Wt(function(f,y){var E=-1,B=y.length,oe=B>1?y[B-1]:n,be=B>2?y[2]:n;for(oe=a.length>3&&typeof oe=="function"?(B--,oe):n,be&&ei(y[0],y[1],be)&&(oe=B<3?n:oe,B=1),f=L(f);++E<B;){var Ee=y[E];Ee&&a(f,Ee,E,oe)}return f})}function N$(a,f){return function(y,E){if(y==null)return y;if(!pi(y))return a(y,E);for(var B=y.length,oe=f?B:-1,be=L(y);(f?oe--:++oe<B)&&E(be[oe],oe,be)!==!1;);return y}}function j$(a){return function(f,y,E){for(var B=-1,oe=L(f),be=E(f),Ee=be.length;Ee--;){var _e=be[a?Ee:++B];if(y(oe[_e],_e,oe)===!1)break}return f}}function BL(a,f,y){var E=f&A,B=of(a);function oe(){var be=this&&this!==Bn&&this instanceof oe?B:a;return be.apply(E?y:this,arguments)}return oe}function K$(a){return function(f){f=pn(f);var y=jr(f)?P(f):n,E=y?y[0]:f.charAt(0),B=y?Fa(y,1).join(""):f.slice(1);return E[a]()+B}}function wl(a){return function(f){return hl(Nw(Vw(f).replace(bo,"")),a,"")}}function of(a){return function(){var f=arguments;switch(f.length){case 0:return new a;case 1:return new a(f[0]);case 2:return new a(f[0],f[1]);case 3:return new a(f[0],f[1],f[2]);case 4:return new a(f[0],f[1],f[2],f[3]);case 5:return new a(f[0],f[1],f[2],f[3],f[4]);case 6:return new a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new a(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=xl(a.prototype),E=a.apply(y,f);return jn(E)?E:y}}function VL(a,f,y){var E=of(a);function B(){for(var oe=arguments.length,be=Y(oe),Ee=oe,_e=Cl(B);Ee--;)be[Ee]=arguments[Ee];var Ye=oe<3&&be[0]!==_e&&be[oe-1]!==_e?[]:fi(be,_e);if(oe-=Ye.length,oe<y)return H$(a,f,ph,B.placeholder,n,be,Ye,n,n,y-oe);var Xe=this&&this!==Bn&&this instanceof B?E:a;return Hn(Xe,this,be)}return B}function U$(a){return function(f,y,E){var B=L(f);if(!pi(f)){var oe=Pt(y,3);f=Dr(f),y=function(Ee){return oe(B[Ee],Ee,B)}}var be=a(f,y,E);return be>-1?B[oe?f[be]:be]:n}}function z$(a){return Us(function(f){var y=f.length,E=y,B=qi.prototype.thru;for(a&&f.reverse();E--;){var oe=f[E];if(typeof oe!="function")throw new re(s);if(B&&!be&&yh(oe)=="wrapper")var be=new qi([],!0)}for(E=be?E:y;++E<y;){oe=f[E];var Ee=yh(oe),_e=Ee=="wrapper"?jg(oe):n;_e&&qg(_e[0])&&_e[1]==(j|D|R|M)&&!_e[4].length&&_e[9]==1?be=be[yh(_e[0])].apply(be,_e[3]):be=oe.length==1&&qg(oe)?be[Ee]():be.thru(oe)}return function(){var Ye=arguments,Xe=Ye[0];if(be&&Ye.length==1&&Vt(Xe))return be.plant(Xe).value();for(var tt=0,ft=y?f[tt].apply(this,Ye):Xe;++tt<y;)ft=f[tt].call(this,ft);return ft}})}function ph(a,f,y,E,B,oe,be,Ee,_e,Ye){var Xe=f&j,tt=f&A,ft=f&S,$t=f&(D|O),Rt=f&ue,zt=ft?n:of(a);function Mt(){for(var Xt=arguments.length,rn=Y(Xt),Ii=Xt;Ii--;)rn[Ii]=arguments[Ii];if($t)var ti=Cl(Mt),Li=gg(rn,ti);if(E&&(rn=B$(rn,E,B,$t)),oe&&(rn=V$(rn,oe,be,$t)),Xt-=Li,$t&&Xt<Ye){var nr=fi(rn,ti);return H$(a,f,ph,Mt.placeholder,y,rn,nr,Ee,_e,Ye-Xt)}var Po=tt?y:this,Hs=ft?Po[a]:a;return Xt=rn.length,Ee?rn=o8(rn,Ee):Rt&&Xt>1&&rn.reverse(),Xe&&_e<Xt&&(rn.length=_e),this&&this!==Bn&&this instanceof Mt&&(Hs=zt||of(Hs)),Hs.apply(Po,rn)}return Mt}function q$(a,f){return function(y,E){return hL(y,a,f(E),{})}}function mh(a,f){return function(y,E){var B;if(y===n&&E===n)return f;if(y!==n&&(B=y),E!==n){if(B===n)return E;typeof y=="string"||typeof E=="string"?(y=ki(y),E=ki(E)):(y=_$(y),E=_$(E)),B=a(y,E)}return B}}function Lg(a){return Us(function(f){return f=wn(f,Nr(Pt())),Wt(function(y){var E=this;return a(f,function(B){return Hn(B,E,y)})})})}function gh(a,f){f=f===n?" ":ki(f);var y=f.length;if(y<2)return y?_g(f,a):f;var E=_g(f,Cn(a/x(f)));return jr(f)?Fa(P(E),0,a).join(""):E.slice(0,a)}function NL(a,f,y,E){var B=f&A,oe=of(a);function be(){for(var Ee=-1,_e=arguments.length,Ye=-1,Xe=E.length,tt=Y(Xe+_e),ft=this&&this!==Bn&&this instanceof be?oe:a;++Ye<Xe;)tt[Ye]=E[Ye];for(;_e--;)tt[Ye++]=arguments[++Ee];return Hn(ft,B?y:this,tt)}return be}function W$(a){return function(f,y,E){return E&&typeof E!="number"&&ei(f,y,E)&&(y=E=n),f=Ws(f),y===n?(y=f,f=0):y=Ws(y),E=E===n?f<y?1:-1:Ws(E),EL(f,y,E,a)}}function vh(a){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=Yi(f),y=Yi(y)),a(f,y)}}function H$(a,f,y,E,B,oe,be,Ee,_e,Ye){var Xe=f&D,tt=Xe?be:n,ft=Xe?n:be,$t=Xe?oe:n,Rt=Xe?n:oe;f|=Xe?R:k,f&=~(Xe?k:R),f&w||(f&=-4);var zt=[a,f,B,$t,tt,Rt,ft,Ee,_e,Ye],Mt=y.apply(n,zt);return qg(a)&&ow(Mt,zt),Mt.placeholder=E,sw(Mt,a,f)}function Bg(a){var f=Z[a];return function(y,E){if(y=Yi(y),E=E==null?0:On(Kt(E),292),E&&Ri(y)){var B=(pn(y)+"e").split("e"),oe=f(B[0]+"e"+(+B[1]+E));return B=(pn(oe)+"e").split("e"),+(B[0]+"e"+(+B[1]-E))}return f(y)}}var jL=yl&&1/Ta(new yl([,-0]))[1]==N?function(a){return new yl(a)}:sv;function G$(a){return function(f){var y=Kr(f);return y==Dt?Gn(f):y==Ge?c(f):mg(f,a(f))}}function Ks(a,f,y,E,B,oe,be,Ee){var _e=f&S;if(!_e&&typeof a!="function")throw new re(s);var Ye=E?E.length:0;if(Ye||(f&=-97,E=B=n),be=be===n?be:an(Kt(be),0),Ee=Ee===n?Ee:Kt(Ee),Ye-=B?B.length:0,f&k){var Xe=E,tt=B;E=B=n}var ft=_e?n:jg(a),$t=[a,f,y,E,B,Xe,tt,oe,be,Ee];if(ft&&n8($t,ft),a=$t[0],f=$t[1],y=$t[2],E=$t[3],B=$t[4],Ee=$t[9]=$t[9]===n?_e?0:a.length:an($t[9]-Ye,0),!Ee&&f&(D|O)&&(f&=-25),!f||f==A)var Rt=BL(a,f,y);else f==D||f==O?Rt=VL(a,f,Ee):(f==R||f==(A|R))&&!B.length?Rt=NL(a,f,y,E):Rt=ph.apply(n,$t);var zt=ft?T$:ow;return sw(zt(Rt,$t),a,f)}function Y$(a,f,y,E){return a===n||To(a,Oe[y])&&!Ue.call(E,y)?f:a}function Z$(a,f,y,E,B,oe){return jn(a)&&jn(f)&&(oe.set(f,a),ch(a,f,n,Z$,oe),oe.delete(f)),a}function KL(a){return uf(a)?n:a}function X$(a,f,y,E,B,oe){var be=y&$,Ee=a.length,_e=f.length;if(Ee!=_e&&!(be&&_e>Ee))return!1;var Ye=oe.get(a),Xe=oe.get(f);if(Ye&&Xe)return Ye==f&&Xe==a;var tt=-1,ft=!0,$t=y&C?new $u:n;for(oe.set(a,f),oe.set(f,a);++tt<Ee;){var Rt=a[tt],zt=f[tt];if(E)var Mt=be?E(zt,Rt,tt,f,a,oe):E(Rt,zt,tt,a,f,oe);if(Mt!==n){if(Mt)continue;ft=!1;break}if($t){if(!Xo(f,function(Xt,rn){if(!_n($t,rn)&&(Rt===Xt||B(Rt,Xt,y,E,oe)))return $t.push(rn)})){ft=!1;break}}else if(!(Rt===zt||B(Rt,zt,y,E,oe))){ft=!1;break}}return oe.delete(a),oe.delete(f),ft}function UL(a,f,y,E,B,oe,be){switch(y){case Gt:if(a.byteLength!=f.byteLength||a.byteOffset!=f.byteOffset)return!1;a=a.buffer,f=f.buffer;case en:return!(a.byteLength!=f.byteLength||!oe(new ke(a),new ke(f)));case ye:case Ne:case ln:return To(+a,+f);case Ke:return a.name==f.name&&a.message==f.message;case Re:case rt:return a==f+"";case Dt:var Ee=Gn;case Ge:var _e=E&$;if(Ee||(Ee=Ta),a.size!=f.size&&!_e)return!1;var Ye=be.get(a);if(Ye)return Ye==f;E|=C,be.set(a,f);var Xe=X$(Ee(a),Ee(f),E,B,oe,be);return be.delete(a),Xe;case nt:if(Jc)return Jc.call(a)==Jc.call(f)}return!1}function zL(a,f,y,E,B,oe){var be=y&$,Ee=Vg(a),_e=Ee.length,Ye=Vg(f),Xe=Ye.length;if(_e!=Xe&&!be)return!1;for(var tt=_e;tt--;){var ft=Ee[tt];if(!(be?ft in f:Ue.call(f,ft)))return!1}var $t=oe.get(a),Rt=oe.get(f);if($t&&Rt)return $t==f&&Rt==a;var zt=!0;oe.set(a,f),oe.set(f,a);for(var Mt=be;++tt<_e;){ft=Ee[tt];var Xt=a[ft],rn=f[ft];if(E)var Ii=be?E(rn,Xt,ft,f,a,oe):E(Xt,rn,ft,a,f,oe);if(!(Ii===n?Xt===rn||B(Xt,rn,y,E,oe):Ii)){zt=!1;break}Mt||(Mt=ft=="constructor")}if(zt&&!Mt){var ti=a.constructor,Li=f.constructor;ti!=Li&&"constructor"in a&&"constructor"in f&&!(typeof ti=="function"&&ti instanceof ti&&typeof Li=="function"&&Li instanceof Li)&&(zt=!1)}return oe.delete(a),oe.delete(f),zt}function Us(a){return Hg(rw(a,n,dw),a+"")}function Vg(a){return v$(a,Dr,Ug)}function Ng(a){return v$(a,mi,J$)}var jg=ih?function(a){return ih.get(a)}:sv;function yh(a){for(var f=a.name+"",y=bl[f],E=Ue.call(bl,f)?y.length:0;E--;){var B=y[E],oe=B.func;if(oe==null||oe==a)return B.name}return f}function Cl(a){var f=Ue.call(X,"placeholder")?X:a;return f.placeholder}function Pt(){var a=X.iteratee||iv;return a=a===iv?x$:a,arguments.length?a(arguments[0],arguments[1]):a}function bh(a,f){var y=a.__data__;return JL(f)?y[typeof f=="string"?"string":"hash"]:y.map}function Kg(a){for(var f=Dr(a),y=f.length;y--;){var E=f[y],B=a[E];f[y]=[E,B,tw(B)]}return f}function Su(a,f){var y=yg(a,f);return b$(y)?y:n}function qL(a){var f=Ue.call(a,Yn),y=a[Yn];try{a[Yn]=n;var E=!0}catch{}var B=je.call(a);return E&&(f?a[Yn]=y:delete a[Yn]),B}var Ug=zi?function(a){return a==null?[]:(a=L(a),Vr(zi(a),function(f){return kn.call(a,f)}))}:av,J$=zi?function(a){for(var f=[];a;)$o(f,Ug(a)),a=Lt(a);return f}:av,Kr=Qr;(Do&&Kr(new Do(new ArrayBuffer(1)))!=Gt||ts&&Kr(new ts)!=Dt||Pa&&Kr(Pa.resolve())!=we||yl&&Kr(new yl)!=Ge||Zc&&Kr(new Zc)!=Et)&&(Kr=function(a){var f=Qr(a),y=f==It?a.constructor:n,E=y?Eu(y):"";if(E)switch(E){case A9:return Gt;case T9:return Dt;case P9:return we;case _9:return Ge;case R9:return Et}return f});function WL(a,f,y){for(var E=-1,B=y.length;++E<B;){var oe=y[E],be=oe.size;switch(oe.type){case"drop":a+=be;break;case"dropRight":f-=be;break;case"take":f=On(f,a+be);break;case"takeRight":a=an(a,f-be);break}}return{start:a,end:f}}function HL(a){var f=a.match(mr);return f?f[1].split(ba):[]}function Q$(a,f,y){f=Ma(f,a);for(var E=-1,B=f.length,oe=!1;++E<B;){var be=is(f[E]);if(!(oe=a!=null&&y(a,be)))break;a=a[be]}return oe||++E!=B?oe:(B=a==null?0:a.length,!!B&&Dh(B)&&zs(be,B)&&(Vt(a)||Du(a)))}function GL(a){var f=a.length,y=new a.constructor(f);return f&&typeof a[0]=="string"&&Ue.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function ew(a){return typeof a.constructor=="function"&&!sf(a)?xl(Lt(a)):{}}function YL(a,f,y){var E=a.constructor;switch(f){case en:return Ig(a);case ye:case Ne:return new E(+a);case Gt:return ML(a,y);case Lr:case Pr:case Yt:case kt:case jt:case tn:case Xn:case Ei:case li:return I$(a,y);case Dt:return new E;case ln:case rt:return new E(a);case Re:return FL(a);case Ge:return new E;case nt:return kL(a)}}function ZL(a,f){var y=f.length;if(!y)return a;var E=y-1;return f[E]=(y>1?"& ":"")+f[E],f=f.join(y>2?", ":" "),a.replace(ya,`{
|
|
66
|
-
/* [wrapped with `+f+`] */
|
|
67
|
-
`)}function XL(a){return Vt(a)||Du(a)||!!(Er&&a&&a[Er])}function zs(a,f){var y=typeof a;return f=f??I,!!f&&(y=="number"||y!="symbol"&&Vi.test(a))&&a>-1&&a%1==0&&a<f}function ei(a,f,y){if(!jn(y))return!1;var E=typeof f;return(E=="number"?pi(y)&&zs(f,y.length):E=="string"&&f in y)?To(y[f],a):!1}function zg(a,f){if(Vt(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||Oi(a)?!0:va.test(a)||!po.test(a)||f!=null&&a in L(f)}function JL(a){var f=typeof a;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?a!=="__proto__":a===null}function qg(a){var f=yh(a),y=X[f];if(typeof y!="function"||!(f in Qt.prototype))return!1;if(a===y)return!0;var E=jg(y);return!!E&&a===E[0]}function QL(a){return!!gt&> in a}var e8=ot?qs:uv;function sf(a){var f=a&&a.constructor,y=typeof f=="function"&&f.prototype||Oe;return a===y}function tw(a){return a===a&&!jn(a)}function nw(a,f){return function(y){return y==null?!1:y[a]===f&&(f!==n||a in L(y))}}function t8(a){var f=Sh(a,function(E){return y.size===d&&y.clear(),E}),y=f.cache;return f}function n8(a,f){var y=a[1],E=f[1],B=y|E,oe=B<(A|S|j),be=E==j&&y==D||E==j&&y==M&&a[7].length<=f[8]||E==(j|M)&&f[7].length<=f[8]&&y==D;if(!(oe||be))return a;E&A&&(a[2]=f[2],B|=y&A?0:w);var Ee=f[3];if(Ee){var _e=a[3];a[3]=_e?B$(_e,Ee,f[4]):Ee,a[4]=_e?fi(a[3],h):f[4]}return Ee=f[5],Ee&&(_e=a[5],a[5]=_e?V$(_e,Ee,f[6]):Ee,a[6]=_e?fi(a[5],h):f[6]),Ee=f[7],Ee&&(a[7]=Ee),E&j&&(a[8]=a[8]==null?f[8]:On(a[8],f[8])),a[9]==null&&(a[9]=f[9]),a[0]=f[0],a[1]=B,a}function r8(a){var f=[];if(a!=null)for(var y in L(a))f.push(y);return f}function i8(a){return je.call(a)}function rw(a,f,y){return f=an(f===n?a.length-1:f,0),function(){for(var E=arguments,B=-1,oe=an(E.length-f,0),be=Y(oe);++B<oe;)be[B]=E[f+B];B=-1;for(var Ee=Y(f+1);++B<f;)Ee[B]=E[B];return Ee[f]=y(be),Hn(a,this,Ee)}}function iw(a,f){return f.length<2?a:Cu(a,Hi(f,0,-1))}function o8(a,f){for(var y=a.length,E=On(f.length,y),B=hi(a);E--;){var oe=f[E];a[E]=zs(oe,y)?B[oe]:n}return a}function Wg(a,f){if(!(f==="constructor"&&typeof a[f]=="function")&&f!="__proto__")return a[f]}var ow=aw(T$),af=vt||function(a,f){return Bn.setTimeout(a,f)},Hg=aw(TL);function sw(a,f,y){var E=f+"";return Hg(a,ZL(E,s8(HL(E),y)))}function aw(a){var f=0,y=0;return function(){var E=es(),B=q-(E-y);if(y=E,B>0){if(++f>=De)return arguments[0]}else f=0;return a.apply(n,arguments)}}function xh(a,f){var y=-1,E=a.length,B=E-1;for(f=f===n?E:f;++y<f;){var oe=Pg(y,B),be=a[oe];a[oe]=a[y],a[y]=be}return a.length=f,a}var uw=t8(function(a){var f=[];return a.charCodeAt(0)===46&&f.push(""),a.replace(Ai,function(y,E,B,oe){f.push(B?oe.replace(Br,"$1"):E||y)}),f});function is(a){if(typeof a=="string"||Oi(a))return a;var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function Eu(a){if(a!=null){try{return it.call(a)}catch{}try{return a+""}catch{}}return""}function s8(a,f){return Sn(Ie,function(y){var E="_."+y[0];f&y[1]&&!Zo(a,E)&&a.push(E)}),a.sort()}function lw(a){if(a instanceof Qt)return a.clone();var f=new qi(a.__wrapped__,a.__chain__);return f.__actions__=hi(a.__actions__),f.__index__=a.__index__,f.__values__=a.__values__,f}function a8(a,f,y){(y?ei(a,f,y):f===n)?f=1:f=an(Kt(f),0);var E=a==null?0:a.length;if(!E||f<1)return[];for(var B=0,oe=0,be=Y(Cn(E/f));B<E;)be[oe++]=Hi(a,B,B+=f);return be}function u8(a){for(var f=-1,y=a==null?0:a.length,E=0,B=[];++f<y;){var oe=a[f];oe&&(B[E++]=oe)}return B}function l8(){var a=arguments.length;if(!a)return[];for(var f=Y(a-1),y=arguments[0],E=a;E--;)f[E-1]=arguments[E];return $o(Vt(y)?hi(y):[y],kr(f,1))}var c8=Wt(function(a,f){return tr(a)?ef(a,kr(f,1,tr,!0)):[]}),f8=Wt(function(a,f){var y=Gi(f);return tr(y)&&(y=n),tr(a)?ef(a,kr(f,1,tr,!0),Pt(y,2)):[]}),d8=Wt(function(a,f){var y=Gi(f);return tr(y)&&(y=n),tr(a)?ef(a,kr(f,1,tr,!0),n,y):[]});function h8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),Hi(a,f<0?0:f,E)):[]}function p8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),f=E-f,Hi(a,0,f<0?0:f)):[]}function m8(a,f){return a&&a.length?dh(a,Pt(f,3),!0,!0):[]}function g8(a,f){return a&&a.length?dh(a,Pt(f,3),!0):[]}function v8(a,f,y,E){var B=a==null?0:a.length;return B?(y&&typeof y!="number"&&ei(a,f,y)&&(y=0,E=B),lL(a,f,y,E)):[]}function cw(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=y==null?0:Kt(y);return B<0&&(B=an(E+B,0)),vu(a,Pt(f,3),B)}function fw(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=E-1;return y!==n&&(B=Kt(y),B=y<0?an(E+B,0):On(B,E-1)),vu(a,Pt(f,3),B,!0)}function dw(a){var f=a==null?0:a.length;return f?kr(a,1):[]}function y8(a){var f=a==null?0:a.length;return f?kr(a,N):[]}function b8(a,f){var y=a==null?0:a.length;return y?(f=f===n?1:Kt(f),kr(a,f)):[]}function x8(a){for(var f=-1,y=a==null?0:a.length,E={};++f<y;){var B=a[f];E[B[0]]=B[1]}return E}function hw(a){return a&&a.length?a[0]:n}function $8(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=y==null?0:Kt(y);return B<0&&(B=an(E+B,0)),Ls(a,f,B)}function w8(a){var f=a==null?0:a.length;return f?Hi(a,0,-1):[]}var C8=Wt(function(a){var f=wn(a,kg);return f.length&&f[0]===a[0]?Sg(f):[]}),S8=Wt(function(a){var f=Gi(a),y=wn(a,kg);return f===Gi(y)?f=n:y.pop(),y.length&&y[0]===a[0]?Sg(y,Pt(f,2)):[]}),E8=Wt(function(a){var f=Gi(a),y=wn(a,kg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===a[0]?Sg(y,n,f):[]});function D8(a,f){return a==null?"":Co.call(a,f)}function Gi(a){var f=a==null?0:a.length;return f?a[f-1]:n}function A8(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var B=E;return y!==n&&(B=Kt(y),B=B<0?an(E+B,0):On(B,E-1)),f===f?v(a,f,B):vu(a,Wc,B,!0)}function T8(a,f){return a&&a.length?S$(a,Kt(f)):n}var P8=Wt(pw);function pw(a,f){return a&&a.length&&f&&f.length?Tg(a,f):a}function _8(a,f,y){return a&&a.length&&f&&f.length?Tg(a,f,Pt(y,2)):a}function R8(a,f,y){return a&&a.length&&f&&f.length?Tg(a,f,n,y):a}var M8=Us(function(a,f){var y=a==null?0:a.length,E=xg(a,f);return A$(a,wn(f,function(B){return zs(B,y)?+B:B}).sort(L$)),E});function F8(a,f){var y=[];if(!(a&&a.length))return y;var E=-1,B=[],oe=a.length;for(f=Pt(f,3);++E<oe;){var be=a[E];f(be,E,a)&&(y.push(be),B.push(E))}return A$(a,B),y}function Gg(a){return a==null?a:Fi.call(a)}function k8(a,f,y){var E=a==null?0:a.length;return E?(y&&typeof y!="number"&&ei(a,f,y)?(f=0,y=E):(f=f==null?0:Kt(f),y=y===n?E:Kt(y)),Hi(a,f,y)):[]}function O8(a,f){return fh(a,f)}function I8(a,f,y){return Rg(a,f,Pt(y,2))}function L8(a,f){var y=a==null?0:a.length;if(y){var E=fh(a,f);if(E<y&&To(a[E],f))return E}return-1}function B8(a,f){return fh(a,f,!0)}function V8(a,f,y){return Rg(a,f,Pt(y,2),!0)}function N8(a,f){var y=a==null?0:a.length;if(y){var E=fh(a,f,!0)-1;if(To(a[E],f))return E}return-1}function j8(a){return a&&a.length?P$(a):[]}function K8(a,f){return a&&a.length?P$(a,Pt(f,2)):[]}function U8(a){var f=a==null?0:a.length;return f?Hi(a,1,f):[]}function z8(a,f,y){return a&&a.length?(f=y||f===n?1:Kt(f),Hi(a,0,f<0?0:f)):[]}function q8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Kt(f),f=E-f,Hi(a,f<0?0:f,E)):[]}function W8(a,f){return a&&a.length?dh(a,Pt(f,3),!1,!0):[]}function H8(a,f){return a&&a.length?dh(a,Pt(f,3)):[]}var G8=Wt(function(a){return Ra(kr(a,1,tr,!0))}),Y8=Wt(function(a){var f=Gi(a);return tr(f)&&(f=n),Ra(kr(a,1,tr,!0),Pt(f,2))}),Z8=Wt(function(a){var f=Gi(a);return f=typeof f=="function"?f:n,Ra(kr(a,1,tr,!0),n,f)});function X8(a){return a&&a.length?Ra(a):[]}function J8(a,f){return a&&a.length?Ra(a,Pt(f,2)):[]}function Q8(a,f){return f=typeof f=="function"?f:n,a&&a.length?Ra(a,n,f):[]}function Yg(a){if(!(a&&a.length))return[];var f=0;return a=Vr(a,function(y){if(tr(y))return f=an(y.length,f),!0}),gl(f,function(y){return wn(a,pl(y))})}function mw(a,f){if(!(a&&a.length))return[];var y=Yg(a);return f==null?y:wn(y,function(E){return Hn(f,n,E)})}var eB=Wt(function(a,f){return tr(a)?ef(a,f):[]}),tB=Wt(function(a){return Fg(Vr(a,tr))}),nB=Wt(function(a){var f=Gi(a);return tr(f)&&(f=n),Fg(Vr(a,tr),Pt(f,2))}),rB=Wt(function(a){var f=Gi(a);return f=typeof f=="function"?f:n,Fg(Vr(a,tr),n,f)}),iB=Wt(Yg);function oB(a,f){return F$(a||[],f||[],Qc)}function sB(a,f){return F$(a||[],f||[],rf)}var aB=Wt(function(a){var f=a.length,y=f>1?a[f-1]:n;return y=typeof y=="function"?(a.pop(),y):n,mw(a,y)});function gw(a){var f=X(a);return f.__chain__=!0,f}function uB(a,f){return f(a),a}function $h(a,f){return f(a)}var lB=Us(function(a){var f=a.length,y=f?a[0]:0,E=this.__wrapped__,B=function(oe){return xg(oe,a)};return f>1||this.__actions__.length||!(E instanceof Qt)||!zs(y)?this.thru(B):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:$h,args:[B],thisArg:n}),new qi(E,this.__chain__).thru(function(oe){return f&&!oe.length&&oe.push(n),oe}))});function cB(){return gw(this)}function fB(){return new qi(this.value(),this.__chain__)}function dB(){this.__values__===n&&(this.__values__=_w(this.value()));var a=this.__index__>=this.__values__.length,f=a?n:this.__values__[this.__index__++];return{done:a,value:f}}function hB(){return this}function pB(a){for(var f,y=this;y instanceof sh;){var E=lw(y);E.__index__=0,E.__values__=n,f?B.__wrapped__=E:f=E;var B=E;y=y.__wrapped__}return B.__wrapped__=a,f}function mB(){var a=this.__wrapped__;if(a instanceof Qt){var f=a;return this.__actions__.length&&(f=new Qt(this)),f=f.reverse(),f.__actions__.push({func:$h,args:[Gg],thisArg:n}),new qi(f,this.__chain__)}return this.thru(Gg)}function gB(){return M$(this.__wrapped__,this.__actions__)}var vB=hh(function(a,f,y){Ue.call(a,y)?++a[y]:js(a,y,1)});function yB(a,f,y){var E=Vt(a)?Is:uL;return y&&ei(a,f,y)&&(f=n),E(a,Pt(f,3))}function bB(a,f){var y=Vt(a)?Vr:m$;return y(a,Pt(f,3))}var xB=U$(cw),$B=U$(fw);function wB(a,f){return kr(wh(a,f),1)}function CB(a,f){return kr(wh(a,f),N)}function SB(a,f,y){return y=y===n?1:Kt(y),kr(wh(a,f),y)}function vw(a,f){var y=Vt(a)?Sn:_a;return y(a,Pt(f,3))}function yw(a,f){var y=Vt(a)?Cr:p$;return y(a,Pt(f,3))}var EB=hh(function(a,f,y){Ue.call(a,y)?a[y].push(f):js(a,y,[f])});function DB(a,f,y,E){a=pi(a)?a:El(a),y=y&&!E?Kt(y):0;var B=a.length;return y<0&&(y=an(B+y,0)),Ah(a)?y<=B&&a.indexOf(f,y)>-1:!!B&&Ls(a,f,y)>-1}var AB=Wt(function(a,f,y){var E=-1,B=typeof f=="function",oe=pi(a)?Y(a.length):[];return _a(a,function(be){oe[++E]=B?Hn(f,be,y):tf(be,f,y)}),oe}),TB=hh(function(a,f,y){js(a,y,f)});function wh(a,f){var y=Vt(a)?wn:$$;return y(a,Pt(f,3))}function PB(a,f,y,E){return a==null?[]:(Vt(f)||(f=f==null?[]:[f]),y=E?n:y,Vt(y)||(y=y==null?[]:[y]),E$(a,f,y))}var _B=hh(function(a,f,y){a[y?0:1].push(f)},function(){return[[],[]]});function RB(a,f,y){var E=Vt(a)?hl:Hc,B=arguments.length<3;return E(a,Pt(f,4),y,B,_a)}function MB(a,f,y){var E=Vt(a)?pu:Hc,B=arguments.length<3;return E(a,Pt(f,4),y,B,p$)}function FB(a,f){var y=Vt(a)?Vr:m$;return y(a,Eh(Pt(f,3)))}function kB(a){var f=Vt(a)?c$:DL;return f(a)}function OB(a,f,y){(y?ei(a,f,y):f===n)?f=1:f=Kt(f);var E=Vt(a)?rL:AL;return E(a,f)}function IB(a){var f=Vt(a)?iL:PL;return f(a)}function LB(a){if(a==null)return 0;if(pi(a))return Ah(a)?x(a):a.length;var f=Kr(a);return f==Dt||f==Ge?a.size:Dg(a).length}function BB(a,f,y){var E=Vt(a)?Xo:_L;return y&&ei(a,f,y)&&(f=n),E(a,Pt(f,3))}var VB=Wt(function(a,f){if(a==null)return[];var y=f.length;return y>1&&ei(a,f[0],f[1])?f=[]:y>2&&ei(f[0],f[1],f[2])&&(f=[f[0]]),E$(a,kr(f,1),[])}),Ch=Fr||function(){return Bn.Date.now()};function NB(a,f){if(typeof f!="function")throw new re(s);return a=Kt(a),function(){if(--a<1)return f.apply(this,arguments)}}function bw(a,f,y){return f=y?n:f,f=a&&f==null?a.length:f,Ks(a,j,n,n,n,n,f)}function xw(a,f){var y;if(typeof f!="function")throw new re(s);return a=Kt(a),function(){return--a>0&&(y=f.apply(this,arguments)),a<=1&&(f=n),y}}var Zg=Wt(function(a,f,y){var E=A;if(y.length){var B=fi(y,Cl(Zg));E|=R}return Ks(a,E,f,y,B)}),$w=Wt(function(a,f,y){var E=A|S;if(y.length){var B=fi(y,Cl($w));E|=R}return Ks(f,E,a,y,B)});function ww(a,f,y){f=y?n:f;var E=Ks(a,D,n,n,n,n,n,f);return E.placeholder=ww.placeholder,E}function Cw(a,f,y){f=y?n:f;var E=Ks(a,O,n,n,n,n,n,f);return E.placeholder=Cw.placeholder,E}function Sw(a,f,y){var E,B,oe,be,Ee,_e,Ye=0,Xe=!1,tt=!1,ft=!0;if(typeof a!="function")throw new re(s);f=Yi(f)||0,jn(y)&&(Xe=!!y.leading,tt="maxWait"in y,oe=tt?an(Yi(y.maxWait)||0,f):oe,ft="trailing"in y?!!y.trailing:ft);function $t(nr){var Po=E,Hs=B;return E=B=n,Ye=nr,be=a.apply(Hs,Po),be}function Rt(nr){return Ye=nr,Ee=af(Xt,f),Xe?$t(nr):be}function zt(nr){var Po=nr-_e,Hs=nr-Ye,Uw=f-Po;return tt?On(Uw,oe-Hs):Uw}function Mt(nr){var Po=nr-_e,Hs=nr-Ye;return _e===n||Po>=f||Po<0||tt&&Hs>=oe}function Xt(){var nr=Ch();if(Mt(nr))return rn(nr);Ee=af(Xt,zt(nr))}function rn(nr){return Ee=n,ft&&E?$t(nr):(E=B=n,be)}function Ii(){Ee!==n&&k$(Ee),Ye=0,E=_e=B=Ee=n}function ti(){return Ee===n?be:rn(Ch())}function Li(){var nr=Ch(),Po=Mt(nr);if(E=arguments,B=this,_e=nr,Po){if(Ee===n)return Rt(_e);if(tt)return k$(Ee),Ee=af(Xt,f),$t(_e)}return Ee===n&&(Ee=af(Xt,f)),be}return Li.cancel=Ii,Li.flush=ti,Li}var jB=Wt(function(a,f){return h$(a,1,f)}),KB=Wt(function(a,f,y){return h$(a,Yi(f)||0,y)});function UB(a){return Ks(a,ue)}function Sh(a,f){if(typeof a!="function"||f!=null&&typeof f!="function")throw new re(s);var y=function(){var E=arguments,B=f?f.apply(this,E):E[0],oe=y.cache;if(oe.has(B))return oe.get(B);var be=a.apply(this,E);return y.cache=oe.set(B,be)||oe,be};return y.cache=new(Sh.Cache||Ns),y}Sh.Cache=Ns;function Eh(a){if(typeof a!="function")throw new re(s);return function(){var f=arguments;switch(f.length){case 0:return!a.call(this);case 1:return!a.call(this,f[0]);case 2:return!a.call(this,f[0],f[1]);case 3:return!a.call(this,f[0],f[1],f[2])}return!a.apply(this,f)}}function zB(a){return xw(2,a)}var qB=RL(function(a,f){f=f.length==1&&Vt(f[0])?wn(f[0],Nr(Pt())):wn(kr(f,1),Nr(Pt()));var y=f.length;return Wt(function(E){for(var B=-1,oe=On(E.length,y);++B<oe;)E[B]=f[B].call(this,E[B]);return Hn(a,this,E)})}),Xg=Wt(function(a,f){var y=fi(f,Cl(Xg));return Ks(a,R,n,f,y)}),Ew=Wt(function(a,f){var y=fi(f,Cl(Ew));return Ks(a,k,n,f,y)}),WB=Us(function(a,f){return Ks(a,M,n,n,n,f)});function HB(a,f){if(typeof a!="function")throw new re(s);return f=f===n?f:Kt(f),Wt(a,f)}function GB(a,f){if(typeof a!="function")throw new re(s);return f=f==null?0:an(Kt(f),0),Wt(function(y){var E=y[f],B=Fa(y,0,f);return E&&$o(B,E),Hn(a,this,B)})}function YB(a,f,y){var E=!0,B=!0;if(typeof a!="function")throw new re(s);return jn(y)&&(E="leading"in y?!!y.leading:E,B="trailing"in y?!!y.trailing:B),Sw(a,f,{leading:E,maxWait:f,trailing:B})}function ZB(a){return bw(a,1)}function XB(a,f){return Xg(Og(f),a)}function JB(){if(!arguments.length)return[];var a=arguments[0];return Vt(a)?a:[a]}function QB(a){return Wi(a,b)}function eV(a,f){return f=typeof f=="function"?f:n,Wi(a,b,f)}function tV(a){return Wi(a,m|b)}function nV(a,f){return f=typeof f=="function"?f:n,Wi(a,m|b,f)}function rV(a,f){return f==null||d$(a,f,Dr(f))}function To(a,f){return a===f||a!==a&&f!==f}var iV=vh(Cg),oV=vh(function(a,f){return a>=f}),Du=y$(function(){return arguments}())?y$:function(a){return Zn(a)&&Ue.call(a,"callee")&&!kn.call(a,"callee")},Vt=Y.isArray,sV=Os?Nr(Os):pL;function pi(a){return a!=null&&Dh(a.length)&&!qs(a)}function tr(a){return Zn(a)&&pi(a)}function aV(a){return a===!0||a===!1||Zn(a)&&Qr(a)==ye}var ka=wo||uv,uV=eh?Nr(eh):mL;function lV(a){return Zn(a)&&a.nodeType===1&&!uf(a)}function cV(a){if(a==null)return!0;if(pi(a)&&(Vt(a)||typeof a=="string"||typeof a.splice=="function"||ka(a)||Sl(a)||Du(a)))return!a.length;var f=Kr(a);if(f==Dt||f==Ge)return!a.size;if(sf(a))return!Dg(a).length;for(var y in a)if(Ue.call(a,y))return!1;return!0}function fV(a,f){return nf(a,f)}function dV(a,f,y){y=typeof y=="function"?y:n;var E=y?y(a,f):n;return E===n?nf(a,f,n,y):!!E}function Jg(a){if(!Zn(a))return!1;var f=Qr(a);return f==Ke||f==He||typeof a.message=="string"&&typeof a.name=="string"&&!uf(a)}function hV(a){return typeof a=="number"&&Ri(a)}function qs(a){if(!jn(a))return!1;var f=Qr(a);return f==Be||f==st||f==Qe||f==Se}function Dw(a){return typeof a=="number"&&a==Kt(a)}function Dh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=I}function jn(a){var f=typeof a;return a!=null&&(f=="object"||f=="function")}function Zn(a){return a!=null&&typeof a=="object"}var Aw=th?Nr(th):vL;function pV(a,f){return a===f||Eg(a,f,Kg(f))}function mV(a,f,y){return y=typeof y=="function"?y:n,Eg(a,f,Kg(f),y)}function gV(a){return Tw(a)&&a!=+a}function vV(a){if(e8(a))throw new he(o);return b$(a)}function yV(a){return a===null}function bV(a){return a==null}function Tw(a){return typeof a=="number"||Zn(a)&&Qr(a)==ln}function uf(a){if(!Zn(a)||Qr(a)!=It)return!1;var f=Lt(a);if(f===null)return!0;var y=Ue.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&it.call(y)==$e}var Qg=zc?Nr(zc):yL;function xV(a){return Dw(a)&&a>=-9007199254740991&&a<=I}var Pw=Aa?Nr(Aa):bL;function Ah(a){return typeof a=="string"||!Vt(a)&&Zn(a)&&Qr(a)==rt}function Oi(a){return typeof a=="symbol"||Zn(a)&&Qr(a)==nt}var Sl=xo?Nr(xo):xL;function $V(a){return a===n}function wV(a){return Zn(a)&&Kr(a)==Et}function CV(a){return Zn(a)&&Qr(a)==$n}var SV=vh(Ag),EV=vh(function(a,f){return a<=f});function _w(a){if(!a)return[];if(pi(a))return Ah(a)?P(a):hi(a);if(cr&&a[cr])return Qo(a[cr]());var f=Kr(a),y=f==Dt?Gn:f==Ge?Ta:El;return y(a)}function Ws(a){if(!a)return a===0?a:0;if(a=Yi(a),a===N||a===-1/0){var f=a<0?-1:1;return f*de}return a===a?a:0}function Kt(a){var f=Ws(a),y=f%1;return f===f?y?f-y:f:0}function Rw(a){return a?wu(Kt(a),0,ie):0}function Yi(a){if(typeof a=="number")return a;if(Oi(a))return se;if(jn(a)){var f=typeof a.valueOf=="function"?a.valueOf():a;a=jn(f)?f+"":f}if(typeof a!="string")return a===0?a:+a;a=rh(a);var y=Zr.test(a);return y||Es.test(a)?vr(a.slice(2),y?2:8):Pi.test(a)?se:+a}function Mw(a){return rs(a,mi(a))}function DV(a){return a?wu(Kt(a),-9007199254740991,I):a===0?a:0}function pn(a){return a==null?"":ki(a)}var AV=$l(function(a,f){if(sf(f)||pi(f)){rs(f,Dr(f),a);return}for(var y in f)Ue.call(f,y)&&Qc(a,y,f[y])}),Fw=$l(function(a,f){rs(f,mi(f),a)}),Th=$l(function(a,f,y,E){rs(f,mi(f),a,E)}),TV=$l(function(a,f,y,E){rs(f,Dr(f),a,E)}),PV=Us(xg);function _V(a,f){var y=xl(a);return f==null?y:f$(y,f)}var RV=Wt(function(a,f){a=L(a);var y=-1,E=f.length,B=E>2?f[2]:n;for(B&&ei(f[0],f[1],B)&&(E=1);++y<E;)for(var oe=f[y],be=mi(oe),Ee=-1,_e=be.length;++Ee<_e;){var Ye=be[Ee],Xe=a[Ye];(Xe===n||To(Xe,Oe[Ye])&&!Ue.call(a,Ye))&&(a[Ye]=oe[Ye])}return a}),MV=Wt(function(a){return a.push(n,Z$),Hn(kw,n,a)});function FV(a,f){return qc(a,Pt(f,3),ns)}function kV(a,f){return qc(a,Pt(f,3),wg)}function OV(a,f){return a==null?a:$g(a,Pt(f,3),mi)}function IV(a,f){return a==null?a:g$(a,Pt(f,3),mi)}function LV(a,f){return a&&ns(a,Pt(f,3))}function BV(a,f){return a&&wg(a,Pt(f,3))}function VV(a){return a==null?[]:lh(a,Dr(a))}function NV(a){return a==null?[]:lh(a,mi(a))}function ev(a,f,y){var E=a==null?n:Cu(a,f);return E===n?y:E}function jV(a,f){return a!=null&&Q$(a,f,cL)}function tv(a,f){return a!=null&&Q$(a,f,fL)}var KV=q$(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=je.call(f)),a[f]=y},rv(gi)),UV=q$(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=je.call(f)),Ue.call(a,f)?a[f].push(y):a[f]=[y]},Pt),zV=Wt(tf);function Dr(a){return pi(a)?l$(a):Dg(a)}function mi(a){return pi(a)?l$(a,!0):$L(a)}function qV(a,f){var y={};return f=Pt(f,3),ns(a,function(E,B,oe){js(y,f(E,B,oe),E)}),y}function WV(a,f){var y={};return f=Pt(f,3),ns(a,function(E,B,oe){js(y,B,f(E,B,oe))}),y}var HV=$l(function(a,f,y){ch(a,f,y)}),kw=$l(function(a,f,y,E){ch(a,f,y,E)}),GV=Us(function(a,f){var y={};if(a==null)return y;var E=!1;f=wn(f,function(oe){return oe=Ma(oe,a),E||(E=oe.length>1),oe}),rs(a,Ng(a),y),E&&(y=Wi(y,m|g|b,KL));for(var B=f.length;B--;)Mg(y,f[B]);return y});function YV(a,f){return Ow(a,Eh(Pt(f)))}var ZV=Us(function(a,f){return a==null?{}:CL(a,f)});function Ow(a,f){if(a==null)return{};var y=wn(Ng(a),function(E){return[E]});return f=Pt(f),D$(a,y,function(E,B){return f(E,B[0])})}function XV(a,f,y){f=Ma(f,a);var E=-1,B=f.length;for(B||(B=1,a=n);++E<B;){var oe=a==null?n:a[is(f[E])];oe===n&&(E=B,oe=y),a=qs(oe)?oe.call(a):oe}return a}function JV(a,f,y){return a==null?a:rf(a,f,y)}function QV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:rf(a,f,y,E)}var Iw=G$(Dr),Lw=G$(mi);function eN(a,f,y){var E=Vt(a),B=E||ka(a)||Sl(a);if(f=Pt(f,4),y==null){var oe=a&&a.constructor;B?y=E?new oe:[]:jn(a)?y=qs(oe)?xl(Lt(a)):{}:y={}}return(B?Sn:ns)(a,function(be,Ee,_e){return f(y,be,Ee,_e)}),y}function tN(a,f){return a==null?!0:Mg(a,f)}function nN(a,f,y){return a==null?a:R$(a,f,Og(y))}function rN(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:R$(a,f,Og(y),E)}function El(a){return a==null?[]:Gc(a,Dr(a))}function iN(a){return a==null?[]:Gc(a,mi(a))}function oN(a,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Yi(y),y=y===y?y:0),f!==n&&(f=Yi(f),f=f===f?f:0),wu(Yi(a),f,y)}function sN(a,f,y){return f=Ws(f),y===n?(y=f,f=0):y=Ws(y),a=Yi(a),dL(a,f,y)}function aN(a,f,y){if(y&&typeof y!="boolean"&&ei(a,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&f===n?(a=0,f=1):(a=Ws(a),f===n?(f=a,a=0):f=Ws(f)),a>f){var E=a;a=f,f=E}if(y||a%1||f%1){var B=Eo();return On(a+B*(f-a+Fn("1e-"+((B+"").length-1))),f)}return Pg(a,f)}var uN=wl(function(a,f,y){return f=f.toLowerCase(),a+(y?Bw(f):f)});function Bw(a){return nv(pn(a).toLowerCase())}function Vw(a){return a=pn(a),a&&a.replace(Xr,vg).replace(Ms,"")}function lN(a,f,y){a=pn(a),f=ki(f);var E=a.length;y=y===n?E:wu(Kt(y),0,E);var B=y;return y-=f.length,y>=0&&a.slice(y,B)==f}function cN(a){return a=pn(a),a&&Ss.test(a)?a.replace(_r,Bs):a}function fN(a){return a=pn(a),a&&wt.test(a)?a.replace(Ti,"\\$&"):a}var dN=wl(function(a,f,y){return a+(y?"-":"")+f.toLowerCase()}),hN=wl(function(a,f,y){return a+(y?" ":"")+f.toLowerCase()}),pN=K$("toLowerCase");function mN(a,f,y){a=pn(a),f=Kt(f);var E=f?x(a):0;if(!f||E>=f)return a;var B=(f-E)/2;return gh(di(B),y)+a+gh(Cn(B),y)}function gN(a,f,y){a=pn(a),f=Kt(f);var E=f?x(a):0;return f&&E<f?a+gh(f-E,y):a}function vN(a,f,y){a=pn(a),f=Kt(f);var E=f?x(a):0;return f&&E<f?gh(f-E,y)+a:a}function yN(a,f,y){return y||f==null?f=0:f&&(f=+f),Mi(pn(a).replace(An,""),f||0)}function bN(a,f,y){return(y?ei(a,f,y):f===n)?f=1:f=Kt(f),_g(pn(a),f)}function xN(){var a=arguments,f=pn(a[0]);return a.length<3?f:f.replace(a[1],a[2])}var $N=wl(function(a,f,y){return a+(y?"_":"")+f.toLowerCase()});function wN(a,f,y){return y&&typeof y!="number"&&ei(a,f,y)&&(f=y=n),y=y===n?ie:y>>>0,y?(a=pn(a),a&&(typeof f=="string"||f!=null&&!Qg(f))&&(f=ki(f),!f&&jr(a))?Fa(P(a),0,y):a.split(f,y)):[]}var CN=wl(function(a,f,y){return a+(y?" ":"")+nv(f)});function SN(a,f,y){return a=pn(a),y=y==null?0:wu(Kt(y),0,a.length),f=ki(f),a.slice(y,y+f.length)==f}function EN(a,f,y){var E=X.templateSettings;y&&ei(a,f,y)&&(f=n),a=pn(a),f=Th({},f,E,Y$);var B=Th({},f.imports,E.imports,Y$),oe=Dr(B),be=Gc(B,oe),Ee,_e,Ye=0,Xe=f.interpolate||Tn,tt="__p += '",ft=V((f.escape||Tn).source+"|"+Xe.source+"|"+(Xe===ga?lt:Tn).source+"|"+(f.evaluate||Tn).source+"|$","g"),$t="//# sourceURL="+(Ue.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ks+"]")+`
|
|
68
|
-
`;a.replace(ft,function(Mt,Xt,rn,Ii,ti,Li){return rn||(rn=Ii),tt+=a.slice(Ye,Li).replace(go,_i),Xt&&(Ee=!0,tt+=`' +
|
|
69
|
-
__e(`+Xt+`) +
|
|
70
|
-
'`),ti&&(_e=!0,tt+=`';
|
|
71
|
-
`+ti+`;
|
|
72
|
-
__p += '`),rn&&(tt+=`' +
|
|
73
|
-
((__t = (`+rn+`)) == null ? '' : __t) +
|
|
74
|
-
'`),Ye=Li+Mt.length,Mt}),tt+=`';
|
|
75
|
-
`;var Rt=Ue.call(f,"variable")&&f.variable;if(!Rt)tt=`with (obj) {
|
|
76
|
-
`+tt+`
|
|
77
|
-
}
|
|
78
|
-
`;else if(uu.test(Rt))throw new he(u);tt=(_e?tt.replace(ci,""):tt).replace(Yr,"$1").replace(Uo,"$1;"),tt="function("+(Rt||"obj")+`) {
|
|
79
|
-
`+(Rt?"":`obj || (obj = {});
|
|
80
|
-
`)+"var __t, __p = ''"+(Ee?", __e = _.escape":"")+(_e?`, __j = Array.prototype.join;
|
|
81
|
-
function print() { __p += __j.call(arguments, '') }
|
|
82
|
-
`:`;
|
|
83
|
-
`)+tt+`return __p
|
|
84
|
-
}`;var zt=jw(function(){return H(oe,$t+"return "+tt).apply(n,be)});if(zt.source=tt,Jg(zt))throw zt;return zt}function DN(a){return pn(a).toLowerCase()}function AN(a){return pn(a).toUpperCase()}function TN(a,f,y){if(a=pn(a),a&&(y||f===n))return rh(a);if(!a||!(f=ki(f)))return a;var E=P(a),B=P(f),oe=vl(E,B),be=Sr(E,B)+1;return Fa(E,oe,be).join("")}function PN(a,f,y){if(a=pn(a),a&&(y||f===n))return a.slice(0,_(a)+1);if(!a||!(f=ki(f)))return a;var E=P(a),B=Sr(E,P(f))+1;return Fa(E,0,B).join("")}function _N(a,f,y){if(a=pn(a),a&&(y||f===n))return a.replace(An,"");if(!a||!(f=ki(f)))return a;var E=P(a),B=vl(E,P(f));return Fa(E,B).join("")}function RN(a,f){var y=ae,E=W;if(jn(f)){var B="separator"in f?f.separator:B;y="length"in f?Kt(f.length):y,E="omission"in f?ki(f.omission):E}a=pn(a);var oe=a.length;if(jr(a)){var be=P(a);oe=be.length}if(y>=oe)return a;var Ee=y-x(E);if(Ee<1)return E;var _e=be?Fa(be,0,Ee).join(""):a.slice(0,Ee);if(B===n)return _e+E;if(be&&(Ee+=_e.length-Ee),Qg(B)){if(a.slice(Ee).search(B)){var Ye,Xe=_e;for(B.global||(B=V(B.source,pn(yn.exec(B))+"g")),B.lastIndex=0;Ye=B.exec(Xe);)var tt=Ye.index;_e=_e.slice(0,tt===n?Ee:tt)}}else if(a.indexOf(ki(B),Ee)!=Ee){var ft=_e.lastIndexOf(B);ft>-1&&(_e=_e.slice(0,ft))}return _e+E}function MN(a){return a=pn(a),a&&Di.test(a)?a.replace(Ct,z):a}var FN=wl(function(a,f,y){return a+(y?" ":"")+f.toUpperCase()}),nv=K$("toUpperCase");function Nw(a,f,y){return a=pn(a),f=y?n:f,f===n?Yc(a)?xe(a):pg(a):a.match(f)||[]}var jw=Wt(function(a,f){try{return Hn(a,n,f)}catch(y){return Jg(y)?y:new he(y)}}),kN=Us(function(a,f){return Sn(f,function(y){y=is(y),js(a,y,Zg(a[y],a))}),a});function ON(a){var f=a==null?0:a.length,y=Pt();return a=f?wn(a,function(E){if(typeof E[1]!="function")throw new re(s);return[y(E[0]),E[1]]}):[],Wt(function(E){for(var B=-1;++B<f;){var oe=a[B];if(Hn(oe[0],this,E))return Hn(oe[1],this,E)}})}function IN(a){return aL(Wi(a,m))}function rv(a){return function(){return a}}function LN(a,f){return a==null||a!==a?f:a}var BN=z$(),VN=z$(!0);function gi(a){return a}function iv(a){return x$(typeof a=="function"?a:Wi(a,m))}function NN(a){return w$(Wi(a,m))}function jN(a,f){return C$(a,Wi(f,m))}var KN=Wt(function(a,f){return function(y){return tf(y,a,f)}}),UN=Wt(function(a,f){return function(y){return tf(a,y,f)}});function ov(a,f,y){var E=Dr(f),B=lh(f,E);y==null&&!(jn(f)&&(B.length||!E.length))&&(y=f,f=a,a=this,B=lh(f,Dr(f)));var oe=!(jn(y)&&"chain"in y)||!!y.chain,be=qs(a);return Sn(B,function(Ee){var _e=f[Ee];a[Ee]=_e,be&&(a.prototype[Ee]=function(){var Ye=this.__chain__;if(oe||Ye){var Xe=a(this.__wrapped__),tt=Xe.__actions__=hi(this.__actions__);return tt.push({func:_e,args:arguments,thisArg:a}),Xe.__chain__=Ye,Xe}return _e.apply(a,$o([this.value()],arguments))})}),a}function zN(){return Bn._===this&&(Bn._=fe),this}function sv(){}function qN(a){return a=Kt(a),Wt(function(f){return S$(f,a)})}var WN=Lg(wn),HN=Lg(Is),GN=Lg(Xo);function Kw(a){return zg(a)?pl(is(a)):SL(a)}function YN(a){return function(f){return a==null?n:Cu(a,f)}}var ZN=W$(),XN=W$(!0);function av(){return[]}function uv(){return!1}function JN(){return{}}function QN(){return""}function ej(){return!0}function tj(a,f){if(a=Kt(a),a<1||a>I)return[];var y=ie,E=On(a,ie);f=Pt(f),a-=ie;for(var B=gl(E,f);++y<a;)f(y);return B}function nj(a){return Vt(a)?wn(a,is):Oi(a)?[a]:hi(uw(pn(a)))}function rj(a){var f=++ht;return pn(a)+f}var ij=mh(function(a,f){return a+f},0),oj=Bg("ceil"),sj=mh(function(a,f){return a/f},1),aj=Bg("floor");function uj(a){return a&&a.length?uh(a,gi,Cg):n}function lj(a,f){return a&&a.length?uh(a,Pt(f,2),Cg):n}function cj(a){return yu(a,gi)}function fj(a,f){return yu(a,Pt(f,2))}function dj(a){return a&&a.length?uh(a,gi,Ag):n}function hj(a,f){return a&&a.length?uh(a,Pt(f,2),Ag):n}var pj=mh(function(a,f){return a*f},1),mj=Bg("round"),gj=mh(function(a,f){return a-f},0);function vj(a){return a&&a.length?Jo(a,gi):0}function yj(a,f){return a&&a.length?Jo(a,Pt(f,2)):0}return X.after=NB,X.ary=bw,X.assign=AV,X.assignIn=Fw,X.assignInWith=Th,X.assignWith=TV,X.at=PV,X.before=xw,X.bind=Zg,X.bindAll=kN,X.bindKey=$w,X.castArray=JB,X.chain=gw,X.chunk=a8,X.compact=u8,X.concat=l8,X.cond=ON,X.conforms=IN,X.constant=rv,X.countBy=vB,X.create=_V,X.curry=ww,X.curryRight=Cw,X.debounce=Sw,X.defaults=RV,X.defaultsDeep=MV,X.defer=jB,X.delay=KB,X.difference=c8,X.differenceBy=f8,X.differenceWith=d8,X.drop=h8,X.dropRight=p8,X.dropRightWhile=m8,X.dropWhile=g8,X.fill=v8,X.filter=bB,X.flatMap=wB,X.flatMapDeep=CB,X.flatMapDepth=SB,X.flatten=dw,X.flattenDeep=y8,X.flattenDepth=b8,X.flip=UB,X.flow=BN,X.flowRight=VN,X.fromPairs=x8,X.functions=VV,X.functionsIn=NV,X.groupBy=EB,X.initial=w8,X.intersection=C8,X.intersectionBy=S8,X.intersectionWith=E8,X.invert=KV,X.invertBy=UV,X.invokeMap=AB,X.iteratee=iv,X.keyBy=TB,X.keys=Dr,X.keysIn=mi,X.map=wh,X.mapKeys=qV,X.mapValues=WV,X.matches=NN,X.matchesProperty=jN,X.memoize=Sh,X.merge=HV,X.mergeWith=kw,X.method=KN,X.methodOf=UN,X.mixin=ov,X.negate=Eh,X.nthArg=qN,X.omit=GV,X.omitBy=YV,X.once=zB,X.orderBy=PB,X.over=WN,X.overArgs=qB,X.overEvery=HN,X.overSome=GN,X.partial=Xg,X.partialRight=Ew,X.partition=_B,X.pick=ZV,X.pickBy=Ow,X.property=Kw,X.propertyOf=YN,X.pull=P8,X.pullAll=pw,X.pullAllBy=_8,X.pullAllWith=R8,X.pullAt=M8,X.range=ZN,X.rangeRight=XN,X.rearg=WB,X.reject=FB,X.remove=F8,X.rest=HB,X.reverse=Gg,X.sampleSize=OB,X.set=JV,X.setWith=QV,X.shuffle=IB,X.slice=k8,X.sortBy=VB,X.sortedUniq=j8,X.sortedUniqBy=K8,X.split=wN,X.spread=GB,X.tail=U8,X.take=z8,X.takeRight=q8,X.takeRightWhile=W8,X.takeWhile=H8,X.tap=uB,X.throttle=YB,X.thru=$h,X.toArray=_w,X.toPairs=Iw,X.toPairsIn=Lw,X.toPath=nj,X.toPlainObject=Mw,X.transform=eN,X.unary=ZB,X.union=G8,X.unionBy=Y8,X.unionWith=Z8,X.uniq=X8,X.uniqBy=J8,X.uniqWith=Q8,X.unset=tN,X.unzip=Yg,X.unzipWith=mw,X.update=nN,X.updateWith=rN,X.values=El,X.valuesIn=iN,X.without=eB,X.words=Nw,X.wrap=XB,X.xor=tB,X.xorBy=nB,X.xorWith=rB,X.zip=iB,X.zipObject=oB,X.zipObjectDeep=sB,X.zipWith=aB,X.entries=Iw,X.entriesIn=Lw,X.extend=Fw,X.extendWith=Th,ov(X,X),X.add=ij,X.attempt=jw,X.camelCase=uN,X.capitalize=Bw,X.ceil=oj,X.clamp=oN,X.clone=QB,X.cloneDeep=tV,X.cloneDeepWith=nV,X.cloneWith=eV,X.conformsTo=rV,X.deburr=Vw,X.defaultTo=LN,X.divide=sj,X.endsWith=lN,X.eq=To,X.escape=cN,X.escapeRegExp=fN,X.every=yB,X.find=xB,X.findIndex=cw,X.findKey=FV,X.findLast=$B,X.findLastIndex=fw,X.findLastKey=kV,X.floor=aj,X.forEach=vw,X.forEachRight=yw,X.forIn=OV,X.forInRight=IV,X.forOwn=LV,X.forOwnRight=BV,X.get=ev,X.gt=iV,X.gte=oV,X.has=jV,X.hasIn=tv,X.head=hw,X.identity=gi,X.includes=DB,X.indexOf=$8,X.inRange=sN,X.invoke=zV,X.isArguments=Du,X.isArray=Vt,X.isArrayBuffer=sV,X.isArrayLike=pi,X.isArrayLikeObject=tr,X.isBoolean=aV,X.isBuffer=ka,X.isDate=uV,X.isElement=lV,X.isEmpty=cV,X.isEqual=fV,X.isEqualWith=dV,X.isError=Jg,X.isFinite=hV,X.isFunction=qs,X.isInteger=Dw,X.isLength=Dh,X.isMap=Aw,X.isMatch=pV,X.isMatchWith=mV,X.isNaN=gV,X.isNative=vV,X.isNil=bV,X.isNull=yV,X.isNumber=Tw,X.isObject=jn,X.isObjectLike=Zn,X.isPlainObject=uf,X.isRegExp=Qg,X.isSafeInteger=xV,X.isSet=Pw,X.isString=Ah,X.isSymbol=Oi,X.isTypedArray=Sl,X.isUndefined=$V,X.isWeakMap=wV,X.isWeakSet=CV,X.join=D8,X.kebabCase=dN,X.last=Gi,X.lastIndexOf=A8,X.lowerCase=hN,X.lowerFirst=pN,X.lt=SV,X.lte=EV,X.max=uj,X.maxBy=lj,X.mean=cj,X.meanBy=fj,X.min=dj,X.minBy=hj,X.stubArray=av,X.stubFalse=uv,X.stubObject=JN,X.stubString=QN,X.stubTrue=ej,X.multiply=pj,X.nth=T8,X.noConflict=zN,X.noop=sv,X.now=Ch,X.pad=mN,X.padEnd=gN,X.padStart=vN,X.parseInt=yN,X.random=aN,X.reduce=RB,X.reduceRight=MB,X.repeat=bN,X.replace=xN,X.result=XV,X.round=mj,X.runInContext=F,X.sample=kB,X.size=LB,X.snakeCase=$N,X.some=BB,X.sortedIndex=O8,X.sortedIndexBy=I8,X.sortedIndexOf=L8,X.sortedLastIndex=B8,X.sortedLastIndexBy=V8,X.sortedLastIndexOf=N8,X.startCase=CN,X.startsWith=SN,X.subtract=gj,X.sum=vj,X.sumBy=yj,X.template=EN,X.times=tj,X.toFinite=Ws,X.toInteger=Kt,X.toLength=Rw,X.toLower=DN,X.toNumber=Yi,X.toSafeInteger=DV,X.toString=pn,X.toUpper=AN,X.trim=TN,X.trimEnd=PN,X.trimStart=_N,X.truncate=RN,X.unescape=MN,X.uniqueId=rj,X.upperCase=FN,X.upperFirst=nv,X.each=vw,X.eachRight=yw,X.first=hw,ov(X,function(){var a={};return ns(X,function(f,y){Ue.call(X.prototype,y)||(a[y]=f)}),a}(),{chain:!1}),X.VERSION=r,Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){X[a].placeholder=X}),Sn(["drop","take"],function(a,f){Qt.prototype[a]=function(y){y=y===n?1:an(Kt(y),0);var E=this.__filtered__&&!f?new Qt(this):this.clone();return E.__filtered__?E.__takeCount__=On(y,E.__takeCount__):E.__views__.push({size:On(y,ie),type:a+(E.__dir__<0?"Right":"")}),E},Qt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),Sn(["filter","map","takeWhile"],function(a,f){var y=f+1,E=y==K||y==U;Qt.prototype[a]=function(B){var oe=this.clone();return oe.__iteratees__.push({iteratee:Pt(B,3),type:y}),oe.__filtered__=oe.__filtered__||E,oe}}),Sn(["head","last"],function(a,f){var y="take"+(f?"Right":"");Qt.prototype[a]=function(){return this[y](1).value()[0]}}),Sn(["initial","tail"],function(a,f){var y="drop"+(f?"":"Right");Qt.prototype[a]=function(){return this.__filtered__?new Qt(this):this[y](1)}}),Qt.prototype.compact=function(){return this.filter(gi)},Qt.prototype.find=function(a){return this.filter(a).head()},Qt.prototype.findLast=function(a){return this.reverse().find(a)},Qt.prototype.invokeMap=Wt(function(a,f){return typeof a=="function"?new Qt(this):this.map(function(y){return tf(y,a,f)})}),Qt.prototype.reject=function(a){return this.filter(Eh(Pt(a)))},Qt.prototype.slice=function(a,f){a=Kt(a);var y=this;return y.__filtered__&&(a>0||f<0)?new Qt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),f!==n&&(f=Kt(f),y=f<0?y.dropRight(-f):y.take(f-a)),y)},Qt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Qt.prototype.toArray=function(){return this.take(ie)},ns(Qt.prototype,function(a,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),B=X[E?"take"+(f=="last"?"Right":""):f],oe=E||/^find/.test(f);B&&(X.prototype[f]=function(){var be=this.__wrapped__,Ee=E?[1]:arguments,_e=be instanceof Qt,Ye=Ee[0],Xe=_e||Vt(be),tt=function(Xt){var rn=B.apply(X,$o([Xt],Ee));return E&&ft?rn[0]:rn};Xe&&y&&typeof Ye=="function"&&Ye.length!=1&&(_e=Xe=!1);var ft=this.__chain__,$t=!!this.__actions__.length,Rt=oe&&!ft,zt=_e&&!$t;if(!oe&&Xe){be=zt?be:new Qt(this);var Mt=a.apply(be,Ee);return Mt.__actions__.push({func:$h,args:[tt],thisArg:n}),new qi(Mt,ft)}return Rt&&zt?a.apply(this,Ee):(Mt=this.thru(tt),Rt?E?Mt.value()[0]:Mt.value():Mt)})}),Sn(["pop","push","shift","sort","splice","unshift"],function(a){var f=ce[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);X.prototype[a]=function(){var B=arguments;if(E&&!this.__chain__){var oe=this.value();return f.apply(Vt(oe)?oe:[],B)}return this[y](function(be){return f.apply(Vt(be)?be:[],B)})}}),ns(Qt.prototype,function(a,f){var y=X[f];if(y){var E=y.name+"";Ue.call(bl,E)||(bl[E]=[]),bl[E].push({name:f,func:y})}}),bl[ph(n,S).name]=[{name:"wrapper",func:n}],Qt.prototype.clone=M9,Qt.prototype.reverse=F9,Qt.prototype.value=k9,X.prototype.at=lB,X.prototype.chain=cB,X.prototype.commit=fB,X.prototype.next=dB,X.prototype.plant=pB,X.prototype.reverse=mB,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=gB,X.prototype.first=X.prototype.head,cr&&(X.prototype[cr]=hB),X},Fe=Ce();Ki?((Ki.exports=Fe)._=Fe,ji._=Fe):Bn._=Fe}).call(OU)}(Ef,Ef.exports)),Ef.exports}var Q2=IU();const LU=Bo(Q2);var $d=e=>e.type==="checkbox",Ou=e=>e instanceof Date,ri=e=>e==null;const e_=e=>typeof e=="object";var sr=e=>!ri(e)&&!Array.isArray(e)&&e_(e)&&!Ou(e),t_=e=>sr(e)&&e.target?$d(e.target)?e.target.checked:e.target.value:e,BU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,n_=(e,t)=>e.has(BU(t)),VU=e=>{const t=e.constructor&&e.constructor.prototype;return sr(t)&&t.hasOwnProperty("isPrototypeOf")},j4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yr(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(!(j4&&(e instanceof Blob||r))&&(n||sr(e)))if(t=n?[]:{},!n&&!VU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=yr(e[i]));else return e;return t}var wd=e=>Array.isArray(e)?e.filter(Boolean):[],Ln=e=>e===void 0,at=(e,t,n)=>{if(!t||!sr(e))return n;const r=wd(t.split(/[,[\].]+?/)).reduce((i,o)=>ri(i)?i:i[o],e);return Ln(r)||r===e?Ln(e[t])?n:e[t]:r},no=e=>typeof e=="boolean",K4=e=>/^\w*$/.test(e),r_=e=>wd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),cn=(e,t,n)=>{let r=-1;const i=K4(t)?[t]:r_(t),o=i.length,s=o-1;for(;++r<o;){const u=i[r];let l=n;if(r!==s){const d=e[u];l=sr(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const _p={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},oo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Gs={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},i_=T.createContext(null),Cd=()=>T.useContext(i_),NU=e=>{const{children:t,...n}=e;return T.createElement(i_.Provider,{value:n},t)};var o_=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==oo.all&&(t._proxyFormState[s]=!r||oo.all),n&&(n[s]=!0),e[s]}});return i},ni=e=>sr(e)&&!Object.keys(e).length,s_=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ni(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||oo.all))},yi=e=>Array.isArray(e)?e:[e],a_=(e,t,n)=>!e||!t||e===t||yi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Em(e){const t=T.useRef(e);t.current=e,T.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function jU(e){const t=Cd(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[s,u]=T.useState(n._formState),l=T.useRef(!0),d=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=T.useRef(i);return h.current=i,Em({disabled:r,next:m=>l.current&&a_(h.current,m.name,o)&&s_(m,d.current,n._updateFormState)&&u({...n._formState,...m}),subject:n._subjects.state}),T.useEffect(()=>(l.current=!0,d.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),T.useMemo(()=>o_(s,n,d.current,!1),[s,n])}var cs=e=>typeof e=="string",u_=(e,t,n,r,i)=>cs(e)?(r&&t.watch.add(e),at(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),at(n,o))):(r&&(t.watchAll=!0),n);function l_(e){const t=Cd(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e||{},u=T.useRef(r);u.current=r,Em({disabled:o,subject:n._subjects.values,next:h=>{a_(u.current,h.name,s)&&d(yr(u_(u.current,n._names,h.values||n._formValues,!1,i)))}});const[l,d]=T.useState(n._getWatch(r,i));return T.useEffect(()=>n._removeUnmounted()),l}function KU(e){const t=Cd(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,s=n_(i._names.array,n),u=l_({control:i,name:n,defaultValue:at(i._formValues,n,at(i._defaultValues,n,e.defaultValue)),exact:!0}),l=jU({control:i,name:n,exact:!0}),d=T.useRef(i.register(n,{...e.rules,value:u,...no(e.disabled)?{disabled:e.disabled}:{}})),h=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!at(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!at(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!at(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!at(l.validatingFields,n)},error:{enumerable:!0,get:()=>at(l.errors,n)}}),[l,n]),m=T.useMemo(()=>({name:n,value:u,...no(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g=>d.current.onChange({target:{value:t_(g),name:n},type:_p.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:at(i._formValues,n),name:n},type:_p.BLUR}),ref:g=>{const b=at(i._fields,n);b&&g&&(b._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:$=>g.setCustomValidity($),reportValidity:()=>g.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return T.useEffect(()=>{const g=i._options.shouldUnregister||o,b=($,C)=>{const A=at(i._fields,$);A&&A._f&&(A._f.mount=C)};if(b(n,!0),g){const $=yr(at(i._options.defaultValues,n));cn(i._defaultValues,n,$),Ln(at(i._formValues,n))&&cn(i._formValues,n,$)}return!s&&i.register(n),()=>{(s?g&&!i._state.action:g)?i.unregister(n):b(n,!1)}},[n,i,s,o]),T.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),T.useMemo(()=>({field:m,formState:l,fieldState:h}),[m,l,h])}const UU=e=>e.render(KU(e));var c_=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Oa=()=>{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)})},yv=(e,t,n={})=>n.shouldFocus||Ln(n.shouldFocus)?n.focusName||`${e}.${Ln(n.focusIndex)?t:n.focusIndex}.`:"",Bf=e=>({isOnSubmit:!e||e===oo.onSubmit,isOnBlur:e===oo.onBlur,isOnChange:e===oo.onChange,isOnAll:e===oo.all,isOnTouch:e===oo.onTouched}),ab=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Wl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=at(e,i);if(o){const{_f:s,...u}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Wl(u,t))break}else if(sr(u)&&Wl(u,t))break}}};var f_=(e,t,n)=>{const r=yi(at(e,n));return cn(r,"root",t[n]),cn(e,n,r),e},U4=e=>e.type==="file",ls=e=>typeof e=="function",Rp=e=>{if(!j4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ap=e=>cs(e),z4=e=>e.type==="radio",Mp=e=>e instanceof RegExp;const bC={value:!1,isValid:!1},xC={value:!0,isValid:!0};var d_=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&&!Ln(e[0].attributes.value)?Ln(e[0].value)||e[0].value===""?xC:{value:e[0].value,isValid:!0}:xC:bC}return bC};const $C={isValid:!1,value:null};var h_=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,$C):$C;function wC(e,t,n="validate"){if(ap(e)||Array.isArray(e)&&e.every(ap)||no(e)&&!e)return{type:n,message:ap(e)?e:"",ref:t}}var Al=e=>sr(e)&&!Mp(e)?e:{value:e,message:""},ub=async(e,t,n,r,i,o)=>{const{ref:s,refs:u,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:$,name:C,valueAsNumber:A,mount:S}=e._f,w=at(n,C);if(!S||t.has(C))return{};const D=u?u[0]:s,O=De=>{i&&D.reportValidity&&(D.setCustomValidity(no(De)?"":De||""),D.reportValidity())},R={},k=z4(s),j=$d(s),M=k||j,ue=(A||U4(s))&&Ln(s.value)&&Ln(w)||Rp(s)&&s.value===""||w===""||Array.isArray(w)&&!w.length,ae=c_.bind(null,C,r,R),W=(De,q,K,ne=Gs.maxLength,U=Gs.minLength)=>{const N=De?q:K;R[C]={type:De?ne:U,message:N,ref:s,...ae(De?ne:U,N)}};if(o?!Array.isArray(w)||!w.length:l&&(!M&&(ue||ri(w))||no(w)&&!w||j&&!d_(u).isValid||k&&!h_(u).isValid)){const{value:De,message:q}=ap(l)?{value:!!l,message:l}:Al(l);if(De&&(R[C]={type:Gs.required,message:q,ref:D,...ae(Gs.required,q)},!r))return O(q),R}if(!ue&&(!ri(m)||!ri(g))){let De,q;const K=Al(g),ne=Al(m);if(!ri(w)&&!isNaN(w)){const U=s.valueAsNumber||w&&+w;ri(K.value)||(De=U>K.value),ri(ne.value)||(q=U<ne.value)}else{const U=s.valueAsDate||new Date(w),N=se=>new Date(new Date().toDateString()+" "+se),I=s.type=="time",de=s.type=="week";cs(K.value)&&w&&(De=I?N(w)>N(K.value):de?w>K.value:U>new Date(K.value)),cs(ne.value)&&w&&(q=I?N(w)<N(ne.value):de?w<ne.value:U<new Date(ne.value))}if((De||q)&&(W(!!De,K.message,ne.message,Gs.max,Gs.min),!r))return O(R[C].message),R}if((d||h)&&!ue&&(cs(w)||o&&Array.isArray(w))){const De=Al(d),q=Al(h),K=!ri(De.value)&&w.length>+De.value,ne=!ri(q.value)&&w.length<+q.value;if((K||ne)&&(W(K,De.message,q.message),!r))return O(R[C].message),R}if(b&&!ue&&cs(w)){const{value:De,message:q}=Al(b);if(Mp(De)&&!w.match(De)&&(R[C]={type:Gs.pattern,message:q,ref:s,...ae(Gs.pattern,q)},!r))return O(q),R}if($){if(ls($)){const De=await $(w,n),q=wC(De,D);if(q&&(R[C]={...q,...ae(Gs.validate,q.message)},!r))return O(q.message),R}else if(sr($)){let De={};for(const q in $){if(!ni(De)&&!r)break;const K=wC(await $[q](w,n),D,q);K&&(De={...K,...ae(q,K.message)},O(K.message),r&&(R[C]=De))}if(!ni(De)&&(R[C]={ref:D,...De},!r))return R}}return O(!0),R},bv=(e,t)=>[...e,...yi(t)],xv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function $v(e,t,n){return[...e.slice(0,t),...yi(n),...e.slice(t)]}var wv=(e,t,n)=>Array.isArray(e)?(Ln(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],Cv=(e,t)=>[...yi(t),...yi(e)];function zU(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return wd(r).length?r:[]}var Sv=(e,t)=>Ln(t)?[]:zU(e,yi(t).sort((n,r)=>n-r)),Ev=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function qU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ln(e)?r++:e[t[r++]];return e}function WU(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ln(e[t]))return!1;return!0}function fr(e,t){const n=Array.isArray(t)?t:K4(t)?[t]:r_(t),r=n.length===1?e:qU(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(sr(r)&&ni(r)||Array.isArray(r)&&WU(r))&&fr(e,n.slice(0,-1)),e}var CC=(e,t,n)=>(e[t]=n,e);function HU(e){const t=Cd(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:o,rules:s}=e,[u,l]=T.useState(n._getFieldArray(r)),d=T.useRef(n._getFieldArray(r).map(Oa)),h=T.useRef(u),m=T.useRef(r),g=T.useRef(!1);m.current=r,h.current=u,n._names.array.add(r),s&&n.register(r,s),Em({next:({values:k,name:j})=>{if(j===m.current||!j){const M=at(k,m.current);Array.isArray(M)&&(l(M),d.current=M.map(Oa))}},subject:n._subjects.array});const b=T.useCallback(k=>{g.current=!0,n._updateFieldArray(r,k)},[n,r]),$=(k,j)=>{const M=yi(yr(k)),ue=bv(n._getFieldArray(r),M);n._names.focus=yv(r,ue.length-1,j),d.current=bv(d.current,M.map(Oa)),b(ue),l(ue),n._updateFieldArray(r,ue,bv,{argA:xv(k)})},C=(k,j)=>{const M=yi(yr(k)),ue=Cv(n._getFieldArray(r),M);n._names.focus=yv(r,0,j),d.current=Cv(d.current,M.map(Oa)),b(ue),l(ue),n._updateFieldArray(r,ue,Cv,{argA:xv(k)})},A=k=>{const j=Sv(n._getFieldArray(r),k);d.current=Sv(d.current,k),b(j),l(j),!Array.isArray(at(n._fields,r))&&cn(n._fields,r,void 0),n._updateFieldArray(r,j,Sv,{argA:k})},S=(k,j,M)=>{const ue=yi(yr(j)),ae=$v(n._getFieldArray(r),k,ue);n._names.focus=yv(r,k,M),d.current=$v(d.current,k,ue.map(Oa)),b(ae),l(ae),n._updateFieldArray(r,ae,$v,{argA:k,argB:xv(j)})},w=(k,j)=>{const M=n._getFieldArray(r);Ev(M,k,j),Ev(d.current,k,j),b(M),l(M),n._updateFieldArray(r,M,Ev,{argA:k,argB:j},!1)},D=(k,j)=>{const M=n._getFieldArray(r);wv(M,k,j),wv(d.current,k,j),b(M),l(M),n._updateFieldArray(r,M,wv,{argA:k,argB:j},!1)},O=(k,j)=>{const M=yr(j),ue=CC(n._getFieldArray(r),k,M);d.current=[...ue].map((ae,W)=>!ae||W===k?Oa():d.current[W]),b(ue),l([...ue]),n._updateFieldArray(r,ue,CC,{argA:k,argB:M},!0,!1)},R=k=>{const j=yi(yr(k));d.current=j.map(Oa),b([...j]),l([...j]),n._updateFieldArray(r,[...j],M=>M,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,ab(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Bf(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(k=>{const j=at(k.errors,r),M=at(n._formState.errors,r);(M?!j&&M.type||j&&(M.type!==j.type||M.message!==j.message):j&&j.type)&&(j?cn(n._formState.errors,r,j):fr(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const k=at(n._fields,r);k&&k._f&&!(Bf(n._options.reValidateMode).isOnSubmit&&Bf(n._options.mode).isOnSubmit)&&ub(k,n._names.disabled,n._formValues,n._options.criteriaMode===oo.all,n._options.shouldUseNativeValidation,!0).then(j=>!ni(j)&&n._subjects.state.next({errors:f_(n._formState.errors,j,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&Wl(n._fields,(k,j)=>{if(n._names.focus&&j.startsWith(n._names.focus)&&k.focus)return k.focus(),1}),n._names.focus="",n._updateValid(),g.current=!1},[u,r,n]),T.useEffect(()=>(!at(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||o)&&n.unregister(r)}),[r,n,i,o]),{swap:T.useCallback(w,[b,r,n]),move:T.useCallback(D,[b,r,n]),prepend:T.useCallback(C,[b,r,n]),append:T.useCallback($,[b,r,n]),remove:T.useCallback(A,[b,r,n]),insert:T.useCallback(S,[b,r,n]),update:T.useCallback(O,[b,r,n]),replace:T.useCallback(R,[b,r,n]),fields:T.useMemo(()=>u.map((k,j)=>({...k,[i]:d.current[j]||Oa()})),[u,i])}}var Dv=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},lb=e=>ri(e)||!e_(e);function Ua(e,t){if(lb(e)||lb(t))return e===t;if(Ou(e)&&Ou(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Ou(o)&&Ou(s)||sr(o)&&sr(s)||Array.isArray(o)&&Array.isArray(s)?!Ua(o,s):o!==s)return!1}}return!0}var p_=e=>e.type==="select-multiple",GU=e=>z4(e)||$d(e),Av=e=>Rp(e)&&e.isConnected,m_=e=>{for(const t in e)if(ls(e[t]))return!0;return!1};function Fp(e,t={}){const n=Array.isArray(e);if(sr(e)||n)for(const r in e)Array.isArray(e[r])||sr(e[r])&&!m_(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Fp(e[r],t[r])):ri(e[r])||(t[r]=!0);return t}function g_(e,t,n){const r=Array.isArray(e);if(sr(e)||r)for(const i in e)Array.isArray(e[i])||sr(e[i])&&!m_(e[i])?Ln(t)||lb(n[i])?n[i]=Array.isArray(e[i])?Fp(e[i],[]):{...Fp(e[i])}:g_(e[i],ri(t)?{}:t[i],n[i]):n[i]=!Ua(e[i],t[i]);return n}var lf=(e,t)=>g_(e,t,Fp(t)),v_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ln(e)?e:t?e===""?NaN:e&&+e:n&&cs(e)?new Date(e):r?r(e):e;function Tv(e){const t=e.ref;return U4(t)?t.files:z4(t)?h_(e.refs).value:p_(t)?[...t.selectedOptions].map(({value:n})=>n):$d(t)?d_(e.refs).value:v_(Ln(t.value)?e.ref.value:t.value,e)}var YU=(e,t,n,r)=>{const i={};for(const o of e){const s=at(t,o);s&&cn(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},cf=e=>Ln(e)?e:Mp(e)?e.source:sr(e)?Mp(e.value)?e.value.source:e.value:e;const SC="AsyncFunction";var ZU=e=>!!e&&!!e.validate&&!!(ls(e.validate)&&e.validate.constructor.name===SC||sr(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===SC)),XU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function EC(e,t,n){const r=at(e,n);if(r||K4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=at(t,o),u=at(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var JU=(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,QU=(e,t)=>!wd(at(e,t)).length&&fr(e,t);const ez={mode:oo.onSubmit,reValidateMode:oo.onChange,shouldFocusError:!0};function tz(e={}){let t={...ez,...e},n={submitCount:0,isDirty:!1,isLoading:ls(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=sr(t.defaultValues)||sr(t.values)?yr(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:yr(i),s={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:Dv(),array:Dv(),state:Dv()},g=Bf(t.mode),b=Bf(t.reValidateMode),$=t.criteriaMode===oo.all,C=we=>Se=>{clearTimeout(d),d=setTimeout(we,Se)},A=async we=>{if(!t.disabled&&(h.isValid||we)){const Se=t.resolver?ni((await M()).errors):await ae(r,!0);Se!==n.isValid&&m.state.next({isValid:Se})}},S=(we,Se)=>{!t.disabled&&(h.isValidating||h.validatingFields)&&((we||Array.from(u.mount)).forEach(Re=>{Re&&(Se?cn(n.validatingFields,Re,Se):fr(n.validatingFields,Re))}),m.state.next({validatingFields:n.validatingFields,isValidating:!ni(n.validatingFields)}))},w=(we,Se=[],Re,Ge,rt=!0,nt=!0)=>{if(Ge&&Re&&!t.disabled){if(s.action=!0,nt&&Array.isArray(at(r,we))){const dt=Re(at(r,we),Ge.argA,Ge.argB);rt&&cn(r,we,dt)}if(nt&&Array.isArray(at(n.errors,we))){const dt=Re(at(n.errors,we),Ge.argA,Ge.argB);rt&&cn(n.errors,we,dt),QU(n.errors,we)}if(h.touchedFields&&nt&&Array.isArray(at(n.touchedFields,we))){const dt=Re(at(n.touchedFields,we),Ge.argA,Ge.argB);rt&&cn(n.touchedFields,we,dt)}h.dirtyFields&&(n.dirtyFields=lf(i,o)),m.state.next({name:we,isDirty:De(we,Se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else cn(o,we,Se)},D=(we,Se)=>{cn(n.errors,we,Se),m.state.next({errors:n.errors})},O=we=>{n.errors=we,m.state.next({errors:n.errors,isValid:!1})},R=(we,Se,Re,Ge)=>{const rt=at(r,we);if(rt){const nt=at(o,we,Ln(Re)?at(i,we):Re);Ln(nt)||Ge&&Ge.defaultChecked||Se?cn(o,we,Se?nt:Tv(rt._f)):ne(we,nt),s.mount&&A()}},k=(we,Se,Re,Ge,rt)=>{let nt=!1,dt=!1;const Et={name:we};if(!t.disabled){const $n=!!(at(r,we)&&at(r,we)._f&&at(r,we)._f.disabled);if(!Re||Ge){h.isDirty&&(dt=n.isDirty,n.isDirty=Et.isDirty=De(),nt=dt!==Et.isDirty);const en=$n||Ua(at(i,we),Se);dt=!!(!$n&&at(n.dirtyFields,we)),en||$n?fr(n.dirtyFields,we):cn(n.dirtyFields,we,!0),Et.dirtyFields=n.dirtyFields,nt=nt||h.dirtyFields&&dt!==!en}if(Re){const en=at(n.touchedFields,we);en||(cn(n.touchedFields,we,Re),Et.touchedFields=n.touchedFields,nt=nt||h.touchedFields&&en!==Re)}nt&&rt&&m.state.next(Et)}return nt?Et:{}},j=(we,Se,Re,Ge)=>{const rt=at(n.errors,we),nt=h.isValid&&no(Se)&&n.isValid!==Se;if(t.delayError&&Re?(l=C(()=>D(we,Re)),l(t.delayError)):(clearTimeout(d),l=null,Re?cn(n.errors,we,Re):fr(n.errors,we)),(Re?!Ua(rt,Re):rt)||!ni(Ge)||nt){const dt={...Ge,...nt&&no(Se)?{isValid:Se}:{},errors:n.errors,name:we};n={...n,...dt},m.state.next(dt)}},M=async we=>{S(we,!0);const Se=await t.resolver(o,t.context,YU(we||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(we),Se},ue=async we=>{const{errors:Se}=await M(we);if(we)for(const Re of we){const Ge=at(Se,Re);Ge?cn(n.errors,Re,Ge):fr(n.errors,Re)}else n.errors=Se;return Se},ae=async(we,Se,Re={valid:!0})=>{for(const Ge in we){const rt=we[Ge];if(rt){const{_f:nt,...dt}=rt;if(nt){const Et=u.array.has(nt.name),$n=rt._f&&ZU(rt._f);$n&&h.validatingFields&&S([Ge],!0);const en=await ub(rt,u.disabled,o,$,t.shouldUseNativeValidation&&!Se,Et);if($n&&h.validatingFields&&S([Ge]),en[nt.name]&&(Re.valid=!1,Se))break;!Se&&(at(en,nt.name)?Et?f_(n.errors,en,nt.name):cn(n.errors,nt.name,en[nt.name]):fr(n.errors,nt.name))}!ni(dt)&&await ae(dt,Se,Re)}}return Re.valid},W=()=>{for(const we of u.unMount){const Se=at(r,we);Se&&(Se._f.refs?Se._f.refs.every(Re=>!Av(Re)):!Av(Se._f.ref))&&Je(we)}u.unMount=new Set},De=(we,Se)=>!t.disabled&&(we&&Se&&cn(o,we,Se),!Ua(ie(),i)),q=(we,Se,Re)=>u_(we,u,{...s.mount?o:Ln(Se)?i:cs(we)?{[we]:Se}:Se},Re,Se),K=we=>wd(at(s.mount?o:i,we,t.shouldUnregister?at(i,we,[]):[])),ne=(we,Se,Re={})=>{const Ge=at(r,we);let rt=Se;if(Ge){const nt=Ge._f;nt&&(!nt.disabled&&cn(o,we,v_(Se,nt)),rt=Rp(nt.ref)&&ri(Se)?"":Se,p_(nt.ref)?[...nt.ref.options].forEach(dt=>dt.selected=rt.includes(dt.value)):nt.refs?$d(nt.ref)?nt.refs.length>1?nt.refs.forEach(dt=>(!dt.defaultChecked||!dt.disabled)&&(dt.checked=Array.isArray(rt)?!!rt.find(Et=>Et===dt.value):rt===dt.value)):nt.refs[0]&&(nt.refs[0].checked=!!rt):nt.refs.forEach(dt=>dt.checked=dt.value===rt):U4(nt.ref)?nt.ref.value="":(nt.ref.value=rt,nt.ref.type||m.values.next({name:we,values:{...o}})))}(Re.shouldDirty||Re.shouldTouch)&&k(we,rt,Re.shouldTouch,Re.shouldDirty,!0),Re.shouldValidate&&se(we)},U=(we,Se,Re)=>{for(const Ge in Se){const rt=Se[Ge],nt=`${we}.${Ge}`,dt=at(r,nt);(u.array.has(we)||sr(rt)||dt&&!dt._f)&&!Ou(rt)?U(nt,rt,Re):ne(nt,rt,Re)}},N=(we,Se,Re={})=>{const Ge=at(r,we),rt=u.array.has(we),nt=yr(Se);cn(o,we,nt),rt?(m.array.next({name:we,values:{...o}}),(h.isDirty||h.dirtyFields)&&Re.shouldDirty&&m.state.next({name:we,dirtyFields:lf(i,o),isDirty:De(we,nt)})):Ge&&!Ge._f&&!ri(nt)?U(we,nt,Re):ne(we,nt,Re),ab(we,u)&&m.state.next({...n}),m.values.next({name:s.mount?we:void 0,values:{...o}})},I=async we=>{s.mount=!0;const Se=we.target;let Re=Se.name,Ge=!0;const rt=at(r,Re),nt=()=>Se.type?Tv(rt._f):t_(we),dt=Et=>{Ge=Number.isNaN(Et)||Ou(Et)&&isNaN(Et.getTime())||Ua(Et,at(o,Re,Et))};if(rt){let Et,$n;const en=nt(),Gt=we.type===_p.BLUR||we.type===_p.FOCUS_OUT,Lr=!XU(rt._f)&&!t.resolver&&!at(n.errors,Re)&&!rt._f.deps||JU(Gt,at(n.touchedFields,Re),n.isSubmitted,b,g),Pr=ab(Re,u,Gt);cn(o,Re,en),Gt?(rt._f.onBlur&&rt._f.onBlur(we),l&&l(0)):rt._f.onChange&&rt._f.onChange(we);const Yt=k(Re,en,Gt,!1),kt=!ni(Yt)||Pr;if(!Gt&&m.values.next({name:Re,type:we.type,values:{...o}}),Lr)return h.isValid&&(t.mode==="onBlur"&&Gt?A():Gt||A()),kt&&m.state.next({name:Re,...Pr?{}:Yt});if(!Gt&&Pr&&m.state.next({...n}),t.resolver){const{errors:jt}=await M([Re]);if(dt(en),Ge){const tn=EC(n.errors,r,Re),Xn=EC(jt,r,tn.name||Re);Et=Xn.error,Re=Xn.name,$n=ni(jt)}}else S([Re],!0),Et=(await ub(rt,u.disabled,o,$,t.shouldUseNativeValidation))[Re],S([Re]),dt(en),Ge&&(Et?$n=!1:h.isValid&&($n=await ae(r,!0)));Ge&&(rt._f.deps&&se(rt._f.deps),j(Re,$n,Et,Yt))}},de=(we,Se)=>{if(at(n.errors,Se)&&we.focus)return we.focus(),1},se=async(we,Se={})=>{let Re,Ge;const rt=yi(we);if(t.resolver){const nt=await ue(Ln(we)?we:rt);Re=ni(nt),Ge=we?!rt.some(dt=>at(nt,dt)):Re}else we?(Ge=(await Promise.all(rt.map(async nt=>{const dt=at(r,nt);return await ae(dt&&dt._f?{[nt]:dt}:dt)}))).every(Boolean),!(!Ge&&!n.isValid)&&A()):Ge=Re=await ae(r);return m.state.next({...!cs(we)||h.isValid&&Re!==n.isValid?{}:{name:we},...t.resolver||!we?{isValid:Re}:{},errors:n.errors}),Se.shouldFocus&&!Ge&&Wl(r,de,we?rt:u.mount),Ge},ie=we=>{const Se={...s.mount?o:i};return Ln(we)?Se:cs(we)?at(Se,we):we.map(Re=>at(Se,Re))},Ae=(we,Se)=>({invalid:!!at((Se||n).errors,we),isDirty:!!at((Se||n).dirtyFields,we),error:at((Se||n).errors,we),isValidating:!!at(n.validatingFields,we),isTouched:!!at((Se||n).touchedFields,we)}),Pe=we=>{we&&yi(we).forEach(Se=>fr(n.errors,Se)),m.state.next({errors:we?n.errors:{}})},Ie=(we,Se,Re)=>{const Ge=(at(r,we,{_f:{}})._f||{}).ref,rt=at(n.errors,we)||{},{ref:nt,message:dt,type:Et,...$n}=rt;cn(n.errors,we,{...$n,...Se,ref:Ge}),m.state.next({name:we,errors:n.errors,isValid:!1}),Re&&Re.shouldFocus&&Ge&&Ge.focus&&Ge.focus()},Le=(we,Se)=>ls(we)?m.values.subscribe({next:Re=>we(q(void 0,Se),Re)}):q(we,Se,!0),Je=(we,Se={})=>{for(const Re of we?yi(we):u.mount)u.mount.delete(Re),u.array.delete(Re),Se.keepValue||(fr(r,Re),fr(o,Re)),!Se.keepError&&fr(n.errors,Re),!Se.keepDirty&&fr(n.dirtyFields,Re),!Se.keepTouched&&fr(n.touchedFields,Re),!Se.keepIsValidating&&fr(n.validatingFields,Re),!t.shouldUnregister&&!Se.keepDefaultValue&&fr(i,Re);m.values.next({values:{...o}}),m.state.next({...n,...Se.keepDirty?{isDirty:De()}:{}}),!Se.keepIsValid&&A()},Qe=({disabled:we,name:Se,field:Re,fields:Ge})=>{(no(we)&&s.mount||we||u.disabled.has(Se))&&(we?u.disabled.add(Se):u.disabled.delete(Se),k(Se,Tv(Re?Re._f:at(Ge,Se)._f),!1,!1,!0))},ye=(we,Se={})=>{let Re=at(r,we);const Ge=no(Se.disabled)||no(t.disabled);return cn(r,we,{...Re||{},_f:{...Re&&Re._f?Re._f:{ref:{name:we}},name:we,mount:!0,...Se}}),u.mount.add(we),Re?Qe({field:Re,disabled:no(Se.disabled)?Se.disabled:t.disabled,name:we}):R(we,!0,Se.value),{...Ge?{disabled:Se.disabled||t.disabled}:{},...t.progressive?{required:!!Se.required,min:cf(Se.min),max:cf(Se.max),minLength:cf(Se.minLength),maxLength:cf(Se.maxLength),pattern:cf(Se.pattern)}:{},name:we,onChange:I,onBlur:I,ref:rt=>{if(rt){ye(we,Se),Re=at(r,we);const nt=Ln(rt.value)&&rt.querySelectorAll&&rt.querySelectorAll("input,select,textarea")[0]||rt,dt=GU(nt),Et=Re._f.refs||[];if(dt?Et.find($n=>$n===nt):nt===Re._f.ref)return;cn(r,we,{_f:{...Re._f,...dt?{refs:[...Et.filter(Av),nt,...Array.isArray(at(i,we))?[{}]:[]],ref:{type:nt.type,name:we}}:{ref:nt}}}),R(we,!1,void 0,nt)}else Re=at(r,we,{}),Re._f&&(Re._f.mount=!1),(t.shouldUnregister||Se.shouldUnregister)&&!(n_(u.array,we)&&s.action)&&u.unMount.add(we)}}},Ne=()=>t.shouldFocusError&&Wl(r,de,u.mount),He=we=>{no(we)&&(m.state.next({disabled:we}),Wl(r,(Se,Re)=>{const Ge=at(r,Re);Ge&&(Se.disabled=Ge._f.disabled||we,Array.isArray(Ge._f.refs)&&Ge._f.refs.forEach(rt=>{rt.disabled=Ge._f.disabled||we}))},0,!1))},Ke=(we,Se)=>async Re=>{let Ge;Re&&(Re.preventDefault&&Re.preventDefault(),Re.persist&&Re.persist());let rt=yr(o);if(u.disabled.size)for(const nt of u.disabled)cn(rt,nt,void 0);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:nt,values:dt}=await M();n.errors=nt,rt=dt}else await ae(r);if(fr(n.errors,"root"),ni(n.errors)){m.state.next({errors:{}});try{await we(rt,Re)}catch(nt){Ge=nt}}else Se&&await Se({...n.errors},Re),Ne(),setTimeout(Ne);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ni(n.errors)&&!Ge,submitCount:n.submitCount+1,errors:n.errors}),Ge)throw Ge},Be=(we,Se={})=>{at(r,we)&&(Ln(Se.defaultValue)?N(we,yr(at(i,we))):(N(we,Se.defaultValue),cn(i,we,yr(Se.defaultValue))),Se.keepTouched||fr(n.touchedFields,we),Se.keepDirty||(fr(n.dirtyFields,we),n.isDirty=Se.defaultValue?De(we,yr(at(i,we))):De()),Se.keepError||(fr(n.errors,we),h.isValid&&A()),m.state.next({...n}))},st=(we,Se={})=>{const Re=we?yr(we):i,Ge=yr(Re),rt=ni(we),nt=rt?i:Ge;if(Se.keepDefaultValues||(i=Re),!Se.keepValues){if(Se.keepDirtyValues){const dt=new Set([...u.mount,...Object.keys(lf(i,o))]);for(const Et of Array.from(dt))at(n.dirtyFields,Et)?cn(nt,Et,at(o,Et)):N(Et,at(nt,Et))}else{if(j4&&Ln(we))for(const dt of u.mount){const Et=at(r,dt);if(Et&&Et._f){const $n=Array.isArray(Et._f.refs)?Et._f.refs[0]:Et._f.ref;if(Rp($n)){const en=$n.closest("form");if(en){en.reset();break}}}}r={}}o=t.shouldUnregister?Se.keepDefaultValues?yr(i):{}:yr(nt),m.array.next({values:{...nt}}),m.values.next({values:{...nt}})}u={mount:Se.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!h.isValid||!!Se.keepIsValid||!!Se.keepDirtyValues,s.watch=!!t.shouldUnregister,m.state.next({submitCount:Se.keepSubmitCount?n.submitCount:0,isDirty:rt?!1:Se.keepDirty?n.isDirty:!!(Se.keepDefaultValues&&!Ua(we,i)),isSubmitted:Se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:rt?{}:Se.keepDirtyValues?Se.keepDefaultValues&&o?lf(i,o):n.dirtyFields:Se.keepDefaultValues&&we?lf(i,we):Se.keepDirty?n.dirtyFields:{},touchedFields:Se.keepTouched?n.touchedFields:{},errors:Se.keepErrors?n.errors:{},isSubmitSuccessful:Se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Dt=(we,Se)=>st(ls(we)?we(o):we,Se);return{control:{register:ye,unregister:Je,getFieldState:Ae,handleSubmit:Ke,setError:Ie,_executeSchema:M,_getWatch:q,_getDirty:De,_updateValid:A,_removeUnmounted:W,_updateFieldArray:w,_updateDisabledField:Qe,_getFieldArray:K,_reset:st,_resetDefaultValues:()=>ls(t.defaultValues)&&t.defaultValues().then(we=>{Dt(we,t.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:we=>{n={...n,...we}},_disableForm:He,_subjects:m,_proxyFormState:h,_setErrors:O,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(we){s=we},get _defaultValues(){return i},get _names(){return u},set _names(we){u=we},get _formState(){return n},set _formState(we){n=we},get _options(){return t},set _options(we){t={...t,...we}}},trigger:se,register:ye,handleSubmit:Ke,watch:Le,setValue:N,getValues:ie,reset:Dt,resetField:Be,clearErrors:Pe,unregister:Je,setError:Ie,setFocus:(we,Se={})=>{const Re=at(r,we),Ge=Re&&Re._f;if(Ge){const rt=Ge.refs?Ge.refs[0]:Ge.ref;rt.focus&&(rt.focus(),Se.shouldSelect&&ls(rt.select)&&rt.select())}},getFieldState:Ae}}function nz(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,i]=T.useState({isDirty:!1,isValidating:!1,isLoading:ls(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:ls(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...tz(e),formState:r});const o=t.current.control;return o._options=e,Em({subject:o._subjects.state,next:s=>{s_(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),T.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),T.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),T.useEffect(()=>{e.values&&!Ua(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),T.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),T.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),T.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=o_(r,o),t.current}const En=typeof document<"u"?T.useLayoutEffect:()=>{};function or(e){const t=T.useRef(null);return En(()=>{t.current=e},[e]),T.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function rz(e){let[t,n]=T.useState(e),r=T.useRef(null),i=or(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});En(()=>{r.current&&i()});let o=or(s=>{r.current=s(t),i()});return[t,o]}const kp={prefix:String(Math.round(Math.random()*1e10)),current:0},y_=T.createContext(kp),iz=T.createContext(!1);let oz=!!(typeof window<"u"&&window.document&&window.document.createElement),Pv=new WeakMap;function sz(e=!1){let t=T.useContext(y_),n=T.useRef(null);if(n.current===null&&!e){var r,i;let o=(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(o){let s=Pv.get(o);s==null?Pv.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==s.state&&(t.current=s.id,Pv.delete(o))}n.current=++t.current}return n.current}function az(e){let t=T.useContext(y_);t===kp&&!oz&&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=sz(!!e),r=t===kp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function uz(e){let t=T.useId(),[n]=T.useState(q4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${kp.prefix}`;return e||`${r}-${t}`}const lz=typeof T.useId=="function"?uz:az;function cz(){return!1}function fz(){return!0}function dz(e){return()=>{}}function q4(){return typeof T.useSyncExternalStore=="function"?T.useSyncExternalStore(dz,cz,fz):T.useContext(iz)}let hz=!!(typeof window<"u"&&window.document&&window.document.createElement),ja=new Map;function wi(e){let[t,n]=T.useState(e),r=T.useRef(null),i=lz(t),o=T.useCallback(s=>{r.current=s},[]);return hz&&(ja.has(i)&&!ja.get(i).includes(o)?ja.set(i,[...ja.get(i),o]):ja.set(i,[o])),En(()=>{let s=i;return()=>{ja.delete(s)}},[i]),T.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function pz(e,t){if(e===t)return e;let n=ja.get(e);if(n)return n.forEach(i=>i(t)),t;let r=ja.get(t);return r?(r.forEach(i=>i(e)),e):t}function ac(e=[]){let t=wi(),[n,r]=rz(t),i=T.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return En(i,[t,i,...e]),n}function Ju(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Mn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},eu=e=>e&&"window"in e&&e.window===e?e:Mn(e).defaultView||window;function b_(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=b_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mz(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=b_(e))&&(r&&(r+=" "),r+=t);return r}function hn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],s=r[i];typeof o=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Ju(o,s):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof s=="string"?t[i]=mz(o,s):i==="id"&&o&&s?t.id=pz(o,s):t[i]=s!==void 0?s:o}}return t}const gz=new Set(["id"]),vz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),yz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),bz=/^(data-.*)$/;function ca(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(gz.has(s)||n&&vz.has(s)||r&&yz.has(s)||i!=null&&i.has(s)||bz.test(s))&&(o[s]=e[s]);return o}function Fo(e){if(xz())e.focus({preventScroll:!0});else{let t=$z(e);e.focus(),wz(t)}}let kh=null;function xz(){if(kh==null){kh=!1;try{document.createElement("div").focus({get preventScroll(){return kh=!0,!0}})}catch{}}return kh}function $z(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 wz(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Dm(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function W4(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 fa(e){let t=null;return()=>(t==null&&(t=e()),t)}const aa=fa(function(){return W4(/^Mac/i)}),Cz=fa(function(){return W4(/^iPhone/i)}),x_=fa(function(){return W4(/^iPad/i)||aa()&&navigator.maxTouchPoints>1}),Sd=fa(function(){return Cz()||x_()}),up=fa(function(){return aa()||Sd()}),H4=fa(function(){return Dm(/AppleWebKit/i)&&!$_()}),$_=fa(function(){return Dm(/Chrome/i)}),G4=fa(function(){return Dm(/Android/i)}),Sz=fa(function(){return Dm(/Firefox/i)}),Ez=T.createContext({isNative:!0,open:Az,useHref:e=>e});function Am(){return T.useContext(Ez)}function Qu(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:s,altKey:u,shiftKey:l}=t;Sz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(aa()?o=!0:s=!0);let d=H4()&&aa()&&!x_()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:s,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:s,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});Qu.isOpening=n,Fo(e),e.dispatchEvent(d),Qu.isOpening=!1}Qu.isOpening=!1;function Dz(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function Az(e,t){Dz(e,n=>Qu(n,t))}function Tz(e){let t=Am();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 Rl=new Map,cb=new Set;function DC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Rl.get(r.target);i||(i=new Set,Rl.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=Rl.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Rl.delete(r.target)),Rl.size===0)){for(let o of cb)o();cb.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?DC():document.addEventListener("DOMContentLoaded",DC));function w_(e){requestAnimationFrame(()=>{Rl.size===0?e():cb.add(e)})}function Dc(){let e=T.useRef(new Map),t=T.useCallback((i,o,s,u)=>{let l=u!=null&&u.once?(...d)=>{e.current.delete(s),s(...d)}:s;e.current.set(s,{type:o,eventTarget:i,fn:l,options:u}),i.addEventListener(o,l,u)},[]),n=T.useCallback((i,o,s,u)=>{var l;let d=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;i.removeEventListener(o,d,u),e.current.delete(s)},[]),r=T.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return T.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function uc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=wi(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 AC(e,t){const n=T.useRef(!0),r=T.useRef(null);T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),T.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function TC(e,t){const n=T.useRef(!0),r=T.useRef(null);En(()=>(n.current=!0,()=>{n.current=!1}),[]),En(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function Pz(){return typeof window.ResizeObserver<"u"}function PC(e){const{ref:t,box:n,onResize:r}=e;T.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(Pz()){const o=new window.ResizeObserver(s=>{s.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function C_(e,t){En(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Xf(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 Tm(e,t){let n=e;for(Xf(n,t)&&(n=n.parentElement);n&&!Xf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function _z(e,t){const n=[];for(;e&&e!==document.documentElement;)Xf(e,t)&&n.push(e),e=e.parentElement;return n}let Rz=0;const _v=new Map;function Ed(e){let[t,n]=T.useState();return En(()=>{if(!e)return;let r=_v.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Rz++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},_v.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),_v.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function fs(e,t,n,r){let i=or(n),o=n==null;T.useEffect(()=>{if(o||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,o,i])}function S_(e,t){let n=_C(e,t,"left"),r=_C(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),$=s+parseInt(d,10),C=u+parseInt(l,10),A=$+e.clientWidth,S=C+e.clientHeight,w=parseInt(h,10)||0,D=parseInt(g,10)||0,O=parseInt(m,10)||0,R=parseInt(b,10)||0;n<=s+R?s=n-parseInt(d,10)-R:n+i>A-O&&(s+=n+i-A+O),r<=C+w?u=r-parseInt(l,10)-w:r+o>S-D&&(u+=r+o-S+D),e.scrollLeft=s,e.scrollTop=u}function _C(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 Op(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let l=_z(e);for(let d of l)S_(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,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function fb(e){return e.mozInputSource===0&&e.isTrusted?!0:G4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Mz(e){return!G4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function E_(e,t){let n=T.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Y4(e,t,n){let r=T.useRef(t),i=or(()=>{n&&n(r.current)});T.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}const Fz="react-aria-clear-focus",kz="react-aria-focus",D_="react-aria-update-activedescendant";function Ml(e){return aa()?e.metaKey:e.ctrlKey}function Bi(e,t,n){let[r,i]=T.useState(e||t),o=T.useRef(e!==void 0),s=e!==void 0;T.useEffect(()=>{let d=o.current;d!==s&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s},[s]);let u=s?e:r,l=T.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(u,g)||n(g,...b)),s||(u=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...$)=>{let C=d(s?u:b,...$);return m(C,...h),s?b:C})):(s||i(d),m(d,...h))},[s,u,n]);return[u,l]}function lc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Oh(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=Math.pow(10,o);n=Math.round(n*s)/s}return n}function ff(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=Oh(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(Oh(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(Oh((n-t)/r,r))*r),o=Oh(o,r),o}let kl="default",db="",lp=new WeakMap;function hb(e){if(Sd()){if(kl==="default"){const t=Mn(e);db=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}kl="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(lp.set(e,e.style.userSelect),e.style.userSelect="none")}function Df(e){if(Sd()){if(kl!=="disabled")return;kl="restoring",setTimeout(()=>{w_(()=>{if(kl==="restoring"){const t=Mn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=db||""),db="",kl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&lp.has(e)){let t=lp.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),lp.delete(e)}}const Z4=T.createContext({register:()=>{}});Z4.displayName="PressResponderContext";function Oz(e,t){return t.get?t.get.call(e):t.value}function A_(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Iz(e,t){var n=A_(e,t,"get");return Oz(e,n)}function Lz(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Dd(e,t,n){Lz(e,t),t.set(e,n)}function Bz(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 RC(e,t,n){var r=A_(e,t,"set");return Bz(e,r,n),n}function Vz(e){let t=T.useContext(Z4);if(t){let{register:n,...r}=t;e=hn(r,e),n()}return C_(t,e.ref),e}var Ih=new WeakMap;class Lh{continuePropagation(){RC(this,Ih,!1)}get shouldStopPropagation(){return Iz(this,Ih)}constructor(t,n,r,i){Dd(this,Ih,{writable:!0,value:void 0}),RC(this,Ih,!0);var o;let s=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=s==null?void 0:s.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),u&&(h!=null&&m!=null?(l=h-u.left,d=m-u.top):(l=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const MC=Symbol("linkClicked");function Ad(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:s,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:h,ref:m,...g}=Vz(e),[b,$]=T.useState(!1),C=T.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:A,removeAllGlobalListeners:S}=Dc(),w=or((M,ue)=>{let ae=C.current;if(s||ae.didFirePressStart)return!1;let W=!0;if(ae.isTriggeringEvent=!0,r){let De=new Lh("pressstart",ue,M);r(De),W=De.shouldStopPropagation}return n&&n(!0),ae.isTriggeringEvent=!1,ae.didFirePressStart=!0,$(!0),W}),D=or((M,ue,ae=!0)=>{let W=C.current;if(!W.didFirePressStart)return!1;W.ignoreClickAfterPress=!0,W.didFirePressStart=!1,W.isTriggeringEvent=!0;let De=!0;if(i){let q=new Lh("pressend",ue,M);i(q),De=q.shouldStopPropagation}if(n&&n(!1),$(!1),t&&ae&&!s){let q=new Lh("press",ue,M);t(q),De&&(De=q.shouldStopPropagation)}return W.isTriggeringEvent=!1,De}),O=or((M,ue)=>{let ae=C.current;if(s)return!1;if(o){ae.isTriggeringEvent=!0;let W=new Lh("pressup",ue,M);return o(W),ae.isTriggeringEvent=!1,W.shouldStopPropagation}return!0}),R=or(M=>{let ue=C.current;ue.isPressed&&ue.target&&(ue.isOverTarget&&ue.pointerType!=null&&D(Ys(ue.target,M),ue.pointerType,!1),ue.isPressed=!1,ue.isOverTarget=!1,ue.activePointerId=null,ue.pointerType=null,S(),h||Df(ue.target))}),k=or(M=>{d&&R(M)}),j=T.useMemo(()=>{let M=C.current,ue={onKeyDown(W){if(Rv(W.nativeEvent,W.currentTarget)&&W.currentTarget.contains(W.target)){var De;kC(W.target,W.key)&&W.preventDefault();let q=!0;if(!M.isPressed&&!W.repeat){M.target=W.currentTarget,M.isPressed=!0,q=w(W,"keyboard");let K=W.currentTarget,ne=U=>{Rv(U,K)&&!U.repeat&&K.contains(U.target)&&M.target&&O(Ys(M.target,U),"keyboard")};A(Mn(W.currentTarget),"keyup",Ju(ne,ae),!0)}q&&W.stopPropagation(),W.metaKey&&aa()&&((De=M.metaKeyEvents)===null||De===void 0||De.set(W.key,W.nativeEvent))}else W.key==="Meta"&&(M.metaKeyEvents=new Map)},onClick(W){if(!(W&&!W.currentTarget.contains(W.target))&&W&&W.button===0&&!M.isTriggeringEvent&&!Qu.isOpening){let De=!0;if(s&&W.preventDefault(),!M.ignoreClickAfterPress&&!M.ignoreEmulatedMouseEvents&&!M.isPressed&&(M.pointerType==="virtual"||fb(W.nativeEvent))){!s&&!l&&Fo(W.currentTarget);let q=w(W,"virtual"),K=O(W,"virtual"),ne=D(W,"virtual");De=q&&K&&ne}M.ignoreEmulatedMouseEvents=!1,M.ignoreClickAfterPress=!1,De&&W.stopPropagation()}}},ae=W=>{var De;if(M.isPressed&&M.target&&Rv(W,M.target)){var q;kC(W.target,W.key)&&W.preventDefault();let ne=W.target;D(Ys(M.target,W),"keyboard",M.target.contains(ne)),S(),W.key!=="Enter"&&X4(M.target)&&M.target.contains(ne)&&!W[MC]&&(W[MC]=!0,Qu(M.target,W,!1)),M.isPressed=!1,(q=M.metaKeyEvents)===null||q===void 0||q.delete(W.key)}else if(W.key==="Meta"&&(!((De=M.metaKeyEvents)===null||De===void 0)&&De.size)){var K;let ne=M.metaKeyEvents;M.metaKeyEvents=void 0;for(let U of ne.values())(K=M.target)===null||K===void 0||K.dispatchEvent(new KeyboardEvent("keyup",U))}};if(typeof PointerEvent<"u"){ue.onPointerDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Mz(K.nativeEvent)){M.pointerType="virtual";return}Fv(K.currentTarget)&&K.preventDefault(),M.pointerType=K.pointerType;let ne=!0;if(!M.isPressed){M.isPressed=!0,M.isOverTarget=!0,M.activePointerId=K.pointerId,M.target=K.currentTarget,!s&&!l&&Fo(K.currentTarget),h||hb(M.target),ne=w(K,M.pointerType);let U=K.target;"releasePointerCapture"in U&&U.releasePointerCapture(K.pointerId),A(Mn(K.currentTarget),"pointerup",W,!1),A(Mn(K.currentTarget),"pointercancel",q,!1)}ne&&K.stopPropagation()},ue.onMouseDown=K=>{K.currentTarget.contains(K.target)&&K.button===0&&(Fv(K.currentTarget)&&K.preventDefault(),K.stopPropagation())},ue.onPointerUp=K=>{!K.currentTarget.contains(K.target)||M.pointerType==="virtual"||K.button===0&&O(K,M.pointerType||K.pointerType)},ue.onPointerEnter=K=>{K.pointerId===M.activePointerId&&M.target&&!M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!0,w(Ys(M.target,K),M.pointerType))},ue.onPointerLeave=K=>{K.pointerId===M.activePointerId&&M.target&&M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!1,D(Ys(M.target,K),M.pointerType,!1),k(K))};let W=K=>{K.pointerId===M.activePointerId&&M.isPressed&&K.button===0&&M.target&&(M.target.contains(K.target)&&M.pointerType!=null?D(Ys(M.target,K),M.pointerType):M.isOverTarget&&M.pointerType!=null&&D(Ys(M.target,K),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,S(),h||Df(M.target),"ontouchend"in M.target&&K.pointerType!=="mouse"&&A(M.target,"touchend",De,{once:!0}))},De=K=>{T_(K.currentTarget)&&K.preventDefault()},q=K=>{R(K)};ue.onDragStart=K=>{K.currentTarget.contains(K.target)&&R(K)}}else{ue.onMouseDown=q=>{if(q.button!==0||!q.currentTarget.contains(q.target))return;if(Fv(q.currentTarget)&&q.preventDefault(),M.ignoreEmulatedMouseEvents){q.stopPropagation();return}M.isPressed=!0,M.isOverTarget=!0,M.target=q.currentTarget,M.pointerType=fb(q.nativeEvent)?"virtual":"mouse",!s&&!l&&Fo(q.currentTarget),w(q,M.pointerType)&&q.stopPropagation(),A(Mn(q.currentTarget),"mouseup",W,!1)},ue.onMouseEnter=q=>{if(!q.currentTarget.contains(q.target))return;let K=!0;M.isPressed&&!M.ignoreEmulatedMouseEvents&&M.pointerType!=null&&(M.isOverTarget=!0,K=w(q,M.pointerType)),K&&q.stopPropagation()},ue.onMouseLeave=q=>{if(!q.currentTarget.contains(q.target))return;let K=!0;M.isPressed&&!M.ignoreEmulatedMouseEvents&&M.pointerType!=null&&(M.isOverTarget=!1,K=D(q,M.pointerType,!1),k(q)),K&&q.stopPropagation()},ue.onMouseUp=q=>{q.currentTarget.contains(q.target)&&!M.ignoreEmulatedMouseEvents&&q.button===0&&O(q,M.pointerType||"mouse")};let W=q=>{if(q.button===0){if(M.isPressed=!1,S(),M.ignoreEmulatedMouseEvents){M.ignoreEmulatedMouseEvents=!1;return}M.target&&Mv(q,M.target)&&M.pointerType!=null?D(Ys(M.target,q),M.pointerType):M.target&&M.isOverTarget&&M.pointerType!=null&&D(Ys(M.target,q),M.pointerType,!1),M.isOverTarget=!1}};ue.onTouchStart=q=>{if(!q.currentTarget.contains(q.target))return;let K=Nz(q.nativeEvent);if(!K)return;M.activePointerId=K.identifier,M.ignoreEmulatedMouseEvents=!0,M.isOverTarget=!0,M.isPressed=!0,M.target=q.currentTarget,M.pointerType="touch",!s&&!l&&Fo(q.currentTarget),h||hb(M.target),w(Ia(M.target,q),M.pointerType)&&q.stopPropagation(),A(eu(q.currentTarget),"scroll",De,!0)},ue.onTouchMove=q=>{if(!q.currentTarget.contains(q.target))return;if(!M.isPressed){q.stopPropagation();return}let K=FC(q.nativeEvent,M.activePointerId),ne=!0;K&&Mv(K,q.currentTarget)?!M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!0,ne=w(Ia(M.target,q),M.pointerType)):M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!1,ne=D(Ia(M.target,q),M.pointerType,!1),k(Ia(M.target,q))),ne&&q.stopPropagation()},ue.onTouchEnd=q=>{if(!q.currentTarget.contains(q.target))return;if(!M.isPressed){q.stopPropagation();return}let K=FC(q.nativeEvent,M.activePointerId),ne=!0;K&&Mv(K,q.currentTarget)&&M.pointerType!=null?(O(Ia(M.target,q),M.pointerType),ne=D(Ia(M.target,q),M.pointerType)):M.isOverTarget&&M.pointerType!=null&&(ne=D(Ia(M.target,q),M.pointerType,!1)),ne&&q.stopPropagation(),M.isPressed=!1,M.activePointerId=null,M.isOverTarget=!1,M.ignoreEmulatedMouseEvents=!0,M.target&&!h&&Df(M.target),S()},ue.onTouchCancel=q=>{q.currentTarget.contains(q.target)&&(q.stopPropagation(),M.isPressed&&R(Ia(M.target,q)))};let De=q=>{M.isPressed&&q.target.contains(M.target)&&R({currentTarget:M.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};ue.onDragStart=q=>{q.currentTarget.contains(q.target)&&R(q)}}return ue},[A,s,l,S,h,R,k,D,w,O]);return T.useEffect(()=>()=>{var M;h||Df((M=C.current.target)!==null&&M!==void 0?M:void 0)},[h]),{isPressed:u||b,pressProps:hn(g,j)}}function X4(e){return e.tagName==="A"&&e.hasAttribute("href")}function Rv(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof eu(i).HTMLInputElement&&!P_(i,n)||i instanceof eu(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&X4(i))&&n!=="Enter")}function Nz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function FC(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 Ia(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 Ys(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 jz(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 Kz(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Mv(e,t){let n=t.getBoundingClientRect(),r=jz(e);return Kz(n,r)}function Fv(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function T_(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!X4(e)}function kC(e,t){return e instanceof HTMLInputElement?!P_(e,t):T_(e)}const Uz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function P_(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Uz.has(e.type)}function zz({children:e}){let t=T.useMemo(()=>({register:()=>{}}),[]);return T.createElement(Z4.Provider,{value:t},e)}class qz{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function __(e){let t=T.useRef({isFocused:!1,observer:null});En(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=or(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,o=s=>{t.current.isFocused=!1,i.disabled&&n(new qz("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Wz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=T.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=__(o),u=T.useCallback(l=>{const d=Mn(l.target);l.target===l.currentTarget&&d.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let il=null,Hz=new Set,Vf=new Map,el=!1,pb=!1;function Pm(e,t){for(let n of Hz)n(e,t)}function Gz(e){return!(e.metaKey||!aa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ip(e){el=!0,Gz(e)&&(il="keyboard",Pm("keyboard",e))}function ro(e){il="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(el=!0,Pm("pointer",e))}function R_(e){fb(e)&&(el=!0,il="virtual")}function M_(e){e.target===window||e.target===document||(!el&&!pb&&(il="virtual",Pm("virtual",e)),el=!1,pb=!1)}function F_(){el=!1,pb=!0}function OC(e){if(typeof window>"u"||Vf.get(eu(e)))return;const t=eu(e),n=Mn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){el=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ip,!0),n.addEventListener("keyup",Ip,!0),n.addEventListener("click",R_,!0),t.addEventListener("focus",M_,!0),t.addEventListener("blur",F_,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ro,!0),n.addEventListener("pointermove",ro,!0),n.addEventListener("pointerup",ro,!0)):(n.addEventListener("mousedown",ro,!0),n.addEventListener("mousemove",ro,!0),n.addEventListener("mouseup",ro,!0)),t.addEventListener("beforeunload",()=>{k_(e)},{once:!0}),Vf.set(t,{focus:r})}const k_=(e,t)=>{const n=eu(e),r=Mn(e);t&&r.removeEventListener("DOMContentLoaded",t),Vf.has(n)&&(n.HTMLElement.prototype.focus=Vf.get(n).focus,r.removeEventListener("keydown",Ip,!0),r.removeEventListener("keyup",Ip,!0),r.removeEventListener("click",R_,!0),n.removeEventListener("focus",M_,!0),n.removeEventListener("blur",F_,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ro,!0),r.removeEventListener("pointermove",ro,!0),r.removeEventListener("pointerup",ro,!0)):(r.removeEventListener("mousedown",ro,!0),r.removeEventListener("mousemove",ro,!0),r.removeEventListener("mouseup",ro,!0)),Vf.delete(n))};function Yz(e){const t=Mn(e);let n;return t.readyState!=="loading"?OC(e):(n=()=>{OC(e)},t.addEventListener("DOMContentLoaded",n)),()=>k_(e,n)}typeof document<"u"&&Yz();function IC(){return il!=="pointer"}function Jf(){return il}function O_(e){il=e,Pm(e,null)}function Ac(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=T.useRef({isFocusWithin:!1}),s=T.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=__(s),l=T.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Lp=!1,kv=0;function mb(){Lp=!0,setTimeout(()=>{Lp=!1},50)}function LC(e){e.pointerType==="touch"&&mb()}function Zz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",LC):document.addEventListener("touchend",mb),kv++,()=>{kv--,!(kv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",LC):document.removeEventListener("touchend",mb))}}function Xz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=T.useState(!1),u=T.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;T.useEffect(Zz,[]);let{hoverProps:l,triggerHoverEnd:d}=T.useMemo(()=>{let h=(b,$)=>{if(u.pointerType=$,i||$==="touch"||u.isHovered||!b.currentTarget.contains(b.target))return;u.isHovered=!0;let C=b.currentTarget;u.target=C,t&&t({type:"hoverstart",target:C,pointerType:$}),n&&n(!0),s(!0)},m=(b,$)=>{if(u.pointerType="",u.target=null,$==="touch"||!u.isHovered)return;u.isHovered=!1;let C=b.currentTarget;r&&r({type:"hoverend",target:C,pointerType:$}),n&&n(!1),s(!1)},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=b=>{Lp&&b.pointerType==="mouse"||h(b,b.pointerType)},g.onPointerLeave=b=>{!i&&b.currentTarget.contains(b.target)&&m(b,b.pointerType)}):(g.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=b=>{!u.ignoreEmulatedMouseEvents&&!Lp&&h(b,"mouse"),u.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=b=>{!i&&b.currentTarget.contains(b.target)&&m(b,"mouse")}),{hoverProps:g,triggerHoverEnd:m}},[t,n,r,i,u]);return T.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:o}}function Jz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=T.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=or(l=>{n&&Bh(l,t)&&(i&&i(l),o.current.isPointerDown=!0)}),u=or(l=>{n&&n(l)});T.useEffect(()=>{let l=o.current;if(r)return;const d=t.current,h=Mn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Bh(g,t)&&u(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",s,!0),h.addEventListener("pointerup",m,!0),()=>{h.removeEventListener("pointerdown",s,!0),h.removeEventListener("pointerup",m,!0)}}else{let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Bh(b,t)&&u(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Bh(b,t)&&u(b),l.isPointerDown=!1};return h.addEventListener("mousedown",s,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",s,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",s,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",s,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,s,u])}function Bh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function BC(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function I_(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:BC(e.onKeyDown),onKeyUp:BC(e.onKeyUp)}}}function L_(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=T.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:s}=Dc(),u=or((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=or((h,m)=>{Df(),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=()=>{hb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let b=S=>{if(S.button===0){var w,D,O,R;u(S,"mouse",S.pageX-((O=(w=i.current.lastPosition)===null||w===void 0?void 0:w.pageX)!==null&&O!==void 0?O:0),S.pageY-((R=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&R!==void 0?R:0)),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY}}},$=S=>{S.button===0&&(l(S,"mouse"),s(window,"mousemove",b,!1),s(window,"mouseup",$,!1))};h.onMouseDown=S=>{S.button===0&&(m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY},o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};let C=S=>{let w=[...S.changedTouches].findIndex(({identifier:j})=>j===i.current.id);if(w>=0){var D,O;let{pageX:j,pageY:M}=S.changedTouches[w];var R,k;u(S,"touch",j-((R=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&R!==void 0?R:0),M-((k=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:j,pageY:M}}},A=S=>{[...S.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(l(S,"touch"),i.current.id=null,s(window,"touchmove",C),s(window,"touchend",A),s(window,"touchcancel",A))};h.onTouchStart=S=>{if(S.changedTouches.length===0||i.current.id!=null)return;let{pageX:w,pageY:D,identifier:O}=S.changedTouches[0];m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:w,pageY:D},i.current.id=O,o(window,"touchmove",C,!1),o(window,"touchend",A,!1),o(window,"touchcancel",A,!1)}}else{let b=C=>{if(C.pointerId===i.current.id){var A,S;let O=C.pointerType||"mouse";var w,D;u(C,O,C.pageX-((w=(A=i.current.lastPosition)===null||A===void 0?void 0:A.pageX)!==null&&w!==void 0?w:0),C.pageY-((D=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY}}},$=C=>{if(C.pointerId===i.current.id){let A=C.pointerType||"mouse";l(C,A),i.current.id=null,s(window,"pointermove",b,!1),s(window,"pointerup",$,!1),s(window,"pointercancel",$,!1)}};h.onPointerDown=C=>{C.button===0&&i.current.id==null&&(m(),C.stopPropagation(),C.preventDefault(),i.current.lastPosition={pageX:C.pageX,pageY:C.pageY},i.current.id=C.pointerId,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1))}}let g=(b,$,C)=>{m(),u(b,"keyboard",$,C),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,o,s,u,l])}}const Qz=500;function B_(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Qz,accessibilityDescription:s}=e;const u=T.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Dc(),{pressProps:h}=Ad({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),u.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...g,type:"longpress"}),u.current=void 0},o),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){u.current&&clearTimeout(u.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=Ed(i&&!t?s:void 0);return{longPressProps:hn(h,m)}}function tl(e){const t=Mn(e);if(Jf()==="virtual"){let n=t.activeElement;w_(()=>{t.activeElement===n&&e.isConnected&&Fo(e)})}else Fo(e)}function eq(e){const t=eu(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:s,visibility:u}=o(e);i=s!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function tq(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 V_(e,t){return e.nodeName!=="#comment"&&eq(e)&&tq(e,t)&&(!e.parentElement||V_(e.parentElement,e))}const VC=T.createContext(null),gb="react-aria-focus-scope-restore";let Rn=null;function nq(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=T.useRef(null),s=T.useRef(null),u=T.useRef([]),{parentNode:l}=T.useContext(VC)||{},d=T.useMemo(()=>new yb({scopeRef:u}),[u]);En(()=>{let g=l||dr.root;if(dr.getTreeNode(g.scopeRef)&&Rn&&!Bp(Rn,g.scopeRef)){let b=dr.getTreeNode(Rn);b&&(g=b)}g.addChild(d),dr.addNode(d)},[d,l]),En(()=>{let g=dr.getTreeNode(u);g&&(g.contain=!!n)},[n]),En(()=>{var g;let b=(g=o.current)===null||g===void 0?void 0:g.nextSibling,$=[],C=A=>A.stopPropagation();for(;b&&b!==s.current;)$.push(b),b.addEventListener(gb,C),b=b.nextSibling;return u.current=$,()=>{for(let A of $)A.removeEventListener(gb,C)}},[t]),lq(u,r,n),sq(u,n),cq(u,r,n),uq(u,i),T.useEffect(()=>{const g=Mn(u.current?u.current[0]:void 0).activeElement;let b=null;if(ho(g,u.current)){for(let $ of dr.traverse())$.scopeRef&&ho(g,$.scopeRef.current)&&(b=$);b===dr.getTreeNode(u)&&(Rn=b.scopeRef)}},[u]),En(()=>()=>{var g,b,$;let C=($=(b=dr.getTreeNode(u))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(u===Rn||Bp(u,Rn))&&(!C||dr.getTreeNode(C))&&(Rn=C),dr.removeTreeNode(u)},[u]);let h=T.useMemo(()=>rq(u),[]),m=T.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return T.createElement(VC.Provider,{value:m},T.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,T.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function rq(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,u=r||Mn(n[0]).activeElement,l=n[0].previousElementSibling,d=Iu(n),h=bi(d,{tabbable:i,accept:s},n);h.currentNode=ho(u,n)?u:l;let m=h.nextNode();return!m&&o&&(h.currentNode=l,m=h.nextNode()),m&&vi(m,!0),m},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:s}=t,u=r||Mn(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Iu(n),h=bi(d,{tabbable:i,accept:s},n);h.currentNode=ho(u,n)?u:l;let m=h.previousNode();return!m&&o&&(h.currentNode=l,m=h.previousNode()),m&&vi(m,!0),m},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Iu(n),s=bi(o,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let u=s.nextNode();return u&&vi(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Iu(n),s=bi(o,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let u=s.previousNode();return u&&vi(u,!0),u}}}const J4=["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"])'],iq=J4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";J4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const oq=J4.join(':not([hidden]):not([tabindex="-1"]),');function Iu(e){return e[0].parentElement}function Af(e){let t=dr.getTreeNode(Rn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function sq(e,t){let n=T.useRef(void 0),r=T.useRef(void 0);En(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Mn(i?i[0]:void 0);let s=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Af(e)||d.isComposing)return;let h=o.activeElement,m=e.current;if(!m||!ho(h,m))return;let g=Iu(m),b=bi(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=d.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),$&&vi($,!0)},u=d=>{(!Rn||Bp(Rn,e))&&ho(d.target,e.current)?(Rn=e,n.current=d.target):Af(e)&&!qa(d.target,e)?n.current?n.current.focus():Rn&&Rn.current&&vb(Rn.current):Af(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Jf();if(!((h==="virtual"||h===null)&&G4()&&$_())&&o.activeElement&&Af(e)&&!qa(o.activeElement,e))if(Rn=e,o.body.contains(d.target)){var g;n.current=d.target,(g=n.current)===null||g===void 0||g.focus()}else Rn.current&&vb(Rn.current)})};return o.addEventListener("keydown",s,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",s,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),En(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function N_(e){return qa(e)}function ho(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function qa(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of dr.traverse(dr.getTreeNode(t)))if(n&&ho(e,n.current))return!0;return!1}function aq(e){return qa(e,Rn)}function Bp(e,t){var n;let r=(n=dr.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function vi(e,t=!1){if(e!=null&&!t)try{tl(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function j_(e,t=!0){let n=e[0].previousElementSibling,r=Iu(e),i=bi(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Iu(e),i=bi(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function vb(e,t=!0){vi(j_(e,t))}function uq(e,t){const n=T.useRef(t);T.useEffect(()=>{if(n.current){Rn=e;const r=Mn(e.current?e.current[0]:void 0);!ho(r.activeElement,Rn.current)&&e.current&&vb(e.current)}n.current=!1},[e])}function lq(e,t,n){En(()=>{if(t||n)return;let r=e.current;const i=Mn(r?r[0]:void 0);let o=s=>{let u=s.target;ho(u,e.current)?Rn=e:N_(u)||(Rn=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(s=>s.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",o,!1))}},[e,t,n])}function NC(e){let t=dr.getTreeNode(Rn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function cq(e,t,n){const r=T.useRef(typeof document<"u"?Mn(e.current?e.current[0]:void 0).activeElement:null);En(()=>{let i=e.current;const o=Mn(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!Rn||Bp(Rn,e))&&ho(o.activeElement,e.current)&&(Rn=e)};return o.addEventListener("focusin",s,!1),i==null||i.forEach(u=>u.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",s,!1))}},[e,n]),En(()=>{const i=Mn(e.current?e.current[0]:void 0);if(!t)return;let o=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Af(e)||s.isComposing)return;let u=i.activeElement;if(!qa(u,e)||!NC(e))return;let l=dr.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=bi(i.body,{tabbable:!0});h.currentNode=u;let m=s.shiftKey?h.previousNode():h.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!qa(m,e))&&d){h.currentNode=d;do m=s.shiftKey?h.previousNode():h.nextNode();while(qa(m,e));s.preventDefault(),s.stopPropagation(),m?vi(m,!0):N_(d)?vi(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),En(()=>{const i=Mn(e.current?e.current[0]:void 0);if(!t)return;let o=dr.getTreeNode(e);if(o){var s;return o.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let u=dr.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&qa(i.activeElement,e)||i.activeElement===i.body&&NC(e))){let d=dr.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let h=d.getTreeNode(e);for(;h;){if(h.nodeToRestore&&h.nodeToRestore.isConnected){jC(h.nodeToRestore);return}h=h.parent}for(h=d.getTreeNode(e);h;){if(h.scopeRef&&h.scopeRef.current&&dr.getTreeNode(h.scopeRef)){let m=j_(h.scopeRef.current,!0);jC(m);return}h=h.parent}}})}}}},[e,t])}function jC(e){e.dispatchEvent(new CustomEvent(gb,{bubbles:!0,cancelable:!0}))&&vi(e)}function bi(e,t,n){let r=t!=null&&t.tabbable?oq:iq,i=Mn(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&V_(o)&&(!n||ho(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function _m(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,l=i||Mn(r).activeElement,d=bi(r,{tabbable:o,accept:u});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&s&&(d.currentNode=r,h=d.nextNode()),h&&vi(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:s=t.wrap,accept:u=t.accept}=n,l=i||Mn(r).activeElement,d=bi(r,{tabbable:o,accept:u});if(r.contains(l))d.currentNode=l;else{let m=Ov(d);return m&&vi(m,!0),m??null}let h=d.previousNode();if(!h&&s){d.currentNode=r;let m=Ov(d);if(!m)return null;h=m}return h&&vi(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=bi(r,{tabbable:i,accept:o}).nextNode();return u&&vi(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,s=bi(r,{tabbable:i,accept:o}),u=Ov(s);return u&&vi(u,!0),u??null}}}function Ov(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Q4{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new yb({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ho(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Q4;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 yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{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 dr=new Q4,fq=T.createContext(null);function dq(e){let t=T.useContext(fq)||{};C_(t,e);let{ref:n,...r}=t;return r}function e3(e,t){let{focusProps:n}=Wz(e),{keyboardProps:r}=I_(e),i=hn(n,r),o=dq(t),s=e.isDisabled?{}:o,u=T.useRef(e.autoFocus);return T.useEffect(()=>{u.current&&t.current&&tl(t.current),u.current=!1},[t]),{focusableProps:hn({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const hq=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),pq=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mq(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 hq.has(n.script)}let t=e.split("-")[0];return pq.has(t)}const gq=Symbol.for("react-aria.i18n.locale");function K_(){let e=typeof window<"u"&&window[gq]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:mq(e)?"rtl":"ltr"}}let bb=K_(),Tf=new Set;function KC(){bb=K_();for(let e of Tf)e(bb)}function vq(){let e=q4(),[t,n]=T.useState(bb);return T.useEffect(()=>(Tf.size===0&&window.addEventListener("languagechange",KC),Tf.add(n),()=>{Tf.delete(n),Tf.size===0&&window.removeEventListener("languagechange",KC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const yq=T.createContext(null);function Gr(){let e=vq();return T.useContext(yq)||e}const bq=Symbol.for("react-aria.i18n.locale"),xq=Symbol.for("react-aria.i18n.strings");let Tl;class ou{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=$q(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[bq];if(Tl===void 0){let i=window[xq];if(!i)return null;Tl={};for(let o in i)Tl[o]=new ou({[n]:i[o]},n)}let r=Tl==null?void 0:Tl[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 $q(e,t,n="en-US"){if(t[e])return t[e];let r=wq(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function wq(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const UC=new Map,zC=new Map;class U_{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,s=UC.get(o);s||(s=new Intl.PluralRules(this.locale,{type:r}),UC.set(o,s));let u=s.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=zC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),zC.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 qC=new WeakMap;function Cq(e){let t=qC.get(e);return t||(t=new ou(e),qC.set(e,t)),t}function z_(e,t){return t&&ou.getGlobalDictionaryForPackage(t)||Cq(e)}function Cs(e,t){let{locale:n}=Gr(),r=z_(e,t);return T.useMemo(()=>new U_(n,r),[n,r])}function Hl(e,t){return e-t*Math.floor(e/t)}const q_=1721426;function Lu(e,t,n,r){t=Td(e,t);let i=t-1,o=-2;return n<=2?o=0:Wa(t)&&(o=-1),q_-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function Wa(e){return e%4===0&&(e%100!==0||e%400===0)}function Td(e,t){return e==="BC"?1-t:t}function Rm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Sq={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 ui{fromJulianDay(t){let n=t,r=n-q_,i=Math.floor(r/146097),o=Hl(r,146097),s=Math.floor(o/36524),u=Hl(o,36524),l=Math.floor(u/1461),d=Hl(u,1461),h=Math.floor(d/365),m=i*400+s*100+l*4+h+(s!==4&&h!==4?1:0),[g,b]=Rm(m),$=n-Lu(g,b,1,1),C=2;n<Lu(g,b,3,1)?C=0:Wa(b)&&(C=1);let A=Math.floor((($+C)*12+373)/367),S=n-Lu(g,b,A,1)+1;return new ar(g,b,A,S)}toJulianDay(t){return Lu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Sq[Wa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Wa(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 Eq={"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 br(e,t){return t=zn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function xb(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function W_(e,t){return br(e,Mm(t))}const Dq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function t3(e,t,n){let r=e.calendar.toJulianDay(e),i=n?Dq[n]:Mq(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function H_(e){return ea(Date.now(),e)}function Mm(e){return ai(H_(e))}function G_(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Y_(e,t){return WC(e)-WC(t)}function WC(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Iv=null;function Pd(){return Iv==null&&(Iv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Iv}function _d(e){return e.subtract({days:e.day-1})}function $b(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function Aq(e){return _d(e.subtract({months:e.month-1}))}function Tq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Pq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Qf(e,t,n){let r=t3(e,t,n);return e.subtract({days:r})}function _q(e,t,n){return Qf(e,t,n).add({days:6})}const HC=new Map;function Rq(e){if(Intl.Locale){let n=HC.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&HC.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function Mq(e){let t=Rq(e);return t&&Eq[t]||0}function Fq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((t3(_d(e),t,n)+r)/7)}function n3(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function r3(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function cc(e){e=zn(e,new ui);let t=Td(e.era,e.year);return Z_(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Z_(e,t,n,r,i,o,s){let u=new Date;return u.setUTCHours(r,i,o,s),u.setUTCFullYear(e,t-1,n),u.getTime()}function wb(e,t){if(t==="UTC")return 0;if(e>0&&t===Pd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:s,second:u}=X_(e,t);return Z_(n,r,i,o,s,u,0)-Math.floor(e/1e3)*1e3}const GC=new Map;function X_(e,t){let n=GC.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"}),GC.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const YC=864e5;function kq(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>Oq(e,t,o))}function Oq(e,t,n){let r=X_(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 Qs(e,t,n="compatible"){let r=Lo(e);if(t==="UTC")return cc(r);if(t===Pd()&&n==="compatible"){r=zn(r,new ui);let l=new Date,d=Td(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=cc(r),o=wb(i-YC,t),s=wb(i+YC,t),u=kq(r,t,i-o,i-s);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-s);case"compatible":case"later":return Math.max(i-o,i-s);case"reject":throw new RangeError("No such absolute time found")}}function J_(e,t,n="compatible"){return new Date(Qs(e,t,n))}function ea(e,t){let n=wb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,s=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new nd(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,n,u,l,d,h)}function ai(e){return new ar(e.calendar,e.era,e.year,e.month,e.day)}function Lo(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new td(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function ZC(e){return new Rd(e.hour,e.minute,e.second,e.millisecond)}function zn(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,nl(r),r}function Q_(e,t,n){if(e instanceof nd)return e.timeZone===t?e:Lq(e,t);let r=Qs(e,t,n);return ea(r,t)}function Iq(e){let t=cc(e)-e.offset;return new Date(t)}function Lq(e,t){let n=cc(e)-e.offset;return zn(ea(n,t),e.calendar)}const df=36e5;function Fm(e,t){let n=e.copy(),r="hour"in n?r5(n,t):0;Cb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Sb(n),e5(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Bq(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,s;let l=(o=(s=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(s,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Cb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function Sb(e){for(;e.month<1;)Cb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Cb(e,1)}function Bq(e){for(;e.day<1;)e.month--,Sb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Sb(e)}function e5(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 nl(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),e5(e)}function i3(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function t5(e,t){return Fm(e,i3(t))}function o3(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),nl(n),n}function ed(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),n5(n),n}function Vq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Vh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Vh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Vh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Vh(e.hour,24),t}function n5(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 Vh(e,t){let n=e%t;return n<0&&(n+=t),n}function r5(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Vq(e)}function i5(e,t){let n=e.copy();return r5(n,t),n}function Nq(e,t){return i5(e,i3(t))}function s3(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=ta(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],nl(i);break}case"year":var o,s;!((o=(s=i.calendar).isInverseEra)===null||o===void 0)&&o.call(s,i)&&(n=-n),i.year=ta(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=ta(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=ta(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),nl(i),i}function a3(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,s=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=o>=12;s=l?12:0,u=l?23:11}i.hour=ta(o,n,s,u,r==null?void 0:r.round);break}case"minute":i.minute=ta(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=ta(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=ta(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function ta(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function o5(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=Fm(Lo(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Qs(i,e.timeZone)}else n=cc(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=ea(n,e.timeZone);return zn(r,e.calendar)}function jq(e,t){return o5(e,i3(t))}function Kq(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,o=$?23:11}let s=Lo(e),u=zn(ed(s,{hour:i}),new ui),l=[Qs(u,e.timeZone,"earlier"),Qs(u,e.timeZone,"later")].filter($=>ea($,e.timeZone).day===u.day)[0],d=zn(ed(s,{hour:o}),new ui),h=[Qs(d,e.timeZone,"earlier"),Qs(d,e.timeZone,"later")].filter($=>ea($,e.timeZone).day===d.day).pop(),m=cc(e)-e.offset,g=Math.floor(m/df),b=m%df;return m=ta(g,n,Math.floor(l/df),Math.floor(h/df),r==null?void 0:r.round)*df+b,zn(ea(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return a3(e,t,n,r);case"era":case"year":case"month":case"day":{let i=s3(Lo(e),t,n,r),o=Qs(i,e.timeZone);return zn(ea(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function Uq(e,t,n){let r=Lo(e),i=ed(o3(r,t),t);if(i.compare(r)===0)return e;let o=Qs(i,e.timeZone,n);return zn(ea(o,e.timeZone),e.calendar)}const zq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Wq(e){let t=e.match(zq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new ar(os(t[1],0,9999),os(t[2],1,12),1);return n.day=os(t[3],0,n.calendar.getDaysInMonth(n)),n}function Hq(e){let t=e.match(qq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=os(t[1],-9999,9999),r=n<1?"BC":"AD",i=new td(r,n<1?-n+1:n,os(t[2],1,12),1,t[4]?os(t[4],0,23):0,t[5]?os(t[5],0,59):0,t[6]?os(t[6],0,59):0,t[7]?os(t[7],0,1/0)*1e3:0);return i.day=os(t[3],0,i.calendar.getDaysInMonth(i)),i}function os(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 s5(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 a5(e){let t=zn(e,new ui),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 u5(e){return`${a5(e)}T${s5(e)}`}function Gq(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 Yq(e){return`${u5(e)}${Gq(e.offset)}[${e.timeZone}]`}function u3(e){let t=typeof e[0]=="object"?e.shift():new ui,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var Zq=new WeakMap;class ar{copy(){return this.era?new ar(this.calendar,this.era,this.year,this.month,this.day):new ar(this.calendar,this.year,this.month,this.day)}add(t){return Fm(this,t)}subtract(t){return t5(this,t)}set(t){return o3(this,t)}cycle(t,n,r){return s3(this,t,n,r)}toDate(t){return J_(this,t)}toString(){return a5(this)}compare(t){return G_(this,t)}constructor(...t){Dd(this,Zq,{writable:!0,value:void 0});let[n,r,i,o,s]=u3(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,nl(this)}}var Xq=new WeakMap;class Rd{copy(){return new Rd(this.hour,this.minute,this.second,this.millisecond)}add(t){return i5(this,t)}subtract(t){return Nq(this,t)}set(t){return ed(this,t)}cycle(t,n,r){return a3(this,t,n,r)}toString(){return s5(this)}compare(t){return Y_(this,t)}constructor(t=0,n=0,r=0,i=0){Dd(this,Xq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,n5(this)}}var Jq=new WeakMap;class td{copy(){return this.era?new td(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new td(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Fm(this,t)}subtract(t){return t5(this,t)}set(t){return o3(ed(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return s3(this,t,n,r);default:return a3(this,t,n,r)}}toDate(t,n){return J_(this,t,n)}toString(){return u5(this)}compare(t){let n=G_(this,t);return n===0?Y_(this,Lo(t)):n}constructor(...t){Dd(this,Jq,{writable:!0,value:void 0});let[n,r,i,o,s]=u3(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,nl(this)}}var Qq=new WeakMap;class nd{copy(){return this.era?new nd(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new nd(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return o5(this,t)}subtract(t){return jq(this,t)}set(t,n){return Uq(this,t,n)}cycle(t,n,r){return Kq(this,t,n,r)}toDate(){return Iq(this)}toString(){return Yq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Q_(t,this.timeZone).toDate().getTime()}constructor(...t){Dd(this,Qq,{writable:!0,value:void 0});let[n,r,i,o,s]=u3(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=s,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,nl(this)}}const Gl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eW=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],cp=[1867,1911,1925,1988,2018],Ka=["meiji","taisho","showa","heisei","reiwa"];function XC(e){const t=Gl.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?Gl.length-1:t===0?0:t-1}function Lv(e){let t=cp[Ka.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new ar(e.year+t,e.month,e.day)}class tW extends ui{fromJulianDay(t){let n=super.fromJulianDay(t),r=XC(n);return new ar(this,Ka[r],n.year-cp[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Lv(t))}balanceDate(t){let n=Lv(t),r=XC(n);Ka[r]!==t.era&&(t.era=Ka[r],t.year=n.year-cp[r]),this.constrainDate(t)}constrainDate(t){let n=Ka.indexOf(t.era),r=eW[n];if(r!=null){let[i,o,s]=r,u=i-cp[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,o]=Gl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Ka}getYearsInEra(t){let n=Ka.indexOf(t.era),r=Gl[n],i=Gl[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(Lv(t))}getMinimumMonthInYear(t){let n=JC(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=JC(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function JC(e){if(e.year===1){let t=Ka.indexOf(e.era);return Gl[t]}}const l5=-543;class nW extends ui{fromJulianDay(t){let n=super.fromJulianDay(t),r=Td(n.era,n.year);return new ar(this,r-l5,n.month,n.day)}toJulianDay(t){return super.toJulianDay(QC(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(QC(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function QC(e){let[t,n]=Rm(e.year+l5);return new ar(t,n,e.month,e.day)}const Vp=1911;function c5(e){return e.era==="minguo"?e.year+Vp:1-e.year+Vp}function eS(e){let t=e-Vp;return t>0?["minguo",t]:["before_minguo",1-t]}class rW extends ui{fromJulianDay(t){let n=super.fromJulianDay(t),r=Td(n.era,n.year),[i,o]=eS(r);return new ar(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(tS(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=eS(c5(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(tS(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Vp}constructor(...t){super(...t),this.identifier="roc"}}function tS(e){let[t,n]=Rm(c5(e));return new ar(t,n,e.month,e.day)}const nS=1948320,rS=[0,31,62,93,124,155,186,216,246,276,306,336];class iW{fromJulianDay(t){let n=t-nS,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,s=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-rS[s]+1;return new ar(this,r,s+1,u)}toJulianDay(t){let n=nS-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=rS[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Hl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const Bv=78,iS=80;class oW extends ui{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-Bv,i=t-Lu(n.era,n.year,1,1),o;i<iS?(r--,o=Wa(n.year-1)?31:30,i+=o+155+90+10):(o=Wa(n.year)?31:30,i-=iS);let s,u;if(i<o)s=1,u=i+1;else{let l=i-o;l<155?(s=Math.floor(l/31)+2,u=l%31+1):(l-=155,s=Math.floor(l/30)+7,u=l%30+1)}return new ar(this,r,s,u)}toJulianDay(t){let n=t.year+Bv,[r,i]=Rm(n),o,s;return Wa(i)?(o=31,s=Lu(r,i,3,21)):(o=30,s=Lu(r,i,3,22)),t.month===1?s+t.day-1:(s+=o+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&Wa(t.year+Bv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Np=1948440,oS=1948439,to=1300,Pl=1600,sW=460322;function jp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function f5(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+jp(t,r,1,1)))/29.5)+1),o=n-jp(t,r,i,1)+1;return new ar(e,r,i,o)}function sS(e){return(14+11*e)%30<11}class l3{fromJulianDay(t){return f5(this,Np,t)}toJulianDay(t){return jp(Np,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&sS(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return sS(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class aW extends l3{fromJulianDay(t){return f5(this,oS,t)}toJulianDay(t){return jp(oS,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const uW="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Eb,Yl;function fp(e){return sW+Yl[e-to]}function Pf(e,t){let n=e-to,r=1<<11-(t-1);return(Eb[n]&r)===0?29:30}function aS(e,t){let n=fp(e);for(let r=1;r<t;r++)n+=Pf(e,r);return n}function uS(e){return Yl[e+1-to]-Yl[e-to]}class lW extends l3{fromJulianDay(t){let n=t-Np,r=fp(to),i=fp(Pl);if(n<r||n>i)return super.fromJulianDay(t);{let o=to-1,s=1,u=1;for(;u>0;){o++,u=n-fp(o)+1;let l=uS(o);if(u===l){s=12;break}else if(u<l){let d=Pf(o,s);for(s=1;u>d;)u-=d,s++,d=Pf(o,s);break}}return new ar(this,o,s,n-aS(o,s)+1)}}toJulianDay(t){return t.year<to||t.year>Pl?super.toJulianDay(t):Np+aS(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<to||t.year>Pl?super.getDaysInMonth(t):Pf(t.year,t.month)}getDaysInYear(t){return t.year<to||t.year>Pl?super.getDaysInYear(t):uS(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Eb||(Eb=new Uint16Array(Uint8Array.from(atob(uW),t=>t.charCodeAt(0)).buffer)),!Yl){Yl=new Uint32Array(Pl-to+1);let t=0;for(let n=to;n<=Pl;n++){Yl[n-to]=t;for(let r=1;r<=12;r++)t+=Pf(n,r)}}}}const lS=347997,d5=1080,h5=24*d5,cW=29,fW=12*d5+793,dW=cW*h5+fW;function Mu(e){return Hl(e*7+1,19)<7}function dp(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Hl(3*(r+1),7)<3&&(r+=1),r}function hW(e){let t=dp(e-1),n=dp(e);return dp(e+1)-n===356?2:n-t===382?1:0}function Nf(e){return dp(e)+hW(e)}function p5(e){return Nf(e+1)-Nf(e)}function pW(e){let t=p5(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Nh(e,t){if(t>=6&&!Mu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=pW(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Mu(e)?30:0:30}class mW{fromJulianDay(t){let n=t-lS,r=n*h5/dW,i=Math.floor((19*r+234)/235)+1,o=Nf(i),s=Math.floor(n-o);for(;s<1;)i--,o=Nf(i),s=Math.floor(n-o);let u=1,l=0;for(;l<s;)l+=Nh(i,u),u++;u--,l-=Nh(i,u);let d=s-l;return new ar(this,i,u,d)}toJulianDay(t){let n=Nf(t.year);for(let r=1;r<t.month;r++)n+=Nh(t.year,r);return n+t.day+lS}getDaysInMonth(t){return Nh(t.year,t.month)}getMonthsInYear(t){return Mu(t.year)?13:12}getDaysInYear(t){return p5(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Mu(n.year)&&!Mu(t.year)&&n.month>6?t.month--:!Mu(n.year)&&Mu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Db=1723856,cS=1824665,Ab=5500;function Kp(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function c3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Kp(e,n,1,1))/30),i=t+1-Kp(e,n,r,1);return[n,r,i]}function m5(e){return Math.floor(e%4/3)}function g5(e,t){return t%13!==0?30:m5(e)+5}class f3{fromJulianDay(t){let[n,r,i]=c3(Db,t),o="AM";return n<=0&&(o="AA",n+=Ab),new ar(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Ab),Kp(Db,n,t.month,t.day)}getDaysInMonth(t){return g5(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+m5(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gW extends f3{fromJulianDay(t){let[n,r,i]=c3(Db,t);return n+=Ab,new ar(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class vW extends f3{fromJulianDay(t){let[n,r,i]=c3(cS,t),o="CE";return n<=0&&(o="BCE",n=1-n),new ar(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Kp(cS,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),g5(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 yW(e){switch(e){case"buddhist":return new nW;case"ethiopic":return new f3;case"ethioaa":return new gW;case"coptic":return new vW;case"hebrew":return new mW;case"indian":return new oW;case"islamic-civil":return new l3;case"islamic-tbla":return new aW;case"islamic-umalqura":return new lW;case"japanese":return new tW;case"persian":return new iW;case"roc":return new rW;case"gregory":default:return new ui}}let Vv=new Map;class ao{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return $W()&&(this.resolvedHourCycle||(this.resolvedHourCycle=wW(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=v5(t,n),this.options=n}}const bW={true:{ja:"h11"},false:{}};function v5(e,t={}){if(typeof t.hour12=="boolean"&&xW()){t={...t};let i=bW[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(Vv.has(n))return Vv.get(n);let r=new Intl.DateTimeFormat(e,t);return Vv.set(n,r),r}let Nv=null;function xW(){return Nv==null&&(Nv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Nv}let jv=null;function $W(){return jv==null&&(jv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),jv}function wW(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=v5(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function ds(e){e=E_(e??{},CW);let{locale:t}=Gr();return T.useMemo(()=>new ao(t,e),[t,e])}function CW(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 Kv=new Map,Tb=!1;try{Tb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Up=!1;try{Up=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const y5={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class b5{format(t){let n="";if(!Tb&&this.options.signDisplay!=null?n=EW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Up){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let u=(r=y5[i])===null||r===void 0?void 0:r[o];n+=u[s]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Tb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Up&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=SW(t,n),this.options=n}}function SW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Up){var r;let{unit:s,unitDisplay:u="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=y5[s])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,u)=>s[0]<u[0]?-1:1).join():"");if(Kv.has(i))return Kv.get(i);let o=new Intl.NumberFormat(e,t);return Kv.set(i,o),o}function EW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const DW=new RegExp("^.*\\(.*\\).*$"),AW=["latn","arab","hanidec","deva","beng"];class x5{parse(t){return Uv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Uv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Uv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const fS=new Map;function Uv(e,t,n){let r=dS(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of AW)if(i!==r.options.numberingSystem){let o=dS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function dS(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=fS.get(n);return r||(r=new TW(e,t),fS.set(n,r)),r}class TW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=jh(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 s=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new x5(this.locale,s).parse(new b5(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&DW.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=jh(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=jh(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=jh(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=_W(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 hS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),PW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function _W(e,t,n,r){var i,o,s,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=PW.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:"-",$=(o=h.find(ae=>ae.type==="plusSign"))===null||o===void 0?void 0:o.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let A=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(ae=>ae.type==="decimal"))===null||s===void 0?void 0:s.value,S=(u=d.find(ae=>ae.type==="group"))===null||u===void 0?void 0:u.value,w=d.filter(ae=>!hS.has(ae.type)).map(ae=>pS(ae.value)),D=m.flatMap(ae=>ae.filter(W=>!hS.has(W.type)).map(W=>pS(W.value))),O=[...new Set([...w,...D])].sort((ae,W)=>W.length-ae.length),R=O.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${O.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),j=new Map(k.map((ae,W)=>[ae,W])),M=new RegExp(`[${k.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:A,group:S,literals:R,numeral:M,index:ae=>String(j.get(ae))}}function jh(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function pS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function RW(e={}){let{locale:t}=Gr();return T.useMemo(()=>new b5(t,e),[t,e])}let zv=new Map;function $5(e){let{locale:t}=Gr(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(zv.has(n))return zv.get(n);let r=new Intl.Collator(t,e);return zv.set(n,r),r}function w5(e){let t=$5({usage:"search",...e}),n=T.useCallback((o,s)=>s.length===0?!0:(o=o.normalize("NFC"),s=s.normalize("NFC"),t.compare(o.slice(0,s.length),s)===0),[t]),r=T.useCallback((o,s)=>s.length===0?!0:(o=o.normalize("NFC"),s=s.normalize("NFC"),t.compare(o.slice(-s.length),s)===0),[t]),i=T.useCallback((o,s)=>{if(s.length===0)return!0;o=o.normalize("NFC"),s=s.normalize("NFC");let u=0,l=s.length;for(;u+l<=o.length;u++){let d=o.slice(u,u+l);if(t.compare(s,d)===0)return!0}return!1},[t]);return T.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function MW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:s,onPressUp:u,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,type:C="button"}=e,A;n==="button"?A={type:C,disabled:r}:A={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?C:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:S,isPressed:w}=Ad({onPressStart:o,onPressEnd:s,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=e3(e,t);h&&(D.tabIndex=r?-1:D.tabIndex);let O=hn(D,S,ca(e,{labelable:!0}));return{isPressed:w,buttonProps:hn(A,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:R=>{m&&(m(R),console.warn("onClick is deprecated, please use onPress"))}})}}var C5={};C5={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 S5={};S5={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 E5={};E5={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 D5={};D5={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 A5={};A5={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 T5={};T5={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var P5={};P5={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 _5={};_5={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 R5={};R5={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 M5={};M5={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 F5={};F5={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 k5={};k5={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 O5={};O5={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 I5={};I5={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 L5={};L5={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 B5={};B5={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var V5={};V5={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var N5={};N5={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 j5={};j5={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 K5={};K5={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 U5={};U5={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 z5={};z5={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 q5={};q5={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 W5={};W5={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 H5={};H5={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 G5={};G5={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 Y5={};Y5={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 Z5={};Z5={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 X5={};X5={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 J5={};J5={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 Q5={};Q5={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 e6={};e6={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 t6={};t6={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 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 Md={};Md={"ar-AE":C5,"bg-BG":S5,"cs-CZ":E5,"da-DK":D5,"de-DE":A5,"el-GR":T5,"en-US":P5,"es-ES":_5,"et-EE":R5,"fi-FI":M5,"fr-FR":F5,"he-IL":k5,"hr-HR":O5,"hu-HU":I5,"it-IT":L5,"ja-JP":B5,"ko-KR":V5,"lt-LT":N5,"lv-LV":j5,"nb-NO":K5,"nl-NL":U5,"pl-PL":z5,"pt-BR":q5,"pt-PT":W5,"ro-RO":H5,"ru-RU":G5,"sk-SK":Y5,"sl-SI":Z5,"sr-SP":X5,"sv-SE":J5,"tr-TR":Q5,"uk-UA":e6,"zh-CN":t6,"zh-TW":n6};function r6(e){return e&&e.__esModule?e.default:e}const d3=new WeakMap;function rd(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function FW(e){let t=Cs(r6(Md),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=ds({weekday:"long",month:"long",year:"numeric",day:"numeric",era:rd(n)||rd(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return T.useMemo(()=>{if(!s&&n&&r)if(br(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=_b(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,s,e.timeZone,t,o])}function Pb(e,t,n,r){let i=Cs(r6(Md),"@react-aria/calendar"),o=rd(e)||rd(t),s=ds({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=ds({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return T.useMemo(()=>{if(br(e,_d(e))){if(br(t,$b(e)))return s.format(e.toDate(n));if(br(t,$b(t)))return r?_b(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?_b(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,u,i,n,r])}function _b(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let d=0;d<o.length;d++){let h=o[d];if(h.source==="shared"&&h.type==="literal")s=d;else if(h.source==="endRange")break}let u="",l="";for(let d=0;d<o.length;d++)d<s?u+=o[d].value:d>s&&(l+=o[d].value);return t.format("dateRange",{startDate:u,endDate:l})}const i6=7e3;let Qi=null;function Zl(e,t="assertive",n=i6){Qi?Qi.announce(e,t,n):(Qi=new OW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Qi.announce(e,t,n):setTimeout(()=>{Qi!=null&&Qi.isAttached()&&(Qi==null||Qi.announce(e,t,n))},100))}function kW(e){Qi&&Qi.clear(e)}class OW{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=i6){var i,o;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(o=this.politeLog)===null||o===void 0||o.appendChild(s),t!==""&&setTimeout(()=>{s.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 IW(e){return e&&e.__esModule?e.default:e}function o6(e,t){let n=Cs(IW(Md),"@react-aria/calendar"),r=ca(e),i=Pb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Pb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);AC(()=>{t.isFocused||Zl(o)},[o]);let s=FW(t);AC(()=>{s&&Zl(s,"polite",4e3)},[s]);let u=ac([!!e.errorMessage,e.isInvalid,e.validationState]);d3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:s});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 $=uc({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:hn(r,$,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:u},title:i}}function LW(e,t){return o6(e,t)}function BW(e,t,n){let r=o6(e,t),i=T.useRef(!1),o=T.useRef(typeof window<"u"?window:null);return fs(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),fs(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},fs(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function VW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:o}=Gr(),s=$=>{switch($.key){case"Enter":case" ":$.preventDefault(),t.selectFocusedDate();break;case"PageUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousSection($.shiftKey);break;case"PageDown":$.preventDefault(),$.stopPropagation(),t.focusNextSection($.shiftKey);break;case"End":$.preventDefault(),$.stopPropagation(),t.focusSectionEnd();break;case"Home":$.preventDefault(),$.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":$.preventDefault(),$.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&($.preventDefault(),t.setAnchorDate(null));break}},u=Pb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=d3.get(t),h=uc({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=ds({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Gr(),b=T.useMemo(()=>{let $=Qf(Mm(t.timeZone),g,i);return[...new Array(7).keys()].map(C=>{let S=$.add({days:C}).toDate(t.timeZone);return m.format(S)})},[g,t.timeZone,m,i]);return{gridProps:hn(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:s,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function NW(e){return e&&e.__esModule?e.default:e}function jW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:s}=d3.get(t),u=Cs(NW(Md),"@react-aria/calendar"),l=ds({weekday:"long",day:"numeric",month:"long",year:"numeric",era:rd(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r);i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&br(t.value,r));b&&(d=!0),r=E_(r,xb);let $=T.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),C=W_(r,t.timeZone),A=T.useMemo(()=>{let W="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(br(r,t.value.start)||br(r,t.value.end))&&(W=s+", "),W+=l.format($),C?W=u.format(d?"todayDateSelected":"todayDate",{date:W}):d&&(W=u.format("dateSelected",{date:W})),t.minValue&&br(r,t.minValue)?W+=", "+u.format("minimumDate"):t.maxValue&&br(r,t.maxValue)&&(W+=", "+u.format("maximumDate")),W},[l,$,u,d,C,r,t,s]),S="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?S=u.format("finishRangeSelectionPrompt"):S=u.format("startRangeSelectionPrompt"));let w=Ed(S),D=T.useRef(!1),O=T.useRef(!1),R=T.useRef(void 0),{pressProps:k,isPressed:j}=Ad({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(W){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(W.pointerType==="mouse"||W.pointerType==="touch")){if(t.highlightedRange&&!b){if(br(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}else if(br(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}}let De=()=>{t.setDragging(!0),R.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};W.pointerType==="touch"?R.current=setTimeout(De,200):De()}},onPressEnd(){O.current=!1,D.current=!1,clearTimeout(R.current),R.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(W){if(!t.isReadOnly&&("anchorDate"in t&&R.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(O.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(W.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let De=r.add({days:1});t.isInvalid(De)&&(De=r.subtract({days:1})),t.isInvalid(De)||t.setFocusedDate(De)}else W.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),M;i||(M=br(r,t.focusedDate)?0:-1),T.useEffect(()=>{h&&n.current&&(Fo(n.current),Jf()!=="pointer"&&document.activeElement===n.current&&Op(n.current,{containingElement:Tm(n.current)}))},[h,n]);let ue=ds({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),ae=T.useMemo(()=>ue.formatToParts($).find(W=>W.type==="day").value,[ue,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:hn(k,{onFocus(){i||t.setFocusedDate(r)},tabIndex:M,role:"button","aria-disabled":!g||void 0,"aria-label":A,"aria-invalid":b||void 0,"aria-describedby":[b?o:void 0,w["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(W){"highlightDate"in t&&(W.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(W){"releasePointerCapture"in W.target&&W.target.releasePointerCapture(W.pointerId)},onContextMenu(W){W.preventDefault()}}),isPressed:j,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:ae}}const km={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},s6={...km,customError:!0,valid:!1},Fu={isInvalid:!1,validationDetails:km,validationErrors:[]},KW=T.createContext({}),fc="__formValidationState"+Date.now();function Fd(e){if(e[fc]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[fc];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return UW(e)}function UW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:s,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:s6}:null,d=T.useMemo(()=>{if(!s||i==null)return null;let ae=zW(s,i);return mS(ae)},[s,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let h=T.useContext(KW),m=T.useMemo(()=>r?Array.isArray(r)?r.flatMap(ae=>Rb(h[ae])):Rb(h[r]):[],[h,r]),[g,b]=T.useState(h),[$,C]=T.useState(!1);h!==g&&(b(h),C(!1));let A=T.useMemo(()=>mS($?[]:m),[$,m]),S=T.useRef(Fu),[w,D]=T.useState(Fu),O=T.useRef(Fu),R=()=>{if(!k)return;j(!1);let ae=d||o||S.current;qv(ae,O.current)||(O.current=ae,D(ae))},[k,j]=T.useState(!1);return T.useEffect(R),{realtimeValidation:l||A||d||o||Fu,displayValidation:u==="native"?l||A||w:l||A||d||o||w,updateValidation(ae){u==="aria"&&!qv(w,ae)?D(ae):S.current=ae},resetValidation(){let ae=Fu;qv(ae,O.current)||(O.current=ae,D(ae)),u==="native"&&j(!1),C(!0)},commitValidation(){u==="native"&&j(!0),C(!0)}}}function Rb(e){return e?Array.isArray(e)?e:[e]:[]}function zW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Rb(n)}return[]}function mS(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:s6}:null}function qv(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function zp(...e){let t=new Set,n=!1,r={...km};for(let s of e){var i,o;for(let u of s.validationErrors)t.add(u);n||(n=s.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=s.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function a6(e,t,n){let{validationBehavior:r,focus:i}=e;En(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(WW(n.current))}});let o=or(()=>{t.resetValidation()}),s=or(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let h=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&h&&HW(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),O_("keyboard")}l.preventDefault()}),u=or(()=>{t.commitValidation()});T.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",s),l.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{l.removeEventListener("invalid",s),l.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,s,u,o,r])}function qW(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 WW(e){return{isInvalid:!e.validity.valid,validationDetails:qW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function HW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Om(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=wi(t);let s=wi(),u={};n?(r=r?`${s} ${r}`:s,u={id:s,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=uc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function Im(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:s}=Om(e),u=ac([!!t,!!n,r,i]),l=ac([!!t,!!n,r,i]);return s=hn(s,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:s,descriptionProps:{id:u},errorMessageProps:{id:l}}}const GW=0,YW=100,ZW=1;function XW(e){const{isDisabled:t=!1,minValue:n=GW,maxValue:r=YW,numberFormatter:i,step:o=ZW,orientation:s="horizontal"}=e;let u=T.useMemo(()=>{let ie=(r-n)/10;return ie=ff(ie,0,ie+o,o),Math.max(ie,o)},[o,r,n]),l=T.useCallback(ie=>ie==null?void 0:ie.map((Ae,Pe)=>{let Ie=Pe===0?n:ie[Pe-1],Le=Pe===ie.length-1?r:ie[Pe+1];return ff(Ae,Ie,Le,o)}),[n,r,o]),d=T.useMemo(()=>l(vS(e.value)),[e.value]),h=T.useMemo(()=>{var ie;return l((ie=vS(e.defaultValue))!==null&&ie!==void 0?ie:[n])},[e.defaultValue,n]),m=yS(e.value,e.defaultValue,e.onChange),g=yS(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=Bi(d,h,m),[C,A]=T.useState(new Array(b.length).fill(!1)),S=T.useRef(new Array(b.length).fill(!0)),[w,D]=T.useState(void 0),O=T.useRef(b),R=T.useRef(C);let k=ie=>{O.current=ie,$(ie)},j=ie=>{R.current=ie,A(ie)};function M(ie){return(ie-n)/(r-n)}function ue(ie){return ie===0?n:b[ie-1]}function ae(ie){return ie===b.length-1?r:b[ie+1]}function W(ie){return S.current[ie]}function De(ie,Ae){S.current[ie]=Ae}function q(ie,Ae){if(t||!W(ie))return;const Pe=ue(ie),Ie=ae(ie);Ae=ff(Ae,Pe,Ie,o);let Le=gS(O.current,ie,Ae);k(Le)}function K(ie,Ae){if(t||!W(ie))return;Ae&&(O.current=b);const Pe=R.current[ie];R.current=gS(R.current,ie,Ae),j(R.current),g&&Pe&&!R.current.some(Boolean)&&g(O.current)}function ne(ie){return i.format(ie)}function U(ie,Ae){q(ie,I(Ae))}function N(ie){return Math.round((ie-n)/o)*o+n}function I(ie){const Ae=ie*(r-n)+n;return lc(N(Ae),n,r)}function de(ie,Ae=1){let Pe=Math.max(Ae,o);q(ie,ff(b[ie]+Pe,n,r,o))}function se(ie,Ae=1){let Pe=Math.max(Ae,o);q(ie,ff(b[ie]-Pe,n,r,o))}return{values:b,getThumbValue:ie=>b[ie],setThumbValue:q,setThumbPercent:U,isThumbDragging:ie=>C[ie],setThumbDragging:K,focusedThumb:w,setFocusedThumb:D,getThumbPercent:ie=>M(b[ie]),getValuePercent:M,getThumbValueLabel:ie=>ne(b[ie]),getFormattedValue:ne,getThumbMinValue:ue,getThumbMaxValue:ae,getPercentValue:I,isThumbEditable:W,setThumbEditable:De,incrementThumb:de,decrementThumb:se,step:o,pageSize:u,orientation:s,isDisabled:t}}function gS(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function vS(e){if(e!=null)return Array.isArray(e)?e:[e]}function yS(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const bS={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 JW(e={}){let{style:t,isFocusable:n}=e,[r,i]=T.useState(!1),{focusWithinProps:o}=Ac({isDisabled:!n,onFocusWithinChange:u=>i(u)}),s=T.useMemo(()=>r?t:t?{...bS,...t}:bS,[r]);return{visuallyHiddenProps:{...o,style:s}}}function QW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:s}=JW(e);return T.createElement(n,hn(o,s),t)}const h3=new WeakMap;function Mb(e,t){let n=h3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function eH(e,t,n){let{labelProps:r,fieldProps:i}=Om(e),o=e.orientation==="vertical";var s;h3.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Gr(),{addGlobalListener:l,removeGlobalListener:d}=Dc();const h=T.useRef(null),m=u==="rtl",g=T.useRef(null),{moveProps:b}=L_({onMoveStart(){g.current=null},onMove({deltaX:S,deltaY:w}){if(!n.current)return;let{height:D,width:O}=n.current.getBoundingClientRect(),R=o?D:O;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*R);let k=o?w:S;if((o||m)&&(k=-k),g.current+=k,h.current!=null&&n.current){const j=lc(g.current/R,0,1);t.setThumbPercent(h.current,j)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=T.useRef(void 0),C=(S,w,D,O)=>{if(n.current&&!e.isDisabled&&t.values.every((R,k)=>!t.isThumbDragging(k))){let{height:R,width:k,top:j,left:M}=n.current.getBoundingClientRect(),ue=o?R:k,q=((o?O:D)-(o?j:M))/ue;(u==="rtl"||o)&&(q=1-q);let K=t.getPercentValue(q),ne,U=t.values.findIndex(N=>K-N<0);if(U===0)ne=U;else if(U===-1)ne=t.values.length-1;else{let N=t.values[U-1],I=t.values[U];Math.abs(N-K)<Math.abs(I-K)?ne=U-1:ne=U}ne>=0&&t.isThumbEditable(ne)?(S.preventDefault(),h.current=ne,t.setFocusedThumb(ne),$.current=w,t.setThumbDragging(h.current,!0),t.setThumbValue(ne,K),l(window,"mouseup",A,!1),l(window,"touchend",A,!1),l(window,"pointerup",A,!1)):h.current=null}},A=S=>{var w,D;((D=S.pointerId)!==null&&D!==void 0?D:(w=S.changedTouches)===null||w===void 0?void 0:w[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",A,!1),d(window,"touchend",A,!1),d(window,"pointerup",A,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var S;(S=document.getElementById(Mb(t,0)))===null||S===void 0||S.focus(),O_("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:hn({onMouseDown(S){S.button!==0||S.altKey||S.ctrlKey||S.metaKey||C(S,void 0,S.clientX,S.clientY)},onPointerDown(S){S.pointerType==="mouse"&&(S.button!==0||S.altKey||S.ctrlKey||S.metaKey)||C(S,S.pointerId,S.clientX,S.clientY)},onTouchStart(S){C(S,S.changedTouches[0].identifier,S.changedTouches[0].clientX,S.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((S,w)=>Mb(t,w)).join(" "),"aria-live":"off"}}}function tH(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:s,inputRef:u,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Gr(),{addGlobalListener:b,removeGlobalListener:$}=Dc(),C=h3.get(t);var A;const{labelProps:S,fieldProps:w}=Om({...e,id:Mb(t,n),"aria-labelledby":`${C.id} ${(A=e["aria-labelledby"])!==null&&A!==void 0?A:""}`.trim()}),D=t.values[n],O=T.useCallback(()=>{u.current&&Fo(u.current)},[u]),R=t.focusedThumb===n;T.useEffect(()=>{R&&O()},[R,O]);let k=g==="rtl",j=T.useRef(null),{keyboardProps:M}=I_({onKeyDown(U){let{getThumbMaxValue:N,getThumbMinValue:I,decrementThumb:de,incrementThumb:se,setThumbValue:ie,setThumbDragging:Ae,pageSize:Pe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(U.key)){U.continuePropagation();return}switch(U.preventDefault(),Ae(n,!0),U.key){case"PageUp":se(n,Pe);break;case"PageDown":de(n,Pe);break;case"Home":ie(n,I(n));break;case"End":ie(n,N(n));break}Ae(n,!1)}}),{moveProps:ue}=L_({onMoveStart(){j.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:U,deltaY:N,pointerType:I,shiftKey:de}){const{getThumbPercent:se,setThumbPercent:ie,decrementThumb:Ae,incrementThumb:Pe,step:Ie,pageSize:Le}=t;if(!s.current)return;let{width:Je,height:Qe}=s.current.getBoundingClientRect(),ye=m?Qe:Je;if(j.current==null&&(j.current=se(n)*ye),I==="keyboard")U>0&&k||U<0&&!k||N>0?Ae(n,de?Le:Ie):Pe(n,de?Le:Ie);else{let Ne=m?N:U;(m||k)&&(Ne=-Ne),j.current+=Ne,ie(n,lc(j.current/ye,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:ae}=e3(hn(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let W=T.useRef(void 0),De=U=>{O(),W.current=U,t.setThumbDragging(n,!0),b(window,"mouseup",q,!1),b(window,"touchend",q,!1),b(window,"pointerup",q,!1)},q=U=>{var N,I;((I=U.pointerId)!==null&&I!==void 0?I:(N=U.changedTouches)===null||N===void 0?void 0:N[0].identifier)===W.current&&(O(),t.setThumbDragging(n,!1),$(window,"mouseup",q,!1),$(window,"touchend",q,!1),$(window,"pointerup",q,!1))},K=t.getThumbPercent(n);(m||g==="rtl")&&(K=1-K);let ne=h?{}:hn(M,ue,{onMouseDown:U=>{U.button!==0||U.altKey||U.ctrlKey||U.metaKey||De()},onPointerDown:U=>{U.button!==0||U.altKey||U.ctrlKey||U.metaKey||De(U.pointerId)},onTouchStart:U=>{De(U.changedTouches[0].identifier)}});return Y4(u,D,U=>{t.setThumbValue(n,U)}),{inputProps:hn(ae,w,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[C["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[C["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:U=>{t.setThumbValue(n,parseFloat(U.target.value))}}),thumbProps:{...ne,style:{position:"absolute",[m?"top":"left"]:`${K*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:R}}function nH(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:s="text",validationBehavior:u="aria"}=e,[l,d]=Bi(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=e3(e,t),m=Fd({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:C,fieldProps:A,descriptionProps:S,errorMessageProps:w}=Im({...e,isInvalid:g,errorMessage:e.errorMessage||b}),D=ca(e,{labelable:!0});const O={type:s,pattern:e.pattern};return Y4(t,l,d),a6(e,m,t),T.useEffect(()=>{if(t.current instanceof eu(t.current).HTMLTextAreaElement){let R=t.current;Object.defineProperty(R,"defaultValue",{get:()=>R.value,set:()=>{},configurable:!0})}},[t]),{labelProps:C,inputProps:hn(D,n==="input"?O:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:R=>d(R.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...A}),descriptionProps:S,errorMessageProps:w,isInvalid:g,validationErrors:b,validationDetails:$}}var u6={};u6={Empty:"فارغ"};var l6={};l6={Empty:"Изпразни"};var c6={};c6={Empty:"Prázdné"};var f6={};f6={Empty:"Tom"};var d6={};d6={Empty:"Leer"};var h6={};h6={Empty:"Άδειο"};var p6={};p6={Empty:"Empty"};var m6={};m6={Empty:"Vacío"};var g6={};g6={Empty:"Tühjenda"};var v6={};v6={Empty:"Tyhjä"};var y6={};y6={Empty:"Vide"};var b6={};b6={Empty:"ריק"};var x6={};x6={Empty:"Prazno"};var $6={};$6={Empty:"Üres"};var w6={};w6={Empty:"Vuoto"};var C6={};C6={Empty:"空"};var S6={};S6={Empty:"비어 있음"};var E6={};E6={Empty:"Tuščias"};var D6={};D6={Empty:"Tukšs"};var A6={};A6={Empty:"Tom"};var T6={};T6={Empty:"Leeg"};var P6={};P6={Empty:"Pusty"};var _6={};_6={Empty:"Vazio"};var R6={};R6={Empty:"Vazio"};var M6={};M6={Empty:"Gol"};var F6={};F6={Empty:"Не заполнено"};var k6={};k6={Empty:"Prázdne"};var O6={};O6={Empty:"Prazen"};var I6={};I6={Empty:"Prazno"};var L6={};L6={Empty:"Tomt"};var B6={};B6={Empty:"Boş"};var V6={};V6={Empty:"Пусто"};var N6={};N6={Empty:"空"};var j6={};j6={Empty:"空白"};var K6={};K6={"ar-AE":u6,"bg-BG":l6,"cs-CZ":c6,"da-DK":f6,"de-DE":d6,"el-GR":h6,"en-US":p6,"es-ES":m6,"et-EE":g6,"fi-FI":v6,"fr-FR":y6,"he-IL":b6,"hr-HR":x6,"hu-HU":$6,"it-IT":w6,"ja-JP":C6,"ko-KR":S6,"lt-LT":E6,"lv-LV":D6,"nb-NO":A6,"nl-NL":T6,"pl-PL":P6,"pt-BR":_6,"pt-PT":R6,"ro-RO":M6,"ru-RU":F6,"sk-SK":k6,"sl-SI":O6,"sr-SP":I6,"sv-SE":L6,"tr-TR":B6,"uk-UA":V6,"zh-CN":N6,"zh-TW":j6};function rH(e){return e&&e.__esModule?e.default:e}function iH(e){const t=T.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:s,isReadOnly:u,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const C=Cs(rH(K6),"@react-aria/spinbutton"),A=()=>clearTimeout(t.current);T.useEffect(()=>()=>A(),[]);let S=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||u))switch(W.key){case"PageUp":if(h){W.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(W.preventDefault(),d==null||d());break;case"PageDown":if(g){W.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(W.preventDefault(),m==null||m());break;case"Home":b&&(W.preventDefault(),b==null||b());break;case"End":$&&(W.preventDefault(),$==null||$());break}},w=T.useRef(!1),D=()=>{w.current=!0},O=()=>{w.current=!1},R=r===""?C.format("Empty"):(r||`${n}`).replace("-","−");T.useEffect(()=>{w.current&&(kW("assertive"),Zl(R,"assertive"))},[R]);const k=or(W=>{A(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&k(60)},W)}),j=or(W=>{A(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&j(60)},W)});let M=W=>{W.preventDefault()},{addGlobalListener:ue,removeAllGlobalListeners:ae}=Dc();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":R,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":s||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:S,onFocus:D,onBlur:O},incrementButtonProps:{onPressStart:()=>{k(400),ue(window,"contextmenu",M)},onPressEnd:()=>{A(),ae()},onFocus:D,onBlur:O},decrementButtonProps:{onPressStart:()=>{j(400),ue(window,"contextmenu",M)},onPressEnd:()=>{A(),ae()},onFocus:D,onBlur:O}}}var U6={};U6={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 z6={};z6={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var q6={};q6={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 W6={};W6={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 H6={};H6={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 G6={};G6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Y6={};Y6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Z6={};Z6={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var X6={};X6={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 J6={};J6={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 Q6={};Q6={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 eR={};eR={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 tR={};tR={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 nR={};nR={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 rR={};rR={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 iR={};iR={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 oR={};oR={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 sR={};sR={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 aR={};aR={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 uR={};uR={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 lR={};lR={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 cR={};cR={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 fR={};fR={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 dR={};dR={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 hR={};hR={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 pR={};pR={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 mR={};mR={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 gR={};gR={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 vR={};vR={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 yR={};yR={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 bR={};bR={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 xR={};xR={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var $R={};$R={buttonLabel:"显示建议",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 wR={};wR={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 CR={};CR={"ar-AE":U6,"bg-BG":z6,"cs-CZ":q6,"da-DK":W6,"de-DE":H6,"el-GR":G6,"en-US":Y6,"es-ES":Z6,"et-EE":X6,"fi-FI":J6,"fr-FR":Q6,"he-IL":eR,"hr-HR":tR,"hu-HU":nR,"it-IT":rR,"ja-JP":iR,"ko-KR":oR,"lt-LT":sR,"lv-LV":aR,"nb-NO":uR,"nl-NL":lR,"pl-PL":cR,"pt-BR":fR,"pt-PT":dR,"ro-RO":hR,"ru-RU":pR,"sk-SK":mR,"sl-SI":gR,"sr-SP":vR,"sv-SE":yR,"tr-TR":bR,"uk-UA":xR,"zh-CN":$R,"zh-TW":wR};const hs={top:"top",bottom:"top",left:"left",right:"left"},qp={top:"bottom",bottom:"top",left:"right",right:"left"},oH={top:"left",left:"top"},Fb={top:"height",left:"width"},SR={width:"totalWidth",height:"totalHeight"},Kh={};let Ar=typeof document<"u"?window.visualViewport:null;function xS(e){let t=0,n=0,r=0,i=0,o=0,s=0,u={};var l;let d=((l=Ar==null?void 0:Ar.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=Ar==null?void 0:Ar.width)!==null&&h!==void 0?h:r;var m;n=(m=Ar==null?void 0:Ar.height)!==null&&m!==void 0?m:i,u.top=$.scrollTop||e.scrollTop,u.left=$.scrollLeft||e.scrollLeft,Ar&&(o=Ar.offsetTop,s=Ar.offsetLeft)}else({width:t,height:n,top:o,left:s}=Xl(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(H4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var g;o=(g=Ar==null?void 0:Ar.pageTop)!==null&&g!==void 0?g:0;var b;s=(b=Ar==null?void 0:Ar.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:s}}function sH(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $S(e,t,n,r,i,o,s){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Fb[e]],h=r.scroll[hs[e]]+o,m=d+r.scroll[hs[e]]-o,g=t-l+s[e]-r[hs[e]],b=t-l+n+s[e]-r[hs[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function aH(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 wS(e){if(Kh[e])return Kh[e];let[t,n]=e.split(" "),r=hs[t]||"right",i=oH[r];hs[n]||(n="center");let o=Fb[r],s=Fb[i];return Kh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:s},Kh[e]}function Wv(e,t,n,r,i,o,s,u,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:C}=r,A={};var S;A[b]=(S=e[b])!==null&&S!==void 0?S:0;var w,D,O,R;m==="center"?A[b]+=(((w=e[C])!==null&&w!==void 0?w:0)-((D=n[C])!==null&&D!==void 0?D:0))/2:m!==b&&(A[b]+=((O=e[C])!==null&&O!==void 0?O:0)-((R=n[C])!==null&&R!==void 0?R:0)),A[b]+=o;const k=e[b]-n[C]+l+d,j=e[b]+e[C]-l-d;if(A[b]=lc(A[b],k,j),h===g){const M=u?s[$]:t[SR[$]];A[qp[g]]=Math.floor(M-e[g]+i)}else A[g]=Math.floor(e[g]+e[$]+i);return A}function uH(e,t,n,r,i,o,s,u){const l=r?n.height:t[SR.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-s);var m,g,b,$,C,A;let S=u!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+o)):Math.max(0,h+s-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((C=i.top)!==null&&C!==void 0?C:0)+((A=i.bottom)!==null&&A!==void 0?A:0)+o));return Math.min(t.height-o*2,S)}function CS(e,t,n,r,i,o){let{placement:s,axis:u,size:l}=o;var d,h;if(s===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((h=r[u])!==null&&h!==void 0?h:0)-r[qp[u]]-i);var m;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((m=r[u])!==null&&m!==void 0?m:0)-r[qp[u]]-i)}function lH(e,t,n,r,i,o,s,u,l,d,h,m,g,b,$,C){let A=wS(e),{size:S,crossAxis:w,crossSize:D,placement:O,crossPlacement:R}=A,k=Wv(t,u,n,A,h,m,d,g,$,C),j=h,M=CS(u,d,t,i,o+h,A);if(s&&r[S]>M){let Ie=wS(`${qp[O]} ${R}`),Le=Wv(t,u,n,Ie,h,m,d,g,$,C);CS(u,d,t,i,o+h,Ie)>M&&(A=Ie,k=Le,j=h)}let ue="bottom";A.axis==="top"?A.placement==="top"?ue="top":A.placement==="bottom"&&(ue="bottom"):A.crossAxis==="top"&&(A.crossPlacement==="top"?ue="bottom":A.crossPlacement==="bottom"&&(ue="top"));let ae=$S(w,k[w],n[D],u,l,o,d);k[w]+=ae;let W=uH(k,u,d,g,i,o,n.height,ue);b&&b<W&&(W=b),n.height=Math.min(n.height,W),k=Wv(t,u,n,A,j,m,d,g,$,C),ae=$S(w,k[w],n[D],u,l,o,d),k[w]+=ae;let De={},q=t[w]+.5*t[D]-k[w]-i[hs[w]];const K=$/2+C;var ne,U,N,I;const de=hs[w]==="left"?((ne=i.left)!==null&&ne!==void 0?ne:0)+((U=i.right)!==null&&U!==void 0?U:0):((N=i.top)!==null&&N!==void 0?N:0)+((I=i.bottom)!==null&&I!==void 0?I:0),se=n[D]-de-$/2-C,ie=t[w]+$/2-(k[w]+i[hs[w]]),Ae=t[w]+t[D]-$/2-(k[w]+i[hs[w]]),Pe=lc(q,ie,Ae);return De[w]=lc(Pe,K,se),{position:k,maxHeight:W,arrowOffsetLeft:De.left,arrowOffsetTop:De.top,placement:A.placement}}function cH(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:s,boundaryElement:u,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?fH(r):document.documentElement,$=b===document.documentElement;const C=window.getComputedStyle(b).position;let A=!!C&&C!=="static",S=$?Xl(n):SS(n,b);if(!$){let{marginTop:De,marginLeft:q}=window.getComputedStyle(n);S.top+=parseInt(De,10)||0,S.left+=parseInt(q,10)||0}let w=Xl(r),D=aH(r);var O,R;w.width+=((O=D.left)!==null&&O!==void 0?O:0)+((R=D.right)!==null&&R!==void 0?R:0);var k,j;w.height+=((k=D.top)!==null&&k!==void 0?k:0)+((j=D.bottom)!==null&&j!==void 0?j:0);let M=sH(i),ue=xS(u),ae=xS(b),W=u.tagName==="BODY"?Xl(b):SS(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(ae.scroll.top=0,ae.scroll.left=0),lH(t,S,w,M,D,o,s,ue,ae,W,l,d,A,h,m,g)}function Xl(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:s,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+o-u,left:n+s-l,width:r,height:i}}function SS(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:s,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:s,height:u}}else{r=Xl(e);let i=Xl(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function fH(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!ES(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!ES(t);)t=t.parentElement;return t||document.documentElement}function ES(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 ER=new WeakMap;function dH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;T.useEffect(()=>{if(!n||r===null)return;let i=o=>{let s=o.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||ER.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let rr=typeof document<"u"?window.visualViewport:null;function hH(e){let{direction:t}=Gr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:s="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:$,maxHeight:C,arrowBoundaryOffset:A=0}=e,[S,w]=T.useState(null),D=[g,s,i.current,r.current,o.current,u,l,d,h,m,b,t,C,A,n],O=T.useRef(rr==null?void 0:rr.scale);T.useEffect(()=>{b&&(O.current=rr==null?void 0:rr.scale)},[b]);let R=T.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(rr==null?void 0:rr.scale)!==O.current)return;let ae=null;if(o.current&&o.current.contains(document.activeElement)){var W;let I=(W=document.activeElement)===null||W===void 0?void 0:W.getBoundingClientRect(),de=o.current.getBoundingClientRect();var De;if(ae={type:"top",offset:((De=I==null?void 0:I.top)!==null&&De!==void 0?De:0)-de.top},ae.offset>de.height/2){ae.type="bottom";var q;ae.offset=((q=I==null?void 0:I.bottom)!==null&&q!==void 0?q:0)-de.bottom}}let K=i.current;if(!C&&i.current){var ne;K.style.top="0px",K.style.bottom="";var U;K.style.maxHeight=((U=(ne=window.visualViewport)===null||ne===void 0?void 0:ne.height)!==null&&U!==void 0?U:window.innerHeight)+"px"}let N=cH({placement:mH(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:C,arrowSize:n,arrowBoundaryOffset:A});if(N.position){if(K.style.top="",K.style.bottom="",K.style.left="",K.style.right="",Object.keys(N.position).forEach(I=>K.style[I]=N.position[I]+"px"),K.style.maxHeight=N.maxHeight!=null?N.maxHeight+"px":"",ae&&document.activeElement&&o.current){let I=document.activeElement.getBoundingClientRect(),de=o.current.getBoundingClientRect(),se=I[ae.type]-de[ae.type];o.current.scrollTop+=se-ae.offset}w(N)}},D);En(R,D),pH(R),PC({ref:i,onResize:R}),PC({ref:r,onResize:R});let k=T.useRef(!1);En(()=>{let ae,W=()=>{k.current=!0,clearTimeout(ae),ae=setTimeout(()=>{k.current=!1},500),R()},De=()=>{k.current&&W()};return rr==null||rr.addEventListener("resize",W),rr==null||rr.addEventListener("scroll",De),()=>{rr==null||rr.removeEventListener("resize",W),rr==null||rr.removeEventListener("scroll",De)}},[R]);let j=T.useCallback(()=>{k.current||$==null||$()},[$,k]);dH({triggerRef:r,isOpen:b,onClose:$&&j});var M,ue;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...S==null?void 0:S.position,maxHeight:(M=S==null?void 0:S.maxHeight)!==null&&M!==void 0?M:"100vh"}},placement:(ue=S==null?void 0:S.placement)!==null&&ue!==void 0?ue:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:R}}function pH(e){En(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function mH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Zs=[];function gH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:u}=e;T.useEffect(()=>(i&&Zs.push(t),()=>{let $=Zs.indexOf(t);$>=0&&Zs.splice($,1)}),[i,t]);let l=()=>{Zs[Zs.length-1]===t&&n&&n()},d=$=>{(!u||u($.target))&&Zs[Zs.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!u||u($.target))&&(Zs[Zs.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!s&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};Jz({ref:t,onInteractOutside:o&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=Ac({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||aq($.relatedTarget)||(!u||u($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function vH(e,t,n){let{type:r}=e,{isOpen:i}=t;T.useEffect(()=>{n&&n.current&&ER.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let s=wi();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const Hv=typeof document<"u"&&window.visualViewport,yH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Uh=0,Gv;function bH(e={}){let{isDisabled:t}=e;En(()=>{if(!t)return Uh++,Uh===1&&(Sd()?Gv=$H():Gv=xH()),()=>{Uh--,Uh===0&&Gv()}},[t])}function xH(){return Ju(Ol(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ol(document.documentElement,"overflow","hidden"))}function $H(){let e,t,n=d=>{e=Tm(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Ol(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},o=d=>{let h=d.target;wH(h)&&(u(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",Hv&&(Hv.height<window.innerHeight?requestAnimationFrame(()=>{DS(h)}):Hv.addEventListener("resize",()=>DS(h),{once:!0}))}))},s=null,u=()=>{if(s)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;s=Ju(hf(window,"scroll",d),Ol(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Ol(document.documentElement,"overflow","hidden"),Ol(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=Ju(hf(document,"touchstart",n,{passive:!1,capture:!0}),hf(document,"touchmove",r,{passive:!1,capture:!0}),hf(document,"touchend",i,{passive:!1,capture:!0}),hf(document,"focus",o,!0));return()=>{t==null||t(),s==null||s(),l()}}function Ol(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function hf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function DS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Tm(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function wH(e){return e instanceof HTMLInputElement&&!yH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let pf=new WeakMap,Zi=[];function DR(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let g of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(g.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),m=d(l);if(m===NodeFilter.FILTER_ACCEPT&&o(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)o(g),g=h.nextNode()}},o=l=>{var d;let h=(d=pf.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&h===0||(h===0&&l.setAttribute("aria-hidden","true"),r.add(l),pf.set(l,h+1))};Zi.length&&Zi[Zi.length-1].disconnect(),i(t);let s=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(h=>h.contains(d.target))){for(let h of d.removedNodes)h instanceof Element&&(n.delete(h),r.delete(h));for(let h of d.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?n.add(h):h instanceof Element&&i(h)}});s.observe(t,{childList:!0,subtree:!0});let u={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Zi.push(u),()=>{s.disconnect();for(let l of r){let d=pf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),pf.delete(l)):pf.set(l,d-1))}u===Zi[Zi.length-1]?(Zi.pop(),Zi.length&&Zi[Zi.length-1].observe()):Zi.splice(Zi.indexOf(u),1)}}function CH(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s,...u}=e,{overlayProps:l,underlayProps:d}=gH({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:s},r),{overlayProps:h,arrowProps:m,placement:g}=hH({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return bH({isDisabled:i||!t.isOpen}),En(()=>{if(t.isOpen&&!i&&r.current)return DR([r.current])},[i,t.isOpen,r]),{popoverProps:hn(l,h),arrowProps:m,underlayProps:d,placement:g}}const SH=T.createContext({});function EH(){var e;return(e=T.useContext(SH))!==null&&e!==void 0?e:{}}const AR=T.createContext(null);function DH(e){let t=q4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=T.useState(!1),s=T.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=EH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=T.createElement(nq,{restoreFocus:!0,contain:i&&!r},l)),l=T.createElement(AR.Provider,{value:s},T.createElement(zz,null,l)),Ya.createPortal(l,n)}function AH(){let e=T.useContext(AR),t=e==null?void 0:e.setContain;En(()=>{t==null||t(!0)},[t])}const Lm=new WeakMap;function TH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function TR(e,t){let n=Lm.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${TH(t)}`}function kb(e){return up()?e.altKey:e.ctrlKey}const PH=1e3;function _H(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=T.useRef({search:"",timeout:void 0}).current,o=s=>{let u=RH(s.key);if(!(!u||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(u===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},PH)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function RH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function PR(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:s=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:h,allowsTabNavigation:m=!1,isVirtualized:g,scrollRef:b=r,linkBehavior:$="action"}=e,{direction:C}=Gr(),A=Am(),S=q=>{var K;if(q.altKey&&q.key==="Tab"&&q.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(q.target)))return;const ne=(ye,Ne)=>{if(ye!=null){if(t.isLink(ye)&&$==="selection"&&l&&!kb(q)){var He;Ya.flushSync(()=>{t.setFocusedKey(ye,Ne)});let Ke=(He=b.current)===null||He===void 0?void 0:He.querySelector(`[data-key="${CSS.escape(ye.toString())}"]`),Be=t.getItemProps(ye);Ke&&A.open(Ke,q,Be.href,Be.routerOptions);return}if(t.setFocusedKey(ye,Ne),t.isLink(ye)&&$==="override")return;q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&!kb(q)&&t.replaceSelection(ye)}};switch(q.key){case"ArrowDown":if(n.getKeyBelow){var U,N,I;let ye=t.focusedKey!=null?(U=n.getKeyBelow)===null||U===void 0?void 0:U.call(n,t.focusedKey):(N=n.getFirstKey)===null||N===void 0?void 0:N.call(n);ye==null&&o&&(ye=(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n,t.focusedKey)),ye!=null&&(q.preventDefault(),ne(ye))}break;case"ArrowUp":if(n.getKeyAbove){var de,se,ie;let ye=t.focusedKey!=null?(de=n.getKeyAbove)===null||de===void 0?void 0:de.call(n,t.focusedKey):(se=n.getLastKey)===null||se===void 0?void 0:se.call(n);ye==null&&o&&(ye=(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey)),ye!=null&&(q.preventDefault(),ne(ye))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ae,Pe,Ie;let ye=t.focusedKey!=null?(Ae=n.getKeyLeftOf)===null||Ae===void 0?void 0:Ae.call(n,t.focusedKey):null;ye==null&&o&&(ye=C==="rtl"?(Pe=n.getFirstKey)===null||Pe===void 0?void 0:Pe.call(n,t.focusedKey):(Ie=n.getLastKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey)),ye!=null&&(q.preventDefault(),ne(ye,C==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Le,Je,Qe;let ye=t.focusedKey!=null?(Le=n.getKeyRightOf)===null||Le===void 0?void 0:Le.call(n,t.focusedKey):null;ye==null&&o&&(ye=C==="rtl"?(Je=n.getLastKey)===null||Je===void 0?void 0:Je.call(n,t.focusedKey):(Qe=n.getFirstKey)===null||Qe===void 0?void 0:Qe.call(n,t.focusedKey)),ye!=null&&(q.preventDefault(),ne(ye,C==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let ye=n.getFirstKey(t.focusedKey,Ml(q));t.setFocusedKey(ye),ye!=null&&(Ml(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&t.replaceSelection(ye))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let ye=n.getLastKey(t.focusedKey,Ml(q));t.setFocusedKey(ye),ye!=null&&(Ml(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ye):l&&t.replaceSelection(ye))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ye=n.getKeyPageBelow(t.focusedKey);ye!=null&&(q.preventDefault(),ne(ye))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ye=n.getKeyPageAbove(t.focusedKey);ye!=null&&(q.preventDefault(),ne(ye))}break;case"a":Ml(q)&&t.selectionMode==="multiple"&&u!==!0&&(q.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(q.stopPropagation(),q.preventDefault(),t.clearSelection());break;case"Tab":if(!m){if(q.shiftKey)r.current.focus();else{let ye=bi(r.current,{tabbable:!0}),Ne,He;do He=ye.lastChild(),He&&(Ne=He);while(He);Ne&&!Ne.contains(document.activeElement)&&Fo(Ne)}break}}},w=T.useRef({top:0,left:0});fs(b,"scroll",g?void 0:()=>{var q,K,ne,U;w.current={top:(ne=(q=b.current)===null||q===void 0?void 0:q.scrollTop)!==null&&ne!==void 0?ne:0,left:(U=(K=b.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&U!==void 0?U:0}});let D=q=>{if(t.isFocused){q.currentTarget.contains(q.target)||t.setFocused(!1);return}if(q.currentTarget.contains(q.target)){if(t.setFocused(!0),t.focusedKey==null){var K,ne;let I=se=>{se!=null&&(t.setFocusedKey(se),l&&t.replaceSelection(se))},de=q.relatedTarget;var U,N;de&&q.currentTarget.compareDocumentPosition(de)&Node.DOCUMENT_POSITION_FOLLOWING?I((U=t.lastSelectedKey)!==null&&U!==void 0?U:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):I((N=t.firstSelectedKey)!==null&&N!==void 0?N:(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.call(n))}else!g&&b.current&&(b.current.scrollTop=w.current.top,b.current.scrollLeft=w.current.left);if(t.focusedKey!=null&&b.current){let I=b.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);I&&(I.contains(document.activeElement)||Fo(I),Jf()==="keyboard"&&Op(I,{containingElement:r.current}))}}},O=q=>{q.currentTarget.contains(q.relatedTarget)||t.setFocused(!1)},R=T.useRef(!1);fs(r,kz,h?q=>{let{detail:K}=q;q.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(R.current=!0)}:void 0);let k=or(()=>{var q,K;let ne=(K=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&K!==void 0?K:null;if(ne==null){var U;(U=r.current)===null||U===void 0||U.dispatchEvent(new CustomEvent(D_,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(R.current=!1)}else t.setFocusedKey(ne),R.current=!1});TC(()=>{R.current&&k()},[t.collection,k]);let j=or(()=>{t.collection.size>0&&(R.current=!1)});TC(()=>{j()},[t.focusedKey,j]),fs(r,Fz,h?q=>{q.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const M=T.useRef(i);T.useEffect(()=>{if(M.current){var q,K;let N=null;var ne;i==="first"&&(N=(ne=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&ne!==void 0?ne:null);var U;i==="last"&&(N=(U=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&U!==void 0?U:null);let I=t.selectedKeys;if(I.size){for(let de of I)if(t.canSelectItem(de)){N=de;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!h&&r.current&&tl(r.current)}},[]);let ue=T.useRef(t.focusedKey);T.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==ue.current||M.current)&&b.current&&r.current){let q=Jf(),K=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!K)return;(q==="keyboard"||M.current)&&(S_(b.current,K),q!=="virtual"&&Op(K,{containingElement:r.current}))}!h&&t.isFocused&&t.focusedKey==null&&ue.current!=null&&r.current&&tl(r.current),ue.current=t.focusedKey,M.current=!1}),fs(r,"react-aria-focus-scope-restore",q=>{q.preventDefault(),t.setFocused(!0)});let ae={onKeyDown:S,onFocus:D,onBlur:O,onMouseDown(q){b.current===q.target&&q.preventDefault()}},{typeSelectProps:W}=_H({keyboardDelegate:n,selectionManager:t});d||(ae=hn(W,ae));let De;return h?De=-1:De=t.focusedKey==null?0:-1,{collectionProps:{...ae,tabIndex:De}}}function MH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:u,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Am();t=wi(t);let b=I=>{if(I.pointerType==="keyboard"&&kb(I))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let de=n.getItemProps(r);g.open(i.current,I,de.href,de.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):I&&I.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||I&&(Ml(I)||I.pointerType==="touch"||I.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};T.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!s)u?u():document.activeElement!==i.current&&i.current&&tl(i.current);else{var de;let se=new CustomEvent(D_,{cancelable:!0,bubbles:!0});(de=i.current)===null||de===void 0||de.dispatchEvent(se)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,s]),l=l||n.isDisabled(r);let $={};!s&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(I){I.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=I=>{I.preventDefault()});let C=n.isLink(r)&&m==="override",A=n.isLink(r)&&m!=="selection"&&m!=="none",S=!l&&n.canSelectItem(r)&&!C,w=(d||A)&&!l,D=w&&(n.selectionBehavior==="replace"?!S:!S||n.isEmpty),O=w&&S&&n.selectionBehavior==="replace",R=D||O,k=T.useRef(null),j=R&&S,M=T.useRef(!1),ue=T.useRef(!1),ae=I=>{if(d&&d(),A&&i.current){let de=n.getItemProps(r);g.open(i.current,I,de.href,de.routerOptions)}},W={};o?(W.onPressStart=I=>{k.current=I.pointerType,M.current=j,I.pointerType==="keyboard"&&(!R||TS())&&b(I)},h?(W.onPressUp=D?void 0:I=>{I.pointerType==="mouse"&&S&&b(I)},W.onPress=D?ae:I=>{I.pointerType!=="keyboard"&&I.pointerType!=="mouse"&&S&&b(I)}):W.onPress=I=>{if(D||O&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!AS())return;ae(I)}else I.pointerType!=="keyboard"&&S&&b(I)}):(W.onPressStart=I=>{k.current=I.pointerType,M.current=j,ue.current=D,S&&(I.pointerType==="mouse"&&!D||I.pointerType==="keyboard"&&(!w||TS()))&&b(I)},W.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&R&&AS()||I.pointerType==="mouse"&&ue.current)&&(R?ae(I):S&&b(I))}),$["data-key"]=r,W.preventFocusOnPress=s;let{pressProps:De,isPressed:q}=Ad(W),K=O?I=>{k.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),ae(I))}:void 0,{longPressProps:ne}=B_({isDisabled:!j,onLongPress(I){I.pointerType==="touch"&&(b(I),n.setSelectionBehavior("toggle"))}}),U=I=>{k.current==="touch"&&M.current&&I.preventDefault()},N=n.isLink(r)?I=>{Qu.isOpening||I.preventDefault()}:void 0;return{itemProps:hn($,S||D?De:{},j?ne:{},{onDoubleClick:K,onDragStartCapture:U,onClick:N,id:t}),isPressed:q,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:S,hasAction:R}}function AS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function TS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class PS{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class _R{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let s=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(s,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Xf(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Xf(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let s=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(s,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 PS(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 PS(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function FH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:s}=e,u=$5({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=T.useMemo(()=>o||new _R({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:s}),[o,s,n,r,i,u,l]),{collectionProps:h}=PR({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function kH(e,t,n){let r=ca(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:s}=FH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Ac({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=wi(e.id);Lm.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:h}=Om({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:hn(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...hn(h,s)})}}function RR(e){return null}RR.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,s=t.title||t.children,u=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:u,"aria-label":t["aria-label"],hasChildNodes:OH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];T.Children.forEach(o,d=>{l.push({type:"item",element:d})}),yield*l}}}};function OH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&T.Children.count(e.children)>0)}let IH=RR;class LH{build(t,n){return this.context=n,_S(()=>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 o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];T.Children.forEach(n,s=>{s&&i.push(s)});let o=0;for(let s of i){let u=this.getFullNode({element:s,index:o},{});for(let l of u)o++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var s;let u=(s=o.key)!==null&&s!==void 0?s:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(T.isValidElement(t.element)&&t.element.type===T.Fragment){let A=[];T.Children.forEach(t.element.props.children,w=>{A.push(w)});var o;let S=(o=t.index)!==null&&o!==void 0?o:0;for(const w of A)yield*this.getFullNode({element:w,index:S++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let A=this.cache.get(t.value);if(A&&(!A.shouldInvalidate||!A.shouldInvalidate(this.context))){A.index=t.index,A.parentKey=i?i.key:null,yield A;return}s=n.renderer(t.value)}if(T.isValidElement(s)){let A=s.type;if(typeof A!="function"&&typeof A.getCollectionNode!="function"){let O=s.type;throw new Error(`Unknown element <${O}> in collection.`)}let S=A.getCollectionNode(s.props,this.context);var u;let w=(u=t.index)!==null&&u!==void 0?u:0,D=S.next();for(;!D.done&&D.value;){let O=D.value;t.index=w;var l;let R=(l=O.key)!==null&&l!==void 0?l:null;R==null&&(R=O.element?null:this.getKey(s,t,n,r));let j=[...this.getFullNode({...O,key:R,index:w,wrapper:BH(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${s.key}`:s.key,i)];for(let M of j){var d,h;M.value=(h=(d=O.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,M.value&&this.cache.set(M.value,M);var m;if(t.type&&M.type!==t.type)throw new Error(`Unsupported type <${Yv(M.type)}> in <${Yv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Yv(t.type)}> is supported.`);w++,yield M}D=S.next(j)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;let C={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:_S(function*(){if(!t.hasChildNodes||!t.childNodes)return;let A=0;for(let S of t.childNodes()){S.key!=null&&(S.key=`${C.key}${S.key}`);let w=g.getFullNode({...S,index:A},g.getChildState(n,S),C.key,C);for(let D of w)A++,yield D}})};yield C}constructor(){this.cache=new WeakMap}}function _S(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 BH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Yv(e){return e[0].toUpperCase()+e.slice(1)}function VH(e,t,n){let r=T.useMemo(()=>new LH,[]),{children:i,items:o,collection:s}=e;return T.useMemo(()=>{if(s)return s;let l=r.build({children:i,items:o},n);return t(l)},[r,i,o,s,n,t])}function Bm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function NH(e){return jH(e)}function jH(e,t){for(let n of e)return n}function Zv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...RS(e,t),t],i=[...RS(e,n),n],o=r.slice(0,i.length).findIndex((s,u)=>s!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function RS(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 MS=new WeakMap;function MR(e){let t=MS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(Bm(o,e)):n++};return r(e),MS.set(e,n),n}function KH(e,t,n){var r,i;let{key:o}=e,s=Lm.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:s==null?void 0:s.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:s==null?void 0:s.shouldFocusOnHover;var C;let A=(C=e.shouldUseVirtualFocus)!==null&&C!==void 0?C:s==null?void 0:s.shouldUseVirtualFocus;var S;let w=(S=e.isVirtualized)!==null&&S!==void 0?S:s==null?void 0:s.isVirtualized,D=ac(),O=ac(),R={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};aa()&&H4()||(R["aria-label"]=e["aria-label"],R["aria-labelledby"]=D,R["aria-describedby"]=O);let k=t.collection.getItem(o);if(w){let N=Number(k==null?void 0:k.index);R["aria-posinset"]=Number.isNaN(N)?void 0:N+1,R["aria-setsize"]=MR(t.collection)}let j=s!=null&&s.onAction?()=>{var N;return s==null||(N=s.onAction)===null||N===void 0?void 0:N.call(s,o)}:void 0,M=TR(t,o),{itemProps:ue,isPressed:ae,isFocused:W,hasAction:De,allowsSelection:q}=MH({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:w,shouldUseVirtualFocus:A,isDisabled:l,onAction:j||!(k==null||(r=k.props)===null||r===void 0)&&r.onAction?Ju(k==null||(i=k.props)===null||i===void 0?void 0:i.onAction,j):void 0,linkBehavior:s==null?void 0:s.linkBehavior,id:M}),{hoverProps:K}=Xz({isDisabled:l||!$,onHoverStart(){IC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),ne=ca(k==null?void 0:k.props);delete ne.id;let U=Tz(k==null?void 0:k.props);return{optionProps:{...R,...hn(ne,ue,K,U),id:M},labelProps:{id:D},descriptionProps:{id:O},isFocused:W,isFocusVisible:W&&IC(),isSelected:h,isDisabled:l,isPressed:ae,allowsSelection:q,hasAction:De}}var FR={};FR={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var kR={};kR={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var OR={};OR={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var IR={};IR={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var LR={};LR={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var BR={};BR={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var VR={};VR={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var NR={};NR={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var jR={};jR={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var KR={};KR={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var UR={};UR={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var zR={};zR={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var qR={};qR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var WR={};WR={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var HR={};HR={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var GR={};GR={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var YR={};YR={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ZR={};ZR={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var XR={};XR={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var JR={};JR={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var QR={};QR={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var eM={};eM={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var tM={};tM={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var nM={};nM={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var rM={};rM={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var iM={};iM={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var oM={};oM={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var sM={};sM={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var aM={};aM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var uM={};uM={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var lM={};lM={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var cM={};cM={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var fM={};fM={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var dM={};dM={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var hM={};hM={"ar-AE":FR,"bg-BG":kR,"cs-CZ":OR,"da-DK":IR,"de-DE":LR,"el-GR":BR,"en-US":VR,"es-ES":NR,"et-EE":jR,"fi-FI":KR,"fr-FR":UR,"he-IL":zR,"hr-HR":qR,"hu-HU":WR,"it-IT":HR,"ja-JP":GR,"ko-KR":YR,"lt-LT":ZR,"lv-LV":XR,"nb-NO":JR,"nl-NL":QR,"pl-PL":eM,"pt-BR":tM,"pt-PT":nM,"ro-RO":rM,"ru-RU":iM,"sk-SK":oM,"sl-SI":sM,"sr-SP":aM,"sv-SE":uM,"tr-TR":lM,"uk-UA":cM,"zh-CN":fM,"zh-TW":dM};function UH(e){return e&&e.__esModule?e.default:e}function zH(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,s=wi(),{triggerProps:u,overlayProps:l}=vH({type:r},t,n),d=b=>{if(!i&&!(o==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=Cs(UH(hM),"@react-aria/menu"),{longPressProps:m}=B_({isDisabled:i||o!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&t.open(b.pointerType==="virtual"?"first":null)},onPress(b){b.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?g:m,id:s,onKeyDown:d},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function qH(e){return e&&e.__esModule?e.default:e}function WH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:s,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=T.useRef(null);n=n??m;let g=Cs(qH(CR),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=zH({type:"listbox",isDisabled:h||d},t,n);Lm.set(t,{id:$.id});let{collection:C}=t,{disabledKeys:A}=t.selectionManager,S=T.useMemo(()=>s||new _R({collection:C,disabledKeys:A,ref:o,layoutDelegate:u}),[s,u,C,A,o]),{collectionProps:w}=PR({selectionManager:t.selectionManager,keyboardDelegate:S,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),D=Am(),O=Ke=>{if(!Ke.nativeEvent.isComposing)switch(Ke.key){case"Enter":case"Tab":if(t.isOpen&&Ke.key==="Enter"&&Ke.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Be=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ke.key==="Enter"&&Be instanceof HTMLAnchorElement){let st=t.collection.getItem(t.selectionManager.focusedKey);st&&D.open(Be,Ke,st.props.href,st.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ke.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}},R=Ke=>{var Be;let st=(n==null?void 0:n.current)&&n.current===Ke.relatedTarget,Dt=(Be=r.current)===null||Be===void 0?void 0:Be.contains(Ke.relatedTarget);st||Dt||(e.onBlur&&e.onBlur(Ke),t.setFocused(!1))},k=Ke=>{t.isFocused||(e.onFocus&&e.onFocus(Ke),t.setFocused(!0))},{isInvalid:j,validationErrors:M,validationDetails:ue}=t.displayValidation,{labelProps:ae,inputProps:W,descriptionProps:De,errorMessageProps:q}=nH({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:Ju(t.isOpen&&w.onKeyDown,O,e.onKeyDown),onBlur:R,value:t.inputValue,onFocus:k,autoComplete:"off",validate:void 0,[fc]:t},i),K=Ke=>{if(Ke.pointerType==="touch"){var Be;(Be=i.current)===null||Be===void 0||Be.focus(),t.toggle(null,"manual")}},ne=Ke=>{if(Ke.pointerType!=="touch"){var Be;(Be=i.current)===null||Be===void 0||Be.focus(),t.toggle(Ke.pointerType==="keyboard"||Ke.pointerType==="virtual"?"first":null,"manual")}},U=uc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),N=uc({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||ae.id}),I=T.useRef(0),de=Ke=>{if(h||d)return;if(Ke.timeStamp-I.current<500){var Be;Ke.preventDefault(),(Be=i.current)===null||Be===void 0||Be.focus();return}let st=Ke.target.getBoundingClientRect(),Dt=Ke.changedTouches[0],ln=Math.ceil(st.left+.5*st.width),At=Math.ceil(st.top+.5*st.height);if(Dt.clientX===ln&&Dt.clientY===At){var It;Ke.preventDefault(),(It=i.current)===null||It===void 0||It.focus(),t.toggle(null,"manual"),I.current=Ke.timeStamp}},se=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var ie;let Ae=(ie=se==null?void 0:se.parentKey)!==null&&ie!==void 0?ie:null;var Pe;let Ie=(Pe=t.selectionManager.focusedKey)!==null&&Pe!==void 0?Pe:null,Le=T.useRef(Ae),Je=T.useRef(Ie);T.useEffect(()=>{if(up()&&se!=null&&Ie!=null&&Ie!==Je.current){let Be=t.selectionManager.isSelected(Ie),st=Ae!=null?t.collection.getItem(Ae):null,Dt=(st==null?void 0:st["aria-label"])||(typeof(st==null?void 0:st.rendered)=="string"?st.rendered:"")||"";var Ke;let ln=g.format("focusAnnouncement",{isGroupChange:(Ke=st&&Ae!==Le.current)!==null&&Ke!==void 0?Ke:!1,groupTitle:Dt,groupCount:st?[...Bm(st,t.collection)].length:0,optionText:se["aria-label"]||se.textValue||"",isSelected:Be});Zl(ln)}Le.current=Ae,Je.current=Ie});let Qe=MR(t.collection),ye=T.useRef(Qe),Ne=T.useRef(t.isOpen);T.useEffect(()=>{let Ke=t.isOpen!==Ne.current&&(t.selectionManager.focusedKey==null||up());if(t.isOpen&&(Ke||Qe!==ye.current)){let Be=g.format("countAnnouncement",{optionCount:Qe});Zl(Be)}ye.current=Qe,Ne.current=t.isOpen});let He=T.useRef(t.selectedKey);return T.useEffect(()=>{if(up()&&t.isFocused&&t.selectedItem&&t.selectedKey!==He.current){let Ke=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Be=g.format("selectedAnnouncement",{optionText:Ke});Zl(Be)}He.current=t.selectedKey}),T.useEffect(()=>{if(t.isOpen)return DR([i.current,r.current].filter(Ke=>Ke!=null))},[t.isOpen,i,r]),{labelProps:ae,buttonProps:{...b,...U,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:K,onPressStart:ne,isDisabled:h||d},inputProps:hn(W,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":se?TR(t,se.key):void 0,onTouchEnd:de,autoCorrect:"off",spellCheck:"false"}),listBoxProps:hn($,N,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:De,errorMessageProps:q,isInvalid:j,validationErrors:M,validationDetails:ue}}var pM={};pM={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 mM={};mM={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 gM={};gM={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 vM={};vM={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 yM={};yM={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var bM={};bM={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 xM={};xM={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 $M={};$M={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 wM={};wM={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 CM={};CM={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 SM={};SM={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 EM={};EM={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 DM={};DM={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 AM={};AM={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 TM={};TM={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 PM={};PM={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 _M={};_M={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 RM={};RM={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 MM={};MM={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 FM={};FM={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 kM={};kM={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 OM={};OM={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 IM={};IM={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 LM={};LM={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 BM={};BM={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 VM={};VM={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 NM={};NM={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 jM={};jM={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 KM={};KM={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 UM={};UM={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 zM={};zM={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 qM={};qM={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 WM={};WM={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 HM={};HM={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var kd={};kd={"ar-AE":pM,"bg-BG":mM,"cs-CZ":gM,"da-DK":vM,"de-DE":yM,"el-GR":bM,"en-US":xM,"es-ES":$M,"et-EE":wM,"fi-FI":CM,"fr-FR":SM,"he-IL":EM,"hr-HR":DM,"hu-HU":AM,"it-IT":TM,"ja-JP":PM,"ko-KR":_M,"lt-LT":RM,"lv-LV":MM,"nb-NO":FM,"nl-NL":kM,"pl-PL":OM,"pt-BR":IM,"pt-PT":LM,"ro-RO":BM,"ru-RU":VM,"sk-SK":NM,"sl-SI":jM,"sr-SP":KM,"sv-SE":UM,"tr-TR":zM,"uk-UA":qM,"zh-CN":WM,"zh-TW":HM};function p3(e,t,n){let{direction:r}=Gr(),i=T.useMemo(()=>_m(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=bi(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:u}=Ad({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&s()},onPress(l){l.pointerType!=="mouse"&&s()}});return hn(u,{onKeyDown:o})}function HH(e){return e&&e.__esModule?e.default:e}const GM=new WeakMap,jf="__role_"+Date.now(),YM="__focusManager_"+Date.now();function ZM(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:s}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Im({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),m=T.useRef(null),{focusWithinProps:g}=Ac({...e,onFocusWithin(ae){var W;m.current=t.value,(W=e.onFocus)===null||W===void 0||W.call(e,ae)},onBlurWithin:ae=>{var W;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(W=e.onBlur)===null||W===void 0||W.call(e,ae)},onFocusWithinChange:e.onFocusChange}),b=Cs(HH(kd),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",C=t.maxGranularity==="hour"?"time":"date",A=t.value?b.format($,{[C]:t.formatValue({month:"long"})}):"",S=Ed(A),w=e[jf]==="presentation"?l["aria-describedby"]:[S["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[YM],O=T.useMemo(()=>D||_m(n),[D,n]),R=p3(t,n,e[jf]==="presentation");GM.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:w,focusManager:O});let k=T.useRef(e.autoFocus),j;e[jf]==="presentation"?j={role:"presentation"}:j=hn(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":w}),T.useEffect(()=>{k.current&&O.focusFirst(),k.current=!1},[O]),Y4(e.inputRef,t.value,t.setValue),a6({...e,focus(){O.focusFirst()}},t,e.inputRef);let M={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(M.type="text",M.hidden=!0,M.required=e.isRequired,M.onChange=()=>{});let ue=ca(e);return{labelProps:{...u,onClick:()=>{O.focusFirst()}},fieldProps:hn(ue,j,R,g,{onKeyDown(ae){e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){e.onKeyUp&&e.onKeyUp(ae)}}),inputProps:M,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:o,validationDetails:s}}function GH(e,t,n){var r;let i=ZM(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function YH(e){return e&&e.__esModule?e.default:e}function ZH(e,t,n){let r=wi(),i=wi(),o=wi(),s=Cs(YH(kd),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Im({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=p3(t,n),C=m["aria-labelledby"]||m.id,{locale:A}=Gr(),S=t.formatValue(A,{month:"long"}),w=S?s.format("selectedDateDescription",{date:S}):"",D=Ed(w),O=[D["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,R=ca(e),k=T.useMemo(()=>_m(n),[n]),{focusWithinProps:j}=Ac({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:hn(R,$,m,D,j,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":C,"aria-describedby":O,onKeyDown(M){t.isOpen||e.onKeyDown&&e.onKeyDown(M)},onKeyUp(M){t.isOpen||e.onKeyUp&&e.onKeyUp(M)}}),labelProps:{...h,onClick:()=>{k.focusFirst()}},fieldProps:{...m,id:o,[jf]:"presentation","aria-describedby":O,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[fc]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${C}`,"aria-describedby":O,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${C}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function XH(e){return e&&e.__esModule?e.default:e}function JH(){let{locale:e}=Gr(),t=z_(XH(kd),"@react-aria/datepicker");return T.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new QH(e,t)}},[e,t])}class QH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function eG(e,t,n){let r=T.useRef(""),{locale:i}=Gr(),o=JH(),{ariaLabel:s,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:d}=GM.get(t),h=e.isPlaceholder?"":e.text,m=T.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),g=ds({month:"long",timeZone:m.timeZone}),b=ds({hour:"numeric",hour12:m.hour12,timeZone:m.timeZone});if(e.type==="month"&&!e.isPlaceholder){let I=g.format(t.dateValue);h=I!==h?`${h} – ${I}`:I}else e.type==="hour"&&!e.isPlaceholder&&(h=b.format(t.dateValue));let{spinButtonProps:$}=iH({value:e.value,textValue:h,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)}}),C=T.useMemo(()=>new x5(i,{maximumFractionDigits:0}),[i]),A=()=>{if(e.text===e.placeholder&&d.focusPrevious(),C.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let I=e.text.slice(0,-1),de=C.parse(I);I=de===0?"":I,I.length===0||de===0?t.clearSegment(e.type):t.setSegment(e.type,de),r.current=I}else e.type==="dayPeriod"&&t.clearSegment(e.type)},S=I=>{if(I.key==="a"&&(aa()?I.metaKey:I.ctrlKey)&&I.preventDefault(),!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey))switch(I.key){case"Backspace":case"Delete":I.preventDefault(),I.stopPropagation(),A();break}},{startsWith:w}=w5({sensitivity:"base"}),D=ds({hour:"numeric",hour12:!0}),O=T.useMemo(()=>{let I=new Date;return I.setHours(0),D.formatToParts(I).find(de=>de.type==="dayPeriod").value},[D]),R=T.useMemo(()=>{let I=new Date;return I.setHours(12),D.formatToParts(I).find(de=>de.type==="dayPeriod").value},[D]),k=ds({year:"numeric",era:"narrow",timeZone:"UTC"}),j=T.useMemo(()=>{if(e.type!=="era")return[];let I=zn(new ar(1,1,1),t.calendar),de=t.calendar.getEras().map(ie=>{let Ae=I.set({year:1,month:1,day:1,era:ie}).toDate("UTC"),Ie=k.formatToParts(Ae).find(Le=>Le.type==="era").value;return{era:ie,formatted:Ie}}),se=tG(de.map(ie=>ie.formatted));if(se)for(let ie of de)ie.formatted=ie.formatted.slice(se);return de},[k,t.calendar,e.type]),M=I=>{if(t.isDisabled||t.isReadOnly)return;let de=r.current+I;switch(e.type){case"dayPeriod":if(w(O,I))t.setSegment("dayPeriod",0);else if(w(R,I))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let se=j.find(ie=>w(ie.formatted,I));se&&(t.setSegment("era",se.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!C.isValidPartialNumber(de))return;let se=C.parse(de),ie=se,Ae=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":se>11&&(ie=C.parse(I));break;case"h12":Ae=!1,se>12&&(ie=C.parse(I));break}e.value!==void 0&&e.value>=12&&se>1&&(se+=12)}else e.maxValue!==void 0&&se>e.maxValue&&(ie=C.parse(I));if(isNaN(se))return;let Pe=ie!==0||Ae;Pe&&t.setSegment(e.type,ie),e.maxValue!==void 0&&(+(se+"0")>e.maxValue||de.length>=String(e.maxValue).length)?(r.current="",Pe&&d.focusNext()):r.current=de;break}}},ue=()=>{r.current="",n.current&&Op(n.current,{containingElement:Tm(n.current)});let I=window.getSelection();I==null||I.collapse(n.current)},ae=T.useRef(typeof document<"u"?document:null);fs(ae,"selectionchange",()=>{var I;let de=window.getSelection();de!=null&&de.anchorNode&&(!((I=n.current)===null||I===void 0)&&I.contains(de==null?void 0:de.anchorNode))&&de.collapse(n.current)});let W=T.useRef("");fs(n,"beforeinput",I=>{if(n.current)switch(I.preventDefault(),I.inputType){case"deleteContentBackward":case"deleteContentForward":C.isValidPartialNumber(e.text)&&!t.isReadOnly&&A();break;case"insertCompositionText":W.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:I.data!=null&&M(I.data);break}}),fs(n,"input",I=>{let{inputType:de,data:se}=I;switch(de){case"insertCompositionText":n.current&&(n.current.textContent=W.current),se!=null&&(w(O,se)||w(R,se))&&M(se);break}}),En(()=>{let I=n.current;return()=>{document.activeElement===I&&(d.focusPrevious()||d.focusNext())}},[n,d]);let De=Sd()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},q=T.useMemo(()=>t.segments.find(I=>I.isEditable),[t.segments]);e!==q&&!t.isInvalid&&(l=void 0);let K=wi(),ne=!t.isDisabled&&!t.isReadOnly&&e.isEditable,U=e.type==="literal"?"":o.of(e.type),N=uc({"aria-label":`${U}${s?`, ${s}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:hn($,N,{id:K,...De,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:ne,suppressContentEditableWarning:ne,spellCheck:ne?"false":void 0,autoCorrect:ne?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ne?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!ne?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:S,onFocus:ue,style:{caretColor:"transparent"},onPointerDown(I){I.stopPropagation()},onMouseDown(I){I.stopPropagation()}})}}function tG(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 nG(e){return e&&e.__esModule?e.default:e}function rG(e,t,n){var r,i,o;let s=Cs(nG(kd),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Im({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=m["aria-labelledby"]||m.id,{locale:C}=Gr(),A=t.formatValue(C,{month:"long"}),S=A?s.format("selectedRangeDescription",{startDate:A.start,endDate:A.end}):"",w=Ed(S),D={"aria-label":s.format("startDate"),"aria-labelledby":$},O={"aria-label":s.format("endDate"),"aria-labelledby":$},R=wi(),k=wi(),j=p3(t,n),M=[w["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,ue=T.useMemo(()=>_m(n,{accept:N=>N.id!==R}),[n,R]),ae={[YM]:ue,[jf]:"presentation","aria-describedby":M,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},W=ca(e),{focusWithinProps:De}=Ac({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),q=T.useRef(Fu),K=T.useRef(Fu);var ne,U;return{groupProps:hn(W,j,m,w,De,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":M,onKeyDown(N){t.isOpen||e.onKeyDown&&e.onKeyDown(N)},onKeyUp(N){t.isOpen||e.onKeyUp&&e.onKeyUp(N)}}),labelProps:{...h,onClick:()=>{ue.focusFirst()}},buttonProps:{...w,id:R,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${R} ${$}`,"aria-describedby":M,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:k,"aria-labelledby":`${R} ${$}`},startFieldProps:{...D,...ae,value:(ne=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&ne!==void 0?ne:null,onChange:N=>t.setDateTime("start",N),autoFocus:e.autoFocus,name:e.startName,[fc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(N){q.current=N,t.updateValidation(zp(N,K.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...O,...ae,value:(U=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&U!==void 0?U:null,onChange:N=>t.setDateTime("end",N),name:e.endName,[fc]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(N){K.current=N,t.updateValidation(zp(q.current,N))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function iG(e,t){let{role:n="dialog"}=e,r=ac();r=e["aria-label"]?void 0:r;let i=T.useRef(!1);return T.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){tl(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),tl(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),AH(),{dialogProps:{...ca(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function Jl(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Ob(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let s=Bu(e,t,n).subtract(o);return id(e,s,t,n,r,i)}function Bu(e,t,n,r,i){let o=e;return t.years?o=Aq(e):t.months?o=_d(e):t.weeks&&(o=Qf(e,n)),id(e,o,t,n,r,i)}function Ib(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let s=Bu(e,t,n).subtract(o);return id(e,s,t,n,r,i)}function id(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let s=r3(t,Bu(ai(i),n,r));s&&(t=s)}if(o&&e.compare(o)<=0){let s=n3(t,Ib(ai(o),n,r));s&&(t=s)}return t}function Ba(e,t,n){if(t){let r=r3(e,ai(t));r&&(e=r)}if(n){let r=n3(e,ai(n));r&&(e=r)}return e}function XM(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 JM(e){let t=T.useMemo(()=>new ao(e.locale),[e.locale]),n=T.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:s,maxValue:u,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=T.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,C]=Bi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),A=T.useMemo(()=>$?zn(ai($),g):null,[$,g]),S=T.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),w=T.useMemo(()=>e.focusedValue?Ba(zn(ai(e.focusedValue),g),s,u):void 0,[e.focusedValue,g,s,u]),D=T.useMemo(()=>Ba(e.defaultFocusedValue?zn(ai(e.defaultFocusedValue),g):A||zn(Mm(S),g),s,u),[e.defaultFocusedValue,A,S,g,s,u]),[O,R]=Bi(w,D,e.onFocusChange),[k,j]=T.useState(()=>{switch(l){case"start":return Bu(O,o,r,s,u);case"end":return Ib(O,o,r,s,u);case"center":default:return Ob(O,o,r,s,u)}}),[M,ue]=T.useState(e.autoFocus||!1),ae=T.useMemo(()=>{let ie={...o};return ie.days?ie.days--:ie.days=-1,k.add(ie)},[k,o]),[W,De]=T.useState(g.identifier);if(g.identifier!==W){let ie=zn(O,g);j(Ob(ie,o,r,s,u)),R(ie),De(g.identifier)}Jl(O,s,u)?R(Ba(O,s,u)):O.compare(k)<0?j(Ib(O,o,r,s,u)):O.compare(ae)>0&&j(Bu(O,o,r,s,u));function q(ie){ie=Ba(ie,s,u),R(ie)}function K(ie){if(!e.isDisabled&&!e.isReadOnly){let Ae=ie;if(Ae===null){C(null);return}if(Ae=Ba(Ae,s,u),Ae=XM(Ae,k,d),!Ae)return;Ae=zn(Ae,($==null?void 0:$.calendar)||new ui),$&&"hour"in $?C($.set(Ae)):C(Ae)}}let ne=T.useMemo(()=>A?d&&d(A)?!0:Jl(A,s,u):!1,[A,d,s,u]),U=e.isInvalid||e.validationState==="invalid"||ne,N=U?"invalid":null,I=T.useMemo(()=>h==="visible"?o:Xv(o),[h,o]);var de,se;return{isDisabled:(de=e.isDisabled)!==null&&de!==void 0?de:!1,isReadOnly:(se=e.isReadOnly)!==null&&se!==void 0?se:!1,value:A,setValue:K,visibleRange:{start:k,end:ae},minValue:s,maxValue:u,focusedDate:O,timeZone:S,validationState:N,isValueInvalid:U,setFocusedDate(ie){q(ie),ue(!0)},focusNextDay(){q(O.add({days:1}))},focusPreviousDay(){q(O.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&q(O.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&q(O.subtract({weeks:1}))},focusNextPage(){let ie=k.add(I);R(Ba(O.add(I),s,u)),j(Bu(id(O,ie,I,r,s,u),I,r))},focusPreviousPage(){let ie=k.subtract(I);R(Ba(O.subtract(I),s,u)),j(Bu(id(O,ie,I,r,s,u),I,r))},focusSectionStart(){o.days?q(k):o.weeks?q(Qf(O,r)):(o.months||o.years)&&q(_d(O))},focusSectionEnd(){o.days?q(ae):o.weeks?q(_q(O,r)):(o.months||o.years)&&q($b(O))},focusNextSection(ie){if(!ie&&!o.days){q(O.add(Xv(o)));return}o.days?this.focusNextPage():o.weeks?q(O.add({months:1})):(o.months||o.years)&&q(O.add({years:1}))},focusPreviousSection(ie){if(!ie&&!o.days){q(O.subtract(Xv(o)));return}o.days?this.focusPreviousPage():o.weeks?q(O.subtract({months:1})):(o.months||o.years)&&q(O.subtract({years:1}))},selectFocusedDate(){d&&d(O)||K(O)},selectDate(ie){K(ie)},isFocused:M,setFocused:ue,isInvalid(ie){return Jl(ie,s,u)},isSelected(ie){return A!=null&&br(ie,A)&&!this.isCellDisabled(ie)&&!this.isCellUnavailable(ie)},isCellFocused(ie){return M&&O&&br(ie,O)},isCellDisabled(ie){return e.isDisabled||ie.compare(k)<0||ie.compare(ae)>0||this.isInvalid(ie)},isCellUnavailable(ie){return e.isDateUnavailable?e.isDateUnavailable(ie):!1},isPreviousVisibleRangeInvalid(){let ie=k.subtract({days:1});return br(ie,k)||this.isInvalid(ie)},isNextVisibleRangeInvalid(){let ie=ae.add({days:1});return br(ie,ae)||this.isInvalid(ie)},getDatesInWeek(ie,Ae=k){let Pe=Ae.add({weeks:ie}),Ie=[];Pe=Qf(Pe,r,m);let Le=t3(Pe,r,m);for(let Je=0;Je<Le;Je++)Ie.push(null);for(;Ie.length<7;){Ie.push(Pe);let Je=Pe.add({days:1});if(br(Pe,Je))break;Pe=Je}for(;Ie.length<7;)Ie.push(null);return Ie}}}function Xv(e){let t={...e};for(let n in e)t[n]=1;return t}function oG(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:s={months:1},minValue:u,maxValue:l,...d}=e,[h,m]=Bi(t,n||null,r),[g,b]=T.useState(null),$="center";if(h&&h.start&&h.end){let I=Ob(ai(h.start),s,o,u,l).add(s).subtract({days:1});h.end.compare(I)>0&&($="start")}let C=T.useRef(null),[A,S]=T.useState(null),w=T.useMemo(()=>r3(u,A==null?void 0:A.start),[u,A]),D=T.useMemo(()=>n3(l,A==null?void 0:A.end),[l,A]),O=JM({...d,value:h&&h.start,createCalendar:i,locale:o,visibleDuration:s,minValue:w,maxValue:D,selectionAlignment:$}),R=N=>{if(N&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const I=kS(N,O,-1),de=kS(N,O,1);C.current={start:I,end:de},S(C.current)}else C.current=null,S(null)},[k,j]=T.useState(O.visibleRange);(!xb(O.visibleRange.start,k.start)||!xb(O.visibleRange.end,k.end))&&(R(g),j(O.visibleRange));let M=N=>{N?(b(N),R(N)):(b(null),R(null))},ue=g?Jv(g,O.focusedDate):h&&Jv(h.start,h.end),ae=N=>{if(e.isReadOnly)return;const I=Ba(N,w,D),de=XM(I,O.visibleRange.start,e.isDateUnavailable);if(de)if(!g)M(de);else{let se=Jv(g,de);se&&m({start:FS(se.start,h==null?void 0:h.start),end:FS(se.end,h==null?void 0:h.end)}),M(null)}},[W,De]=T.useState(!1),{isDateUnavailable:q}=e,K=T.useMemo(()=>!h||g?!1:q&&(q(h.start)||q(h.end))?!0:Jl(h.start,u,l)||Jl(h.end,u,l),[q,h,g,u,l]),ne=e.isInvalid||e.validationState==="invalid"||K;return{...O,value:h,setValue:m,anchorDate:g,setAnchorDate:M,highlightedRange:ue,validationState:ne?"invalid":null,isValueInvalid:ne,selectFocusedDate(){ae(O.focusedDate)},selectDate:ae,highlightDate(N){g&&O.setFocusedDate(N)},isSelected(N){return!!(ue&&N.compare(ue.start)>=0&&N.compare(ue.end)<=0&&!O.isCellDisabled(N)&&!O.isCellUnavailable(N))},isInvalid(N){var I,de;return O.isInvalid(N)||Jl(N,(I=C.current)===null||I===void 0?void 0:I.start,(de=C.current)===null||de===void 0?void 0:de.end)},isDragging:W,setDragging:De}}function Jv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:ai(e),end:ai(t)})}function FS(e,t){return e=zn(e,(t==null?void 0:t.calendar)||new ui),t&&"hour"in t?t.set(e):e}function kS(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 Lb{*[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=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let u of s.childNodes)n(u)};for(let s of t)n(s);let r=null,i=0;for(let[s,u]of this.keyMap)r?(r.nextKey=s,u.prevKey=r.key):(this.firstKey=s,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class Ro extends Set{constructor(t,n,r){super(t),t instanceof Ro?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function sG(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function aG(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,s=T.useRef(!1),[,u]=T.useState(!1),l=T.useRef(null),d=T.useRef(null),[,h]=T.useState(null),m=T.useMemo(()=>OS(e.selectedKeys),[e.selectedKeys]),g=T.useMemo(()=>OS(e.defaultSelectedKeys,new Ro),[e.defaultSelectedKeys]),[b,$]=Bi(m,g,e.onSelectionChange),C=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[A,S]=T.useState(i);i==="replace"&&A==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let w=T.useRef(i);return T.useEffect(()=>{i!==w.current&&(S(i),w.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:A,setSelectionBehavior:S,get isFocused(){return s.current},setFocused(D){s.current=D,u(D)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(D,O="first"){l.current=D,d.current=O,h(D)},selectedKeys:b,setSelectedKeys(D){(r||!sG(D,b))&&$(D)},disabledKeys:C,disabledBehavior:o}}function OS(e,t){return e?e==="all"?"all":new Ro(e):t}class uG{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Zv(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&Zv(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Ro([n],n,n);else{let s=this.state.selectedKeys;var i;let u=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new Ro(s,u,n);var o;for(let l of this.getKeyRange(u,(o=s.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Zv(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let s=this.collection.getItem(o);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Ro(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 Ro([n],n,n):new Ro;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Ro;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 s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&t.push(r);var o;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((o=(i=NH(Bm(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Ro)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function lG(e){let{filter:t,layoutDelegate:n}=e,r=aG(e),i=T.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=T.useCallback(h=>t?new Lb(t(h)):new Lb(h),[t]),s=T.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=VH(e,o,s),l=T.useMemo(()=>new uG(u,r,{layoutDelegate:n}),[u,r,n]);const d=T.useRef(null);return T.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const S=d.current.getItem(r.focusedKey),w=[...d.current.getKeys()].map(M=>{const ue=d.current.getItem(M);return(ue==null?void 0:ue.type)==="item"?ue:null}).filter(M=>M!==null),D=[...u.getKeys()].map(M=>{const ue=u.getItem(M);return(ue==null?void 0:ue.type)==="item"?ue:null}).filter(M=>M!==null);var h,m;const O=((h=w==null?void 0:w.length)!==null&&h!==void 0?h:0)-((m=D==null?void 0:D.length)!==null&&m!==void 0?m:0);var g,b,$;let R=Math.min(O>1?Math.max(((g=S==null?void 0:S.index)!==null&&g!==void 0?g:0)-O+1,0):(b=S==null?void 0:S.index)!==null&&b!==void 0?b:0,(($=D==null?void 0:D.length)!==null&&$!==void 0?$:0)-1),k=null,j=!1;for(;R>=0;){if(!l.isDisabled(D[R].key)){k=D[R];break}if(R<D.length-1&&!j)R++;else{j=!0;var C,A;R>((C=S==null?void 0:S.index)!==null&&C!==void 0?C:0)&&(R=(A=S==null?void 0:S.index)!==null&&A!==void 0?A:0),R--}}r.setFocusedKey(k?k.key:null)}d.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function cG(e){var t;let[n,r]=Bi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=T.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:s,selectionManager:u}=lG({...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?o.getItem(n):null;return{collection:o,disabledKeys:s,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function m3(e){let[t,n]=Bi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=T.useCallback(()=>{n(!0)},[n]),i=T.useCallback(()=>{n(!1)},[n]),o=T.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function fG(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:s=!0}=e,[u,l]=T.useState(!1),[d,h]=T.useState(!1),[m,g]=T.useState(null),b=Se=>{e.onSelectionChange&&e.onSelectionChange(Se),Se===S&&(Ie(),ie())};var $;let{collection:C,selectionManager:A,selectedKey:S,setSelectedKey:w,selectedItem:D,disabledKeys:O}=cG({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),R=e.defaultInputValue;if(R==null){var k,j;S==null?R="":R=(j=(k=C.getItem(S))===null||k===void 0?void 0:k.textValue)!==null&&j!==void 0?j:""}let[M,ue]=Bi(e.inputValue,R,e.onInputChange),ae=C,W=T.useMemo(()=>e.items!=null||!n?C:dG(C,M,n),[C,M,n,e.items]),[De,q]=T.useState(W),K=T.useRef("focus"),U=m3({...e,onOpenChange:Se=>{e.onOpenChange&&e.onOpenChange(Se,Se?K.current:void 0),A.setFocused(Se),Se||A.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),N=(Se=null,Re)=>{let Ge=Re==="manual"||Re==="focus"&&r==="focus";(i||W.size>0||Ge&&ae.size>0||e.items)&&(Ge&&!U.isOpen&&e.items===void 0&&l(!0),K.current=Re,g(Se),U.open())},I=(Se=null,Re)=>{let Ge=Re==="manual"||Re==="focus"&&r==="focus";!(i||W.size>0||Ge&&ae.size>0||e.items)&&!U.isOpen||(Ge&&!U.isOpen&&e.items===void 0&&l(!0),U.isOpen||(K.current=Re),se(Se))},de=T.useCallback(()=>{q(u?ae:W)},[u,ae,W]),se=T.useCallback((Se=null)=>{U.isOpen&&de(),g(Se),U.toggle()},[U,de]),ie=T.useCallback(()=>{U.isOpen&&(de(),U.close())},[U,de]),[Ae,Pe]=T.useState(M),Ie=()=>{var Se,Re;let Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";Pe(Ge),ue(Ge)};var Le,Je;let Qe=T.useRef((Je=(Le=e.selectedKey)!==null&&Le!==void 0?Le:e.defaultSelectedKey)!==null&&Je!==void 0?Je:null);var ye;let Ne=T.useRef(S!=null&&(ye=(t=C.getItem(S))===null||t===void 0?void 0:t.textValue)!==null&&ye!==void 0?ye:"");T.useEffect(()=>{var Se;d&&(W.size>0||i)&&!U.isOpen&&M!==Ae&&r!=="manual"&&N(null,"input"),!u&&!i&&U.isOpen&&W.size===0&&ie(),S!=null&&S!==Qe.current&&ie(),M!==Ae&&(A.setFocusedKey(null),l(!1),M===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&w(null)),S!==Qe.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Ie():Ae!==M&&Pe(M);var Re;let Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";!d&&S!=null&&e.inputValue===void 0&&S===Qe.current&&Ne.current!==Ge&&(Pe(Ge),ue(Ge)),Qe.current=S,Ne.current=Ge});let He=Fd({...e,value:T.useMemo(()=>({inputValue:M,selectedKey:S}),[M,S])}),Ke=()=>{o&&S==null?Be():st()},Be=()=>{Qe.current=null,w(null),ie()},st=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Se,Re;(Se=e.onSelectionChange)===null||Se===void 0||Se.call(e,S);var Ge;let rt=S!=null&&(Ge=(Re=C.getItem(S))===null||Re===void 0?void 0:Re.textValue)!==null&&Ge!==void 0?Ge:"";Pe(rt),ie()}else Ie(),ie()};const Dt=()=>{if(o){var Se,Re;const Ge=S!=null&&(Re=(Se=C.getItem(S))===null||Se===void 0?void 0:Se.textValue)!==null&&Re!==void 0?Re:"";M===Ge?st():Be()}else st()};let ln=()=>{U.isOpen&&A.focusedKey!=null?S===A.focusedKey?st():w(A.focusedKey):Dt()},At=T.useRef(M),It=Se=>{Se?(At.current=M,r==="focus"&&!e.isReadOnly&&N(null,"focus")):(s&&Dt(),M!==At.current&&He.commitValidation()),h(Se)},we=T.useMemo(()=>U.isOpen?u?ae:W:De,[U.isOpen,ae,W,u,De]);return{...He,...U,focusStrategy:m,toggle:I,open:N,close:Dt,selectionManager:A,selectedKey:S,setSelectedKey:w,disabledKeys:O,isFocused:d,setFocused:It,selectedItem:D,collection:we,inputValue:M,setInputValue:ue,commit:ln,revert:Ke}}function dG(e,t,n){return new Lb(QM(e,e,t,n))}function QM(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let s=QM(e,Bm(o,e),n,r);[...s].some(u=>u.type==="item")&&i.push({...o,childNodes:s})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var eF={};eF={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var tF={};tF={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var nF={};nF={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 rF={};rF={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 iF={};iF={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var oF={};oF={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var sF={};sF={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 aF={};aF={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 uF={};uF={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 lF={};lF={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 cF={};cF={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 fF={};fF={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var dF={};dF={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 hF={};hF={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 pF={};pF={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 mF={};mF={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var gF={};gF={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var vF={};vF={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 yF={};yF={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 bF={};bF={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 xF={};xF={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 $F={};$F={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 wF={};wF={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 CF={};CF={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 SF={};SF={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 EF={};EF={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var DF={};DF={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 AF={};AF={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 TF={};TF={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 PF={};PF={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 _F={};_F={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 RF={};RF={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var MF={};MF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var FF={};FF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var kF={};kF={"ar-AE":eF,"bg-BG":tF,"cs-CZ":nF,"da-DK":rF,"de-DE":iF,"el-GR":oF,"en-US":sF,"es-ES":aF,"et-EE":uF,"fi-FI":lF,"fr-FR":cF,"he-IL":fF,"hr-HR":dF,"hu-HU":hF,"it-IT":pF,"ja-JP":mF,"ko-KR":gF,"lt-LT":vF,"lv-LV":yF,"nb-NO":bF,"nl-NL":xF,"pl-PL":$F,"pt-BR":wF,"pt-PT":CF,"ro-RO":SF,"ru-RU":EF,"sk-SK":DF,"sl-SI":AF,"sr-SP":TF,"sv-SE":PF,"tr-TR":_F,"uk-UA":RF,"zh-CN":MF,"zh-TW":FF};function hG(e){return e&&e.__esModule?e.default:e}const OF=new ou(hG(kF));function IF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Wp(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=o||s||u,d=[];if(l){let h=IF(),m=ou.getGlobalDictionaryForPackage("@react-stately/datepicker")||OF,g=new U_(h,m),b=new ao(h,ra({},i)),$=b.resolvedOptions().timeZone;s&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),o&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),u&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function pG(e,t,n,r,i){var o;let s=Wp((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let l=Wp((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=zp(s,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=ou.getGlobalDictionaryForPackage("@react-stately/datepicker")||OF;d=zp(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",IF())],validationDetails:{...km,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const mG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},gG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ra(e,t){e={...t.shouldForceLeadingZeros?gG:mG,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let s=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");s<0&&(s=0);let u=i.indexOf(r);if(u<0&&(u=2),s>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(s,u+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&s===0&&(l.era="short"),l}function Il(e){return e&&"hour"in e?e:new Rd}function LF(e,t){if(e===null)return null;if(e)return zn(e,t)}function mf(e,t,n,r){if(e)return LF(e,n);let i=zn(H_(r??Pd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?ai(i):r?i:Lo(i)}function g3(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=T.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}function vG(e){let t=m3(e),[n,r]=Bi(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,s]=g3(i,e.granularity),u=n!=null?n.toDate(s??"UTC"):null,l=o==="hour"||o==="minute"||o==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=T.useState(null),[b,$]=T.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let C=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",A=T.useMemo(()=>({granularity:o,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:C}),[o,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,C]),{minValue:S,maxValue:w,isDateUnavailable:D}=e,O=T.useMemo(()=>Wp(n,S,w,D,A),[n,S,w,D,A]),R=Fd({...e,value:n,builtinValidation:O}),k=R.displayValidation.isInvalid,j=e.validationState||(k?"invalid":null),M=(W,De)=>{r("timeZone"in De?De.set(ai(W)):Lo(W,De)),g(null),$(null),R.commitValidation()};return{...R,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:W=>{let De=typeof h=="function"?h():h;l?b||De?M(W,b||Il(e.defaultValue||e.placeholderValue)):g(W):(r(W),R.commitValidation()),De&&t.setOpen(!1)},setTimeValue:W=>{m&&W?M(m,W):$(W)},granularity:o,hasTime:l,...t,setOpen(W){!W&&!n&&m&&l&&M(m,b||Il(e.defaultValue||e.placeholderValue)),t.setOpen(W)},validationState:j,isInvalid:k,formatValue(W,De){if(!u)return"";let q=ra(De,A);return new ao(W,q).format(u)},getDateFormatter(W,De){let q={...A,...De},K=ra({},q);return new ao(W,K)}}}const yG=new ou({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 bG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?yG.getStringForLocale(e,n):"––"}const zh={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},xG={dayperiod:"dayPeriod"};function BF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:s=!1,minValue:u,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=g3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=T.useMemo(()=>new ao(t),[t]),C=T.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var A;let[S,w]=Bi(e.value,(A=e.defaultValue)!==null&&A!==void 0?A:null,e.onChange),D=T.useMemo(()=>{var ye;return(ye=LF(S,C))!==null&&ye!==void 0?ye:null},[S,C]),[O,R]=T.useState(()=>mf(e.placeholderValue,m,C,g)),k=D||O,j=C.identifier==="gregory"&&k.era==="BC",M=T.useMemo(()=>{var ye;return{granularity:m,maxGranularity:(ye=e.maxGranularity)!==null&&ye!==void 0?ye:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:j,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,j]),ue=T.useMemo(()=>ra({},M),[M]),ae=T.useMemo(()=>new ao(t,ue),[t,ue]),W=T.useMemo(()=>ae.resolvedOptions(),[ae]),De=T.useMemo(()=>ae.formatToParts(new Date).filter(ye=>zh[ye.type]).reduce((ye,Ne)=>(ye[Ne.type]=!0,ye),{}),[ae]),[q,K]=T.useState(()=>e.value||e.defaultValue?{...De}:{}),ne=T.useRef(null),U=T.useRef(C.identifier);T.useEffect(()=>{C.identifier!==U.current&&(U.current=C.identifier,R(ye=>Object.keys(q).length>0?zn(ye,C):mf(e.placeholderValue,m,C,g)))},[C,m,q,g,e.placeholderValue]),S&&Object.keys(q).length<Object.keys(De).length&&(q={...De},K(q)),S==null&&Object.keys(q).length===Object.keys(De).length&&(q={},K(q),R(mf(e.placeholderValue,m,C,g)));let N=D&&Object.keys(q).length>=Object.keys(De).length?D:O,I=ye=>{if(e.isDisabled||e.isReadOnly)return;let Ne=Object.keys(q),He=Object.keys(De);ye==null?(w(null),R(mf(e.placeholderValue,m,C,g)),K({})):Ne.length>=He.length||Ne.length===He.length-1&&De.dayPeriod&&!q.dayPeriod&&ne.current!=="dayPeriod"?(ye=zn(ye,(h==null?void 0:h.calendar)||new ui),w(ye)):R(ye),ne.current=null},de=T.useMemo(()=>N.toDate(b),[N,b]),se=T.useMemo(()=>ae.formatToParts(de).map(ye=>{let Ne=zh[ye.type];ye.type==="era"&&C.getEras().length===1&&(Ne=!1);let He=zh[ye.type]&&!q[ye.type],Ke=zh[ye.type]?bG(ye.type,ye.value,t):null;return{type:xG[ye.type]||ye.type,text:He?Ke:ye.value,...$G(N,ye.type,W),isPlaceholder:He,placeholder:Ke,isEditable:Ne}}),[de,q,ae,W,N,C,t]);De.era&&q.year&&!q.era?(q.era=!0,K({...q})):!De.era&&q.era&&(delete q.era,K({...q}));let ie=ye=>{q[ye]=!0,ye==="year"&&De.era&&(q.era=!0),K({...q})},Ae=(ye,Ne)=>{if(q[ye])I(wG(N,ye,Ne,W));else{ie(ye);let He=Object.keys(q),Ke=Object.keys(De);(He.length>=Ke.length||He.length===Ke.length-1&&De.dayPeriod&&!q.dayPeriod)&&I(N)}},Pe=T.useMemo(()=>Wp(S,u,l,d,M),[S,u,l,d,M]),Ie=Fd({...e,value:S,builtinValidation:Pe}),Le=Ie.displayValidation.isInvalid,Je=e.validationState||(Le?"invalid":null);var Qe;return{...Ie,value:D,dateValue:de,calendar:C,setValue:I,segments:se,dateFormatter:ae,validationState:Je,isInvalid:Le,granularity:m,maxGranularity:(Qe=e.maxGranularity)!==null&&Qe!==void 0?Qe:"year",isDisabled:i,isReadOnly:o,isRequired:s,increment(ye){Ae(ye,1)},decrement(ye){Ae(ye,-1)},incrementPage(ye){Ae(ye,IS[ye]||1)},decrementPage(ye){Ae(ye,-(IS[ye]||1))},setSegment(ye,Ne){ie(ye),I(CG(N,ye,Ne,W))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(q),Ne=Object.keys(De);ye.length===Ne.length-1&&De.dayPeriod&&!q.dayPeriod&&(q={...De},K(q),I(N.copy()))},clearSegment(ye){delete q[ye],ne.current=ye,K({...q});let Ne=mf(e.placeholderValue,m,C,g),He=N;if(ye==="dayPeriod"&&"hour"in N&&"hour"in Ne){let Ke=N.hour>=12,Be=Ne.hour>=12;Ke&&!Be?He=N.set({hour:N.hour-12}):!Ke&&Be&&(He=N.set({hour:N.hour+12}))}else ye in N&&(He=N.set({[ye]:Ne[ye]}));w(null),I(He)},formatValue(ye){if(!D)return"";let Ne=ra(ye,M);return new ao(t,Ne).format(de)},getDateFormatter(ye,Ne){let He={...M,...Ne},Ke=ra({},He);return new ao(ye,Ke)}}}function $G(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:Tq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:Pq(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 wG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function CG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function SG(e){var t,n;let r=m3(e),[i,o]=Bi(e.value,e.defaultValue||null,e.onChange),[s,u]=T.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},u(s));let l=i||s,d=U=>{u(U||{start:null,end:null}),Au(U)?o(U):o(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=g3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var $;let C=($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:!0,[A,S]=T.useState(null),[w,D]=T.useState(null);l&&Au(l)&&(A=l,"hour"in l.start&&(w=l));let O=(U,N)=>{d({start:"timeZone"in N.start?N.start.set(ai(U.start)):Lo(U.start,N.start),end:"timeZone"in N.end?N.end.set(ai(U.end)):Lo(U.end,N.end)}),S(null),D(null),q.commitValidation()},R=U=>{let N=typeof C=="function"?C():C;b?Au(U)&&(w!=null&&w.start)&&(w!=null&&w.end)?O(U,{start:(w==null?void 0:w.start)||Il(e.placeholderValue),end:(w==null?void 0:w.end)||Il(e.placeholderValue)}):S(U):Au(U)?(d(U),q.commitValidation()):S(U),N&&r.setOpen(!1)},k=U=>{Au(A)&&Au(U)?O(A,U):D(U)},j=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",M=T.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:j}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,j]),{minValue:ue,maxValue:ae,isDateUnavailable:W}=e,De=T.useMemo(()=>pG(l,ue,ae,W,M),[l,ue,ae,W,M]),q=Fd({...e,value:i,name:T.useMemo(()=>[e.startName,e.endName].filter(U=>U!=null),[e.startName,e.endName]),builtinValidation:De}),K=q.displayValidation.isInvalid,ne=e.validationState||(K?"invalid":null);return{...q,value:l,setValue:d,dateRange:A,timeRange:w,granularity:m,hasTime:b,setDate(U,N){var I,de;R(U==="start"?{start:N,end:(I=A==null?void 0:A.end)!==null&&I!==void 0?I:null}:{start:(de=A==null?void 0:A.start)!==null&&de!==void 0?de:null,end:N})},setTime(U,N){var I,de;k(U==="start"?{start:N,end:(I=w==null?void 0:w.end)!==null&&I!==void 0?I:null}:{start:(de=w==null?void 0:w.start)!==null&&de!==void 0?de:null,end:N})},setDateTime(U,N){var I,de;d(U==="start"?{start:N,end:(I=l==null?void 0:l.end)!==null&&I!==void 0?I:null}:{start:(de=l==null?void 0:l.start)!==null&&de!==void 0?de:null,end:N})},setDateRange:R,setTimeRange:k,...r,setOpen(U){!U&&!(l!=null&&l.start&&(l!=null&&l.end))&&Au(A)&&b&&O(A,{start:(w==null?void 0:w.start)||Il(e.placeholderValue),end:(w==null?void 0:w.end)||Il(e.placeholderValue)}),r.setOpen(U)},validationState:ne,isInvalid:K,formatValue(U,N){if(!l||!l.start||!l.end)return null;let I="timeZone"in l.start?l.start.timeZone:void 0,de=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),se="timeZone"in l.end?l.end.timeZone:void 0,ie=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),Ae=ra(N,{granularity:de,timeZone:I,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Pe=l.start.toDate(I||"UTC"),Ie=l.end.toDate(se||"UTC"),Le=new ao(U,Ae),Je;if(I===se&&de===ie&&l.start.compare(l.end)!==0){try{let Qe=Le.formatRangeToParts(Pe,Ie),ye=-1;for(let Ke=0;Ke<Qe.length;Ke++){let Be=Qe[Ke];if(Be.source==="shared"&&Be.type==="literal")ye=Ke;else if(Be.source==="endRange")break}let Ne="",He="";for(let Ke=0;Ke<Qe.length;Ke++)Ke<ye?Ne+=Qe[Ke].value:Ke>ye&&(He+=Qe[Ke].value);return{start:Ne,end:He}}catch{}Je=Le}else{let Qe=ra(N,{granularity:ie,timeZone:se,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Je=new ao(U,Qe)}return{start:Le.format(Pe),end:Je.format(Ie)}},getDateFormatter(U,N){let I={...M,...N},de=ra({},I);return new ao(U,de)}}}function Au(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function EG(e){let{placeholderValue:t=new Rd,minValue:n,maxValue:r,granularity:i,validate:o}=e;var s;let[u,l]=Bi(e.value,(s=e.defaultValue)!==null&&s!==void 0?s:null,e.onChange),d=u||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=T.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||m)&&t?Q_(gf(t),D||m):gf(t)},[t,d,m]),b=T.useMemo(()=>gf(n,h),[n,h]),$=T.useMemo(()=>gf(r,h),[r,h]),C=T.useMemo(()=>u&&"day"in u?ZC(u):u,[u]),A=T.useMemo(()=>u==null?null:gf(u),[u]);return{...BF({...e,value:A,defaultValue:void 0,minValue:b,maxValue:$,onChange:D=>{l(h||m?D:D&&ZC(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new ui,validate:T.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:C}}function gf(e,t=Mm(Pd())){return e?"day"in e?e:Lo(t,e):null}var hp={exports:{}},DG=hp.exports,LS;function AG(){return LS||(LS=1,function(e,t){(function(n,r){e.exports=r()})(DG,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",$="date",C="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={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(K){var ne=["th","st","nd","rd"],U=K%100;return"["+K+(ne[(U-20)%10]||ne[U]||ne[0])+"]"}},D=function(K,ne,U){var N=String(K);return!N||N.length>=ne?K:""+Array(ne+1-N.length).join(U)+K},O={s:D,z:function(K){var ne=-K.utcOffset(),U=Math.abs(ne),N=Math.floor(U/60),I=U%60;return(ne<=0?"+":"-")+D(N,2,"0")+":"+D(I,2,"0")},m:function K(ne,U){if(ne.date()<U.date())return-K(U,ne);var N=12*(U.year()-ne.year())+(U.month()-ne.month()),I=ne.clone().add(N,m),de=U-I<0,se=ne.clone().add(N+(de?-1:1),m);return+(-(N+(U-I)/(de?I-se:se-I))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:m,y:b,w:h,d,D:$,h:l,m:u,s,ms:o,Q:g}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},R="en",k={};k[R]=w;var j="$isDayjsObject",M=function(K){return K instanceof De||!(!K||!K[j])},ue=function K(ne,U,N){var I;if(!ne)return R;if(typeof ne=="string"){var de=ne.toLowerCase();k[de]&&(I=de),U&&(k[de]=U,I=de);var se=ne.split("-");if(!I&&se.length>1)return K(se[0])}else{var ie=ne.name;k[ie]=ne,I=ie}return!N&&I&&(R=I),I||!N&&R},ae=function(K,ne){if(M(K))return K.clone();var U=typeof ne=="object"?ne:{};return U.date=K,U.args=arguments,new De(U)},W=O;W.l=ue,W.i=M,W.w=function(K,ne){return ae(K,{locale:ne.$L,utc:ne.$u,x:ne.$x,$offset:ne.$offset})};var De=function(){function K(U){this.$L=ue(U.locale,null,!0),this.parse(U),this.$x=this.$x||U.x||{},this[j]=!0}var ne=K.prototype;return ne.parse=function(U){this.$d=function(N){var I=N.date,de=N.utc;if(I===null)return new Date(NaN);if(W.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var se=I.match(A);if(se){var ie=se[2]-1||0,Ae=(se[7]||"0").substring(0,3);return de?new Date(Date.UTC(se[1],ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Ae)):new Date(se[1],ie,se[3]||1,se[4]||0,se[5]||0,se[6]||0,Ae)}}return new Date(I)}(U),this.init()},ne.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()},ne.$utils=function(){return W},ne.isValid=function(){return this.$d.toString()!==C},ne.isSame=function(U,N){var I=ae(U);return this.startOf(N)<=I&&I<=this.endOf(N)},ne.isAfter=function(U,N){return ae(U)<this.startOf(N)},ne.isBefore=function(U,N){return this.endOf(N)<ae(U)},ne.$g=function(U,N,I){return W.u(U)?this[N]:this.set(I,U)},ne.unix=function(){return Math.floor(this.valueOf()/1e3)},ne.valueOf=function(){return this.$d.getTime()},ne.startOf=function(U,N){var I=this,de=!!W.u(N)||N,se=W.p(U),ie=function(Ne,He){var Ke=W.w(I.$u?Date.UTC(I.$y,He,Ne):new Date(I.$y,He,Ne),I);return de?Ke:Ke.endOf(d)},Ae=function(Ne,He){return W.w(I.toDate()[Ne].apply(I.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(He)),I)},Pe=this.$W,Ie=this.$M,Le=this.$D,Je="set"+(this.$u?"UTC":"");switch(se){case b:return de?ie(1,0):ie(31,11);case m:return de?ie(1,Ie):ie(0,Ie+1);case h:var Qe=this.$locale().weekStart||0,ye=(Pe<Qe?Pe+7:Pe)-Qe;return ie(de?Le-ye:Le+(6-ye),Ie);case d:case $:return Ae(Je+"Hours",0);case l:return Ae(Je+"Minutes",1);case u:return Ae(Je+"Seconds",2);case s:return Ae(Je+"Milliseconds",3);default:return this.clone()}},ne.endOf=function(U){return this.startOf(U,!1)},ne.$set=function(U,N){var I,de=W.p(U),se="set"+(this.$u?"UTC":""),ie=(I={},I[d]=se+"Date",I[$]=se+"Date",I[m]=se+"Month",I[b]=se+"FullYear",I[l]=se+"Hours",I[u]=se+"Minutes",I[s]=se+"Seconds",I[o]=se+"Milliseconds",I)[de],Ae=de===d?this.$D+(N-this.$W):N;if(de===m||de===b){var Pe=this.clone().set($,1);Pe.$d[ie](Ae),Pe.init(),this.$d=Pe.set($,Math.min(this.$D,Pe.daysInMonth())).$d}else ie&&this.$d[ie](Ae);return this.init(),this},ne.set=function(U,N){return this.clone().$set(U,N)},ne.get=function(U){return this[W.p(U)]()},ne.add=function(U,N){var I,de=this;U=Number(U);var se=W.p(N),ie=function(Ie){var Le=ae(de);return W.w(Le.date(Le.date()+Math.round(Ie*U)),de)};if(se===m)return this.set(m,this.$M+U);if(se===b)return this.set(b,this.$y+U);if(se===d)return ie(1);if(se===h)return ie(7);var Ae=(I={},I[u]=r,I[l]=i,I[s]=n,I)[se]||1,Pe=this.$d.getTime()+U*Ae;return W.w(Pe,this)},ne.subtract=function(U,N){return this.add(-1*U,N)},ne.format=function(U){var N=this,I=this.$locale();if(!this.isValid())return I.invalidDate||C;var de=U||"YYYY-MM-DDTHH:mm:ssZ",se=W.z(this),ie=this.$H,Ae=this.$m,Pe=this.$M,Ie=I.weekdays,Le=I.months,Je=I.meridiem,Qe=function(He,Ke,Be,st){return He&&(He[Ke]||He(N,de))||Be[Ke].slice(0,st)},ye=function(He){return W.s(ie%12||12,He,"0")},Ne=Je||function(He,Ke,Be){var st=He<12?"AM":"PM";return Be?st.toLowerCase():st};return de.replace(S,function(He,Ke){return Ke||function(Be){switch(Be){case"YY":return String(N.$y).slice(-2);case"YYYY":return W.s(N.$y,4,"0");case"M":return Pe+1;case"MM":return W.s(Pe+1,2,"0");case"MMM":return Qe(I.monthsShort,Pe,Le,3);case"MMMM":return Qe(Le,Pe);case"D":return N.$D;case"DD":return W.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Qe(I.weekdaysMin,N.$W,Ie,2);case"ddd":return Qe(I.weekdaysShort,N.$W,Ie,3);case"dddd":return Ie[N.$W];case"H":return String(ie);case"HH":return W.s(ie,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return Ne(ie,Ae,!0);case"A":return Ne(ie,Ae,!1);case"m":return String(Ae);case"mm":return W.s(Ae,2,"0");case"s":return String(N.$s);case"ss":return W.s(N.$s,2,"0");case"SSS":return W.s(N.$ms,3,"0");case"Z":return se}return null}(He)||se.replace(":","")})},ne.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ne.diff=function(U,N,I){var de,se=this,ie=W.p(N),Ae=ae(U),Pe=(Ae.utcOffset()-this.utcOffset())*r,Ie=this-Ae,Le=function(){return W.m(se,Ae)};switch(ie){case b:de=Le()/12;break;case m:de=Le();break;case g:de=Le()/3;break;case h:de=(Ie-Pe)/6048e5;break;case d:de=(Ie-Pe)/864e5;break;case l:de=Ie/i;break;case u:de=Ie/r;break;case s:de=Ie/n;break;default:de=Ie}return I?de:W.a(de)},ne.daysInMonth=function(){return this.endOf(m).$D},ne.$locale=function(){return k[this.$L]},ne.locale=function(U,N){if(!U)return this.$L;var I=this.clone(),de=ue(U,N,!0);return de&&(I.$L=de),I},ne.clone=function(){return W.w(this.$d,this)},ne.toDate=function(){return new Date(this.valueOf())},ne.toJSON=function(){return this.isValid()?this.toISOString():null},ne.toISOString=function(){return this.$d.toISOString()},ne.toString=function(){return this.$d.toUTCString()},K}(),q=De.prototype;return ae.prototype=q,[["$ms",o],["$s",s],["$m",u],["$H",l],["$W",d],["$M",m],["$y",b],["$D",$]].forEach(function(K){q[K[1]]=function(ne){return this.$g(ne,K[0],K[1])}}),ae.extend=function(K,ne){return K.$i||(K(ne,De,ae),K.$i=!0),ae},ae.locale=ue,ae.isDayjs=M,ae.unix=function(K){return ae(1e3*K)},ae.en=k[R],ae.Ls=k,ae.p={},ae})}(hp)),hp.exports}var VF=AG();const TG=Bo(VF);var Qv,BS;function NF(){if(BS)return Qv;BS=1;var e=typeof so=="object"&&so&&so.Object===Object&&so;return Qv=e,Qv}var ey,VS;function da(){if(VS)return ey;VS=1;var e=NF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ey=n,ey}var ty,NS;function Vm(){if(NS)return ty;NS=1;var e=da(),t=e.Symbol;return ty=t,ty}var ny,jS;function PG(){if(jS)return ny;jS=1;var e=Vm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(s){var u=n.call(s,i),l=s[i];try{s[i]=void 0;var d=!0}catch{}var h=r.call(s);return d&&(u?s[i]=l:delete s[i]),h}return ny=o,ny}var ry,KS;function _G(){if(KS)return ry;KS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ry=n,ry}var iy,US;function Tc(){if(US)return iy;US=1;var e=Vm(),t=PG(),n=_G(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return iy=s,iy}var oy,zS;function Pc(){if(zS)return oy;zS=1;function e(t){return t!=null&&typeof t=="object"}return oy=e,oy}var sy,qS;function RG(){if(qS)return sy;qS=1;var e=Tc(),t=Pc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return sy=r,sy}var MG=RG();const FG=Bo(MG);var ol=[["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"]],kG="react-international-phone-",jF=(...e)=>e.filter(t=>!!t).join(" ").trim(),OG=(...e)=>jF(...e).split(" ").map(t=>`${kG}${t}`).join(" "),Wr=({addPrefix:e,rawClassNames:t})=>jF(OG(...e),...t),IG=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),s=e.slice(r),u=o,l=0;for(let d of t.split("")){if(l>=s.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=s[l],l+=1):u+=d}return u},Fl=e=>e?/^\d+$/.test(e):!1,Nm=e=>e.replace(/\D/g,""),LG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,s=r.bottom-i.bottom;o>=0&&s>=0||(Math.abs(o)<Math.abs(s)?e.scrollTop+=o:e.scrollTop-=s),e.style.display=n},BG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),VG=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=Nm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let s=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:u,phoneRightSide:l}=s();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=IG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${l}`)},NG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let s=null;for(let h=r-1;h>=0;h-=1)if(Fl(t[h])){s=h;break}if(s===null){for(let h=0;h<t.length;h+=1)if(Fl(n[h]))return h;return t.length}let u=0;for(let h=0;h<s;h+=1)Fl(t[h])&&(u+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,Fl(n[h])&&(d+=1),!(d>=u+1));h+=1);if(o!=="backward")for(;!Fl(n[l])&&l<n.length;)l+=1;return l},pp=({phone:e,prefix:t})=>e?`${t}${Nm(e)}`:"";function Bb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:s,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${o}`)?g:`${o}${t.dialCode}${g}`);let b=h?YG({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,C=VG(g,{prefix:o,mask:HG({phone:g,country:$,defaultMask:d,disableFormatting:m}),maskChar:KF,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),A=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:pp({phone:l?`${A.dialCode}${C}`:C,prefix:o}),inputValue:C,country:A}}var jG=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},KG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=jG(b),C=!!(b!=null&&b.startsWith("insertFrom")),A=b==="insertText",S=(g==null?void 0:g.data)||void 0,w=e.target.value,D=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:pp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(A&&!Fl(S)&&w!==i)return{inputValue:r,phone:pp({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((S==null?void 0:S.length)??0),country:t};if(s&&!w.startsWith(`${i}${t.dialCode}`)&&!C){let M=w?r:`${i}${t.dialCode}${o}`;return{inputValue:M,phone:pp({phone:M,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:O,inputValue:R,country:k}=Bb({value:w,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:u,disableFormatting:h,defaultMask:d}),j=NG({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:w,phoneAfterFormatted:R,leftOffset:s?i.length+t.dialCode.length+o.length:0,deletion:$});return{phone:O,inputValue:R,cursorPosition:j,country:k}},UG=(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},zG=()=>{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}}},qG={size:20,overrideLastItemDebounceMS:-1};function WG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...qG,...t},[o,s]=T.useState(e),[u,l]=T.useState([o]),[d,h]=T.useState(0),m=zG();return[o,(g,b)=>{if(typeof g=="object"&&typeof o=="object"&&UG(g,o)||g===o)return;let $=r>0,C=m.check(),A=$&&C!==void 0?C>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!A)l(S=>[...S.slice(0,d),g]);else{let S=u.length>=n;l(w=>[...w.slice(S?1:0,d+1),g]),S||h(w=>w+1)}s(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=u[d-1];return s(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=u.length)return{success:!1};let g=u[d+1];return s(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var KF=".",Xi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ol},UF=({defaultCountry:e=Xi.defaultCountry,value:t=Xi.value,countries:n=Xi.countries,prefix:r=Xi.prefix,defaultMask:i=Xi.defaultMask,charAfterDialCode:o=Xi.charAfterDialCode,historySaveDebounceMS:s=Xi.historySaveDebounceMS,disableCountryGuess:u=Xi.disableCountryGuess,disableDialCodePrefill:l=Xi.disableDialCodePrefill,forceDialCode:d=Xi.forceDialCode,disableDialCodeAndPrefix:h=Xi.disableDialCodeAndPrefix,disableFormatting:m=Xi.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:m},C=T.useRef(null),A=b||C,S=K=>{Promise.resolve().then(()=>{var ne;typeof window>"u"||A.current!==(document==null?void 0:document.activeElement)||((ne=A.current)==null||ne.setSelectionRange(K,K))})},[{phone:w,inputValue:D,country:O},R,k,j]=WG(()=>{let K=Ll({value:e,field:"iso2",countries:n});K||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ne=K||Ll({value:"us",field:"iso2",countries:n}),{phone:U,inputValue:N,country:I}=Bb({value:t,country:ne,insertDialCodeOnEmpty:!l,...$});return S(N.length),{phone:U,inputValue:N,country:I.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:K,phone:ne,country:U})=>{if(!g)return;let N=M(U);g({phone:ne,inputValue:K,country:N})}}),M=T.useCallback(K=>Ll({value:K,field:"iso2",countries:n}),[n]),ue=T.useMemo(()=>M(O),[O,M]);T.useEffect(()=>{let K=A.current;if(!K)return;let ne=U=>{if(!U.key)return;let N=U.ctrlKey,I=U.metaKey,de=U.shiftKey;if(U.key.toLowerCase()==="z"){if(BG()){if(!I)return}else if(!N)return;de?j():k()}};return K.addEventListener("keydown",ne),()=>{K.removeEventListener("keydown",ne)}},[A,k,j]);let ae=K=>{K.preventDefault();let{phone:ne,inputValue:U,country:N,cursorPosition:I}=KG(K,{country:ue,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...$});return R({inputValue:U,phone:ne,country:N.iso2}),S(I),t},W=(K,ne={focusOnInput:!1})=>{let U=Ll({value:K,field:"iso2",countries:n});if(!U){console.error(`[react-international-phone]: can not find a country with "${K}" iso2 code`);return}let N=h?"":`${r}${U.dialCode}${o}`;R({inputValue:N,phone:`${r}${U.dialCode}`,country:U.iso2}),ne.focusOnInput&&Promise.resolve().then(()=>{var I;(I=A.current)==null||I.focus()})},[De,q]=T.useState(!1);return T.useEffect(()=>{if(!De){q(!0),t!==w&&(g==null||g({inputValue:D,phone:w,country:ue}));return}if(t===w)return;let{phone:K,inputValue:ne,country:U}=Bb({value:t,country:ue,insertDialCodeOnEmpty:!l,...$});R({phone:K,inputValue:ne,country:U.iso2})},[t]),{phone:w,inputValue:D,country:ue,setCountry:W,handlePhoneValueChange:ae,inputRef:A}},HG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${KF}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let s=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return l.test(Nm(d))});return o(s?i[s]:i.default)},Mo=e=>{let[t,n,r,i,o,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:s}},GG=e=>`Field "${e}" is not supported`,Ll=({field:e,value:t,countries:n=ol})=>{if(["priority"].includes(e))throw new Error(GG(e));let r=n.find(i=>{let o=Mo(i);return t===o[e]});if(r)return Mo(r)},YG=({phone:e,countries:t=ol,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Nm(e);if(!i)return r;let o=r,s=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=o.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=o.country)==null?void 0:b.priority)??0);(!h||m)&&(o={country:l,fullDialCodeMatch:d})};for(let l of t){let d=Mo(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=o.country?Number(h)>=Number(o.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let $ of m)if(b.startsWith($))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!o.fullDialCodeMatch)&&s({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!o.country||Number(h)<=Number(o.country.dialCode))&&s({country:d,fullDialCodeMatch:!1})}if(n){let l=Ll({value:n,field:"iso2",countries:t});if(!l)return o;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;o&&((u=o.country)==null?void 0:u.dialCode)===l.dialCode&&o.country!==l&&o.fullDialCodeMatch&&(!l.areaCodes||d)&&(o={country:l,fullDialCodeMatch:!0})}return o},ZG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},XG="abcdefghijklmnopqrstuvwxyz",JG="1f1e6",WS=XG.split("").reduce((e,t,n)=>({...e,[t]:ZG(JG,n)}),{}),QG=e=>[WS[e[0]],WS[e[1]]].join("-"),v3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:s,...u})=>{if(!e)return T.createElement("img",{className:Wr({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let l=()=>{if(n)return n;let d=QG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return T.createElement("img",{className:Wr({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...u})},eY=1e3,tY=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ol,preferredCountries:i=[],flags:o,onSelect:s,onClose:u,...l})=>{let d=T.useRef(null),h=T.useRef(),m=T.useMemo(()=>{if(!i||!i.length)return r;let k=[],j=[...r];for(let M of i){let ue=j.findIndex(ae=>Mo(ae).iso2===M);if(ue!==-1){let ae=j.splice(ue,1)[0];k.push(ae)}}return k.concat(j)},[r,i]),g=T.useRef({updatedAt:void 0,value:""}),b=k=>{let j=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>eY;g.current={value:j?k:`${g.current.value}${k}`,updatedAt:new Date};let M=m.findIndex(ue=>Mo(ue).name.toLowerCase().startsWith(g.current.value));M!==-1&&A(M)},$=T.useCallback(k=>m.findIndex(j=>Mo(j).iso2===k),[m]),[C,A]=T.useState($(n)),S=()=>{h.current!==n&&A($(n))},w=T.useCallback(k=>{A($(k.iso2)),s==null||s(k)},[s,$]),D=k=>{let j=m.length-1,M=ue=>k==="prev"?ue-1:k==="next"?ue+1:k==="last"?j:0;A(ue=>{let ae=M(ue);return ae<0?0:ae>j?j:ae})},O=k=>{if(k.stopPropagation(),k.key==="Enter"){k.preventDefault();let j=Mo(m[C]);w(j);return}if(k.key==="Escape"){u==null||u();return}if(k.key==="ArrowUp"){k.preventDefault(),D("prev");return}if(k.key==="ArrowDown"){k.preventDefault(),D("next");return}if(k.key==="PageUp"){k.preventDefault(),D("first");return}if(k.key==="PageDown"){k.preventDefault(),D("last");return}k.key===" "&&k.preventDefault(),k.key.length===1&&!k.altKey&&!k.ctrlKey&&!k.metaKey&&b(k.key.toLocaleLowerCase())},R=T.useCallback(()=>{if(!d.current||C===void 0)return;let k=Mo(m[C]).iso2;if(k===h.current)return;let j=d.current.querySelector(`[data-country="${k}"]`);j&&(LG(d.current,j),h.current=k)},[C,m]);return T.useEffect(()=>{R()},[C,R]),T.useEffect(()=>{d.current&&(e?d.current.focus():S())},[e]),T.useEffect(()=>{S()},[n]),T.createElement("ul",{ref:d,role:"listbox",className:Wr({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:O,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Mo(m[C]).iso2}-option`},m.map((k,j)=>{let M=Mo(k),ue=M.iso2===n,ae=j===C,W=i.includes(M.iso2),De=j===i.length-1,q=o==null?void 0:o.find(K=>K.iso2===M.iso2);return T.createElement(T.Fragment,{key:M.iso2},T.createElement("li",{"data-country":M.iso2,role:"option","aria-selected":ue,"aria-label":`${M.name} ${t}${M.dialCode}`,id:`react-international-phone__${M.iso2}-option`,className:Wr({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",ue&&"country-selector-dropdown__list-item--selected",ae&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>w(M),style:l.listItemStyle,title:M.name},T.createElement(v3,{iso2:M.iso2,src:q==null?void 0:q.src,className:Wr({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),T.createElement("span",{className:Wr({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},M.name),T.createElement("span",{className:Wr({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,M.dialCode)),De?T.createElement("hr",{className:Wr({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},nY=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ol,preferredCountries:o=[],flags:s,renderButtonWrapper:u,...l})=>{let[d,h]=T.useState(!1),m=T.useMemo(()=>{if(e)return Ll({value:e,field:"iso2",countries:i})},[i,e]),g=T.useRef(null),b=C=>{C.key&&["ArrowUp","ArrowDown"].includes(C.key)&&(C.preventDefault(),h(!0))},$=()=>{var S;let C={title:m==null?void 0:m.name,onClick:()=>h(w=>!w),onMouseDown:w=>w.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},A=T.createElement("div",{className:Wr({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},T.createElement(v3,{iso2:e,src:(S=s==null?void 0:s.find(w=>w.iso2===e))==null?void 0:S.src,className:Wr({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:Wr({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:A,rootProps:C}):T.createElement("button",{...C,type:"button",className:Wr({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},A)};return T.createElement("div",{className:Wr({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),T.createElement(tY,{show:d,countries:i,preferredCountries:o,flags:s,onSelect:C=>{h(!1),t==null||t(C)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},rY=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>T.createElement("div",{className:Wr({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);T.forwardRef(({value:e,onChange:t,countries:n=ol,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:s,flags:u,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:C,disabled:A,name:S,onFocus:w,onBlur:D,required:O,autoFocus:R,...k},j)=>{let{phone:M,inputValue:ue,inputRef:ae,country:W,setCountry:De,handlePhoneValueChange:q}=UF({value:e,countries:n,...k,onChange:ne=>{t==null||t(ne.phone,{country:ne.country,inputValue:ne.inputValue})}}),K=k.disableDialCodeAndPrefix&&o&&(W==null?void 0:W.dialCode);return T.useImperativeHandle(j,()=>ae.current?Object.assign(ae.current,{setCountry:De,state:{phone:M,inputValue:ue,country:W}}):null,[ae,De,M,ue,W]),T.createElement("div",{ref:j,className:Wr({addPrefix:["input-container"],rawClassNames:[d]}),style:l},T.createElement(nY,{onSelect:ne=>De(ne.iso2,{focusOnInput:!s}),flags:u,selectedCountry:W.iso2,countries:n,preferredCountries:r,disabled:A,hideDropdown:i,...g}),K&&T.createElement(rY,{dialCode:W.dialCode,prefix:k.prefix??"+",disabled:A,...b}),T.createElement("input",{onChange:q,value:ue,type:"tel",ref:ae,className:Wr({addPrefix:["input",A&&"input--disabled"],rawClassNames:[m]}),placeholder:C,disabled:A,style:h,name:S,onFocus:w,onBlur:D,autoFocus:R,required:O,...$}))});var Ha=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",$="[object Object]",C="[object Promise]",A="[object RegExp]",S="[object Set]",w="[object String]",D="[object Symbol]",O="[object WeakMap]",R="[object ArrayBuffer]",k="[object DataView]",j="[object Float32Array]",M="[object Float64Array]",ue="[object Int8Array]",ae="[object Int16Array]",W="[object Int32Array]",De="[object Uint8Array]",q="[object Uint8ClampedArray]",K="[object Uint16Array]",ne="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,N=/\w*$/,I=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,se={};se[o]=se[s]=se[R]=se[k]=se[u]=se[l]=se[j]=se[M]=se[ue]=se[ae]=se[W]=se[g]=se[b]=se[$]=se[A]=se[S]=se[w]=se[D]=se[De]=se[q]=se[K]=se[ne]=!0,se[d]=se[h]=se[O]=!1;var ie=typeof Ha=="object"&&Ha&&Ha.Object===Object&&Ha,Ae=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ie||Ae||Function("return this")(),Ie=t&&!t.nodeType&&t,Le=Ie&&!0&&e&&!e.nodeType&&e,Je=Le&&Le.exports===Ie;function Qe(le,Me){return le.set(Me[0],Me[1]),le}function ye(le,Me){return le.add(Me),le}function Ne(le,Me){for(var Ze=-1,bt=le?le.length:0;++Ze<bt&&Me(le[Ze],Ze,le)!==!1;);return le}function He(le,Me){for(var Ze=-1,bt=Me.length,Fn=le.length;++Ze<bt;)le[Fn+Ze]=Me[Ze];return le}function Ke(le,Me,Ze,bt){for(var Fn=-1,vr=le?le.length:0;++Fn<vr;)Ze=Me(Ze,le[Fn],Fn,le);return Ze}function Be(le,Me){for(var Ze=-1,bt=Array(le);++Ze<le;)bt[Ze]=Me(Ze);return bt}function st(le,Me){return le==null?void 0:le[Me]}function Dt(le){var Me=!1;if(le!=null&&typeof le.toString!="function")try{Me=!!(le+"")}catch{}return Me}function ln(le){var Me=-1,Ze=Array(le.size);return le.forEach(function(bt,Fn){Ze[++Me]=[Fn,bt]}),Ze}function At(le,Me){return function(Ze){return le(Me(Ze))}}function It(le){var Me=-1,Ze=Array(le.size);return le.forEach(function(bt){Ze[++Me]=bt}),Ze}var we=Array.prototype,Se=Function.prototype,Re=Object.prototype,Ge=Pe["__core-js_shared__"],rt=function(){var le=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return le?"Symbol(src)_1."+le:""}(),nt=Se.toString,dt=Re.hasOwnProperty,Et=Re.toString,$n=RegExp("^"+nt.call(dt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=Je?Pe.Buffer:void 0,Gt=Pe.Symbol,Lr=Pe.Uint8Array,Pr=At(Object.getPrototypeOf,Object),Yt=Object.create,kt=Re.propertyIsEnumerable,jt=we.splice,tn=Object.getOwnPropertySymbols,Xn=en?en.isBuffer:void 0,Ei=At(Object.keys,Object),li=Tt(Pe,"DataView"),ci=Tt(Pe,"Map"),Yr=Tt(Pe,"Promise"),Uo=Tt(Pe,"Set"),Ct=Tt(Pe,"WeakMap"),_r=Tt(Object,"create"),Di=Jr(li),Ss=Jr(ci),ma=Jr(Yr),au=Jr(Uo),ga=Jr(Ct),po=Gt?Gt.prototype:void 0,va=po?po.valueOf:void 0;function Ai(le){var Me=-1,Ze=le?le.length:0;for(this.clear();++Me<Ze;){var bt=le[Me];this.set(bt[0],bt[1])}}function Ti(){this.__data__=_r?_r(null):{}}function wt(le){return this.has(le)&&delete this.__data__[le]}function An(le){var Me=this.__data__;if(_r){var Ze=Me[le];return Ze===r?void 0:Ze}return dt.call(Me,le)?Me[le]:void 0}function mo(le){var Me=this.__data__;return _r?Me[le]!==void 0:dt.call(Me,le)}function ya(le,Me){var Ze=this.__data__;return Ze[le]=_r&&Me===void 0?r:Me,this}Ai.prototype.clear=Ti,Ai.prototype.delete=wt,Ai.prototype.get=An,Ai.prototype.has=mo,Ai.prototype.set=ya;function mr(le){var Me=-1,Ze=le?le.length:0;for(this.clear();++Me<Ze;){var bt=le[Me];this.set(bt[0],bt[1])}}function ba(){this.__data__=[]}function Rr(le){var Me=this.__data__,Ze=Ni(Me,le);if(Ze<0)return!1;var bt=Me.length-1;return Ze==bt?Me.pop():jt.call(Me,Ze,1),!0}function uu(le){var Me=this.__data__,Ze=Ni(Me,le);return Ze<0?void 0:Me[Ze][1]}function Br(le){return Ni(this.__data__,le)>-1}function lt(le,Me){var Ze=this.__data__,bt=Ni(Ze,le);return bt<0?Ze.push([le,Me]):Ze[bt][1]=Me,this}mr.prototype.clear=ba,mr.prototype.delete=Rr,mr.prototype.get=uu,mr.prototype.has=Br,mr.prototype.set=lt;function yn(le){var Me=-1,Ze=le?le.length:0;for(this.clear();++Me<Ze;){var bt=le[Me];this.set(bt[0],bt[1])}}function Pi(){this.__data__={hash:new Ai,map:new(ci||mr),string:new Ai}}function Zr(le){return St(this,le).delete(le)}function Wn(le){return St(this,le).get(le)}function Es(le){return St(this,le).has(le)}function Vi(le,Me){return St(this,le).set(le,Me),this}yn.prototype.clear=Pi,yn.prototype.delete=Zr,yn.prototype.get=Wn,yn.prototype.has=Es,yn.prototype.set=Vi;function Xr(le){this.__data__=new mr(le)}function Tn(){this.__data__=new mr}function go(le){return this.__data__.delete(le)}function Ht(le){return this.__data__.get(le)}function lu(le){return this.__data__.has(le)}function Ds(le,Me){var Ze=this.__data__;if(Ze instanceof mr){var bt=Ze.__data__;if(!ci||bt.length<n-1)return bt.push([le,Me]),this;Ze=this.__data__=new yn(bt)}return Ze.set(le,Me),this}Xr.prototype.clear=Tn,Xr.prototype.delete=go,Xr.prototype.get=Ht,Xr.prototype.has=lu,Xr.prototype.set=Ds;function cu(le,Me){var Ze=Rs(le)||Go(le)?Be(le.length,String):[],bt=Ze.length,Fn=!!bt;for(var vr in le)dt.call(le,vr)&&!(Fn&&(vr=="length"||xr(vr,bt)))&&Ze.push(vr);return Ze}function zo(le,Me,Ze){var bt=le[Me];(!(dt.call(le,Me)&&Ho(bt,Ze))||Ze===void 0&&!(Me in le))&&(le[Me]=Ze)}function Ni(le,Me){for(var Ze=le.length;Ze--;)if(Ho(le[Ze][0],Me))return Ze;return-1}function As(le,Me){return le&&We(Me,ks(Me),le)}function Ts(le,Me,Ze,bt,Fn,vr,$r){var Jn;if(bt&&(Jn=vr?bt(le,Fn,vr,$r):bt(le)),Jn!==void 0)return Jn;if(!Fs(le))return le;var Bn=Rs(le);if(Bn){if(Jn=ur(le),!Me)return Ve(le,Jn)}else{var ji=Pn(le),Ki=ji==h||ji==m;if(Ea(le))return Ps(le,Me);if(ji==$||ji==o||Ki&&!vr){if(Dt(le))return vr?le:{};if(Jn=lr(Ki?{}:le),!Me)return ct(le,As(Jn,le))}else{if(!se[ji])return vr?le:{};Jn=on(le,ji,Ts,Me)}}$r||($r=new Xr);var hu=$r.get(le);if(hu)return hu;if($r.set(le,Jn),!Bn)var Da=Ze?Bt(le):ks(le);return Ne(Da||le,function(wr,Os){Da&&(Os=wr,wr=le[Os]),zo(Jn,Os,Ts(wr,Me,Ze,bt,Os,le,$r))}),Jn}function xa(le){return Fs(le)?Yt(le):{}}function $a(le,Me,Ze){var bt=Me(le);return Rs(le)?bt:He(bt,Ze(le))}function fu(le){return Et.call(le)}function wa(le){if(!Fs(le)||Wo(le))return!1;var Me=fl(le)||Dt(le)?$n:I;return Me.test(Jr(le))}function qo(le){if(!_s(le))return Ei(le);var Me=[];for(var Ze in Object(le))dt.call(le,Ze)&&Ze!="constructor"&&Me.push(Ze);return Me}function Ps(le,Me){if(Me)return le.slice();var Ze=new le.constructor(le.length);return le.copy(Ze),Ze}function vo(le){var Me=new le.constructor(le.byteLength);return new Lr(Me).set(new Lr(le)),Me}function Ca(le,Me){var Ze=Me?vo(le.buffer):le.buffer;return new le.constructor(Ze,le.byteOffset,le.byteLength)}function Sa(le,Me,Ze){var bt=Me?Ze(ln(le),!0):ln(le);return Ke(bt,Qe,new le.constructor)}function Mr(le){var Me=new le.constructor(le.source,N.exec(le));return Me.lastIndex=le.lastIndex,Me}function gr(le,Me,Ze){var bt=Me?Ze(It(le),!0):It(le);return Ke(bt,ye,new le.constructor)}function te(le){return va?Object(va.call(le)):{}}function Te(le,Me){var Ze=Me?vo(le.buffer):le.buffer;return new le.constructor(Ze,le.byteOffset,le.length)}function Ve(le,Me){var Ze=-1,bt=le.length;for(Me||(Me=Array(bt));++Ze<bt;)Me[Ze]=le[Ze];return Me}function We(le,Me,Ze,bt){Ze||(Ze={});for(var Fn=-1,vr=Me.length;++Fn<vr;){var $r=Me[Fn],Jn=void 0;zo(Ze,$r,Jn===void 0?le[$r]:Jn)}return Ze}function ct(le,Me){return We(le,Zt(le),Me)}function Bt(le){return $a(le,ks,Zt)}function St(le,Me){var Ze=le.__data__;return yo(Me)?Ze[typeof Me=="string"?"string":"hash"]:Ze.map}function Tt(le,Me){var Ze=st(le,Me);return wa(Ze)?Ze:void 0}var Zt=tn?At(tn,Object):sn,Pn=fu;(li&&Pn(new li(new ArrayBuffer(1)))!=k||ci&&Pn(new ci)!=g||Yr&&Pn(Yr.resolve())!=C||Uo&&Pn(new Uo)!=S||Ct&&Pn(new Ct)!=O)&&(Pn=function(le){var Me=Et.call(le),Ze=Me==$?le.constructor:void 0,bt=Ze?Jr(Ze):void 0;if(bt)switch(bt){case Di:return k;case Ss:return g;case ma:return C;case au:return S;case ga:return O}return Me});function ur(le){var Me=le.length,Ze=le.constructor(Me);return Me&&typeof le[0]=="string"&&dt.call(le,"index")&&(Ze.index=le.index,Ze.input=le.input),Ze}function lr(le){return typeof le.constructor=="function"&&!_s(le)?xa(Pr(le)):{}}function on(le,Me,Ze,bt){var Fn=le.constructor;switch(Me){case R:return vo(le);case u:case l:return new Fn(+le);case k:return Ca(le,bt);case j:case M:case ue:case ae:case W:case De:case q:case K:case ne:return Te(le,bt);case g:return Sa(le,bt,Ze);case b:case w:return new Fn(le);case A:return Mr(le);case S:return gr(le,bt,Ze);case D:return te(le)}}function xr(le,Me){return Me=Me??i,!!Me&&(typeof le=="number"||de.test(le))&&le>-1&&le%1==0&&le<Me}function yo(le){var Me=typeof le;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?le!=="__proto__":le===null}function Wo(le){return!!rt&&rt in le}function _s(le){var Me=le&&le.constructor,Ze=typeof Me=="function"&&Me.prototype||Re;return le===Ze}function Jr(le){if(le!=null){try{return nt.call(le)}catch{}try{return le+""}catch{}}return""}function du(le){return Ts(le,!0,!0)}function Ho(le,Me){return le===Me||le!==le&&Me!==Me}function Go(le){return Ms(le)&&dt.call(le,"callee")&&(!kt.call(le,"callee")||Et.call(le)==o)}var Rs=Array.isArray;function bo(le){return le!=null&&Kc(le.length)&&!fl(le)}function Ms(le){return Uc(le)&&bo(le)}var Ea=Xn||fn;function fl(le){var Me=Fs(le)?Et.call(le):"";return Me==h||Me==m}function Kc(le){return typeof le=="number"&&le>-1&&le%1==0&&le<=i}function Fs(le){var Me=typeof le;return!!le&&(Me=="object"||Me=="function")}function Uc(le){return!!le&&typeof le=="object"}function ks(le){return bo(le)?cu(le):qo(le)}function sn(){return[]}function fn(){return!1}e.exports=du})(Vb,Vb.exports);var Ga=Vb.exports,Nb=function(){return Nb=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Nb.apply(this,arguments)};function iY(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(h){try{d(r.next(h))}catch(m){s(m)}}function l(h){try{d(r.throw(h))}catch(m){s(m)}}function d(h){h.done?o(h.value):i(h.value).then(u,l)}d((r=r.apply(e,[])).next())})}function oY(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Hp(e,t,n,r,i){return iY(this,void 0,void 0,function(){var o,s;return oY(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];s=0,u.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return s++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var jb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Nb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},sY=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=Ga(n);Hp(t,s,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=jb(i,u);o.imgElement.setAttribute("src",s.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,o=Ga(t);Hp(this.imgElement,o,n,this.htmlPluginState).then(function(s){if(i.isMounted){var u=jb(r,s);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let qn=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}},aY=class extends Error{constructor(t="Unsupported"){super(t)}};function y3(e){return new aY(e)}function uY(){return this._qualifierModel||{error:y3(`unsupported qualifier ${this.constructor.name}`)}}let lY=class{constructor(){this._qualifierModel={}}toJson(){return uY.apply(this)}},Ut=class extends lY{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof qn?this.qualifierValue=n:(this.qualifierValue=new qn,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}},lo=class extends Ut{constructor(t,n){let r;n?r=new qn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function cY(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function fY(){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:y3(`unsupported action ${this.constructor.name}`)}}let dY=class{constructor(){this._actionModel={}}toJson(){return fY.apply(this)}},Vo=class extends dY{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(),cY(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 lo(r)):this.qualifiers.set(n,new Ut(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new lo(t)):t instanceof lo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class b3 extends Vo{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class jm extends b3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ut("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ut("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 hY(){return new jm}function zF(){return new b3("faces")}function pY(){return new b3("ocr_text")}class mY extends Vo{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 Ut("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`blur_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`blur_faces${t}`))):this.addQualifier(new Ut("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(zF()),r&&r.regionType==="ocr_text"&&i.region(pY()),r&&r.regionType==="custom"&&i.region(jm.fromJson(r)),i}}function sl(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const qF={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},gY={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},WF={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},HF={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},vY={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},GF={444:"CHROMA_444",420:"CHROMA_420"},yY={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},bY=sl(GF);sl(yY);const xY=sl(qF),$Y=sl(gY),YF=sl(WF);sl(HF);sl(vY);class ZF extends Vo{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=YF[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new qn([t,`${n}`]).setDelimiter(":"):r=new qn(t),new Ut("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=WF[n]||n;return new this(o,r||i)}}class wY extends ZF{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=YF[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 Km(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class CY extends Vo{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 qn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new qn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new qn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new qn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new qn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ut("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:s,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),o&&l.despeckleLevel(o),s&&l.detailsLevel(s),u&&l.numOfColors(u),l}}class SY extends wY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class EY extends Vo{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ut("e",new qn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ut("e",new qn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ut("e",new qn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class DY extends SY{color(t){return this._actionModel.color=t,this.addQualifier(new Ut("co",new qn(Km(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class AY extends Vo{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 Ut("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`pixelate_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`pixelate_faces${t}`))):this.addQualifier(new Ut("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(zF()),n&&n.regionType==="custom"&&i.region(hY()),i}}function TY(e){return new mY(e)}function PY(){return new ZF("grayscale")}function HS(e){return new DY("colorize",e)}function _Y(){return new CY}function RY(){return new EY}function MY(e){return new AY(e)}let FY=class extends Vo{constructor(t){super(),this._actionModel={},this.addQualifier(new Ut("b",new qn(Km(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},GS=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:y3(`unsupported action ${this.constructor.name}`)}}};function kY(e){const t=e;return"error"in t&&!!t.error}function OY(){return new lo("ignore_aspect_ratio")}function IY(){return new lo("lossy")}function LY(){return new lo("preserve_transparency")}function BY(e){return new lo("progressive",e)}function VY(){return new lo("region_relative")}function NY(){return new lo("relative")}let x3=class extends qn{constructor(t){super(t),this.val=t}getValue(){return this.val}},XF=class extends Vo{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof x3?i=n.getValue():i=n,this._actionModel.actionType=$Y[t],this._actionModel[r]=i,this.addQualifier(new Ut(t,n))}},jY=class extends lo{constructor(t){super("progressive",t)}},Kb=class extends XF{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(IY()),this}progressive(t){return t instanceof jY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(BY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(LY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),o&&s.preserveTransparency(),s}},Um=class JF{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 GS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof JF?this.actions=this.actions.concat(t.actions):this.actions.push(new GS(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 Kb("q",t)),this}format(t){return this.addAction(new Kb("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new FY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Vo;let r=t;return typeof t=="string"&&(r=new lo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(kY(r))return r;t.push(r)}return{actions:t}}};function YS(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class KY extends qn{}class UY extends Vo{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=xY[t]||t,this.addQualifier(new Ut("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ut("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ut("w",t))}aspectRatio(t){if(t instanceof KY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ut("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=YS(t),this.addQualifier(new Ut("ar",YS(t)));if(t instanceof lo)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(NY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(VY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:s,width:u,height:l}=r,d=qF[n]||n,h=new this(d,u,l);return s&&h.aspectRatio(s==="ignore_aspect_ratio"?OY():s),i&&h.relative(),o&&h.regionRelative(),h}}class $3 extends Ut{constructor(t){super("g",new qn(t))}}class QF extends $3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class ek extends $3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class tk extends $3{constructor(t){super(t)}}function zY(e){return new tk(e)}function nk(...e){const t=[...e];return new ek(t)}function rk(){return new QF}class dc extends qn{constructor(t){super(),this.name=t}toString(){return this.name}}function qY(){return new dc("ocr_text")}function WY(e){return e&&`${e}`.split(":")[0]==="auto"}function HY(e){const t=w3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function w3(e){return`${e}`.replace("g_","")}function GY(e){return{compass:w3(e),gravityType:"direction"}}function YY(e){return w3(e)==="ocr_text"}function ZY(){return{gravityType:"ocr"}}function XY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function JY(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function ik(e){let t;const n=e==="auto"?new QF:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(JY)}}function QY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),s=rk().autoFocus(...o);i.fallbackGravity=ik(s)}return i}function eZ(e){const n=e.split(":").map(r=>new dc(r));return new ek(n)}function tZ(e){return HY(e)?GY(e):YY(e)?ZY():WY(e)||XY(e)?ik(e):QY(typeof e=="string"?eZ(e):e)}class C3 extends qn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof dc?t:new dc(t);return new C3(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 ok extends qn{constructor(t){super(),this.val=t}toString(){return this.val}}function nZ(e){return e.gravityType==="direction"}function rZ(e){return e.gravityType==="ocr"}function iZ(e){return e.gravityType==="auto"}function oZ(e){const{object:t,weight:n,avoid:r}=e,i=new C3(new dc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function sk(e){const n=(e.autoFocus||[]).map(oZ);return rk().autoFocus(...n)}function sZ(e){const t=(e.focusOnObjects||[]).map(r=>new dc(r)),n=nk(...t);if(e.fallbackGravity){const r=sk(e.fallbackGravity);n.fallbackGravity(r)}return n}function aZ(e){return nZ(e)?new tk(new ok(e.compass)):rZ(e)?nk(qY()):iZ(e)?sk(e):sZ(e)}class S3 extends UY{gravity(t){this._actionModel.gravity=tZ(t);const n=typeof t=="string"?new Ut("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(aZ(t.gravity)),n}}class Od extends Ut{constructor(t){super("b"),t&&this.addValue(t)}}const ak=100,uZ=0;class lZ extends Od{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${ak}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var uk=lZ;class E3 extends Od{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Km(n)),this}}class lk extends E3{toString(){return`
|
|
85
|
-
b_auto:border
|
|
86
|
-
${this._contrast?"_contrast":""}
|
|
87
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
88
|
-
`.replace(/\s+/g,"")}}class ck extends E3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class fk extends ck{toString(){return`
|
|
89
|
-
b_auto:border_gradient
|
|
90
|
-
${this._contrast?"_contrast":""}
|
|
91
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
92
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
93
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
94
|
-
`.replace(/\s+/g,"")}}class dk extends ck{toString(){return`
|
|
95
|
-
b_auto:predominant_gradient
|
|
96
|
-
${this._contrast?"_contrast":""}
|
|
97
|
-
${this._gradientColors?`:${this._gradientColors}`:""}
|
|
98
|
-
${this._gradientDirection?`:${this._gradientDirection}`:""}
|
|
99
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
100
|
-
`.replace(/\s+/g,"")}}class hk extends E3{toString(){return`
|
|
101
|
-
b_auto:predominant
|
|
102
|
-
${this._contrast?"_contrast":""}
|
|
103
|
-
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
-
`.replace(/\s+/g,"")}}class pk extends Od{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function mk(e){return`${e}`.replace("b_","")}function cZ(){return{backgroundType:"auto"}}function fZ(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function D3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function dZ(e){return Object.assign(Object.assign({},D3(e)),{backgroundType:"border"})}function gk(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=D3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function hZ(e){return Object.assign(Object.assign({},gk(e)),{backgroundType:"borderGradient"})}function pZ(e){return{backgroundType:"color",color:mk(e)}}function mZ(e){return Object.assign(Object.assign({},D3(e)),{backgroundType:"predominant"})}function gZ(e){return Object.assign(Object.assign({},gk(e)),{backgroundType:"predominantGradient"})}function vZ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function yZ(e){return mk(e)==="auto"?cZ():e instanceof uk?fZ(e):e instanceof lk?dZ(e):e instanceof fk?hZ(e):e instanceof hk?mZ(e):e instanceof dk?gZ(e):e instanceof pk?vZ(e):pZ(e)}function bZ(){return new x3("svg")}function A3(){return new x3("auto")}function vk(){return new lk}function yk(){return new Od("auto")}function bk(){return new fk}function xk(){return new dk}function $k(){return new hk}function wk(e){return new Od(Km(e))}function xZ(){return new uk}function Ck(){return new pk}const Sk={auto:yk,border:vk,borderGradient:bk,predominantGradient:xk,predominant:$k,color:wk,blurred:xZ,generativeFill:Ck};function $Z(e){const{brightness:t,intensity:n}=e,r=Sk.blurred();return r.brightness(t??uZ),r.intensity(n??ak),r}function ZS(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function XS(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function wZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function CZ(e){const{backgroundType:t}=e;switch(t){case"auto":return yk();case"blurred":return $Z(e);case"border":return XS(vk(),e);case"borderGradient":return ZS(bk(),e);case"predominant":return XS($k(),e);case"predominantGradient":return ZS(xk(),e);case"generativeFill":return wZ(Ck(),e);default:return wk(e.color)}}class SZ extends S3{background(t){return this._actionModel.background=yZ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(CZ(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class EZ extends S3{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ut("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class DZ extends S3{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function AZ(e,t){return new EZ("crop",e,t)}function TZ(e,t){return new DZ("fill",e,t)}function PZ(e,t){return new SZ("pad",e,t)}class _Z extends XF{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=GF[t];const n=new qn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ut("q",n))}quantization(t){this._actionModel.quantization=t;const n=new qn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ut("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=HF[n]||n,s=new this(o);if(r){const u=bY[r.toUpperCase()];u&&s.chromaSubSampling(+u)}return i&&s.quantization(i),s}}function zm(e){return new Kb("f",e)}function qm(e){return new _Z(e)}function RZ(){return new ok("north_east")}HS(70).color("black"),HS(40).color("white"),PY(),RY();var MZ=new Um().effect(_Y()).delivery(qm("auto")).delivery(zm(bZ())),FZ=new Um().effect(MY()).delivery(qm("auto")).delivery(zm(A3())),kZ=new Um().effect(TY(2e3)).delivery(qm("auto")).delivery(zm(A3())),OZ=new Um().resize(PZ("iw_div_2").aspectRatio(1).background(Sk.auto())).resize(AZ(1,1).gravity(zY(RZ()))).resize(TZ().height("ih").width("iw")).delivery(qm("auto")).delivery(zm(A3())),JS={vectorize:MZ,pixelate:FZ,blur:kZ,"predominant-color":OZ},QS="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",eE={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},tE="?_a=",IZ=function(){function e(t,n,r,i,o,s,u){var l=this;this.mimeType="video",this.mimeSubTypes=eE,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=Ga(n);Hp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(o,s),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(o){r.appendSourceTag(Ga(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,s=i.codecs,u=i.transcode;return r.appendSourceTag(Ga(t).transcode(u),o,r.buildMimeType(o,s))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),s=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;s&&t.format(n);var u=t.toURL(),l=u.split(tE),d=l[1]?"".concat(tE).concat(l[1]):"",h=s?"":".".concat(n);o.src="".concat(l[0]).concat(h).concat(d),o.type=r||"video/".concat(eE[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=Ga(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,s=Object.entries(t);o<s.length;o++){var u=s[o],l=u[0],d=u[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var s=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);Hp(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,o),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),LZ=typeof Ha=="object"&&Ha&&Ha.Object===Object&&Ha,BZ=typeof self=="object"&&self&&self.Object===Object&&self;LZ||BZ||Function("return this")();function T3(){return typeof window<"u"}function VZ(e){return e instanceof HTMLImageElement}function NZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return jZ.bind(null,r,o)}function jZ(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),T3()?new Promise(function(s){var u=function(){return s({lazyload:!0})},l=UZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),s("canceled")})}):!1}function KZ(){return window&&"IntersectionObserver"in window}function UZ(e,t,n,r){try{if(!KZ())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(s){s.isIntersecting&&(i.unobserve(s.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function zZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return qZ.bind(null,r)}function qZ(e,t,n,r,i,o){JS[e]||(e="vectorize");var s=JS[e].actions,u=Ga(n);if(s.forEach(function(d){u.addAction(d)}),!T3())return n.transformation=u.transformation,!0;if(VZ(t)){u.transformation.actions.forEach(function(d,h){d instanceof Vo&&d.getActionTag()==="responsive"&&delete u.transformation.actions[h]});var l=jb(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=QS},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=QS,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function WZ(e,t,n){var r=Ga(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL(n?{trackedAnalytics:n}:null)}function Gp(e){e.cleanupCallbacks.forEach(function(t){t()})}var Ub=function(e,t){return Ub=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Ub(e,t)};function Ek(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ub(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var od=function(){return od=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},od.apply(this,arguments)};function Dk(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 sd={exports:{}},xn={};/*
|
|
105
|
-
object-assign
|
|
106
|
-
(c) Sindre Sorhus
|
|
107
|
-
@license MIT
|
|
108
|
-
*/var nE=Object.getOwnPropertySymbols,HZ=Object.prototype.hasOwnProperty,GZ=Object.prototype.propertyIsEnumerable;function YZ(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ZZ(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ak=ZZ()?Object.assign:function(e,t){for(var n,r=YZ(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)HZ.call(n,s)&&(r[s]=n[s]);if(nE){i=nE(n);for(var u=0;u<i.length;u++)GZ.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
109
|
-
* react.production.min.js
|
|
110
|
-
*
|
|
111
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the MIT license found in the
|
|
114
|
-
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/var P3=Ak,No=typeof Symbol=="function"&&Symbol.for,Id=No?Symbol.for("react.element"):60103,XZ=No?Symbol.for("react.portal"):60106,JZ=No?Symbol.for("react.fragment"):60107,QZ=No?Symbol.for("react.strict_mode"):60108,eX=No?Symbol.for("react.profiler"):60114,tX=No?Symbol.for("react.provider"):60109,nX=No?Symbol.for("react.context"):60110,rX=No?Symbol.for("react.forward_ref"):60112,iX=No?Symbol.for("react.suspense"):60113,oX=No?Symbol.for("react.memo"):60115,sX=No?Symbol.for("react.lazy"):60116,rE=typeof Symbol=="function"&&Symbol.iterator;function Ld(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Tk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pk={};function _c(e,t,n){this.props=e,this.context=t,this.refs=Pk,this.updater=n||Tk}_c.prototype.isReactComponent={};_c.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Ld(85));this.updater.enqueueSetState(this,e,t,"setState")};_c.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _k(){}_k.prototype=_c.prototype;function _3(e,t,n){this.props=e,this.context=t,this.refs=Pk,this.updater=n||Tk}var R3=_3.prototype=new _k;R3.constructor=_3;P3(R3,_c.prototype);R3.isPureReactComponent=!0;var M3={current:null},Rk=Object.prototype.hasOwnProperty,Mk={key:!0,ref:!0,__self:!0,__source:!0};function Fk(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Rk.call(t,r)&&!Mk.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),d=0;d<u;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Id,type:e,key:o,ref:s,props:i,_owner:M3.current}}function aX(e,t){return{$$typeof:Id,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function F3(e){return typeof e=="object"&&e!==null&&e.$$typeof===Id}function uX(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var kk=/\/+/g,Yp=[];function Ok(e,t,n,r){if(Yp.length){var i=Yp.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function Ik(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Yp.length&&Yp.push(e)}function zb(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Id:case XZ:o=!0}}if(o)return n(r,e,t===""?"."+ay(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var u=t+ay(i,s);o+=zb(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=rE&&e[rE]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=t+ay(i,s++),o+=zb(i,u,n,r);else if(i==="object")throw n=""+e,Error(Ld(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function qb(e,t,n){return e==null?0:zb(e,"",t,n)}function ay(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uX(e.key):t.toString(36)}function lX(e,t){e.func.call(e.context,t,e.count++)}function cX(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Wb(e,r,n,function(o){return o}):e!=null&&(F3(e)&&(e=aX(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(kk,"$&/")+"/")+n)),r.push(e))}function Wb(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(kk,"$&/")+"/"),t=Ok(t,o,r,i),qb(e,cX,t),Ik(t)}var Lk={current:null};function ha(){var e=Lk.current;if(e===null)throw Error(Ld(321));return e}var fX={ReactCurrentDispatcher:Lk,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:M3,IsSomeRendererActing:{current:!1},assign:P3};xn.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Wb(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=Ok(null,null,t,n),qb(e,lX,t),Ik(t)},count:function(e){return qb(e,function(){return null},null)},toArray:function(e){var t=[];return Wb(e,t,null,function(n){return n}),t},only:function(e){if(!F3(e))throw Error(Ld(143));return e}};xn.Component=_c;xn.Fragment=JZ;xn.Profiler=eX;xn.PureComponent=_3;xn.StrictMode=QZ;xn.Suspense=iX;xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fX;xn.cloneElement=function(e,t,n){if(e==null)throw Error(Ld(267,e));var r=P3({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=M3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)Rk.call(t,l)&&!Mk.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var d=0;d<l;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:Id,type:e.type,key:i,ref:o,props:r,_owner:s}};xn.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:nX,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:tX,_context:e},e.Consumer=e};xn.createElement=Fk;xn.createFactory=function(e){var t=Fk.bind(null,e);return t.type=e,t};xn.createRef=function(){return{current:null}};xn.forwardRef=function(e){return{$$typeof:rX,render:e}};xn.isValidElement=F3;xn.lazy=function(e){return{$$typeof:sX,_ctor:e,_status:-1,_result:null}};xn.memo=function(e,t){return{$$typeof:oX,type:e,compare:t===void 0?null:t}};xn.useCallback=function(e,t){return ha().useCallback(e,t)};xn.useContext=function(e,t){return ha().useContext(e,t)};xn.useDebugValue=function(){};xn.useEffect=function(e,t){return ha().useEffect(e,t)};xn.useImperativeHandle=function(e,t,n){return ha().useImperativeHandle(e,t,n)};xn.useLayoutEffect=function(e,t){return ha().useLayoutEffect(e,t)};xn.useMemo=function(e,t){return ha().useMemo(e,t)};xn.useReducer=function(e,t,n){return ha().useReducer(e,t,n)};xn.useRef=function(e){return ha().useRef(e)};xn.useState=function(e){return ha().useState(e)};xn.version="16.14.0";var bn={},dX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",hX=dX,pX=Function.call.bind(Object.prototype.hasOwnProperty),Hb=function(){};if(process.env.NODE_ENV!=="production"){var mX=hX,Gb={},gX=pX;Hb=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function Bk(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(gX(e,o)){var s;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[o](t,o,r,n,null,mX)}catch(d){s=d}if(s&&!(s instanceof Error)&&Hb((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in Gb)){Gb[s.message]=!0;var l=i?i():"";Hb("Failed "+n+" type: "+s.message+(l??""))}}}}Bk.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Gb={})};var vX=Bk;/** @license React v16.14.0
|
|
116
|
-
* react.development.js
|
|
117
|
-
*
|
|
118
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the MIT license found in the
|
|
121
|
-
* LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/process.env.NODE_ENV!=="production"&&function(){var e=Ak,t=vX,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,h=r?Symbol.for("react.context"):60110,m=r?Symbol.for("react.concurrent_mode"):60111,g=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,$=r?Symbol.for("react.suspense_list"):60120,C=r?Symbol.for("react.memo"):60115,A=r?Symbol.for("react.lazy"):60116,S=r?Symbol.for("react.block"):60121,w=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119,R=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator";function j(te){if(te===null||typeof te!="object")return null;var Te=R&&te[R]||te[k];return typeof Te=="function"?Te:null}var M={current:null},ue={suspense:null},ae={current:null},W=/^(.*)[\\\/]/;function De(te,Te,Ve){var We="";if(Te){var ct=Te.fileName,Bt=ct.replace(W,"");if(/^index\./.test(Bt)){var St=ct.match(W);if(St){var Tt=St[1];if(Tt){var Zt=Tt.replace(W,"");Bt=Zt+"/"+Bt}}}We=" (at "+Bt+":"+Te.lineNumber+")"}else Ve&&(We=" (created by "+Ve+")");return`
|
|
123
|
-
in `+(te||"Unknown")+We}var q=1;function K(te){return te._status===q?te._result:null}function ne(te,Te,Ve){var We=Te.displayName||Te.name||"";return te.displayName||(We!==""?Ve+"("+We+")":Ve)}function U(te){if(te==null)return null;if(typeof te.tag=="number"&&Pe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof te=="function")return te.displayName||te.name||null;if(typeof te=="string")return te;switch(te){case s:return"Fragment";case o:return"Portal";case l:return"Profiler";case u:return"StrictMode";case b:return"Suspense";case $:return"SuspenseList"}if(typeof te=="object")switch(te.$$typeof){case h:return"Context.Consumer";case d:return"Context.Provider";case g:return ne(te,te.render,"ForwardRef");case C:return U(te.type);case S:return U(te.render);case A:{var Te=te,Ve=K(Te);if(Ve)return U(Ve);break}}return null}var N={},I=null;function de(te){I=te}N.getCurrentStack=null,N.getStackAddendum=function(){var te="";if(I){var Te=U(I.type),Ve=I._owner;te+=De(Te,I._source,Ve&&U(Ve.type))}var We=N.getCurrentStack;return We&&(te+=We()||""),te};var se={current:!1},ie={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:ue,ReactCurrentOwner:ae,IsSomeRendererActing:se,assign:e};e(ie,{ReactDebugCurrentFrame:N,ReactComponentTreeHook:{}});function Ae(te){{for(var Te=arguments.length,Ve=new Array(Te>1?Te-1:0),We=1;We<Te;We++)Ve[We-1]=arguments[We];Ie("warn",te,Ve)}}function Pe(te){{for(var Te=arguments.length,Ve=new Array(Te>1?Te-1:0),We=1;We<Te;We++)Ve[We-1]=arguments[We];Ie("error",te,Ve)}}function Ie(te,Te,Ve){{var We=Ve.length>0&&typeof Ve[Ve.length-1]=="string"&&Ve[Ve.length-1].indexOf(`
|
|
124
|
-
in`)===0;if(!We){var ct=ie.ReactDebugCurrentFrame,Bt=ct.getStackAddendum();Bt!==""&&(Te+="%s",Ve=Ve.concat([Bt]))}var St=Ve.map(function(Pn){return""+Pn});St.unshift("Warning: "+Te),Function.prototype.apply.call(console[te],console,St);try{var Tt=0,Zt="Warning: "+Te.replace(/%s/g,function(){return Ve[Tt++]});throw new Error(Zt)}catch{}}}var Le={};function Je(te,Te){{var Ve=te.constructor,We=Ve&&(Ve.displayName||Ve.name)||"ReactClass",ct=We+"."+Te;if(Le[ct])return;Pe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Te,We),Le[ct]=!0}}var Qe={isMounted:function(te){return!1},enqueueForceUpdate:function(te,Te,Ve){Je(te,"forceUpdate")},enqueueReplaceState:function(te,Te,Ve,We){Je(te,"replaceState")},enqueueSetState:function(te,Te,Ve,We){Je(te,"setState")}},ye={};Object.freeze(ye);function Ne(te,Te,Ve){this.props=te,this.context=Te,this.refs=ye,this.updater=Ve||Qe}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(te,Te){if(!(typeof te=="object"||typeof te=="function"||te==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,te,Te,"setState")},Ne.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")};{var He={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ke=function(te,Te){Object.defineProperty(Ne.prototype,te,{get:function(){Ae("%s(...) is deprecated in plain JavaScript React classes. %s",Te[0],Te[1])}})};for(var Be in He)He.hasOwnProperty(Be)&&Ke(Be,He[Be])}function st(){}st.prototype=Ne.prototype;function Dt(te,Te,Ve){this.props=te,this.context=Te,this.refs=ye,this.updater=Ve||Qe}var ln=Dt.prototype=new st;ln.constructor=Dt,e(ln,Ne.prototype),ln.isPureReactComponent=!0;function At(){var te={current:null};return Object.seal(te),te}var It=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},Se,Re,Ge;Ge={};function rt(te){if(It.call(te,"ref")){var Te=Object.getOwnPropertyDescriptor(te,"ref").get;if(Te&&Te.isReactWarning)return!1}return te.ref!==void 0}function nt(te){if(It.call(te,"key")){var Te=Object.getOwnPropertyDescriptor(te,"key").get;if(Te&&Te.isReactWarning)return!1}return te.key!==void 0}function dt(te,Te){var Ve=function(){Se||(Se=!0,Pe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Te))};Ve.isReactWarning=!0,Object.defineProperty(te,"key",{get:Ve,configurable:!0})}function Et(te,Te){var Ve=function(){Re||(Re=!0,Pe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",Te))};Ve.isReactWarning=!0,Object.defineProperty(te,"ref",{get:Ve,configurable:!0})}function $n(te){if(typeof te.ref=="string"&&ae.current&&te.__self&&ae.current.stateNode!==te.__self){var Te=U(ae.current.type);Ge[Te]||(Pe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',U(ae.current.type),te.ref),Ge[Te]=!0)}}var en=function(te,Te,Ve,We,ct,Bt,St){var Tt={$$typeof:i,type:te,key:Te,ref:Ve,props:St,_owner:Bt};return Tt._store={},Object.defineProperty(Tt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Tt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:We}),Object.defineProperty(Tt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ct}),Object.freeze&&(Object.freeze(Tt.props),Object.freeze(Tt)),Tt};function Gt(te,Te,Ve){var We,ct={},Bt=null,St=null,Tt=null,Zt=null;if(Te!=null){rt(Te)&&(St=Te.ref,$n(Te)),nt(Te)&&(Bt=""+Te.key),Tt=Te.__self===void 0?null:Te.__self,Zt=Te.__source===void 0?null:Te.__source;for(We in Te)It.call(Te,We)&&!we.hasOwnProperty(We)&&(ct[We]=Te[We])}var Pn=arguments.length-2;if(Pn===1)ct.children=Ve;else if(Pn>1){for(var ur=Array(Pn),lr=0;lr<Pn;lr++)ur[lr]=arguments[lr+2];Object.freeze&&Object.freeze(ur),ct.children=ur}if(te&&te.defaultProps){var on=te.defaultProps;for(We in on)ct[We]===void 0&&(ct[We]=on[We])}if(Bt||St){var xr=typeof te=="function"?te.displayName||te.name||"Unknown":te;Bt&&dt(ct,xr),St&&Et(ct,xr)}return en(te,Bt,St,Tt,Zt,ae.current,ct)}function Lr(te,Te){var Ve=en(te.type,Te,te.ref,te._self,te._source,te._owner,te.props);return Ve}function Pr(te,Te,Ve){if(te==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+te+".");var We,ct=e({},te.props),Bt=te.key,St=te.ref,Tt=te._self,Zt=te._source,Pn=te._owner;if(Te!=null){rt(Te)&&(St=Te.ref,Pn=ae.current),nt(Te)&&(Bt=""+Te.key);var ur;te.type&&te.type.defaultProps&&(ur=te.type.defaultProps);for(We in Te)It.call(Te,We)&&!we.hasOwnProperty(We)&&(Te[We]===void 0&&ur!==void 0?ct[We]=ur[We]:ct[We]=Te[We])}var lr=arguments.length-2;if(lr===1)ct.children=Ve;else if(lr>1){for(var on=Array(lr),xr=0;xr<lr;xr++)on[xr]=arguments[xr+2];ct.children=on}return en(te.type,Bt,St,Tt,Zt,Pn,ct)}function Yt(te){return typeof te=="object"&&te!==null&&te.$$typeof===i}var kt=".",jt=":";function tn(te){var Te=/[=:]/g,Ve={"=":"=0",":":"=2"},We=(""+te).replace(Te,function(ct){return Ve[ct]});return"$"+We}var Xn=!1,Ei=/\/+/g;function li(te){return(""+te).replace(Ei,"$&/")}var ci=10,Yr=[];function Uo(te,Te,Ve,We){if(Yr.length){var ct=Yr.pop();return ct.result=te,ct.keyPrefix=Te,ct.func=Ve,ct.context=We,ct.count=0,ct}else return{result:te,keyPrefix:Te,func:Ve,context:We,count:0}}function Ct(te){te.result=null,te.keyPrefix=null,te.func=null,te.context=null,te.count=0,Yr.length<ci&&Yr.push(te)}function _r(te,Te,Ve,We){var ct=typeof te;(ct==="undefined"||ct==="boolean")&&(te=null);var Bt=!1;if(te===null)Bt=!0;else switch(ct){case"string":case"number":Bt=!0;break;case"object":switch(te.$$typeof){case i:case o:Bt=!0}}if(Bt)return Ve(We,te,Te===""?kt+Ss(te,0):Te),1;var St,Tt,Zt=0,Pn=Te===""?kt:Te+jt;if(Array.isArray(te))for(var ur=0;ur<te.length;ur++)St=te[ur],Tt=Pn+Ss(St,ur),Zt+=_r(St,Tt,Ve,We);else{var lr=j(te);if(typeof lr=="function"){lr===te.entries&&(Xn||Ae("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Xn=!0);for(var on=lr.call(te),xr,yo=0;!(xr=on.next()).done;)St=xr.value,Tt=Pn+Ss(St,yo++),Zt+=_r(St,Tt,Ve,We)}else if(ct==="object"){var Wo="";Wo=" If you meant to render a collection of children, use an array instead."+N.getStackAddendum();var _s=""+te;throw Error("Objects are not valid as a React child (found: "+(_s==="[object Object]"?"object with keys {"+Object.keys(te).join(", ")+"}":_s)+")."+Wo)}}return Zt}function Di(te,Te,Ve){return te==null?0:_r(te,"",Te,Ve)}function Ss(te,Te){return typeof te=="object"&&te!==null&&te.key!=null?tn(te.key):Te.toString(36)}function ma(te,Te,Ve){var We=te.func,ct=te.context;We.call(ct,Te,te.count++)}function au(te,Te,Ve){if(te==null)return te;var We=Uo(null,null,Te,Ve);Di(te,ma,We),Ct(We)}function ga(te,Te,Ve){var We=te.result,ct=te.keyPrefix,Bt=te.func,St=te.context,Tt=Bt.call(St,Te,te.count++);Array.isArray(Tt)?po(Tt,We,Ve,function(Zt){return Zt}):Tt!=null&&(Yt(Tt)&&(Tt=Lr(Tt,ct+(Tt.key&&(!Te||Te.key!==Tt.key)?li(Tt.key)+"/":"")+Ve)),We.push(Tt))}function po(te,Te,Ve,We,ct){var Bt="";Ve!=null&&(Bt=li(Ve)+"/");var St=Uo(Te,Bt,We,ct);Di(te,ga,St),Ct(St)}function va(te,Te,Ve){if(te==null)return te;var We=[];return po(te,We,null,Te,Ve),We}function Ai(te){return Di(te,function(){return null},null)}function Ti(te){var Te=[];return po(te,Te,null,function(Ve){return Ve}),Te}function wt(te){if(!Yt(te))throw Error("React.Children.only expected to receive a single React element child.");return te}function An(te,Te){Te===void 0?Te=null:Te!==null&&typeof Te!="function"&&Pe("createContext: Expected the optional second argument to be a function. Instead received: %s",Te);var Ve={$$typeof:h,_calculateChangedBits:Te,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null};Ve.Provider={$$typeof:d,_context:Ve};var We=!1,ct=!1;{var Bt={$$typeof:h,_context:Ve,_calculateChangedBits:Ve._calculateChangedBits};Object.defineProperties(Bt,{Provider:{get:function(){return ct||(ct=!0,Pe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Ve.Provider},set:function(St){Ve.Provider=St}},_currentValue:{get:function(){return Ve._currentValue},set:function(St){Ve._currentValue=St}},_currentValue2:{get:function(){return Ve._currentValue2},set:function(St){Ve._currentValue2=St}},_threadCount:{get:function(){return Ve._threadCount},set:function(St){Ve._threadCount=St}},Consumer:{get:function(){return We||(We=!0,Pe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Ve.Consumer}}}),Ve.Consumer=Bt}return Ve._currentRenderer=null,Ve._currentRenderer2=null,Ve}function mo(te){var Te={$$typeof:A,_ctor:te,_status:-1,_result:null};{var Ve,We;Object.defineProperties(Te,{defaultProps:{configurable:!0,get:function(){return Ve},set:function(ct){Pe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ve=ct,Object.defineProperty(Te,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return We},set:function(ct){Pe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),We=ct,Object.defineProperty(Te,"propTypes",{enumerable:!0})}}})}return Te}function ya(te){return te!=null&&te.$$typeof===C?Pe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof te!="function"?Pe("forwardRef requires a render function but was given %s.",te===null?"null":typeof te):te.length!==0&&te.length!==2&&Pe("forwardRef render functions accept exactly two parameters: props and ref. %s",te.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),te!=null&&(te.defaultProps!=null||te.propTypes!=null)&&Pe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:g,render:te}}function mr(te){return typeof te=="string"||typeof te=="function"||te===s||te===m||te===l||te===u||te===b||te===$||typeof te=="object"&&te!==null&&(te.$$typeof===A||te.$$typeof===C||te.$$typeof===d||te.$$typeof===h||te.$$typeof===g||te.$$typeof===w||te.$$typeof===D||te.$$typeof===O||te.$$typeof===S)}function ba(te,Te){return mr(te)||Pe("memo: The first argument must be a component. Instead received: %s",te===null?"null":typeof te),{$$typeof:C,type:te,compare:Te===void 0?null:Te}}function Rr(){var te=M.current;if(te===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
125
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
126
|
-
2. You might be breaking the Rules of Hooks
|
|
127
|
-
3. You might have more than one copy of React in the same app
|
|
128
|
-
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return te}function uu(te,Te){var Ve=Rr();if(Te!==void 0&&Pe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Te,typeof Te=="number"&&Array.isArray(arguments[2])?`
|
|
129
|
-
|
|
130
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),te._context!==void 0){var We=te._context;We.Consumer===te?Pe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):We.Provider===te&&Pe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Ve.useContext(te,Te)}function Br(te){var Te=Rr();return Te.useState(te)}function lt(te,Te,Ve){var We=Rr();return We.useReducer(te,Te,Ve)}function yn(te){var Te=Rr();return Te.useRef(te)}function Pi(te,Te){var Ve=Rr();return Ve.useEffect(te,Te)}function Zr(te,Te){var Ve=Rr();return Ve.useLayoutEffect(te,Te)}function Wn(te,Te){var Ve=Rr();return Ve.useCallback(te,Te)}function Es(te,Te){var Ve=Rr();return Ve.useMemo(te,Te)}function Vi(te,Te,Ve){var We=Rr();return We.useImperativeHandle(te,Te,Ve)}function Xr(te,Te){{var Ve=Rr();return Ve.useDebugValue(te,Te)}}var Tn;Tn=!1;function go(){if(ae.current){var te=U(ae.current.type);if(te)return`
|
|
131
|
-
|
|
132
|
-
Check the render method of \``+te+"`."}return""}function Ht(te){if(te!==void 0){var Te=te.fileName.replace(/^.*[\\\/]/,""),Ve=te.lineNumber;return`
|
|
133
|
-
|
|
134
|
-
Check your code at `+Te+":"+Ve+"."}return""}function lu(te){return te!=null?Ht(te.__source):""}var Ds={};function cu(te){var Te=go();if(!Te){var Ve=typeof te=="string"?te:te.displayName||te.name;Ve&&(Te=`
|
|
135
|
-
|
|
136
|
-
Check the top-level render call using <`+Ve+">.")}return Te}function zo(te,Te){if(!(!te._store||te._store.validated||te.key!=null)){te._store.validated=!0;var Ve=cu(Te);if(!Ds[Ve]){Ds[Ve]=!0;var We="";te&&te._owner&&te._owner!==ae.current&&(We=" It was passed a child from "+U(te._owner.type)+"."),de(te),Pe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',Ve,We),de(null)}}}function Ni(te,Te){if(typeof te=="object"){if(Array.isArray(te))for(var Ve=0;Ve<te.length;Ve++){var We=te[Ve];Yt(We)&&zo(We,Te)}else if(Yt(te))te._store&&(te._store.validated=!0);else if(te){var ct=j(te);if(typeof ct=="function"&&ct!==te.entries)for(var Bt=ct.call(te),St;!(St=Bt.next()).done;)Yt(St.value)&&zo(St.value,Te)}}}function As(te){{var Te=te.type;if(Te==null||typeof Te=="string")return;var Ve=U(Te),We;if(typeof Te=="function")We=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===g||Te.$$typeof===C))We=Te.propTypes;else return;We?(de(te),t(We,te.props,"prop",Ve,N.getStackAddendum),de(null)):Te.PropTypes!==void 0&&!Tn&&(Tn=!0,Pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ve||"Unknown")),typeof Te.getDefaultProps=="function"&&!Te.getDefaultProps.isReactClassApproved&&Pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ts(te){{de(te);for(var Te=Object.keys(te.props),Ve=0;Ve<Te.length;Ve++){var We=Te[Ve];if(We!=="children"&&We!=="key"){Pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",We);break}}te.ref!==null&&Pe("Invalid attribute `ref` supplied to `React.Fragment`."),de(null)}}function xa(te,Te,Ve){var We=mr(te);if(!We){var ct="";(te===void 0||typeof te=="object"&&te!==null&&Object.keys(te).length===0)&&(ct+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Bt=lu(Te);Bt?ct+=Bt:ct+=go();var St;te===null?St="null":Array.isArray(te)?St="array":te!==void 0&&te.$$typeof===i?(St="<"+(U(te.type)||"Unknown")+" />",ct=" Did you accidentally export a JSX literal instead of a component?"):St=typeof te,Pe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",St,ct)}var Tt=Gt.apply(this,arguments);if(Tt==null)return Tt;if(We)for(var Zt=2;Zt<arguments.length;Zt++)Ni(arguments[Zt],te);return te===s?Ts(Tt):As(Tt),Tt}var $a=!1;function fu(te){var Te=xa.bind(null,te);return Te.type=te,$a||($a=!0,Ae("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Te,"type",{enumerable:!1,get:function(){return Ae("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:te}),te}}),Te}function wa(te,Te,Ve){for(var We=Pr.apply(this,arguments),ct=2;ct<arguments.length;ct++)Ni(arguments[ct],We.type);return As(We),We}try{var qo=Object.freeze({}),Ps=new Map([[qo,null]]),vo=new Set([qo]);Ps.set(0,0),vo.add(0)}catch{}var Ca=xa,Sa=wa,Mr=fu,gr={map:va,forEach:au,count:Ai,toArray:Ti,only:wt};bn.Children=gr,bn.Component=Ne,bn.Fragment=s,bn.Profiler=l,bn.PureComponent=Dt,bn.StrictMode=u,bn.Suspense=b,bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,bn.cloneElement=Sa,bn.createContext=An,bn.createElement=Ca,bn.createFactory=Mr,bn.createRef=At,bn.forwardRef=ya,bn.isValidElement=Yt,bn.lazy=mo,bn.memo=ba,bn.useCallback=Wn,bn.useContext=uu,bn.useDebugValue=Xr,bn.useEffect=Pi,bn.useImperativeHandle=Vi,bn.useLayoutEffect=Zr,bn.useMemo=Es,bn.useReducer=lt,bn.useRef=yn,bn.useState=Br,bn.version=n}();process.env.NODE_ENV==="production"?sd.exports=xn:sd.exports=bn;var Bl=sd.exports,uy={sdkSemver:"1.13.1",techVersion:Bl.version,sdkCode:"J"},yX=function(e){Ek(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Bl.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new sY(this.imageRef.current,this.props.cldImg,this.props.plugins,uy)},t.prototype.componentDidUpdate=function(){Gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,uy)},t.prototype.componentWillUnmount=function(){Gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=Dk(n,["cldImg","plugins"]);if(T3())return Bl.createElement("img",od({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=WZ(this.props.plugins,this.props.cldImg,uy);return Bl.createElement("img",od({},r,{src:i}))},t}(Bl.Component),bX=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){Ek(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=sd.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new IZ(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){Gp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Gp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return bX.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=Dk(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Bl.createElement("video",od({},r,{ref:this.attachRef}))},t})(sd.exports.Component);function xX(e){return!(typeof e!="object"||e instanceof Array)}class $X{filterOutNonSupportedKeys(t,n){const r=Object.create({});return xX(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 iE=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class k3 extends $X{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,iE);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,iE);return new k3(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class ad{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class wX extends Error{constructor(t="Unsupported"){super(t)}}function O3(e){return new wX(e)}function CX(){return this._qualifierModel||{error:O3(`unsupported qualifier ${this.constructor.name}`)}}class SX{constructor(){this._qualifierModel={}}toJson(){return CX.apply(this)}}class Wm extends SX{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof ad?this.qualifierValue=n:(this.qualifierValue=new ad,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class Za extends Wm{constructor(t,n){let r;n?r=new ad([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function EX(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function DX(){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:O3(`unsupported action ${this.constructor.name}`)}}class AX{constructor(){this._actionModel={}}toJson(){return DX.apply(this)}}class I3 extends AX{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),EX(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Za(r)):this.qualifiers.set(n,new Wm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Za(t)):t instanceof Za&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function TX(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class PX extends I3{constructor(t){super(),this._actionModel={},this.addQualifier(new Wm("b",new ad(TX(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class oE{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:O3(`unsupported action ${this.constructor.name}`)}}}function _X(e){const t=e;return"error"in t&&!!t.error}function RX(){return new Za("lossy")}function MX(){return new Za("preserve_transparency")}function FX(e){return new Za("progressive",e)}class kX extends ad{constructor(t){super(t),this.val=t}getValue(){return this.val}}function al(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const OX={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},IX={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},LX={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},BX={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},VX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},NX={444:"CHROMA_444",420:"CHROMA_420"},jX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};al(NX);al(jX);al(OX);const KX=al(IX);al(LX);al(BX);al(VX);class UX extends I3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kX?i=n.getValue():i=n,this._actionModel.actionType=KX[t],this._actionModel[r]=i,this.addQualifier(new Wm(t,n))}}class zX extends Za{constructor(t){super("progressive",t)}}class Zp extends UX{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(RX()),this}progressive(t){return t instanceof zX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(FX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(MX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),o&&s.preserveTransparency(),s}}class Hm{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 oE(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Hm?this.actions=this.actions.concat(t.actions):this.actions.push(new oE(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 Zp("q",t)),this}format(t){return this.addAction(new Zp("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 PX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new I3;let r=t;return typeof t=="string"&&(r=new Za(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(_X(r))return r;t.push(r)}return{actions:t}}}class qX extends Hm{}class WX extends Hm{}function HX(e){return e.match(/^https?:\//)}function GX(e){return e.indexOf("/")<0}function YX(e){return e.match(/^v[0-9]+/)}function ZX(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function XX(e){return e||"image"}function JX(e){return e||"upload"}function QX(e,t,n){const r=n!==!1;return t?`v${t}`:YX(e)||HX(e)||GX(e)?"":r?"v1":""}function L3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=eJ(i,r/i.length)),i.slice(0,r)+String(e))}function eJ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const tJ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xp={};let sE=0;tJ.split("").forEach(e=>{let t=sE.toString(2);t=L3(t,6,"0"),Xp[t]=e,sE++});function nJ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function rJ(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 L3(t,2,"0")}).join(".")}function aE(e){let t="";const r=e.split(".").length*6,i=nJ(e),o=rJ(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=L3(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(l=>{t+=Xp[l]}),t}function iJ(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 oJ="1.21.0";function sJ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),s=i.padStart(6,"0");return Xp[o]+Xp[s]}function aJ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function uJ(e){const t={techVersion:aJ(),sdkCode:"T",sdkSemver:oJ.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 uE(e){const t=uJ(e),n=iJ(t);try{const r=lJ(n.techVersion),i=aE(n.sdkSemver),o=aE(r),s=sJ(n.osVersion),u=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${o}${h}${s}${u}`}catch{return"E"}}function lJ(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const lE={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class cJ{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new k3(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=XX(this.assetType),n=JX(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=lE[`${t}/${n}`],s=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(lE).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=ZX(this.cloudName,this.urlConfig),i=t?t.toString():"",o=QX(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,s.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",uE(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=${uE(n)}`);return d?`${u}?${d}`:u}}}class Vk extends cJ{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 Zp("q",t)),this}format(t){return this.addAction(new Zp("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 fJ extends Vk{constructor(t,n,r){super(t,n,r,new qX)}}class dJ extends Vk{constructor(t,n,r){super(t,n,r,new WX),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class hJ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new fJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new dJ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var ly,cE;function Nk(){if(cE)return ly;cE=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 ly=e,ly}var cy,fE;function pJ(){if(fE)return cy;fE=1;function e(){this.__data__=[],this.size=0}return cy=e,cy}var fy,dE;function B3(){if(dE)return fy;dE=1;function e(t,n){return t===n||t!==t&&n!==n}return fy=e,fy}var dy,hE;function Gm(){if(hE)return dy;hE=1;var e=B3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return dy=t,dy}var hy,pE;function mJ(){if(pE)return hy;pE=1;var e=Gm(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var u=o.length-1;return s==u?o.pop():n.call(o,s,1),--this.size,!0}return hy=r,hy}var py,mE;function gJ(){if(mE)return py;mE=1;var e=Gm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return py=t,py}var my,gE;function vJ(){if(gE)return my;gE=1;var e=Gm();function t(n){return e(this.__data__,n)>-1}return my=t,my}var gy,vE;function yJ(){if(vE)return gy;vE=1;var e=Gm();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return gy=t,gy}var vy,yE;function Ym(){if(yE)return vy;yE=1;var e=pJ(),t=mJ(),n=gJ(),r=vJ(),i=yJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,vy=o,vy}var yy,bE;function bJ(){if(bE)return yy;bE=1;var e=Ym();function t(){this.__data__=new e,this.size=0}return yy=t,yy}var by,xE;function xJ(){if(xE)return by;xE=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return by=e,by}var xy,$E;function $J(){if($E)return xy;$E=1;function e(t){return this.__data__.get(t)}return xy=e,xy}var $y,wE;function wJ(){if(wE)return $y;wE=1;function e(t){return this.__data__.has(t)}return $y=e,$y}var wy,CE;function Zm(){if(CE)return wy;CE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return wy=e,wy}var Cy,SE;function jk(){if(SE)return Cy;SE=1;var e=Tc(),t=Zm(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==o}return Cy=s,Cy}var Sy,EE;function CJ(){if(EE)return Sy;EE=1;var e=da(),t=e["__core-js_shared__"];return Sy=t,Sy}var Ey,DE;function SJ(){if(DE)return Ey;DE=1;var e=CJ(),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 Ey=n,Ey}var Dy,AE;function Kk(){if(AE)return Dy;AE=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 Dy=n,Dy}var Ay,TE;function EJ(){if(TE)return Ay;TE=1;var e=jk(),t=SJ(),n=Zm(),r=Kk(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:o;return b.test(r(g))}return Ay=m,Ay}var Ty,PE;function DJ(){if(PE)return Ty;PE=1;function e(t,n){return t==null?void 0:t[n]}return Ty=e,Ty}var Py,_E;function Rc(){if(_E)return Py;_E=1;var e=EJ(),t=DJ();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return Py=n,Py}var _y,RE;function V3(){if(RE)return _y;RE=1;var e=Rc(),t=da(),n=e(t,"Map");return _y=n,_y}var Ry,ME;function Xm(){if(ME)return Ry;ME=1;var e=Rc(),t=e(Object,"create");return Ry=t,Ry}var My,FE;function AJ(){if(FE)return My;FE=1;var e=Xm();function t(){this.__data__=e?e(null):{},this.size=0}return My=t,My}var Fy,kE;function TJ(){if(kE)return Fy;kE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Fy=e,Fy}var ky,OE;function PJ(){if(OE)return ky;OE=1;var e=Xm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var s=this.__data__;if(e){var u=s[o];return u===t?void 0:u}return r.call(s,o)?s[o]:void 0}return ky=i,ky}var Oy,IE;function _J(){if(IE)return Oy;IE=1;var e=Xm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return Oy=r,Oy}var Iy,LE;function RJ(){if(LE)return Iy;LE=1;var e=Xm(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return Iy=n,Iy}var Ly,BE;function MJ(){if(BE)return Ly;BE=1;var e=AJ(),t=TJ(),n=PJ(),r=_J(),i=RJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ly=o,Ly}var By,VE;function FJ(){if(VE)return By;VE=1;var e=MJ(),t=Ym(),n=V3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return By=r,By}var Vy,NE;function kJ(){if(NE)return Vy;NE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Vy=e,Vy}var Ny,jE;function Jm(){if(jE)return Ny;jE=1;var e=kJ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Ny=t,Ny}var jy,KE;function OJ(){if(KE)return jy;KE=1;var e=Jm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return jy=t,jy}var Ky,UE;function IJ(){if(UE)return Ky;UE=1;var e=Jm();function t(n){return e(this,n).get(n)}return Ky=t,Ky}var Uy,zE;function LJ(){if(zE)return Uy;zE=1;var e=Jm();function t(n){return e(this,n).has(n)}return Uy=t,Uy}var zy,qE;function BJ(){if(qE)return zy;qE=1;var e=Jm();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return zy=t,zy}var qy,WE;function N3(){if(WE)return qy;WE=1;var e=FJ(),t=OJ(),n=IJ(),r=LJ(),i=BJ();function o(s){var u=-1,l=s==null?0:s.length;for(this.clear();++u<l;){var d=s[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,qy=o,qy}var Wy,HE;function VJ(){if(HE)return Wy;HE=1;var e=Ym(),t=V3(),n=N3(),r=200;function i(o,s){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([o,s]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(o,s),this.size=u.size,this}return Wy=i,Wy}var Hy,GE;function Uk(){if(GE)return Hy;GE=1;var e=Ym(),t=bJ(),n=xJ(),r=$J(),i=wJ(),o=VJ();function s(u){var l=this.__data__=new e(u);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,Hy=s,Hy}var Gy,YE;function NJ(){if(YE)return Gy;YE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Gy=t,Gy}var Yy,ZE;function jJ(){if(ZE)return Yy;ZE=1;function e(t){return this.__data__.has(t)}return Yy=e,Yy}var Zy,XE;function KJ(){if(XE)return Zy;XE=1;var e=N3(),t=NJ(),n=jJ();function r(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Zy=r,Zy}var Xy,JE;function UJ(){if(JE)return Xy;JE=1;function e(t,n){return t.has(n)}return Xy=e,Xy}var Jy,QE;function zk(){if(QE)return Jy;QE=1;var e=KJ(),t=Nk(),n=UJ(),r=1,i=2;function o(s,u,l,d,h,m){var g=l&r,b=s.length,$=u.length;if(b!=$&&!(g&&$>b))return!1;var C=m.get(s),A=m.get(u);if(C&&A)return C==u&&A==s;var S=-1,w=!0,D=l&i?new e:void 0;for(m.set(s,u),m.set(u,s);++S<b;){var O=s[S],R=u[S];if(d)var k=g?d(R,O,S,u,s,m):d(O,R,S,s,u,m);if(k!==void 0){if(k)continue;w=!1;break}if(D){if(!t(u,function(j,M){if(!n(D,M)&&(O===j||h(O,j,l,d,m)))return D.push(M)})){w=!1;break}}else if(!(O===R||h(O,R,l,d,m))){w=!1;break}}return m.delete(s),m.delete(u),w}return Jy=o,Jy}var Qy,eD;function zJ(){if(eD)return Qy;eD=1;var e=da(),t=e.Uint8Array;return Qy=t,Qy}var e0,tD;function qJ(){if(tD)return e0;tD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return e0=e,e0}var t0,nD;function WJ(){if(nD)return t0;nD=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return t0=e,t0}var n0,rD;function HJ(){if(rD)return n0;rD=1;var e=Vm(),t=zJ(),n=B3(),r=zk(),i=qJ(),o=WJ(),s=1,u=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",$="[object Set]",C="[object String]",A="[object Symbol]",S="[object ArrayBuffer]",w="[object DataView]",D=e?e.prototype:void 0,O=D?D.valueOf:void 0;function R(k,j,M,ue,ae,W,De){switch(M){case w:if(k.byteLength!=j.byteLength||k.byteOffset!=j.byteOffset)return!1;k=k.buffer,j=j.buffer;case S:return!(k.byteLength!=j.byteLength||!W(new t(k),new t(j)));case l:case d:case g:return n(+k,+j);case h:return k.name==j.name&&k.message==j.message;case b:case C:return k==j+"";case m:var q=i;case $:var K=ue&s;if(q||(q=o),k.size!=j.size&&!K)return!1;var ne=De.get(k);if(ne)return ne==j;ue|=u,De.set(k,j);var U=r(q(k),q(j),ue,ae,W,De);return De.delete(k),U;case A:if(O)return O.call(k)==O.call(j)}return!1}return n0=R,n0}var r0,iD;function GJ(){if(iD)return r0;iD=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return r0=e,r0}var i0,oD;function pa(){if(oD)return i0;oD=1;var e=Array.isArray;return i0=e,i0}var o0,sD;function YJ(){if(sD)return o0;sD=1;var e=GJ(),t=pa();function n(r,i,o){var s=i(r);return t(r)?s:e(s,o(r))}return o0=n,o0}var s0,aD;function ZJ(){if(aD)return s0;aD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,s=[];++r<i;){var u=t[r];n(u,r,t)&&(s[o++]=u)}return s}return s0=e,s0}var a0,uD;function XJ(){if(uD)return a0;uD=1;function e(){return[]}return a0=e,a0}var u0,lD;function JJ(){if(lD)return u0;lD=1;var e=ZJ(),t=XJ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(u){return r.call(s,u)}))}:t;return u0=o,u0}var l0,cD;function QJ(){if(cD)return l0;cD=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return l0=e,l0}var c0,fD;function eQ(){if(fD)return c0;fD=1;var e=Tc(),t=Pc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return c0=r,c0}var f0,dD;function qk(){if(dD)return f0;dD=1;var e=eQ(),t=Pc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return f0=o,f0}var _f={exports:{}},d0,hD;function tQ(){if(hD)return d0;hD=1;function e(){return!1}return d0=e,d0}_f.exports;var pD;function Wk(){return pD||(pD=1,function(e,t){var n=da(),r=tQ(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,u=s?n.Buffer:void 0,l=u?u.isBuffer:void 0,d=l||r;e.exports=d}(_f,_f.exports)),_f.exports}var h0,mD;function j3(){if(mD)return h0;mD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return h0=n,h0}var p0,gD;function K3(){if(gD)return p0;gD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return p0=t,p0}var m0,vD;function nQ(){if(vD)return m0;vD=1;var e=Tc(),t=K3(),n=Pc(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",$="[object String]",C="[object WeakMap]",A="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",O="[object Int8Array]",R="[object Int16Array]",k="[object Int32Array]",j="[object Uint8Array]",M="[object Uint8ClampedArray]",ue="[object Uint16Array]",ae="[object Uint32Array]",W={};W[w]=W[D]=W[O]=W[R]=W[k]=W[j]=W[M]=W[ue]=W[ae]=!0,W[r]=W[i]=W[A]=W[o]=W[S]=W[s]=W[u]=W[l]=W[d]=W[h]=W[m]=W[g]=W[b]=W[$]=W[C]=!1;function De(q){return n(q)&&t(q.length)&&!!W[e(q)]}return m0=De,m0}var g0,yD;function rQ(){if(yD)return g0;yD=1;function e(t){return function(n){return t(n)}}return g0=e,g0}var Rf={exports:{}};Rf.exports;var bD;function iQ(){return bD||(bD=1,function(e,t){var n=NF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=u}(Rf,Rf.exports)),Rf.exports}var v0,xD;function Hk(){if(xD)return v0;xD=1;var e=nQ(),t=rQ(),n=iQ(),r=n&&n.isTypedArray,i=r?t(r):e;return v0=i,v0}var y0,$D;function oQ(){if($D)return y0;$D=1;var e=QJ(),t=qk(),n=pa(),r=Wk(),i=j3(),o=Hk(),s=Object.prototype,u=s.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),$=!m&&!g&&!b&&o(d),C=m||g||b||$,A=C?e(d.length,String):[],S=A.length;for(var w in d)(h||u.call(d,w))&&!(C&&(w=="length"||b&&(w=="offset"||w=="parent")||$&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,S)))&&A.push(w);return A}return y0=l,y0}var b0,wD;function sQ(){if(wD)return b0;wD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return b0=t,b0}var x0,CD;function aQ(){if(CD)return x0;CD=1;function e(t,n){return function(r){return t(n(r))}}return x0=e,x0}var $0,SD;function uQ(){if(SD)return $0;SD=1;var e=aQ(),t=e(Object.keys,Object);return $0=t,$0}var w0,ED;function lQ(){if(ED)return w0;ED=1;var e=sQ(),t=uQ(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var u in Object(o))r.call(o,u)&&u!="constructor"&&s.push(u);return s}return w0=i,w0}var C0,DD;function U3(){if(DD)return C0;DD=1;var e=jk(),t=K3();function n(r){return r!=null&&t(r.length)&&!e(r)}return C0=n,C0}var S0,AD;function z3(){if(AD)return S0;AD=1;var e=oQ(),t=lQ(),n=U3();function r(i){return n(i)?e(i):t(i)}return S0=r,S0}var E0,TD;function cQ(){if(TD)return E0;TD=1;var e=YJ(),t=JJ(),n=z3();function r(i){return e(i,n,t)}return E0=r,E0}var D0,PD;function fQ(){if(PD)return D0;PD=1;var e=cQ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,s,u,l,d,h){var m=u&t,g=e(o),b=g.length,$=e(s),C=$.length;if(b!=C&&!m)return!1;for(var A=b;A--;){var S=g[A];if(!(m?S in s:r.call(s,S)))return!1}var w=h.get(o),D=h.get(s);if(w&&D)return w==s&&D==o;var O=!0;h.set(o,s),h.set(s,o);for(var R=m;++A<b;){S=g[A];var k=o[S],j=s[S];if(l)var M=m?l(j,k,S,s,o,h):l(k,j,S,o,s,h);if(!(M===void 0?k===j||d(k,j,u,l,h):M)){O=!1;break}R||(R=S=="constructor")}if(O&&!R){var ue=o.constructor,ae=s.constructor;ue!=ae&&"constructor"in o&&"constructor"in s&&!(typeof ue=="function"&&ue instanceof ue&&typeof ae=="function"&&ae instanceof ae)&&(O=!1)}return h.delete(o),h.delete(s),O}return D0=i,D0}var A0,_D;function dQ(){if(_D)return A0;_D=1;var e=Rc(),t=da(),n=e(t,"DataView");return A0=n,A0}var T0,RD;function hQ(){if(RD)return T0;RD=1;var e=Rc(),t=da(),n=e(t,"Promise");return T0=n,T0}var P0,MD;function pQ(){if(MD)return P0;MD=1;var e=Rc(),t=da(),n=e(t,"Set");return P0=n,P0}var _0,FD;function mQ(){if(FD)return _0;FD=1;var e=Rc(),t=da(),n=e(t,"WeakMap");return _0=n,_0}var R0,kD;function gQ(){if(kD)return R0;kD=1;var e=dQ(),t=V3(),n=hQ(),r=pQ(),i=mQ(),o=Tc(),s=Kk(),u="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=s(e),$=s(t),C=s(n),A=s(r),S=s(i),w=o;return(e&&w(new e(new ArrayBuffer(1)))!=g||t&&w(new t)!=u||n&&w(n.resolve())!=d||r&&w(new r)!=h||i&&w(new i)!=m)&&(w=function(D){var O=o(D),R=O==l?D.constructor:void 0,k=R?s(R):"";if(k)switch(k){case b:return g;case $:return u;case C:return d;case A:return h;case S:return m}return O}),R0=w,R0}var M0,OD;function vQ(){if(OD)return M0;OD=1;var e=Uk(),t=zk(),n=HJ(),r=fQ(),i=gQ(),o=pa(),s=Wk(),u=Hk(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function $(C,A,S,w,D,O){var R=o(C),k=o(A),j=R?h:i(C),M=k?h:i(A);j=j==d?m:j,M=M==d?m:M;var ue=j==m,ae=M==m,W=j==M;if(W&&s(C)){if(!s(A))return!1;R=!0,ue=!1}if(W&&!ue)return O||(O=new e),R||u(C)?t(C,A,S,w,D,O):n(C,A,j,S,w,D,O);if(!(S&l)){var De=ue&&b.call(C,"__wrapped__"),q=ae&&b.call(A,"__wrapped__");if(De||q){var K=De?C.value():C,ne=q?A.value():A;return O||(O=new e),D(K,ne,S,w,O)}}return W?(O||(O=new e),r(C,A,S,w,D,O)):!1}return M0=$,M0}var F0,ID;function Gk(){if(ID)return F0;ID=1;var e=vQ(),t=Pc();function n(r,i,o,s,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,s,n,u)}return F0=n,F0}var k0,LD;function yQ(){if(LD)return k0;LD=1;var e=Uk(),t=Gk(),n=1,r=2;function i(o,s,u,l){var d=u.length,h=d,m=!l;if(o==null)return!h;for(o=Object(o);d--;){var g=u[d];if(m&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<h;){g=u[d];var b=g[0],$=o[b],C=g[1];if(m&&g[2]){if($===void 0&&!(b in o))return!1}else{var A=new e;if(l)var S=l($,C,b,o,s,A);if(!(S===void 0?t(C,$,n|r,l,A):S))return!1}}return!0}return k0=i,k0}var O0,BD;function Yk(){if(BD)return O0;BD=1;var e=Zm();function t(n){return n===n&&!e(n)}return O0=t,O0}var I0,VD;function bQ(){if(VD)return I0;VD=1;var e=Yk(),t=z3();function n(r){for(var i=t(r),o=i.length;o--;){var s=i[o],u=r[s];i[o]=[s,u,e(u)]}return i}return I0=n,I0}var L0,ND;function Zk(){if(ND)return L0;ND=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return L0=e,L0}var B0,jD;function xQ(){if(jD)return B0;jD=1;var e=yQ(),t=bQ(),n=Zk();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return B0=r,B0}var V0,KD;function q3(){if(KD)return V0;KD=1;var e=Tc(),t=Pc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return V0=r,V0}var N0,UD;function W3(){if(UD)return N0;UD=1;var e=pa(),t=q3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){if(e(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||s!=null&&o in Object(s)}return N0=i,N0}var j0,zD;function $Q(){if(zD)return j0;zD=1;var e=N3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,u=i?i.apply(this,s):s[0],l=o.cache;if(l.has(u))return l.get(u);var d=r.apply(this,s);return o.cache=l.set(u,d)||l,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,j0=n,j0}var K0,qD;function wQ(){if(qD)return K0;qD=1;var e=$Q(),t=500;function n(r){var i=e(r,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return K0=n,K0}var U0,WD;function CQ(){if(WD)return U0;WD=1;var e=wQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,u,l,d){o.push(l?d.replace(n,"$1"):u||s)}),o});return U0=r,U0}var z0,HD;function SQ(){if(HD)return z0;HD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return z0=e,z0}var q0,GD;function EQ(){if(GD)return q0;GD=1;var e=Vm(),t=SQ(),n=pa(),r=q3(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return o?o.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return q0=s,q0}var W0,YD;function DQ(){if(YD)return W0;YD=1;var e=EQ();function t(n){return n==null?"":e(n)}return W0=t,W0}var H0,ZD;function Xk(){if(ZD)return H0;ZD=1;var e=pa(),t=W3(),n=CQ(),r=DQ();function i(o,s){return e(o)?o:t(o,s)?[o]:n(r(o))}return H0=i,H0}var G0,XD;function Qm(){if(XD)return G0;XD=1;var e=q3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return G0=t,G0}var Y0,JD;function Jk(){if(JD)return Y0;JD=1;var e=Xk(),t=Qm();function n(r,i){i=e(i,r);for(var o=0,s=i.length;r!=null&&o<s;)r=r[t(i[o++])];return o&&o==s?r:void 0}return Y0=n,Y0}var Z0,QD;function AQ(){if(QD)return Z0;QD=1;var e=Jk();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return Z0=t,Z0}var X0,eA;function TQ(){if(eA)return X0;eA=1;function e(t,n){return t!=null&&n in Object(t)}return X0=e,X0}var J0,tA;function PQ(){if(tA)return J0;tA=1;var e=Xk(),t=qk(),n=pa(),r=j3(),i=K3(),o=Qm();function s(u,l,d){l=e(l,u);for(var h=-1,m=l.length,g=!1;++h<m;){var b=o(l[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return J0=s,J0}var Q0,nA;function _Q(){if(nA)return Q0;nA=1;var e=TQ(),t=PQ();function n(r,i){return r!=null&&t(r,i,e)}return Q0=n,Q0}var e1,rA;function RQ(){if(rA)return e1;rA=1;var e=Gk(),t=AQ(),n=_Q(),r=W3(),i=Yk(),o=Zk(),s=Qm(),u=1,l=2;function d(h,m){return r(h)&&i(m)?o(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|l)}}return e1=d,e1}var t1,iA;function MQ(){if(iA)return t1;iA=1;function e(t){return t}return t1=e,t1}var n1,oA;function FQ(){if(oA)return n1;oA=1;function e(t){return function(n){return n==null?void 0:n[t]}}return n1=e,n1}var r1,sA;function kQ(){if(sA)return r1;sA=1;var e=Jk();function t(n){return function(r){return e(r,n)}}return r1=t,r1}var i1,aA;function OQ(){if(aA)return i1;aA=1;var e=FQ(),t=kQ(),n=W3(),r=Qm();function i(o){return n(o)?e(r(o)):t(o)}return i1=i,i1}var o1,uA;function IQ(){if(uA)return o1;uA=1;var e=xQ(),t=RQ(),n=MQ(),r=pa(),i=OQ();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return o1=o,o1}var s1,lA;function LQ(){if(lA)return s1;lA=1;function e(t){return function(n,r,i){for(var o=-1,s=Object(n),u=i(n),l=u.length;l--;){var d=u[t?l:++o];if(r(s[d],d,s)===!1)break}return n}}return s1=e,s1}var a1,cA;function BQ(){if(cA)return a1;cA=1;var e=LQ(),t=e();return a1=t,a1}var u1,fA;function VQ(){if(fA)return u1;fA=1;var e=BQ(),t=z3();function n(r,i){return r&&e(r,i,t)}return u1=n,u1}var l1,dA;function NQ(){if(dA)return l1;dA=1;var e=U3();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var s=i.length,u=r?s:-1,l=Object(i);(r?u--:++u<s)&&o(l[u],u,l)!==!1;);return i}}return l1=t,l1}var c1,hA;function jQ(){if(hA)return c1;hA=1;var e=VQ(),t=NQ(),n=t(e);return c1=n,c1}var f1,pA;function KQ(){if(pA)return f1;pA=1;var e=jQ();function t(n,r){var i;return e(n,function(o,s,u){return i=r(o,s,u),!i}),!!i}return f1=t,f1}var d1,mA;function UQ(){if(mA)return d1;mA=1;var e=B3(),t=U3(),n=j3(),r=Zm();function i(o,s,u){if(!r(u))return!1;var l=typeof s;return(l=="number"?t(u)&&n(s,u.length):l=="string"&&s in u)?e(u[s],o):!1}return d1=i,d1}var h1,gA;function zQ(){if(gA)return h1;gA=1;var e=Nk(),t=IQ(),n=KQ(),r=pa(),i=UQ();function o(s,u,l){var d=r(s)?e:n;return l&&i(s,u,l)&&(u=void 0),d(s,t(u,3))}return h1=o,h1}var qQ=zQ();const WQ=Bo(qQ);var p1={exports:{}},vA;function HQ(){return vA||(vA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
137
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
138
|
-
*
|
|
139
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
140
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
141
|
-
* @namespace
|
|
142
|
-
* @public
|
|
143
|
-
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function w(D){return D instanceof l?new l(D.type,w(D.content),D.alias):Array.isArray(D)?D.map(w):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(D,O){O=O||{};var R,k;switch(u.util.type(D)){case"Object":if(k=u.util.objId(D),O[k])return O[k];R={},O[k]=R;for(var j in D)D.hasOwnProperty(j)&&(R[j]=w(D[j],O));return R;case"Array":return k=u.util.objId(D),O[k]?O[k]:(R=[],O[k]=R,D.forEach(function(M,ue){R[ue]=w(M,O)}),R);default:return D}},getLanguage:function(w){for(;w;){var D=i.exec(w.className);if(D)return D[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,D){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(R){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(R.stack)||[])[1];if(w){var D=document.getElementsByTagName("script");for(var O in D)if(D[O].src==w)return D[O]}return null}},isActive:function(w,D,O){for(var R="no-"+D;w;){var k=w.classList;if(k.contains(D))return!0;if(k.contains(R))return!1;w=w.parentElement}return!!O}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,D){var O=u.util.clone(u.languages[w]);for(var R in D)O[R]=D[R];return O},insertBefore:function(w,D,O,R){R=R||u.languages;var k=R[w],j={};for(var M in k)if(k.hasOwnProperty(M)){if(M==D)for(var ue in O)O.hasOwnProperty(ue)&&(j[ue]=O[ue]);O.hasOwnProperty(M)||(j[M]=k[M])}var ae=R[w];return R[w]=j,u.languages.DFS(u.languages,function(W,De){De===ae&&W!=w&&(this[W]=j)}),j},DFS:function w(D,O,R,k){k=k||{};var j=u.util.objId;for(var M in D)if(D.hasOwnProperty(M)){O.call(D,M,D[M],R||M);var ue=D[M],ae=u.util.type(ue);ae==="Object"&&!k[j(ue)]?(k[j(ue)]=!0,w(ue,O,null,k)):ae==="Array"&&!k[j(ue)]&&(k[j(ue)]=!0,w(ue,O,M,k))}}},plugins:{},highlightAll:function(w,D){u.highlightAllUnder(document,w,D)},highlightAllUnder:function(w,D,O){var R={callback:O,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",R),R.elements=Array.prototype.slice.apply(R.container.querySelectorAll(R.selector)),u.hooks.run("before-all-elements-highlight",R);for(var k=0,j;j=R.elements[k++];)u.highlightElement(j,D===!0,R.callback)},highlightElement:function(w,D,O){var R=u.util.getLanguage(w),k=u.languages[R];u.util.setLanguage(w,R);var j=w.parentElement;j&&j.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(j,R);var M=w.textContent,ue={element:w,language:R,grammar:k,code:M};function ae(De){ue.highlightedCode=De,u.hooks.run("before-insert",ue),ue.element.innerHTML=ue.highlightedCode,u.hooks.run("after-highlight",ue),u.hooks.run("complete",ue),O&&O.call(ue.element)}if(u.hooks.run("before-sanity-check",ue),j=ue.element.parentElement,j&&j.nodeName.toLowerCase()==="pre"&&!j.hasAttribute("tabindex")&&j.setAttribute("tabindex","0"),!ue.code){u.hooks.run("complete",ue),O&&O.call(ue.element);return}if(u.hooks.run("before-highlight",ue),!ue.grammar){ae(u.util.encode(ue.code));return}if(D&&r.Worker){var W=new Worker(u.filename);W.onmessage=function(De){ae(De.data)},W.postMessage(JSON.stringify({language:ue.language,code:ue.code,immediateClose:!0}))}else ae(u.highlight(ue.code,ue.grammar,ue.language))},highlight:function(w,D,O){var R={code:w,grammar:D,language:O};if(u.hooks.run("before-tokenize",R),!R.grammar)throw new Error('The language "'+R.language+'" has no grammar.');return R.tokens=u.tokenize(R.code,R.grammar),u.hooks.run("after-tokenize",R),l.stringify(u.util.encode(R.tokens),R.language)},tokenize:function(w,D){var O=D.rest;if(O){for(var R in O)D[R]=O[R];delete D.rest}var k=new m;return g(k,k.head,w),h(w,k,D,k.head,0),$(k)},hooks:{all:{},add:function(w,D){var O=u.hooks.all;O[w]=O[w]||[],O[w].push(D)},run:function(w,D){var O=u.hooks.all[w];if(!(!O||!O.length))for(var R=0,k;k=O[R++];)k(D)}},Token:l};r.Prism=u;function l(w,D,O,R){this.type=w,this.content=D,this.alias=O,this.length=(R||"").length|0}l.stringify=function w(D,O){if(typeof D=="string")return D;if(Array.isArray(D)){var R="";return D.forEach(function(ae){R+=w(ae,O)}),R}var k={type:D.type,content:w(D.content,O),tag:"span",classes:["token",D.type],attributes:{},language:O},j=D.alias;j&&(Array.isArray(j)?Array.prototype.push.apply(k.classes,j):k.classes.push(j)),u.hooks.run("wrap",k);var M="";for(var ue in k.attributes)M+=" "+ue+'="'+(k.attributes[ue]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+M+">"+k.content+"</"+k.tag+">"};function d(w,D,O,R){w.lastIndex=D;var k=w.exec(O);if(k&&R&&k[1]){var j=k[1].length;k.index+=j,k[0]=k[0].slice(j)}return k}function h(w,D,O,R,k,j){for(var M in O)if(!(!O.hasOwnProperty(M)||!O[M])){var ue=O[M];ue=Array.isArray(ue)?ue:[ue];for(var ae=0;ae<ue.length;++ae){if(j&&j.cause==M+","+ae)return;var W=ue[ae],De=W.inside,q=!!W.lookbehind,K=!!W.greedy,ne=W.alias;if(K&&!W.pattern.global){var U=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,U+"g")}for(var N=W.pattern||W,I=R.next,de=k;I!==D.tail&&!(j&&de>=j.reach);de+=I.value.length,I=I.next){var se=I.value;if(D.length>w.length)return;if(!(se instanceof l)){var ie=1,Ae;if(K){if(Ae=d(N,de,w,q),!Ae||Ae.index>=w.length)break;var Je=Ae.index,Pe=Ae.index+Ae[0].length,Ie=de;for(Ie+=I.value.length;Je>=Ie;)I=I.next,Ie+=I.value.length;if(Ie-=I.value.length,de=Ie,I.value instanceof l)continue;for(var Le=I;Le!==D.tail&&(Ie<Pe||typeof Le.value=="string");Le=Le.next)ie++,Ie+=Le.value.length;ie--,se=w.slice(de,Ie),Ae.index-=de}else if(Ae=d(N,0,se,q),!Ae)continue;var Je=Ae.index,Qe=Ae[0],ye=se.slice(0,Je),Ne=se.slice(Je+Qe.length),He=de+se.length;j&&He>j.reach&&(j.reach=He);var Ke=I.prev;ye&&(Ke=g(D,Ke,ye),de+=ye.length),b(D,Ke,ie);var Be=new l(M,De?u.tokenize(Qe,De):Qe,ne,Qe);if(I=g(D,Ke,Be),Ne&&g(D,I,Ne),ie>1){var st={cause:M+","+ae,reach:He};h(w,D,O,I.prev,de,st),j&&st.reach>j.reach&&(j.reach=st.reach)}}}}}}function m(){var w={value:null,prev:null,next:null},D={value:null,prev:w,next:null};w.next=D,this.head=w,this.tail=D,this.length=0}function g(w,D,O){var R=D.next,k={value:O,prev:D,next:R};return D.next=k,R.prev=k,w.length++,k}function b(w,D,O){for(var R=D.next,k=0;k<O&&R!==w.tail;k++)R=R.next;D.next=R,R.prev=D,w.length-=k}function $(w){for(var D=[],O=w.head.next;O!==w.tail;)D.push(O.value),O=O.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(w){var D=JSON.parse(w.data),O=D.language,R=D.code,k=D.immediateClose;r.postMessage(u.highlight(R,u.languages[O],O)),k&&r.close()},!1)),u;var C=u.util.currentScript();C&&(u.filename=C.src,C.hasAttribute("data-manual")&&(u.manual=!0));function A(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return u}(t);e.exports&&(e.exports=n),typeof so<"u"&&(so.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(C,A){return"✖ Error "+C+" while fetching file: "+A},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(C,A,S){var w=new XMLHttpRequest;w.open("GET",C,!0),w.onreadystatechange=function(){w.readyState==4&&(w.status<400&&w.responseText?A(w.responseText):w.status>=400?S(i(w.status,w.statusText)):S(o))},w.send(null)}function b(C){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C||"");if(A){var S=Number(A[1]),w=A[2],D=A[3];return w?D?[S,Number(D)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(C){C.selector+=", "+m}),n.hooks.add("before-sanity-check",function(C){var A=C.element;if(A.matches(m)){C.code="",A.setAttribute(u,l);var S=A.appendChild(document.createElement("CODE"));S.textContent=r;var w=A.getAttribute("data-src"),D=C.language;if(D==="none"){var O=(/\.(\w+)$/.exec(w)||[,"none"])[1];D=s[O]||O}n.util.setLanguage(S,D),n.util.setLanguage(A,D);var R=n.plugins.autoloader;R&&R.loadLanguages(D),g(w,function(k){A.setAttribute(u,d);var j=b(A.getAttribute("data-range"));if(j){var M=k.split(/\r\n?|\n/g),ue=j[0],ae=j[1]==null?M.length:j[1];ue<0&&(ue+=M.length),ue=Math.max(0,Math.min(ue-1,M.length)),ae<0&&(ae+=M.length),ae=Math.max(0,Math.min(ae,M.length)),k=M.slice(ue,ae).join(`
|
|
144
|
-
`),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ue+1))}S.textContent=k,n.highlightElement(S)},function(k){A.setAttribute(u,h),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(A){for(var S=(A||document).querySelectorAll(m),w=0,D;D=S[w++];)n.highlightElement(D)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(p1)),p1.exports}var GQ=HQ();(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 o(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var $=getComputedStyle(g),C=getComputedStyle(b);function A(S){return+S.substr(0,S.length-2)}return b.offsetTop+A(C.borderTopWidth)+A(C.paddingTop)-A($.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,$,C){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var A=$.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,w=s()?parseInt:parseFloat,D=w(getComputedStyle(b).lineHeight),O=Prism.util.isActive(b,e),R=b.querySelector("code"),k=O?b:R||b,j=[],M=R.textContent.match(n),ue=M?M.length+1:1,ae=!R||k==R?0:u(b,R);A.forEach(function(q){var K=q.split("-"),ne=+K[0],U=+K[1]||ne;if(U=Math.min(ue+S,U),!(U<ne)){var N=b.querySelector('.line-highlight[data-range="'+q+'"]')||document.createElement("div");if(j.push(function(){N.setAttribute("aria-hidden","true"),N.setAttribute("data-range",q),N.className=(C||"")+" line-highlight"}),O&&Prism.plugins.lineNumbers){var I=Prism.plugins.lineNumbers.getLine(b,ne),de=Prism.plugins.lineNumbers.getLine(b,U);if(I){var se=I.offsetTop+ae+"px";j.push(function(){N.style.top=se})}if(de){var ie=de.offsetTop-I.offsetTop+de.offsetHeight+"px";j.push(function(){N.style.height=ie})}}else j.push(function(){N.setAttribute("data-start",String(ne)),U>ne&&N.setAttribute("data-end",String(U)),N.style.top=(ne-S-1)*D+ae+"px",N.textContent=new Array(U-ne+2).join(`
|
|
145
|
-
`)});j.push(function(){N.style.width=b.scrollWidth+"px"}),j.push(function(){k.appendChild(N)})}});var W=b.id;if(O&&Prism.util.isActive(b,t)&&W){i(b,t)||j.push(function(){b.classList.add(t)});var De=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(q,K){var ne=K+De;q.onclick=function(){var U=W+"."+ne;d=!1,location.hash=U,setTimeout(function(){d=!0},1)}})}return function(){j.forEach(o)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),C=document.getElementById($);if(C){C.hasAttribute("data-line")||C.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(C,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(C){$+=C.textContent.length,C.parentNode.removeChild(C)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var C=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&C&&!A)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines($);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(o)})})();const Qk=T.createContext({});function Bd(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const H3=T.createContext(null),G3=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function YQ(e=!0){const t=T.useContext(H3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=T.useId();T.useEffect(()=>{e&&i(o)},[e]);const s=T.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Y3=typeof window<"u",e7=Y3?T.useLayoutEffect:T.useEffect,Ci=e=>e;let Mc=Ci,$s=Ci;process.env.NODE_ENV!=="production"&&(Mc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$s=(e,t)=>{if(!e)throw new Error(t)});function Z3(e){let t;return()=>(t===void 0&&(t=e()),t)}const hc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ys=e=>e*1e3,ia=e=>e/1e3,ZQ={useManualTiming:!1},qh=["read","resolveKeyframes","update","preRender","render","postRender"];function XQ(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&s.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,d.process(h))}};return d}const JQ=40;function t7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=qh.reduce((S,w)=>(S[w]=XQ(o),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=s,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,JQ),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},$=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:qh.reduce((S,w)=>{const D=s[w];return S[w]=(O,R=!1,k=!1)=>(n||$(),D.schedule(O,R,k)),S},{}),cancel:S=>{for(let w=0;w<qh.length;w++)s[qh[w]].cancel(S)},state:i,steps:s}}const{schedule:Dn,cancel:ua,state:Or,steps:m1}=t7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ci,!0),n7=T.createContext({strict:!1}),yA={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"]},pc={};for(const e in yA)pc[e]={isEnabled:t=>yA[e].some(n=>!!t[n])};function QQ(e){for(const t in e)pc[t]={...pc[t],...e[t]}}const eee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Jp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eee.has(e)}let r7=e=>!Jp(e);function tee(e){e&&(r7=t=>t.startsWith("on")?!Jp(t):e(t))}try{tee(require("@emotion/is-prop-valid").default)}catch{}function nee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(r7(i)||n===!0&&Jp(i)||!t&&!Jp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bA=new Set;function eg(e,t,n){e||bA.has(t)||(console.warn(t),bA.add(t))}function ree(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&eg(!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 tg=T.createContext({});function ng(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ud(e){return typeof e=="string"||Array.isArray(e)}const X3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J3=["initial",...X3];function rg(e){return ng(e.animate)||J3.some(t=>ud(e[t]))}function i7(e){return!!(rg(e)||e.variants)}function iee(e,t){if(rg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ud(n)?n:void 0,animate:ud(r)?r:void 0}}return e.inherit!==!1?t:{}}function oee(e){const{initial:t,animate:n}=iee(e,T.useContext(tg));return T.useMemo(()=>({initial:t,animate:n}),[xA(t),xA(n)])}function xA(e){return Array.isArray(e)?e.join(" "):e}const see=Symbol.for("motionComponentSymbol");function Vl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function aee(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):Vl(n)&&(n.current=r))},[t])}const Q3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uee="framerAppearId",o7="data-"+Q3(uee),{schedule:ex}=t7(queueMicrotask,!1),s7=T.createContext({});function lee(e,t,n,r,i){var o,s;const{visualElement:u}=T.useContext(tg),l=T.useContext(n7),d=T.useContext(H3),h=T.useContext(G3).reducedMotion,m=T.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=T.useContext(s7);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&cee(m.current,n,i,b);const $=T.useRef(!1);T.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const C=n[o7],A=T.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return e7(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),ex.render(g.render),A.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!A.current&&g.animationState&&g.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,C)}),A.current=!1))}),g}function cee(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:a7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||u&&Vl(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function a7(e){if(e)return e.options.allowProjection!==!1?e.projection:a7(e.parent)}function fee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&QQ(e);function u(d,h){let m;const g={...T.useContext(G3),...d,layoutId:dee(d)},{isStatic:b}=g,$=oee(d),C=r(d,b);if(!b&&Y3){hee(g,e);const A=pee(g);m=A.MeasureLayout,$.visualElement=lee(i,C,g,t,A.ProjectionNode)}return sa.jsxs(tg.Provider,{value:$,children:[m&&$.visualElement?sa.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,aee(C,$.visualElement,h),C,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const l=T.forwardRef(u);return l[see]=i,l}function dee({layoutId:e}){const t=T.useContext(Qk).id;return t&&e!==void 0?t+"-"+e:e}function hee(e,t){const n=T.useContext(n7).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?Mc(!1,r):$s(!1,r)}}function pee(e){const{drag:t,layout:n}=pc;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 u7=e=>t=>typeof t=="string"&&t.startsWith(e),tx=u7("--"),mee=u7("var(--"),nx=e=>mee(e)?gee.test(e.split("/*")[0].trim()):!1,gee=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ld={};function vee(e){for(const t in e)ld[t]=e[t],tx(t)&&(ld[t].isCSSVariable=!0)}const Fc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ul=new Set(Fc);function l7(e,{layout:t,layoutId:n}){return ul.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ld[e]||e==="opacity")}const Ir=e=>!!(e&&e.getVelocity),c7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,la=(e,t,n)=>n>t?t:n<e?e:n,kc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},cd={...kc,transform:e=>la(0,1,e)},Wh={...kc,default:1},Vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Va=Vd("deg"),bs=Vd("%"),Ft=Vd("px"),yee=Vd("vh"),bee=Vd("vw"),$A={...bs,parse:e=>bs.parse(e)/100,transform:e=>bs.transform(e*100)},xee={borderWidth:Ft,borderTopWidth:Ft,borderRightWidth:Ft,borderBottomWidth:Ft,borderLeftWidth:Ft,borderRadius:Ft,radius:Ft,borderTopLeftRadius:Ft,borderTopRightRadius:Ft,borderBottomRightRadius:Ft,borderBottomLeftRadius:Ft,width:Ft,maxWidth:Ft,height:Ft,maxHeight:Ft,top:Ft,right:Ft,bottom:Ft,left:Ft,padding:Ft,paddingTop:Ft,paddingRight:Ft,paddingBottom:Ft,paddingLeft:Ft,margin:Ft,marginTop:Ft,marginRight:Ft,marginBottom:Ft,marginLeft:Ft,backgroundPositionX:Ft,backgroundPositionY:Ft},$ee={rotate:Va,rotateX:Va,rotateY:Va,rotateZ:Va,scale:Wh,scaleX:Wh,scaleY:Wh,scaleZ:Wh,skew:Va,skewX:Va,skewY:Va,distance:Ft,translateX:Ft,translateY:Ft,translateZ:Ft,x:Ft,y:Ft,z:Ft,perspective:Ft,transformPerspective:Ft,opacity:cd,originX:$A,originY:$A,originZ:Ft},wA={...kc,transform:Math.round},rx={...xee,...$ee,zIndex:wA,size:Ft,fillOpacity:cd,strokeOpacity:cd,numOctaves:wA},wee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Cee=Fc.length;function See(e,t,n){let r="",i=!0;for(let o=0;o<Cee;o++){const s=Fc[o],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=c7(u,rx[s]);if(!l){i=!1;const h=wee[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ix(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,u=!1;for(const l in t){const d=t[l];if(ul.has(l)){s=!0;continue}else if(tx(l)){i[l]=d;continue}else{const h=c7(d,rx[l]);l.startsWith("origin")?(u=!0,o[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=See(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${l} ${d} ${h}`}}const ox=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function f7(e,t,n){for(const r in t)!Ir(t[r])&&!l7(r,n)&&(e[r]=t[r])}function Eee({transformTemplate:e},t){return T.useMemo(()=>{const n=ox();return ix(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dee(e,t){const n=e.style||{},r={};return f7(r,n,e),Object.assign(r,Eee(e,t)),r}function Aee(e,t){const n={},r=Dee(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 Tee=["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 sx(e){return typeof e!="string"||e.includes("-")?!1:!!(Tee.indexOf(e)>-1||/[A-Z]/u.test(e))}const Pee={offset:"stroke-dashoffset",array:"stroke-dasharray"},_ee={offset:"strokeDashoffset",array:"strokeDasharray"};function Ree(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Pee:_ee;e[o.offset]=Ft.transform(-r);const s=Ft.transform(t),u=Ft.transform(n);e[o.array]=`${s} ${u}`}function CA(e,t,n){return typeof e=="string"?e:Ft.transform(t+n*e)}function Mee(e,t,n){const r=CA(t,e.x,e.width),i=CA(n,e.y,e.height);return`${r} ${i}`}function ax(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(ix(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||o!==void 0||b.transform)&&(b.transformOrigin=Mee($,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&Ree(g,s,u,l,!1)}const d7=()=>({...ox(),attrs:{}}),ux=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fee(e,t,n,r){const i=T.useMemo(()=>{const o=d7();return ax(o,t,ux(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};f7(o,e.style,e),i.style={...o,...i.style}}return i}function kee(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(sx(n)?Fee:Aee)(r,o,s,n),d=nee(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>Ir(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function SA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function lx(e,t,n,r){if(typeof t=="function"){const[i,o]=SA(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=SA(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Yb=e=>Array.isArray(e),Oee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Iee=e=>Yb(e)?e[e.length-1]||0:e;function mp(e){const t=Ir(e)?e.get():e;return Oee(t)?t.toValue():t}function Lee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:Bee(r,i,o,e),renderState:t()};return n&&(s.onMount=u=>n({props:r,current:u,...s}),s.onUpdate=u=>n(u)),s}const h7=e=>(t,n)=>{const r=T.useContext(tg),i=T.useContext(H3),o=()=>Lee(e,t,r,i);return n?o():Bd(o)};function Bee(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=mp(o[g]);let{initial:s,animate:u}=e;const l=rg(e),d=i7(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!ng(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=lx(e,g[b]);if($){const{transitionEnd:C,transition:A,...S}=$;for(const w in S){let D=S[w];if(Array.isArray(D)){const O=h?D.length-1:0;D=D[O]}D!==null&&(i[w]=D)}for(const w in C)i[w]=C[w]}}}return i}function cx(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Ir(i[s])||t.style&&Ir(t.style[s])||l7(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}const Vee={useVisualState:h7({scrapeMotionValuesFromProps:cx,createRenderState:ox})};function p7(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function m7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const g7=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 v7(e,t,n,r){m7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(g7.has(i)?i:Q3(i),t.attrs[i])}function y7(e,t,n){const r=cx(e,t,n);for(const i in e)if(Ir(e[i])||Ir(t[i])){const o=Fc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const EA=["x","y","width","height","cx","cy","r"],Nee={useVisualState:h7({scrapeMotionValuesFromProps:y7,createRenderState:d7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ul.has(u)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let u=0;u<EA.length;u++){const l=EA[u];e[l]!==t[l]&&(s=!0)}s&&Dn.read(()=>{p7(n,r),Dn.render(()=>{ax(r,i,ux(n.tagName),e.transformTemplate),v7(n,r)})})}})};function jee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...sx(r)?Nee:Vee,preloadedFeatures:e,useRender:kee(i),createVisualElement:t,Component:r};return fee(s)}}function fd(e,t,n){const r=e.getProps();return lx(r,t,n!==void 0?n:r.custom,e)}const Kee=Z3(()=>window.ScrollTimeline!==void 0);let Uee=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Kee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},zee=class extends Uee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fx(e,t){return e?e[t]||e.default||e:void 0}const Zb=2e4;function b7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Zb;)t+=n,r=e.next(t);return t>=Zb?1/0:t}function dx(e){return typeof e=="function"}function DA(e,t){e.timeline=t,e.onfinish=null}const hx=e=>Array.isArray(e)&&typeof e[0]=="number",qee={linearEasing:void 0};function Wee(e,t){const n=Z3(e);return()=>{var r;return(r=qee[t])!==null&&r!==void 0?r:n()}}const Qp=Wee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),x7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(hc(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function $7(e){return!!(typeof e=="function"&&Qp()||!e||typeof e=="string"&&(e in Xb||Qp())||hx(e)||Array.isArray(e)&&e.every($7))}const Mf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Xb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mf([0,.65,.55,1]),circOut:Mf([.55,0,1,.45]),backIn:Mf([.31,.01,.66,-.59]),backOut:Mf([.33,1.53,.69,.99])};function w7(e,t){if(e)return typeof e=="function"&&Qp()?x7(e,t):hx(e)?Mf(e):Array.isArray(e)?e.map(n=>w7(n,t)||Xb.easeOut):Xb[e]}const _o={x:!1,y:!1};function C7(){return _o.x||_o.y}function Hee(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function S7(e,t){const n=Hee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function AA(e){return!(e.pointerType==="touch"||C7())}function Gee(e,t,n={}){const[r,i,o]=S7(e,n),s=u=>{if(!AA(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{AA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),o}const E7=(e,t)=>t?e===t?!0:E7(e,t.parentElement):!1,px=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Yee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Zee(e){return Yee.has(e.tagName)||e.tabIndex!==-1}const Ff=new WeakSet;function TA(e){return t=>{t.key==="Enter"&&e(t)}}function g1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Xee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=TA(()=>{if(Ff.has(n))return;g1(n,"down");const i=TA(()=>{g1(n,"up")}),o=()=>g1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function PA(e){return px(e)&&!C7()}function Jee(e,t,n={}){const[r,i,o]=S7(e,n),s=u=>{const l=u.currentTarget;if(!PA(u)||Ff.has(l))return;Ff.add(l);const d=t(l,u),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!PA(b)||!Ff.has(l))&&(Ff.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{h(b,n.useGlobalTarget||E7(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{!Zee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),u.addEventListener("focus",d=>Xee(d,i),i)}),o}function Qee(e){return e==="x"||e==="y"?_o[e]?null:(_o[e]=!0,()=>{_o[e]=!1}):_o.x||_o.y?null:(_o.x=_o.y=!0,()=>{_o.x=_o.y=!1})}const D7=new Set(["width","height","top","left","right","bottom",...Fc]);let gp;function ete(){gp=void 0}const xs={now:()=>(gp===void 0&&xs.set(Or.isProcessing||ZQ.useManualTiming?Or.timestamp:performance.now()),gp),set:e=>{gp=e,queueMicrotask(ete)}};function mx(e,t){e.indexOf(t)===-1&&e.push(t)}function gx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function tte([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let vx=class{constructor(){this.subscriptions=[]}add(t){return mx(this.subscriptions,t),()=>gx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function A7(e,t){return t?e*(1e3/t):0}const _A=30,nte=e=>!isNaN(parseFloat(e)),Kf={current:void 0};let rte=class{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=xs.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=xs.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nte(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&eg(!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 vx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Dn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Kf.current&&Kf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=xs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_A)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_A);return A7(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function mc(e,t){return new rte(e,t)}function ite(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mc(n))}function ote(e,t){const n=fd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const u=Iee(o[s]);ite(e,s,u)}}function ste(e){return!!(Ir(e)&&e.add)}function Jb(e,t){const n=e.getValue("willChange");if(ste(n))return n.add(t)}function T7(e){return e.props[o7]}const P7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ate=1e-7,ute=12;function lte(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=P7(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>ate&&++u<ute);return s}function Nd(e,t,n,r){if(e===t&&n===r)return Ci;const i=o=>lte(o,0,1,e,n);return o=>o===0||o===1?o:P7(i(o),t,r)}const _7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,R7=e=>t=>1-e(1-t),M7=Nd(.33,1.53,.69,.99),yx=R7(M7),F7=_7(yx),k7=e=>(e*=2)<1?.5*yx(e):.5*(2-Math.pow(2,-10*(e-1))),bx=e=>1-Math.sin(Math.acos(e)),O7=R7(bx),I7=_7(bx),L7=e=>/^0[^.\s]+$/u.test(e);function cte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||L7(e):!0}const Uf=e=>Math.round(e*1e5)/1e5,xx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fte(e){return e==null}const dte=/^(?:#[\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"&&dte.test(n)&&n.startsWith(e)||t&&!fte(n)&&Object.prototype.hasOwnProperty.call(n,t)),B7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,u]=r.match(xx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},hte=e=>la(0,255,e),v1={...kc,transform:e=>Math.round(hte(e))},Vu={test:$x("rgb","red"),parse:B7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+v1.transform(e)+", "+v1.transform(t)+", "+v1.transform(n)+", "+Uf(cd.transform(r))+")"};function pte(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 Qb={test:$x("#"),parse:pte,transform:Vu.transform},Nl={test:$x("hsl","hue"),parse:B7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+bs.transform(Uf(t))+", "+bs.transform(Uf(n))+", "+Uf(cd.transform(r))+")"},Ur={test:e=>Vu.test(e)||Qb.test(e)||Nl.test(e),parse:e=>Vu.test(e)?Vu.parse(e):Nl.test(e)?Nl.parse(e):Qb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vu.transform(e):Nl.transform(e)},mte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gte(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(mte))===null||n===void 0?void 0:n.length)||0)>0}const V7="number",N7="color",vte="var",yte="var(",RA="${}",bte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(bte,l=>(Ur.test(l)?(r.color.push(o),i.push(N7),n.push(Ur.parse(l))):l.startsWith(yte)?(r.var.push(o),i.push(vte),n.push(l)):(r.number.push(o),i.push(V7),n.push(parseFloat(l))),++o,RA)).split(RA);return{values:n,split:u,indexes:r,types:i}}function j7(e){return dd(e).values}function K7(e){const{split:t,types:n}=dd(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const u=n[s];u===V7?o+=Uf(i[s]):u===N7?o+=Ur.transform(i[s]):o+=i[s]}return o}}const xte=e=>typeof e=="number"?0:e;function $te(e){const t=j7(e);return K7(e)(t.map(xte))}const tu={test:gte,parse:j7,createTransformer:K7,getAnimatableNone:$te},wte=new Set(["brightness","contrast","saturate","opacity"]);function Cte(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xx)||[];if(!r)return e;const i=n.replace(r,"");let o=wte.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Ste=/\b([a-z-]*)\(.*?\)/gu,e4={...tu,getAnimatableNone:e=>{const t=e.match(Ste);return t?t.map(Cte).join(" "):e}},Ete={...rx,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:e4,WebkitFilter:e4},wx=e=>Ete[e];function U7(e,t){let n=wx(e);return n!==e4&&(n=tu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dte=new Set(["auto","none","0"]);function Ate(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Dte.has(o)&&dd(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=U7(n,i)}const MA=e=>e===kc||e===Ft,FA=(e,t)=>parseFloat(e.split(", ")[t]),kA=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return FA(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?FA(o[1],e):0}},Tte=new Set(["x","y","z"]),Pte=Fc.filter(e=>!Tte.has(e));function _te(e){const t=[];return Pte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gc={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:kA(4,13),y:kA(5,14)};gc.translateX=gc.x;gc.translateY=gc.y;const qu=new Set;let t4=!1,n4=!1;function z7(){if(n4){const e=Array.from(qu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=_te(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}n4=!1,t4=!1,qu.forEach(e=>e.complete()),qu.clear()}function q7(){qu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n4=!0)})}function Rte(){q7(),z7()}let Cx=class{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qu.add(this),t4||(t4=!0,Dn.read(q7),Dn.resolveKeyframes(z7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const W7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Mte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fte(e){const t=Mte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const kte=4;function H7(e,t,n=1){$s(n<=kte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Fte(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return W7(s)?parseFloat(s):s}return nx(i)?H7(i,t,n+1):i}const G7=e=>t=>t.test(e),Ote={test:e=>e==="auto",parse:e=>e},Y7=[kc,Ft,bs,Va,bee,yee,Ote],OA=e=>Y7.find(G7(e));let Z7=class extends Cx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),nx(d))){const h=H7(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!D7.has(r)||t.length!==2)return;const[i,o]=t,s=OA(i),u=OA(o);if(s!==u)if(MA(s)&&MA(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)cte(t[i])&&r.push(i);r.length&&Ate(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=gc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,u=i[s];i[s]=gc[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const IA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(tu.test(e)||e==="0")&&!e.startsWith("url("));function Ite(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 Lte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=IA(i,t),u=IA(o,t);return Mc(s===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!s||!u?!1:Ite(e)||(n==="spring"||dx(n))&&r}const Bte=e=>e!==null;function ig(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Bte),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Vte=40;let X7=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=xs.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Vte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Rte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=xs.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!Lte(t,r,i,o))if(s)this.options.duration=0;else{l&&l(ig(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Nn=(e,t,n)=>e+(t-e)*n;function y1(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 Nte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=y1(l,u,e+1/3),o=y1(l,u,e),s=y1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function em(e,t){return n=>n>0?t:e}const b1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},jte=[Qb,Vu,Nl],Kte=e=>jte.find(t=>t.test(e));function LA(e){const t=Kte(e);if(Mc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Nl&&(n=Nte(n)),n}const BA=(e,t)=>{const n=LA(e),r=LA(t);if(!n||!r)return em(e,t);const i={...n};return o=>(i.red=b1(n.red,r.red,o),i.green=b1(n.green,r.green,o),i.blue=b1(n.blue,r.blue,o),i.alpha=Nn(n.alpha,r.alpha,o),Vu.transform(i))},Ute=(e,t)=>n=>t(e(n)),jd=(...e)=>e.reduce(Ute),r4=new Set(["none","hidden"]);function zte(e,t){return r4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function qte(e,t){return n=>Nn(e,t,n)}function Sx(e){return typeof e=="number"?qte:typeof e=="string"?nx(e)?em:Ur.test(e)?BA:Gte:Array.isArray(e)?J7:typeof e=="object"?Ur.test(e)?BA:Wte:em}function J7(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Sx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Wte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Hte(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],u=e.indexes[s][i[s]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const Gte=(e,t)=>{const n=tu.createTransformer(t),r=dd(e),i=dd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?r4.has(e)&&!i.values.length||r4.has(t)&&!r.values.length?zte(e,t):jd(J7(Hte(r,i),i.values),n):(Mc(!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.`),em(e,t))};function Q7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nn(e,t,n):Sx(e)(e,t)}const Yte=5;function eO(e,t,n){const r=Math.max(t-Yte,0);return A7(n-e(r),t-r)}const Kn={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},VA=.001;function Zte({duration:e=Kn.duration,bounce:t=Kn.bounce,velocity:n=Kn.velocity,mass:r=Kn.mass}){let i,o;Mc(e<=ys(Kn.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=la(Kn.minDamping,Kn.maxDamping,s),e=la(Kn.minDuration,Kn.maxDuration,ia(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=i4(d,s),$=Math.exp(-m);return VA-g/b*$},o=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,$=Math.exp(-m),C=i4(Math.pow(d,2),s);return(-i(d)+VA>0?-1:1)*((g-b)*$)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Jte(i,o,u);if(e=ys(e),isNaN(l))return{stiffness:Kn.stiffness,damping:Kn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Xte=12;function Jte(e,t,n){let r=n;for(let i=1;i<Xte;i++)r=r-e(r)/t(r);return r}function i4(e,t){return e*Math.sqrt(1-t*t)}const Qte=["duration","bounce"],ene=["stiffness","damping","mass"];function NA(e,t){return t.some(n=>e[n]!==void 0)}function tne(e){let t={velocity:Kn.velocity,stiffness:Kn.stiffness,damping:Kn.damping,mass:Kn.mass,isResolvedFromDuration:!1,...e};if(!NA(e,ene)&&NA(e,Qte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*la(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Kn.mass,stiffness:i,damping:o}}else{const n=Zte(e);t={...t,...n,mass:Kn.mass},t.isResolvedFromDuration=!0}return t}function tO(e=Kn.visualDuration,t=Kn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=tne({...n,velocity:-ia(n.velocity||0)}),$=g||0,C=d/(2*Math.sqrt(l*h)),A=s-o,S=ia(Math.sqrt(l/h)),w=Math.abs(A)<5;r||(r=w?Kn.restSpeed.granular:Kn.restSpeed.default),i||(i=w?Kn.restDelta.granular:Kn.restDelta.default);let D;if(C<1){const R=i4(S,C);D=k=>{const j=Math.exp(-C*S*k);return s-j*(($+C*S*A)/R*Math.sin(R*k)+A*Math.cos(R*k))}}else if(C===1)D=R=>s-Math.exp(-S*R)*(A+($+S*A)*R);else{const R=S*Math.sqrt(C*C-1);D=k=>{const j=Math.exp(-C*S*k),M=Math.min(R*k,300);return s-j*(($+C*S*A)*Math.sinh(M)+R*A*Math.cosh(M))/R}}const O={calculatedDuration:b&&m||null,next:R=>{const k=D(R);if(b)u.done=R>=m;else{let j=0;C<1&&(j=R===0?ys($):eO(D,R,k));const M=Math.abs(j)<=r,ue=Math.abs(s-k)<=i;u.done=M&&ue}return u.value=u.done?s:k,u},toString:()=>{const R=Math.min(b7(O),Zb),k=x7(j=>O.next(R*j).value,R,30);return R+"ms "+k}};return O}function jA({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=M=>u!==void 0&&M<u||l!==void 0&&M>l,$=M=>u===void 0?l:l===void 0||Math.abs(u-M)<Math.abs(l-M)?u:l;let C=n*t;const A=m+C,S=s===void 0?A:s(A);S!==A&&(C=S-m);const w=M=>-C*Math.exp(-M/r),D=M=>S+w(M),O=M=>{const ue=w(M),ae=D(M);g.done=Math.abs(ue)<=d,g.value=g.done?S:ae};let R,k;const j=M=>{b(g.value)&&(R=M,k=tO({keyframes:[g.value,$(g.value)],velocity:eO(D,M,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:M=>{let ue=!1;return!k&&R===void 0&&(ue=!0,O(M),j(M)),R!==void 0&&M>=R?k.next(M-R):(!ue&&O(M),g)}}}const nne=Nd(.42,0,1,1),rne=Nd(0,0,.58,1),nO=Nd(.42,0,.58,1),ine=e=>Array.isArray(e)&&typeof e[0]!="number",KA={linear:Ci,easeIn:nne,easeInOut:nO,easeOut:rne,circIn:bx,circInOut:I7,circOut:O7,backIn:yx,backInOut:F7,backOut:M7,anticipate:k7},UA=e=>{if(hx(e)){$s(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Nd(t,n,r,i)}else if(typeof e=="string")return $s(KA[e]!==void 0,`Invalid easing type '${e}'`),KA[e];return e};function one(e,t,n){const r=[],i=n||Q7,o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Ci:t;u=jd(l,u)}r.push(u)}return r}function rO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if($s(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=one(t,r,i),l=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=hc(e[m],e[m+1],h);return u[m](g)};return n?h=>d(la(e[0],e[o-1],h)):d}function sne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=hc(0,t,r);e.push(Nn(n,1,i))}}function ane(e){const t=[0];return sne(t,e.length-1),t}function une(e,t){return e.map(n=>n*t)}function lne(e,t){return e.map(()=>t||nO).splice(0,e.length-1)}function zf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ine(r)?r.map(UA):UA(r),o={done:!1,value:t[0]},s=une(n&&n.length===t.length?n:ane(t),e),u=rO(s,t,{ease:Array.isArray(i)?i:lne(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const cne=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Dn.update(t,!0),stop:()=>ua(t),now:()=>Or.isProcessing?Or.timestamp:xs.now()}},fne={decay:jA,inertia:jA,tween:zf,keyframes:zf,spring:tO},dne=e=>e/100;let Ex=class extends X7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Cx,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new s(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,u=dx(n)?n:fne[n]||zf;let l,d;process.env.NODE_ENV!=="production"&&u!==zf&&$s(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==zf&&typeof t[0]!="number"&&(l=jd(dne,Q7(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=b7(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:C,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let D=this.currentTime,O=o;if(b){const M=Math.min(this.currentTime,h)/m;let ue=Math.floor(M),ae=M%1;!ae&&M>=1&&(ae=1),ae===1&&ue--,ue=Math.min(ue,b+1),!!(ue%2)&&($==="reverse"?(ae=1-ae,C&&(ae-=C/m)):$==="mirror"&&(O=s)),D=la(0,1,ae)*m}const R=w?{done:!1,value:l[0]}:O.next(D);u&&(R.value=u(R.value));let{done:k}=R;!w&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return j&&i!==void 0&&(R.value=ig(l,this.options,i)),A&&A(R.value),j&&this.finish(),R}get duration(){const{resolved:t}=this;return t?ia(t.calculatedDuration):0}get time(){return ia(this.currentTime)}set time(t){t=ys(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ia(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=cne,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const hne=new Set(["opacity","clipPath","filter","transform"]);function pne(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=w7(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const mne=Z3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tm=10,gne=2e4;function vne(e){return dx(e.type)||e.type==="spring"||!$7(e.ease)}function yne(e,t){const n=new Ex({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<gne;)r=n.sample(o),i.push(r.value),o+=tm;return{times:void 0,keyframes:i,duration:o-tm,ease:"linear"}}const iO={anticipate:k7,backInOut:F7,circInOut:I7};function bne(e){return e in iO}let zA=class extends X7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Z7(o,(s,u)=>this.onKeyframesResolved(s,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&Qp()&&bne(o)&&(o=iO[o]),vne(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...C}=this.options,A=yne(t,C);t=A.keyframes,t.length===1&&(t[1]=t[0]),r=A.duration,i=A.times,o=A.ease,s="keyframes"}const h=pne(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(DA(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(ig(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ia(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ia(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ys(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ci;const{animation:r}=n;DA(r,t)}return Ci}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new Ex({...b,keyframes:r,duration:i,type:o,ease:s,times:u,isGenerator:!0}),C=ys(this.time);d.setWithVelocity($.sample(C-tm).value,$.sample(C).value,tm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return mne()&&r&&hne.has(r)&&!l&&!d&&!i&&o!=="mirror"&&s!==0&&u!=="inertia"}};const xne={type:"spring",stiffness:500,damping:25,restSpeed:10},$ne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wne={type:"keyframes",duration:.8},Cne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sne=(e,{keyframes:t})=>t.length>2?wne:ul.has(e)?e.startsWith("scale")?$ne(t[1]):xne:Cne;function Ene({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const Dx=(e,t,n,r={},i,o)=>s=>{const u=fx(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ys(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};Ene(u)||(h={...h,...Sne(e,h)}),h.duration&&(h.duration=ys(h.duration)),h.repeatDelay&&(h.repeatDelay=ys(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)),m&&!o&&t.get()!==void 0){const g=ig(h.keyframes,u);if(g!==void 0)return Dn.update(()=>{h.onUpdate(g),h.onComplete()}),new zee([])}return!o&&zA.supports(h)?new zA(h):new Ex(h)};function Dne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function oO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),b=l[m];if(b===void 0||h&&Dne(h,m))continue;const $={delay:n,...fx(s||{},m)};let C=!1;if(window.MotionHandoffAnimation){const S=T7(e);if(S){const w=window.MotionHandoffAnimation(S,m,Dn);w!==null&&($.startTime=w,C=!0)}}Jb(e,m),g.start(Dx(m,g,b,e.shouldReduceMotion&&D7.has(m)?{type:!1}:$,e,C));const A=g.animation;A&&d.push(A)}return u&&Promise.all(d).then(()=>{Dn.update(()=>{u&&ote(e,u)})}),d}function o4(e,t,n={}){var r;const i=fd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(oO(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return Ane(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,h]=l==="beforeChildren"?[s,u]:[u,s];return d().then(()=>h())}else return Promise.all([s(),u(n.delay)])}function Ane(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Tne).forEach((d,h)=>{d.notify("AnimationStart",t),s.push(o4(d,t,{...o,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function Tne(e,t){return e.sortNodePosition(t)}function Pne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>o4(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=o4(e,t,n);else{const i=typeof t=="function"?fd(e,t,n.custom):t;r=Promise.all(oO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function sO(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 _ne=J3.length;function aO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?aO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_ne;n++){const r=J3[n],i=e.props[r];(ud(i)||i===!1)&&(t[r]=i)}return t}const Rne=[...X3].reverse(),Mne=X3.length;function Fne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pne(e,n,r)))}function kne(e){let t=Fne(e),n=qA(),r=!0;const i=l=>(d,h)=>{var m;const g=fd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...C}=g;d={...d,...C,...$}}return d};function o(l){t=l(e)}function s(l){const{props:d}=e,h=aO(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<Mne;A++){const S=Rne[A],w=n[S],D=d[S]!==void 0?d[S]:h[S],O=ud(D),R=S===l?w.isActive:null;R===!1&&($=A);let k=D===h[S]&&D!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...b},!w.isActive&&R===null||!D&&!w.prevProp||ng(D)||typeof D=="boolean")continue;const j=One(w.prevProp,D);let M=j||S===l&&w.isActive&&!k&&O||A>$&&O,ue=!1;const ae=Array.isArray(D)?D:[D];let W=ae.reduce(i(S),{});R===!1&&(W={});const{prevResolvedValues:De={}}=w,q={...De,...W},K=N=>{M=!0,g.has(N)&&(ue=!0,g.delete(N)),w.needsAnimating[N]=!0;const I=e.getValue(N);I&&(I.liveStyle=!1)};for(const N in q){const I=W[N],de=De[N];if(b.hasOwnProperty(N))continue;let se=!1;Yb(I)&&Yb(de)?se=!sO(I,de):se=I!==de,se?I!=null?K(N):g.add(N):I!==void 0&&g.has(N)?K(N):w.protectedKeys[N]=!0}w.prevProp=D,w.prevResolvedValues=W,w.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(k&&j)||ue)&&m.push(...ae.map(N=>({animation:N,options:{type:S}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const S=fd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(A.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),D=e.getValue(S);D&&(D.liveStyle=!0),A[S]=w??null}),m.push({animation:A})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=s(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=qA(),r=!0}}}function One(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sO(t,e):!1}function Tu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qA(){return{animate:Tu(!0),whileInView:Tu(),whileHover:Tu(),whileTap:Tu(),whileDrag:Tu(),whileFocus:Tu(),exit:Tu()}}let su=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Ine=class extends su{constructor(t){super(t),t.animationState||(t.animationState=kne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ng(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},Lne=0,Bne=class extends su{constructor(){super(...arguments),this.id=Lne++}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 Vne={animation:{Feature:Ine},exit:{Feature:Bne}};function hd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Kd(e){return{point:{x:e.pageX,y:e.pageY}}}const Nne=e=>t=>px(t)&&e(t,Kd(t));function qf(e,t,n,r){return hd(e,t,Nne(n),r)}const WA=(e,t)=>Math.abs(e-t);function jne(e,t){const n=WA(e.x,t.x),r=WA(e.y,t.y);return Math.sqrt(n**2+r**2)}class uO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=$1(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=jne(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;const{point:$}=m,{timestamp:C}=Or;this.history.push({...$,timestamp:C});const{onStart:A,onMove:S}=this.handlers;g||(A&&A(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=x1(g,this.transformPagePoint),Dn.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:b,onSessionEnd:$,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=$1(m.type==="pointercancel"?this.lastMoveEventInfo:x1(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,A),$&&$(m,A)},!px(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Kd(t),u=x1(s,this.transformPagePoint),{point:l}=u,{timestamp:d}=Or;this.history=[{...l,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,$1(u,this.history)),this.removeListeners=jd(qf(this.contextWindow,"pointermove",this.handlePointerMove),qf(this.contextWindow,"pointerup",this.handlePointerUp),qf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ua(this.updatePoint)}}function x1(e,t){return t?{point:t(e.point)}:e}function HA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function $1({point:e},t){return{point:e,delta:HA(e,lO(t)),offset:HA(e,Kne(t)),velocity:Une(t,.1)}}function Kne(e){return e[0]}function lO(e){return e[e.length-1]}function Une(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=lO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ys(t)));)n--;if(!r)return{x:0,y:0};const o=ia(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const cO=1e-4,zne=1-cO,qne=1+cO,fO=.01,Wne=0-fO,Hne=0+fO;function ii(e){return e.max-e.min}function Gne(e,t,n){return Math.abs(e-t)<=n}function GA(e,t,n,r=.5){e.origin=r,e.originPoint=Nn(t.min,t.max,e.origin),e.scale=ii(n)/ii(t),e.translate=Nn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zne&&e.scale<=qne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Wne&&e.translate<=Hne||isNaN(e.translate))&&(e.translate=0)}function Wf(e,t,n,r){GA(e.x,t.x,n.x,r?r.originX:void 0),GA(e.y,t.y,n.y,r?r.originY:void 0)}function YA(e,t,n){e.min=n.min+t.min,e.max=e.min+ii(t)}function Yne(e,t,n){YA(e.x,t.x,n.x),YA(e.y,t.y,n.y)}function ZA(e,t,n){e.min=t.min-n.min,e.max=e.min+ii(t)}function Hf(e,t,n){ZA(e.x,t.x,n.x),ZA(e.y,t.y,n.y)}function Zne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Nn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Nn(n,e,r.max):Math.min(e,n)),e}function XA(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 Xne(e,{top:t,left:n,bottom:r,right:i}){return{x:XA(e.x,n,i),y:XA(e.y,t,r)}}function JA(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 Jne(e,t){return{x:JA(e.x,t.x),y:JA(e.y,t.y)}}function Qne(e,t){let n=.5;const r=ii(e),i=ii(t);return i>r?n=hc(t.min,t.max-r,e.min):r>i&&(n=hc(e.min,e.max-i,t.min)),la(0,1,n)}function ere(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 s4=.35;function tre(e=s4){return e===!1?e=0:e===!0&&(e=s4),{x:QA(e,"left","right"),y:QA(e,"top","bottom")}}function QA(e,t,n){return{min:eT(e,t),max:eT(e,n)}}function eT(e,t){return typeof e=="number"?e:e[t]||0}const tT=()=>({translate:0,scale:1,origin:0,originPoint:0}),jl=()=>({x:tT(),y:tT()}),nT=()=>({min:0,max:0}),ir=()=>({x:nT(),y:nT()});function eo(e){return[e("x"),e("y")]}function dO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function nre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function rre(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function w1(e){return e===void 0||e===1}function a4({scale:e,scaleX:t,scaleY:n}){return!w1(e)||!w1(t)||!w1(n)}function _u(e){return a4(e)||hO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hO(e){return rT(e.x)||rT(e.y)}function rT(e){return e&&e!=="0%"}function nm(e,t,n){const r=e-n,i=t*r;return n+i}function iT(e,t,n,r,i){return i!==void 0&&(e=nm(e,i,r)),nm(e,n,r)+t}function u4(e,t=0,n=1,r,i){e.min=iT(e.min,t,n,r,i),e.max=iT(e.max,t,n,r,i)}function pO(e,{x:t,y:n}){u4(e.x,t.translate,t.scale,t.originPoint),u4(e.y,n.translate,n.scale,n.originPoint)}const oT=.999999999999,sT=1.0000000000001;function ire(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u<i;u++){o=n[u],s=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ul(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,pO(e,s)),r&&_u(o.latestValues)&&Ul(e,o.latestValues))}t.x<sT&&t.x>oT&&(t.x=1),t.y<sT&&t.y>oT&&(t.y=1)}function Kl(e,t){e.min=e.min+t,e.max=e.max+t}function aT(e,t,n,r,i=.5){const o=Nn(e.min,e.max,i);u4(e,t,n,o,r)}function Ul(e,t){aT(e.x,t.x,t.scaleX,t.scale,t.originX),aT(e.y,t.y,t.scaleY,t.scale,t.originY)}function mO(e,t){return dO(rre(e.getBoundingClientRect(),t))}function ore(e,t,n){const r=mO(e,n),{scroll:i}=t;return i&&(Kl(r.x,i.offset.x),Kl(r.y,i.offset.y)),r}const gO=({current:e})=>e?e.ownerDocument.defaultView:null,sre=new WeakMap;class are{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=ir(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Kd(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:$}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Qee(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eo(A=>{let S=this.getAxisMotionValue(A).get()||0;if(bs.test(S)){const{projection:w}=this.visualElement;if(w&&w.layout){const D=w.layout.layoutBox[A];D&&(S=ii(D)*(parseFloat(S)/100))}}this.originPoint[A]=S}),$&&Dn.postRender(()=>$(h,m)),Jb(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:$,onDrag:C}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:A}=m;if(b&&this.currentDirection===null){this.currentDirection=ure(A),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",m.point,A),this.updateAxis("y",m.point,A),this.visualElement.render(),C&&C(h,m)},u=(h,m)=>this.stop(h,m),l=()=>eo(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new uO(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:gO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Dn.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Hh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Zne(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Vl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Xne(i.layoutBox,n):this.constraints=!1,this.elastic=tre(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eo(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=ere(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vl(t))return!1;const r=t.current;$s(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ore(r,i.root,this.visualElement.getTransformPagePoint());let s=Jne(i.layout.layoutBox,o);if(n){const u=n(nre(s));this.hasMutatedConstraints=!!u,u&&(s=dO(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=eo(h=>{if(!Hh(h,n,this.currentDirection))return;let m=l&&l[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Jb(this.visualElement,t),r.start(Dx(t,r,0,n,this.visualElement,!1))}stopAnimation(){eo(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eo(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){eo(n=>{const{drag:r}=this.getProps();if(!Hh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-Nn(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};eo(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const l=u.get();i[s]=Qne({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),eo(s=>{if(!Hh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:l,max:d}=this.constraints[s];u.set(Nn(l,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;sre.set(this.visualElement,this);const t=this.visualElement.current,n=qf(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Dn.read(r);const s=hd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(eo(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=s4,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Hh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ure(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lre extends su{constructor(t){super(t),this.removeGroupControls=Ci,this.removeListeners=Ci,this.controls=new are(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ci}unmount(){this.removeGroupControls(),this.removeListeners()}}const uT=e=>(t,n)=>{e&&Dn.postRender(()=>e(t,n))};class cre extends su{constructor(){super(...arguments),this.removePointerDownListener=Ci}onPointerDown(t){this.session=new uO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:uT(t),onStart:uT(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Dn.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=qf(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ft.test(e))e=parseFloat(e);else return e;const n=lT(e,t.target.x),r=lT(e,t.target.y);return`${n}% ${r}%`}},fre={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=tu.parse(e);if(i.length>5)return r;const o=tu.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=l;const d=Nn(u,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),o(i)}};class dre extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;vee(hre),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),vp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Dn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ex.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 vO(e){const[t,n]=YQ(),r=T.useContext(Qk);return sa.jsx(dre,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(s7),isPresent:t,safeToRemove:n})}const hre={borderRadius:{...vf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vf,borderTopRightRadius:vf,borderBottomLeftRadius:vf,borderBottomRightRadius:vf,boxShadow:fre};function pre(e,t,n){const r=Ir(e)?e:mc(e);return r.start(Dx("",r,t,n)),r.animation}function mre(e){return e instanceof SVGElement&&e.tagName!=="svg"}const gre=(e,t)=>e.depth-t.depth;class vre{constructor(){this.children=[],this.isDirty=!1}add(t){mx(this.children,t),this.isDirty=!0}remove(t){gx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gre),this.isDirty=!1,this.children.forEach(t)}}function yre(e,t){const n=xs.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ua(r),e(o-t))};return Dn.read(r,!0),()=>ua(r)}const yO=["TopLeft","TopRight","BottomLeft","BottomRight"],bre=yO.length,cT=e=>typeof e=="string"?parseFloat(e):e,fT=e=>typeof e=="number"||Ft.test(e);function xre(e,t,n,r,i,o){i?(e.opacity=Nn(0,n.opacity!==void 0?n.opacity:1,$re(r)),e.opacityExit=Nn(t.opacity!==void 0?t.opacity:1,0,wre(r))):o&&(e.opacity=Nn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<bre;s++){const u=`border${yO[s]}Radius`;let l=dT(t,u),d=dT(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||fT(l)===fT(d)?(e[u]=Math.max(Nn(cT(l),cT(d),r),0),(bs.test(d)||bs.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Nn(t.rotate||0,n.rotate||0,r))}function dT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $re=bO(0,.5,O7),wre=bO(.5,.95,Ci);function bO(e,t,n){return r=>r<e?0:r>t?1:n(hc(e,t,r))}function hT(e,t){e.min=t.min,e.max=t.max}function Ji(e,t){hT(e.x,t.x),hT(e.y,t.y)}function pT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mT(e,t,n,r,i){return e-=t,e=nm(e,1/n,r),i!==void 0&&(e=nm(e,1/i,r)),e}function Cre(e,t=0,n=1,r=.5,i,o=e,s=e){if(bs.test(t)&&(t=parseFloat(t),t=Nn(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Nn(o.min,o.max,r);e===o&&(u-=t),e.min=mT(e.min,t,n,u,i),e.max=mT(e.max,t,n,u,i)}function gT(e,t,[n,r,i],o,s){Cre(e,t[n],t[r],t[i],t.scale,o,s)}const Sre=["x","scaleX","originX"],Ere=["y","scaleY","originY"];function vT(e,t,n,r){gT(e.x,t,Sre,n?n.x:void 0,r?r.x:void 0),gT(e.y,t,Ere,n?n.y:void 0,r?r.y:void 0)}function yT(e){return e.translate===0&&e.scale===1}function xO(e){return yT(e.x)&&yT(e.y)}function bT(e,t){return e.min===t.min&&e.max===t.max}function Dre(e,t){return bT(e.x,t.x)&&bT(e.y,t.y)}function xT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $O(e,t){return xT(e.x,t.x)&&xT(e.y,t.y)}function $T(e){return ii(e.x)/ii(e.y)}function wT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Are{constructor(){this.members=[]}add(t){mx(this.members,t),t.scheduleRender()}remove(t){if(gx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Tre(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const C1=["","X","Y","Z"],Pre={visibility:"hidden"},CT=1e3;let _re=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 wO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=T7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Dn,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wO(r)}function CO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=_re++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Fre),this.nodes.forEach(Bre),this.nodes.forEach(Vre),this.nodes.forEach(kre)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new vre)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new vx),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const l=this.eventHandlers.get(s);l&&l.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=mre(s),this.instance=s;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=yre(g,250),vp.hasAnimatedSinceResize&&(vp.hasAnimatedSinceResize=!1,this.nodes.forEach(ET))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:$})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||zre,{onLayoutAnimationStart:A,onLayoutAnimationComplete:S}=h.getProps(),w=!this.targetLayout||!$O(this.targetLayout,$),D=!g&&b;if(this.options.layoutRoot||this.resumeFrom||D||g&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,D);const O={...fx(C,"layout"),onPlay:A,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else g||ET(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=$})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ua(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(Nre),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ST);return}this.isUpdating||this.nodes.forEach(Ire),this.isUpdating=!1,this.nodes.forEach(Lre),this.nodes.forEach(Rre),this.nodes.forEach(Mre),this.clearAllSnapshots();const u=xs.now();Or.delta=la(0,1e3/60,u-Or.timestamp),Or.timestamp=u,Or.isProcessing=!0,m1.update.process(Or),m1.preRender.process(Or),m1.render.process(Or),Or.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ex.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ore),this.sharedNodes.forEach(jre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ii(this.snapshot.measuredBox.x)&&!ii(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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ir(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!xO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&(u||_u(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return s&&(l=this.removeTransform(l)),qre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:u}=this.options;if(!u)return ir();const l=u.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Wre))){const{scroll:h}=this.root;h&&(Kl(l.x,h.offset.x),Kl(l.y,h.offset.y))}return l}removeElementScroll(s){var u;const l=ir();if(Ji(l,s),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Ji(l,s),Kl(l.x,m.offset.x),Kl(l.y,m.offset.y))}return l}applyTransform(s,u=!1){const l=ir();Ji(l,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ul(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),_u(h.latestValues)&&Ul(l,h.latestValues)}return _u(this.latestValues)&&Ul(l,this.latestValues),l}removeTransform(s){const u=ir();Ji(u,s);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!_u(d.latestValues))continue;a4(d.latestValues)&&d.updateSnapshot();const h=ir(),m=d.measurePageBox();Ji(h,m),vT(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return _u(this.latestValues)&&vT(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==Or.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(s||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=Or.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ir(),this.relativeTargetOrigin=ir(),Hf(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=ir(),this.targetWithTransforms=ir()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Yne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ji(this.target,this.layout.layoutBox),pO(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=ir(),this.relativeTargetOrigin=ir(),Hf(this.relativeTargetOrigin,this.target,b.target),Ji(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||a4(this.parent.latestValues)||hO(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 s;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Or.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Ji(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;ire(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ir());const{target:$}=u;if(!$){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pT(this.prevProjectionDelta.x,this.projectionDelta.x),pT(this.prevProjectionDelta.y,this.projectionDelta.y)),Wf(this.projectionDelta,this.layoutCorrected,$,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!wT(this.projectionDelta.x,this.prevProjectionDelta.x)||!wT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",$))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=jl(),this.projectionDelta=jl(),this.projectionDeltaWithTransform=jl()}setAnimationOrigin(s,u=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=jl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=ir(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,C=b!==$,A=this.getStack(),S=!A||A.members.length<=1,w=!!(C&&!S&&this.options.crossfade===!0&&!this.path.some(Ure));this.animationProgress=0;let D;this.mixTargetDelta=O=>{const R=O/1e3;DT(m.x,s.x,R),DT(m.y,s.y,R),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Kre(this.relativeTarget,this.relativeTargetOrigin,g,R),D&&Dre(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=ir()),Ji(D,this.relativeTarget)),C&&(this.animationValues=h,xre(h,d,this.latestValues,R,w,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ua(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dn.update(()=>{vp.hasAnimatedSinceResize=!0,this.currentAnimation=pre(0,CT,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(CT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:h}=s;if(!(!u||!l||!d)){if(this!==s&&this.layout&&d&&SO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||ir();const m=ii(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+m;const g=ii(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+g}Ji(u,l),Ul(u,h),Wf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Are),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&S1("z",s,d,this.animationValues);for(let h=0;h<C1.length;h++)S1(`rotate${C1[h]}`,s,d,this.animationValues),S1(`skew${C1[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}getProjectionStyles(s){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Pre;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=mp(s==null?void 0:s.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=mp(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!_u(this.latestValues)&&(C.transform=h?h({},""):"none",this.hasProjected=!1),C}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=Tre(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:b,y:$}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${$.origin*100}% 0`,m.animationValues?d.opacity=m===this?(l=(u=g.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const C in ld){if(g[C]===void 0)continue;const{correct:A,applyTo:S,isCSSVariable:w}=ld[C],D=d.transform==="none"?g[C]:A(g[C],m);if(S){const O=S.length;for(let R=0;R<O;R++)d[S[R]]=D}else w?this.options.visualElement.renderState.vars[C]=D:d[C]=D}return this.options.layoutId&&(d.pointerEvents=m===this?mp(s==null?void 0:s.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(ST),this.root.sharedNodes.clear()}}}function Rre(e){e.updateLayout()}function Mre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?eo(m=>{const g=s?n.measuredBox[m]:n.layoutBox[m],b=ii(g);g.min=r[m].min,g.max=g.min+b}):SO(o,n.layoutBox,r)&&eo(m=>{const g=s?n.measuredBox[m]:n.layoutBox[m],b=ii(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=jl();Wf(u,r,n.layoutBox);const l=jl();s?Wf(l,e.applyTransform(i,!0),n.measuredBox):Wf(l,r,n.layoutBox);const d=!xO(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=ir();Hf($,n.layoutBox,g.layoutBox);const C=ir();Hf(C,r,b.layoutBox),$O($,C)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Fre(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 kre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ore(e){e.clearSnapshot()}function ST(e){e.clearMeasurements()}function Ire(e){e.isLayoutDirty=!1}function Lre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ET(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Bre(e){e.resolveTargetDelta()}function Vre(e){e.calcProjection()}function Nre(e){e.resetSkewAndRotation()}function jre(e){e.removeLeadSnapshot()}function DT(e,t,n){e.translate=Nn(t.translate,0,n),e.scale=Nn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function AT(e,t,n,r){e.min=Nn(t.min,n.min,r),e.max=Nn(t.max,n.max,r)}function Kre(e,t,n,r){AT(e.x,t.x,n.x,r),AT(e.y,t.y,n.y,r)}function Ure(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zre={duration:.45,ease:[.4,0,.1,1]},TT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),PT=TT("applewebkit/")&&!TT("chrome/")?Math.round:Ci;function _T(e){e.min=PT(e.min),e.max=PT(e.max)}function qre(e){_T(e.x),_T(e.y)}function SO(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gne($T(t),$T(n),.2)}function Wre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Hre=CO({attachResizeListener:(e,t)=>hd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),E1={current:void 0},EO=CO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!E1.current){const e=new Hre({});e.mount(window),e.setOptions({layoutScroll:!0}),E1.current=e}return E1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gre={pan:{Feature:cre},drag:{Feature:lre,ProjectionNode:EO,MeasureLayout:vO}};function RT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Dn.postRender(()=>o(t,Kd(t)))}let Yre=class extends su{mount(){const{current:t}=this.node;t&&(this.unmount=Gee(t,(n,r)=>(RT(this.node,r,"Start"),i=>RT(this.node,i,"End"))))}unmount(){}},Zre=class extends su{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jd(hd(this.node.current,"focus",()=>this.onFocus()),hd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function MT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Dn.postRender(()=>o(t,Kd(t)))}let Xre=class extends su{mount(){const{current:t}=this.node;t&&(this.unmount=Jee(t,(n,r)=>(MT(this.node,r,"Start"),(i,{success:o})=>MT(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const l4=new WeakMap,D1=new WeakMap,Jre=e=>{const t=l4.get(e.target);t&&t(e)},Qre=e=>{e.forEach(Jre)};function eie({root:e,...t}){const n=e||document;D1.has(n)||D1.set(n,{});const r=D1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Qre,{root:e,...t})),r[i]}function tie(e,t,n){const r=eie(t);return l4.set(e,n),r.observe(e),()=>{l4.delete(e),r.unobserve(e)}}const nie={some:0,all:1};let rie=class extends su{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nie[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return tie(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iie(t,n))&&this.startObserver()}unmount(){}};function iie({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oie={inView:{Feature:rie},tap:{Feature:Xre},focus:{Feature:Zre},hover:{Feature:Yre}},sie={layout:{ProjectionNode:EO,MeasureLayout:vO}},c4={current:null},DO={current:!1};function aie(){if(DO.current=!0,!!Y3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>c4.current=e.matches;e.addListener(t),t()}else c4.current=!1}const uie=[...Y7,Ur,tu],lie=e=>uie.find(G7(e)),cie=new WeakMap;function fie(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Ir(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&eg(i.version==="12.4.3",`Attempting to mix Motion versions ${i.version} with 12.4.3 may not work as expected.`);else if(Ir(o))e.addValue(r,mc(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,mc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const FT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let die=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},u={}){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 b=xs.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Dn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=s;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=rg(n),this.isVariantNode=i7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&Ir($)&&$.set(l[b],!1)}}mount(t){this.current=t,cie.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)),DO.current||aie(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:c4.current,process.env.NODE_ENV!=="production"&&eg(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(),ua(this.notifyUpdate),ua(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=ul.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Dn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 pc){const n=pc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ir()}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<FT.length;r++){const i=FT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=fie(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=mc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(W7(i)||L7(i))?i=parseFloat(i):!lie(i)&&tu.test(n)&&(i=U7(t,n)),this.setBaseTarget(t,Ir(i)?i.get():i)),Ir(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=lx(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ir(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new vx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},AO=class extends die{constructor(){super(...arguments),this.KeyframeResolver=Z7}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;Ir(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function hie(e){return window.getComputedStyle(e)}let pie=class extends AO{constructor(){super(...arguments),this.type="html",this.renderInstance=m7}readValueFromInstance(t,n){if(ul.has(n)){const r=wx(n);return r&&r.default||0}else{const r=hie(t),i=(tx(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return mO(t,n)}build(t,n,r){ix(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return cx(t,n,r)}},mie=class extends AO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ir,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&p7(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ul.has(n)){const r=wx(n);return r&&r.default||0}return n=g7.has(n)?n:Q3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return y7(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Dn.postRender(this.updateDimensions)}build(t,n,r){ax(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){v7(t,n,r,i)}mount(t){this.isSVGTag=ux(t.tagName),super.mount(t)}};const gie=(e,t)=>sx(e)?new mie(t):new pie(t,{allowProjection:e!==T.Fragment}),vie=jee({...Vne,...oie,...Gre,...sie},gie),TO=ree(vie);function PO(e){const t=Bd(()=>mc(e)),{isStatic:n}=T.useContext(G3);if(n){const[,r]=T.useState(e);T.useEffect(()=>t.on("change",r),[])}return t}function _O(e,t){const n=PO(t()),r=()=>n.set(t());return r(),e7(()=>{const i=()=>Dn.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),ua(r)}}),n}const yie=e=>e&&typeof e=="object"&&e.mix,bie=e=>yie(e)?e.mix:void 0;function xie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],u=rO(i,o,{mixer:bie(o[0]),...s});return t?u(r):u}function $ie(e){Kf.current=[],e();const t=_O(Kf.current,e);return Kf.current=void 0,t}function wie(e,t,n,r){if(typeof e=="function")return $ie(e);const i=typeof t=="function"?t:xie(t,n,r);return Array.isArray(e)?kT(e,i):kT([e],([o])=>i(o))}function kT(e,t){const n=Bd(()=>[]);return _O(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const RO=T.createContext(null);function Cie(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const o=r>0?1:-1,s=e[i+o];if(!s)return e;const u=e[i],l=s.layout,d=Nn(l.min,l.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?tte(e,i,i+o):e}function Sie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},s){const u=Bd(()=>TO[t]),l=[],d=T.useRef(!1);$s(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(Aie)},updateOrder:(m,g,b)=>{if(d.current)return;const $=Cie(l,m,g,b);l!==$&&(d.current=!0,r($.map(Die).filter(C=>i.indexOf(C)!==-1)))}};return T.useEffect(()=>{d.current=!1}),sa.jsx(u,{...o,ref:s,ignoreStrict:!0,children:sa.jsx(RO.Provider,{value:h,children:e})})}const Eie=T.forwardRef(Sie);function Die(e){return e.value}function Aie(e,t){return e.layout.min-t.layout.min}function OT(e,t=0){return Ir(e)?e:PO(t)}function Tie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},u){const l=Bd(()=>TO[r]),d=T.useContext(RO),h={x:OT(t.x),y:OT(t.y)},m=wie([h.x,h.y],([C,A])=>C||A?1:"unset");$s(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:$}=d;return sa.jsx(l,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:o,onDrag:(C,A)=>{const{velocity:S}=A;S[g]&&$(n,h[g].get(),S[g]),i&&i(C,A)},onLayoutMeasure:C=>b(n,C),ref:u,ignoreStrict:!0,children:e})}const Pie=T.forwardRef(Tie);var yp={exports:{}},_ie=yp.exports,IT;function Rie(){return IT||(IT=1,function(e,t){(function(n,r){e.exports=r()})(_ie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.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,$,C){var A=C&&C.toUpperCase();return $||g[C]||n[C]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,w,D){return w||D.slice(1)})})}(l,d===void 0?{}:d);return u.call(this,h)}}})}(yp)),yp.exports}var Mie=Rie();const Fie=Bo(Mie),LT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=at(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},MO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?LT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>LT(i,n,e))}},kie=(e,t)=>{t.shouldUseNativeValidation&&MO(e,t);const n={};for(const r in e){const i=at(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(Oie(t.names||Object.keys(e),r)){const s=Object.assign({},at(n,r));cn(s,"root",o),cn(n,r,s)}else cn(n,r,o)}return n},Oie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function Iie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(s,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&MO({},o),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(s){if(!s.inner)throw s;return{values:{},errors:kie((u=s,l=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=c_(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),o)};var u,l}))}catch(s){return Promise.reject(s)}}}var kf={exports:{}},Lie=kf.exports,BT;function Bie(){return BT||(BT=1,function(e,t){(function(n,r){r(t,T)})(Lie,function(n,r){function i(K){return K&&typeof K=="object"&&"default"in K?K:{default:K}}var o=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof so<"u"?so:typeof self<"u"?self:{},u={exports:{}};(function(K,ne){typeof navigator<"u"&&function(U,N){K.exports=N()}(s,function(){var U="http://www.w3.org/2000/svg",N="",I=!1,de=-999999,se=function(p){I=!!p},ie=function(){return I},Ae=function(p){N=p},Pe=function(){return N};function Ie(c){return document.createElement(c)}function Le(c,p){var v,x=c.length,P;for(v=0;v<x;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Je(c){function p(){}return p.prototype=c,p}var Qe=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].pause()},resume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].resume()},setRate:function(v){var x,P=this.audios.length;for(x=0;x<P;x+=1)this.audios[x].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),ye=function(){function c(v,x){var P=0,_=[],z;switch(v){case"int16":case"uint8c":z=1;break;default:z=1.1;break}for(P=0;P<x;P+=1)_.push(z);return _}function p(v,x){return v==="float32"?new Float32Array(x):v==="int16"?new Int16Array(x):v==="uint8c"?new Uint8ClampedArray(x):c(v,x)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ne(c){return Array.apply(null,{length:c})}var He=!0,Ke=null,Be="",st=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Dt=Math.pow,ln=Math.sqrt,At=Math.floor,It=Math.min,we=150,Se=Math.PI/180,Re=.5519;function Ge(c,p,v,x){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=x<0?-1:1}function rt(c,p){this.type=c,this.direction=p<0?-1:1}function nt(c,p,v,x){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=x<0?-1:1}function dt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function Et(c,p){this.type=c,this.target=p}function $n(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function en(c){this.type="configError",this.nativeError=c}var Gt=function(){var c=0;return function(){return c+=1,Be+"__lottie_element_"+c}}();function Lr(c,p,v){var x,P,_,z,ge,Q,xe,Ce;switch(z=Math.floor(c*6),ge=c*6-z,Q=v*(1-p),xe=v*(1-ge*p),Ce=v*(1-(1-ge)*p),z%6){case 0:x=v,P=Ce,_=Q;break;case 1:x=xe,P=v,_=Q;break;case 2:x=Q,P=v,_=Ce;break;case 3:x=Q,P=xe,_=v;break;case 4:x=Ce,P=Q,_=v;break;case 5:x=v,P=Q,_=xe;break}return[x,P,_]}function Pr(c,p,v){var x=Math.max(c,p,v),P=Math.min(c,p,v),_=x-P,z,ge=x===0?0:_/x,Q=x/255;switch(x){case P:z=0;break;case c:z=p-v+_*(p<v?6:0),z/=6*_;break;case p:z=v-c+_*2,z/=6*_;break;case v:z=c-p+_*4,z/=6*_;break}return[z,ge,Q]}function Yt(c,p){var v=Pr(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),Lr(v[0],v[1],v[2])}function kt(c,p){var v=Pr(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),Lr(v[0],v[1],v[2])}function jt(c,p){var v=Pr(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),Lr(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(x,P,_){return x<0&&(x=0),P<0&&(P=0),_<0&&(_=0),"#"+c[x]+c[P]+c[_]}})();var tn=function(p){He=!!p},Xn=function(){return He},Ei=function(p){Ke=p},li=function(){return Ke},ci=function(p){we=p},Yr=function(){return we},Uo=function(p){Be=p};function Ct(c){return document.createElementNS(U,c)}function _r(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_r=function(v){return typeof v}:_r=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},_r(c)}var Di=function(){var c=1,p=[],v,x,P={onmessage:function(){},postMessage:function(ee){v({data:ee})}},_={postMessage:function(ee){P.onmessage({data:ee})}};function z(F){if(window.Worker&&window.Blob&&ie()){var ee=new Blob(["var _workerSelf = self; self.onmessage = ",F.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(ee);return new Worker(Y)}return v=F,P}function ge(){x||(x=z(function(ee){function Y(){function he(je,$e){var fe,J,ve=je.length,ze,ke,mt,Lt;for(J=0;J<ve;J+=1)if(fe=je[J],"ks"in fe&&!fe.completed){if(fe.completed=!0,fe.hasMask){var _t=fe.masksProperties;for(ke=_t.length,ze=0;ze<ke;ze+=1)if(_t[ze].pt.k.i)G(_t[ze].pt.k);else for(Lt=_t[ze].pt.k.length,mt=0;mt<Lt;mt+=1)_t[ze].pt.k[mt].s&&G(_t[ze].pt.k[mt].s[0]),_t[ze].pt.k[mt].e&&G(_t[ze].pt.k[mt].e[0])}fe.ty===0?(fe.layers=L(fe.refId,$e),he(fe.layers,$e)):fe.ty===4?V(fe.shapes):fe.ty===5&&ht(fe)}}function H(je,$e){if(je){var fe=0,J=je.length;for(fe=0;fe<J;fe+=1)je[fe].t===1&&(je[fe].data.layers=L(je[fe].data.refId,$e),he(je[fe].data.layers,$e))}}function Z(je,$e){for(var fe=0,J=$e.length;fe<J;){if($e[fe].id===je)return $e[fe];fe+=1}return null}function L(je,$e){var fe=Z(je,$e);return fe?fe.layers.__used?JSON.parse(JSON.stringify(fe.layers)):(fe.layers.__used=!0,fe.layers):null}function V(je){var $e,fe=je.length,J,ve;for($e=fe-1;$e>=0;$e-=1)if(je[$e].ty==="sh")if(je[$e].ks.k.i)G(je[$e].ks.k);else for(ve=je[$e].ks.k.length,J=0;J<ve;J+=1)je[$e].ks.k[J].s&&G(je[$e].ks.k[J].s[0]),je[$e].ks.k[J].e&&G(je[$e].ks.k[J].e[0]);else je[$e].ty==="gr"&&V(je[$e].it)}function G(je){var $e,fe=je.i.length;for($e=0;$e<fe;$e+=1)je.i[$e][0]+=je.v[$e][0],je.i[$e][1]+=je.v[$e][1],je.o[$e][0]+=je.v[$e][0],je.o[$e][1]+=je.v[$e][1]}function re(je,$e){var fe=$e?$e.split("."):[100,100,100];return je[0]>fe[0]?!0:fe[0]>je[0]?!1:je[1]>fe[1]?!0:fe[1]>je[1]?!1:je[2]>fe[2]?!0:fe[2]>je[2]?!1:null}var ce=function(){var je=[4,4,14];function $e(J){var ve=J.t.d;J.t.d={k:[{s:ve,t:0}]}}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===5&&$e(J[ve])}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),me=function(){var je=[4,7,99];return function($e){if($e.chars&&!re(je,$e.v)){var fe,J=$e.chars.length;for(fe=0;fe<J;fe+=1){var ve=$e.chars[fe];ve.data&&ve.data.shapes&&(V(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.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||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var je=[5,7,15];function $e(J){var ve=J.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===5&&$e(J[ve])}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),ot=function(){var je=[4,1,9];function $e(J){var ve,ze=J.length,ke,mt;for(ve=0;ve<ze;ve+=1)if(J[ve].ty==="gr")$e(J[ve].it);else if(J[ve].ty==="fl"||J[ve].ty==="st")if(J[ve].c.k&&J[ve].c.k[0].i)for(mt=J[ve].c.k.length,ke=0;ke<mt;ke+=1)J[ve].c.k[ke].s&&(J[ve].c.k[ke].s[0]/=255,J[ve].c.k[ke].s[1]/=255,J[ve].c.k[ke].s[2]/=255,J[ve].c.k[ke].s[3]/=255),J[ve].c.k[ke].e&&(J[ve].c.k[ke].e[0]/=255,J[ve].c.k[ke].e[1]/=255,J[ve].c.k[ke].e[2]/=255,J[ve].c.k[ke].e[3]/=255);else J[ve].c.k[0]/=255,J[ve].c.k[1]/=255,J[ve].c.k[2]/=255,J[ve].c.k[3]/=255}function fe(J){var ve,ze=J.length;for(ve=0;ve<ze;ve+=1)J[ve].ty===4&&$e(J[ve].shapes)}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}(),it=function(){var je=[4,4,18];function $e(J){var ve,ze=J.length,ke,mt;for(ve=ze-1;ve>=0;ve-=1)if(J[ve].ty==="sh")if(J[ve].ks.k.i)J[ve].ks.k.c=J[ve].closed;else for(mt=J[ve].ks.k.length,ke=0;ke<mt;ke+=1)J[ve].ks.k[ke].s&&(J[ve].ks.k[ke].s[0].c=J[ve].closed),J[ve].ks.k[ke].e&&(J[ve].ks.k[ke].e[0].c=J[ve].closed);else J[ve].ty==="gr"&&$e(J[ve].it)}function fe(J){var ve,ze,ke=J.length,mt,Lt,_t,kn;for(ze=0;ze<ke;ze+=1){if(ve=J[ze],ve.hasMask){var nn=ve.masksProperties;for(Lt=nn.length,mt=0;mt<Lt;mt+=1)if(nn[mt].pt.k.i)nn[mt].pt.k.c=nn[mt].cl;else for(kn=nn[mt].pt.k.length,_t=0;_t<kn;_t+=1)nn[mt].pt.k[_t].s&&(nn[mt].pt.k[_t].s[0].c=nn[mt].cl),nn[mt].pt.k[_t].e&&(nn[mt].pt.k[_t].e[0].c=nn[mt].cl)}ve.ty===4&&$e(ve.shapes)}}return function(J){if(re(je,J.v)&&(fe(J.layers),J.assets)){var ve,ze=J.assets.length;for(ve=0;ve<ze;ve+=1)J.assets[ve].layers&&fe(J.assets[ve].layers)}}}();function Ue(je){je.__complete||(ot(je),ce(je),me(je),Oe(je),it(je),he(je.layers,je.assets),H(je.chars,je.assets),je.__complete=!0)}function ht(je){je.t.a.length===0&&"m"in je.t.p}var gt={};return gt.completeData=Ue,gt.checkColors=ot,gt.checkChars=me,gt.checkPathProperties=Oe,gt.checkShapes=it,gt.completeLayers=he,gt}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function he(Z){var L=Z.getResponseHeader("content-type");return L&&Z.responseType==="json"&&L.indexOf("json")!==-1||Z.response&&_r(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function H(Z,L,V,G){var re,ce=new XMLHttpRequest;try{ce.responseType="json"}catch{}ce.onreadystatechange=function(){if(ce.readyState===4)if(ce.status===200)re=he(ce),V(re);else try{re=he(ce),V(re)}catch(me){G&&G(me)}};try{ce.open(["G","E","T"].join(""),Z,!0)}catch{ce.open(["G","E","T"].join(""),L+"/"+Z,!0)}ce.send()}return{load:H}}()),ee.data.type==="loadAnimation")_.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){_.dataManager.completeData(he),_.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})});else if(ee.data.type==="complete"){var pe=ee.data.animation;_.dataManager.completeData(pe),_.postMessage({id:ee.data.id,payload:pe,status:"success"})}else ee.data.type==="loadData"&&_.assetLoader.load(ee.data.path,ee.data.fullPath,function(he){_.postMessage({id:ee.data.id,payload:he,status:"success"})},function(){_.postMessage({id:ee.data.id,status:"error"})})}),x.onmessage=function(F){var ee=F.data,Y=ee.id,pe=p[Y];p[Y]=null,ee.status==="success"?pe.onComplete(ee.payload):pe.onError&&pe.onError()})}function Q(F,ee){c+=1;var Y="processId_"+c;return p[Y]={onComplete:F,onError:ee},Y}function xe(F,ee,Y){ge();var pe=Q(ee,Y);x.postMessage({type:"loadAnimation",path:F,fullPath:window.location.origin+window.location.pathname,id:pe})}function Ce(F,ee,Y){ge();var pe=Q(ee,Y);x.postMessage({type:"loadData",path:F,fullPath:window.location.origin+window.location.pathname,id:pe})}function Fe(F,ee,Y){ge();var pe=Q(ee,Y);x.postMessage({type:"complete",animation:F,id:pe})}return{loadAnimation:xe,loadData:Ce,completeAnimation:Fe}}(),Ss=function(){var c=function(){var H=Ie("canvas");H.width=1,H.height=1;var Z=H.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),H}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function x(H,Z,L){var V="";if(H.e)V=H.p;else if(Z){var G=H.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),V=Z+G}else V=L,V+=H.u?H.u:"",V+=H.p;return V}function P(H){var Z=0,L=setInterval((function(){var V=H.getBBox();(V.width||Z>500)&&(this._imageLoaded(),clearInterval(L)),Z+=1}).bind(this),50)}function _(H){var Z=x(H,this.assetsPath,this.path),L=Ct("image");st?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var V={img:L,assetData:H};return V}function z(H){var Z=x(H,this.assetsPath,this.path),L=Ie("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){V.img=c,this._imageLoaded()}).bind(this),!1),L.src=Z;var V={img:L,assetData:H};return V}function ge(H){var Z={assetData:H},L=x(H,this.assetsPath,this.path);return Di.loadData(L,(function(V){Z.img=V,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function Q(H,Z){this.imagesLoadedCb=Z;var L,V=H.length;for(L=0;L<V;L+=1)H[L].layers||(!H[L].t||H[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(H[L]))):H[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(H[L]))))}function xe(H){this.path=H||""}function Ce(H){this.assetsPath=H||""}function Fe(H){for(var Z=0,L=this.images.length;Z<L;){if(this.images[Z].assetData===H)return this.images[Z].img;Z+=1}return null}function F(){this.imagesLoadedCb=null,this.images.length=0}function ee(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function pe(H,Z){H==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function he(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=ge.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return he.prototype={loadAssets:Q,setAssetsPath:Ce,setPath:xe,loadedImages:ee,loadedFootages:Y,destroy:F,getAsset:Fe,createImgData:z,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:pe},he}();function ma(){}ma.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var x=this._cbs[p],P=0;P<x.length;P+=1)x[P](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var x=0,P=this._cbs[p].length;x<P;)this._cbs[p][x]===v&&(this._cbs[p].splice(x,1),x-=1,P-=1),x+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var au=function(){function c(p){for(var v=p.split(`\r
|
|
146
|
-
`),x={},P,_=0,z=0;z<v.length;z+=1)P=v[z].split(":"),P.length===2&&(x[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return x}return function(p){for(var v=[],x=0;x<p.length;x+=1){var P=p[x],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[x].cm)}catch{try{_.payload=c(p[x].cm)}catch{_.payload={name:p[x].cm}}}v.push(_)}return v}}(),ga=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var x=0,P=this.compositions.length;x<P;){if(this.compositions[x].data&&this.compositions[x].data.nm===v)return this.compositions[x].prepareFrame&&this.compositions[x].data.xt&&this.compositions[x].prepareFrame(this.currentFrame),this.compositions[x].compInterface;x+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),po={},va=function(p,v){po[p]=v};function Ai(c){return po[c]}function Ti(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ti=function(v){return typeof v}:Ti=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ti(c)}var wt=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=Gt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=Xn(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ga(),this.imagePreloader=new Ss,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new Ge("drawnFrame",0,0,0)};Le([ma],wt),wt.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=Ai(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")),Di.loadAnimation(c.path,this.configAnimation,this.onSetupError))},wt.prototype.onSetupError=function(){this.trigger("data_failed")},wt.prototype.setupAnimation=function(c){Di.completeAnimation(c,this.configAnimation)},wt.prototype.setData=function(c,p){p&&Ti(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},x=c.attributes;v.path=x.getNamedItem("data-animation-path")?x.getNamedItem("data-animation-path").value:x.getNamedItem("data-bm-path")?x.getNamedItem("data-bm-path").value:x.getNamedItem("bm-path")?x.getNamedItem("bm-path").value:"",v.animType=x.getNamedItem("data-anim-type")?x.getNamedItem("data-anim-type").value:x.getNamedItem("data-bm-type")?x.getNamedItem("data-bm-type").value:x.getNamedItem("bm-type")?x.getNamedItem("bm-type").value:x.getNamedItem("data-bm-renderer")?x.getNamedItem("data-bm-renderer").value:x.getNamedItem("bm-renderer")?x.getNamedItem("bm-renderer").value:"canvas";var P=x.getNamedItem("data-anim-loop")?x.getNamedItem("data-anim-loop").value:x.getNamedItem("data-bm-loop")?x.getNamedItem("data-bm-loop").value:x.getNamedItem("bm-loop")?x.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=x.getNamedItem("data-anim-autoplay")?x.getNamedItem("data-anim-autoplay").value:x.getNamedItem("data-bm-autoplay")?x.getNamedItem("data-bm-autoplay").value:x.getNamedItem("bm-autoplay")?x.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=x.getNamedItem("data-name")?x.getNamedItem("data-name").value:x.getNamedItem("data-bm-name")?x.getNamedItem("data-bm-name").value:x.getNamedItem("bm-name")?x.getNamedItem("bm-name").value:"";var z=x.getNamedItem("data-anim-prerender")?x.getNamedItem("data-anim-prerender").value:x.getNamedItem("data-bm-prerender")?x.getNamedItem("data-bm-prerender").value:x.getNamedItem("bm-prerender")?x.getNamedItem("bm-prerender").value:"";z==="false"&&(v.prerender=!1),this.setParams(v)},wt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,x=p.length,P=c.layers,_,z=P.length;for(_=0;_<z;_+=1)for(v=0;v<x;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(x=c.assets.length,v=0;v<x;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,Di.completeAnimation(this.animationData,this.onSegmentComplete)},wt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=li();p&&p.initExpressions(this),this.loadNextSegment()},wt.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,Di.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},wt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},wt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},wt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},wt.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=au(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},wt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},wt.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=li();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},wt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,x=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,x)},wt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},wt.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")},wt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},wt.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")))},wt.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())},wt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},wt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},wt.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},wt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},wt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop(x,p,v);this.play()}},wt.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"))}},wt.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")},wt.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)},wt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),Ti(c[0])==="object"){var v,x=c.length;for(v=0;v<x;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},wt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},wt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},wt.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)},wt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},wt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},wt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},wt.prototype.setLoop=function(c){this.loop=c},wt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},wt.prototype.getVolume=function(){return this.audioController.getVolume()},wt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},wt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},wt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},wt.prototype.getPath=function(){return this.path},wt.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},wt.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},wt.prototype.hide=function(){this.renderer.hide()},wt.prototype.show=function(){this.renderer.show()},wt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},wt.prototype.updateDocumentData=function(c,p,v){try{var x=this.renderer.getElementByPath(c);x.updateDocumentData(p,v)}catch{}},wt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new Ge(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 nt(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new rt(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new dt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new Et(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new Ge(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new nt(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new rt(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new dt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Et(c,this))},wt.prototype.triggerRenderFrameError=function(c){var p=new $n(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},wt.prototype.triggerConfigError=function(c){var p=new en(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var An=function(){var c={},p=[],v=0,x=0,P=0,_=!0,z=!1;function ge($e){for(var fe=0,J=$e.target;fe<x;)p[fe].animation===J&&(p.splice(fe,1),fe-=1,x-=1,J.isPaused||Fe()),fe+=1}function Q($e,fe){if(!$e)return null;for(var J=0;J<x;){if(p[J].elem===$e&&p[J].elem!==null)return p[J].animation;J+=1}var ve=new wt;return F(ve,$e),ve.setData($e,fe),ve}function xe(){var $e,fe=p.length,J=[];for($e=0;$e<fe;$e+=1)J.push(p[$e].animation);return J}function Ce(){P+=1,ot()}function Fe(){P-=1}function F($e,fe){$e.addEventListener("destroy",ge),$e.addEventListener("_active",Ce),$e.addEventListener("_idle",Fe),p.push({elem:fe,animation:$e}),x+=1}function ee($e){var fe=new wt;return F(fe,null),fe.setParams($e),fe}function Y($e,fe){var J;for(J=0;J<x;J+=1)p[J].animation.setSpeed($e,fe)}function pe($e,fe){var J;for(J=0;J<x;J+=1)p[J].animation.setDirection($e,fe)}function he($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.play($e)}function H($e){var fe=$e-v,J;for(J=0;J<x;J+=1)p[J].animation.advanceTime(fe);v=$e,P&&!z?window.requestAnimationFrame(H):_=!0}function Z($e){v=$e,window.requestAnimationFrame(H)}function L($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.pause($e)}function V($e,fe,J){var ve;for(ve=0;ve<x;ve+=1)p[ve].animation.goToAndStop($e,fe,J)}function G($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.stop($e)}function re($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.togglePause($e)}function ce($e){var fe;for(fe=x-1;fe>=0;fe-=1)p[fe].animation.destroy($e)}function me($e,fe,J){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),ze,ke=ve.length;for(ze=0;ze<ke;ze+=1)J&&ve[ze].setAttribute("data-bm-type",J),Q(ve[ze],$e);if(fe&&ke===0){J||(J="svg");var mt=document.getElementsByTagName("body")[0];mt.innerText="";var Lt=Ie("div");Lt.style.width="100%",Lt.style.height="100%",Lt.setAttribute("data-bm-type",J),mt.appendChild(Lt),Q(Lt,$e)}}function Oe(){var $e;for($e=0;$e<x;$e+=1)p[$e].animation.resize()}function ot(){!z&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function it(){z=!0}function Ue(){z=!1,ot()}function ht($e,fe){var J;for(J=0;J<x;J+=1)p[J].animation.setVolume($e,fe)}function gt($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.mute($e)}function je($e){var fe;for(fe=0;fe<x;fe+=1)p[fe].animation.unmute($e)}return c.registerAnimation=Q,c.loadAnimation=ee,c.setSpeed=Y,c.setDirection=pe,c.play=he,c.pause=L,c.stop=G,c.togglePause=re,c.searchAnimations=me,c.resize=Oe,c.goToAndStop=V,c.destroy=ce,c.freeze=it,c.unfreeze=Ue,c.setVolume=ht,c.mute=gt,c.unmute=je,c.getRegisteredAnimations=xe,c}(),mo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,L,V,G,re){var ce=re||("bez_"+Z+"_"+L+"_"+V+"_"+G).replace(/\./g,"p");if(p[ce])return p[ce];var me=new H([Z,L,V,G]);return p[ce]=me,me}var x=4,P=.001,_=1e-7,z=10,ge=11,Q=1/(ge-1),xe=typeof Float32Array=="function";function Ce(Z,L){return 1-3*L+3*Z}function Fe(Z,L){return 3*L-6*Z}function F(Z){return 3*Z}function ee(Z,L,V){return((Ce(L,V)*Z+Fe(L,V))*Z+F(L))*Z}function Y(Z,L,V){return 3*Ce(L,V)*Z*Z+2*Fe(L,V)*Z+F(L)}function pe(Z,L,V,G,re){var ce,me,Oe=0;do me=L+(V-L)/2,ce=ee(me,G,re)-Z,ce>0?V=me:L=me;while(Math.abs(ce)>_&&++Oe<z);return me}function he(Z,L,V,G){for(var re=0;re<x;++re){var ce=Y(L,V,G);if(ce===0)return L;var me=ee(L,V,G)-Z;L-=me/ce}return L}function H(Z){this._p=Z,this._mSampleValues=xe?new Float32Array(ge):new Array(ge),this._precomputed=!1,this.get=this.get.bind(this)}return H.prototype={get:function(L){var V=this._p[0],G=this._p[1],re=this._p[2],ce=this._p[3];return this._precomputed||this._precompute(),V===G&&re===ce?L:L===0?0:L===1?1:ee(this._getTForX(L),G,ce)},_precompute:function(){var L=this._p[0],V=this._p[1],G=this._p[2],re=this._p[3];this._precomputed=!0,(L!==V||G!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],V=this._p[2],G=0;G<ge;++G)this._mSampleValues[G]=ee(G*Q,L,V)},_getTForX:function(L){for(var V=this._p[0],G=this._p[2],re=this._mSampleValues,ce=0,me=1,Oe=ge-1;me!==Oe&&re[me]<=L;++me)ce+=Q;--me;var ot=(L-re[me])/(re[me+1]-re[me]),it=ce+ot*Q,Ue=Y(it,V,G);return Ue>=P?he(L,it,V,G):Ue===0?it:pe(L,ce,ce+Q,V,G)}},c}(),ya=function(){function c(p){return p.concat(Ne(p.length))}return{double:c}}(),mr=function(){return function(c,p,v){var x=0,P=c,_=Ne(P),z={newElement:ge,release:Q};function ge(){var xe;return x?(x-=1,xe=_[x]):xe=p(),xe}function Q(xe){x===P&&(_=ya.double(_),P*=2),v&&v(xe),_[x]=xe,x+=1}return z}}(),ba=function(){function c(){return{addedLength:0,percents:ye("float32",Yr()),lengths:ye("float32",Yr())}}return mr(8,c)}(),Rr=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var x,P=v.lengths.length;for(x=0;x<P;x+=1)ba.release(v.lengths[x]);v.lengths.length=0}return mr(8,c,p)}();function uu(){var c=Math;function p(F,ee,Y,pe,he,H){var Z=F*pe+ee*he+Y*H-he*pe-H*F-Y*ee;return Z>-.001&&Z<.001}function v(F,ee,Y,pe,he,H,Z,L,V){if(Y===0&&H===0&&V===0)return p(F,ee,pe,he,Z,L);var G=c.sqrt(c.pow(pe-F,2)+c.pow(he-ee,2)+c.pow(H-Y,2)),re=c.sqrt(c.pow(Z-F,2)+c.pow(L-ee,2)+c.pow(V-Y,2)),ce=c.sqrt(c.pow(Z-pe,2)+c.pow(L-he,2)+c.pow(V-H,2)),me;return G>re?G>ce?me=G-re-ce:me=ce-re-G:ce>re?me=ce-re-G:me=re-G-ce,me>-1e-4&&me<1e-4}var x=function(){return function(F,ee,Y,pe){var he=Yr(),H,Z,L,V,G,re=0,ce,me=[],Oe=[],ot=ba.newElement();for(L=Y.length,H=0;H<he;H+=1){for(G=H/(he-1),ce=0,Z=0;Z<L;Z+=1)V=Dt(1-G,3)*F[Z]+3*Dt(1-G,2)*G*Y[Z]+3*(1-G)*Dt(G,2)*pe[Z]+Dt(G,3)*ee[Z],me[Z]=V,Oe[Z]!==null&&(ce+=Dt(me[Z]-Oe[Z],2)),Oe[Z]=me[Z];ce&&(ce=ln(ce),re+=ce),ot.percents[H]=G,ot.lengths[H]=re}return ot.addedLength=re,ot}}();function P(F){var ee=Rr.newElement(),Y=F.c,pe=F.v,he=F.o,H=F.i,Z,L=F._length,V=ee.lengths,G=0;for(Z=0;Z<L-1;Z+=1)V[Z]=x(pe[Z],pe[Z+1],he[Z],H[Z+1]),G+=V[Z].addedLength;return Y&&L&&(V[Z]=x(pe[Z],pe[0],he[Z],H[0]),G+=V[Z].addedLength),ee.totalLength=G,ee}function _(F){this.segmentLength=0,this.points=new Array(F)}function z(F,ee){this.partialLength=F,this.point=ee}var ge=function(){var F={};return function(ee,Y,pe,he){var H=(ee[0]+"_"+ee[1]+"_"+Y[0]+"_"+Y[1]+"_"+pe[0]+"_"+pe[1]+"_"+he[0]+"_"+he[1]).replace(/\./g,"p");if(!F[H]){var Z=Yr(),L,V,G,re,ce,me=0,Oe,ot,it=null;ee.length===2&&(ee[0]!==Y[0]||ee[1]!==Y[1])&&p(ee[0],ee[1],Y[0],Y[1],ee[0]+pe[0],ee[1]+pe[1])&&p(ee[0],ee[1],Y[0],Y[1],Y[0]+he[0],Y[1]+he[1])&&(Z=2);var Ue=new _(Z);for(G=pe.length,L=0;L<Z;L+=1){for(ot=Ne(G),ce=L/(Z-1),Oe=0,V=0;V<G;V+=1)re=Dt(1-ce,3)*ee[V]+3*Dt(1-ce,2)*ce*(ee[V]+pe[V])+3*(1-ce)*Dt(ce,2)*(Y[V]+he[V])+Dt(ce,3)*Y[V],ot[V]=re,it!==null&&(Oe+=Dt(ot[V]-it[V],2));Oe=ln(Oe),me+=Oe,Ue.points[L]=new z(Oe,ot),it=ot}Ue.segmentLength=me,F[H]=Ue}return F[H]}}();function Q(F,ee){var Y=ee.percents,pe=ee.lengths,he=Y.length,H=At((he-1)*F),Z=F*ee.addedLength,L=0;if(H===he-1||H===0||Z===pe[H])return Y[H];for(var V=pe[H]>Z?-1:1,G=!0;G;)if(pe[H]<=Z&&pe[H+1]>Z?(L=(Z-pe[H])/(pe[H+1]-pe[H]),G=!1):H+=V,H<0||H>=he-1){if(H===he-1)return Y[H];G=!1}return Y[H]+(Y[H+1]-Y[H])*L}function xe(F,ee,Y,pe,he,H){var Z=Q(he,H),L=1-Z,V=c.round((L*L*L*F[0]+(Z*L*L+L*Z*L+L*L*Z)*Y[0]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[0]+Z*Z*Z*ee[0])*1e3)/1e3,G=c.round((L*L*L*F[1]+(Z*L*L+L*Z*L+L*L*Z)*Y[1]+(Z*Z*L+L*Z*Z+Z*L*Z)*pe[1]+Z*Z*Z*ee[1])*1e3)/1e3;return[V,G]}var Ce=ye("float32",8);function Fe(F,ee,Y,pe,he,H,Z){he<0?he=0:he>1&&(he=1);var L=Q(he,Z);H=H>1?1:H;var V=Q(H,Z),G,re=F.length,ce=1-L,me=1-V,Oe=ce*ce*ce,ot=L*ce*ce*3,it=L*L*ce*3,Ue=L*L*L,ht=ce*ce*me,gt=L*ce*me+ce*L*me+ce*ce*V,je=L*L*me+ce*L*V+L*ce*V,$e=L*L*V,fe=ce*me*me,J=L*me*me+ce*V*me+ce*me*V,ve=L*V*me+ce*V*V+L*me*V,ze=L*V*V,ke=me*me*me,mt=V*me*me+me*V*me+me*me*V,Lt=V*V*me+me*V*V+V*me*V,_t=V*V*V;for(G=0;G<re;G+=1)Ce[G*4]=c.round((Oe*F[G]+ot*Y[G]+it*pe[G]+Ue*ee[G])*1e3)/1e3,Ce[G*4+1]=c.round((ht*F[G]+gt*Y[G]+je*pe[G]+$e*ee[G])*1e3)/1e3,Ce[G*4+2]=c.round((fe*F[G]+J*Y[G]+ve*pe[G]+ze*ee[G])*1e3)/1e3,Ce[G*4+3]=c.round((ke*F[G]+mt*Y[G]+Lt*pe[G]+_t*ee[G])*1e3)/1e3;return Ce}return{getSegmentsLength:P,getNewSegment:Fe,getPointInSegment:xe,buildBezierData:ge,pointOnLine2D:p,pointOnLine3D:v}}var Br=uu(),lt=function(){var c=de,p=Math.abs;function v(he,H){var Z=this.offsetTime,L;this.propType==="multidimensional"&&(L=ye("float32",this.pv.length));for(var V=H.lastIndex,G=V,re=this.keyframes.length-1,ce=!0,me,Oe,ot;ce;){if(me=this.keyframes[G],Oe=this.keyframes[G+1],G===re-1&&he>=Oe.t-Z){me.h&&(me=Oe),V=0;break}if(Oe.t-Z>he){V=G;break}G<re-1?G+=1:(V=0,ce=!1)}ot=this.keyframesMetadata[G]||{};var it,Ue,ht,gt,je,$e,fe=Oe.t-Z,J=me.t-Z,ve;if(me.to){ot.bezierData||(ot.bezierData=Br.buildBezierData(me.s,Oe.s||me.e,me.to,me.ti));var ze=ot.bezierData;if(he>=fe||he<J){var ke=he>=fe?ze.points.length-1:0;for(Ue=ze.points[ke].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[ke].point[it]}else{ot.__fnct?$e=ot.__fnct:($e=mo.getBezierEasing(me.o.x,me.o.y,me.i.x,me.i.y,me.n).get,ot.__fnct=$e),ht=$e((he-J)/(fe-J));var mt=ze.segmentLength*ht,Lt,_t=H.lastFrame<he&&H._lastKeyframeIndex===G?H._lastAddedLength:0;for(je=H.lastFrame<he&&H._lastKeyframeIndex===G?H._lastPoint:0,ce=!0,gt=ze.points.length;ce;){if(_t+=ze.points[je].partialLength,mt===0||ht===0||je===ze.points.length-1){for(Ue=ze.points[je].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[je].point[it];break}else if(mt>=_t&&mt<_t+ze.points[je+1].partialLength){for(Lt=(mt-_t)/ze.points[je+1].partialLength,Ue=ze.points[je].point.length,it=0;it<Ue;it+=1)L[it]=ze.points[je].point[it]+(ze.points[je+1].point[it]-ze.points[je].point[it])*Lt;break}je<gt-1?je+=1:ce=!1}H._lastPoint=je,H._lastAddedLength=_t-ze.points[je].partialLength,H._lastKeyframeIndex=G}}else{var kn,nn,Er,cr,Yn;if(re=me.s.length,ve=Oe.s||me.e,this.sh&&me.h!==1)if(he>=fe)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(he<=J)L[0]=me.s[0],L[1]=me.s[1],L[2]=me.s[2];else{var Qn=_(me.s),er=_(ve),Fr=(he-J)/(fe-J);P(L,x(Qn,er,Fr))}else for(G=0;G<re;G+=1)me.h!==1&&(he>=fe?ht=1:he<J?ht=0:(me.o.x.constructor===Array?(ot.__fnct||(ot.__fnct=[]),ot.__fnct[G]?$e=ot.__fnct[G]:(kn=me.o.x[G]===void 0?me.o.x[0]:me.o.x[G],nn=me.o.y[G]===void 0?me.o.y[0]:me.o.y[G],Er=me.i.x[G]===void 0?me.i.x[0]:me.i.x[G],cr=me.i.y[G]===void 0?me.i.y[0]:me.i.y[G],$e=mo.getBezierEasing(kn,nn,Er,cr).get,ot.__fnct[G]=$e)):ot.__fnct?$e=ot.__fnct:(kn=me.o.x,nn=me.o.y,Er=me.i.x,cr=me.i.y,$e=mo.getBezierEasing(kn,nn,Er,cr).get,me.keyframeMetadata=$e),ht=$e((he-J)/(fe-J)))),ve=Oe.s||me.e,Yn=me.h===1?me.s[G]:me.s[G]+(ve[G]-me.s[G])*ht,this.propType==="multidimensional"?L[G]=Yn:L=Yn}return H.lastIndex=V,L}function x(he,H,Z){var L=[],V=he[0],G=he[1],re=he[2],ce=he[3],me=H[0],Oe=H[1],ot=H[2],it=H[3],Ue,ht,gt,je,$e;return ht=V*me+G*Oe+re*ot+ce*it,ht<0&&(ht=-ht,me=-me,Oe=-Oe,ot=-ot,it=-it),1-ht>1e-6?(Ue=Math.acos(ht),gt=Math.sin(Ue),je=Math.sin((1-Z)*Ue)/gt,$e=Math.sin(Z*Ue)/gt):(je=1-Z,$e=Z),L[0]=je*V+$e*me,L[1]=je*G+$e*Oe,L[2]=je*re+$e*ot,L[3]=je*ce+$e*it,L}function P(he,H){var Z=H[0],L=H[1],V=H[2],G=H[3],re=Math.atan2(2*L*G-2*Z*V,1-2*L*L-2*V*V),ce=Math.asin(2*Z*L+2*V*G),me=Math.atan2(2*Z*G-2*L*V,1-2*Z*Z-2*V*V);he[0]=re/Se,he[1]=ce/Se,he[2]=me/Se}function _(he){var H=he[0]*Se,Z=he[1]*Se,L=he[2]*Se,V=Math.cos(H/2),G=Math.cos(Z/2),re=Math.cos(L/2),ce=Math.sin(H/2),me=Math.sin(Z/2),Oe=Math.sin(L/2),ot=V*G*re-ce*me*Oe,it=ce*me*re+V*G*Oe,Ue=ce*G*re+V*me*Oe,ht=V*me*re-ce*G*Oe;return[it,Ue,ht,ot]}function z(){var he=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(he===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&he>=Z||this._caching.lastFrame<H&&he<H))){this._caching.lastFrame>=he&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(he,this._caching);this.pv=L}return this._caching.lastFrame=he,this.pv}function ge(he){var H;if(this.propType==="unidimensional")H=he*this.mult,p(this.v-H)>1e-5&&(this.v=H,this._mdf=!0);else for(var Z=0,L=this.v.length;Z<L;)H=he[Z]*this.mult,p(this.v[Z]-H)>1e-5&&(this.v[Z]=H,this._mdf=!0),Z+=1}function Q(){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 he,H=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(he=0;he<H;he+=1)Z=this.effectsSequence[he](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function xe(he){this.effectsSequence.push(he),this.container.addDynamicProperty(this)}function Ce(he,H,Z,L){this.propType="unidimensional",this.mult=Z||1,this.data=H,this.v=Z?H.k*Z:H.k,this.pv=H.k,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Q,this.setVValue=ge,this.addEffect=xe}function Fe(he,H,Z,L){this.propType="multidimensional",this.mult=Z||1,this.data=H,this._mdf=!1,this.elem=he,this.container=L,this.comp=he.comp,this.k=!1,this.kf=!1,this.frameId=-1;var V,G=H.k.length;for(this.v=ye("float32",G),this.pv=ye("float32",G),this.vel=ye("float32",G),V=0;V<G;V+=1)this.v[V]=H.k[V]*this.mult,this.pv[V]=H.k[V];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Q,this.setVValue=ge,this.addEffect=xe}function F(he,H,Z,L){this.propType="unidimensional",this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=H,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=Q,this.setVValue=ge,this.interpolateValue=v,this.effectsSequence=[z.bind(this)],this.addEffect=xe}function ee(he,H,Z,L){this.propType="multidimensional";var V,G=H.k.length,re,ce,me,Oe;for(V=0;V<G-1;V+=1)H.k[V].to&&H.k[V].s&&H.k[V+1]&&H.k[V+1].s&&(re=H.k[V].s,ce=H.k[V+1].s,me=H.k[V].to,Oe=H.k[V].ti,(re.length===2&&!(re[0]===ce[0]&&re[1]===ce[1])&&Br.pointOnLine2D(re[0],re[1],ce[0],ce[1],re[0]+me[0],re[1]+me[1])&&Br.pointOnLine2D(re[0],re[1],ce[0],ce[1],ce[0]+Oe[0],ce[1]+Oe[1])||re.length===3&&!(re[0]===ce[0]&&re[1]===ce[1]&&re[2]===ce[2])&&Br.pointOnLine3D(re[0],re[1],re[2],ce[0],ce[1],ce[2],re[0]+me[0],re[1]+me[1],re[2]+me[2])&&Br.pointOnLine3D(re[0],re[1],re[2],ce[0],ce[1],ce[2],ce[0]+Oe[0],ce[1]+Oe[1],ce[2]+Oe[2]))&&(H.k[V].to=null,H.k[V].ti=null),re[0]===ce[0]&&re[1]===ce[1]&&me[0]===0&&me[1]===0&&Oe[0]===0&&Oe[1]===0&&(re.length===2||re[2]===ce[2]&&me[2]===0&&Oe[2]===0)&&(H.k[V].to=null,H.k[V].ti=null));this.effectsSequence=[z.bind(this)],this.data=H,this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=he.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=he,this.container=L,this.comp=he.comp,this.getValue=Q,this.setVValue=ge,this.interpolateValue=v,this.frameId=-1;var ot=H.k[0].s.length;for(this.v=ye("float32",ot),this.pv=ye("float32",ot),V=0;V<ot;V+=1)this.v[V]=c,this.pv[V]=c;this._caching={lastFrame:c,lastIndex:0,value:ye("float32",ot)},this.addEffect=xe}function Y(he,H,Z,L,V){var G;if(!H.k.length)G=new Ce(he,H,L,V);else if(typeof H.k[0]=="number")G=new Fe(he,H,L,V);else switch(Z){case 0:G=new F(he,H,L,V);break;case 1:G=new ee(he,H,L,V);break}return G.effectsSequence.length&&V.addDynamicProperty(G),G}var pe={getProp:Y};return pe}();function yn(){}yn.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 Pi=function(){function c(){return ye("float32",2)}return mr(8,c)}();function Zr(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ne(this._maxLength),this.o=Ne(this._maxLength),this.i=Ne(this._maxLength)}Zr.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=Pi.newElement(),this.o[v]=Pi.newElement(),this.i[v]=Pi.newElement(),v+=1},Zr.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},Zr.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ne(this._maxLength)),this.i=this.i.concat(Ne(this._maxLength)),this.o=this.o.concat(Ne(this._maxLength)),this._maxLength*=2},Zr.prototype.setXYAt=function(c,p,v,x,P){var _;switch(this._length=Math.max(this._length,x+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[x]||_[x]&&!P)&&(_[x]=Pi.newElement()),_[x][0]=c,_[x][1]=p},Zr.prototype.setTripleAt=function(c,p,v,x,P,_,z,ge){this.setXYAt(c,p,"v",z,ge),this.setXYAt(v,x,"o",z,ge),this.setXYAt(P,_,"i",z,ge)},Zr.prototype.reverse=function(){var c=new Zr;c.setPathData(this.c,this._length);var p=this.v,v=this.o,x=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],x[0][0],x[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,z=this._length,ge;for(ge=P;ge<z;ge+=1)c.setTripleAt(p[_][0],p[_][1],x[_][0],x[_][1],v[_][0],v[_][1],ge,!1),_-=1;return c},Zr.prototype.length=function(){return this._length};var Wn=function(){function c(){return new Zr}function p(P){var _=P._length,z;for(z=0;z<_;z+=1)Pi.release(P.v[z]),Pi.release(P.i[z]),Pi.release(P.o[z]),P.v[z]=null,P.i[z]=null,P.o[z]=null;P._length=0,P.c=!1}function v(P){var _=x.newElement(),z,ge=P._length===void 0?P.v.length:P._length;for(_.setLength(ge),_.c=P.c,z=0;z<ge;z+=1)_.setTripleAt(P.v[z][0],P.v[z][1],P.o[z][0],P.o[z][1],P.i[z][0],P.i[z][1],z);return _}var x=mr(4,c,p);return x.clone=v,x}();function Es(){this._length=0,this._maxLength=4,this.shapes=Ne(this._maxLength)}Es.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ne(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Es.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Wn.release(this.shapes[c]);this._length=0};var Vi=function(){var c={newShapeCollection:P,release:_},p=0,v=4,x=Ne(v);function P(){var z;return p?(p-=1,z=x[p]):z=new Es,z}function _(z){var ge,Q=z._length;for(ge=0;ge<Q;ge+=1)Wn.release(z.shapes[ge]);z._length=0,p===v&&(x=ya.double(x),v*=2),x[p]=z,p+=1}return c}(),Xr=function(){var c=-999999;function p(H,Z,L){var V=L.lastIndex,G,re,ce,me,Oe,ot,it,Ue,ht,gt=this.keyframes;if(H<gt[0].t-this.offsetTime)G=gt[0].s[0],ce=!0,V=0;else if(H>=gt[gt.length-1].t-this.offsetTime)G=gt[gt.length-1].s?gt[gt.length-1].s[0]:gt[gt.length-2].e[0],ce=!0;else{for(var je=V,$e=gt.length-1,fe=!0,J,ve,ze;fe&&(J=gt[je],ve=gt[je+1],!(ve.t-this.offsetTime>H));)je<$e-1?je+=1:fe=!1;if(ze=this.keyframesMetadata[je]||{},ce=J.h===1,V=je,!ce){if(H>=ve.t-this.offsetTime)Ue=1;else if(H<J.t-this.offsetTime)Ue=0;else{var ke;ze.__fnct?ke=ze.__fnct:(ke=mo.getBezierEasing(J.o.x,J.o.y,J.i.x,J.i.y).get,ze.__fnct=ke),Ue=ke((H-(J.t-this.offsetTime))/(ve.t-this.offsetTime-(J.t-this.offsetTime)))}re=ve.s?ve.s[0]:J.e[0]}G=J.s[0]}for(ot=Z._length,it=G.i[0].length,L.lastIndex=V,me=0;me<ot;me+=1)for(Oe=0;Oe<it;Oe+=1)ht=ce?G.i[me][Oe]:G.i[me][Oe]+(re.i[me][Oe]-G.i[me][Oe])*Ue,Z.i[me][Oe]=ht,ht=ce?G.o[me][Oe]:G.o[me][Oe]+(re.o[me][Oe]-G.o[me][Oe])*Ue,Z.o[me][Oe]=ht,ht=ce?G.v[me][Oe]:G.v[me][Oe]+(re.v[me][Oe]-G.v[me][Oe])*Ue,Z.v[me][Oe]=ht}function v(){var H=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,V=this._caching.lastFrame;return V!==c&&(V<Z&&H<Z||V>L&&H>L)||(this._caching.lastIndex=V<H?this._caching.lastIndex:0,this.interpolateShape(H,this.pv,this._caching)),this._caching.lastFrame=H,this.pv}function x(){this.paths=this.localShapeCollection}function P(H,Z){if(H._length!==Z._length||H.c!==Z.c)return!1;var L,V=H._length;for(L=0;L<V;L+=1)if(H.v[L][0]!==Z.v[L][0]||H.v[L][1]!==Z.v[L][1]||H.o[L][0]!==Z.o[L][0]||H.o[L][1]!==Z.o[L][1]||H.i[L][0]!==Z.i[L][0]||H.i[L][1]!==Z.i[L][1])return!1;return!0}function _(H){P(this.v,H)||(this.v=Wn.clone(H),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function z(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var H;this.kf?H=this.pv:this.data.ks?H=this.data.ks.k:H=this.data.pt.k;var Z,L=this.effectsSequence.length;for(Z=0;Z<L;Z+=1)H=this.effectsSequence[Z](H);this.setVValue(H),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ge(H,Z,L){this.propType="shape",this.comp=H.comp,this.container=H,this.elem=H,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var V=L===3?Z.pt.k:Z.ks.k;this.v=Wn.clone(V),this.pv=Wn.clone(this.v),this.localShapeCollection=Vi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=x,this.effectsSequence=[]}function Q(H){this.effectsSequence.push(H),this.container.addDynamicProperty(this)}ge.prototype.interpolateShape=p,ge.prototype.getValue=z,ge.prototype.setVValue=_,ge.prototype.addEffect=Q;function xe(H,Z,L){this.propType="shape",this.comp=H.comp,this.elem=H,this.container=H,this.offsetTime=H.data.st,this.keyframes=L===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var V=this.keyframes[0].s[0].i.length;this.v=Wn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,V),this.pv=Wn.clone(this.v),this.localShapeCollection=Vi.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=x,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}xe.prototype.getValue=z,xe.prototype.interpolateShape=p,xe.prototype.setVValue=_,xe.prototype.addEffect=Q;var Ce=function(){var H=Re;function Z(L,V){this.v=Wn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Vi.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=V.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=lt.getProp(L,V.p,1,0,this),this.s=lt.getProp(L,V.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var V=this.p.v[0],G=this.p.v[1],re=this.s.v[0]/2,ce=this.s.v[1]/2,me=this.d!==3,Oe=this.v;Oe.v[0][0]=V,Oe.v[0][1]=G-ce,Oe.v[1][0]=me?V+re:V-re,Oe.v[1][1]=G,Oe.v[2][0]=V,Oe.v[2][1]=G+ce,Oe.v[3][0]=me?V-re:V+re,Oe.v[3][1]=G,Oe.i[0][0]=me?V-re*H:V+re*H,Oe.i[0][1]=G-ce,Oe.i[1][0]=me?V+re:V-re,Oe.i[1][1]=G-ce*H,Oe.i[2][0]=me?V+re*H:V-re*H,Oe.i[2][1]=G+ce,Oe.i[3][0]=me?V-re:V+re,Oe.i[3][1]=G+ce*H,Oe.o[0][0]=me?V+re*H:V-re*H,Oe.o[0][1]=G-ce,Oe.o[1][0]=me?V+re:V-re,Oe.o[1][1]=G+ce*H,Oe.o[2][0]=me?V-re*H:V+re*H,Oe.o[2][1]=G+ce,Oe.o[3][0]=me?V-re:V+re,Oe.o[3][1]=G-ce*H}},Le([yn],Z),Z}(),Fe=function(){function H(Z,L){this.v=Wn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),L.sy===1?(this.ir=lt.getProp(Z,L.ir,0,0,this),this.is=lt.getProp(Z,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=lt.getProp(Z,L.pt,0,0,this),this.p=lt.getProp(Z,L.p,1,0,this),this.r=lt.getProp(Z,L.r,0,Se,this),this.or=lt.getProp(Z,L.or,0,0,this),this.os=lt.getProp(Z,L.os,0,.01,this),this.localShapeCollection=Vi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return H.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,V=Math.PI*2/L,G=!0,re=this.or.v,ce=this.ir.v,me=this.os.v,Oe=this.is.v,ot=2*Math.PI*re/(L*2),it=2*Math.PI*ce/(L*2),Ue,ht,gt,je,$e=-Math.PI/2;$e+=this.r.v;var fe=this.data.d===3?-1:1;for(this.v._length=0,Ue=0;Ue<L;Ue+=1){ht=G?re:ce,gt=G?me:Oe,je=G?ot:it;var J=ht*Math.cos($e),ve=ht*Math.sin($e),ze=J===0&&ve===0?0:ve/Math.sqrt(J*J+ve*ve),ke=J===0&&ve===0?0:-J/Math.sqrt(J*J+ve*ve);J+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(J,ve,J-ze*je*gt*fe,ve-ke*je*gt*fe,J+ze*je*gt*fe,ve+ke*je*gt*fe,Ue,!0),G=!G,$e+=V*fe}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),V=Math.PI*2/L,G=this.or.v,re=this.os.v,ce=2*Math.PI*G/(L*4),me,Oe=-Math.PI*.5,ot=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,me=0;me<L;me+=1){var it=G*Math.cos(Oe),Ue=G*Math.sin(Oe),ht=it===0&&Ue===0?0:Ue/Math.sqrt(it*it+Ue*Ue),gt=it===0&&Ue===0?0:-it/Math.sqrt(it*it+Ue*Ue);it+=+this.p.v[0],Ue+=+this.p.v[1],this.v.setTripleAt(it,Ue,it-ht*ce*re*ot,Ue-gt*ce*re*ot,it+ht*ce*re*ot,Ue+gt*ce*re*ot,me,!0),Oe+=V*ot}this.paths.length=0,this.paths[0]=this.v}},Le([yn],H),H}(),F=function(){function H(Z,L){this.v=Wn.newElement(),this.v.c=!0,this.localShapeCollection=Vi.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Z),this.p=lt.getProp(Z,L.p,1,0,this),this.s=lt.getProp(Z,L.s,1,0,this),this.r=lt.getProp(Z,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return H.prototype={convertRectToPath:function(){var L=this.p.v[0],V=this.p.v[1],G=this.s.v[0]/2,re=this.s.v[1]/2,ce=It(G,re,this.r.v),me=ce*(1-Re);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+G,V-re+ce,L+G,V-re+ce,L+G,V-re+me,0,!0),this.v.setTripleAt(L+G,V+re-ce,L+G,V+re-me,L+G,V+re-ce,1,!0),ce!==0?(this.v.setTripleAt(L+G-ce,V+re,L+G-ce,V+re,L+G-me,V+re,2,!0),this.v.setTripleAt(L-G+ce,V+re,L-G+me,V+re,L-G+ce,V+re,3,!0),this.v.setTripleAt(L-G,V+re-ce,L-G,V+re-ce,L-G,V+re-me,4,!0),this.v.setTripleAt(L-G,V-re+ce,L-G,V-re+me,L-G,V-re+ce,5,!0),this.v.setTripleAt(L-G+ce,V-re,L-G+ce,V-re,L-G+me,V-re,6,!0),this.v.setTripleAt(L+G-ce,V-re,L+G-me,V-re,L+G-ce,V-re,7,!0)):(this.v.setTripleAt(L-G,V+re,L-G+me,V+re,L-G,V+re,2),this.v.setTripleAt(L-G,V-re,L-G,V-re+me,L-G,V-re,3))):(this.v.setTripleAt(L+G,V-re+ce,L+G,V-re+me,L+G,V-re+ce,0,!0),ce!==0?(this.v.setTripleAt(L+G-ce,V-re,L+G-ce,V-re,L+G-me,V-re,1,!0),this.v.setTripleAt(L-G+ce,V-re,L-G+me,V-re,L-G+ce,V-re,2,!0),this.v.setTripleAt(L-G,V-re+ce,L-G,V-re+ce,L-G,V-re+me,3,!0),this.v.setTripleAt(L-G,V+re-ce,L-G,V+re-me,L-G,V+re-ce,4,!0),this.v.setTripleAt(L-G+ce,V+re,L-G+ce,V+re,L-G+me,V+re,5,!0),this.v.setTripleAt(L+G-ce,V+re,L+G-me,V+re,L+G-ce,V+re,6,!0),this.v.setTripleAt(L+G,V+re-ce,L+G,V+re-ce,L+G,V+re-me,7,!0)):(this.v.setTripleAt(L-G,V-re,L-G+me,V-re,L-G,V-re,1,!0),this.v.setTripleAt(L-G,V+re,L-G,V+re-me,L-G,V+re,2,!0),this.v.setTripleAt(L+G,V+re,L+G-me,V+re,L+G,V+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:x},Le([yn],H),H}();function ee(H,Z,L){var V;if(L===3||L===4){var G=L===3?Z.pt:Z.ks,re=G.k;re.length?V=new xe(H,Z,L):V=new ge(H,Z,L)}else L===5?V=new F(H,Z):L===6?V=new Ce(H,Z):L===7&&(V=new Fe(H,Z));return V.k&&H.addDynamicProperty(V),V}function Y(){return ge}function pe(){return xe}var he={};return he.getShapeProp=ee,he.getConstructorFunction=Y,he.getKeyframedConstructorFunction=pe,he}();/*!
|
|
147
|
-
Transformation Matrix v2.0
|
|
148
|
-
(c) Epistemex 2014-2015
|
|
149
|
-
www.epistemex.com
|
|
150
|
-
By Ken Fyrstenberg
|
|
151
|
-
Contributions by leeoniya.
|
|
152
|
-
License: MIT, header required.
|
|
153
|
-
*/var Tn=function(){var c=Math.cos,p=Math.sin,v=Math.tan,x=Math.round;function P(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function z(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(1,0,0,0,0,J,-ve,0,0,ve,J,0,0,0,0,1)}function ge(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,0,ve,0,0,1,0,0,-ve,0,J,0,0,0,0,1)}function Q(fe){if(fe===0)return this;var J=c(fe),ve=p(fe);return this._t(J,-ve,0,0,ve,J,0,0,0,0,1,0,0,0,0,1)}function xe(fe,J){return this._t(1,J,fe,1,0,0)}function Ce(fe,J){return this.shear(v(fe),v(J))}function Fe(fe,J){var ve=c(J),ze=p(J);return this._t(ve,ze,0,0,-ze,ve,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(ve,-ze,0,0,ze,ve,0,0,0,0,1,0,0,0,0,1)}function F(fe,J,ve){return!ve&&ve!==0&&(ve=1),fe===1&&J===1&&ve===1?this:this._t(fe,0,0,0,0,J,0,0,0,0,ve,0,0,0,0,1)}function ee(fe,J,ve,ze,ke,mt,Lt,_t,kn,nn,Er,cr,Yn,Qn,er,Fr){return this.props[0]=fe,this.props[1]=J,this.props[2]=ve,this.props[3]=ze,this.props[4]=ke,this.props[5]=mt,this.props[6]=Lt,this.props[7]=_t,this.props[8]=kn,this.props[9]=nn,this.props[10]=Er,this.props[11]=cr,this.props[12]=Yn,this.props[13]=Qn,this.props[14]=er,this.props[15]=Fr,this}function Y(fe,J,ve){return ve=ve||0,fe!==0||J!==0||ve!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,fe,J,ve,1):this}function pe(fe,J,ve,ze,ke,mt,Lt,_t,kn,nn,Er,cr,Yn,Qn,er,Fr){var vt=this.props;if(fe===1&&J===0&&ve===0&&ze===0&&ke===0&&mt===1&&Lt===0&&_t===0&&kn===0&&nn===0&&Er===1&&cr===0)return vt[12]=vt[12]*fe+vt[15]*Yn,vt[13]=vt[13]*mt+vt[15]*Qn,vt[14]=vt[14]*Er+vt[15]*er,vt[15]*=Fr,this._identityCalculated=!1,this;var Cn=vt[0],di=vt[1],zi=vt[2],wo=vt[3],Ri=vt[4],Co=vt[5],So=vt[6],an=vt[7],On=vt[8],es=vt[9],Mi=vt[10],Eo=vt[11],Fi=vt[12],Do=vt[13],ts=vt[14],Pa=vt[15];return vt[0]=Cn*fe+di*ke+zi*kn+wo*Yn,vt[1]=Cn*J+di*mt+zi*nn+wo*Qn,vt[2]=Cn*ve+di*Lt+zi*Er+wo*er,vt[3]=Cn*ze+di*_t+zi*cr+wo*Fr,vt[4]=Ri*fe+Co*ke+So*kn+an*Yn,vt[5]=Ri*J+Co*mt+So*nn+an*Qn,vt[6]=Ri*ve+Co*Lt+So*Er+an*er,vt[7]=Ri*ze+Co*_t+So*cr+an*Fr,vt[8]=On*fe+es*ke+Mi*kn+Eo*Yn,vt[9]=On*J+es*mt+Mi*nn+Eo*Qn,vt[10]=On*ve+es*Lt+Mi*Er+Eo*er,vt[11]=On*ze+es*_t+Mi*cr+Eo*Fr,vt[12]=Fi*fe+Do*ke+ts*kn+Pa*Yn,vt[13]=Fi*J+Do*mt+ts*nn+Pa*Qn,vt[14]=Fi*ve+Do*Lt+ts*Er+Pa*er,vt[15]=Fi*ze+Do*_t+ts*cr+Pa*Fr,this._identityCalculated=!1,this}function he(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function H(fe){for(var J=0;J<16;){if(fe.props[J]!==this.props[J])return!1;J+=1}return!0}function Z(fe){var J;for(J=0;J<16;J+=1)fe.props[J]=this.props[J];return fe}function L(fe){var J;for(J=0;J<16;J+=1)this.props[J]=fe[J]}function V(fe,J,ve){return{x:fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],y:fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],z:fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}}function G(fe,J,ve){return fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12]}function re(fe,J,ve){return fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13]}function ce(fe,J,ve){return fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]}function me(){var fe=this.props[0]*this.props[5]-this.props[1]*this.props[4],J=this.props[5]/fe,ve=-this.props[1]/fe,ze=-this.props[4]/fe,ke=this.props[0]/fe,mt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/fe,Lt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/fe,_t=new Tn;return _t.props[0]=J,_t.props[1]=ve,_t.props[4]=ze,_t.props[5]=ke,_t.props[12]=mt,_t.props[13]=Lt,_t}function Oe(fe){var J=this.getInverseMatrix();return J.applyToPointArray(fe[0],fe[1],fe[2]||0)}function ot(fe){var J,ve=fe.length,ze=[];for(J=0;J<ve;J+=1)ze[J]=Oe(fe[J]);return ze}function it(fe,J,ve){var ze=ye("float32",6);if(this.isIdentity())ze[0]=fe[0],ze[1]=fe[1],ze[2]=J[0],ze[3]=J[1],ze[4]=ve[0],ze[5]=ve[1];else{var ke=this.props[0],mt=this.props[1],Lt=this.props[4],_t=this.props[5],kn=this.props[12],nn=this.props[13];ze[0]=fe[0]*ke+fe[1]*Lt+kn,ze[1]=fe[0]*mt+fe[1]*_t+nn,ze[2]=J[0]*ke+J[1]*Lt+kn,ze[3]=J[0]*mt+J[1]*_t+nn,ze[4]=ve[0]*ke+ve[1]*Lt+kn,ze[5]=ve[0]*mt+ve[1]*_t+nn}return ze}function Ue(fe,J,ve){var ze;return this.isIdentity()?ze=[fe,J,ve]:ze=[fe*this.props[0]+J*this.props[4]+ve*this.props[8]+this.props[12],fe*this.props[1]+J*this.props[5]+ve*this.props[9]+this.props[13],fe*this.props[2]+J*this.props[6]+ve*this.props[10]+this.props[14]],ze}function ht(fe,J){if(this.isIdentity())return fe+","+J;var ve=this.props;return Math.round((fe*ve[0]+J*ve[4]+ve[12])*100)/100+","+Math.round((fe*ve[1]+J*ve[5]+ve[13])*100)/100}function gt(){for(var fe=0,J=this.props,ve="matrix3d(",ze=1e4;fe<16;)ve+=x(J[fe]*ze)/ze,ve+=fe===15?")":",",fe+=1;return ve}function je(fe){var J=1e4;return fe<1e-6&&fe>0||fe>-1e-6&&fe<0?x(fe*J)/J:fe}function $e(){var fe=this.props,J=je(fe[0]),ve=je(fe[1]),ze=je(fe[4]),ke=je(fe[5]),mt=je(fe[12]),Lt=je(fe[13]);return"matrix("+J+","+ve+","+ze+","+ke+","+mt+","+Lt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=z,this.rotateY=ge,this.rotateZ=Q,this.skew=Ce,this.skewFromAxis=Fe,this.shear=xe,this.scale=F,this.setTransform=ee,this.translate=Y,this.transform=pe,this.applyToPoint=V,this.applyToX=G,this.applyToY=re,this.applyToZ=ce,this.applyToPointArray=Ue,this.applyToTriplePoints=it,this.applyToPointStringified=ht,this.toCSS=gt,this.to2dCSS=$e,this.clone=Z,this.cloneFromProps=L,this.equals=H,this.inversePoints=ot,this.inversePoint=Oe,this.getInverseMatrix=me,this._t=this.transform,this.isIdentity=he,this._identity=!0,this._identityCalculated=!1,this.props=ye("float32",16),this.reset()}}();function go(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?go=function(v){return typeof v}:go=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},go(c)}var Ht={};function lu(c){Ae(c)}function Ds(){An.searchAnimations()}function cu(c){tn(c)}function zo(c){Uo(c)}function Ni(c){return An.loadAnimation(c)}function As(c){if(typeof c=="string")switch(c){case"high":ci(200);break;default:case"medium":ci(50);break;case"low":ci(10);break}else!isNaN(c)&&c>1&&ci(c)}function Ts(){return typeof navigator<"u"}function xa(c,p){c==="expressions"&&Ei(p)}function $a(c){switch(c){case"propertyFactory":return lt;case"shapePropertyFactory":return Xr;case"matrix":return Tn;default:return null}}Ht.play=An.play,Ht.pause=An.pause,Ht.setLocationHref=lu,Ht.togglePause=An.togglePause,Ht.setSpeed=An.setSpeed,Ht.setDirection=An.setDirection,Ht.stop=An.stop,Ht.searchAnimations=Ds,Ht.registerAnimation=An.registerAnimation,Ht.loadAnimation=Ni,Ht.setSubframeRendering=cu,Ht.resize=An.resize,Ht.goToAndStop=An.goToAndStop,Ht.destroy=An.destroy,Ht.setQuality=As,Ht.inBrowser=Ts,Ht.installPlugin=xa,Ht.freeze=An.freeze,Ht.unfreeze=An.unfreeze,Ht.setVolume=An.setVolume,Ht.mute=An.mute,Ht.unmute=An.unmute,Ht.getRegisteredAnimations=An.getRegisteredAnimations,Ht.useWebWorker=se,Ht.setIDPrefix=zo,Ht.__getFactory=$a,Ht.version="5.10.2";function fu(){document.readyState==="complete"&&(clearInterval(Sa),Ds())}function wa(c){for(var p=qo.split("&"),v=0;v<p.length;v+=1){var x=p[v].split("=");if(decodeURIComponent(x[0])==c)return decodeURIComponent(x[1])}return null}var qo="";{var Ps=document.getElementsByTagName("script"),vo=Ps.length-1,Ca=Ps[vo]||{src:""};qo=Ca.src?Ca.src.replace(/^[^\?]+\??/,""):"",wa("renderer")}var Sa=setInterval(fu,100);try{go(ne)!=="object"&&(window.bodymovin=Ht)}catch{}var Mr=function(){var c={},p={};c.registerModifier=v,c.getModifier=x;function v(P,_){p[P]||(p[P]=_)}function x(P,_,z){return new p[P](_,z)}return c}();function gr(){}gr.prototype.initModifierProperties=function(){},gr.prototype.addShapeToModifier=function(){},gr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:Vi.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},gr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=de,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Le([yn],gr);function te(){}Le([gr],te),te.prototype.initModifierProperties=function(c,p){this.s=lt.getProp(c,p.s,0,.01,this),this.e=lt.getProp(c,p.e,0,.01,this),this.o=lt.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},te.prototype.addShapeToModifier=function(c){c.pathsData=[]},te.prototype.calculateShapeEdges=function(c,p,v,x,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var z=[],ge,Q=_.length,xe;for(ge=0;ge<Q;ge+=1)if(xe=_[ge],!(xe.e*P<x||xe.s*P>x+v)){var Ce,Fe;xe.s*P<=x?Ce=0:Ce=(xe.s*P-x)/v,xe.e*P>=x+v?Fe=1:Fe=(xe.e*P-x)/v,z.push([Ce,Fe])}return z.length||z.push([0,0]),z},te.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Rr.release(c[p]);return c.length=0,c},te.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var x=this.o.v%360/360;if(x<0&&(x+=1),this.s.v>1?p=1+x:this.s.v<0?p=0+x:p=this.s.v+x,this.e.v>1?v=1+x:this.e.v<0?v=0+x:v=this.e.v+x,p>v){var P=p;p=v,v=P}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var _,z,ge=this.shapes.length,Q,xe,Ce,Fe,F,ee=0;if(v===p)for(z=0;z<ge;z+=1)this.shapes[z].localShapeCollection.releaseShapes(),this.shapes[z].shape._mdf=!0,this.shapes[z].shape.paths=this.shapes[z].localShapeCollection,this._mdf&&(this.shapes[z].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(z=0;z<ge;z+=1)this.shapes[z].pathsData.length=0,this.shapes[z].shape._mdf=!0}else{var Y=[],pe,he;for(z=0;z<ge;z+=1)if(pe=this.shapes[z],!pe.shape._mdf&&!this._mdf&&!c&&this.m!==2)pe.shape.paths=pe.localShapeCollection;else{if(_=pe.shape.paths,xe=_._length,F=0,!pe.shape._mdf&&pe.pathsData.length)F=pe.totalShapeLength;else{for(Ce=this.releasePathsData(pe.pathsData),Q=0;Q<xe;Q+=1)Fe=Br.getSegmentsLength(_.shapes[Q]),Ce.push(Fe),F+=Fe.totalLength;pe.totalShapeLength=F,pe.pathsData=Ce}ee+=F,pe.shape._mdf=!0}var H=p,Z=v,L=0,V;for(z=ge-1;z>=0;z-=1)if(pe=this.shapes[z],pe.shape._mdf){for(he=pe.localShapeCollection,he.releaseShapes(),this.m===2&&ge>1?(V=this.calculateShapeEdges(p,v,pe.totalShapeLength,L,ee),L+=pe.totalShapeLength):V=[[H,Z]],xe=V.length,Q=0;Q<xe;Q+=1){H=V[Q][0],Z=V[Q][1],Y.length=0,Z<=1?Y.push({s:pe.totalShapeLength*H,e:pe.totalShapeLength*Z}):H>=1?Y.push({s:pe.totalShapeLength*(H-1),e:pe.totalShapeLength*(Z-1)}):(Y.push({s:pe.totalShapeLength*H,e:pe.totalShapeLength}),Y.push({s:0,e:pe.totalShapeLength*(Z-1)}));var G=this.addShapes(pe,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var re=pe.shape.paths.shapes[pe.shape.paths._length-1];if(re.c){var ce=G.pop();this.addPaths(G,he),G=this.addShapes(pe,Y[1],ce)}else this.addPaths(G,he),G=this.addShapes(pe,Y[1])}this.addPaths(G,he)}}pe.shape.paths=he}}},te.prototype.addPaths=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)p.addShape(c[v])},te.prototype.addSegment=function(c,p,v,x,P,_,z){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),z&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt(x[0],x[1],"v",_+1)},te.prototype.addSegmentFromArray=function(c,p,v,x){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),x&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},te.prototype.addShapes=function(c,p,v){var x=c.pathsData,P=c.shape.paths.shapes,_,z=c.shape.paths._length,ge,Q,xe=0,Ce,Fe,F,ee,Y=[],pe,he=!0;for(v?(Fe=v._length,pe=v._length):(v=Wn.newElement(),Fe=0,pe=0),Y.push(v),_=0;_<z;_+=1){for(F=x[_].lengths,v.c=P[_].c,Q=P[_].c?F.length:F.length+1,ge=1;ge<Q;ge+=1)if(Ce=F[ge-1],xe+Ce.addedLength<p.s)xe+=Ce.addedLength,v.c=!1;else if(xe>p.e){v.c=!1;break}else p.s<=xe&&p.e>=xe+Ce.addedLength?(this.addSegment(P[_].v[ge-1],P[_].o[ge-1],P[_].i[ge],P[_].v[ge],v,Fe,he),he=!1):(ee=Br.getNewSegment(P[_].v[ge-1],P[_].v[ge],P[_].o[ge-1],P[_].i[ge],(p.s-xe)/Ce.addedLength,(p.e-xe)/Ce.addedLength,F[ge-1]),this.addSegmentFromArray(ee,v,Fe,he),he=!1,v.c=!1),xe+=Ce.addedLength,Fe+=1;if(P[_].c&&F.length){if(Ce=F[ge-1],xe<=p.e){var H=F[ge-1].addedLength;p.s<=xe&&p.e>=xe+H?(this.addSegment(P[_].v[ge-1],P[_].o[ge-1],P[_].i[0],P[_].v[0],v,Fe,he),he=!1):(ee=Br.getNewSegment(P[_].v[ge-1],P[_].v[0],P[_].o[ge-1],P[_].i[0],(p.s-xe)/H,(p.e-xe)/H,F[ge-1]),this.addSegmentFromArray(ee,v,Fe,he),he=!1,v.c=!1)}else v.c=!1;xe+=Ce.addedLength,Fe+=1}if(v._length&&(v.setXYAt(v.v[pe][0],v.v[pe][1],"i",pe),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),xe>p.e)break;_<z-1&&(v=Wn.newElement(),he=!0,Y.push(v),Fe=0)}return Y};function Te(){}Le([gr],Te),Te.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=lt.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Te.prototype.processPath=function(c,p){var v=p/100,x=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)x[0]+=c.v[_][0],x[1]+=c.v[_][1];x[0]/=P,x[1]/=P;var z=Wn.newElement();z.c=c.c;var ge,Q,xe,Ce,Fe,F;for(_=0;_<P;_+=1)ge=c.v[_][0]+(x[0]-c.v[_][0])*v,Q=c.v[_][1]+(x[1]-c.v[_][1])*v,xe=c.o[_][0]+(x[0]-c.o[_][0])*-v,Ce=c.o[_][1]+(x[1]-c.o[_][1])*-v,Fe=c.i[_][0]+(x[0]-c.i[_][0])*-v,F=c.i[_][1]+(x[1]-c.i[_][1])*-v,z.setTripleAt(ge,Q,xe,Ce,Fe,F,_);return z},Te.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,z=this.amount.v;if(z!==0){var ge,Q;for(v=0;v<x;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,_=ge.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Ve=function(){var c=[0,0];function p(Q){var xe=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||xe,this.a&&Q.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Q.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Q.skewFromAxis(-this.sk.v,this.sa.v),this.r?Q.rotate(-this.r.v):Q.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?Q.translate(this.px.v,this.py.v,-this.pz.v):Q.translate(this.px.v,this.py.v,0):Q.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(Q){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Q){var xe;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 Ce,Fe;if(xe=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Ce=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/xe,0),Fe=this.p.getValueAtTime(this.p.keyframes[0].t/xe,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Ce=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/xe,0),Fe=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/xe,0)):(Ce=this.p.pv,Fe=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/xe,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Ce=[],Fe=[];var F=this.px,ee=this.py;F._caching.lastFrame+F.offsetTime<=F.keyframes[0].t?(Ce[0]=F.getValueAtTime((F.keyframes[0].t+.01)/xe,0),Ce[1]=ee.getValueAtTime((ee.keyframes[0].t+.01)/xe,0),Fe[0]=F.getValueAtTime(F.keyframes[0].t/xe,0),Fe[1]=ee.getValueAtTime(ee.keyframes[0].t/xe,0)):F._caching.lastFrame+F.offsetTime>=F.keyframes[F.keyframes.length-1].t?(Ce[0]=F.getValueAtTime(F.keyframes[F.keyframes.length-1].t/xe,0),Ce[1]=ee.getValueAtTime(ee.keyframes[ee.keyframes.length-1].t/xe,0),Fe[0]=F.getValueAtTime((F.keyframes[F.keyframes.length-1].t-.01)/xe,0),Fe[1]=ee.getValueAtTime((ee.keyframes[ee.keyframes.length-1].t-.01)/xe,0)):(Ce=[F.pv,ee.pv],Fe[0]=F.getValueAtTime((F._caching.lastFrame+F.offsetTime-.01)/xe,F.offsetTime),Fe[1]=ee.getValueAtTime((ee._caching.lastFrame+ee.offsetTime-.01)/xe,ee.offsetTime))}else Fe=c,Ce=Fe;this.v.rotate(-Math.atan2(Ce[1]-Fe[1],Ce[0]-Fe[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function x(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(Q){this._addDynamicProperty(Q),this.elem.addDynamicProperty(Q),this._isDirty=!0}function z(Q,xe,Ce){if(this.elem=Q,this.frameId=-1,this.propType="transform",this.data=xe,this.v=new Tn,this.pre=new Tn,this.appliedTransformations=0,this.initDynamicPropertyContainer(Ce||Q),xe.p&&xe.p.s?(this.px=lt.getProp(Q,xe.p.x,0,0,this),this.py=lt.getProp(Q,xe.p.y,0,0,this),xe.p.z&&(this.pz=lt.getProp(Q,xe.p.z,0,0,this))):this.p=lt.getProp(Q,xe.p||{k:[0,0,0]},1,0,this),xe.rx){if(this.rx=lt.getProp(Q,xe.rx,0,Se,this),this.ry=lt.getProp(Q,xe.ry,0,Se,this),this.rz=lt.getProp(Q,xe.rz,0,Se,this),xe.or.k[0].ti){var Fe,F=xe.or.k.length;for(Fe=0;Fe<F;Fe+=1)xe.or.k[Fe].to=null,xe.or.k[Fe].ti=null}this.or=lt.getProp(Q,xe.or,1,Se,this),this.or.sh=!0}else this.r=lt.getProp(Q,xe.r||{k:0},0,Se,this);xe.sk&&(this.sk=lt.getProp(Q,xe.sk,0,Se,this),this.sa=lt.getProp(Q,xe.sa,0,Se,this)),this.a=lt.getProp(Q,xe.a||{k:[0,0,0]},1,0,this),this.s=lt.getProp(Q,xe.s||{k:[100,100,100]},1,.01,this),xe.o?this.o=lt.getProp(Q,xe.o,0,.01,Q):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}z.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:x,autoOrient:P},Le([yn],z),z.prototype.addDynamicProperty=_,z.prototype._addDynamicProperty=yn.prototype.addDynamicProperty;function ge(Q,xe,Ce){return new z(Q,xe,Ce)}return{getTransformProperty:ge}}();function We(){}Le([gr],We),We.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=lt.getProp(c,p.c,0,null,this),this.o=lt.getProp(c,p.o,0,null,this),this.tr=Ve.getTransformProperty(c,p.tr,this),this.so=lt.getProp(c,p.tr.so,0,.01,this),this.eo=lt.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 Tn,this.rMatrix=new Tn,this.sMatrix=new Tn,this.tMatrix=new Tn,this.matrix=new Tn},We.prototype.applyTransforms=function(c,p,v,x,P,_){var z=_?-1:1,ge=x.s.v[0]+(1-x.s.v[0])*(1-P),Q=x.s.v[1]+(1-x.s.v[1])*(1-P);c.translate(x.p.v[0]*z*P,x.p.v[1]*z*P,x.p.v[2]),p.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),p.rotate(-x.r.v*z*P),p.translate(x.a.v[0],x.a.v[1],x.a.v[2]),v.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),v.scale(_?1/ge:ge,_?1/Q:Q),v.translate(x.a.v[0],x.a.v[1],x.a.v[2])},We.prototype.init=function(c,p,v,x){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=x,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},We.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)},We.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},We.prototype.changeGroupRender=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},We.prototype.processShapes=function(c){var p,v,x,P,_,z=!1;if(this._mdf||c){var ge=Math.ceil(this.c.v);if(this._groups.length<ge){for(;this._groups.length<ge;){var Q={it:this.cloneElements(this._elements),ty:"gr"};Q.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,Q),this._groups.splice(0,0,Q),this._currentCopies+=1}this.elem.reloadShapes(),z=!0}_=0;var xe;for(x=0;x<=this._groups.length-1;x+=1){if(xe=_<ge,this._groups[x]._render=xe,this.changeGroupRender(this._groups[x].it,xe),!xe){var Ce=this.elemsData[x].it,Fe=Ce[Ce.length-1];Fe.transform.op.v!==0?(Fe.transform.op._mdf=!0,Fe.transform.op.v=0):Fe.transform.op._mdf=!1}_+=1}this._currentCopies=ge;var F=this.o.v,ee=F%1,Y=F>0?Math.floor(F):Math.ceil(F),pe=this.pMatrix.props,he=this.rMatrix.props,H=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(F>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ee,!1),Z+=ee)}else if(F<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;ee&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ee,!0),Z-=ee)}x=this.data.m===1?0:this._currentCopies-1,P=this.data.m===1?1:-1,_=this._currentCopies;for(var L,V;_;){if(p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,V=v.length,p[p.length-1].transform.mProps._mdf=!0,p[p.length-1].transform.op._mdf=!0,p[p.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(x/(this._currentCopies-1)),Z!==0){for((x!==0&&P===1||x!==this._currentCopies-1&&P===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(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]),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(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]),L=0;L<V;L+=1)v[L]=this.matrix.props[L];this.matrix.reset()}else for(this.matrix.reset(),L=0;L<V;L+=1)v[L]=this.matrix.props[L];Z+=1,_-=1,x+=P}}else for(_=this._currentCopies,x=0,P=1;_;)p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,p[p.length-1].transform.mProps._mdf=!1,p[p.length-1].transform.op._mdf=!1,_-=1,x+=P;return z},We.prototype.addShape=function(){};function ct(){}Le([gr],ct),ct.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=lt.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ct.prototype.processPath=function(c,p){var v=Wn.newElement();v.c=c.c;var x,P=c._length,_,z,ge,Q,xe,Ce,Fe=0,F,ee,Y,pe,he,H;for(x=0;x<P;x+=1)_=c.v[x],ge=c.o[x],z=c.i[x],_[0]===ge[0]&&_[1]===ge[1]&&_[0]===z[0]&&_[1]===z[1]?(x===0||x===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],ge[0],ge[1],z[0],z[1],Fe),Fe+=1):(x===0?Q=c.v[P-1]:Q=c.v[x-1],xe=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=xe?Math.min(xe/2,p)/xe:0,he=_[0]+(Q[0]-_[0])*Ce,F=he,H=_[1]-(_[1]-Q[1])*Ce,ee=H,Y=F-(F-_[0])*Re,pe=ee-(ee-_[1])*Re,v.setTripleAt(F,ee,Y,pe,he,H,Fe),Fe+=1,x===P-1?Q=c.v[0]:Q=c.v[x+1],xe=Math.sqrt(Math.pow(_[0]-Q[0],2)+Math.pow(_[1]-Q[1],2)),Ce=xe?Math.min(xe/2,p)/xe:0,Y=_[0]+(Q[0]-_[0])*Ce,F=Y,pe=_[1]+(Q[1]-_[1])*Ce,ee=pe,he=F-(F-_[0])*Re,H=ee-(ee-_[1])*Re,v.setTripleAt(F,ee,Y,pe,he,H,Fe),Fe+=1):(v.setTripleAt(c.v[x][0],c.v[x][1],c.o[x][0],c.o[x][1],c.i[x][0],c.i[x][1],Fe),Fe+=1);return v},ct.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,z=this.rd.v;if(z!==0){var ge,Q;for(v=0;v<x;v+=1){if(ge=this.shapes[v],Q=ge.localShapeCollection,!(!ge.shape._mdf&&!this._mdf&&!c))for(Q.releaseShapes(),ge.shape._mdf=!0,p=ge.shape.paths.shapes,_=ge.shape.paths._length,P=0;P<_;P+=1)Q.addShape(this.processPath(p[P],z));ge.shape.paths=ge.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Bt(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function St(c){return Math.abs(c)<=1e-5}function Tt(c,p,v){return c*(1-v)+p*v}function Zt(c,p,v){return[Tt(c[0],p[0],v),Tt(c[1],p[1],v)]}function Pn(c,p,v){if(c===0)return[];var x=p*p-4*c*v;if(x<0)return[];var P=-p/(2*c);if(x===0)return[P];var _=Math.sqrt(x)/(2*c);return[P-_,P+_]}function ur(c,p,v,x){return[-c+3*p-3*v+x,3*c-6*p+3*v,-3*c+3*p,c]}function lr(c){return new on(c,c,c,c,!1)}function on(c,p,v,x,P){P&&bo(c,p)&&(p=Zt(c,x,1/3)),P&&bo(v,x)&&(v=Zt(c,x,2/3));var _=ur(c[0],p[0],v[0],x[0]),z=ur(c[1],p[1],v[1],x[1]);this.a=[_[0],z[0]],this.b=[_[1],z[1]],this.c=[_[2],z[2]],this.d=[_[3],z[3]],this.points=[c,p,v,x]}on.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]]},on.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]]},on.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},on.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},on.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(St(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var x=Math.sqrt(v);return St(x)?x>0&&x<1?[p]:[]:[p-x,p+x].filter(function(P){return P>0&&P<1})},on.prototype.split=function(c){if(c<=0)return[lr(this.points[0]),this];if(c>=1)return[this,lr(this.points[this.points.length-1])];var p=Zt(this.points[0],this.points[1],c),v=Zt(this.points[1],this.points[2],c),x=Zt(this.points[2],this.points[3],c),P=Zt(p,v,c),_=Zt(v,x,c),z=Zt(P,_,c);return[new on(this.points[0],p,P,z,!0),new on(z,_,x,this.points[3],!0)]};function xr(c,p){var v=c.points[0][p],x=c.points[c.points.length-1][p];if(v>x){var P=x;x=v,v=P}for(var _=Pn(3*c.a[p],2*c.b[p],c.c[p]),z=0;z<_.length;z+=1)if(_[z]>0&&_[z]<1){var ge=c.point(_[z])[p];ge<v?v=ge:ge>x&&(x=ge)}return{min:v,max:x}}on.prototype.bounds=function(){return{x:xr(this,0),y:xr(this,1)}},on.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 yo(c,p,v){var x=c.boundingBox();return{cx:x.cx,cy:x.cy,width:x.width,height:x.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Wo(c){var p=c.bez.split(.5);return[yo(p[0],c.t1,c.t),yo(p[1],c.t,c.t2)]}function _s(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 Jr(c,p,v,x,P,_){if(_s(c,p)){if(v>=_||c.width<=x&&c.height<=x&&p.width<=x&&p.height<=x){P.push([c.t,p.t]);return}var z=Wo(c),ge=Wo(p);Jr(z[0],ge[0],v+1,x,P,_),Jr(z[0],ge[1],v+1,x,P,_),Jr(z[1],ge[0],v+1,x,P,_),Jr(z[1],ge[1],v+1,x,P,_)}}on.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var x=[];return Jr(yo(this,0,1),yo(c,0,1),0,p,x,v),x},on.shapeSegment=function(c,p){var v=(p+1)%c.length();return new on(c.v[p],c.o[p],c.i[v],c.v[v],!0)},on.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new on(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function du(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 Ho(c,p,v,x){var P=[c[0],c[1],1],_=[p[0],p[1],1],z=[v[0],v[1],1],ge=[x[0],x[1],1],Q=du(du(P,_),du(z,ge));return St(Q[2])?null:[Q[0]/Q[2],Q[1]/Q[2]]}function Go(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function Rs(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function bo(c,p){return Bt(c[0],p[0])&&Bt(c[1],p[1])}function Ms(){}Le([gr],Ms),Ms.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=lt.getProp(c,p.s,0,null,this),this.frequency=lt.getProp(c,p.r,0,null,this),this.pointsType=lt.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function Ea(c,p,v,x,P,_,z){var ge=v-Math.PI/2,Q=v+Math.PI/2,xe=p[0]+Math.cos(v)*x*P,Ce=p[1]-Math.sin(v)*x*P;c.setTripleAt(xe,Ce,xe+Math.cos(ge)*_,Ce-Math.sin(ge)*_,xe+Math.cos(Q)*z,Ce-Math.sin(Q)*z,c.length())}function fl(c,p){var v=[p[0]-c[0],p[1]-c[1]],x=-Math.PI*.5,P=[Math.cos(x)*v[0]-Math.sin(x)*v[1],Math.sin(x)*v[0]+Math.cos(x)*v[1]];return P}function Kc(c,p){var v=p===0?c.length()-1:p-1,x=(p+1)%c.length(),P=c.v[v],_=c.v[x],z=fl(P,_);return Math.atan2(0,1)-Math.atan2(z[1],z[0])}function Fs(c,p,v,x,P,_,z){var ge=Kc(p,v),Q=p.v[v%p._length],xe=p.v[v===0?p._length-1:v-1],Ce=p.v[(v+1)%p._length],Fe=_===2?Math.sqrt(Math.pow(Q[0]-xe[0],2)+Math.pow(Q[1]-xe[1],2)):0,F=_===2?Math.sqrt(Math.pow(Q[0]-Ce[0],2)+Math.pow(Q[1]-Ce[1],2)):0;Ea(c,p.v[v%p._length],ge,z,x,F/((P+1)*2),Fe/((P+1)*2))}function Uc(c,p,v,x,P,_){for(var z=0;z<x;z+=1){var ge=(z+1)/(x+1),Q=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,xe=p.normalAngle(ge),Ce=p.point(ge);Ea(c,Ce,xe,_,v,Q/((x+1)*2),Q/((x+1)*2)),_=-_}return _}Ms.prototype.processPath=function(c,p,v,x){var P=c._length,_=Wn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var z=-1,ge=on.shapeSegment(c,0);Fs(_,c,0,p,v,x,z);for(var Q=0;Q<P;Q+=1)z=Uc(_,ge,p,v,x,-z),Q===P-1&&!c.c?ge=null:ge=on.shapeSegment(c,(Q+1)%P),Fs(_,c,Q+1,p,v,x,z);return _},Ms.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,z=this.amplitude.v,ge=Math.max(0,Math.round(this.frequency.v)),Q=this.pointsType.v;if(z!==0){var xe,Ce;for(v=0;v<x;v+=1){if(xe=this.shapes[v],Ce=xe.localShapeCollection,!(!xe.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),xe.shape._mdf=!0,p=xe.shape.paths.shapes,_=xe.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,ge,Q));xe.shape.paths=xe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ks(c,p,v){var x=Math.atan2(p[0]-c[0],p[1]-c[1]);return[Go(c,x,v),Go(p,x,v)]}function sn(c,p){var v,x,P,_,z,ge,Q;Q=ks(c.points[0],c.points[1],p),v=Q[0],x=Q[1],Q=ks(c.points[1],c.points[2],p),P=Q[0],_=Q[1],Q=ks(c.points[2],c.points[3],p),z=Q[0],ge=Q[1];var xe=Ho(v,x,P,_);xe===null&&(xe=x);var Ce=Ho(z,ge,P,_);return Ce===null&&(Ce=z),new on(v,xe,Ce,ge)}function fn(c,p,v,x,P){var _=p.points[3],z=v.points[0];if(x===3||bo(_,z))return _;if(x===2){var ge=-p.tangentAngle(1),Q=-v.tangentAngle(0)+Math.PI,xe=Ho(_,Go(_,ge+Math.PI/2,100),z,Go(z,ge+Math.PI/2,100)),Ce=xe?Rs(xe,_):Rs(_,z)/2,Fe=Go(_,ge,2*Ce*Re);return c.setXYAt(Fe[0],Fe[1],"o",c.length()-1),Fe=Go(z,Q,2*Ce*Re),c.setTripleAt(z[0],z[1],z[0],z[1],Fe[0],Fe[1],c.length()),z}var F=bo(_,p.points[2])?p.points[0]:p.points[2],ee=bo(z,v.points[1])?v.points[3]:v.points[1],Y=Ho(F,_,z,ee);return Y&&Rs(Y,_)<P?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):_}function le(c,p){var v=c.intersections(p);return v.length&&Bt(v[0][0],1)&&v.shift(),v.length?v[0]:null}function Me(c,p){var v=c.slice(),x=p.slice(),P=le(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],x[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=le(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,x]}function Ze(c){for(var p,v=1;v<c.length;v+=1)p=Me(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=Me(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function bt(c,p){var v=c.inflectionPoints(),x,P,_,z;if(v.length===0)return[sn(c,p)];if(v.length===1||Bt(v[1],1))return _=c.split(v[0]),x=_[0],P=_[1],[sn(x,p),sn(P,p)];_=c.split(v[0]),x=_[0];var ge=(v[1]-v[0])/(1-v[0]);return _=_[1].split(ge),z=_[0],P=_[1],[sn(x,p),sn(z,p),sn(P,p)]}function Fn(){}Le([gr],Fn),Fn.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=lt.getProp(c,p.a,0,null,this),this.miterLimit=lt.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Fn.prototype.processPath=function(c,p,v,x){var P=Wn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var z,ge,Q,xe=[];for(z=0;z<_;z+=1)Q=on.shapeSegment(c,z),xe.push(bt(Q,p));if(!c.c)for(z=_-1;z>=0;z-=1)Q=on.shapeSegmentInverted(c,z),xe.push(bt(Q,p));xe=Ze(xe);var Ce=null,Fe=null;for(z=0;z<xe.length;z+=1){var F=xe[z];for(Fe&&(Ce=fn(P,Fe,F[0],v,x)),Fe=F[F.length-1],ge=0;ge<F.length;ge+=1)Q=F[ge],Ce&&bo(Q.points[0],Ce)?P.setXYAt(Q.points[1][0],Q.points[1][1],"o",P.length()-1):P.setTripleAt(Q.points[0][0],Q.points[0][1],Q.points[1][0],Q.points[1][1],Q.points[0][0],Q.points[0][1],P.length()),P.setTripleAt(Q.points[3][0],Q.points[3][1],Q.points[3][0],Q.points[3][1],Q.points[2][0],Q.points[2][1],P.length()),Ce=Q.points[3]}return xe.length&&fn(P,Fe,xe[0][0],v,x),P},Fn.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,z=this.amount.v,ge=this.miterLimit.v,Q=this.lineJoin;if(z!==0){var xe,Ce;for(v=0;v<x;v+=1){if(xe=this.shapes[v],Ce=xe.localShapeCollection,!(!xe.shape._mdf&&!this._mdf&&!c))for(Ce.releaseShapes(),xe.shape._mdf=!0,p=xe.shape.paths.shapes,_=xe.shape.paths._length,P=0;P<_;P+=1)Ce.addShape(this.processPath(p[P],z,Q,ge));xe.shape.paths=xe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function vr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",x="normal",P=p.length,_,z=0;z<P;z+=1)switch(_=p[z].toLowerCase(),_){case"italic":x="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:x,weight:c.fWeight||v}}var $r=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],P=[65039,8205];function _(V){var G=V.split(","),re,ce=G.length,me=[];for(re=0;re<ce;re+=1)G[re]!=="sans-serif"&&G[re]!=="monospace"&&me.push(G[re]);return me.join(",")}function z(V,G){var re=Ie("span");re.setAttribute("aria-hidden",!0),re.style.fontFamily=G;var ce=Ie("span");ce.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(ce),document.body.appendChild(re);var me=ce.offsetWidth;return ce.style.fontFamily=_(V)+", "+G,{node:ce,w:me,parent:re}}function ge(){var V,G=this.fonts.length,re,ce,me=G;for(V=0;V<G;V+=1)this.fonts[V].loaded?me-=1:this.fonts[V].fOrigin==="n"||this.fonts[V].origin===0?this.fonts[V].loaded=!0:(re=this.fonts[V].monoCase.node,ce=this.fonts[V].monoCase.w,re.offsetWidth!==ce?(me-=1,this.fonts[V].loaded=!0):(re=this.fonts[V].sansCase.node,ce=this.fonts[V].sansCase.w,re.offsetWidth!==ce&&(me-=1,this.fonts[V].loaded=!0)),this.fonts[V].loaded&&(this.fonts[V].sansCase.parent.parentNode.removeChild(this.fonts[V].sansCase.parent),this.fonts[V].monoCase.parent.parentNode.removeChild(this.fonts[V].monoCase.parent)));me!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Q(V,G){var re=document.body&&G?"svg":"canvas",ce,me=vr(V);if(re==="svg"){var Oe=Ct("text");Oe.style.fontSize="100px",Oe.setAttribute("font-family",V.fFamily),Oe.setAttribute("font-style",me.style),Oe.setAttribute("font-weight",me.weight),Oe.textContent="1",V.fClass?(Oe.style.fontFamily="inherit",Oe.setAttribute("class",V.fClass)):Oe.style.fontFamily=V.fFamily,G.appendChild(Oe),ce=Oe}else{var ot=new OffscreenCanvas(500,500).getContext("2d");ot.font=me.style+" "+me.weight+" 100px "+V.fFamily,ce=ot}function it(Ue){return re==="svg"?(ce.textContent=Ue,ce.getComputedTextLength()):ce.measureText(Ue).width}return{measureText:it}}function xe(V,G){if(!V){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=V.list;return}if(!document.body){this.isLoaded=!0,V.list.forEach(function($e){$e.helper=Q($e),$e.cache={}}),this.fonts=V.list;return}var re=V.list,ce,me=re.length,Oe=me;for(ce=0;ce<me;ce+=1){var ot=!0,it,Ue;if(re[ce].loaded=!1,re[ce].monoCase=z(re[ce].fFamily,"monospace"),re[ce].sansCase=z(re[ce].fFamily,"sans-serif"),!re[ce].fPath)re[ce].loaded=!0,Oe-=1;else if(re[ce].fOrigin==="p"||re[ce].origin===3){if(it=document.querySelectorAll('style[f-forigin="p"][f-family="'+re[ce].fFamily+'"], style[f-origin="3"][f-family="'+re[ce].fFamily+'"]'),it.length>0&&(ot=!1),ot){var ht=Ie("style");ht.setAttribute("f-forigin",re[ce].fOrigin),ht.setAttribute("f-origin",re[ce].origin),ht.setAttribute("f-family",re[ce].fFamily),ht.type="text/css",ht.innerText="@font-face {font-family: "+re[ce].fFamily+"; font-style: normal; src: url('"+re[ce].fPath+"');}",G.appendChild(ht)}}else if(re[ce].fOrigin==="g"||re[ce].origin===1){for(it=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ue=0;Ue<it.length;Ue+=1)it[Ue].href.indexOf(re[ce].fPath)!==-1&&(ot=!1);if(ot){var gt=Ie("link");gt.setAttribute("f-forigin",re[ce].fOrigin),gt.setAttribute("f-origin",re[ce].origin),gt.type="text/css",gt.rel="stylesheet",gt.href=re[ce].fPath,document.body.appendChild(gt)}}else if(re[ce].fOrigin==="t"||re[ce].origin===2){for(it=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ue=0;Ue<it.length;Ue+=1)re[ce].fPath===it[Ue].src&&(ot=!1);if(ot){var je=Ie("link");je.setAttribute("f-forigin",re[ce].fOrigin),je.setAttribute("f-origin",re[ce].origin),je.setAttribute("rel","stylesheet"),je.setAttribute("href",re[ce].fPath),G.appendChild(je)}}re[ce].helper=Q(re[ce],G),re[ce].cache={},this.fonts.push(re[ce])}Oe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Ce(V){if(V){this.chars||(this.chars=[]);var G,re=V.length,ce,me=this.chars.length,Oe;for(G=0;G<re;G+=1){for(ce=0,Oe=!1;ce<me;)this.chars[ce].style===V[G].style&&this.chars[ce].fFamily===V[G].fFamily&&this.chars[ce].ch===V[G].ch&&(Oe=!0),ce+=1;Oe||(this.chars.push(V[G]),me+=1)}}}function Fe(V,G,re){for(var ce=0,me=this.chars.length;ce<me;){if(this.chars[ce].ch===V&&this.chars[ce].style===G&&this.chars[ce].fFamily===re)return this.chars[ce];ce+=1}return(typeof V=="string"&&V.charCodeAt(0)!==13||!V)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",V,G,re)),p}function F(V,G,re){var ce=this.getFontByName(G),me=V.charCodeAt(0);if(!ce.cache[me+1]){var Oe=ce.helper;if(V===" "){var ot=Oe.measureText("|"+V+"|"),it=Oe.measureText("||");ce.cache[me+1]=(ot-it)/100}else ce.cache[me+1]=Oe.measureText(V)/100}return ce.cache[me+1]*re}function ee(V){for(var G=0,re=this.fonts.length;G<re;){if(this.fonts[G].fName===V)return this.fonts[G];G+=1}return this.fonts[0]}function Y(V,G){var re=V.toString(16)+G.toString(16);return x.indexOf(re)!==-1}function pe(V,G){return G?V===P[0]&&G===P[1]:V===P[1]}function he(V){return v.indexOf(V)!==-1}function H(){this.isLoaded=!0}var Z=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)};Z.isModifier=Y,Z.isZeroWidthJoiner=pe,Z.isCombinedCharacter=he;var L={addChars:Ce,addFonts:xe,getCharData:Fe,getFontByName:ee,measureText:F,checkLoadedFonts:ge,setIsLoaded:H};return Z.prototype=L,Z}();function Jn(){}Jn.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 Bn=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 ji(c,p,v){this.p=lt.getProp(p,c.v,0,0,v)}function Ki(c,p,v){this.p=lt.getProp(p,c.v,0,0,v)}function hu(c,p,v){this.p=lt.getProp(p,c.v,1,0,v)}function Da(c,p,v){this.p=lt.getProp(p,c.v,1,0,v)}function wr(c,p,v){this.p=lt.getProp(p,c.v,0,0,v)}function Os(c,p,v){this.p=lt.getProp(p,c.v,0,0,v)}function eh(c,p,v){this.p=lt.getProp(p,c.v,0,0,v)}function th(){this.p={}}function zc(c,p){var v=c.ef||[];this.effectElements=[];var x,P=v.length,_;for(x=0;x<P;x+=1)_=new Aa(v[x],p),this.effectElements.push(_)}function Aa(c,p){this.init(c,p)}Le([yn],Aa),Aa.prototype.getValue=Aa.prototype.iterateDynamicProperties,Aa.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,x=this.data.ef.length,P,_=this.data.ef;for(v=0;v<x;v+=1){switch(P=null,_[v].ty){case 0:P=new ji(_[v],p,this);break;case 1:P=new Ki(_[v],p,this);break;case 2:P=new hu(_[v],p,this);break;case 3:P=new Da(_[v],p,this);break;case 4:case 7:P=new eh(_[v],p,this);break;case 10:P=new wr(_[v],p,this);break;case 11:P=new Os(_[v],p,this);break;case 5:P=new zc(_[v],p);break;default:P=new th(_[v]);break}P&&this.effectElements.push(P)}};function xo(){}xo.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=Bn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,x){this.globalData=v,this.comp=x,this.data=p,this.layerId=Gt(),this.data.sr||(this.data.sr=1),this.effectsManager=new zc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function Hn(){}Hn.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var x,P=this.dynamicProperties.length;for(x=0;x<P;x+=1)(v||this._isParent&&this.dynamicProperties[x].propType==="transform")&&(this.dynamicProperties[x].getValue(),this.dynamicProperties[x]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Yo(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)}Yo.prototype.prepareFrame=function(){},Le([Jn,xo,Hn],Yo),Yo.prototype.getBaseElement=function(){return null},Yo.prototype.renderFrame=function(){},Yo.prototype.destroy=function(){},Yo.prototype.initExpressions=function(){},Yo.prototype.getFootageData=function(){return this.footageData};function Sn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var x=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(x),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?lt.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=lt.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}Sn.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))},Le([Jn,xo,Hn],Sn),Sn.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))},Sn.prototype.show=function(){},Sn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Sn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Sn.prototype.resume=function(){this._canPlay=!0},Sn.prototype.setRate=function(c){this.audio.rate(c)},Sn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},Sn.prototype.getBaseElement=function(){return null},Sn.prototype.destroy=function(){},Sn.prototype.sourceRectAtTime=function(){},Sn.prototype.initExpressions=function(){};function Cr(){}Cr.prototype.checkLayers=function(c){var p,v=this.layers.length,x;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(x=this.layers[p],x.ip-x.st<=c-this.layers[p].st&&x.op-x.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},Cr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},Cr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Cr.prototype.createAudio=function(c){return new Sn(c,this.globalData,this)},Cr.prototype.createFootage=function(c){return new Yo(c,this.globalData,this)},Cr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},Cr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,x,P=this.layers.length;for(p=0;p<v;p+=1)for(x=0;x<P;){if(this.layers[x].id===c[p].id){this.layers[x]=c[p];break}x+=1}},Cr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},Cr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Cr.prototype.buildElementParenting=function(c,p,v){for(var x=this.elements,P=this.layers,_=0,z=P.length;_<z;)P[_].ind==p&&(!x[_]||x[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push(x[_]),x[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},Cr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},Cr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var x=this.createComp(c[p]);x.initExpressions(),this.globalData.projectInterface.registerComposition(x)}},Cr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},Cr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var x,P=this.elements.length;for(x=0;x<P;x+=1)if(this.elements[x].data.nm===p){v=this.elements[x];break}}return c.length===0?v:v.getElementByPath(c)},Cr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new $r,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 Is(){}Is.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Ve.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Tn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,x=0,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;x<P;){if(this.hierarchy[x].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}x+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),x=0;x<P;x+=1)p=this.hierarchy[x].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var x=!0,P=this.comp;x;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):x=!1;var _,z=v.length,ge;for(_=0;_<z;_+=1)ge=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-ge[0],p[1]-ge[1],0];return p},mHelper:new Tn};function Vr(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var x=this.globalData.defs,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ne(_),this.solidPath="";var z,ge=this.masksProperties,Q=0,xe=[],Ce,Fe,F=Gt(),ee,Y,pe,he,H="clipPath",Z="clip-path";for(P=0;P<_;P+=1)if((ge[P].mode!=="a"&&ge[P].mode!=="n"||ge[P].inv||ge[P].o.k!==100||ge[P].o.x)&&(H="mask",Z="mask"),(ge[P].mode==="s"||ge[P].mode==="i")&&Q===0?(ee=Ct("rect"),ee.setAttribute("fill","#ffffff"),ee.setAttribute("width",this.element.comp.data.w||0),ee.setAttribute("height",this.element.comp.data.h||0),xe.push(ee)):ee=null,z=Ct("path"),ge[P].mode==="n")this.viewData[P]={op:lt.getProp(this.element,ge[P].o,0,.01,this.element),prop:Xr.getShapeProp(this.element,ge[P],3),elem:z,lastPath:""},x.appendChild(z);else{Q+=1,z.setAttribute("fill",ge[P].mode==="s"?"#000000":"#ffffff"),z.setAttribute("clip-rule","nonzero");var L;if(ge[P].x.k!==0?(H="mask",Z="mask",he=lt.getProp(this.element,ge[P].x,0,null,this.element),L=Gt(),Y=Ct("filter"),Y.setAttribute("id",L),pe=Ct("feMorphology"),pe.setAttribute("operator","erode"),pe.setAttribute("in","SourceGraphic"),pe.setAttribute("radius","0"),Y.appendChild(pe),x.appendChild(Y),z.setAttribute("stroke",ge[P].mode==="s"?"#000000":"#ffffff")):(pe=null,he=null),this.storedData[P]={elem:z,x:he,expan:pe,lastPath:"",lastOperator:"",filterId:L,lastRadius:0},ge[P].mode==="i"){Fe=xe.length;var V=Ct("g");for(Ce=0;Ce<Fe;Ce+=1)V.appendChild(xe[Ce]);var G=Ct("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",F+"_"+Q),G.appendChild(z),x.appendChild(G),V.setAttribute("mask","url("+Pe()+"#"+F+"_"+Q+")"),xe.length=0,xe.push(V)}else xe.push(z);ge[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:z,lastPath:"",op:lt.getProp(this.element,ge[P].o,0,.01,this.element),prop:Xr.getShapeProp(this.element,ge[P],3),invRect:ee},this.viewData[P].prop.k||this.drawPath(ge[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=Ct(H),_=xe.length,P=0;P<_;P+=1)this.maskElement.appendChild(xe[P]);Q>0&&(this.maskElement.setAttribute("id",F),this.element.maskedElement.setAttribute(Z,"url("+Pe()+"#"+F+")"),x.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Vr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Vr.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,x=this.masksProperties.length;for(v=0;v<x;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var P=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Pe()+"#"+this.storedData[v].filterId+")")),P.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Vr.prototype.getMaskelement=function(){return this.maskElement},Vr.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},Vr.prototype.drawPath=function(c,p,v){var x=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&(x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==x){var z="";v.elem&&(p.c&&(z=c.inv?this.solidPath+x:x),v.elem.setAttribute("d",z)),v.lastPath=x}},Vr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Zo=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(x,P){var _=Ct("filter");return _.setAttribute("id",x),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var x=Ct("feColorMatrix");return x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),x}return c}(),dl=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}(),wn={},$o="filter_result_";function hl(c){var p,v="SourceGraphic",x=c.data.ef?c.data.ef.length:0,P=Gt(),_=Zo.createFilter(P,!0),z=0;this.filters=[];var ge;for(p=0;p<x;p+=1){ge=null;var Q=c.data.ef[p].ty;if(wn[Q]){var xe=wn[Q].effect;ge=new xe(_,c.effectsManager.effectElements[p],c,$o+z,v),v=$o+z,wn[Q].countsAsEffect&&(z+=1)}ge&&this.filters.push(ge)}z&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+Pe()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}hl.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function pu(){}pu.prototype={initRendererElement:function(){this.layerElement=Ct("g")},createContainerElements:function(){this.matteElement=Ct("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=Ct("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var x=Ct("clipPath"),P=Ct("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=Gt();if(x.setAttribute("id",_),x.appendChild(P),this.globalData.defs.appendChild(x),this.checkMasks()){var z=Ct("g");z.setAttribute("clip-path","url("+Pe()+"#"+_+")"),z.appendChild(this.layerElement),this.transformedElement=z,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+_+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Vr(this.data,this,this.globalData),this.renderableEffectsManager=new hl(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,x,P,_,z;if(p===1||p===3){var ge=Ct("mask");ge.setAttribute("id",v),ge.setAttribute("mask-type",p===3?"luminance":"alpha"),_=Ct("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ge.appendChild(_),this.globalData.defs.appendChild(ge),!dl.maskType&&p===1&&(ge.setAttribute("mask-type","luminance"),x=Gt(),P=Zo.createFilter(x),this.globalData.defs.appendChild(P),P.appendChild(Zo.createAlphaToLuminanceFilter()),z=Ct("g"),z.appendChild(_),ge.appendChild(z),z.setAttribute("filter","url("+Pe()+"#"+x+")"))}else if(p===2){var Q=Ct("mask");Q.setAttribute("id",v),Q.setAttribute("mask-type","alpha");var xe=Ct("g");Q.appendChild(xe),x=Gt(),P=Zo.createFilter(x);var Ce=Ct("feComponentTransfer");Ce.setAttribute("in","SourceGraphic"),P.appendChild(Ce);var Fe=Ct("feFuncA");Fe.setAttribute("type","table"),Fe.setAttribute("tableValues","1.0 0.0"),Ce.appendChild(Fe),this.globalData.defs.appendChild(P);var F=Ct("rect");F.setAttribute("width",this.comp.data.w),F.setAttribute("height",this.comp.data.h),F.setAttribute("x","0"),F.setAttribute("y","0"),F.setAttribute("fill","#ffffff"),F.setAttribute("opacity","0"),xe.setAttribute("filter","url("+Pe()+"#"+x+")"),xe.appendChild(F),_=Ct("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),xe.appendChild(_),dl.maskType||(Q.setAttribute("mask-type","luminance"),P.appendChild(Zo.createAlphaToLuminanceFilter()),z=Ct("g"),xe.appendChild(F),z.appendChild(this.layerElement),xe.appendChild(z)),this.globalData.defs.appendChild(Q)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Pe()+"#"+p+")")}};function Xo(){}Xo.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 mu(){}(function(){var c={initElement:function(v,x,P){this.initFrame(),this.initBaseData(v,x,P),this.initTransform(v,x,P),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Le([Jn,Je(c)],mu)})();function gu(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}}Le([xo,Is,pu,Xo,Hn,mu],gu),gu.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=Ct("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)},gu.prototype.sourceRectAtTime=function(){return this.sourceRect};function pg(c,p){this.elem=c,this.pos=p}function qc(){}qc.prototype={addShapeToModifiers:function(p){var v,x=this.shapeModifiers.length;for(v=0;v<x;v+=1)this.shapeModifiers[v].addShape(p)},isShapeInAnimatedModifiers:function(p){for(var v=0,x=this.shapeModifiers.length;v<x;)if(this.shapeModifiers[v].isAnimatedWithShape(p))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var p,v=this.shapes.length;for(p=0;p<v;p+=1)this.shapes[p].sh.reset();v=this.shapeModifiers.length;var x;for(p=v-1;p>=0&&(x=this.shapeModifiers[p].processShapes(this._isFirstFrame),!x);p-=1);}},searchProcessedElement:function(p){for(var v=this.processedElements,x=0,P=v.length;x<P;){if(v[x].elem===p)return v[x].pos;x+=1}return 0},addProcessedElement:function(p,v){for(var x=this.processedElements,P=x.length;P;)if(P-=1,x[P].elem===p){x[P].pos=v;return}x.push(new pg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var vu={1:"butt",2:"round",3:"square"},Ls={1:"miter",2:"round",3:"bevel"};function nh(c,p,v){this.caches=[],this.styles=[],this.transformers=c,this.lStr="",this.sh=v,this.lvl=p,this._isAnimated=!!v.k;for(var x=0,P=c.length;x<P;){if(c[x].mProps.dynamicProperties.length){this._isAnimated=!0;break}x+=1}}nh.prototype.setAsAnimated=function(){this._isAnimated=!0};function Wc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=Ct("path"),this.msElem=null}Wc.prototype.reset=function(){this.d="",this._mdf=!1};function yu(c,p,v,x){this.elem=c,this.frameId=-1,this.dataProps=Ne(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=ye("float32",p.length?p.length-1:0),this.dashoffset=ye("float32",1),this.initDynamicPropertyContainer(x);var P,_=p.length||0,z;for(P=0;P<_;P+=1)z=lt.getProp(c,p[P].v,0,0,this),this.k=z.k||this.k,this.dataProps[P]={n:p[P].n,p:z};this.k||this.getValue(!0),this._isAnimated=this.k}yu.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}},Le([yn],yu);function pl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(c,p.o,0,.01,this),this.w=lt.getProp(c,p.w,0,null,this),this.d=new yu(c,p.d||{},"svg",this),this.c=lt.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Le([yn],pl);function ml(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=lt.getProp(c,p.o,0,.01,this),this.c=lt.getProp(c,p.c,1,255,this),this.style=v}Le([yn],ml);function Hc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Le([yn],Hc);function bu(c,p,v){this.data=p,this.c=ye("uint8c",p.p*4);var x=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=ye("float32",x),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=x,this.initDynamicPropertyContainer(v),this.prop=lt.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}bu.prototype.comparePoints=function(c,p){for(var v=0,x=this.o.length/2,P;v<x;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},bu.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},bu.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,x,P;for(p=0;p<v;p+=1)x=p%4===0?100:255,P=Math.round(this.prop.v[p]*x),this.c[p]!==P&&(this.c[p]=P,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)x=p%2===0?100:1,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Le([yn],bu);function Jo(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}Jo.prototype.initGradientData=function(c,p,v){this.o=lt.getProp(c,p.o,0,.01,this),this.s=lt.getProp(c,p.s,1,null,this),this.e=lt.getProp(c,p.e,1,null,this),this.h=lt.getProp(c,p.h||{k:0},0,.01,this),this.a=lt.getProp(c,p.a||{k:0},0,Se,this),this.g=new bu(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},Jo.prototype.setGradientData=function(c,p){var v=Gt(),x=Ct(p.t===1?"linearGradient":"radialGradient");x.setAttribute("id",v),x.setAttribute("spreadMethod","pad"),x.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,z,ge;for(ge=p.g.p*4,z=0;z<ge;z+=4)_=Ct("stop"),x.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+v+")"),this.gf=x,this.cst=P},Jo.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,x,P,_=Ct("mask"),z=Ct("path");_.appendChild(z);var ge=Gt(),Q=Gt();_.setAttribute("id",Q);var xe=Ct(c.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",ge),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse"),P=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var Ce=this.stops;for(x=c.g.p*4;x<P;x+=2)v=Ct("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),xe.appendChild(v),Ce.push(v);z.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+ge+")"),c.ty==="gs"&&(z.setAttribute("stroke-linecap",vu[c.lc||2]),z.setAttribute("stroke-linejoin",Ls[c.lj||2]),c.lj===1&&z.setAttribute("stroke-miterlimit",c.ml)),this.of=xe,this.ms=_,this.ost=Ce,this.maskId=Q,p.msElem=z}},Le([yn],Jo);function gl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=lt.getProp(c,p.w,0,null,this),this.d=new yu(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Le([Jo,yn],gl);function mg(){this.it=[],this.prevViewData=[],this.gr=Ct("g")}function rh(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 Nr=function(p,v,x,P){if(v===0)return"";var _=p.o,z=p.i,ge=p.v,Q,xe=" M"+P.applyToPointStringified(ge[0][0],ge[0][1]);for(Q=1;Q<v;Q+=1)xe+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[Q][0],z[Q][1])+" "+P.applyToPointStringified(ge[Q][0],ge[Q][1]);return x&&v&&(xe+=" C"+P.applyToPointStringified(_[Q-1][0],_[Q-1][1])+" "+P.applyToPointStringified(z[0][0],z[0][1])+" "+P.applyToPointStringified(ge[0][0],ge[0][1]),xe+="z"),xe},Gc=function(){var c=new Tn,p=new Tn,v={createRenderFunction:x};function x(Fe){switch(Fe.ty){case"fl":return ge;case"gf":return xe;case"gs":return Q;case"st":return Ce;case"sh":case"el":case"rc":case"sr":return z;case"tr":return P;case"no":return _;default:return null}}function P(Fe,F,ee){(ee||F.transform.op._mdf)&&F.transform.container.setAttribute("opacity",F.transform.op.v),(ee||F.transform.mProps._mdf)&&F.transform.container.setAttribute("transform",F.transform.mProps.v.to2dCSS())}function _(){}function z(Fe,F,ee){var Y,pe,he,H,Z,L,V=F.styles.length,G=F.lvl,re,ce,me,Oe,ot;for(L=0;L<V;L+=1){if(H=F.sh._mdf||ee,F.styles[L].lvl<G){for(ce=p.reset(),Oe=G-F.styles[L].lvl,ot=F.transformers.length-1;!H&&Oe>0;)H=F.transformers[ot].mProps._mdf||H,Oe-=1,ot-=1;if(H)for(Oe=G-F.styles[L].lvl,ot=F.transformers.length-1;Oe>0;)me=F.transformers[ot].mProps.v.props,ce.transform(me[0],me[1],me[2],me[3],me[4],me[5],me[6],me[7],me[8],me[9],me[10],me[11],me[12],me[13],me[14],me[15]),Oe-=1,ot-=1}else ce=c;if(re=F.sh.paths,pe=re._length,H){for(he="",Y=0;Y<pe;Y+=1)Z=re.shapes[Y],Z&&Z._length&&(he+=Nr(Z,Z._length,Z.c,ce));F.caches[L]=he}else he=F.caches[L];F.styles[L].d+=Fe.hd===!0?"":he,F.styles[L]._mdf=H||F.styles[L]._mdf}}function ge(Fe,F,ee){var Y=F.style;(F.c._mdf||ee)&&Y.pElem.setAttribute("fill","rgb("+At(F.c.v[0])+","+At(F.c.v[1])+","+At(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("fill-opacity",F.o.v)}function Q(Fe,F,ee){xe(Fe,F,ee),Ce(Fe,F,ee)}function xe(Fe,F,ee){var Y=F.gf,pe=F.g._hasOpacity,he=F.s.v,H=F.e.v;if(F.o._mdf||ee){var Z=Fe.ty==="gf"?"fill-opacity":"stroke-opacity";F.style.pElem.setAttribute(Z,F.o.v)}if(F.s._mdf||ee){var L=Fe.t===1?"x1":"cx",V=L==="x1"?"y1":"cy";Y.setAttribute(L,he[0]),Y.setAttribute(V,he[1]),pe&&!F.g._collapsable&&(F.of.setAttribute(L,he[0]),F.of.setAttribute(V,he[1]))}var G,re,ce,me;if(F.g._cmdf||ee){G=F.cst;var Oe=F.g.c;for(ce=G.length,re=0;re<ce;re+=1)me=G[re],me.setAttribute("offset",Oe[re*4]+"%"),me.setAttribute("stop-color","rgb("+Oe[re*4+1]+","+Oe[re*4+2]+","+Oe[re*4+3]+")")}if(pe&&(F.g._omdf||ee)){var ot=F.g.o;for(F.g._collapsable?G=F.cst:G=F.ost,ce=G.length,re=0;re<ce;re+=1)me=G[re],F.g._collapsable||me.setAttribute("offset",ot[re*2]+"%"),me.setAttribute("stop-opacity",ot[re*2+1])}if(Fe.t===1)(F.e._mdf||ee)&&(Y.setAttribute("x2",H[0]),Y.setAttribute("y2",H[1]),pe&&!F.g._collapsable&&(F.of.setAttribute("x2",H[0]),F.of.setAttribute("y2",H[1])));else{var it;if((F.s._mdf||F.e._mdf||ee)&&(it=Math.sqrt(Math.pow(he[0]-H[0],2)+Math.pow(he[1]-H[1],2)),Y.setAttribute("r",it),pe&&!F.g._collapsable&&F.of.setAttribute("r",it)),F.e._mdf||F.h._mdf||F.a._mdf||ee){it||(it=Math.sqrt(Math.pow(he[0]-H[0],2)+Math.pow(he[1]-H[1],2)));var Ue=Math.atan2(H[1]-he[1],H[0]-he[0]),ht=F.h.v;ht>=1?ht=.99:ht<=-1&&(ht=-.99);var gt=it*ht,je=Math.cos(Ue+F.a.v)*gt+he[0],$e=Math.sin(Ue+F.a.v)*gt+he[1];Y.setAttribute("fx",je),Y.setAttribute("fy",$e),pe&&!F.g._collapsable&&(F.of.setAttribute("fx",je),F.of.setAttribute("fy",$e))}}}function Ce(Fe,F,ee){var Y=F.style,pe=F.d;pe&&(pe._mdf||ee)&&pe.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",pe.dashStr),Y.pElem.setAttribute("stroke-dashoffset",pe.dashoffset[0])),F.c&&(F.c._mdf||ee)&&Y.pElem.setAttribute("stroke","rgb("+At(F.c.v[0])+","+At(F.c.v[1])+","+At(F.c.v[2])+")"),(F.o._mdf||ee)&&Y.pElem.setAttribute("stroke-opacity",F.o.v),(F.w._mdf||ee)&&(Y.pElem.setAttribute("stroke-width",F.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",F.w.v))}return v}();function _n(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=[]}Le([xo,Is,pu,qc,Xo,Hn,mu],_n),_n.prototype.initSecondaryElement=function(){},_n.prototype.identityMatrix=new Tn,_n.prototype.buildExpressionInterface=function(){},_n.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},_n.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,x,P=this.stylesList.length,_,z=[],ge=!1;for(x=0;x<P;x+=1){for(_=this.stylesList[x],ge=!1,z.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(z.push(v),ge=v._isAnimated||ge);z.length>1&&ge&&this.setShapesAsAnimated(z)}},_n.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},_n.prototype.createStyleElement=function(c,p){var v,x=new Wc(c,p),P=x.pElem;if(c.ty==="st")v=new pl(this,c,x);else if(c.ty==="fl")v=new ml(this,c,x);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?Jo:gl;v=new _(this,c,x),this.globalData.defs.appendChild(v.gf),v.maskId&&(this.globalData.defs.appendChild(v.ms),this.globalData.defs.appendChild(v.of),P.setAttribute("mask","url("+Pe()+"#"+v.maskId+")"))}else c.ty==="no"&&(v=new Hc(this,c,x));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",vu[c.lc||2]),P.setAttribute("stroke-linejoin",Ls[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"]=Bn(c.bm)),this.stylesList.push(x),this.addToAnimatedContents(c,v),v},_n.prototype.createGroupElement=function(c){var p=new mg;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"]=Bn(c.bm)),p},_n.prototype.createTransformElement=function(c,p){var v=Ve.getTransformProperty(this,c,this),x=new rh(v,v.o,p);return this.addToAnimatedContents(c,x),x},_n.prototype.createShapeElement=function(c,p,v){var x=4;c.ty==="rc"?x=5:c.ty==="el"?x=6:c.ty==="sr"&&(x=7);var P=Xr.getShapeProp(this,c,x,this),_=new nh(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},_n.prototype.addToAnimatedContents=function(c,p){for(var v=0,x=this.animatedContents.length;v<x;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Gc.createRenderFunction(c),element:p,data:c})},_n.prototype.setElementStyles=function(c){var p=c.styles,v,x=this.stylesList.length;for(v=0;v<x;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},_n.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()},_n.prototype.searchShapes=function(c,p,v,x,P,_,z){var ge=[].concat(_),Q,xe=c.length-1,Ce,Fe,F=[],ee=[],Y,pe,he;for(Q=xe;Q>=0;Q-=1){if(he=this.searchProcessedElement(c[Q]),he?p[Q]=v[he-1]:c[Q]._render=z,c[Q].ty==="fl"||c[Q].ty==="st"||c[Q].ty==="gf"||c[Q].ty==="gs"||c[Q].ty==="no")he?p[Q].style.closed=!1:p[Q]=this.createStyleElement(c[Q],P),c[Q]._render&&p[Q].style.pElem.parentNode!==x&&x.appendChild(p[Q].style.pElem),F.push(p[Q].style);else if(c[Q].ty==="gr"){if(!he)p[Q]=this.createGroupElement(c[Q]);else for(Fe=p[Q].it.length,Ce=0;Ce<Fe;Ce+=1)p[Q].prevViewData[Ce]=p[Q].it[Ce];this.searchShapes(c[Q].it,p[Q].it,p[Q].prevViewData,p[Q].gr,P+1,ge,z),c[Q]._render&&p[Q].gr.parentNode!==x&&x.appendChild(p[Q].gr)}else c[Q].ty==="tr"?(he||(p[Q]=this.createTransformElement(c[Q],x)),Y=p[Q].transform,ge.push(Y)):c[Q].ty==="sh"||c[Q].ty==="rc"||c[Q].ty==="el"||c[Q].ty==="sr"?(he||(p[Q]=this.createShapeElement(c[Q],ge,P)),this.setElementStyles(p[Q])):c[Q].ty==="tm"||c[Q].ty==="rd"||c[Q].ty==="ms"||c[Q].ty==="pb"||c[Q].ty==="zz"||c[Q].ty==="op"?(he?(pe=p[Q],pe.closed=!1):(pe=Mr.getModifier(c[Q].ty),pe.init(this,c[Q]),p[Q]=pe,this.shapeModifiers.push(pe)),ee.push(pe)):c[Q].ty==="rp"&&(he?(pe=p[Q],pe.closed=!0):(pe=Mr.getModifier(c[Q].ty),p[Q]=pe,pe.init(this,c,Q,p),this.shapeModifiers.push(pe),z=!1),ee.push(pe));this.addProcessedElement(c[Q],Q+1)}for(xe=F.length,Q=0;Q<xe;Q+=1)F[Q].closed=!0;for(xe=ee.length,Q=0;Q<xe;Q+=1)ee[Q].closed=!0},_n.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"))},_n.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)},_n.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function vl(c,p,v,x,P,_){this.o=c,this.sw=p,this.sc=v,this.fc=x,this.m=P,this.p=_,this._mdf={o:!0,sw:!!p,sc:!!v,fc:!!x,m:!0,p:!0}}vl.prototype.update=function(c,p,v,x,P,_){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var z=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,z=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,z=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,z=!0),this.fc!==x&&(this.fc=x,this._mdf.fc=!0,z=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,z=!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,z=!0),z};function Sr(c,p){this._frameId=de,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)}Sr.prototype.defaultBoxWidth=[0,0],Sr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},Sr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Sr.prototype.searchProperty=function(){return this.searchKeyframes()},Sr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Sr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},Sr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var x,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for(x=0;x<P;x+=1)v!==this.keysIndex?_=this.effectsSequence[x](_,_.t):_=this.effectsSequence[x](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Sr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,x=c.length;v<=x-1&&!(v===x-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},Sr.prototype.buildFinalText=function(c){for(var p=[],v=0,x=c.length,P,_,z=!1;v<x;)P=c.charCodeAt(v),$r.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(z||$r.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),z=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),$r.isZeroWidthJoiner(P,_)?(z=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):$r.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),z=!0):p.push(c.charAt(v)),v+=1;return p},Sr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,x=[],P,_,z,ge=0,Q,xe=v.m.g,Ce=0,Fe=0,F=0,ee=[],Y=0,pe=0,he,H,Z=p.getFontByName(c.f),L,V=0,G=vr(Z);c.fWeight=G.weight,c.fStyle=G.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,ce;if(c.sz)for(var me=!0,Oe=c.sz[0],ot=c.sz[1],it,Ue;me;){Ue=this.buildFinalText(c.t),it=0,Y=0,_=Ue.length,re=c.tr/1e3*c.finalSize;var ht=-1;for(P=0;P<_;P+=1)ce=Ue[P].charCodeAt(0),z=!1,Ue[P]===" "?ht=P:(ce===13||ce===3)&&(Y=0,z=!0,it+=c.finalLineHeight||c.finalSize*1.2),p.chars?(L=p.getCharData(Ue[P],Z.fStyle,Z.fFamily),V=z?0:L.w*c.finalSize/100):V=p.measureText(Ue[P],c.f,c.finalSize),Y+V>Oe&&Ue[P]!==" "?(ht===-1?_+=1:P=ht,it+=c.finalLineHeight||c.finalSize*1.2,Ue.splice(P,ht===P?1:0,"\r"),ht=-1,Y=0):(Y+=V,Y+=re);it+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&ot<it?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ue,_=c.finalText.length,me=!1)}Y=-re,V=0;var gt=0,je;for(P=0;P<_;P+=1)if(z=!1,je=c.finalText[P],ce=je.charCodeAt(0),ce===13||ce===3?(gt=0,ee.push(Y),pe=Y>pe?Y:pe,Y=-2*re,Q="",z=!0,F+=1):Q=je,p.chars?(L=p.getCharData(je,Z.fStyle,p.getFontByName(c.f).fFamily),V=z?0:L.w*c.finalSize/100):V=p.measureText(Q,c.f,c.finalSize),je===" "?gt+=V+re:(Y+=V+re+gt,gt=0),x.push({l:V,an:V,add:Ce,n:z,anIndexes:[],val:Q,line:F,animatorJustifyOffset:0}),xe==2){if(Ce+=V,Q===""||Q===" "||P===_-1){for((Q===""||Q===" ")&&(Ce-=V);Fe<=P;)x[Fe].an=Ce,x[Fe].ind=ge,x[Fe].extra=V,Fe+=1;ge+=1,Ce=0}}else if(xe==3){if(Ce+=V,Q===""||P===_-1){for(Q===""&&(Ce-=V);Fe<=P;)x[Fe].an=Ce,x[Fe].ind=ge,x[Fe].extra=V,Fe+=1;Ce=0,ge+=1}}else x[ge].ind=ge,x[ge].extra=0,ge+=1;if(c.l=x,pe=Y>pe?Y:pe,ee.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=pe,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=ee;var $e=v.a,fe,J;H=$e.length;var ve,ze,ke=[];for(he=0;he<H;he+=1){for(fe=$e[he],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),ze=0,ve=fe.s.b,P=0;P<_;P+=1)J=x[P],J.anIndexes[he]=ze,(ve==1&&J.val!==""||ve==2&&J.val!==""&&J.val!==" "||ve==3&&(J.n||J.val==" "||P==_-1)||ve==4&&(J.n||P==_-1))&&(fe.s.rn===1&&ke.push(ze),ze+=1);v.a[he].s.totalChars=ze;var mt=-1,Lt;if(fe.s.rn===1)for(P=0;P<_;P+=1)J=x[P],mt!=J.anIndexes[he]&&(mt=J.anIndexes[he],Lt=ke.splice(Math.floor(Math.random()*ke.length),1)[0]),J.anIndexes[he]=Lt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},Sr.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)},Sr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},Sr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Sr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var gg=function(){var c=Math.max,p=Math.min,v=Math.floor;function x(_,z){this._currentTextLength=-1,this.k=!1,this.data=z,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=lt.getProp(_,z.s||{k:0},0,0,this),"e"in z?this.e=lt.getProp(_,z.e,0,0,this):this.e={v:100},this.o=lt.getProp(_,z.o||{k:0},0,0,this),this.xe=lt.getProp(_,z.xe||{k:0},0,0,this),this.ne=lt.getProp(_,z.ne||{k:0},0,0,this),this.sm=lt.getProp(_,z.sm||{k:100},0,0,this),this.a=lt.getProp(_,z.a,0,.01,this),this.dynamicProperties.length||this.getValue()}x.prototype={getMult:function(z){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ge=0,Q=0,xe=1,Ce=1;this.ne.v>0?ge=this.ne.v/100:Q=-this.ne.v/100,this.xe.v>0?xe=1-this.xe.v/100:Ce=1+this.xe.v/100;var Fe=mo.getBezierEasing(ge,Q,xe,Ce).get,F=0,ee=this.finalS,Y=this.finalE,pe=this.data.sh;if(pe===2)Y===ee?F=z>=Y?1:0:F=c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F=Fe(F);else if(pe===3)Y===ee?F=z>=Y?0:1:F=1-c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F=Fe(F);else if(pe===4)Y===ee?F=0:(F=c(0,p(.5/(Y-ee)+(z-ee)/(Y-ee),1)),F<.5?F*=2:F=1-2*(F-.5)),F=Fe(F);else if(pe===5){if(Y===ee)F=0;else{var he=Y-ee;z=p(c(0,z+.5-ee),Y-ee);var H=-he/2+z,Z=he/2;F=Math.sqrt(1-H*H/(Z*Z))}F=Fe(F)}else pe===6?(Y===ee?F=0:(z=p(c(0,z+.5-ee),Y-ee),F=(1+Math.cos(Math.PI+Math.PI*2*z/(Y-ee)))/2),F=Fe(F)):(z>=v(ee)&&(z-ee<0?F=c(0,p(p(Y,1)-(ee-z),1)):F=c(0,p(Y-z,1))),F=Fe(F));if(this.sm.v!==100){var L=this.sm.v*.01;L===0&&(L=1e-8);var V=.5-L*.5;F<V?F=0:(F=(F-V)/L,F>1&&(F=1))}return F*this.a.v},getValue:function(z){this.iterateDynamicProperties(),this._mdf=z||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,z&&this.data.r===2&&(this.e.v=this._currentTextLength);var ge=this.data.r===2?1:100/this.data.totalChars,Q=this.o.v/ge,xe=this.s.v/ge+Q,Ce=this.e.v/ge+Q;if(xe>Ce){var Fe=xe;xe=Ce,Ce=Fe}this.finalS=xe,this.finalE=Ce}},Le([yn],x);function P(_,z,ge){return new x(_,z)}return{getTextSelectorProp:P}}();function vg(c,p,v){var x={propType:!1},P=lt.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,Se,v):x,rx:_.rx?P(c,_.rx,0,Se,v):x,ry:_.ry?P(c,_.ry,0,Se,v):x,sk:_.sk?P(c,_.sk,0,Se,v):x,sa:_.sa?P(c,_.sa,0,Se,v):x,s:_.s?P(c,_.s,1,.01,v):x,a:_.a?P(c,_.a,1,0,v):x,o:_.o?P(c,_.o,0,.01,v):x,p:_.p?P(c,_.p,1,0,v):x,sw:_.sw?P(c,_.sw,0,0,v):x,sc:_.sc?P(c,_.sc,1,0,v):x,fc:_.fc?P(c,_.fc,1,0,v):x,fh:_.fh?P(c,_.fh,0,0,v):x,fs:_.fs?P(c,_.fs,0,.01,v):x,fb:_.fb?P(c,_.fb,0,.01,v):x,t:_.t?P(c,_.t,0,0,v):x},this.s=gg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function Bs(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ne(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}Bs.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,x=lt.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new vg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:x(this._elem,this._textData.p.a,0,0,this),f:x(this._elem,this._textData.p.f,0,0,this),l:x(this._elem,this._textData.p.l,0,0,this),r:x(this._elem,this._textData.p.r,0,0,this),p:x(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=x(this._elem,this._textData.m.a,1,0,this)},Bs.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,x=this._animatorsData,P=this._textData,_=this.mHelper,z=this._renderType,ge=this.renderedLetters.length,Q,xe,Ce,Fe,F=c.l,ee,Y,pe,he,H,Z,L,V,G,re,ce,me,Oe,ot,it;if(this._hasMaskedPath){if(it=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ue=it.v;this._pathData.r.v&&(Ue=Ue.reverse()),ee={tLength:0,segments:[]},Fe=Ue._length-1;var ht;for(me=0,Ce=0;Ce<Fe;Ce+=1)ht=Br.buildBezierData(Ue.v[Ce],Ue.v[Ce+1],[Ue.o[Ce][0]-Ue.v[Ce][0],Ue.o[Ce][1]-Ue.v[Ce][1]],[Ue.i[Ce+1][0]-Ue.v[Ce+1][0],Ue.i[Ce+1][1]-Ue.v[Ce+1][1]]),ee.tLength+=ht.segmentLength,ee.segments.push(ht),me+=ht.segmentLength;Ce=Fe,it.v.c&&(ht=Br.buildBezierData(Ue.v[Ce],Ue.v[0],[Ue.o[Ce][0]-Ue.v[Ce][0],Ue.o[Ce][1]-Ue.v[Ce][1]],[Ue.i[0][0]-Ue.v[0][0],Ue.i[0][1]-Ue.v[0][1]]),ee.tLength+=ht.segmentLength,ee.segments.push(ht),me+=ht.segmentLength),this._pathData.pi=ee}if(ee=this._pathData.pi,Y=this._pathData.f.v,L=0,Z=1,he=0,H=!0,re=ee.segments,Y<0&&it.v.c)for(ee.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%ee.tLength),L=re.length-1,G=re[L].points,Z=G.length-1;Y<0;)Y+=G[Z].partialLength,Z-=1,Z<0&&(L-=1,G=re[L].points,Z=G.length-1);G=re[L].points,V=G[Z-1],pe=G[Z],ce=pe.partialLength}Fe=F.length,Q=0,xe=0;var gt=c.finalSize*1.2*.714,je=!0,$e,fe,J,ve,ze;ve=x.length;var ke,mt=-1,Lt,_t,kn,nn=Y,Er=L,cr=Z,Yn=-1,Qn,er,Fr,vt,Cn,di,zi,wo,Ri="",Co=this.defaultPropsArray,So;if(c.j===2||c.j===1){var an=0,On=0,es=c.j===2?-.5:-1,Mi=0,Eo=!0;for(Ce=0;Ce<Fe;Ce+=1)if(F[Ce].n){for(an&&(an+=On);Mi<Ce;)F[Mi].animatorJustifyOffset=an,Mi+=1;an=0,Eo=!0}else{for(J=0;J<ve;J+=1)$e=x[J].a,$e.t.propType&&(Eo&&c.j===2&&(On+=$e.t.v*es),fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?an+=$e.t.v*ke[0]*es:an+=$e.t.v*ke*es);Eo=!1}for(an&&(an+=On);Mi<Ce;)F[Mi].animatorJustifyOffset=an,Mi+=1}for(Ce=0;Ce<Fe;Ce+=1){if(_.reset(),Qn=1,F[Ce].n)Q=0,xe+=c.yOffset,xe+=je?1:0,Y=nn,je=!1,this._hasMaskedPath&&(L=Er,Z=cr,G=re[L].points,V=G[Z-1],pe=G[Z],ce=pe.partialLength,he=0),Ri="",wo="",di="",So="",Co=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Yn!==F[Ce].line){switch(c.j){case 1:Y+=me-c.lineWidths[F[Ce].line];break;case 2:Y+=(me-c.lineWidths[F[Ce].line])/2;break}Yn=F[Ce].line}mt!==F[Ce].ind&&(F[mt]&&(Y+=F[mt].extra),Y+=F[Ce].an/2,mt=F[Ce].ind),Y+=v[0]*F[Ce].an*.005;var Fi=0;for(J=0;J<ve;J+=1)$e=x[J].a,$e.p.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?Fi+=$e.p.v[0]*ke[0]:Fi+=$e.p.v[0]*ke),$e.a.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?Fi+=$e.a.v[0]*ke[0]:Fi+=$e.a.v[0]*ke);for(H=!0,this._pathData.a.v&&(Y=F[0].an*.5+(me-this._pathData.f.v-F[0].an*.5-F[F.length-1].an*.5)*mt/(Fe-1),Y+=this._pathData.f.v);H;)he+ce>=Y+Fi||!G?(Oe=(Y+Fi-he)/pe.partialLength,_t=V.point[0]+(pe.point[0]-V.point[0])*Oe,kn=V.point[1]+(pe.point[1]-V.point[1])*Oe,_.translate(-v[0]*F[Ce].an*.005,-(v[1]*gt)*.01),H=!1):G&&(he+=pe.partialLength,Z+=1,Z>=G.length&&(Z=0,L+=1,re[L]?G=re[L].points:it.v.c?(Z=0,L=0,G=re[L].points):(he-=pe.partialLength,G=null)),G&&(V=pe,pe=G[Z],ce=pe.partialLength));Lt=F[Ce].an/2-F[Ce].add,_.translate(-Lt,0,0)}else Lt=F[Ce].an/2-F[Ce].add,_.translate(-Lt,0,0),_.translate(-v[0]*F[Ce].an*.005,-v[1]*gt*.01,0);for(J=0;J<ve;J+=1)$e=x[J].a,$e.t.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),(Q!==0||c.j!==0)&&(this._hasMaskedPath?ke.length?Y+=$e.t.v*ke[0]:Y+=$e.t.v*ke:ke.length?Q+=$e.t.v*ke[0]:Q+=$e.t.v*ke));for(c.strokeWidthAnim&&(Fr=c.sw||0),c.strokeColorAnim&&(c.sc?er=[c.sc[0],c.sc[1],c.sc[2]]:er=[0,0,0]),c.fillColorAnim&&c.fc&&(vt=[c.fc[0],c.fc[1],c.fc[2]]),J=0;J<ve;J+=1)$e=x[J].a,$e.a.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.translate(-$e.a.v[0]*ke[0],-$e.a.v[1]*ke[1],$e.a.v[2]*ke[2]):_.translate(-$e.a.v[0]*ke,-$e.a.v[1]*ke,$e.a.v[2]*ke));for(J=0;J<ve;J+=1)$e=x[J].a,$e.s.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),ke.length?_.scale(1+($e.s.v[0]-1)*ke[0],1+($e.s.v[1]-1)*ke[1],1):_.scale(1+($e.s.v[0]-1)*ke,1+($e.s.v[1]-1)*ke,1));for(J=0;J<ve;J+=1){if($e=x[J].a,fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),$e.sk.propType&&(ke.length?_.skewFromAxis(-$e.sk.v*ke[0],$e.sa.v*ke[1]):_.skewFromAxis(-$e.sk.v*ke,$e.sa.v*ke)),$e.r.propType&&(ke.length?_.rotateZ(-$e.r.v*ke[2]):_.rotateZ(-$e.r.v*ke)),$e.ry.propType&&(ke.length?_.rotateY($e.ry.v*ke[1]):_.rotateY($e.ry.v*ke)),$e.rx.propType&&(ke.length?_.rotateX($e.rx.v*ke[0]):_.rotateX($e.rx.v*ke)),$e.o.propType&&(ke.length?Qn+=($e.o.v*ke[0]-Qn)*ke[0]:Qn+=($e.o.v*ke-Qn)*ke),c.strokeWidthAnim&&$e.sw.propType&&(ke.length?Fr+=$e.sw.v*ke[0]:Fr+=$e.sw.v*ke),c.strokeColorAnim&&$e.sc.propType)for(Cn=0;Cn<3;Cn+=1)ke.length?er[Cn]+=($e.sc.v[Cn]-er[Cn])*ke[0]:er[Cn]+=($e.sc.v[Cn]-er[Cn])*ke;if(c.fillColorAnim&&c.fc){if($e.fc.propType)for(Cn=0;Cn<3;Cn+=1)ke.length?vt[Cn]+=($e.fc.v[Cn]-vt[Cn])*ke[0]:vt[Cn]+=($e.fc.v[Cn]-vt[Cn])*ke;$e.fh.propType&&(ke.length?vt=jt(vt,$e.fh.v*ke[0]):vt=jt(vt,$e.fh.v*ke)),$e.fs.propType&&(ke.length?vt=Yt(vt,$e.fs.v*ke[0]):vt=Yt(vt,$e.fs.v*ke)),$e.fb.propType&&(ke.length?vt=kt(vt,$e.fb.v*ke[0]):vt=kt(vt,$e.fb.v*ke))}}for(J=0;J<ve;J+=1)$e=x[J].a,$e.p.propType&&(fe=x[J].s,ke=fe.getMult(F[Ce].anIndexes[J],P.a[J].s.totalChars),this._hasMaskedPath?ke.length?_.translate(0,$e.p.v[1]*ke[0],-$e.p.v[2]*ke[1]):_.translate(0,$e.p.v[1]*ke,-$e.p.v[2]*ke):ke.length?_.translate($e.p.v[0]*ke[0],$e.p.v[1]*ke[1],-$e.p.v[2]*ke[2]):_.translate($e.p.v[0]*ke,$e.p.v[1]*ke,-$e.p.v[2]*ke));if(c.strokeWidthAnim&&(di=Fr<0?0:Fr),c.strokeColorAnim&&(zi="rgb("+Math.round(er[0]*255)+","+Math.round(er[1]*255)+","+Math.round(er[2]*255)+")"),c.fillColorAnim&&c.fc&&(wo="rgb("+Math.round(vt[0]*255)+","+Math.round(vt[1]*255)+","+Math.round(vt[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*gt*.01+xe,0),this._pathData.p.v){ot=(pe.point[1]-V.point[1])/(pe.point[0]-V.point[0]);var Do=Math.atan(ot)*180/Math.PI;pe.point[0]<V.point[0]&&(Do+=180),_.rotate(-Do*Math.PI/180)}_.translate(_t,kn,0),Y-=v[0]*F[Ce].an*.005,F[Ce+1]&&mt!==F[Ce+1].ind&&(Y+=F[Ce].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(_.translate(Q,xe,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line]),0,0);break;case 2:_.translate(F[Ce].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[F[Ce].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(Lt,0,0),_.translate(v[0]*F[Ce].an*.005,v[1]*gt*.01,0),Q+=F[Ce].l+c.tr*.001*c.finalSize}z==="html"?Ri=_.toCSS():z==="svg"?Ri=_.to2dCSS():Co=[_.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]],So=Qn}ge<=Ce?(ze=new vl(So,di,zi,wo,Ri,Co),this.renderedLetters.push(ze),ge+=1,this.lettersChangedFlag=!0):(ze=this.renderedLetters[Ce],this.lettersChangedFlag=ze.update(So,di,zi,wo,Ri,Co)||this.lettersChangedFlag)}}},Bs.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Bs.prototype.mHelper=new Tn,Bs.prototype.defaultPropsArray=[],Le([yn],Bs);function _i(){}_i.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new Sr(this,c.t,this.dynamicProperties),this.textAnimator=new Bs(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)},_i.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)},_i.prototype.createPathShape=function(c,p){var v,x=p.length,P,_="";for(v=0;v<x;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Nr(P,P.i.length,!0,c));return _},_i.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},_i.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},_i.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},_i.prototype.applyTextPropertiesToMatrix=function(c,p,v,x,P){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(x,P,0)},_i.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},_i.prototype.emptyProp=new vl,_i.prototype.destroy=function(){};var yg={shapes:[]};function jr(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Le([xo,Is,pu,Xo,Hn,mu,_i],jr),jr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=Ct("text"))},jr.prototype.buildTextContents=function(c){for(var p=0,v=c.length,x=[],P="";p<v;)c[p]==="\r"||c[p]===""?(x.push(P),P=""):P+=c[p],p+=1;return x.push(P),x},jr.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var x=v.it[v.it.length-1];x.s&&(x.s.k[0]=p,x.s.k[1]=p)}}return c},jr.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ne(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var x=this.globalData.fontManager.getFontByName(v.f);if(x.fClass)this.layerElement.setAttribute("class",x.fClass);else{this.layerElement.setAttribute("font-family",x.fFamily);var P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var z=v.l||[],ge=!!this.globalData.fontManager.chars;p=z.length;var Q,xe=this.mHelper,Ce="",Fe=this.data.singleShape,F=0,ee=0,Y=!0,pe=v.tr*.001*v.finalSize;if(Fe&&!ge&&!v.sz){var he=this.textContainer,H="start";switch(v.j){case 1:H="end";break;case 2:H="middle";break;default:H="start";break}he.setAttribute("text-anchor",H),he.setAttribute("letter-spacing",pe);var Z=this.buildTextContents(v.finalText);for(p=Z.length,ee=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)Q=this.textSpans[c].span||Ct("tspan"),Q.textContent=Z[c],Q.setAttribute("x",0),Q.setAttribute("y",ee),Q.style.display="inherit",he.appendChild(Q),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=Q,ee+=v.finalLineHeight;this.layerElement.appendChild(he)}else{var L=this.textSpans.length,V;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!ge||!Fe||c===0){if(Q=L>c?this.textSpans[c].span:Ct(ge?"g":"text"),L<=c){if(Q.setAttribute("stroke-linecap","butt"),Q.setAttribute("stroke-linejoin","round"),Q.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=Q,ge){var G=Ct("g");Q.appendChild(G),this.textSpans[c].childSpan=G}this.textSpans[c].span=Q,this.layerElement.appendChild(Q)}Q.style.display="inherit"}if(xe.reset(),Fe&&(z[c].n&&(F=-pe,ee+=v.yOffset,ee+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,xe,z[c].line,F,ee),F+=z[c].l||0,F+=pe),ge){V=this.globalData.fontManager.getCharData(v.finalText[c],x.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var re;if(V.t===1)re=new fi(V.data,this.globalData,this);else{var ce=yg;V.data&&V.data.shapes&&(ce=this.buildShapeData(V.data,v.finalSize)),re=new _n(ce,this.globalData,this)}if(this.textSpans[c].glyph){var me=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(me.layerElement),me.destroy()}this.textSpans[c].glyph=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[c].childSpan.appendChild(re.layerElement),V.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Fe&&Q.setAttribute("transform","translate("+xe.props[12]+","+xe.props[13]+")"),Q.textContent=z[c].val,Q.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Fe&&Q&&Q.setAttribute("d",Ce)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},jr.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},jr.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))},jr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,x=this.textProperty.currentData.l;p=x.length;var P,_,z;for(c=0;c<p;c+=1)x[c].n||(P=v[c],_=this.textSpans[c].span,z=this.textSpans[c].glyph,z&&z.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function Yc(c,p,v){this.initElement(c,p,v)}Le([gu],Yc),Yc.prototype.createContent=function(){var c=Ct("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Qo(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Qo.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Qo.prototype.renderFrame=function(){},Qo.prototype.getBaseElement=function(){return null},Qo.prototype.destroy=function(){},Qo.prototype.sourceRectAtTime=function(){},Qo.prototype.hide=function(){},Le([xo,Is,Xo,Hn],Qo);function Gn(){}Le([Cr],Gn),Gn.prototype.createNull=function(c){return new Qo(c,this.globalData,this)},Gn.prototype.createShape=function(c){return new _n(c,this.globalData,this)},Gn.prototype.createText=function(c){return new jr(c,this.globalData,this)},Gn.prototype.createImage=function(c){return new gu(c,this.globalData,this)},Gn.prototype.createSolid=function(c){return new Yc(c,this.globalData,this)},Gn.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=Ct("clipPath"),x=Ct("rect");x.setAttribute("width",c.w),x.setAttribute("height",c.h),x.setAttribute("x",0),x.setAttribute("y",0);var P=Gt();v.setAttribute("id",P),v.appendChild(x),this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ne(c.layers.length)},Gn.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},Gn.prototype.updateContainerSize=function(){},Gn.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},Gn.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,li()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var x="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(x===-1)return;if(!this.elements[x]||this.elements[x]===!0)this.buildItem(x),this.addPendingElement(v);else{var P=p[x],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},Gn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var x="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,P=this.elements[x],_=P.getMatte(this.layers[p].tt);c.setMatte(_);break}p+=1}}},Gn.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()}},Gn.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var x=0,P;x<p;)this.elements[x]&&this.elements[x]!==!0&&this.elements[x].getBaseElement()&&(P=this.elements[x].getBaseElement()),x+=1;P?this.layerElement.insertBefore(v,P):this.layerElement.appendChild(v)}},Gn.prototype.hide=function(){this.layerElement.style.display="none"},Gn.prototype.show=function(){this.layerElement.style.display="block"};function Ui(){}Le([xo,Is,Xo,Hn,mu],Ui),Ui.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()},Ui.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,x=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=x-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ui.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()},Ui.prototype.setElements=function(c){this.elements=c},Ui.prototype.getElements=function(){return this.elements},Ui.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ui.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function fi(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ne(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?lt.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Le([Gn,Ui,pu],fi),fi.prototype.createComp=function(c){return new fi(c,this.globalData,this)};function Ta(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=Ct("svg");var v="";if(p&&p.title){var x=Ct("title"),P=Gt();x.setAttribute("id",P),x.textContent=p.title,this.svgElement.appendChild(x),v+=P}if(p&&p.description){var _=Ct("desc"),z=Gt();_.setAttribute("id",z),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+z}v&&this.svgElement.setAttribute("aria-labelledby",v);var ge=Ct("defs");this.svgElement.appendChild(ge);var Q=Ct("g");this.svgElement.appendChild(Q),this.layerElement=Q,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:ge,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Le([Gn],Ta),Ta.prototype.createComp=function(c){return new fi(c,this.globalData,this)},va("svg",Ta),Mr.registerModifier("tm",te),Mr.registerModifier("pb",Te),Mr.registerModifier("rp",We),Mr.registerModifier("rd",ct),Mr.registerModifier("zz",Ms),Mr.registerModifier("op",Fn),Ht})})(u,u.exports);var l=u.exports;function d(K,ne){var U=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(U!=null){var N,I,de,se,ie=[],Ae=!0,Pe=!1;try{if(de=(U=U.call(K)).next,ne!==0)for(;!(Ae=(N=de.call(U)).done)&&(ie.push(N.value),ie.length!==ne);Ae=!0);}catch(Ie){Pe=!0,I=Ie}finally{try{if(!Ae&&U.return!=null&&(se=U.return(),Object(se)!==se))return}finally{if(Pe)throw I}}return ie}}function h(K,ne){var U=Object.keys(K);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(K);ne&&(N=N.filter(function(I){return Object.getOwnPropertyDescriptor(K,I).enumerable})),U.push.apply(U,N)}return U}function m(K){for(var ne=1;ne<arguments.length;ne++){var U=arguments[ne]!=null?arguments[ne]:{};ne%2?h(Object(U),!0).forEach(function(N){g(K,N,U[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(U)):h(Object(U)).forEach(function(N){Object.defineProperty(K,N,Object.getOwnPropertyDescriptor(U,N))})}return K}function g(K,ne,U){return ne=R(ne),ne in K?Object.defineProperty(K,ne,{value:U,enumerable:!0,configurable:!0,writable:!0}):K[ne]=U,K}function b(K,ne){if(K==null)return{};var U={},N=Object.keys(K),I,de;for(de=0;de<N.length;de++)I=N[de],!(ne.indexOf(I)>=0)&&(U[I]=K[I]);return U}function $(K,ne){if(K==null)return{};var U=b(K,ne),N,I;if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(K);for(I=0;I<de.length;I++)N=de[I],!(ne.indexOf(N)>=0)&&Object.prototype.propertyIsEnumerable.call(K,N)&&(U[N]=K[N])}return U}function C(K,ne){return A(K)||d(K,ne)||S(K,ne)||D()}function A(K){if(Array.isArray(K))return K}function S(K,ne){if(K){if(typeof K=="string")return w(K,ne);var U=Object.prototype.toString.call(K).slice(8,-1);if(U==="Object"&&K.constructor&&(U=K.constructor.name),U==="Map"||U==="Set")return Array.from(K);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return w(K,ne)}}function w(K,ne){(ne==null||ne>K.length)&&(ne=K.length);for(var U=0,N=new Array(ne);U<ne;U++)N[U]=K[U];return N}function D(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
154
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(K,ne){if(typeof K!="object"||K===null)return K;var U=K[Symbol.toPrimitive];if(U!==void 0){var N=U.call(K,ne);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(K)}function R(K){var ne=O(K,"string");return typeof ne=="symbol"?ne:String(ne)}var k=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],j=function(ne,U){var N=ne.animationData,I=ne.loop,de=ne.autoplay,se=ne.initialSegment,ie=ne.onComplete,Ae=ne.onLoopComplete,Pe=ne.onEnterFrame,Ie=ne.onSegmentStart,Le=ne.onConfigReady,Je=ne.onDataReady,Qe=ne.onDataFailed,ye=ne.onLoadedImages,Ne=ne.onDOMLoaded,He=ne.onDestroy;ne.lottieRef,ne.renderer,ne.name,ne.assetsPath,ne.rendererSettings;var Ke=$(ne,k),Be=r.useState(!1),st=C(Be,2),Dt=st[0],ln=st[1],At=r.useRef(),It=r.useRef(null),we=function(){var kt;(kt=At.current)===null||kt===void 0||kt.play()},Se=function(){var kt;(kt=At.current)===null||kt===void 0||kt.stop()},Re=function(){var kt;(kt=At.current)===null||kt===void 0||kt.pause()},Ge=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setSpeed(kt)},rt=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.goToAndPlay(kt,jt)},nt=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.goToAndStop(kt,jt)},dt=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setDirection(kt)},Et=function(kt,jt){var tn;(tn=At.current)===null||tn===void 0||tn.playSegments(kt,jt)},$n=function(kt){var jt;(jt=At.current)===null||jt===void 0||jt.setSubframe(kt)},en=function(kt){var jt;return(jt=At.current)===null||jt===void 0?void 0:jt.getDuration(kt)},Gt=function(){var kt;(kt=At.current)===null||kt===void 0||kt.destroy(),At.current=void 0},Lr=function(){var kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},jt;if(It.current){(jt=At.current)===null||jt===void 0||jt.destroy();var tn=m(m(m({},ne),kt),{},{container:It.current});return At.current=l.loadAnimation(tn),ln(!!At.current),function(){var Xn;(Xn=At.current)===null||Xn===void 0||Xn.destroy(),At.current=void 0}}};r.useEffect(function(){var Yt=Lr();return function(){return Yt==null?void 0:Yt()}},[N,I]),r.useEffect(function(){At.current&&(At.current.autoplay=!!de)},[de]),r.useEffect(function(){if(At.current){if(!se){At.current.resetSegments(!0);return}!Array.isArray(se)||!se.length||((At.current.currentRawFrame<se[0]||At.current.currentRawFrame>se[1])&&(At.current.currentRawFrame=se[0]),At.current.setSegment(se[0],se[1]))}},[se]),r.useEffect(function(){var Yt=[{name:"complete",handler:ie},{name:"loopComplete",handler:Ae},{name:"enterFrame",handler:Pe},{name:"segmentStart",handler:Ie},{name:"config_ready",handler:Le},{name:"data_ready",handler:Je},{name:"data_failed",handler:Qe},{name:"loaded_images",handler:ye},{name:"DOMLoaded",handler:Ne},{name:"destroy",handler:He}],kt=Yt.filter(function(tn){return tn.handler!=null});if(kt.length){var jt=kt.map(function(tn){var Xn;return(Xn=At.current)===null||Xn===void 0||Xn.addEventListener(tn.name,tn.handler),function(){var Ei;(Ei=At.current)===null||Ei===void 0||Ei.removeEventListener(tn.name,tn.handler)}});return function(){jt.forEach(function(tn){return tn()})}}},[ie,Ae,Pe,Ie,Le,Je,Qe,ye,Ne,He]);var Pr=o.default.createElement("div",m({style:U,ref:It},Ke));return{View:Pr,play:we,stop:Se,pause:Re,setSpeed:Ge,goToAndStop:nt,goToAndPlay:rt,setDirection:dt,playSegments:Et,setSubframe:$n,getDuration:en,destroy:Gt,animationContainerRef:It,animationLoaded:Dt,animationItem:At.current}};function M(K){var ne=K.getBoundingClientRect(),U=ne.top,N=ne.height,I=window.innerHeight-U,de=window.innerHeight+N;return I/de}function ue(K,ne,U){var N=K.getBoundingClientRect(),I=N.top,de=N.left,se=N.width,ie=N.height,Ae=(ne-de)/se,Pe=(U-I)/ie;return{x:Ae,y:Pe}}var ae=function(ne){var U=ne.wrapperRef,N=ne.animationItem,I=ne.mode,de=ne.actions;r.useEffect(function(){var se=U.current;if(!(!se||!N||!de.length)){N.stop();var ie=function(){var Ie=null,Le=function(){var Qe=M(se),ye=de.find(function(He){var Ke=He.visibility;return Ke&&Qe>=Ke[0]&&Qe<=Ke[1]});if(ye){if(ye.type==="seek"&&ye.visibility&&ye.frames.length===2){var Ne=ye.frames[0]+Math.ceil((Qe-ye.visibility[0])/(ye.visibility[1]-ye.visibility[0])*ye.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
155
|
-
N.goToAndStop(Ne-N.firstFrame-1,!0)}ye.type==="loop"&&(Ie===null||Ie!==ye.frames||N.isPaused)&&(N.playSegments(ye.frames,!0),Ie=ye.frames),ye.type==="play"&&N.isPaused&&(N.resetSegments(!0),N.play()),ye.type==="stop"&&N.goToAndStop(ye.frames[0]-N.firstFrame-1,!0)}};return document.addEventListener("scroll",Le),function(){document.removeEventListener("scroll",Le)}},Ae=function(){var Ie=function(ye,Ne){var He=ye,Ke=Ne;if(He!==-1&&Ke!==-1){var Be=ue(se,He,Ke);He=Be.x,Ke=Be.y}var st=de.find(function(At){var It=At.position;return It&&Array.isArray(It.x)&&Array.isArray(It.y)?He>=It.x[0]&&He<=It.x[1]&&Ke>=It.y[0]&&Ke<=It.y[1]:It&&!Number.isNaN(It.x)&&!Number.isNaN(It.y)?He===It.x&&Ke===It.y:!1});if(st){if(st.type==="seek"&&st.position&&Array.isArray(st.position.x)&&Array.isArray(st.position.y)&&st.frames.length===2){var Dt=(He-st.position.x[0])/(st.position.x[1]-st.position.x[0]),ln=(Ke-st.position.y[0])/(st.position.y[1]-st.position.y[0]);N.playSegments(st.frames,!0),N.goToAndStop(Math.ceil((Dt+ln)/2*(st.frames[1]-st.frames[0])),!0)}st.type==="loop"&&N.playSegments(st.frames,!0),st.type==="play"&&(N.isPaused&&N.resetSegments(!1),N.playSegments(st.frames)),st.type==="stop"&&N.goToAndStop(st.frames[0],!0)}},Le=function(ye){Ie(ye.clientX,ye.clientY)},Je=function(){Ie(-1,-1)};return se.addEventListener("mousemove",Le),se.addEventListener("mouseout",Je),function(){se.removeEventListener("mousemove",Le),se.removeEventListener("mouseout",Je)}};switch(I){case"scroll":return ie();case"cursor":return Ae()}}},[I,N])},W=function(ne){var U=ne.actions,N=ne.mode,I=ne.lottieObj,de=I.animationItem,se=I.View,ie=I.animationContainerRef;return ae({actions:U,animationItem:de,mode:N,wrapperRef:ie}),se},De=["style","interactivity"],q=function(ne){var U,N,I,de=ne.style,se=ne.interactivity,ie=$(ne,De),Ae=j(ie,de),Pe=Ae.View,Ie=Ae.play,Le=Ae.stop,Je=Ae.pause,Qe=Ae.setSpeed,ye=Ae.goToAndStop,Ne=Ae.goToAndPlay,He=Ae.setDirection,Ke=Ae.playSegments,Be=Ae.setSubframe,st=Ae.getDuration,Dt=Ae.destroy,ln=Ae.animationContainerRef,At=Ae.animationLoaded,It=Ae.animationItem;return r.useEffect(function(){ne.lottieRef&&(ne.lottieRef.current={play:Ie,stop:Le,pause:Je,setSpeed:Qe,goToAndPlay:Ne,goToAndStop:ye,setDirection:He,playSegments:Ke,setSubframe:Be,getDuration:st,destroy:Dt,animationContainerRef:ln,animationLoaded:At,animationItem:It})},[(U=ne.lottieRef)===null||U===void 0?void 0:U.current]),W({lottieObj:{View:Pe,play:Ie,stop:Le,pause:Je,setSpeed:Qe,goToAndStop:ye,goToAndPlay:Ne,setDirection:He,playSegments:Ke,setSubframe:Be,getDuration:st,destroy:Dt,animationContainerRef:ln,animationLoaded:At,animationItem:It},actions:(N=se==null?void 0:se.actions)!==null&&N!==void 0?N:[],mode:(I=se==null?void 0:se.mode)!==null&&I!==void 0?I:"scroll"})};n.LottiePlayer=l,n.default=q,n.useLottie=j,n.useLottieInteractivity=W,Object.defineProperty(n,"__esModule",{value:!0})})}(kf,kf.exports)),kf.exports}var Vie=Bie();const Nie=Bo(Vie),jie=T.createContext({});function Kie(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}const FO=T.createContext(null),kO=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ax=typeof window<"u",Uie=Ax?T.useLayoutEffect:T.useEffect,nu=e=>e;let Ud=nu,vc=nu;process.env.NODE_ENV!=="production"&&(Ud=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vc=(e,t)=>{if(!e)throw new Error(t)});const zie={useManualTiming:!1},Gh=["read","resolveKeyframes","update","preRender","render","postRender"];function qie(e,t){let n=new Set,r=new Set,i=!1,o=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&s.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,d.process(h))}};return d}const Wie=40;function OO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Gh.reduce((S,w)=>(S[w]=qie(o),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=s,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,Wie),1),i.timestamp=S,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(b))},$=()=>{n=!0,r=!0,i.isProcessing||e(b)};return{schedule:Gh.reduce((S,w)=>{const D=s[w];return S[w]=(O,R=!1,k=!1)=>(n||$(),D.schedule(O,R,k)),S},{}),cancel:S=>{for(let w=0;w<Gh.length;w++)s[Gh[w]].cancel(S)},state:i,steps:s}}const{schedule:Si,cancel:f4,state:rm}=OO(typeof requestAnimationFrame<"u"?requestAnimationFrame:nu,!0),Tx=T.createContext({strict:!1}),VT={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"]},yc={};for(const e in VT)yc[e]={isEnabled:t=>VT[e].some(n=>!!t[n])};function NT(e){for(const t in e)yc[t]={...yc[t],...e[t]}}function Hie({children:e,features:t,strict:n=!1}){const[,r]=T.useState(!A1(t)),i=T.useRef(void 0);if(!A1(t)){const{renderer:o,...s}=t;i.current=o,NT(s)}return T.useEffect(()=>{A1(t)&&t().then(({renderer:o,...s})=>{NT(s),i.current=o,r(!0)})},[]),sa.jsx(Tx.Provider,{value:{renderer:i.current,strict:n},children:e})}function A1(e){return typeof e=="function"}const Gie=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 im(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gie.has(e)}let IO=e=>!im(e);function Yie(e){e&&(IO=t=>t.startsWith("on")?!im(t):e(t))}try{Yie(require("@emotion/is-prop-valid").default)}catch{}function Zie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(IO(i)||n===!0&&im(i)||!t&&!im(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const jT=new Set;function og(e,t,n){e||jT.has(t)||(console.warn(t),jT.add(t))}function Xie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&og(!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 sg=T.createContext({});function ag(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function pd(e){return typeof e=="string"||Array.isArray(e)}const Px=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_x=["initial",...Px];function ug(e){return ag(e.animate)||_x.some(t=>pd(e[t]))}function LO(e){return!!(ug(e)||e.variants)}function Jie(e,t){if(ug(e)){const{initial:n,animate:r}=e;return{initial:n===!1||pd(n)?n:void 0,animate:pd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Qie(e){const{initial:t,animate:n}=Jie(e,T.useContext(sg));return T.useMemo(()=>({initial:t,animate:n}),[KT(t),KT(n)])}function KT(e){return Array.isArray(e)?e.join(" "):e}const eoe=Symbol.for("motionComponentSymbol");function BO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function toe(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):BO(n)&&(n.current=r))},[t])}const Rx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),noe="framerAppearId",VO="data-"+Rx(noe),{schedule:roe}=OO(queueMicrotask,!1),ioe=T.createContext({});function ooe(e,t,n,r,i){var o,s;const{visualElement:u}=T.useContext(sg),l=T.useContext(Tx),d=T.useContext(FO),h=T.useContext(kO).reducedMotion,m=T.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=T.useContext(ioe);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&soe(m.current,n,i,b);const $=T.useRef(!1);T.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const C=n[VO],A=T.useRef(!!C&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return Uie(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),roe.render(g.render),A.current&&g.animationState&&g.animationState.animateChanges())}),T.useEffect(()=>{g&&(!A.current&&g.animationState&&g.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,C)}),A.current=!1))}),g}function soe(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:NO(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||u&&BO(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function NO(e){if(e)return e.options.allowProjection!==!1?e.projection:NO(e.parent)}function aoe({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;function u(d,h){let m;const g={...T.useContext(kO),...d,layoutId:uoe(d)},{isStatic:b}=g,$=Qie(d),C=r(d,b);if(!b&&Ax){loe(g,e);const A=coe(g);m=A.MeasureLayout,$.visualElement=ooe(i,C,g,t,A.ProjectionNode)}return sa.jsxs(sg.Provider,{value:$,children:[m&&$.visualElement?sa.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,toe(C,$.visualElement,h),C,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const l=T.forwardRef(u);return l[eoe]=i,l}function uoe({layoutId:e}){const t=T.useContext(jie).id;return t&&e!==void 0?t+"-"+e:e}function loe(e,t){T.useContext(Tx).strict,process.env.NODE_ENV}function coe(e){const{drag:t,layout:n}=yc;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 jO=e=>t=>typeof t=="string"&&t.startsWith(e),KO=jO("--"),foe=jO("var(--"),Mx=e=>foe(e)?doe.test(e.split("/*")[0].trim()):!1,doe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,hoe={},Oc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ll=new Set(Oc);function UO(e,{layout:t,layoutId:n}){return ll.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hoe[e]||e==="opacity")}const oi=e=>!!(e&&e.getVelocity),zO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,rl=(e,t,n)=>n>t?t:n<e?e:n,Ic={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},md={...Ic,transform:e=>rl(0,1,e)},Yh={...Ic,default:1},zd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Na=zd("deg"),Ql=zd("%"),Ot=zd("px"),poe=zd("vh"),moe=zd("vw"),UT={...Ql,parse:e=>Ql.parse(e)/100,transform:e=>Ql.transform(e*100)},goe={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},voe={rotate:Na,rotateX:Na,rotateY:Na,rotateZ:Na,scale:Yh,scaleX:Yh,scaleY:Yh,scaleZ:Yh,skew:Na,skewX:Na,skewY:Na,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:md,originX:UT,originY:UT,originZ:Ot},zT={...Ic,transform:Math.round},Fx={...goe,...voe,zIndex:zT,size:Ot,fillOpacity:md,strokeOpacity:md,numOctaves:zT},yoe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},boe=Oc.length;function xoe(e,t,n){let r="",i=!0;for(let o=0;o<boe;o++){const s=Oc[o],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=zO(u,Fx[s]);if(!l){i=!1;const h=yoe[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function kx(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,u=!1;for(const l in t){const d=t[l];if(ll.has(l)){s=!0;continue}else if(KO(l)){i[l]=d;continue}else{const h=zO(d,Fx[l]);l.startsWith("origin")?(u=!0,o[l]=h):r[l]=h}}if(t.transform||(s||n?r.transform=xoe(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${l} ${d} ${h}`}}const Ox=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qO(e,t,n){for(const r in t)!oi(t[r])&&!UO(r,n)&&(e[r]=t[r])}function $oe({transformTemplate:e},t){return T.useMemo(()=>{const n=Ox();return kx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function woe(e,t){const n=e.style||{},r={};return qO(r,n,e),Object.assign(r,$oe(e,t)),r}function Coe(e,t){const n={},r=woe(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 Soe=["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 Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(Soe.indexOf(e)>-1||/[A-Z]/u.test(e))}const Eoe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Doe={offset:"strokeDashoffset",array:"strokeDasharray"};function Aoe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Eoe:Doe;e[o.offset]=Ot.transform(-r);const s=Ot.transform(t),u=Ot.transform(n);e[o.array]=`${s} ${u}`}function qT(e,t,n){return typeof e=="string"?e:Ot.transform(t+n*e)}function Toe(e,t,n){const r=qT(t,e.x,e.width),i=qT(n,e.y,e.height);return`${r} ${i}`}function Lx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(kx(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||o!==void 0||b.transform)&&(b.transformOrigin=Toe($,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&Aoe(g,s,u,l,!1)}const WO=()=>({...Ox(),attrs:{}}),Bx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Poe(e,t,n,r){const i=T.useMemo(()=>{const o=WO();return Lx(o,t,Bx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};qO(o,e.style,e),i.style={...o,...i.style}}return i}function _oe(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Ix(n)?Poe:Coe)(r,o,s,n),d=Zie(r,typeof n=="string",e),h=n!==T.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=T.useMemo(()=>oi(m)?m.get():m,[m]);return T.createElement(n,{...h,children:g})}}function WT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Vx(e,t,n,r){if(typeof t=="function"){const[i,o]=WT(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=WT(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const d4=e=>Array.isArray(e),Roe=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Moe=e=>d4(e)?e[e.length-1]||0:e;function Foe(e){const t=oi(e)?e.get():e;return Roe(t)?t.toValue():t}function koe({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:Ooe(r,i,o,e),renderState:t()};return n&&(s.onMount=u=>n({props:r,current:u,...s}),s.onUpdate=u=>n(u)),s}const HO=e=>(t,n)=>{const r=T.useContext(sg),i=T.useContext(FO),o=()=>koe(e,t,r,i);return n?o():Kie(o)};function Ooe(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Foe(o[g]);let{initial:s,animate:u}=e;const l=ug(e),d=LO(e);t&&d&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!ag(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=Vx(e,g[b]);if($){const{transitionEnd:C,transition:A,...S}=$;for(const w in S){let D=S[w];if(Array.isArray(D)){const O=h?D.length-1:0;D=D[O]}D!==null&&(i[w]=D)}for(const w in C)i[w]=C[w]}}}return i}function Nx(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(oi(i[s])||t.style&&oi(t.style[s])||UO(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}const Ioe={useVisualState:HO({scrapeMotionValuesFromProps:Nx,createRenderState:Ox})};function GO(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function YO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const ZO=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 XO(e,t,n,r){YO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ZO.has(i)?i:Rx(i),t.attrs[i])}function JO(e,t,n){const r=Nx(e,t,n);for(const i in e)if(oi(e[i])||oi(t[i])){const o=Oc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const HT=["x","y","width","height","cx","cy","r"],Loe={useVisualState:HO({scrapeMotionValuesFromProps:JO,createRenderState:WO,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ll.has(u)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let u=0;u<HT.length;u++){const l=HT[u];e[l]!==t[l]&&(s=!0)}s&&Si.read(()=>{GO(n,r),Si.render(()=>{Lx(r,i,Bx(n.tagName),e.transformTemplate),XO(n,r)})})}})};function Boe(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ix(r)?Loe:Ioe,preloadedFeatures:e,useRender:_oe(i),createVisualElement:t,Component:r};return aoe(s)}}const Voe=Boe(),Noe=Xie(Voe);function gd(e,t,n){const r=e.getProps();return Vx(r,t,n!==void 0?n:r.custom,e)}function QO(e,t){return e?e[t]||e.default||e:void 0}const eI=new Set(["width","height","top","left","right","bottom",...Oc]);let bp;function joe(){bp=void 0}const Xa={now:()=>(bp===void 0&&Xa.set(rm.isProcessing||zie.useManualTiming?rm.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(joe)}};function Koe(e,t){e.indexOf(t)===-1&&e.push(t)}function Uoe(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class tI{constructor(){this.subscriptions=[]}add(t){return Koe(this.subscriptions,t),()=>Uoe(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function nI(e,t){return t?e*(1e3/t):0}const GT=30,zoe=e=>!isNaN(parseFloat(e));class qoe{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Xa.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zoe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&og(!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 tI);const r=this.events[t].add(n);return t==="change"?()=>{r(),Si.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>GT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,GT);return nI(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function om(e,t){return new qoe(e,t)}function Woe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,om(n))}function Hoe(e,t){const n=gd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const u=Moe(o[s]);Woe(e,s,u)}}function Goe(e){return!!(oi(e)&&e.add)}function Yoe(e,t){const n=e.getValue("willChange");if(Goe(n))return n.add(t)}function Zoe(e){return e.props[VO]}function jx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xoe=jx(()=>window.ScrollTimeline!==void 0);class Joe{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Xoe()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Qoe extends Joe{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const oa=e=>e*1e3,Ja=e=>e/1e3;function Kx(e){return typeof e=="function"}function YT(e,t){e.timeline=t,e.onfinish=null}const Ux=e=>Array.isArray(e)&&typeof e[0]=="number",ese={linearEasing:void 0};function tse(e,t){const n=jx(e);return()=>{var r;return(r=ese[t])!==null&&r!==void 0?r:n()}}const sm=tse(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),zx=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},rI=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(zx(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function iI(e){return!!(typeof e=="function"&&sm()||!e||typeof e=="string"&&(e in h4||sm())||Ux(e)||Array.isArray(e)&&e.every(iI))}const Of=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,h4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Of([0,.65,.55,1]),circOut:Of([.55,0,1,.45]),backIn:Of([.31,.01,.66,-.59]),backOut:Of([.33,1.53,.69,.99])};function oI(e,t){if(e)return typeof e=="function"&&sm()?rI(e,t):Ux(e)?Of(e):Array.isArray(e)?e.map(n=>oI(n,t)||h4.easeOut):h4[e]}const sI=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nse=1e-7,rse=12;function ise(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=sI(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>nse&&++u<rse);return s}function qd(e,t,n,r){if(e===t&&n===r)return nu;const i=o=>ise(o,0,1,e,n);return o=>o===0||o===1?o:sI(i(o),t,r)}const aI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,uI=e=>t=>1-e(1-t),lI=qd(.33,1.53,.69,.99),qx=uI(lI),cI=aI(qx),fI=e=>(e*=2)<1?.5*qx(e):.5*(2-Math.pow(2,-10*(e-1))),Wx=e=>1-Math.sin(Math.acos(e)),ose=uI(Wx),dI=aI(Wx),hI=e=>/^0[^.\s]+$/u.test(e);function sse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||hI(e):!0}const Gf=e=>Math.round(e*1e5)/1e5,Hx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ase(e){return e==null}const use=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Gx=(e,t)=>n=>!!(typeof n=="string"&&use.test(n)&&n.startsWith(e)||t&&!ase(n)&&Object.prototype.hasOwnProperty.call(n,t)),pI=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,u]=r.match(Hx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},lse=e=>rl(0,255,e),T1={...Ic,transform:e=>Math.round(lse(e))},Nu={test:Gx("rgb","red"),parse:pI("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+T1.transform(e)+", "+T1.transform(t)+", "+T1.transform(n)+", "+Gf(md.transform(r))+")"};function cse(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 p4={test:Gx("#"),parse:cse,transform:Nu.transform},zl={test:Gx("hsl","hue"),parse:pI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ql.transform(Gf(t))+", "+Ql.transform(Gf(n))+", "+Gf(md.transform(r))+")"},zr={test:e=>Nu.test(e)||p4.test(e)||zl.test(e),parse:e=>Nu.test(e)?Nu.parse(e):zl.test(e)?zl.parse(e):p4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Nu.transform(e):zl.transform(e)},fse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Hx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(fse))===null||n===void 0?void 0:n.length)||0)>0}const mI="number",gI="color",hse="var",pse="var(",ZT="${}",mse=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(mse,l=>(zr.test(l)?(r.color.push(o),i.push(gI),n.push(zr.parse(l))):l.startsWith(pse)?(r.var.push(o),i.push(hse),n.push(l)):(r.number.push(o),i.push(mI),n.push(parseFloat(l))),++o,ZT)).split(ZT);return{values:n,split:u,indexes:r,types:i}}function vI(e){return vd(e).values}function yI(e){const{split:t,types:n}=vd(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const u=n[s];u===mI?o+=Gf(i[s]):u===gI?o+=zr.transform(i[s]):o+=i[s]}return o}}const gse=e=>typeof e=="number"?0:e;function vse(e){const t=vI(e);return yI(e)(t.map(gse))}const Lc={test:dse,parse:vI,createTransformer:yI,getAnimatableNone:vse},yse=new Set(["brightness","contrast","saturate","opacity"]);function bse(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Hx)||[];if(!r)return e;const i=n.replace(r,"");let o=yse.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const xse=/\b([a-z-]*)\(.*?\)/gu,m4={...Lc,getAnimatableNone:e=>{const t=e.match(xse);return t?t.map(bse).join(" "):e}},$se={...Fx,color:zr,backgroundColor:zr,outlineColor:zr,fill:zr,stroke:zr,borderColor:zr,borderTopColor:zr,borderRightColor:zr,borderBottomColor:zr,borderLeftColor:zr,filter:m4,WebkitFilter:m4},Yx=e=>$se[e];function bI(e,t){let n=Yx(e);return n!==m4&&(n=Lc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wse=new Set(["auto","none","0"]);function Cse(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!wse.has(o)&&vd(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=bI(n,i)}const XT=e=>e===Ic||e===Ot,JT=(e,t)=>parseFloat(e.split(", ")[t]),QT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return JT(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?JT(o[1],e):0}},Sse=new Set(["x","y","z"]),Ese=Oc.filter(e=>!Sse.has(e));function Dse(e){const t=[];return Ese.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bc={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:QT(4,13),y:QT(5,14)};bc.translateX=bc.x;bc.translateY=bc.y;const Wu=new Set;let g4=!1,v4=!1;function xI(){if(v4){const e=Array.from(Wu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dse(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}v4=!1,g4=!1,Wu.forEach(e=>e.complete()),Wu.clear()}function $I(){Wu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(v4=!0)})}function Ase(){$I(),xI()}class Zx{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Wu.add(this),g4||(g4=!0,Si.read($I),Si.resolveKeyframes(xI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Wu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Wu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const wI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Tse=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pse(e){const t=Tse.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const _se=4;function CI(e,t,n=1){vc(n<=_se,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Pse(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return wI(s)?parseFloat(s):s}return Mx(i)?CI(i,t,n+1):i}const SI=e=>t=>t.test(e),Rse={test:e=>e==="auto",parse:e=>e},EI=[Ic,Ot,Ql,Na,moe,poe,Rse],eP=e=>EI.find(SI(e));class DI extends Zx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Mx(d))){const h=CI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eI.has(r)||t.length!==2)return;const[i,o]=t,s=eP(i),u=eP(o);if(s!==u)if(XT(s)&&XT(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)sse(t[i])&&r.push(i);r.length&&Cse(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=bc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,u=i[s];i[s]=bc[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}const tP=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lc.test(e)||e==="0")&&!e.startsWith("url("));function Mse(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 Fse(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=tP(i,t),u=tP(o,t);return Ud(s===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!s||!u?!1:Mse(e)||(n==="spring"||Kx(n))&&r}const kse=e=>e!==null;function lg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(kse),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Ose=40;class AI{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Xa.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ose?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ase(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Xa.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!Fse(t,r,i,o))if(s)this.options.duration=0;else{l&&l(lg(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const y4=2e4;function TI(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<y4;)t+=n,r=e.next(t);return t>=y4?1/0:t}const cg=(e,t,n)=>e+(t-e)*n;function P1(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 Ise({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=P1(l,u,e+1/3),o=P1(l,u,e),s=P1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function am(e,t){return n=>n>0?t:e}const _1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Lse=[p4,Nu,zl],Bse=e=>Lse.find(t=>t.test(e));function nP(e){const t=Bse(e);if(Ud(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===zl&&(n=Ise(n)),n}const rP=(e,t)=>{const n=nP(e),r=nP(t);if(!n||!r)return am(e,t);const i={...n};return o=>(i.red=_1(n.red,r.red,o),i.green=_1(n.green,r.green,o),i.blue=_1(n.blue,r.blue,o),i.alpha=cg(n.alpha,r.alpha,o),Nu.transform(i))},Vse=(e,t)=>n=>t(e(n)),fg=(...e)=>e.reduce(Vse),b4=new Set(["none","hidden"]);function Nse(e,t){return b4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jse(e,t){return n=>cg(e,t,n)}function Xx(e){return typeof e=="number"?jse:typeof e=="string"?Mx(e)?am:zr.test(e)?rP:zse:Array.isArray(e)?PI:typeof e=="object"?zr.test(e)?rP:Kse:am}function PI(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Xx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function Kse(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Use(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],u=e.indexes[s][i[s]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const zse=(e,t)=>{const n=Lc.createTransformer(t),r=vd(e),i=vd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?b4.has(e)&&!i.values.length||b4.has(t)&&!r.values.length?Nse(e,t):fg(PI(Use(r,i),i.values),n):(Ud(!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.`),am(e,t))};function _I(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?cg(e,t,n):Xx(e)(e,t)}const qse=5;function RI(e,t,n){const r=Math.max(t-qse,0);return nI(n-e(r),t-r)}const Un={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},iP=.001;function Wse({duration:e=Un.duration,bounce:t=Un.bounce,velocity:n=Un.velocity,mass:r=Un.mass}){let i,o;Ud(e<=oa(Un.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=rl(Un.minDamping,Un.maxDamping,s),e=rl(Un.minDuration,Un.maxDuration,Ja(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=x4(d,s),$=Math.exp(-m);return iP-g/b*$},o=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,$=Math.exp(-m),C=x4(Math.pow(d,2),s);return(-i(d)+iP>0?-1:1)*((g-b)*$)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Gse(i,o,u);if(e=oa(e),isNaN(l))return{stiffness:Un.stiffness,damping:Un.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const Hse=12;function Gse(e,t,n){let r=n;for(let i=1;i<Hse;i++)r=r-e(r)/t(r);return r}function x4(e,t){return e*Math.sqrt(1-t*t)}const Yse=["duration","bounce"],Zse=["stiffness","damping","mass"];function oP(e,t){return t.some(n=>e[n]!==void 0)}function Xse(e){let t={velocity:Un.velocity,stiffness:Un.stiffness,damping:Un.damping,mass:Un.mass,isResolvedFromDuration:!1,...e};if(!oP(e,Zse)&&oP(e,Yse))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*rl(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Un.mass,stiffness:i,damping:o}}else{const n=Wse(e);t={...t,...n,mass:Un.mass},t.isResolvedFromDuration=!0}return t}function MI(e=Un.visualDuration,t=Un.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Xse({...n,velocity:-Ja(n.velocity||0)}),$=g||0,C=d/(2*Math.sqrt(l*h)),A=s-o,S=Ja(Math.sqrt(l/h)),w=Math.abs(A)<5;r||(r=w?Un.restSpeed.granular:Un.restSpeed.default),i||(i=w?Un.restDelta.granular:Un.restDelta.default);let D;if(C<1){const R=x4(S,C);D=k=>{const j=Math.exp(-C*S*k);return s-j*(($+C*S*A)/R*Math.sin(R*k)+A*Math.cos(R*k))}}else if(C===1)D=R=>s-Math.exp(-S*R)*(A+($+S*A)*R);else{const R=S*Math.sqrt(C*C-1);D=k=>{const j=Math.exp(-C*S*k),M=Math.min(R*k,300);return s-j*(($+C*S*A)*Math.sinh(M)+R*A*Math.cosh(M))/R}}const O={calculatedDuration:b&&m||null,next:R=>{const k=D(R);if(b)u.done=R>=m;else{let j=0;C<1&&(j=R===0?oa($):RI(D,R,k));const M=Math.abs(j)<=r,ue=Math.abs(s-k)<=i;u.done=M&&ue}return u.value=u.done?s:k,u},toString:()=>{const R=Math.min(TI(O),y4),k=rI(j=>O.next(R*j).value,R,30);return R+"ms "+k}};return O}function sP({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=M=>u!==void 0&&M<u||l!==void 0&&M>l,$=M=>u===void 0?l:l===void 0||Math.abs(u-M)<Math.abs(l-M)?u:l;let C=n*t;const A=m+C,S=s===void 0?A:s(A);S!==A&&(C=S-m);const w=M=>-C*Math.exp(-M/r),D=M=>S+w(M),O=M=>{const ue=w(M),ae=D(M);g.done=Math.abs(ue)<=d,g.value=g.done?S:ae};let R,k;const j=M=>{b(g.value)&&(R=M,k=MI({keyframes:[g.value,$(g.value)],velocity:RI(D,M,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:M=>{let ue=!1;return!k&&R===void 0&&(ue=!0,O(M),j(M)),R!==void 0&&M>=R?k.next(M-R):(!ue&&O(M),g)}}}const Jse=qd(.42,0,1,1),Qse=qd(0,0,.58,1),FI=qd(.42,0,.58,1),eae=e=>Array.isArray(e)&&typeof e[0]!="number",aP={linear:nu,easeIn:Jse,easeInOut:FI,easeOut:Qse,circIn:Wx,circInOut:dI,circOut:ose,backIn:qx,backInOut:cI,backOut:lI,anticipate:fI},uP=e=>{if(Ux(e)){vc(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return qd(t,n,r,i)}else if(typeof e=="string")return vc(aP[e]!==void 0,`Invalid easing type '${e}'`),aP[e];return e};function tae(e,t,n){const r=[],i=n||_I,o=e.length-1;for(let s=0;s<o;s++){let u=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||nu:t;u=fg(l,u)}r.push(u)}return r}function nae(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vc(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tae(t,r,i),l=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=zx(e[m],e[m+1],h);return u[m](g)};return n?h=>d(rl(e[0],e[o-1],h)):d}function rae(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=zx(0,t,r);e.push(cg(n,1,i))}}function iae(e){const t=[0];return rae(t,e.length-1),t}function oae(e,t){return e.map(n=>n*t)}function sae(e,t){return e.map(()=>t||FI).splice(0,e.length-1)}function um({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=eae(r)?r.map(uP):uP(r),o={done:!1,value:t[0]},s=oae(n&&n.length===t.length?n:iae(t),e),u=nae(s,t,{ease:Array.isArray(i)?i:sae(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const aae=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Si.update(t,!0),stop:()=>f4(t),now:()=>rm.isProcessing?rm.timestamp:Xa.now()}},uae={decay:sP,inertia:sP,tween:um,keyframes:um,spring:MI},lae=e=>e/100;class Jx extends AI{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Zx,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new s(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,u=Kx(n)?n:uae[n]||um;let l,d;u!==um&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&vc(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=fg(lae,_I(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=TI(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:C,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),w=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let D=this.currentTime,O=o;if(b){const M=Math.min(this.currentTime,h)/m;let ue=Math.floor(M),ae=M%1;!ae&&M>=1&&(ae=1),ae===1&&ue--,ue=Math.min(ue,b+1),!!(ue%2)&&($==="reverse"?(ae=1-ae,C&&(ae-=C/m)):$==="mirror"&&(O=s)),D=rl(0,1,ae)*m}const R=w?{done:!1,value:l[0]}:O.next(D);u&&(R.value=u(R.value));let{done:k}=R;!w&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return j&&i!==void 0&&(R.value=lg(l,this.options,i)),A&&A(R.value),j&&this.finish(),R}get duration(){const{resolved:t}=this;return t?Ja(t.calculatedDuration):0}get time(){return Ja(this.currentTime)}set time(t){t=oa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ja(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=aae,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const cae=new Set(["opacity","clipPath","filter","transform"]);function fae(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=oI(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const dae=jx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),lm=10,hae=2e4;function pae(e){return Kx(e.type)||e.type==="spring"||!iI(e.ease)}function mae(e,t){const n=new Jx({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<hae;)r=n.sample(o),i.push(r.value),o+=lm;return{times:void 0,keyframes:i,duration:o-lm,ease:"linear"}}const kI={anticipate:fI,backInOut:cI,circInOut:dI};function gae(e){return e in kI}class lP extends AI{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new DI(o,(s,u)=>this.onKeyframesResolved(s,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&sm()&&gae(o)&&(o=kI[o]),pae(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...C}=this.options,A=mae(t,C);t=A.keyframes,t.length===1&&(t[1]=t[0]),r=A.duration,i=A.times,o=A.ease,s="keyframes"}const h=fae(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(YT(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(lg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ja(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ja(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=oa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return nu;const{animation:r}=n;YT(r,t)}return nu}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new Jx({...b,keyframes:r,duration:i,type:o,ease:s,times:u,isGenerator:!0}),C=oa(this.time);d.setWithVelocity($.sample(C-lm).value,$.sample(C).value,lm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return dae()&&r&&cae.has(r)&&!l&&!d&&!i&&o!=="mirror"&&s!==0&&u!=="inertia"}}const vae={type:"spring",stiffness:500,damping:25,restSpeed:10},yae=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bae={type:"keyframes",duration:.8},xae={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$ae=(e,{keyframes:t})=>t.length>2?bae:ll.has(e)?e.startsWith("scale")?yae(t[1]):vae:xae;function wae({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const Cae=(e,t,n,r={},i,o)=>s=>{const u=QO(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-oa(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};wae(u)||(h={...h,...$ae(e,h)}),h.duration&&(h.duration=oa(h.duration)),h.repeatDelay&&(h.repeatDelay=oa(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)),m&&!o&&t.get()!==void 0){const g=lg(h.keyframes,u);if(g!==void 0)return Si.update(()=>{h.onUpdate(g),h.onComplete()}),new Qoe([])}return!o&&lP.supports(h)?new lP(h):new Jx(h)};function Sae({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function OI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),b=l[m];if(b===void 0||h&&Sae(h,m))continue;const $={delay:n,...QO(s||{},m)};let C=!1;if(window.MotionHandoffAnimation){const S=Zoe(e);if(S){const w=window.MotionHandoffAnimation(S,m,Si);w!==null&&($.startTime=w,C=!0)}}Yoe(e,m),g.start(Cae(m,g,b,e.shouldReduceMotion&&eI.has(m)?{type:!1}:$,e,C));const A=g.animation;A&&d.push(A)}return u&&Promise.all(d).then(()=>{Si.update(()=>{u&&Hoe(e,u)})}),d}function $4(e,t,n={}){var r;const i=gd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(OI(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return Eae(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,h]=l==="beforeChildren"?[s,u]:[u,s];return d().then(()=>h())}else return Promise.all([s(),u(n.delay)])}function Eae(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Dae).forEach((d,h)=>{d.notify("AnimationStart",t),s.push($4(d,t,{...o,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(s)}function Dae(e,t){return e.sortNodePosition(t)}function Aae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>$4(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=$4(e,t,n);else{const i=typeof t=="function"?gd(e,t,n.custom):t;r=Promise.all(OI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function II(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 Tae=_x.length;function LI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?LI(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Tae;n++){const r=_x[n],i=e.props[r];(pd(i)||i===!1)&&(t[r]=i)}return t}const Pae=[...Px].reverse(),_ae=Px.length;function Rae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Aae(e,n,r)))}function Mae(e){let t=Rae(e),n=cP(),r=!0;const i=l=>(d,h)=>{var m;const g=gd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...C}=g;d={...d,...C,...$}}return d};function o(l){t=l(e)}function s(l){const{props:d}=e,h=LI(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let A=0;A<_ae;A++){const S=Pae[A],w=n[S],D=d[S]!==void 0?d[S]:h[S],O=pd(D),R=S===l?w.isActive:null;R===!1&&($=A);let k=D===h[S]&&D!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...b},!w.isActive&&R===null||!D&&!w.prevProp||ag(D)||typeof D=="boolean")continue;const j=Fae(w.prevProp,D);let M=j||S===l&&w.isActive&&!k&&O||A>$&&O,ue=!1;const ae=Array.isArray(D)?D:[D];let W=ae.reduce(i(S),{});R===!1&&(W={});const{prevResolvedValues:De={}}=w,q={...De,...W},K=N=>{M=!0,g.has(N)&&(ue=!0,g.delete(N)),w.needsAnimating[N]=!0;const I=e.getValue(N);I&&(I.liveStyle=!1)};for(const N in q){const I=W[N],de=De[N];if(b.hasOwnProperty(N))continue;let se=!1;d4(I)&&d4(de)?se=!II(I,de):se=I!==de,se?I!=null?K(N):g.add(N):I!==void 0&&g.has(N)?K(N):w.protectedKeys[N]=!0}w.prevProp=D,w.prevResolvedValues=W,w.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(k&&j)||ue)&&m.push(...ae.map(N=>({animation:N,options:{type:S}})))}if(g.size){const A={};if(typeof d.initial!="boolean"){const S=gd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(A.transition=S.transition)}g.forEach(S=>{const w=e.getBaseTarget(S),D=e.getValue(S);D&&(D.liveStyle=!0),A[S]=w??null}),m.push({animation:A})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=s(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=cP(),r=!0}}}function Fae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!II(t,e):!1}function Pu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cP(){return{animate:Pu(!0),whileInView:Pu(),whileHover:Pu(),whileTap:Pu(),whileDrag:Pu(),whileFocus:Pu(),exit:Pu()}}class Bc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class kae extends Bc{constructor(t){super(t),t.animationState||(t.animationState=Mae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ag(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Oae=0;class Iae extends Bc{constructor(){super(...arguments),this.id=Oae++}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 Lae={animation:{Feature:kae},exit:{Feature:Iae}},Bae={y:!1};function Vae(){return Bae.y}const Nae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fP(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function BI(e){return{point:{x:e.pageX,y:e.pageY}}}const dP=()=>({min:0,max:0}),VI=()=>({x:dP(),y:dP()});function jae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Kae(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 Uae(e,t){return jae(Kae(e.getBoundingClientRect(),t))}function zae(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function NI(e,t){const n=zae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function hP(e){return!(e.pointerType==="touch"||Vae())}function qae(e,t,n={}){const[r,i,o]=NI(e,n),s=u=>{if(!hP(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{hP(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),o}function pP(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Si.postRender(()=>o(t,BI(t)))}class Wae extends Bc{mount(){const{current:t}=this.node;t&&(this.unmount=qae(t,(n,r)=>(pP(this.node,r,"Start"),i=>pP(this.node,i,"End"))))}unmount(){}}class Hae extends Bc{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=fg(fP(this.node.current,"focus",()=>this.onFocus()),fP(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const jI=(e,t)=>t?e===t?!0:jI(e,t.parentElement):!1,Gae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yae(e){return Gae.has(e.tagName)||e.tabIndex!==-1}const If=new WeakSet;function mP(e){return t=>{t.key==="Enter"&&e(t)}}function R1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Zae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=mP(()=>{if(If.has(n))return;R1(n,"down");const i=mP(()=>{R1(n,"up")}),o=()=>R1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function gP(e){return Nae(e)&&!0}function Xae(e,t,n={}){const[r,i,o]=NI(e,n),s=u=>{const l=u.currentTarget;if(!gP(u)||If.has(l))return;If.add(l);const d=t(l,u),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!gP(b)||!If.has(l))&&(If.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{h(b,n.useGlobalTarget||jI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{!Yae(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),u.addEventListener("focus",d=>Zae(d,i),i)}),o}function vP(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Si.postRender(()=>o(t,BI(t)))}class Jae extends Bc{mount(){const{current:t}=this.node;t&&(this.unmount=Xae(t,(n,r)=>(vP(this.node,r,"Start"),(i,{success:o})=>vP(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const w4=new WeakMap,M1=new WeakMap,Qae=e=>{const t=w4.get(e.target);t&&t(e)},eue=e=>{e.forEach(Qae)};function tue({root:e,...t}){const n=e||document;M1.has(n)||M1.set(n,{});const r=M1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(eue,{root:e,...t})),r[i]}function nue(e,t,n){const r=tue(t);return w4.set(e,n),r.observe(e),()=>{w4.delete(e),r.unobserve(e)}}const rue={some:0,all:1};class iue extends Bc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:rue[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return nue(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(oue(t,n))&&this.startObserver()}unmount(){}}function oue({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const sue={inView:{Feature:iue},tap:{Feature:Jae},focus:{Feature:Hae},hover:{Feature:Wae}},C4={current:null},KI={current:!1};function aue(){if(KI.current=!0,!!Ax)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>C4.current=e.matches;e.addListener(t),t()}else C4.current=!1}const uue=[...EI,zr,Lc],lue=e=>uue.find(SI(e)),cue=new WeakMap;function fue(e,t,n){for(const r in t){const i=t[r],o=n[r];if(oi(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&og(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(oi(o))e.addValue(r,om(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,om(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class due{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Xa.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Si.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=s;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=ug(n),this.isVariantNode=LO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&oi($)&&$.set(l[b],!1)}}mount(t){this.current=t,cue.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)),KI.current||aue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:C4.current,process.env.NODE_ENV!=="production"&&og(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(),f4(this.notifyUpdate),f4(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=ll.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Si.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),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 yc){const n=yc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):VI()}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<yP.length;r++){const i=yP[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=fue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=om(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(wI(i)||hI(i))?i=parseFloat(i):!lue(i)&&Lc.test(n)&&(i=bI(t,n)),this.setBaseTarget(t,oi(i)?i.get():i)),oi(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Vx(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!oi(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tI),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class UI extends due{constructor(){super(...arguments),this.KeyframeResolver=DI}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;oi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hue(e){return window.getComputedStyle(e)}class pue extends UI{constructor(){super(...arguments),this.type="html",this.renderInstance=YO}readValueFromInstance(t,n){if(ll.has(n)){const r=Yx(n);return r&&r.default||0}else{const r=hue(t),i=(KO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Uae(t,n)}build(t,n,r){kx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nx(t,n,r)}}class mue extends UI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=VI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&GO(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ll.has(n)){const r=Yx(n);return r&&r.default||0}return n=ZO.has(n)?n:Rx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return JO(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Si.postRender(this.updateDimensions)}build(t,n,r){Lx(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){XO(t,n,r,i)}mount(t){this.isSVGTag=Bx(t.tagName),super.mount(t)}}const gue=(e,t)=>Ix(e)?new mue(t):new pue(t,{allowProjection:e!==T.Fragment}),vue={renderer:gue,...Lae,...sue};function zI(e){return t=>typeof t===e}var yue=zI("function"),bue=e=>e===null,bP=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",xP=e=>!xue(e)&&!bue(e)&&(yue(e)||typeof e=="object"),xue=zI("undefined");function $ue(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}function wue(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 Cue(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(!si(n[1],t.get(n[0])))return!1;return!0}function Sue(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 si(e,t){if(e===t)return!0;if(e&&xP(e)&&t&&xP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return $ue(e,t);if(e instanceof Map&&t instanceof Map)return Cue(e,t);if(e instanceof Set&&t instanceof Set)return Sue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return wue(e,t);if(bP(e)&&bP(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!si(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Eue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Due=["bigint","boolean","null","number","string","symbol","undefined"];function dg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Aue(t))return t}function jo(e){return t=>dg(t)===e}function Aue(e){return Eue.includes(e)}function Vc(e){return t=>typeof t===e}function Tue(e){return Due.includes(e)}var Pue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function pt(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(pt.array(e))return"Array";if(pt.plainFunction(e))return"Function";const t=dg(e);return t||"Object"}pt.array=Array.isArray;pt.arrayOf=(e,t)=>!pt.array(e)&&!pt.function(t)?!1:e.every(n=>t(n));pt.asyncGeneratorFunction=e=>dg(e)==="AsyncGeneratorFunction";pt.asyncFunction=jo("AsyncFunction");pt.bigint=Vc("bigint");pt.boolean=e=>e===!0||e===!1;pt.date=jo("Date");pt.defined=e=>!pt.undefined(e);pt.domElement=e=>pt.object(e)&&!pt.plainObject(e)&&e.nodeType===1&&pt.string(e.nodeName)&&Pue.every(t=>t in e);pt.empty=e=>pt.string(e)&&e.length===0||pt.array(e)&&e.length===0||pt.object(e)&&!pt.map(e)&&!pt.set(e)&&Object.keys(e).length===0||pt.set(e)&&e.size===0||pt.map(e)&&e.size===0;pt.error=jo("Error");pt.function=Vc("function");pt.generator=e=>pt.iterable(e)&&pt.function(e.next)&&pt.function(e.throw);pt.generatorFunction=jo("GeneratorFunction");pt.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;pt.iterable=e=>!pt.nullOrUndefined(e)&&pt.function(e[Symbol.iterator]);pt.map=jo("Map");pt.nan=e=>Number.isNaN(e);pt.null=e=>e===null;pt.nullOrUndefined=e=>pt.null(e)||pt.undefined(e);pt.number=e=>Vc("number")(e)&&!pt.nan(e);pt.numericString=e=>pt.string(e)&&e.length>0&&!Number.isNaN(Number(e));pt.object=e=>!pt.nullOrUndefined(e)&&(pt.function(e)||typeof e=="object");pt.oneOf=(e,t)=>pt.array(e)?e.indexOf(t)>-1:!1;pt.plainFunction=jo("Function");pt.plainObject=e=>{if(dg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};pt.primitive=e=>pt.null(e)||Tue(typeof e);pt.promise=jo("Promise");pt.propertyOf=(e,t,n)=>{if(!pt.object(e)||!t)return!1;const r=e[t];return pt.function(n)?n(r):pt.defined(r)};pt.regexp=jo("RegExp");pt.set=jo("Set");pt.string=Vc("string");pt.symbol=Vc("symbol");pt.undefined=Vc("undefined");pt.weakMap=jo("WeakMap");pt.weakSet=jo("WeakSet");var yt=pt;function _ue(...e){return e.every(t=>yt.string(t)||yt.array(t)||yt.plainObject(t))}function Rue(e,t,n){return qI(e,t)?[e,t].every(yt.array)?!e.some(EP(n))&&t.some(EP(n)):[e,t].every(yt.plainObject)?!Object.entries(e).some(SP(n))&&Object.entries(t).some(SP(n)):t===n:!1}function $P(e,t,n){const{actual:r,key:i,previous:o,type:s}=n,u=ps(e,i),l=ps(t,i);let d=[u,l].every(yt.number)&&(s==="increased"?u<l:u>l);return yt.undefined(r)||(d=d&&l===r),yt.undefined(o)||(d=d&&u===o),d}function wP(e,t,n){const{key:r,type:i,value:o}=n,s=ps(e,r),u=ps(t,r),l=i==="added"?s:u,d=i==="added"?u:s;if(!yt.nullOrUndefined(o)){if(yt.defined(l)){if(yt.array(l)||yt.plainObject(l))return Rue(l,d,o)}else return si(d,o);return!1}return[s,u].every(yt.array)?!d.every(Qx(l)):[s,u].every(yt.plainObject)?Mue(Object.keys(l),Object.keys(d)):![s,u].every(h=>yt.primitive(h)&&yt.defined(h))&&(i==="added"?!yt.defined(s)&&yt.defined(u):yt.defined(s)&&!yt.defined(u))}function CP(e,t,{key:n}={}){let r=ps(e,n),i=ps(t,n);if(!qI(r,i))throw new TypeError("Inputs have different types");if(!_ue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(yt.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function SP(e){return([t,n])=>yt.array(e)?si(e,n)||e.some(r=>si(r,n)||yt.array(n)&&Qx(n)(r)):yt.plainObject(e)&&e[t]?!!e[t]&&si(e[t],n):si(e,n)}function Mue(e,t){return t.some(n=>!e.includes(n))}function EP(e){return t=>yt.array(e)?e.some(n=>si(n,t)||yt.array(t)&&Qx(t)(n)):si(e,t)}function yf(e,t){return yt.array(e)?e.some(n=>si(n,t)):si(e,t)}function Qx(e){return t=>e.some(n=>si(n,t))}function qI(...e){return e.every(yt.array)||e.every(yt.number)||e.every(yt.plainObject)||e.every(yt.string)}function ps(e,t){return yt.plainObject(e)||yt.array(e)?yt.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):yt.number(t)?e[t]:e:e}function cm(e,t){if([e,t].some(yt.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>yt.plainObject(h)||yt.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return wP(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=ps(e,h),$=ps(t,h),C=yt.defined(m),A=yt.defined(g);if(C||A){const S=A?yf(g,b):!yf(m,b),w=yf(m,$);return S&&w}return[b,$].every(yt.array)||[b,$].every(yt.plainObject)?!si(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!yt.defined(h))return!1;try{const b=ps(e,h),$=ps(t,h),C=yt.defined(g);return yf(m,b)&&(C?yf(g,$):!C)}catch{return!1}},decreased:(h,m,g)=>{if(!yt.defined(h))return!1;try{return $P(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=CP(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=CP(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!yt.defined(h))return!1;try{return $P(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return wP(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var F1,DP;function Fue(){if(DP)return F1;DP=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;F1={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=s);var b=r(),$=d[u],C=m.ease||o,A=isNaN(m.duration)?350:+m.duration,S=!1;return $===h?g(e,d[u]):requestAnimationFrame(D),w;function w(){S=!0}function D(O){if(S)return g(t,d[u]);var R=r(),k=n(1,(R-b)/A),j=C(k);d[u]=j*(h-$)+$,k<1?requestAnimationFrame(D):requestAnimationFrame(function(){g(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function s(){}return F1}var kue=Fue();const Oue=Bo(kue);var xp={exports:{}},Iue=xp.exports,AP;function Lue(){return AP||(AP=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Iue,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})}(xp)),xp.exports}var Bue=Lue();const WI=Bo(Bue);var k1,TP;function Vue(){if(TP)return k1;TP=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,k1=n,k1}var Nue=Vue();const PP=Bo(Nue);var O1,_P;function jue(){if(_P)return O1;_P=1;var e=function(w){return t(w)&&!n(w)};function t(S){return!!S&&typeof S=="object"}function n(S){var w=Object.prototype.toString.call(S);return w==="[object RegExp]"||w==="[object Date]"||o(S)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(S){return S.$$typeof===i}function s(S){return Array.isArray(S)?[]:{}}function u(S,w){return w.clone!==!1&&w.isMergeableObject(S)?C(s(S),S,w):S}function l(S,w,D){return S.concat(w).map(function(O){return u(O,D)})}function d(S,w){if(!w.customMerge)return C;var D=w.customMerge(S);return typeof D=="function"?D:C}function h(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(w){return Object.propertyIsEnumerable.call(S,w)}):[]}function m(S){return Object.keys(S).concat(h(S))}function g(S,w){try{return w in S}catch{return!1}}function b(S,w){return g(S,w)&&!(Object.hasOwnProperty.call(S,w)&&Object.propertyIsEnumerable.call(S,w))}function $(S,w,D){var O={};return D.isMergeableObject(S)&&m(S).forEach(function(R){O[R]=u(S[R],D)}),m(w).forEach(function(R){b(S,R)||(g(S,R)&&D.isMergeableObject(w[R])?O[R]=d(R,D)(S[R],w[R],D):O[R]=u(w[R],D))}),O}function C(S,w,D){D=D||{},D.arrayMerge=D.arrayMerge||l,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var O=Array.isArray(w),R=Array.isArray(S),k=O===R;return k?O?D.arrayMerge(S,w,D):$(S,w,D):u(w,D)}C.all=function(w,D){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(O,R){return C(O,R,D)},{})};var A=C;return O1=A,O1}var Kue=jue();const ko=Bo(Kue);var Zh={exports:{}},Xh={exports:{}},mn={};/** @license React v16.13.1
|
|
156
|
-
* react-is.production.min.js
|
|
157
|
-
*
|
|
158
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the MIT license found in the
|
|
161
|
-
* LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/var RP;function Uue(){if(RP)return mn;RP=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function D(R){if(typeof R=="object"&&R!==null){var k=R.$$typeof;switch(k){case t:switch(R=R.type,R){case l:case d:case r:case o:case i:case m:return R;default:switch(R=R&&R.$$typeof,R){case u:case h:case $:case b:case s:return R;default:return k}}case n:return k}}}function O(R){return D(R)===d}return mn.AsyncMode=l,mn.ConcurrentMode=d,mn.ContextConsumer=u,mn.ContextProvider=s,mn.Element=t,mn.ForwardRef=h,mn.Fragment=r,mn.Lazy=$,mn.Memo=b,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=m,mn.isAsyncMode=function(R){return O(R)||D(R)===l},mn.isConcurrentMode=O,mn.isContextConsumer=function(R){return D(R)===u},mn.isContextProvider=function(R){return D(R)===s},mn.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},mn.isForwardRef=function(R){return D(R)===h},mn.isFragment=function(R){return D(R)===r},mn.isLazy=function(R){return D(R)===$},mn.isMemo=function(R){return D(R)===b},mn.isPortal=function(R){return D(R)===n},mn.isProfiler=function(R){return D(R)===o},mn.isStrictMode=function(R){return D(R)===i},mn.isSuspense=function(R){return D(R)===m},mn.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===r||R===d||R===o||R===i||R===m||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===$||R.$$typeof===b||R.$$typeof===s||R.$$typeof===u||R.$$typeof===h||R.$$typeof===A||R.$$typeof===S||R.$$typeof===w||R.$$typeof===C)},mn.typeOf=D,mn}var gn={};/** @license React v16.13.1
|
|
163
|
-
* react-is.development.js
|
|
164
|
-
*
|
|
165
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the MIT license found in the
|
|
168
|
-
* LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/var MP;function zue(){return MP||(MP=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function D(Be){return typeof Be=="string"||typeof Be=="function"||Be===r||Be===d||Be===o||Be===i||Be===m||Be===g||typeof Be=="object"&&Be!==null&&(Be.$$typeof===$||Be.$$typeof===b||Be.$$typeof===s||Be.$$typeof===u||Be.$$typeof===h||Be.$$typeof===A||Be.$$typeof===S||Be.$$typeof===w||Be.$$typeof===C)}function O(Be){if(typeof Be=="object"&&Be!==null){var st=Be.$$typeof;switch(st){case t:var Dt=Be.type;switch(Dt){case l:case d:case r:case o:case i:case m:return Dt;default:var ln=Dt&&Dt.$$typeof;switch(ln){case u:case h:case $:case b:case s:return ln;default:return st}}case n:return st}}}var R=l,k=d,j=u,M=s,ue=t,ae=h,W=r,De=$,q=b,K=n,ne=o,U=i,N=m,I=!1;function de(Be){return I||(I=!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.")),se(Be)||O(Be)===l}function se(Be){return O(Be)===d}function ie(Be){return O(Be)===u}function Ae(Be){return O(Be)===s}function Pe(Be){return typeof Be=="object"&&Be!==null&&Be.$$typeof===t}function Ie(Be){return O(Be)===h}function Le(Be){return O(Be)===r}function Je(Be){return O(Be)===$}function Qe(Be){return O(Be)===b}function ye(Be){return O(Be)===n}function Ne(Be){return O(Be)===o}function He(Be){return O(Be)===i}function Ke(Be){return O(Be)===m}gn.AsyncMode=R,gn.ConcurrentMode=k,gn.ContextConsumer=j,gn.ContextProvider=M,gn.Element=ue,gn.ForwardRef=ae,gn.Fragment=W,gn.Lazy=De,gn.Memo=q,gn.Portal=K,gn.Profiler=ne,gn.StrictMode=U,gn.Suspense=N,gn.isAsyncMode=de,gn.isConcurrentMode=se,gn.isContextConsumer=ie,gn.isContextProvider=Ae,gn.isElement=Pe,gn.isForwardRef=Ie,gn.isFragment=Le,gn.isLazy=Je,gn.isMemo=Qe,gn.isPortal=ye,gn.isProfiler=Ne,gn.isStrictMode=He,gn.isSuspense=Ke,gn.isValidElementType=D,gn.typeOf=O}()),gn}var FP;function HI(){return FP||(FP=1,process.env.NODE_ENV==="production"?Xh.exports=Uue():Xh.exports=zue()),Xh.exports}/*
|
|
170
|
-
object-assign
|
|
171
|
-
(c) Sindre Sorhus
|
|
172
|
-
@license MIT
|
|
173
|
-
*/var I1,kP;function que(){if(kP)return I1;kP=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return I1=i()?Object.assign:function(o,s){for(var u,l=r(o),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(l[m]=u[m]);if(e){d=e(u);for(var g=0;g<d.length;g++)n.call(u,d[g])&&(l[d[g]]=u[d[g]])}}return l},I1}var L1,OP;function e$(){if(OP)return L1;OP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return L1=e,L1}var B1,IP;function GI(){return IP||(IP=1,B1=Function.call.bind(Object.prototype.hasOwnProperty)),B1}var V1,LP;function Wue(){if(LP)return V1;LP=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=e$(),n={},r=GI();e=function(o){var s="Warning: "+o;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(o,s,u,l,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var g=Error((l||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=o[h](s,h,l,u,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},V1=i,V1}var N1,BP;function Hue(){if(BP)return N1;BP=1;var e=HI(),t=que(),n=e$(),r=GI(),i=Wue(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return N1=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(se){var ie=se&&(d&&se[d]||se[h]);if(typeof ie=="function")return ie}var g="<<anonymous>>",b={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:w(),arrayOf:D,element:O(),elementType:R(),instanceOf:k,node:ae(),objectOf:M,oneOf:j,oneOfType:ue,shape:De,exact:q};function $(se,ie){return se===ie?se!==0||1/se===1/ie:se!==se&&ie!==ie}function C(se,ie){this.message=se,this.data=ie&&typeof ie=="object"?ie:{},this.stack=""}C.prototype=Error.prototype;function A(se){if(process.env.NODE_ENV!=="production")var ie={},Ae=0;function Pe(Le,Je,Qe,ye,Ne,He,Ke){if(ye=ye||g,He=He||Qe,Ke!==n){if(l){var Be=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 Be.name="Invariant Violation",Be}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=ye+":"+Qe;!ie[st]&&Ae<3&&(o("You are manually calling a React.PropTypes validation function for the `"+He+"` prop on `"+ye+"`. 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."),ie[st]=!0,Ae++)}}return Je[Qe]==null?Le?Je[Qe]===null?new C("The "+Ne+" `"+He+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new C("The "+Ne+" `"+He+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:se(Je,Qe,ye,Ne,He)}var Ie=Pe.bind(null,!1);return Ie.isRequired=Pe.bind(null,!0),Ie}function S(se){function ie(Ae,Pe,Ie,Le,Je,Qe){var ye=Ae[Pe],Ne=U(ye);if(Ne!==se){var He=N(ye);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+He+"` supplied to `"+Ie+"`, expected ")+("`"+se+"`."),{expectedType:se})}return null}return A(ie)}function w(){return A(s)}function D(se){function ie(Ae,Pe,Ie,Le,Je){if(typeof se!="function")return new C("Property `"+Je+"` of component `"+Ie+"` has invalid PropType notation inside arrayOf.");var Qe=Ae[Pe];if(!Array.isArray(Qe)){var ye=U(Qe);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected an array."))}for(var Ne=0;Ne<Qe.length;Ne++){var He=se(Qe,Ne,Ie,Le,Je+"["+Ne+"]",n);if(He instanceof Error)return He}return null}return A(ie)}function O(){function se(ie,Ae,Pe,Ie,Le){var Je=ie[Ae];if(!u(Je)){var Qe=U(Je);return new C("Invalid "+Ie+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return A(se)}function R(){function se(ie,Ae,Pe,Ie,Le){var Je=ie[Ae];if(!e.isValidElementType(Je)){var Qe=U(Je);return new C("Invalid "+Ie+" `"+Le+"` of type "+("`"+Qe+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return A(se)}function k(se){function ie(Ae,Pe,Ie,Le,Je){if(!(Ae[Pe]instanceof se)){var Qe=se.name||g,ye=de(Ae[Pe]);return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected ")+("instance of `"+Qe+"`."))}return null}return A(ie)}function j(se){if(!Array.isArray(se))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function ie(Ae,Pe,Ie,Le,Je){for(var Qe=Ae[Pe],ye=0;ye<se.length;ye++)if($(Qe,se[ye]))return null;var Ne=JSON.stringify(se,function(Ke,Be){var st=N(Be);return st==="symbol"?String(Be):Be});return new C("Invalid "+Le+" `"+Je+"` of value `"+String(Qe)+"` "+("supplied to `"+Ie+"`, expected one of "+Ne+"."))}return A(ie)}function M(se){function ie(Ae,Pe,Ie,Le,Je){if(typeof se!="function")return new C("Property `"+Je+"` of component `"+Ie+"` has invalid PropType notation inside objectOf.");var Qe=Ae[Pe],ye=U(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type "+("`"+ye+"` supplied to `"+Ie+"`, expected an object."));for(var Ne in Qe)if(r(Qe,Ne)){var He=se(Qe,Ne,Ie,Le,Je+"."+Ne,n);if(He instanceof Error)return He}return null}return A(ie)}function ue(se){if(!Array.isArray(se))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var ie=0;ie<se.length;ie++){var Ae=se[ie];if(typeof Ae!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(Ae)+" at index "+ie+"."),s}function Pe(Ie,Le,Je,Qe,ye){for(var Ne=[],He=0;He<se.length;He++){var Ke=se[He],Be=Ke(Ie,Le,Je,Qe,ye,n);if(Be==null)return null;Be.data&&r(Be.data,"expectedType")&&Ne.push(Be.data.expectedType)}var st=Ne.length>0?", expected one of type ["+Ne.join(", ")+"]":"";return new C("Invalid "+Qe+" `"+ye+"` supplied to "+("`"+Je+"`"+st+"."))}return A(Pe)}function ae(){function se(ie,Ae,Pe,Ie,Le){return K(ie[Ae])?null:new C("Invalid "+Ie+" `"+Le+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return A(se)}function W(se,ie,Ae,Pe,Ie){return new C((se||"React class")+": "+ie+" type `"+Ae+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ie+"`.")}function De(se){function ie(Ae,Pe,Ie,Le,Je){var Qe=Ae[Pe],ye=U(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type `"+ye+"` "+("supplied to `"+Ie+"`, expected `object`."));for(var Ne in se){var He=se[Ne];if(typeof He!="function")return W(Ie,Le,Je,Ne,N(He));var Ke=He(Qe,Ne,Ie,Le,Je+"."+Ne,n);if(Ke)return Ke}return null}return A(ie)}function q(se){function ie(Ae,Pe,Ie,Le,Je){var Qe=Ae[Pe],ye=U(Qe);if(ye!=="object")return new C("Invalid "+Le+" `"+Je+"` of type `"+ye+"` "+("supplied to `"+Ie+"`, expected `object`."));var Ne=t({},Ae[Pe],se);for(var He in Ne){var Ke=se[He];if(r(se,He)&&typeof Ke!="function")return W(Ie,Le,Je,He,N(Ke));if(!Ke)return new C("Invalid "+Le+" `"+Je+"` key `"+He+"` supplied to `"+Ie+"`.\nBad object: "+JSON.stringify(Ae[Pe],null," ")+`
|
|
174
|
-
Valid keys: `+JSON.stringify(Object.keys(se),null," "));var Be=Ke(Qe,He,Ie,Le,Je+"."+He,n);if(Be)return Be}return null}return A(ie)}function K(se){switch(typeof se){case"number":case"string":case"undefined":return!0;case"boolean":return!se;case"object":if(Array.isArray(se))return se.every(K);if(se===null||u(se))return!0;var ie=m(se);if(ie){var Ae=ie.call(se),Pe;if(ie!==se.entries){for(;!(Pe=Ae.next()).done;)if(!K(Pe.value))return!1}else for(;!(Pe=Ae.next()).done;){var Ie=Pe.value;if(Ie&&!K(Ie[1]))return!1}}else return!1;return!0;default:return!1}}function ne(se,ie){return se==="symbol"?!0:ie?ie["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ie instanceof Symbol:!1}function U(se){var ie=typeof se;return Array.isArray(se)?"array":se instanceof RegExp?"object":ne(ie,se)?"symbol":ie}function N(se){if(typeof se>"u"||se===null)return""+se;var ie=U(se);if(ie==="object"){if(se instanceof Date)return"date";if(se instanceof RegExp)return"regexp"}return ie}function I(se){var ie=N(se);switch(ie){case"array":case"object":return"an "+ie;case"boolean":case"date":case"regexp":return"a "+ie;default:return ie}}function de(se){return!se.constructor||!se.constructor.name?g:se.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},N1}var j1,VP;function Gue(){if(VP)return j1;VP=1;var e=e$();function t(){}function n(){}return n.resetWarningCache=t,j1=function(){function r(s,u,l,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},j1}var NP;function Yue(){if(NP)return Zh.exports;if(NP=1,process.env.NODE_ENV!=="production"){var e=HI(),t=!0;Zh.exports=Hue()(e.isElement,t)}else Zh.exports=Gue()();return Zh.exports}var Zue=Yue();const ut=Bo(Zue);/**!
|
|
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 Wd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Xue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Wd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Jue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Que(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Xue))}}var ele=Wd&&window.Promise,tle=ele?Jue:Que;function YI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function cl(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function t$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Hd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=cl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Hd(t$(e))}function ZI(e){return e&&e.referenceNode?e.referenceNode:e}var jP=Wd&&!!(window.MSInputMethodContext&&document.documentMode),KP=Wd&&/MSIE 10/.test(navigator.userAgent);function Nc(e){return e===11?jP:e===10?KP:jP||KP}function xc(e){if(!e)return document.documentElement;for(var t=Nc(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&&cl(n,"position")==="static"?xc(n):n}function nle(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||xc(e.firstElementChild)===e}function S4(e){return e.parentNode!==null?S4(e.parentNode):e}function fm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s=o.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return nle(s)?s:xc(s);var u=S4(e);return u.host?fm(u.host,t):fm(e,S4(t).host)}function $c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function rle(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=$c(t,"top"),i=$c(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function UP(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 zP(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Nc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function XI(e){var t=e.body,n=e.documentElement,r=Nc(10)&&getComputedStyle(n);return{height:zP("Height",t,n,r),width:zP("Width",t,n,r)}}var ile=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ole=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}}(),wc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},uo=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 ru(e){return uo({},e,{right:e.left+e.width,bottom:e.top+e.height})}function E4(e){var t={};try{if(Nc(10)){t=e.getBoundingClientRect();var n=$c(e,"top"),r=$c(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?XI(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,d=e.offsetHeight-u;if(l||d){var h=cl(e);l-=UP(h,"x"),d-=UP(h,"y"),i.width-=l,i.height-=d}return ru(i)}function n$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Nc(10),i=t.nodeName==="HTML",o=E4(e),s=E4(t),u=Hd(e),l=cl(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var m=ru({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(m=rle(m,t)),m}function sle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=n$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:$c(n),u=t?0:$c(n,"left"),l={top:s-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return ru(l)}function JI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(cl(e,"position")==="fixed")return!0;var n=t$(e);return n?JI(n):!1}function QI(e){if(!e||!e.parentElement||Nc())return document.documentElement;for(var t=e.parentElement;t&&cl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function r$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},s=i?QI(e):fm(e,ZI(t));if(r==="viewport")o=sle(s,i);else{var u=void 0;r==="scrollParent"?(u=Hd(t$(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=n$(u,s,i);if(u.nodeName==="HTML"&&!JI(s)){var d=XI(e.ownerDocument),h=d.height,m=d.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=m+l.left}else o=l}n=n||0;var g=typeof n=="number";return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function ale(e){var t=e.width,n=e.height;return t*n}function e9(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=r$(n,r,o,i),u={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(u).map(function(g){return uo({key:g},u[g],{area:ale(u[g])})}).sort(function(g,b){return b.area-g.area}),d=l.filter(function(g){var b=g.width,$=g.height;return b>=n.clientWidth&&$>=n.clientHeight}),h=d.length>0?d[0].key:l[0].key,m=e.split("-")[1];return h+(m?"-"+m:"")}function t9(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?QI(t):fm(t,ZI(n));return n$(n,i,r)}function n9(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function dm(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 r9(e,t,n){n=n.split("-")[0];var r=n9(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,s=o?"top":"left",u=o?"left":"top",l=o?"height":"width",d=o?"width":"height";return i[s]=t[s]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[dm(u)],i}function Gd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ule(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Gd(e,function(i){return i[t]===n});return e.indexOf(r)}function i9(e,t,n){var r=n===void 0?e:e.slice(0,ule(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&YI(o)&&(t.offsets.popper=ru(t.offsets.popper),t.offsets.reference=ru(t.offsets.reference),t=o(t,i))}),t}function lle(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=t9(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=e9(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=r9(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=i9(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function o9(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function i$(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function cle(){return this.state.isDestroyed=!0,o9(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[i$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function s9(e){var t=e.ownerDocument;return t?t.defaultView:window}function a9(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||a9(Hd(o.parentNode),t,n,r),r.push(o)}function fle(e,t,n,r){n.updateBound=r,s9(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Hd(e);return a9(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function dle(){this.state.eventsEnabled||(this.state=fle(this.reference,this.options,this.state,this.scheduleUpdate))}function hle(e,t){return s9(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 ple(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=hle(this.reference,this.state))}function o$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function D4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&o$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function mle(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function gle(e){return D4(e.instance.popper,e.styles),mle(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&D4(e.arrowElement,e.arrowStyles),e}function vle(e,t,n,r,i){var o=t9(i,t,e,n.positionFixed),s=e9(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),D4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function yle(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,s=Math.floor,u=function(S){return S},l=o(i.width),d=o(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,$=t?h||m||g?o:s:u,C=t?o:u;return{left:$(b&&!m&&t?r.left-1:r.left),top:C(r.top),bottom:C(r.bottom),right:$(r.right)}}var ble=Wd&&/Firefox/i.test(navigator.userAgent);function xle(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Gd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=o!==void 0?o:t.gpuAcceleration,u=xc(e.instance.popper),l=E4(u),d={position:i.position},h=yle(e,window.devicePixelRatio<2||!ble),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=i$("transform"),$=void 0,C=void 0;if(m==="bottom"?u.nodeName==="HTML"?C=-u.clientHeight+h.bottom:C=-l.height+h.bottom:C=h.top,g==="right"?u.nodeName==="HTML"?$=-u.clientWidth+h.right:$=-l.width+h.right:$=h.left,s&&b)d[b]="translate3d("+$+"px, "+C+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var A=m==="bottom"?-1:1,S=g==="right"?-1:1;d[m]=C*A,d[g]=$*S,d.willChange=m+", "+g}var w={"x-placement":e.placement};return e.attributes=uo({},w,e.attributes),e.styles=uo({},d,e.styles),e.arrowStyles=uo({},e.offsets.arrow,e.arrowStyles),e}function u9(e,t,n){var r=Gd(e,function(u){var l=u.name;return l===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function $le(e,t){var n;if(!u9(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.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",$=n9(r)[d];u[b]-$<s[m]&&(e.offsets.popper[m]-=s[m]-(u[b]-$)),u[m]+$>s[b]&&(e.offsets.popper[m]+=u[m]+$-s[b]),e.offsets.popper=ru(e.offsets.popper);var C=u[m]+u[d]/2-$/2,A=cl(e.instance.popper),S=parseFloat(A["margin"+h]),w=parseFloat(A["border"+h+"Width"]),D=C-e.offsets.popper[m]-S-w;return D=Math.max(Math.min(s[d]-$,D),0),e.arrowElement=r,e.offsets.arrow=(n={},wc(n,m,Math.round(D)),wc(n,g,""),n),e}function wle(e){return e==="end"?"start":e==="start"?"end":e}var l9=["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"],K1=l9.slice(3);function qP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=K1.indexOf(e),r=K1.slice(n+1).concat(K1.slice(0,n));return t?r.reverse():r}var U1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Cle(e,t){if(o9(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=r$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=dm(r),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case U1.FLIP:s=[r,i];break;case U1.CLOCKWISE:s=qP(r);break;case U1.COUNTERCLOCKWISE:s=qP(r,!0);break;default:s=t.behavior}return s.forEach(function(u,l){if(r!==u||s.length===l+1)return e;r=e.placement.split("-")[0],i=dm(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),$=m(d.right)>m(n.right),C=m(d.top)<m(n.top),A=m(d.bottom)>m(n.bottom),S=r==="left"&&b||r==="right"&&$||r==="top"&&C||r==="bottom"&&A,w=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(w&&o==="start"&&b||w&&o==="end"&&$||!w&&o==="start"&&C||!w&&o==="end"&&A),O=!!t.flipVariationsByContent&&(w&&o==="start"&&$||w&&o==="end"&&b||!w&&o==="start"&&A||!w&&o==="end"&&C),R=D||O;(g||S||R)&&(e.flipped=!0,(g||S)&&(r=s[l+1]),R&&(o=wle(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=uo({},e.offsets.popper,r9(e.instance.popper,e.offsets.reference,e.placement)),e=i9(e.instance.modifiers,e,"flip"))}),e}function Sle(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,s=["top","bottom"].indexOf(i)!==-1,u=s?"right":"bottom",l=s?"left":"top",d=s?"width":"height";return n[u]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[d]),n[l]>o(r[u])&&(e.offsets.popper[l]=o(r[u])),e}function Ele(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],s=i[2];if(!o)return e;if(s.indexOf("%")===0){var u=void 0;switch(s){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=ru(u);return l[t]/100*o}else if(s==="vh"||s==="vw"){var d=void 0;return s==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function Dle(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(h){return h.trim()}),u=s.indexOf(Gd(s,function(h){return h.search(/,|\s/)!==-1}));s[u]&&s[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=u!==-1?[s.slice(0,u).concat([s[u].split(l)[0]]),[s[u].split(l)[1]].concat(s.slice(u+1))]:[s];return d=d.map(function(h,m){var g=(m===1?!o:o)?"height":"width",b=!1;return h.reduce(function($,C){return $[$.length-1]===""&&["+","-"].indexOf(C)!==-1?($[$.length-1]=C,b=!0,$):b?($[$.length-1]+=C,b=!1,$):$.concat(C)},[]).map(function($){return Ele($,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){o$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function Ale(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,s=i.reference,u=r.split("-")[0],l=void 0;return o$(+n)?l=[+n,0]:l=Dle(n,o,s,u),u==="left"?(o.top+=l[0],o.left-=l[1]):u==="right"?(o.top+=l[0],o.left+=l[1]):u==="top"?(o.left+=l[0],o.top-=l[1]):u==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function Tle(e,t){var n=t.boundariesElement||xc(e.instance.popper);e.instance.reference===n&&(n=xc(n));var r=i$("transform"),i=e.instance.popper.style,o=i.top,s=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=r$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=s,i[r]=u,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),wc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",C=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(C=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),wc({},$,C)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=uo({},h,m[b](g))}),e.offsets.popper=h,e}function Ple(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,s=i.popper,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",d=u?"width":"height",h={start:wc({},l,o[l]),end:wc({},l,o[l]+o[d]-s[d])};e.offsets.popper=uo({},s,h[r])}return e}function _le(e){if(!u9(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Gd(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 Rle(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,s=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=o[n]-(u?i[s?"width":"height"]:0),e.placement=dm(t),e.offsets.popper=ru(i),e}var Mle={shift:{order:100,enabled:!0,fn:Ple},offset:{order:200,enabled:!0,fn:Ale,offset:0},preventOverflow:{order:300,enabled:!0,fn:Tle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Sle},arrow:{order:500,enabled:!0,fn:$le,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Cle,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Rle},hide:{order:800,enabled:!0,fn:_le},computeStyle:{order:850,enabled:!0,fn:xle,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gle,onLoad:vle,gpuAcceleration:void 0}},Fle={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Mle},yd=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ile(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=tle(this.update.bind(this)),this.options=uo({},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(uo({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=uo({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return uo({name:s},r.options.modifiers[s])}).sort(function(s,u){return s.order-u.order}),this.modifiers.forEach(function(s){s.enabled&&YI(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ole(e,[{key:"update",value:function(){return lle.call(this)}},{key:"destroy",value:function(){return cle.call(this)}},{key:"enableEventListeners",value:function(){return dle.call(this)}},{key:"disableEventListeners",value:function(){return ple.call(this)}}]),e}();yd.Utils=(typeof window<"u"?window:global).PopperUtils;yd.placements=l9;yd.Defaults=Fle;var kle=["innerHTML","ownerDocument","style","attributes","nodeValue"],Ole=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Ile=["bigint","boolean","null","number","string","symbol","undefined"];function hg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Lle(t))return t}function Ko(e){return function(t){return hg(t)===e}}function Lle(e){return Ole.includes(e)}function jc(e){return function(t){return typeof t===e}}function Ble(e){return Ile.includes(e)}function qe(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(qe.array(e))return"Array";if(qe.plainFunction(e))return"Function";var t=hg(e);return t||"Object"}qe.array=Array.isArray;qe.arrayOf=function(e,t){return!qe.array(e)&&!qe.function(t)?!1:e.every(function(n){return t(n)})};qe.asyncGeneratorFunction=function(e){return hg(e)==="AsyncGeneratorFunction"};qe.asyncFunction=Ko("AsyncFunction");qe.bigint=jc("bigint");qe.boolean=function(e){return e===!0||e===!1};qe.date=Ko("Date");qe.defined=function(e){return!qe.undefined(e)};qe.domElement=function(e){return qe.object(e)&&!qe.plainObject(e)&&e.nodeType===1&&qe.string(e.nodeName)&&kle.every(function(t){return t in e})};qe.empty=function(e){return qe.string(e)&&e.length===0||qe.array(e)&&e.length===0||qe.object(e)&&!qe.map(e)&&!qe.set(e)&&Object.keys(e).length===0||qe.set(e)&&e.size===0||qe.map(e)&&e.size===0};qe.error=Ko("Error");qe.function=jc("function");qe.generator=function(e){return qe.iterable(e)&&qe.function(e.next)&&qe.function(e.throw)};qe.generatorFunction=Ko("GeneratorFunction");qe.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};qe.iterable=function(e){return!qe.nullOrUndefined(e)&&qe.function(e[Symbol.iterator])};qe.map=Ko("Map");qe.nan=function(e){return Number.isNaN(e)};qe.null=function(e){return e===null};qe.nullOrUndefined=function(e){return qe.null(e)||qe.undefined(e)};qe.number=function(e){return jc("number")(e)&&!qe.nan(e)};qe.numericString=function(e){return qe.string(e)&&e.length>0&&!Number.isNaN(Number(e))};qe.object=function(e){return!qe.nullOrUndefined(e)&&(qe.function(e)||typeof e=="object")};qe.oneOf=function(e,t){return qe.array(e)?e.indexOf(t)>-1:!1};qe.plainFunction=Ko("Function");qe.plainObject=function(e){if(hg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};qe.primitive=function(e){return qe.null(e)||Ble(typeof e)};qe.promise=Ko("Promise");qe.propertyOf=function(e,t,n){if(!qe.object(e)||!t)return!1;var r=e[t];return qe.function(n)?n(r):qe.defined(r)};qe.regexp=Ko("RegExp");qe.set=Ko("Set");qe.string=jc("string");qe.symbol=jc("symbol");qe.undefined=jc("undefined");qe.weakMap=Ko("WeakMap");qe.weakSet=Ko("WeakSet");function c9(e){return function(t){return typeof t===e}}var Vle=c9("function"),Nle=function(e){return e===null},WP=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},HP=function(e){return!jle(e)&&!Nle(e)&&(Vle(e)||typeof e=="object")},jle=c9("undefined"),A4=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 Kle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!xi(e[r],t[r]))return!1;return!0}function Ule(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 zle(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var s=A4(e.entries()),u=s.next();!u.done;u=s.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var d=A4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!xi(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function qle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=A4(e.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!t.has(s[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function xi(e,t){if(e===t)return!0;if(e&&HP(e)&&t&&HP(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Kle(e,t);if(e instanceof Map&&t instanceof Map)return zle(e,t);if(e instanceof Set&&t instanceof Set)return qle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Ule(e,t);if(WP(e)&&WP(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!xi(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Wle(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return qe.string(n)||qe.array(n)||qe.plainObject(n)})}function Hle(e,t,n){return f9(e,t)?[e,t].every(qe.array)?!e.some(JP(n))&&t.some(JP(n)):[e,t].every(qe.plainObject)?!Object.entries(e).some(XP(n))&&Object.entries(t).some(XP(n)):t===n:!1}function GP(e,t,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,u=ms(e,i),l=ms(t,i),d=[u,l].every(qe.number)&&(s==="increased"?u<l:u>l);return qe.undefined(r)||(d=d&&l===r),qe.undefined(o)||(d=d&&u===o),d}function YP(e,t,n){var r=n.key,i=n.type,o=n.value,s=ms(e,r),u=ms(t,r),l=i==="added"?s:u,d=i==="added"?u:s;if(!qe.nullOrUndefined(o)){if(qe.defined(l)){if(qe.array(l)||qe.plainObject(l))return Hle(l,d,o)}else return xi(d,o);return!1}return[s,u].every(qe.array)?!d.every(s$(l)):[s,u].every(qe.plainObject)?Gle(Object.keys(l),Object.keys(d)):![s,u].every(function(h){return qe.primitive(h)&&qe.defined(h)})&&(i==="added"?!qe.defined(s)&&qe.defined(u):qe.defined(s)&&!qe.defined(u))}function ZP(e,t,n){var r=n===void 0?{}:n,i=r.key,o=ms(e,i),s=ms(t,i);if(!f9(o,s))throw new TypeError("Inputs have different types");if(!Wle(o,s))throw new TypeError("Inputs don't have length");return[o,s].every(qe.plainObject)&&(o=Object.keys(o),s=Object.keys(s)),[o,s]}function XP(e){return function(t){var n=t[0],r=t[1];return qe.array(e)?xi(e,r)||e.some(function(i){return xi(i,r)||qe.array(r)&&s$(r)(i)}):qe.plainObject(e)&&e[n]?!!e[n]&&xi(e[n],r):xi(e,r)}}function Gle(e,t){return t.some(function(n){return!e.includes(n)})}function JP(e){return function(t){return qe.array(e)?e.some(function(n){return xi(n,t)||qe.array(t)&&s$(t)(n)}):xi(e,t)}}function bf(e,t){return qe.array(e)?e.some(function(n){return xi(n,t)}):xi(e,t)}function s$(e){return function(t){return e.some(function(n){return xi(n,t)})}}function f9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(qe.array)||e.every(qe.number)||e.every(qe.plainObject)||e.every(qe.string)}function ms(e,t){if(qe.plainObject(e)||qe.array(e)){if(qe.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return qe.number(t)?e[t]:e}return e}function Yle(e,t){if([e,t].some(qe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return qe.plainObject(m)||qe.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 $=ms(e,m),C=ms(t,m),A=qe.defined(g),S=qe.defined(b);if(A||S){var w=S?bf(b,$):!bf(g,$),D=bf(g,C);return w&&D}return[$,C].every(qe.array)||[$,C].every(qe.plainObject)?!xi($,C):$!==C}catch{return!1}},i=function(m,g,b){if(!qe.defined(m))return!1;try{var $=ms(e,m),C=ms(t,m),A=qe.defined(b);return bf(g,$)&&(A?bf(b,C):!A)}catch{return!1}},o=function(m,g){return qe.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},s=function(m,g,b){if(!qe.defined(m))return!1;try{return GP(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},u=function(m){try{var g=ZP(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=ZP(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},d=function(m,g,b){if(!qe.defined(m))return!1;try{return GP(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:o,decreased:s,emptied:u,filled:l,increased:d,removed:h}}function QP(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 Vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zle(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,h9(r.key),r)}}function Zd(e,t,n){return t&&Zle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qr(e,t,n){return t=h9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xd(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&&T4(e,t)}function hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hm(e)}function T4(e,t){return T4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T4(e,t)}function Xle(){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 Jle(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function d9(e,t){if(e==null)return{};var n=Jle(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qle(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 Xs(e)}function Jd(e){var t=Xle();return function(){var r=hm(e),i;if(t){var o=hm(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Qle(this,i)}}function ece(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 h9(e){var t=ece(e,"string");return typeof t=="symbol"?t:String(t)}var tce={flip:{padding:20},preventOverflow:{padding:10}},nce="The typeValidator argument must be a function with the signature function(props, propName, componentName).",rce="The error message is optional, but must be a string if provided.";function ice(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function oce(e,t){return Object.hasOwnProperty.call(e,t)}function sce(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function ace(e,t){if(typeof e!="function")throw new TypeError(nce);if(t)throw new TypeError(rce)}function e2(e,t,n){return ace(e,n),function(r,i,o){for(var s=arguments.length,u=new Array(s>3?s-3:0),l=3;l<s;l++)u[l-3]=arguments[l];return ice(t,r,i,o)?oce(r,i)?e.apply(void 0,[r,i,o].concat(u)):sce(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var un={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},xf=Ya.createPortal!==void 0;function as(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function z1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Jh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,s=o===void 0?!1:o,u=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){qe.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function uce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function lce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function cce(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),lce(e,t,i)},uce(e,t,i,r)}function t2(){}var p9=function(e){Xd(n,e);var t=Jd(n);function n(){return Yd(this,n),t.apply(this,arguments)}return Zd(n,[{key:"componentDidMount",value:function(){as()&&(this.node||this.appendNode(),xf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){as()&&(xf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!as()||!this.node||(xf||Ya.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!as())return null;var i=this.props,o=i.children,s=i.setRef;if(this.node||this.appendNode(),xf)return Ya.createPortal(o,this.node);var u=Ya.unstable_renderSubtreeIntoContainer(this,o.length>1?T.createElement("div",null,o):o[0],this.node);return s(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,s=i.placement,u=i.target;return o?this.renderPortal():u||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return xf?this.renderReact16():null}}]),n}(T.Component);qr(p9,"propTypes",{children:ut.oneOfType([ut.element,ut.array]),hasChildren:ut.bool,id:ut.oneOfType([ut.string,ut.number]),placement:ut.string,setRef:ut.func.isRequired,target:ut.oneOfType([ut.object,ut.string]),zIndex:ut.number});var m9=function(e){Xd(n,e);var t=Jd(n);function n(){return Yd(this,n),t.apply(this,arguments)}return Zd(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,s=i.styles,u=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,s=i.setArrowRef,u=i.styles,l=u.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,C={display:h,position:b},A,S=$,w=m;return o.startsWith("top")?(A="0,0 ".concat(S/2,",").concat(w," ").concat(S,",0"),C.bottom=0,C.marginLeft=g,C.marginRight=g):o.startsWith("bottom")?(A="".concat(S,",").concat(w," ").concat(S/2,",0 0,").concat(w),C.top=0,C.marginLeft=g,C.marginRight=g):o.startsWith("left")?(w=$,S=m,A="0,0 ".concat(S,",").concat(w/2," 0,").concat(w),C.right=0,C.marginTop=g,C.marginBottom=g):o.startsWith("right")&&(w=$,S=m,A="".concat(S,",").concat(w," ").concat(S,",0 0,").concat(w/2),C.left=0,C.marginTop=g,C.marginBottom=g),T.createElement("div",{className:"__floater__arrow",style:this.parentStyle},T.createElement("span",{ref:s,style:C},T.createElement("svg",{width:S,height:w,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},T.createElement("polygon",{points:A,fill:d}))))}}]),n}(T.Component);qr(m9,"propTypes",{placement:ut.string.isRequired,setArrowRef:ut.func.isRequired,styles:ut.object.isRequired});var fce=["color","height","width"];function g9(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,s=d9(n,fce);return T.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},T.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},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}))))}g9.propTypes={handleClick:ut.func.isRequired,styles:ut.object.isRequired};function v9(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,s=e.showCloseButton,u=e.title,l=e.styles,d={content:T.isValidElement(t)?t:T.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(d.title=T.isValidElement(u)?u:T.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(d.footer=T.isValidElement(n)?n:T.createElement("div",{className:"__floater__footer",style:l.footer},n)),(s||o)&&!qe.boolean(i)&&(d.close=T.createElement(g9,{styles:l.close,handleClick:r})),T.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}v9.propTypes={content:ut.node.isRequired,footer:ut.node,handleClick:ut.func.isRequired,open:ut.bool,positionWrapper:ut.bool.isRequired,showCloseButton:ut.bool.isRequired,styles:ut.object.isRequired,title:ut.node};var y9=function(e){Xd(n,e);var t=Jd(n);function n(){return Yd(this,n),t.apply(this,arguments)}return Zd(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,s=i.component,u=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,C=h.floaterOpening,A=h.floaterWithAnimation,S=h.floaterWithComponent,w={};return l||(u.startsWith("top")?w.padding="0 0 ".concat(m,"px"):u.startsWith("bottom")?w.padding="".concat(m,"px 0 0"):u.startsWith("left")?w.padding="0 ".concat(m,"px 0 0"):u.startsWith("right")&&(w.padding="0 0 0 ".concat(m,"px"))),[un.OPENING,un.OPEN].indexOf(d)!==-1&&(w=Vn(Vn({},w),C)),d===un.CLOSING&&(w=Vn(Vn({},w),$)),d===un.OPEN&&!o&&(w=Vn(Vn({},w),A)),u==="center"&&(w=Vn(Vn({},w),b)),s&&(w=Vn(Vn({},w),S)),Vn(Vn({},g),w)}},{key:"render",value:function(){var i=this.props,o=i.component,s=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return o?T.isValidElement(o)?h.content=T.cloneElement(o,{closeFn:s}):h.content=o({closeFn:s}):h.content=T.createElement(v9,this.props),d===un.OPEN&&m.push("__floater__open"),u||(h.arrow=T.createElement(m9,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);qr(y9,"propTypes",{component:ut.oneOfType([ut.func,ut.element]),content:ut.node,disableAnimation:ut.bool.isRequired,footer:ut.node,handleClick:ut.func.isRequired,hideArrow:ut.bool.isRequired,open:ut.bool,placement:ut.string.isRequired,positionWrapper:ut.bool.isRequired,setArrowRef:ut.func.isRequired,setFloaterRef:ut.func.isRequired,showCloseButton:ut.bool,status:ut.string.isRequired,styles:ut.object.isRequired,title:ut.node});var b9=function(e){Xd(n,e);var t=Jd(n);function n(){return Yd(this,n),t.apply(this,arguments)}return Zd(n,[{key:"render",value:function(){var i=this.props,o=i.children,s=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(o)if(T.Children.count(o)===1)if(!T.isValidElement(o))b=T.createElement("span",null,o);else{var $=qe.function(o.type)?"innerRef":"ref";b=T.cloneElement(T.Children.only(o),qr({},$,d))}else b=o;return b?T.createElement("span",{ref:h,style:Vn(Vn({},g),m),onClick:s,onMouseEnter:u,onMouseLeave:l},b):null}}]),n}(T.Component);qr(b9,"propTypes",{children:ut.node,handleClick:ut.func.isRequired,handleMouseEnter:ut.func.isRequired,handleMouseLeave:ut.func.isRequired,setChildRef:ut.func.isRequired,setWrapperRef:ut.func.isRequired,style:ut.object,styles:ut.object.isRequired});var dce={zIndex:100};function hce(e){var t=ko(dce,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 pce=["arrow","flip","offset"],mce=["position","top","right","bottom","left"],a$=function(e){Xd(n,e);var t=Jd(n);function n(r){var i;return Yd(this,n),i=t.call(this,r),qr(Xs(i),"setArrowRef",function(o){i.arrowRef=o}),qr(Xs(i),"setChildRef",function(o){i.childRef=o}),qr(Xs(i),"setFloaterRef",function(o){i.floaterRef=o}),qr(Xs(i),"setWrapperRef",function(o){i.wrapperRef=o}),qr(Xs(i),"handleTransitionEnd",function(){var o=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===un.OPENING?un.OPEN:un.IDLE},function(){var u=i.state.status;s(u===un.OPEN?"open":"close",i.props)})}),qr(Xs(i),"handleClick",function(){var o=i.props,s=o.event,u=o.open;if(!qe.boolean(u)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Jh({title:"click",data:[{event:s,status:h===un.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),qr(Xs(i),"handleMouseEnter",function(){var o=i.props,s=o.event,u=o.open;if(!(qe.boolean(u)||z1())){var l=i.state.status;i.event==="hover"&&l===un.IDLE&&(Jh({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),qr(Xs(i),"handleMouseLeave",function(){var o=i.props,s=o.event,u=o.eventDelay,l=o.open;if(!(qe.boolean(l)||z1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Jh({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),u?[un.OPENING,un.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(un.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:un.INIT,statusWrapper:un.INIT},i._isMounted=!1,i.hasMounted=!1,as()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Zd(n,[{key:"componentDidMount",value:function(){if(as()){var i=this.state.positionWrapper,o=this.props,s=o.children,u=o.open,l=o.target;this._isMounted=!0,Jh({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:qe.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&qe.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(as()){var s=this.props,u=s.autoOpen,l=s.open,d=s.target,h=s.wrapperOptions,m=Yle(o,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;qe.boolean(l)&&($=l?un.OPENING:un.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",un.IDLE)&&l?this.toggle(un.OPEN):g("status",un.INIT,un.IDLE)&&u&&this.toggle(un.OPEN),this.popper&&b("status",un.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",un.OPENING)||b("status",un.CLOSING))&&cce(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){as()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,u=this.props,l=u.disableFlip,d=u.getPopper,h=u.hideArrow,m=u.offset,g=u.placement,b=u.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:un.IDLE});else if(o&&this.floaterRef){var C=this.options,A=C.arrow,S=C.flip,w=C.offset,D=d9(C,pce);new yd(o,this.floaterRef,{placement:g,modifiers:Vn({arrow:Vn({enabled:!h,element:this.arrowRef},A),flip:Vn({enabled:!l,behavior:$},S),offset:Vn({offset:"0, ".concat(m,"px")},w)},D),onCreate:function(k){var j;if(i.popper=k,!((j=i.floaterRef)!==null&&j!==void 0&&j.isConnected)){i.setState({needsUpdate:!0});return}d(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:un.IDLE}),g!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var j=i.state.currentPlacement;i._isMounted&&k.placement!==j&&i.setState({currentPlacement:k.placement})}})}if(s){var O=qe.undefined(b.offset)?0:b.offset;new yd(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(O,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:un.IDLE}),d(k,"wrapper"),g!==k.placement&&setTimeout(function(){k.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,s=o===un.OPEN?un.CLOSING:un.OPENING;qe.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||as()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,s=i.event;return s==="hover"&&z1()&&!o?"click":s}},{key:"options",get:function(){var i=this.props.options;return ko(tce,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,s=o.status,u=o.positionWrapper,l=o.statusWrapper,d=this.props.styles,h=ko(hce(d),d);if(u){var m;[un.IDLE].indexOf(s)===-1||[un.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Vn(Vn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Vn(Vn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},u||(mce.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Vn(Vn({},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(!as())return null;var i=this.props.target;return i?qe.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,s=i.positionWrapper,u=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,C=l.id,A=l.open,S=l.showCloseButton,w=l.style,D=l.target,O=l.title,R=T.createElement(b9,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:w,styles:this.styles.wrapper},d),k={};return s?k.wrapperInPortal=R:k.wrapperAsChildren=R,T.createElement("span",null,T.createElement(p9,{hasChildren:!!d,id:C,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},T.createElement(y9,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||o==="center",open:A,placement:o,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:u,styles:this.styles,title:O}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n}(T.Component);qr(a$,"propTypes",{autoOpen:ut.bool,callback:ut.func,children:ut.node,component:e2(ut.oneOfType([ut.func,ut.element]),function(e){return!e.content}),content:e2(ut.node,function(e){return!e.component}),debug:ut.bool,disableAnimation:ut.bool,disableFlip:ut.bool,disableHoverToClick:ut.bool,event:ut.oneOf(["hover","click"]),eventDelay:ut.number,footer:ut.node,getPopper:ut.func,hideArrow:ut.bool,id:ut.oneOfType([ut.string,ut.number]),offset:ut.number,open:ut.bool,options:ut.object,placement:ut.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:ut.bool,style:ut.object,styles:ut.object,target:ut.oneOfType([ut.object,ut.string]),title:ut.node,wrapperOptions:ut.shape({offset:ut.number,placement:ut.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:ut.bool})});qr(a$,"defaultProps",{autoOpen:!1,callback:t2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:t2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var gce=Object.defineProperty,vce=(e,t,n)=>t in e?gce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>vce(e,typeof t!="symbol"?t+"":t,n),dn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},io={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"},Nt={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 za(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function x9(e){return e?e.getBoundingClientRect():null}function yce(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,s)=>o-s),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 na(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 bce(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function bd(e,t,n){if(!e)return ju();const r=WI(e);if(r){if(r.isSameNode(ju()))return n?document:ju();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",ju()}return r}function Qd(e,t){if(!e)return!1;const n=bd(e,t);return n?!n.isSameNode(ju()):!1}function xce(e){return e.offsetParent!==document.body}function Cc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=bce(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Cc(e.parentNode,t):!1}function $ce(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 wce(e,t,n){var r,i,o;const s=x9(e),u=bd(e,n),l=Qd(e,n),d=Cc(e);let h=0,m=(r=s==null?void 0:s.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(o=u==null?void 0:u.scrollTop)!=null?o:0;m=g-b}else u instanceof HTMLElement&&(h=u.scrollTop,!l&&!Cc(e)&&(m+=h),u.isSameNode(ju())||(m+=ju().scrollTop));return Math.floor(m-t)}function Cce(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=WI(e))!=null?r:{};let s=e.getBoundingClientRect().top+o;i&&(Qd(e,n)||xce(e))&&(s-=i);const u=Math.floor(s-t);return u<0?0:u}function ju(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Sce(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:s}=r,u=e>s?e-s:s-e;Oue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var $f=Ya.createPortal!==void 0;function $9(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 us(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=PP(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(T.isValidElement(e)&&!Object.values(e.props).length&&$p(e.type)==="function"){const s=e.type({});o=us(s,t)}else o=PP(n);return o}function Ece(e,t){return!yt.plainObject(e)||!yt.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Dce(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,s,u)=>o+o+s+s+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function n2(e){return e.disableBeacon||e.placement==="center"}function r2(){return!["chrome","safari","firefox","opera"].includes($9())}function iu({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{yt.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function Ace(e){return Object.keys(e)}function w9(e,...t){if(!yt.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 Tce(e,...t){if(!yt.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 P4(e,t,n){const r=o=>o.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(o=>typeof o=="string"?r(o):P4(o,t,n))});if($p(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return P4(o,t,n)}return e}function Pce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=e;return!o.disableScrolling&&(!t||i||n===Nt.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Cc(s))&&r!==n&&[Nt.BEACON,Nt.TOOLTIP].includes(n)}var _ce={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},C9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Rce={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:C9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Mce={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},Fce={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},wf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},i2={borderRadius:4,position:"absolute"};function kce(e,t){var n,r,i,o,s;const{floaterProps:u,styles:l}=e,d=ko((n=t.floaterProps)!=null?n:{},u??{}),h=ko(l??{},(r=t.styles)!=null?r:{}),m=ko(Fce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},C={beacon:{...wf,display:g?"none":"inline-block",height:m.beaconSize,position:"relative",width:m.beaconSize,zIndex:m.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:m.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Dce(m.primaryColor).join(",")}, 0.2)`,border:`2px solid ${m.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:m.backgroundColor,borderRadius:5,boxSizing:"border-box",color:m.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:b},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...wf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...wf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...wf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...wf,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...i2,backgroundColor:"gray"},spotlightLegacy:{...i2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?s:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ko(C,h)}function Oce(e){return Tce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function _l(e,t){var n,r,i,o,s,u;const l=t??{},d=ko.all([Rce,Oce(e),l],{isMergeableObject:yt.plainObject}),h=kce(e,d),m=Qd(na(d.target),d.disableScrollParentFix),g=ko.all([_ce,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ko((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(s=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?s:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ko.all([C9,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:g,styles:w9(h,"floaterStyles")}}function S9(e,t=!1){return yt.plainObject(e)?e.target?!0:(iu({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(iu({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function o2(e,t=!1){return yt.array(e)?e.every(n=>S9(n,t)):(iu({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var E9={action:"init",controlled:!1,index:0,lifecycle:Nt.INIT,origin:null,size:0,status:Jt.IDLE},s2=Ace(w9(E9,"controlled","size")),Ice=class{constructor(e){xt(this,"beaconPopper"),xt(this,"tooltipPopper"),xt(this,"data",new Map),xt(this,"listener"),xt(this,"store",new Map),xt(this,"addListener",i=>{this.listener=i}),xt(this,"setSteps",i=>{const{size:o,status:s}=this.getState(),u={size:i.length,status:s};this.data.set("steps",i),s===Jt.WAITING&&!o&&i.length&&(u.status=Jt.RUNNING),this.setState(u)}),xt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),xt(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),xt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),xt(this,"close",(i=null)=>{const{index:o,status:s}=this.getState();s===Jt.RUNNING&&this.setState({...this.getNextState({action:dn.CLOSE,index:o+1,origin:i})})}),xt(this,"go",i=>{const{controlled:o,status:s}=this.getState();if(o||s!==Jt.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:dn.GO,index:i}),status:u?s:Jt.FINISHED})}),xt(this,"info",()=>this.getState()),xt(this,"next",()=>{const{index:i,status:o}=this.getState();o===Jt.RUNNING&&this.setState(this.getNextState({action:dn.NEXT,index:i+1}))}),xt(this,"open",()=>{const{status:i}=this.getState();i===Jt.RUNNING&&this.setState({...this.getNextState({action:dn.UPDATE,lifecycle:Nt.TOOLTIP})})}),xt(this,"prev",()=>{const{index:i,status:o}=this.getState();o===Jt.RUNNING&&this.setState({...this.getNextState({action:dn.PREV,index:i-1})})}),xt(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:dn.RESET,index:0}),status:i?Jt.RUNNING:Jt.READY})}),xt(this,"skip",()=>{const{status:i}=this.getState();i===Jt.RUNNING&&this.setState({action:dn.SKIP,lifecycle:Nt.INIT,status:Jt.SKIPPED})}),xt(this,"start",i=>{const{index:o,size:s}=this.getState();this.setState({...this.getNextState({action:dn.START,index:yt.number(i)?i:o},!0),status:s?Jt.RUNNING:Jt.WAITING})}),xt(this,"stop",(i=!1)=>{const{index:o,status:s}=this.getState();[Jt.FINISHED,Jt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:dn.STOP,index:o+(i?1:0)}),status:Jt.PAUSED})}),xt(this,"update",i=>{var o,s;if(!Ece(i,s2))throw new Error(`State is not valid. Valid keys: ${s2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:dn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:dn.INIT,controlled:yt.number(n),continuous:t,index:yt.number(n)?n:0,lifecycle:Nt.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")||""}:{...E9}}getNextState(e,t=!1){var n,r,i,o,s;const{action:u,controlled:l,index:d,size:h,status:m}=this.getState(),g=yt.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:u,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Nt.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:h,status:b===h?Jt.FINISHED:(s=e.status)!=null?s: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:o,origin:s=null,size:u,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",u),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function Lce(e){return new Ice(e)}function Bce({styles:e}){return et.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Vce=Bce,Nce=class extends et.Component{constructor(){super(...arguments),xt(this,"isActive",!1),xt(this,"resizeTimeout"),xt(this,"scrollTimeout"),xt(this,"scrollParent"),xt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),xt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Nt.INIT,Nt.BEACON,Nt.COMPLETE,Nt.ERROR];return t||(e?r.includes(n):n!==Nt.TOOLTIP)}),xt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,m=l>=r&&l<=r+s&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),xt(this,"handleScroll",()=>{const{target:e}=this.props,t=na(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 Cc(t,"sticky")&&this.updateState({})}),xt(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=na(r);this.scrollParent=bd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Qd(i,!0)&&iu({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:s}=cm(e,this.props);if(s("target")||s("disableScrollParentFix")){const u=na(o);this.scrollParent=bd(u??document.body,n,!0)}s("lifecycle",Nt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===Nt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Nt.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 r2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:yce(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:s=0,styles:u,target:l}=this.props,d=na(l),h=x9(d),m=Cc(d),g=wce(d,s,i);return{...r2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+s*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:o?"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)+s*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let s=n!=="center"&&e&&et.createElement(Vce,{styles:o});if($9()==="safari"){const{mixBlendMode:u,zIndex:l,...d}=i;s=et.createElement("div",{style:{...d}},s),delete i.backgroundColor}return et.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},jce=class extends et.Component{constructor(){super(...arguments),xt(this,"node",null)}componentDidMount(){const{id:e}=this.props;za()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),$f||this.renderReact15())}componentDidUpdate(){za()&&($f||this.renderReact15())}componentWillUnmount(){!za()||!this.node||($f||Qh.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!za())return;const{children:e}=this.props;this.node&&Qh.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!za()||!$f)return null;const{children:e}=this.props;return this.node?Qh.createPortal(e,this.node):null}render(){return $f?this.renderReact16():null}},Kce=class{constructor(e,t){if(xt(this,"element"),xt(this,"options"),xt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),xt(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)}),xt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),xt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),xt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),xt(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"}),xt(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}),xt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),xt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),xt(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()}},Uce=class extends et.Component{constructor(e){if(super(e),xt(this,"beacon",null),xt(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"&&(yt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{yt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:s,step:u,styles:l}=this.props,d=us(i.open),h={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=et.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:u,...h})}else m=et.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},et.createElement("span",{style:l.beaconInner}),et.createElement("span",{style:l.beaconOuter}));return m}};function zce({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return T.createElement("button",{style:o,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 qce=zce;function Wce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:s,step:u,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:C}=u,A={};return A.primary=et.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...o}),b&&!i&&(A.skip=et.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=et.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),A.close=!m&&et.createElement(qce,{"data-test-id":"button-close",styles:$.buttonClose,...n}),et.createElement("div",{key:"JoyrideTooltip","aria-label":us(C??d),className:"react-joyride__tooltip",style:$.tooltip,...l},et.createElement("div",{style:$.tooltipContainer},C&&et.createElement("h1",{"aria-label":us(C),style:$.tooltipTitle},C),et.createElement("div",{style:$.tooltipContent},d)),!g&&et.createElement("div",{style:$.tooltipFooter},et.createElement("div",{style:$.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var Hce=Wce,Gce=class extends et.Component{constructor(){super(...arguments),xt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),xt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),xt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),xt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),xt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:u,last:l,next:d,nextLabelWithProgress:h,skip:m}=o.locale,g=us(s),b=us(u),$=us(l),C=us(d),A=us(m);let S=u,w=b;if(e){if(S=d,w=C,o.showProgress&&!n){const D=us(h,{step:t+1,steps:i});S=P4(h,t+1,i),w=D}n&&(S=l,w=$)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":w,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:w},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:s,tooltipComponent:u,...l}=o;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=u;d=et.createElement(m,{...h})}else d=et.createElement(Hce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Yce=class extends et.Component{constructor(){super(...arguments),xt(this,"scope",null),xt(this,"tooltip",null),xt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Nt.TOOLTIP})}),xt(this,"setTooltipRef",e=>{this.tooltip=e}),xt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||o.placement==="center")&&i===Nt.INIT&&s.update({action:r,lifecycle:Nt.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),xt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return et.createElement(Gce,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;iu({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:s,helpers:u,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:C}=cm(e,this.props),A=u.info(),S=i&&n!==dn.CLOSE&&(l>0||n===dn.PREV),w=$("action")||$("index")||$("lifecycle")||$("status"),D=C("lifecycle",[Nt.TOOLTIP,Nt.INIT],Nt.INIT),O=$("action",[dn.NEXT,dn.PREV,dn.SKIP,dn.CLOSE]),R=o&&l===e.index;if(O&&(D||R)&&r({...A,index:e.index,lifecycle:Nt.COMPLETE,step:e.step,type:io.STEP_AFTER}),g.placement==="center"&&m===Jt.RUNNING&&$("index")&&n!==dn.START&&d===Nt.INIT&&b.update({lifecycle:Nt.READY}),w){const k=na(g.target),j=!!k;j&&$ce(k)?(C("status",Jt.READY,Jt.RUNNING)||C("lifecycle",Nt.INIT,Nt.READY))&&r({...A,step:g,type:io.STEP_BEFORE}):(console.warn(j?"Target not visible":"Target not mounted",g),r({...A,type:io.TARGET_NOT_FOUND,step:g}),o||b.update({index:l+(n===dn.PREV?-1:1)}))}C("lifecycle",Nt.INIT,Nt.READY)&&b.update({lifecycle:n2(g)||S?Nt.TOOLTIP:Nt.BEACON}),$("index")&&iu({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),$("lifecycle",Nt.BEACON)&&r({...A,step:g,type:io.BEACON}),$("lifecycle",Nt.TOOLTIP)&&(r({...A,step:g,type:io.TOOLTIP}),h&&this.tooltip&&(this.scope=new Kce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),C("lifecycle",[Nt.TOOLTIP,Nt.INIT],Nt.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 n2(t)||e===Nt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:s}=this.props,u=na(s.target);return!S9(s)||!yt.domElement(u)?null:et.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},et.createElement(a$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},et.createElement(Uce,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:s,styles:s.styles})))}},D9=class extends et.Component{constructor(e){super(e),xt(this,"helpers"),xt(this,"store"),xt(this,"callback",s=>{const{callback:u}=this.props;yt.function(u)&&u(s)}),xt(this,"handleKeyboard",s=>{const{index:u,lifecycle:l}=this.state,{steps:d}=this.props,h=d[u];l===Nt.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),xt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:u}=this.props;_l(this.props,u[s]).disableOverlayClose||this.helpers.close("overlay")}),xt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Lce({...e,controlled:r&&yt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;iu({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!za())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;o2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!za())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:u,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:C,update:A}=this.store,{changed:S}=cm(e,this.props),{changed:w,changedFrom:D}=cm(t,this.state),O=_l(this.props,d[i]),R=!si(m,d),k=yt.number(l)&&S("stepIndex"),j=na(O.target);if(R&&(o2(d,s)?b(d):console.warn("Steps are not valid",d)),S("run")&&(u?$(l):C()),k){let ae=yt.number(h)&&h<l?dn.NEXT:dn.PREV;n===dn.STOP&&(ae=dn.START),[Jt.FINISHED,Jt.SKIPPED].includes(o)||A({action:n===dn.CLOSE?dn.CLOSE:ae,index:l,lifecycle:Nt.INIT})}!r&&o===Jt.RUNNING&&i===0&&!j&&(this.store.update({index:i+1}),this.callback({...this.state,type:io.TARGET_NOT_FOUND,step:O}));const M={...this.state,index:i,step:O};if(w("action",[dn.NEXT,dn.PREV,dn.SKIP,dn.CLOSE])&&w("status",Jt.PAUSED)){const ae=_l(this.props,d[t.index]);this.callback({...M,index:t.index,lifecycle:Nt.COMPLETE,step:ae,type:io.STEP_AFTER})}if(w("status",[Jt.FINISHED,Jt.SKIPPED])){const ae=_l(this.props,d[t.index]);r||this.callback({...M,index:t.index,lifecycle:Nt.COMPLETE,step:ae,type:io.STEP_AFTER}),this.callback({...M,type:io.TOUR_END,step:ae,index:t.index}),g()}else D("status",[Jt.IDLE,Jt.READY],Jt.RUNNING)?this.callback({...M,type:io.TOUR_START}):(w("status")||w("action",dn.RESET))&&this.callback({...M,type:io.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:s,scrollOffset:u=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=_l(this.props,d[t]),m=na(h.target),g=Pce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Jt.RUNNING&&g){const b=Qd(m,o),$=bd(m,o);let C=Math.floor(Cce(m,u,o))||0;iu({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===Nt.BEACON&&A){const{offsets:w,placement:D}=A;!["bottom"].includes(D)&&!b&&(C=Math.floor(w.popper.top-u))}else if(n===Nt.TOOLTIP&&S){const{flipped:w,offsets:D,placement:O}=S;["top","right","left"].includes(O)&&!w&&!b?C=Math.floor(D.popper.top-u):C-=h.spotlightPadding}C=C>=0?C:0,r===Jt.RUNNING&&Sce(C,{element:$,duration:s}).then(()=>{setTimeout(()=>{var w;(w=this.store.getPopper("tooltip"))==null||w.instance.update()},10)})}}render(){if(!za())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:s=!1,steps:u}=this.props,l=n===Jt.RUNNING,d={};if(l&&u[e]){const h=_l(this.props,u[e]);d.step=et.createElement(Yce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=et.createElement(jce,{id:"react-joyride-portal"},et.createElement(Nce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return et.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};xt(D9,"defaultProps",Mce);var Zce=D9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=JM;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=W_;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Pd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=Fq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=br;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=GH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=ZM;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Gr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=XW;exports.$293f70390ea03370$export$497855f14858aa34=KH;exports.$32489daedd52963e$export$1315d136e6f7581=eG;exports.$337b884510726a0d$export$c6fdb837b070b4ff=DH;exports.$36a0ac60f04457c5$export$136073280381448e=jW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=BF;exports.$40df3f8667284809$export$d55e7ee900f34e93=iG;exports.$46a4342aab3d8076$export$87e0539f600c24e5=BW;exports.$47b897dc8cdb026b$export$8d15029008292ae=tH;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=ZH;exports.$64244302c3013299$export$dd0bbc9b26defe37=yW;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=MW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=rG;exports.$93c38a5e28be6249$export$e50a61c1de9f574=SG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=LW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=oG;exports.$a916eb452884faea$export$b7a616150fdb9f44=RW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=fG;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=vG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=w5;exports.$bcca50147b47f54d$export$56b2c08e277f365=eH;exports.$c132121280ec012d$export$50eacbbf140a3141=kH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=IH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=WH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=EG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=CH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Hq;exports.$fae977aafc393c5c$export$6b862160d295c8e=Wq;exports.ACTIONS=dn;exports.AdvancedImage=yX;exports.Cloudinary=hJ;exports.Controller=UU;exports.EVENTS=io;exports.FormProvider=NU;exports.LazyMotion=Hie;exports.Lottie=Nie;exports.M=Mo;exports.R=ol;exports.ReorderGroup=Eie;exports.ReorderItem=Pie;exports.STATUS=Jt;exports._=LU;exports.autoUpdate=cU;exports.components_default=Zce;exports.dayjs=TG;exports.dayjs_minExports=VF;exports.domAnimation=vue;exports.dt=M2;exports.ee=UF;exports.flip=vU;exports.isNumber=FG;exports.lazyload=NZ;exports.localizedFormat=Fie;exports.lodashExports=Q2;exports.lt=O4;exports.m=Noe;exports.mt=DK;exports.nt=CK;exports.o=Iie;exports.offset=mU;exports.ot=SK;exports.placeholder=zZ;exports.prismExports=GQ;exports.q=v3;exports.shift=gU;exports.some=WQ;exports.useFieldArray=HU;exports.useFloating=_U;exports.useFloating$1=G2;exports.useFocus=RU;exports.useForm=nz;exports.useFormContext=Cd;exports.useHover=AU;exports.useInteractions=MU;exports.useRole=kU;exports.useWatch=l_;
|