@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
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const A=require("react"),Uo=require("react/jsx-runtime"),Vo=require("react-dom");function X2(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ye=X2(A),Gh=X2(Vo);var Mr=function(){return Mr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Mr.apply(this,arguments)};function Eu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function QN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ej=/^((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)-.*))$/,tj=QN(function(e){return ej.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cn="-ms-",Of="-moz-",un="-webkit-",J2="comm",dm="rule",w4="decl",nj="@import",Q2="@keyframes",rj="@layer",eP=Math.abs,C4=String.fromCharCode,j1=Object.assign;function ij(e,t){return pr(e,0)^45?(((t<<2^pr(e,0))<<2^pr(e,1))<<2^pr(e,2))<<2^pr(e,3):0}function tP(e){return e.trim()}function ko(e,t){return(e=t.exec(e))?e[0]:e}function It(e,t,n){return e.replace(t,n)}function Yh(e,t,n){return e.indexOf(t,n)}function pr(e,t){return e.charCodeAt(t)|0}function Hl(e,t,n){return e.slice(t,n)}function Us(e){return e.length}function nP(e){return e.length}function wf(e,t){return t.push(e),e}function sj(e,t){return e.map(t).join("")}function Rw(e,t){return e.filter(function(n){return!ko(n,t)})}var hm=1,Gl=1,rP=0,Yi=0,er=0,vc="";function pm(e,t,n,r,i,s,o,u){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:hm,column:Gl,length:o,return:"",siblings:u}}function da(e,t){return j1(pm("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function vl(e){for(;e.root;)e=da(e.root,{children:[e]});wf(e,e.siblings)}function oj(){return er}function aj(){return er=Yi>0?pr(vc,--Yi):0,Gl--,er===10&&(Gl=1,hm--),er}function bs(){return er=Yi<rP?pr(vc,Yi++):0,Gl++,er===10&&(Gl=1,hm++),er}function $u(){return pr(vc,Yi)}function Zh(){return Yi}function mm(e,t){return Hl(vc,e,t)}function K1(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 uj(e){return hm=Gl=1,rP=Us(vc=e),Yi=0,[]}function lj(e){return vc="",e}function uv(e){return tP(mm(Yi-1,U1(e===91?e+2:e===40?e+1:e)))}function cj(e){for(;(er=$u())&&er<33;)bs();return K1(e)>2||K1(er)>3?"":" "}function fj(e,t){for(;--t&&bs()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return mm(e,Zh()+(t<6&&$u()==32&&bs()==32))}function U1(e){for(;bs();)switch(er){case e:return Yi;case 34:case 39:e!==34&&e!==39&&U1(er);break;case 40:e===41&&U1(e);break;case 92:bs();break}return Yi}function dj(e,t){for(;bs()&&e+er!==57;)if(e+er===84&&$u()===47)break;return"/*"+mm(t,Yi-1)+"*"+C4(e===47?e:bs())}function hj(e){for(;!K1($u());)bs();return mm(e,Yi)}function pj(e){return lj(Xh("",null,null,null,[""],e=uj(e),0,[0],e))}function Xh(e,t,n,r,i,s,o,u,l){for(var d=0,h=0,m=o,g=0,b=0,$=0,w=1,D=1,S=1,C=0,T="",O=i,M=s,k=r,N=T;D;)switch($=C,C=bs()){case 40:if($!=108&&pr(N,m-1)==58){Yh(N+=It(uv(C),"&","&\f"),"&\f",eP(d?u[d-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:N+=uv(C);break;case 9:case 10:case 13:case 32:N+=cj($);break;case 92:N+=fj(Zh()-1,7);continue;case 47:switch($u()){case 42:case 47:wf(mj(dj(bs(),Zh()),t,n,l),l);break;default:N+="/"}break;case 123*w:u[d++]=Us(N)*S;case 125*w:case 59:case 0:switch(C){case 0:case 125:D=0;case 59+h:S==-1&&(N=It(N,/\f/g,"")),b>0&&Us(N)-m&&wf(b>32?kw(N+";",r,n,m-1,l):kw(It(N," ","")+";",r,n,m-2,l),l);break;case 59:N+=";";default:if(wf(k=Fw(N,t,n,d,h,i,u,T,O=[],M=[],m,s),s),C===123)if(h===0)Xh(N,t,k,k,O,s,m,u,M);else switch(g===99&&pr(N,3)===110?100:g){case 100:case 108:case 109:case 115:Xh(e,k,k,r&&wf(Fw(e,k,k,0,0,i,u,T,i,O=[],m,M),M),i,M,m,u,r?O:M);break;default:Xh(N,k,k,k,[""],M,0,u,M)}}d=h=b=0,w=S=1,T=N="",m=o;break;case 58:m=1+Us(N),b=$;default:if(w<1){if(C==123)--w;else if(C==125&&w++==0&&aj()==125)continue}switch(N+=C4(C),C*w){case 38:S=h>0?1:(N+="\f",-1);break;case 44:u[d++]=(Us(N)-1)*S,S=1;break;case 64:$u()===45&&(N+=uv(bs())),g=$u(),h=m=Us(T=N+=hj(Zh())),C++;break;case 45:$===45&&Us(N)==2&&(w=0)}}return s}function Fw(e,t,n,r,i,s,o,u,l,d,h,m){for(var g=i-1,b=i===0?s:[""],$=nP(b),w=0,D=0,S=0;w<r;++w)for(var C=0,T=Hl(e,g+1,g=eP(D=o[w])),O=e;C<$;++C)(O=tP(D>0?b[C]+" "+T:It(T,/&\f/g,b[C])))&&(l[S++]=O);return pm(e,t,n,i===0?dm:u,l,d,h,m)}function mj(e,t,n,r){return pm(e,t,n,J2,C4(oj()),Hl(e,2,-2),0,r)}function kw(e,t,n,r,i){return pm(e,t,n,w4,Hl(e,0,r),Hl(e,r+1,-1),r,i)}function iP(e,t,n){switch(ij(e,t)){case 5103:return un+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return un+e+e;case 4789:return Of+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return un+e+Of+e+Cn+e+e;case 5936:switch(pr(e,t+11)){case 114:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return un+e+Cn+It(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return un+e+Cn+e+e;case 6165:return un+e+Cn+"flex-"+e+e;case 5187:return un+e+It(e,/(\w+).+(:[^]+)/,un+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return un+e+Cn+"flex-item-"+It(e,/flex-|-self/g,"")+(ko(e,/flex-|baseline/)?"":Cn+"grid-row-"+It(e,/flex-|-self/g,""))+e;case 4675:return un+e+Cn+"flex-line-pack"+It(e,/align-content|flex-|-self/g,"")+e;case 5548:return un+e+Cn+It(e,"shrink","negative")+e;case 5292:return un+e+Cn+It(e,"basis","preferred-size")+e;case 6060:return un+"box-"+It(e,"-grow","")+un+e+Cn+It(e,"grow","positive")+e;case 4554:return un+It(e,/([^-])(transform)/g,"$1"+un+"$2")+e;case 6187:return It(It(It(e,/(zoom-|grab)/,un+"$1"),/(image-set)/,un+"$1"),e,"")+e;case 5495:case 3959:return It(e,/(image-set\([^]*)/,un+"$1$`$1");case 4968:return It(It(e,/(.+:)(flex-)?(.*)/,un+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+un+e+e;case 4200:if(!ko(e,/flex-|baseline/))return Cn+"grid-column-align"+Hl(e,t)+e;break;case 2592:case 3360:return Cn+It(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ko(r.props,/grid-\w+-end/)})?~Yh(e+(n=n[t].value),"span",0)?e:Cn+It(e,"-start","")+e+Cn+"grid-row-span:"+(~Yh(n,"span",0)?ko(n,/\d+/):+ko(n,/\d+/)-+ko(e,/\d+/))+";":Cn+It(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ko(r.props,/grid-\w+-start/)})?e:Cn+It(It(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return It(e,/(.+)-inline(.+)/,un+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Us(e)-1-t>6)switch(pr(e,t+1)){case 109:if(pr(e,t+4)!==45)break;case 102:return It(e,/(.+:)(.+)-([^]+)/,"$1"+un+"$2-$3$1"+Of+(pr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yh(e,"stretch",0)?iP(It(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return It(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,o,u,l,d){return Cn+i+":"+s+d+(o?Cn+i+"-span:"+(u?l:+l-+s)+d:"")+e});case 4949:if(pr(e,t+6)===121)return It(e,":",":"+un)+e;break;case 6444:switch(pr(e,pr(e,14)===45?18:11)){case 120:return It(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+un+(pr(e,14)===45?"inline-":"")+"box$3$1"+un+"$2$3$1"+Cn+"$2box$3")+e;case 100:return It(e,":",":"+Cn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return It(e,"scroll-","scroll-snap-")+e}return e}function $p(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function gj(e,t,n,r){switch(e.type){case rj:if(e.children.length)break;case nj:case w4:return e.return=e.return||e.value;case J2:return"";case Q2:return e.return=e.value+"{"+$p(e.children,r)+"}";case dm:if(!Us(e.value=e.props.join(",")))return""}return Us(n=$p(e.children,r))?e.return=e.value+"{"+n+"}":""}function vj(e){var t=nP(e);return function(n,r,i,s){for(var o="",u=0;u<t;u++)o+=e[u](n,r,i,s)||"";return o}}function yj(e){return function(t){t.root||(t=t.return)&&e(t)}}function bj(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case w4:e.return=iP(e.value,e.length,n);return;case Q2:return $p([da(e,{value:It(e.value,"@","@"+un)})],r);case dm:if(e.length)return sj(n=e.props,function(i){switch(ko(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vl(da(e,{props:[It(i,/:(read-\w+)/,":"+Of+"$1")]})),vl(da(e,{props:[i]})),j1(e,{props:Rw(n,r)});break;case"::placeholder":vl(da(e,{props:[It(i,/:(plac\w+)/,":"+un+"input-$1")]})),vl(da(e,{props:[It(i,/:(plac\w+)/,":"+Of+"$1")]})),vl(da(e,{props:[It(i,/:(plac\w+)/,Cn+"input-$1")]})),vl(da(e,{props:[i]})),j1(e,{props:Rw(n,r)});break}return""})}}var $j={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},Du=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",sP="active",oP="data-styled-version",gm="6.1.15",S4=`/*!sc*/
|
|
2
|
+
`,xp=typeof window<"u"&&"HTMLElement"in window,xj=!!(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"),Ow=/invalid hook call/i,Sh=new Set,wj=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 s=!0;console.error=function(o){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];Ow.test(o)?(s=!1,Sh.delete(r)):i.apply(void 0,Eu([o],u,!1))},A.useRef(),s&&!Sh.has(r)&&(console.warn(r),Sh.add(r))}catch(o){Ow.test(o.message)&&Sh.delete(r)}finally{console.error=i}}},vm=Object.freeze([]),Yl=Object.freeze({});function Cj(e,t,n){return n===void 0&&(n=Yl),e.theme!==n.theme&&e.theme||t||n.theme}var z1=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"]),Sj=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ej=/(^-|-$)/g;function Iw(e){return e.replace(Sj,"-").replace(Ej,"")}var Dj=/(a)(d)/gi,Eh=52,Lw=function(e){return String.fromCharCode(e+(e>25?39:97))};function q1(e){var t,n="";for(t=Math.abs(e);t>Eh;t=t/Eh|0)n=Lw(t%Eh)+n;return(Lw(t%Eh)+n).replace(Dj,"$1-$2")}var lv,aP=5381,lu=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},uP=function(e){return lu(aP,e)};function lP(e){return q1(uP(e)>>>0)}function cP(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function cv(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var fP=typeof Symbol=="function"&&Symbol.for,dP=fP?Symbol.for("react.memo"):60115,Aj=fP?Symbol.for("react.forward_ref"):60112,Tj={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Pj={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_j=((lv={})[Aj]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lv[dP]=hP,lv);function Bw(e){return("type"in(t=e)&&t.type.$$typeof)===dP?hP:"$$typeof"in e?_j[e.$$typeof]:Tj;var t}var Mj=Object.defineProperty,Rj=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,Fj=Object.getOwnPropertyDescriptor,kj=Object.getPrototypeOf,Nw=Object.prototype;function pP(e,t,n){if(typeof t!="string"){if(Nw){var r=kj(t);r&&r!==Nw&&pP(e,r,n)}var i=Rj(t);Vw&&(i=i.concat(Vw(t)));for(var s=Bw(e),o=Bw(t),u=0;u<i.length;++u){var l=i[u];if(!(l in Pj||n&&n[l]||o&&l in o||s&&l in s)){var d=Fj(t,l);try{Mj(e,l,d)}catch{}}}}return e}function Au(e){return typeof e=="function"}function E4(e){return typeof e=="object"&&"styledComponentId"in e}function du(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function W1(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Zl(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function H1(e,t,n){if(n===void 0&&(n=!1),!n&&!Zl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=H1(e[r],t[r]);else if(Zl(t))for(var r in t)e[r]=H1(e[r],t[r]);return e}function D4(e,t){Object.defineProperty(e,"toString",{value:t})}var Oj=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 Ij(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,s=e.length;i<s;i+=1)r.push(e[i]);return r.forEach(function(o){n=n.replace(/%[a-z]/,o)}),n}function Qs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Ij.apply(void 0,Eu([Oj[e]],t,!1)).trim())}var Lj=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;t>=s;)if((s<<=1)<0)throw Qs(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var o=i;o<s;o++)this.groupSizes[o]=0}for(var u=this.indexOfGroup(t+1),l=(o=0,n.length);o<l;o++)this.tag.insertRule(u,n[o])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),s=i+r,o=i;o<s;o++)n+="".concat(this.tag.getRule(o)).concat(S4);return n},e}(),Bj=1<<30,Jh=new Map,wp=new Map,Qh=1,Dh=function(e){if(Jh.has(e))return Jh.get(e);for(;wp.has(Qh);)Qh++;var t=Qh++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Bj))throw Qs(16,"".concat(t));return Jh.set(e,t),wp.set(t,e),t},Vj=function(e,t){Qh=t+1,Jh.set(e,t),wp.set(t,e)},Nj="style[".concat(Du,"][").concat(oP,'="').concat(gm,'"]'),jj=new RegExp("^".concat(Du,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Kj=function(e,t,n){for(var r,i=n.split(","),s=0,o=i.length;s<o;s++)(r=i[s])&&e.registerName(t,r)},Uj=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(S4),i=[],s=0,o=r.length;s<o;s++){var u=r[s].trim();if(u){var l=u.match(jj);if(l){var d=0|parseInt(l[1],10),h=l[2];d!==0&&(Vj(h,d),Kj(e,h,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},jw=function(e){for(var t=document.querySelectorAll(Nj),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(Du)!==sP&&(Uj(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function zj(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var mP=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(Du,"]")));return l[l.length-1]}(n),s=i!==void 0?i.nextSibling:null;r.setAttribute(Du,sP),r.setAttribute(oP,gm);var o=zj();return o&&r.setAttribute("nonce",o),n.insertBefore(r,s),r},qj=function(){function e(t){this.element=mP(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,s=r.length;i<s;i++){var o=r[i];if(o.ownerNode===n)return o}throw Qs(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Wj=function(){function e(t){this.element=mP(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}(),Hj=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}(),Kw=xp,Gj={isServer:!xp,useCSSOMInjection:!xj},gP=function(){function e(t,n,r){t===void 0&&(t=Yl),n===void 0&&(n={});var i=this;this.options=Mr(Mr({},Gj),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&xp&&Kw&&(Kw=!1,jw(this)),D4(this,function(){return function(s){for(var o=s.getTag(),u=o.length,l="",d=function(m){var g=function(S){return wp.get(S)}(m);if(g===void 0)return"continue";var b=s.names.get(g),$=o.getGroup(m);if(b===void 0||!b.size||$.length===0)return"continue";var w="".concat(Du,".g").concat(m,'[id="').concat(g,'"]'),D="";b!==void 0&&b.forEach(function(S){S.length>0&&(D+="".concat(S,","))}),l+="".concat($).concat(w,'{content:"').concat(D,'"}').concat(S4)},h=0;h<u;h++)d(h);return l}(i)})}return e.registerId=function(t){return Dh(t)},e.prototype.rehydrate=function(){!this.server&&xp&&jw(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Mr(Mr({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new Hj(i):r?new qj(i):new Wj(i)}(this.options),new Lj(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(Dh(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(Dh(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dh(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Yj=/&/g,Zj=/^\s*\/\/.*$/gm;function vP(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=vP(n.children,t)),n})}function Xj(e){var t,n,r,i=Yl,s=i.options,o=s===void 0?Yl:s,u=i.plugins,l=u===void 0?vm: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===dm&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Yj,n).replace(r,d))}),o.prefix&&h.push(bj),h.push(gj);var m=function(g,b,$,w){b===void 0&&(b=""),$===void 0&&($=""),w===void 0&&(w="&"),t=w,n=b,r=new RegExp("\\".concat(n,"\\b"),"g");var D=g.replace(Zj,""),S=pj($||b?"".concat($," ").concat(b," { ").concat(D," }"):D);o.namespace&&(S=vP(S,o.namespace));var C=[];return $p(S,vj(h.concat(yj(function(T){return C.push(T)})))),C};return m.hash=l.length?l.reduce(function(g,b){return b.name||Qs(15),lu(g,b.name)},aP).toString():"",m}var Jj=new gP,G1=Xj(),yP=A.createContext({shouldForwardProp:void 0,styleSheet:Jj,stylis:G1});yP.Consumer;A.createContext(void 0);function Uw(){return A.useContext(yP)}var Y1=function(){function e(t,n){var r=this;this.inject=function(i,s){s===void 0&&(s=G1);var o=r.name+s.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,s(r.rules,o,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,D4(this,function(){throw Qs(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=G1),this.name+t.hash},e}(),Qj=function(e){return e>="A"&&e<="Z"};function zw(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Qj(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bP=function(e){return e==null||e===!1||e===""},$P=function(e){var t,n,r=[];for(var i in e){var s=e[i];e.hasOwnProperty(i)&&!bP(s)&&(Array.isArray(s)&&s.isCss||Au(s)?r.push("".concat(zw(i),":"),s,";"):Zl(s)?r.push.apply(r,Eu(Eu(["".concat(i," {")],$P(s),!1),["}"],!1)):r.push("".concat(zw(i),": ").concat((t=i,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in $j||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function xu(e,t,n,r){if(bP(e))return[];if(E4(e))return[".".concat(e.styledComponentId)];if(Au(e)){if(!Au(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Y1||Zl(i)||i===null||console.error("".concat(cP(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.")),xu(i,t,n,r)}var s;return e instanceof Y1?n?(e.inject(n,r),[e.getName(r)]):[e]:Zl(e)?$P(e):Array.isArray(e)?Array.prototype.concat.apply(vm,e.map(function(o){return xu(o,t,n,r)})):[e.toString()]}function eK(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Au(n)&&!E4(n))return!1}return!0}var tK=uP(gm),nK=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&eK(t),this.componentId=n,this.baseHash=lu(tK,n),this.baseStyle=r,gP.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=du(i,this.staticRulesId);else{var s=W1(xu(this.rules,t,n,r)),o=q1(lu(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,o)){var u=r(s,".".concat(o),void 0,this.componentId);n.insertRules(this.componentId,o,u)}i=du(i,o),this.staticRulesId=o}else{for(var l=lu(this.baseHash,r.hash),d="",h=0;h<this.rules.length;h++){var m=this.rules[h];if(typeof m=="string")d+=m,process.env.NODE_ENV!=="production"&&(l=lu(l,m));else if(m){var g=W1(xu(m,t,n,r));l=lu(l,g+h),d+=g}}if(d){var b=q1(l>>>0);n.hasNameForId(this.componentId,b)||n.insertRules(this.componentId,b,r(d,".".concat(b),void 0,this.componentId)),i=du(i,b)}}return i},e}(),Hf=A.createContext(void 0);Hf.Consumer;function rK(){var e=A.useContext(Hf);if(!e)throw Qs(18);return e}function iK(e){var t=A.useContext(Hf),n=A.useMemo(function(){return function(r,i){if(!r)throw Qs(14);if(Au(r)){var s=r(i);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw Qs(7);return s}if(Array.isArray(r)||typeof r!="object")throw Qs(8);return i?Mr(Mr({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?A.createElement(Hf.Provider,{value:n},e.children):null}var fv={},qw=new Set;function sK(e,t,n){var r=E4(e),i=e,s=!cv(e),o=t.attrs,u=o===void 0?vm:o,l=t.componentId,d=l===void 0?function(O,M){var k=typeof O!="string"?"sc":Iw(O);fv[k]=(fv[k]||0)+1;var N="".concat(k,"-").concat(lP(gm+k+fv[k]));return M?"".concat(M,"-").concat(N):N}(t.displayName,t.parentComponentId):l,h=t.displayName,m=h===void 0?function(O){return cv(O)?"styled.".concat(O):"Styled(".concat(cP(O),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Iw(t.displayName),"-").concat(t.componentId):t.componentId||d,b=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,$=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var D=t.shouldForwardProp;$=function(O,M){return w(O,M)&&D(O,M)}}else $=w}var S=new nK(n,g,r?i.componentStyle:void 0);function C(O,M){return function(k,N,F){var ae=k.attrs,oe=k.componentStyle,W=k.defaultProps,Ce=k.foldedComponentIds,ne=k.styledComponentId,se=k.target,z=A.useContext(Hf),K=Uw(),j=k.shouldForwardProp||K.shouldForwardProp;process.env.NODE_ENV!=="production"&&A.useDebugValue(ne);var V=Cj(N,z,W)||Yl,ge=function(Ie,Ze,Ge){for(var De,Ue=Mr(Mr({},Ze),{className:void 0,theme:Ge}),Re=0;Re<Ie.length;Re+=1){var Ve=Au(De=Ie[Re])?De(Ue):De;for(var Le in Ve)Ue[Le]=Le==="className"?du(Ue[Le],Ve[Le]):Le==="style"?Mr(Mr({},Ue[Le]),Ve[Le]):Ve[Le]}return Ze.className&&(Ue.className=du(Ue.className,Ze.className)),Ue}(ae,N,V),U=ge.as||se,J={};for(var xe in ge)ge[xe]===void 0||xe[0]==="$"||xe==="as"||xe==="theme"&&ge.theme===V||(xe==="forwardedAs"?J.as=ge.forwardedAs:j&&!j(xe,U)||(J[xe]=ge[xe],j||process.env.NODE_ENV!=="development"||tj(xe)||qw.has(xe)||!z1.has(U)||(qw.add(xe),console.warn('styled-components: it looks like an unknown prop "'.concat(xe,'" 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(Ie,Ze){var Ge=Uw(),De=Ie.generateAndInjectStyles(Ze,Ge.styleSheet,Ge.stylis);return process.env.NODE_ENV!=="production"&&A.useDebugValue(De),De}(oe,ge);process.env.NODE_ENV!=="production"&&k.warnTooManyClasses&&k.warnTooManyClasses(Pe);var Oe=du(Ce,ne);return Pe&&(Oe+=" "+Pe),ge.className&&(Oe+=" "+ge.className),J[cv(U)&&!z1.has(U)?"class":"className"]=Oe,F&&(J.ref=F),A.createElement(U,J)}(T,O,M)}C.displayName=m;var T=A.forwardRef(C);return T.attrs=b,T.componentStyle=S,T.displayName=m,T.shouldForwardProp=$,T.foldedComponentIds=r?du(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=r?i.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(O){this._foldedDefaultProps=r?function(M){for(var k=[],N=1;N<arguments.length;N++)k[N-1]=arguments[N];for(var F=0,ae=k;F<ae.length;F++)H1(M,ae[F],!0);return M}({},i.defaultProps,O):O}}),process.env.NODE_ENV!=="production"&&(wj(m,g),T.warnTooManyClasses=function(O,M){var k={},N=!1;return function(F){if(!N&&(k[F]=!0,Object.keys(k).length>=200)){var ae=M?' with the id of "'.concat(M,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(O).concat(ae,`.
|
|
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 />`),N=!0,k={}}}}(m,g)),D4(T,function(){return".".concat(T.styledComponentId)}),s&&pP(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function Ww(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 Hw=function(e){return Object.assign(e,{isCss:!0})};function A4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Au(e)||Zl(e))return Hw(xu(Ww(vm,Eu([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?xu(r):Hw(xu(Ww(r,t)))}function Z1(e,t,n){if(n===void 0&&(n=Yl),!t)throw Qs(1,t);var r=function(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];return e(t,n,A4.apply(void 0,Eu([i],s,!1)))};return r.attrs=function(i){return Z1(e,t,Mr(Mr({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Z1(e,t,Mr(Mr({},n),i))},r}var xP=function(e){return Z1(sK,e)},wP=xP;z1.forEach(function(e){wP[e]=xP(e)});function oK(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=W1(A4.apply(void 0,Eu([e],t,!1))),i=lP(r);return new Y1(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 Ah="__sc-".concat(Du,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ah]||(window[Ah]=0),window[Ah]===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[Ah]+=1);function ym(){return typeof window<"u"}function yc(e){return CP(e)?(e.nodeName||"").toLowerCase():"#document"}function ai(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function so(e){var t;return(t=(CP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function CP(e){return ym()?e instanceof Node||e instanceof ai(e).Node:!1}function tr(e){return ym()?e instanceof Element||e instanceof ai(e).Element:!1}function Zi(e){return ym()?e instanceof HTMLElement||e instanceof ai(e).HTMLElement:!1}function X1(e){return!ym()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ai(e).ShadowRoot}function vd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$s(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function aK(e){return["table","td","th"].includes(yc(e))}function bm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function T4(e){const t=P4(),n=tr(e)?$s(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function uK(e){let t=Da(e);for(;Zi(t)&&!Xl(t);){if(T4(t))return t;if(bm(t))return null;t=Da(t)}return null}function P4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xl(e){return["html","body","#document"].includes(yc(e))}function $s(e){return ai(e).getComputedStyle(e)}function $m(e){return tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Da(e){if(yc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||X1(e)&&e.host||so(e);return X1(t)?t.host:t}function SP(e){const t=Da(e);return Xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&vd(t)?t:SP(t)}function Gf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=SP(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=ai(i);if(s){const u=J1(o);return t.concat(o,o.visualViewport||[],vd(i)?i:[],u&&n?Gf(u):[])}return t.concat(i,Gf(i,[],n))}function J1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gw(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 Q1(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&X1(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function EP(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function DP(){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 lK(e){return dK()?!1:!Yw()&&e.width===0&&e.height===0||Yw()&&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 cK(){return/apple/i.test(navigator.vendor)}function Yw(){const e=/android/i;return e.test(EP())||e.test(DP())}function fK(){return EP().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function dK(){return DP().includes("jsdom/")}function eb(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Cf(e){return(e==null?void 0:e.ownerDocument)||document}function hK(e){return"composedPath"in e?e.composedPath()[0]:e.target}const pK="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function mK(e){return Zi(e)&&e.matches(pK)}const Cp=Math.min,wu=Math.max,Sp=Math.round,Th=Math.floor,eo=e=>({x:e,y:e}),gK={left:"right",right:"left",bottom:"top",top:"bottom"},vK={start:"end",end:"start"};function Zw(e,t,n){return wu(e,Cp(t,n))}function xm(e,t){return typeof e=="function"?e(t):e}function Tu(e){return e.split("-")[0]}function wm(e){return e.split("-")[1]}function AP(e){return e==="x"?"y":"x"}function TP(e){return e==="y"?"height":"width"}function Jl(e){return["top","bottom"].includes(Tu(e))?"y":"x"}function PP(e){return AP(Jl(e))}function yK(e,t,n){n===void 0&&(n=!1);const r=wm(e),i=PP(e),s=TP(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=Ep(o)),[o,Ep(o)]}function bK(e){const t=Ep(e);return[tb(e),t,tb(t)]}function tb(e){return e.replace(/start|end/g,t=>vK[t])}function $K(e,t,n){const r=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?s:o;default:return[]}}function xK(e,t,n,r){const i=wm(e);let s=$K(Tu(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(tb)))),s}function Ep(e){return e.replace(/left|right|bottom|top/g,t=>gK[t])}function wK(e){return{top:0,right:0,bottom:0,left:0,...e}}function CK(e){return typeof e!="number"?wK(e):{top:e,right:e,bottom:e,left:e}}function Dp(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 Xw(e,t,n){let{reference:r,floating:i}=e;const s=Jl(t),o=PP(t),u=TP(o),l=Tu(t),d=s==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[u]/2-i[u]/2;let b;switch(l){case"top":b={x:h,y:r.y-i.height};break;case"bottom":b={x:h,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-i.width,y:m};break;default:b={x:r.x,y:r.y}}switch(wm(t)){case"start":b[o]-=g*(n&&d?-1:1);break;case"end":b[o]+=g*(n&&d?-1:1);break}return b}const SK=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,u=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Xw(d,r,l),g=r,b={},$=0;for(let w=0;w<u.length;w++){const{name:D,fn:S}=u[w],{x:C,y:T,data:O,reset:M}=await S({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:b,rects:d,platform:o,elements:{reference:e,floating:t}});h=C??h,m=T??m,b={...b,[D]:{...b[D],...O}},M&&$<=50&&($++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(d=M.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:h,y:m}=Xw(d,g,l)),w=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:b}};async function _P(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=xm(t,e),$=CK(b),D=u[g?m==="floating"?"reference":"floating":m],S=Dp(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(D)))==null||n?D:D.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:d,rootBoundary:h,strategy:l})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),O=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},M=Dp(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:T,strategy:l}):C);return{top:(S.top-M.top+$.top)/O.y,bottom:(M.bottom-S.bottom+$.bottom)/O.y,left:(S.left-M.left+$.left)/O.x,right:(M.right-S.right+$.right)/O.x}}const EK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:w=!0,...D}=xm(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=Tu(i),C=Jl(u),T=Tu(u)===u,O=await(l.isRTL==null?void 0:l.isRTL(d.floating)),M=g||(T||!w?[Ep(u)]:bK(u)),k=$!=="none";!g&&k&&M.push(...xK(u,w,$,O));const N=[u,...M],F=await _P(t,D),ae=[];let oe=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&ae.push(F[S]),m){const se=yK(i,o,O);ae.push(F[se[0]],F[se[1]])}if(oe=[...oe,{placement:i,overflows:ae}],!ae.every(se=>se<=0)){var W,Ce;const se=(((W=s.flip)==null?void 0:W.index)||0)+1,z=N[se];if(z)return{data:{index:se,overflows:oe},reset:{placement:z}};let K=(Ce=oe.filter(j=>j.overflows[0]<=0).sort((j,V)=>j.overflows[1]-V.overflows[1])[0])==null?void 0:Ce.placement;if(!K)switch(b){case"bestFit":{var ne;const j=(ne=oe.filter(V=>{if(k){const ge=Jl(V.placement);return ge===C||ge==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ge=>ge>0).reduce((ge,U)=>ge+U,0)]).sort((V,ge)=>V[1]-ge[1])[0])==null?void 0:ne[0];j&&(K=j);break}case"initialPlacement":K=u;break}if(i!==K)return{reset:{placement:K}}}return{}}}};async function DK(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Tu(n),u=wm(n),l=Jl(n)==="y",d=["left","top"].includes(o)?-1:1,h=s&&l?-1:1,m=xm(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 AK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:u}=t,l=await DK(t,e);return o===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},TK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:u={fn:D=>{let{x:S,y:C}=D;return{x:S,y:C}}},...l}=xm(e,t),d={x:n,y:r},h=await _P(t,l),m=Jl(Tu(i)),g=AP(m);let b=d[g],$=d[m];if(s){const D=g==="y"?"top":"left",S=g==="y"?"bottom":"right",C=b+h[D],T=b-h[S];b=Zw(C,b,T)}if(o){const D=m==="y"?"top":"left",S=m==="y"?"bottom":"right",C=$+h[D],T=$-h[S];$=Zw(C,$,T)}const w=u.fn({...t,[g]:b,[m]:$});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[m]:o}}}}}};function MP(e){const t=$s(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zi(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,u=Sp(n)!==s||Sp(r)!==o;return u&&(n=s,r=o),{width:n,height:r,$:u}}function _4(e){return tr(e)?e:e.contextElement}function Ll(e){const t=_4(e);if(!Zi(t))return eo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=MP(t);let o=(s?Sp(n.width):n.width)/r,u=(s?Sp(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!u||!Number.isFinite(u))&&(u=1),{x:o,y:u}}const PK=eo(0);function RP(e){const t=ai(e);return!P4()||!t.visualViewport?PK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _K(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ai(e)?!1:t}function Pu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=_4(e);let o=eo(1);t&&(r?tr(r)&&(o=Ll(r)):o=Ll(e));const u=_K(s,n,r)?RP(s):eo(0);let l=(i.left+u.x)/o.x,d=(i.top+u.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(s){const g=ai(s),b=r&&tr(r)?ai(r):r;let $=g,w=J1($);for(;w&&r&&b!==$;){const D=Ll(w),S=w.getBoundingClientRect(),C=$s(w),T=S.left+(w.clientLeft+parseFloat(C.paddingLeft))*D.x,O=S.top+(w.clientTop+parseFloat(C.paddingTop))*D.y;l*=D.x,d*=D.y,h*=D.x,m*=D.y,l+=T,d+=O,$=ai(w),w=J1($)}}return Dp({width:h,height:m,x:l,y:d})}function M4(e,t){const n=$m(e).scrollLeft;return t?t.left+n:Pu(so(e)).left+n}function FP(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:M4(e,r)),s=r.top+t.scrollTop;return{x:i,y:s}}function MK(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=so(r),u=t?bm(t.floating):!1;if(r===o||u&&s)return n;let l={scrollLeft:0,scrollTop:0},d=eo(1);const h=eo(0),m=Zi(r);if((m||!m&&!s)&&((yc(r)!=="body"||vd(o))&&(l=$m(r)),Zi(r))){const b=Pu(r);d=Ll(r),h.x=b.x+r.clientLeft,h.y=b.y+r.clientTop}const g=o&&!m&&!s?FP(o,l,!0):eo(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-l.scrollTop*d.y+h.y+g.y}}function RK(e){return Array.from(e.getClientRects())}function FK(e){const t=so(e),n=$m(e),r=e.ownerDocument.body,i=wu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=wu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+M4(e);const u=-n.scrollTop;return $s(r).direction==="rtl"&&(o+=wu(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:u}}function kK(e,t){const n=ai(e),r=so(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,u=0,l=0;if(i){s=i.width,o=i.height;const d=P4();(!d||d&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:u,y:l}}function OK(e,t){const n=Pu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=Zi(e)?Ll(e):eo(1),o=e.clientWidth*s.x,u=e.clientHeight*s.y,l=i*s.x,d=r*s.y;return{width:o,height:u,x:l,y:d}}function Jw(e,t,n){let r;if(t==="viewport")r=kK(e,n);else if(t==="document")r=FK(so(e));else if(tr(t))r=OK(t,n);else{const i=RP(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Dp(r)}function kP(e,t){const n=Da(e);return n===t||!tr(n)||Xl(n)?!1:$s(n).position==="fixed"||kP(n,t)}function IK(e,t){const n=t.get(e);if(n)return n;let r=Gf(e,[],!1).filter(u=>tr(u)&&yc(u)!=="body"),i=null;const s=$s(e).position==="fixed";let o=s?Da(e):e;for(;tr(o)&&!Xl(o);){const u=$s(o),l=T4(o);!l&&u.position==="fixed"&&(i=null),(s?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||vd(o)&&!l&&kP(e,o))?r=r.filter(h=>h!==o):i=u,o=Da(o)}return t.set(e,r),r}function LK(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?bm(t)?[]:IK(t,this._c):[].concat(n),r],u=o[0],l=o.reduce((d,h)=>{const m=Jw(t,h,i);return d.top=wu(m.top,d.top),d.right=Cp(m.right,d.right),d.bottom=Cp(m.bottom,d.bottom),d.left=wu(m.left,d.left),d},Jw(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function BK(e){const{width:t,height:n}=MP(e);return{width:t,height:n}}function VK(e,t,n){const r=Zi(t),i=so(t),s=n==="fixed",o=Pu(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const l=eo(0);if(r||!r&&!s)if((yc(t)!=="body"||vd(i))&&(u=$m(t)),r){const g=Pu(t,!0,s,t);l.x=g.x+t.clientLeft,l.y=g.y+t.clientTop}else i&&(l.x=M4(i));const d=i&&!r&&!s?FP(i,u):eo(0),h=o.left+u.scrollLeft-l.x-d.x,m=o.top+u.scrollTop-l.y-d.y;return{x:h,y:m,width:o.width,height:o.height}}function dv(e){return $s(e).position==="static"}function Qw(e,t){if(!Zi(e)||$s(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return so(e)===n&&(n=n.ownerDocument.body),n}function OP(e,t){const n=ai(e);if(bm(e))return n;if(!Zi(e)){let i=Da(e);for(;i&&!Xl(i);){if(tr(i)&&!dv(i))return i;i=Da(i)}return n}let r=Qw(e,t);for(;r&&aK(r)&&dv(r);)r=Qw(r,t);return r&&Xl(r)&&dv(r)&&!T4(r)?n:r||uK(e)||n}const NK=async function(e){const t=this.getOffsetParent||OP,n=this.getDimensions,r=await n(e.floating);return{reference:VK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jK(e){return $s(e).direction==="rtl"}const KK={convertOffsetParentRelativeRectToViewportRelativeRect:MK,getDocumentElement:so,getClippingRect:LK,getOffsetParent:OP,getElementRects:NK,getClientRects:RK,getDimensions:BK,getScale:Ll,isElement:tr,isRTL:jK};function IP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UK(e,t){let n=null,r;const i=so(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function o(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),s();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:b}=d;if(u||t(),!g||!b)return;const $=Th(m),w=Th(i.clientWidth-(h+g)),D=Th(i.clientHeight-(m+b)),S=Th(h),T={rootMargin:-$+"px "+-w+"px "+-D+"px "+-S+"px",threshold:wu(0,Cp(1,l))||1};let O=!0;function M(k){const N=k[0].intersectionRatio;if(N!==l){if(!O)return o();N?o(!1,N):r=setTimeout(()=>{o(!1,1e-7)},1e3)}N===1&&!IP(d,e.getBoundingClientRect())&&o(),O=!1}try{n=new IntersectionObserver(M,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,T)}n.observe(e)}return o(!0),s}function zK(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=_4(e),h=i||s?[...d?Gf(d):[],...Gf(t)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=d&&u?UK(d,n):null;let g=-1,b=null;o&&(b=new ResizeObserver(S=>{let[C]=S;C&&C.target===d&&b&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),n()}),d&&!l&&b.observe(d),b.observe(t));let $,w=l?Pu(e):null;l&&D();function D(){const S=Pu(e);w&&!IP(w,S)&&n(),w=S,$=requestAnimationFrame(D)}return n(),()=>{var S;h.forEach(C=>{i&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),m==null||m(),(S=b)==null||S.disconnect(),b=null,l&&cancelAnimationFrame($)}}const qK=AK,WK=TK,HK=EK,GK=(e,t,n)=>{const r=new Map,i={platform:KK,...n},s={...i.platform,_c:r};return SK(e,t,{...i,platform:s})};var ep=typeof document<"u"?A.useLayoutEffect:A.useEffect;function Ap(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(!Ap(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ap(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function LP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eC(e,t){const n=LP(e);return Math.round(t*n)/n}function hv(e){const t=Ye.useRef(e);return ep(()=>{t.current=e}),t}function BP(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:o}={},transform:u=!0,whileElementsMounted:l,open:d}=e,[h,m]=Ye.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,b]=Ye.useState(r);Ap(g,r)||b(r);const[$,w]=Ye.useState(null),[D,S]=Ye.useState(null),C=Ye.useCallback(V=>{V!==k.current&&(k.current=V,w(V))},[]),T=Ye.useCallback(V=>{V!==N.current&&(N.current=V,S(V))},[]),O=s||$,M=o||D,k=Ye.useRef(null),N=Ye.useRef(null),F=Ye.useRef(h),ae=l!=null,oe=hv(l),W=hv(i),Ce=hv(d),ne=Ye.useCallback(()=>{if(!k.current||!N.current)return;const V={placement:t,strategy:n,middleware:g};W.current&&(V.platform=W.current),GK(k.current,N.current,V).then(ge=>{const U={...ge,isPositioned:Ce.current!==!1};se.current&&!Ap(F.current,U)&&(F.current=U,Gh.flushSync(()=>{m(U)}))})},[g,t,n,W,Ce]);ep(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(V=>({...V,isPositioned:!1})))},[d]);const se=Ye.useRef(!1);ep(()=>(se.current=!0,()=>{se.current=!1}),[]),ep(()=>{if(O&&(k.current=O),M&&(N.current=M),O&&M){if(oe.current)return oe.current(O,M,ne);ne()}},[O,M,ne,oe,ae]);const z=Ye.useMemo(()=>({reference:k,floating:N,setReference:C,setFloating:T}),[C,T]),K=Ye.useMemo(()=>({reference:O,floating:M}),[O,M]),j=Ye.useMemo(()=>{const V={position:n,left:0,top:0};if(!K.floating)return V;const ge=eC(K.floating,h.x),U=eC(K.floating,h.y);return u?{...V,transform:"translate("+ge+"px, "+U+"px)",...LP(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:U}},[n,u,K.floating,h.x,h.y]);return Ye.useMemo(()=>({...h,update:ne,refs:z,elements:K,floatingStyles:j}),[h,ne,z,K,j])}const YK=(e,t)=>({...qK(e),options:[e,t]}),ZK=(e,t)=>({...WK(e),options:[e,t]}),XK=(e,t)=>({...HK(e),options:[e,t]}),VP={...Ye},JK=VP.useInsertionEffect,QK=JK||(e=>e());function tp(e){const t=Ye.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return QK(()=>{t.current=e}),Ye.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Ql=typeof document<"u"?A.useLayoutEffect:A.useEffect;let tC=!1,eU=0;const nC=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eU++;function tU(){const[e,t]=Ye.useState(()=>tC?nC():void 0);return Ql(()=>{e==null&&t(nC())},[]),Ye.useEffect(()=>{tC=!0},[]),e}const nU=VP.useId,NP=nU||tU;let nb;process.env.NODE_ENV!=="production"&&(nb=new Set);function rU(){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=nb)!=null&&e.has(i))){var s;(s=nb)==null||s.add(i),console.error(i)}}function iU(){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 sU=Ye.createContext(null),oU=Ye.createContext(null),R4=()=>{var e;return((e=Ye.useContext(sU))==null?void 0:e.id)||null},jP=()=>Ye.useContext(oU);function KP(e){return"data-floating-ui-"+e}function Li(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function pv(e){const t=A.useRef(e);return Ql(()=>{t.current=e}),t}const rC=KP("safe-polygon");function mv(e,t,n){return n&&!eb(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:s,elements:o}=e,{enabled:u=!0,delay:l=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,b=jP(),$=R4(),w=pv(d),D=pv(l),S=pv(n),C=Ye.useRef(),T=Ye.useRef(-1),O=Ye.useRef(),M=Ye.useRef(-1),k=Ye.useRef(!0),N=Ye.useRef(!1),F=Ye.useRef(()=>{}),ae=Ye.useRef(!1),oe=Ye.useCallback(()=>{var j;const V=(j=i.current.openEvent)==null?void 0:j.type;return(V==null?void 0:V.includes("mouse"))&&V!=="mousedown"},[i]);Ye.useEffect(()=>{if(!u)return;function j(V){let{open:ge}=V;ge||(Li(T),Li(M),k.current=!0,ae.current=!1)}return s.on("openchange",j),()=>{s.off("openchange",j)}},[u,s]),Ye.useEffect(()=>{if(!u||!w.current||!n)return;function j(ge){oe()&&r(!1,ge,"hover")}const V=Cf(o.floating).documentElement;return V.addEventListener("mouseleave",j),()=>{V.removeEventListener("mouseleave",j)}},[o.floating,n,r,u,w,oe]);const W=Ye.useCallback(function(j,V,ge){V===void 0&&(V=!0),ge===void 0&&(ge="hover");const U=mv(D.current,"close",C.current);U&&!O.current?(Li(T),T.current=window.setTimeout(()=>r(!1,j,ge),U)):V&&(Li(T),r(!1,j,ge))},[D,r]),Ce=tp(()=>{F.current(),O.current=void 0}),ne=tp(()=>{if(N.current){const j=Cf(o.floating).body;j.style.pointerEvents="",j.removeAttribute(rC),N.current=!1}}),se=tp(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Ye.useEffect(()=>{if(!u)return;function j(J){if(Li(T),k.current=!1,h&&!eb(C.current)||m>0&&!mv(D.current,"open"))return;const xe=mv(D.current,"open",C.current);xe?T.current=window.setTimeout(()=>{S.current||r(!0,J,"hover")},xe):n||r(!0,J,"hover")}function V(J){if(se())return;F.current();const xe=Cf(o.floating);if(Li(M),ae.current=!1,w.current&&i.current.floatingContext){n||Li(T),O.current=w.current({...i.current.floatingContext,tree:b,x:J.clientX,y:J.clientY,onClose(){ne(),Ce(),se()||W(J,!0,"safe-polygon")}});const Oe=O.current;xe.addEventListener("mousemove",Oe),F.current=()=>{xe.removeEventListener("mousemove",Oe)};return}(C.current==="touch"?!Q1(o.floating,J.relatedTarget):!0)&&W(J)}function ge(J){se()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:b,x:J.clientX,y:J.clientY,onClose(){ne(),Ce(),se()||W(J)}})(J))}if(tr(o.domReference)){var U;const J=o.domReference;return n&&J.addEventListener("mouseleave",ge),(U=o.floating)==null||U.addEventListener("mouseleave",ge),g&&J.addEventListener("mousemove",j,{once:!0}),J.addEventListener("mouseenter",j),J.addEventListener("mouseleave",V),()=>{var xe;n&&J.removeEventListener("mouseleave",ge),(xe=o.floating)==null||xe.removeEventListener("mouseleave",ge),g&&J.removeEventListener("mousemove",j),J.removeEventListener("mouseenter",j),J.removeEventListener("mouseleave",V)}}},[o,u,e,h,m,g,W,Ce,ne,r,n,S,b,D,w,i,se]),Ql(()=>{var j;if(u&&n&&(j=w.current)!=null&&j.__options.blockPointerEvents&&oe()){N.current=!0;const ge=o.floating;if(tr(o.domReference)&&ge){var V;const U=Cf(o.floating).body;U.setAttribute(rC,"");const J=o.domReference,xe=b==null||(V=b.nodesRef.current.find(Pe=>Pe.id===$))==null||(V=V.context)==null?void 0:V.elements.floating;return xe&&(xe.style.pointerEvents=""),U.style.pointerEvents="none",J.style.pointerEvents="auto",ge.style.pointerEvents="auto",()=>{U.style.pointerEvents="",J.style.pointerEvents="",ge.style.pointerEvents=""}}}},[u,n,$,o,b,w,oe]),Ql(()=>{n||(C.current=void 0,ae.current=!1,Ce(),ne())},[n,Ce,ne]),Ye.useEffect(()=>()=>{Ce(),Li(T),Li(M),ne()},[u,o.domReference,Ce,ne]);const z=Ye.useMemo(()=>{function j(V){C.current=V.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(V){const{nativeEvent:ge}=V;function U(){!k.current&&!S.current&&r(!0,ge,"hover")}h&&!eb(C.current)||n||m===0||ae.current&&V.movementX**2+V.movementY**2<2||(Li(M),C.current==="touch"?U():(ae.current=!0,M.current=window.setTimeout(U,m)))}}},[h,r,n,S,m]),K=Ye.useMemo(()=>({onMouseEnter(){Li(T)},onMouseLeave(j){se()||W(j.nativeEvent,!1)}}),[W,se]);return Ye.useMemo(()=>u?{reference:z,floating:K}:{},[u,z,K])}const uU="data-floating-ui-focusable";function lU(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=NP(),s=Ye.useRef({}),[o]=Ye.useState(()=>iU()),u=R4()!=null;if(process.env.NODE_ENV!=="production"){const b=r.reference;b&&!tr(b)&&rU("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,d]=Ye.useState(r.reference),h=tp((b,$,w)=>{s.current.openEvent=b?$:void 0,o.emit("openchange",{open:b,event:$,reason:w,nested:u}),n==null||n(b,$,w)}),m=Ye.useMemo(()=>({setPositionReference:d}),[]),g=Ye.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return Ye.useMemo(()=>({dataRef:s,open:t,onOpenChange:h,elements:g,events:o,floatingId:i,refs:m}),[t,h,g,o,i,m])}function cU(e){e===void 0&&(e={});const{nodeId:t}=e,n=lU({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[s,o]=Ye.useState(null),[u,l]=Ye.useState(null),h=(i==null?void 0:i.domReference)||s,m=Ye.useRef(null),g=jP();Ql(()=>{h&&(m.current=h)},[h]);const b=BP({...e,elements:{...i,...u&&{reference:u}}}),$=Ye.useCallback(T=>{const O=tr(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),contextElement:T}:T;l(O),b.refs.setReference(O)},[b.refs]),w=Ye.useCallback(T=>{(tr(T)||T===null)&&(m.current=T,o(T)),(tr(b.refs.reference.current)||b.refs.reference.current===null||T!==null&&!tr(T))&&b.refs.setReference(T)},[b.refs]),D=Ye.useMemo(()=>({...b.refs,setReference:w,setPositionReference:$,domReference:m}),[b.refs,w,$]),S=Ye.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),C=Ye.useMemo(()=>({...b,...r,refs:D,elements:S,nodeId:t}),[b,D,S,t,r]);return Ql(()=>{r.dataRef.current.floatingContext=C;const T=g==null?void 0:g.nodesRef.current.find(O=>O.id===t);T&&(T.context=C)}),Ye.useMemo(()=>({...b,context:C,refs:D,elements:S}),[b,D,S,C])}function fU(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:s,elements:o}=e,{enabled:u=!0,visibleOnly:l=!0}=t,d=Ye.useRef(!1),h=Ye.useRef(-1),m=Ye.useRef(!0);Ye.useEffect(()=>{if(!u)return;const b=ai(o.domReference);function $(){!n&&Zi(o.domReference)&&o.domReference===Gw(Cf(o.domReference))&&(d.current=!0)}function w(){m.current=!0}return b.addEventListener("blur",$),b.addEventListener("keydown",w,!0),()=>{b.removeEventListener("blur",$),b.removeEventListener("keydown",w,!0)}},[o.domReference,n,u]),Ye.useEffect(()=>{if(!u)return;function b($){let{reason:w}=$;(w==="reference-press"||w==="escape-key")&&(d.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,u]),Ye.useEffect(()=>()=>{Li(h)},[]);const g=Ye.useMemo(()=>({onPointerDown(b){lK(b.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(b){if(d.current)return;const $=hK(b.nativeEvent);if(l&&tr($))try{if(cK()&&fK())throw Error();if(!$.matches(":focus-visible"))return}catch{if(!m.current&&!mK($))return}r(!0,b.nativeEvent,"focus")},onBlur(b){d.current=!1;const $=b.relatedTarget,w=b.nativeEvent,D=tr($)&&$.hasAttribute(KP("focus-guard"))&&$.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const C=Gw(o.domReference?o.domReference.ownerDocument:document);!$&&C===o.domReference||Q1((S=s.current.floatingContext)==null?void 0:S.refs.floating.current,C)||Q1(o.domReference,C)||D||r(!1,w,"focus")})}}),[s,o.domReference,r,l]);return Ye.useMemo(()=>u?{reference:g}:{},[u,g])}const iC="active",sC="selected";function gv(e,t,n){const r=new Map,i=n==="item";let s=e;if(i&&e){const{[iC]:o,[sC]:u,...l}=e;s=l}return{...n==="floating"&&{tabIndex:-1,[uU]:""},...s,...t.map(o=>{const u=o?o[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((o,u)=>(u&&Object.entries(u).forEach(l=>{let[d,h]=l;if(!(i&&[iC,sC].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),o[d]=function(){for(var g,b=arguments.length,$=new Array(b),w=0;w<b;w++)$[w]=arguments[w];return(g=r.get(d))==null?void 0:g.map(D=>D(...$)).find(D=>D!==void 0)}}}else o[d]=h}),o),{})}}function dU(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),i=Ye.useCallback(u=>gv(u,e,"reference"),t),s=Ye.useCallback(u=>gv(u,e,"floating"),n),o=Ye.useCallback(u=>gv(u,e,"item"),r);return Ye.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:o}),[i,s,o])}const hU=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pU(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:s=!0,role:o="dialog"}=t,u=(n=hU.get(o))!=null?n:o,l=NP(),h=R4()!=null,m=Ye.useMemo(()=>u==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?i:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:l},...u==="menu"&&h&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[u,i,h,r,l,o]),g=Ye.useMemo(()=>{const $={id:i,...u&&{role:u}};return u==="tooltip"||o==="label"?$:{...$,...u==="menu"&&{"aria-labelledby":l}}},[u,i,l,o]),b=Ye.useCallback($=>{let{active:w,selected:D}=$;const S={role:"option",...w&&{id:i+"-option"}};switch(o){case"select":return{...S,"aria-selected":w&&D};case"combobox":return{...S,...w&&{"aria-selected":!0}}}return{}},[i,o]);return Ye.useMemo(()=>s?{reference:m,floating:g,item:b}:{},[s,m,g,b])}var Sf={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 mU=Sf.exports,oC;function gU(){return oC||(oC=1,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,b=4,$=1,w=2,D=1,S=2,C=4,T=8,O=16,M=32,k=64,N=128,F=256,ae=512,oe=30,W="...",Ce=800,ne=16,se=1,z=2,K=3,j=1/0,V=9007199254740991,ge=17976931348623157e292,U=NaN,J=4294967295,xe=J-1,Pe=J>>>1,Oe=[["ary",N],["bind",D],["bindKey",S],["curry",T],["curryRight",O],["flip",ae],["partial",M],["partialRight",k],["rearg",F]],Ie="[object Arguments]",Ze="[object Array]",Ge="[object AsyncFunction]",De="[object Boolean]",Ue="[object Date]",Re="[object DOMException]",Ve="[object Error]",Le="[object Function]",nt="[object GeneratorFunction]",xt="[object Map]",ln="[object Number]",$t="[object Null]",Rt="[object Object]",$e="[object Promise]",Ee="[object Proxy]",Te="[object RegExp]",He="[object Set]",et="[object String]",Je="[object Symbol]",lt="[object Undefined]",bt="[object WeakMap]",gn="[object WeakSet]",Jt="[object ArrayBuffer]",Ut="[object DataView]",Yr="[object Float32Array]",Fr="[object Float64Array]",rn="[object Int8Array]",Pt="[object Int16Array]",Lt="[object Int32Array]",Yt="[object Uint8Array]",sr="[object Uint8ClampedArray]",Qi="[object Uint16Array]",es="[object Uint32Array]",Ci=/\b__p \+= '';/g,Ds=/\b(__p \+=) '' \+/g,ka=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yt=/&(?:amp|lt|gt|quot|#39);/g,ci=/[&<>"']/g,ao=RegExp(yt.source),Fc=RegExp(ci.source),Uu=/<%-([\s\S]+?)%>/g,kc=/<%([\s\S]+?)%>/g,zu=/<%=([\s\S]+?)%>/g,Oa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qu=/^\w*$/,ts=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ns=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(ns.source),En=/^\s+/,uo=/\s/,Wu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wr=/\{\n\/\* \[wrapped with (.+)\] \*/,Hu=/,? & /,Gu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Oc=/[()=,{}\[\]\/\s]/,Zr=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dn=/\w*$/,rs=/^[-+]0x[0-9a-f]+$/i,fi=/^0b[01]+$/i,Zn=/^\[object .+?Constructor\]$/,Ia=/^0o[0-7]+$/i,As=/^(?:0|[1-9]\d*)$/,di=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,On=/($^)/,Jo=/['\n\r\u2028\u2029\\]/g,jt="\\ud800-\\udfff",Ic="\\u0300-\\u036f",Yu="\\ufe20-\\ufe2f",Lc="\\u20d0-\\u20ff",La=Ic+Yu+Lc,lo="\\u2700-\\u27bf",Zu="a-z\\xdf-\\xf6\\xf8-\\xff",Ba="\\xac\\xb1\\xd7\\xf7",Bc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Vc="\\u2000-\\u206f",Nc=" \\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",Xu="A-Z\\xc0-\\xd6\\xd8-\\xde",Va="\\ufe0e\\ufe0f",Na=Ba+Bc+Vc+Nc,co="['’]",Ju="["+jt+"]",Qu="["+Na+"]",kr="["+La+"]",gr="\\d+",Or="["+lo+"]",Ts="["+Zu+"]",Qo="[^"+jt+Na+gr+lo+Zu+Xu+"]",vr="\\ud83c[\\udffb-\\udfff]",fo="(?:"+kr+"|"+vr+")",ho="[^"+jt+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",hi="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+Xu+"]",Ei="\\u200d",ja="(?:"+Ts+"|"+Qo+")",el="(?:"+or+"|"+Qo+")",vn="(?:"+co+"(?:d|ll|m|re|s|t|ve))?",Ka="(?:"+co+"(?:D|LL|M|RE|S|T|VE))?",po=fo+"?",Ua="["+Va+"]?",tl="(?:"+Ei+"(?:"+[ho,Si,hi].join("|")+")"+Ua+po+")*",Ir="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",za="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ps=Ua+po+tl,_s="(?:"+[Or,Si,hi].join("|")+")"+Ps,mo="(?:"+[ho+kr+"?",kr,Si,hi,Ju].join("|")+")",is=RegExp(co,"g"),go=RegExp(kr,"g"),ea=RegExp(vr+"(?="+vr+")|"+mo+Ps,"g"),nl=RegExp([or+"?"+Ts+"+"+vn+"(?="+[Qu,or,"$"].join("|")+")",el+"+"+Ka+"(?="+[Qu,or+ja,"$"].join("|")+")",or+"?"+ja+"+"+vn,or+"+"+Ka,za,Ir,gr,_s].join("|"),"g"),jc=RegExp("["+Ei+jt+La+Va+"]"),vo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yo=-1,Wt={};Wt[Yr]=Wt[Fr]=Wt[rn]=Wt[Pt]=Wt[Lt]=Wt[Yt]=Wt[sr]=Wt[Qi]=Wt[es]=!0,Wt[Ie]=Wt[Ze]=Wt[Jt]=Wt[De]=Wt[Ut]=Wt[Ue]=Wt[Ve]=Wt[Le]=Wt[xt]=Wt[ln]=Wt[Rt]=Wt[Te]=Wt[He]=Wt[et]=Wt[bt]=!1;var Qt={};Qt[Ie]=Qt[Ze]=Qt[Jt]=Qt[Ut]=Qt[De]=Qt[Ue]=Qt[Yr]=Qt[Fr]=Qt[rn]=Qt[Pt]=Qt[Lt]=Qt[xt]=Qt[ln]=Qt[Rt]=Qt[Te]=Qt[He]=Qt[et]=Qt[Je]=Qt[Yt]=Qt[sr]=Qt[Qi]=Qt[es]=!0,Qt[Ve]=Qt[Le]=Qt[bt]=!1;var ue={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},_e={"&":"&","<":"<",">":">",'"':""","'":"'"},qe={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$n=parseFloat,nr=parseInt,ar=typeof qi=="object"&&qi&&qi.Object===Object&&qi,Nn=typeof self=="object"&&self&&self.Object===Object&&self,Dn=ar||Nn||Function("return this")(),Di=t&&!t.nodeType&&t,Ai=Di&&!0&&e&&!e.nodeType&&e,qa=Ai&&Ai.exports===Di,ta=qa&&ar.process,ur=function(){try{var R=Ai&&Ai.require&&Ai.require("util").types;return R||ta&&ta.binding&&ta.binding("util")}catch{}}(),bo=ur&&ur.isArrayBuffer,Yd=ur&&ur.isDate,Zd=ur&&ur.isMap,Uc=ur&&ur.isRegExp,na=ur&&ur.isSet,ss=ur&&ur.isTypedArray;function In(R,te,Y){switch(Y.length){case 0:return R.call(te);case 1:return R.call(te,Y[0]);case 2:return R.call(te,Y[0],Y[1]);case 3:return R.call(te,Y[0],Y[1],Y[2])}return R.apply(te,Y)}function Ms(R,te,Y,de){for(var fe=-1,H=R==null?0:R.length;++fe<H;){var Z=R[fe];te(de,Z,Y(Z),R)}return de}function hn(R,te){for(var Y=-1,de=R==null?0:R.length;++Y<de&&te(R[Y],Y,R)!==!1;);return R}function lr(R,te){for(var Y=R==null?0:R.length;Y--&&te(R[Y],Y,R)!==!1;);return R}function $o(R,te){for(var Y=-1,de=R==null?0:R.length;++Y<de;)if(!te(R[Y],Y,R))return!1;return!0}function Cr(R,te){for(var Y=-1,de=R==null?0:R.length,fe=0,H=[];++Y<de;){var Z=R[Y];te(Z,Y,R)&&(H[fe++]=Z)}return H}function Rs(R,te){var Y=R==null?0:R.length;return!!Y&&xo(R,te,0)>-1}function rl(R,te,Y){for(var de=-1,fe=R==null?0:R.length;++de<fe;)if(Y(te,R[de]))return!0;return!1}function cn(R,te){for(var Y=-1,de=R==null?0:R.length,fe=Array(de);++Y<de;)fe[Y]=te(R[Y],Y,R);return fe}function os(R,te){for(var Y=-1,de=te.length,fe=R.length;++Y<de;)R[fe+Y]=te[Y];return R}function il(R,te,Y,de){var fe=-1,H=R==null?0:R.length;for(de&&H&&(Y=R[++fe]);++fe<H;)Y=te(Y,R[fe],fe,R);return Y}function Wa(R,te,Y,de){var fe=R==null?0:R.length;for(de&&fe&&(Y=R[--fe]);fe--;)Y=te(Y,R[fe],fe,R);return Y}function Fs(R,te){for(var Y=-1,de=R==null?0:R.length;++Y<de;)if(te(R[Y],Y,R))return!0;return!1}var Ha=sl("length");function Ga(R){return R.split("")}function hg(R){return R.match(Gu)||[]}function zc(R,te,Y){var de;return Y(R,function(fe,H,Z){if(te(fe,H,Z))return de=H,!1}),de}function Ya(R,te,Y,de){for(var fe=R.length,H=Y+(de?1:-1);de?H--:++H<fe;)if(te(R[H],H,R))return H;return-1}function xo(R,te,Y){return te===te?p(R,te,Y):Ya(R,qc,Y)}function Xd(R,te,Y,de){for(var fe=Y-1,H=R.length;++fe<H;)if(de(R[fe],te))return fe;return-1}function qc(R){return R!==R}function Za(R,te){var Y=R==null?0:R.length;return Y?ks(R,te)/Y:U}function sl(R){return function(te){return te==null?n:te[R]}}function ol(R){return function(te){return R==null?n:R[te]}}function Wc(R,te,Y,de,fe){return fe(R,function(H,Z,I){Y=de?(de=!1,H):te(Y,H,Z,I)}),Y}function Xa(R,te){var Y=R.length;for(R.sort(te);Y--;)R[Y]=R[Y].value;return R}function ks(R,te){for(var Y,de=-1,fe=R.length;++de<fe;){var H=te(R[de]);H!==n&&(Y=Y===n?H:Y+H)}return Y}function al(R,te){for(var Y=-1,de=Array(R);++Y<R;)de[Y]=te(Y);return de}function pg(R,te){return cn(te,function(Y){return[Y,R[Y]]})}function Jd(R){return R&&R.slice(0,_(R)+1).replace(En,"")}function Sr(R){return function(te){return R(te)}}function Hc(R,te){return cn(te,function(Y){return R[Y]})}function yn(R,te){return R.has(te)}function ul(R,te){for(var Y=-1,de=R.length;++Y<de&&xo(te,R[Y],0)>-1;);return Y}function cr(R,te){for(var Y=R.length;Y--&&xo(te,R[Y],0)>-1;);return Y}function mg(R,te){for(var Y=R.length,de=0;Y--;)R[Y]===te&&++de;return de}var gg=ol(ue),wo=ol(_e);function pi(R){return"\\"+pt[R]}function vg(R,te){return R==null?n:R[te]}function Er(R){return jc.test(R)}function Gc(R){return vo.test(R)}function Os(R){for(var te,Y=[];!(te=R.next()).done;)Y.push(te.value);return Y}function Ln(R){var te=-1,Y=Array(R.size);return R.forEach(function(de,fe){Y[++te]=[fe,de]}),Y}function Ti(R,te){return function(Y){return R(te(Y))}}function Xr(R,te){for(var Y=-1,de=R.length,fe=0,H=[];++Y<de;){var Z=R[Y];(Z===te||Z===h)&&(R[Y]=h,H[fe++]=Y)}return H}function ra(R){var te=-1,Y=Array(R.size);return R.forEach(function(de){Y[++te]=de}),Y}function c(R){var te=-1,Y=Array(R.size);return R.forEach(function(de){Y[++te]=[de,de]}),Y}function p(R,te,Y){for(var de=Y-1,fe=R.length;++de<fe;)if(R[de]===te)return de;return-1}function v(R,te,Y){for(var de=Y+1;de--;)if(R[de]===te)return de;return de}function x(R){return Er(R)?pe(R):Ha(R)}function P(R){return Er(R)?ee(R):Ga(R)}function _(R){for(var te=R.length;te--&&uo.test(R.charAt(te)););return te}var q=ol(qe);function pe(R){for(var te=ea.lastIndex=0;ea.test(R);)++te;return te}function ee(R){return R.match(ea)||[]}function ye(R){return R.match(nl)||[]}var we=function R(te){te=te==null?Dn:Me.defaults(Dn.Object(),te,Me.pick(Dn,Kc));var Y=te.Array,de=te.Date,fe=te.Error,H=te.Function,Z=te.Math,I=te.Object,B=te.RegExp,G=te.String,re=te.TypeError,le=Y.prototype,he=H.prototype,ke=I.prototype,tt=te["__core-js_shared__"],Qe=he.toString,Ne=ke.hasOwnProperty,at=0,ft=function(){var a=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Be=ke.toString,be=Qe.call(I),ce=Dn._,Q=B("^"+Qe.call(Ne).replace(ns,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),me=qa?te.Buffer:n,je=te.Symbol,Fe=te.Uint8Array,ct=me?me.allocUnsafe:n,Tt=Ti(I.getPrototypeOf,I),Ct=I.create,xn=ke.propertyIsEnumerable,zt=le.splice,fr=je?je.isConcatSpreadable:n,Xn=je?je.iterator:n,Bn=je?je.toStringTag:n,jn=function(){try{var a=nu(I,"defineProperty");return a({},"",{}),a}catch{}}(),Kn=te.clearTimeout!==Dn.clearTimeout&&te.clearTimeout,yr=de&&de.now!==Dn.Date.now&&de.now,dt=te.setTimeout!==Dn.setTimeout&&te.setTimeout,fn=Z.ceil,Jr=Z.floor,Pi=I.getOwnPropertySymbols,as=me?me.isBuffer:n,mi=te.isFinite,us=le.join,ls=Ti(I.keys,I),Ht=Z.max,wn=Z.min,Is=de.now,gi=te.parseInt,cs=Z.random,vi=le.reverse,fs=nu(te,"DataView"),Ls=nu(te,"Map"),ia=nu(te,"Promise"),ll=nu(te,"Set"),Yc=nu(te,"WeakMap"),Zc=nu(I,"create"),Qd=Yc&&new Yc,cl={},a9=ru(fs),u9=ru(Ls),l9=ru(ia),c9=ru(ll),f9=ru(Yc),eh=je?je.prototype:n,Xc=eh?eh.valueOf:n,Z$=eh?eh.toString:n;function X(a){if(Vn(a)&&!_t(a)&&!(a instanceof Kt)){if(a instanceof _i)return a;if(Ne.call(a,"__wrapped__"))return Xx(a)}return new _i(a)}var fl=function(){function a(){}return function(f){if(!_n(f))return{};if(Ct)return Ct(f);a.prototype=f;var y=new a;return a.prototype=n,y}}();function th(){}function _i(a,f){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}X.templateSettings={escape:Uu,evaluate:kc,interpolate:zu,variable:"",imports:{_:X}},X.prototype=th.prototype,X.prototype.constructor=X,_i.prototype=fl(th.prototype),_i.prototype.constructor=_i;function Kt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function d9(){var a=new Kt(this.__wrapped__);return a.__actions__=Qr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Qr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Qr(this.__views__),a}function h9(){if(this.__filtered__){var a=new Kt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function p9(){var a=this.__wrapped__.value(),f=this.__dir__,y=_t(a),E=f<0,L=y?a.length:0,ie=D8(0,L,this.__views__),ve=ie.start,Se=ie.end,Ae=Se-ve,ze=E?Se:ve-1,We=this.__iteratees__,Xe=We.length,ot=0,gt=wn(Ae,this.__takeCount__);if(!y||!E&&L==Ae&>==Ae)return $x(a,this.__actions__);var St=[];e:for(;Ae--&&ot<gt;){ze+=f;for(var Ot=-1,Et=a[ze];++Ot<Xe;){var Vt=We[Ot],qt=Vt.iteratee,$i=Vt.type,Vr=qt(Et);if($i==z)Et=Vr;else if(!Vr){if($i==se)continue e;break e}}St[ot++]=Et}return St}Kt.prototype=fl(th.prototype),Kt.prototype.constructor=Kt;function Ja(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function m9(){this.__data__=Zc?Zc(null):{},this.size=0}function g9(a){var f=this.has(a)&&delete this.__data__[a];return this.size-=f?1:0,f}function v9(a){var f=this.__data__;if(Zc){var y=f[a];return y===l?n:y}return Ne.call(f,a)?f[a]:n}function y9(a){var f=this.__data__;return Zc?f[a]!==n:Ne.call(f,a)}function b9(a,f){var y=this.__data__;return this.size+=this.has(a)?0:1,y[a]=Zc&&f===n?l:f,this}Ja.prototype.clear=m9,Ja.prototype.delete=g9,Ja.prototype.get=v9,Ja.prototype.has=y9,Ja.prototype.set=b9;function Co(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function $9(){this.__data__=[],this.size=0}function x9(a){var f=this.__data__,y=nh(f,a);if(y<0)return!1;var E=f.length-1;return y==E?f.pop():zt.call(f,y,1),--this.size,!0}function w9(a){var f=this.__data__,y=nh(f,a);return y<0?n:f[y][1]}function C9(a){return nh(this.__data__,a)>-1}function S9(a,f){var y=this.__data__,E=nh(y,a);return E<0?(++this.size,y.push([a,f])):y[E][1]=f,this}Co.prototype.clear=$9,Co.prototype.delete=x9,Co.prototype.get=w9,Co.prototype.has=C9,Co.prototype.set=S9;function So(a){var f=-1,y=a==null?0:a.length;for(this.clear();++f<y;){var E=a[f];this.set(E[0],E[1])}}function E9(){this.size=0,this.__data__={hash:new Ja,map:new(Ls||Co),string:new Ja}}function D9(a){var f=ph(this,a).delete(a);return this.size-=f?1:0,f}function A9(a){return ph(this,a).get(a)}function T9(a){return ph(this,a).has(a)}function P9(a,f){var y=ph(this,a),E=y.size;return y.set(a,f),this.size+=y.size==E?0:1,this}So.prototype.clear=E9,So.prototype.delete=D9,So.prototype.get=A9,So.prototype.has=T9,So.prototype.set=P9;function Qa(a){var f=-1,y=a==null?0:a.length;for(this.__data__=new So;++f<y;)this.add(a[f])}function _9(a){return this.__data__.set(a,l),this}function M9(a){return this.__data__.has(a)}Qa.prototype.add=Qa.prototype.push=_9,Qa.prototype.has=M9;function ds(a){var f=this.__data__=new Co(a);this.size=f.size}function R9(){this.__data__=new Co,this.size=0}function F9(a){var f=this.__data__,y=f.delete(a);return this.size=f.size,y}function k9(a){return this.__data__.get(a)}function O9(a){return this.__data__.has(a)}function I9(a,f){var y=this.__data__;if(y instanceof Co){var E=y.__data__;if(!Ls||E.length<i-1)return E.push([a,f]),this.size=++y.size,this;y=this.__data__=new So(E)}return y.set(a,f),this.size=y.size,this}ds.prototype.clear=R9,ds.prototype.delete=F9,ds.prototype.get=k9,ds.prototype.has=O9,ds.prototype.set=I9;function X$(a,f){var y=_t(a),E=!y&&iu(a),L=!y&&!E&&la(a),ie=!y&&!E&&!L&&ml(a),ve=y||E||L||ie,Se=ve?al(a.length,G):[],Ae=Se.length;for(var ze in a)(f||Ne.call(a,ze))&&!(ve&&(ze=="length"||L&&(ze=="offset"||ze=="parent")||ie&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||To(ze,Ae)))&&Se.push(ze);return Se}function J$(a){var f=a.length;return f?a[Tg(0,f-1)]:n}function L9(a,f){return mh(Qr(a),eu(f,0,a.length))}function B9(a){return mh(Qr(a))}function yg(a,f,y){(y!==n&&!hs(a[f],y)||y===n&&!(f in a))&&Eo(a,f,y)}function Jc(a,f,y){var E=a[f];(!(Ne.call(a,f)&&hs(E,y))||y===n&&!(f in a))&&Eo(a,f,y)}function nh(a,f){for(var y=a.length;y--;)if(hs(a[y][0],f))return y;return-1}function V9(a,f,y,E){return sa(a,function(L,ie,ve){f(E,L,y(L),ve)}),E}function Q$(a,f){return a&&Vs(f,dr(f),a)}function N9(a,f){return a&&Vs(f,ti(f),a)}function Eo(a,f,y){f=="__proto__"&&jn?jn(a,f,{configurable:!0,enumerable:!0,value:y,writable:!0}):a[f]=y}function bg(a,f){for(var y=-1,E=f.length,L=Y(E),ie=a==null;++y<E;)L[y]=ie?n:Qg(a,f[y]);return L}function eu(a,f,y){return a===a&&(y!==n&&(a=a<=y?a:y),f!==n&&(a=a>=f?a:f)),a}function Mi(a,f,y,E,L,ie){var ve,Se=f&m,Ae=f&g,ze=f&b;if(y&&(ve=L?y(a,E,L,ie):y(a)),ve!==n)return ve;if(!_n(a))return a;var We=_t(a);if(We){if(ve=T8(a),!Se)return Qr(a,ve)}else{var Xe=Dr(a),ot=Xe==Le||Xe==nt;if(la(a))return Cx(a,Se);if(Xe==Rt||Xe==Ie||ot&&!L){if(ve=Ae||ot?{}:Kx(a),!Se)return Ae?v8(a,N9(ve,a)):g8(a,Q$(ve,a))}else{if(!Qt[Xe])return L?a:{};ve=P8(a,Xe,Se)}}ie||(ie=new ds);var gt=ie.get(a);if(gt)return gt;ie.set(a,ve),vw(a)?a.forEach(function(Et){ve.add(Mi(Et,f,y,Et,a,ie))}):mw(a)&&a.forEach(function(Et,Vt){ve.set(Vt,Mi(Et,f,y,Vt,a,ie))});var St=ze?Ae?Vg:Bg:Ae?ti:dr,Ot=We?n:St(a);return hn(Ot||a,function(Et,Vt){Ot&&(Vt=Et,Et=a[Vt]),Jc(ve,Vt,Mi(Et,f,y,Vt,a,ie))}),ve}function j9(a){var f=dr(a);return function(y){return ex(y,a,f)}}function ex(a,f,y){var E=y.length;if(a==null)return!E;for(a=I(a);E--;){var L=y[E],ie=f[L],ve=a[L];if(ve===n&&!(L in a)||!ie(ve))return!1}return!0}function tx(a,f,y){if(typeof a!="function")throw new re(o);return of(function(){a.apply(n,y)},f)}function Qc(a,f,y,E){var L=-1,ie=Rs,ve=!0,Se=a.length,Ae=[],ze=f.length;if(!Se)return Ae;y&&(f=cn(f,Sr(y))),E?(ie=rl,ve=!1):f.length>=i&&(ie=yn,ve=!1,f=new Qa(f));e:for(;++L<Se;){var We=a[L],Xe=y==null?We:y(We);if(We=E||We!==0?We:0,ve&&Xe===Xe){for(var ot=ze;ot--;)if(f[ot]===Xe)continue e;Ae.push(We)}else ie(f,Xe,E)||Ae.push(We)}return Ae}var sa=Tx(Bs),nx=Tx(xg,!0);function K9(a,f){var y=!0;return sa(a,function(E,L,ie){return y=!!f(E,L,ie),y}),y}function rh(a,f,y){for(var E=-1,L=a.length;++E<L;){var ie=a[E],ve=f(ie);if(ve!=null&&(Se===n?ve===ve&&!bi(ve):y(ve,Se)))var Se=ve,Ae=ie}return Ae}function U9(a,f,y,E){var L=a.length;for(y=Ft(y),y<0&&(y=-y>L?0:L+y),E=E===n||E>L?L:Ft(E),E<0&&(E+=L),E=y>E?0:bw(E);y<E;)a[y++]=f;return a}function rx(a,f){var y=[];return sa(a,function(E,L,ie){f(E,L,ie)&&y.push(E)}),y}function br(a,f,y,E,L){var ie=-1,ve=a.length;for(y||(y=M8),L||(L=[]);++ie<ve;){var Se=a[ie];f>0&&y(Se)?f>1?br(Se,f-1,y,E,L):os(L,Se):E||(L[L.length]=Se)}return L}var $g=Px(),ix=Px(!0);function Bs(a,f){return a&&$g(a,f,dr)}function xg(a,f){return a&&ix(a,f,dr)}function ih(a,f){return Cr(f,function(y){return Po(a[y])})}function tu(a,f){f=aa(f,a);for(var y=0,E=f.length;a!=null&&y<E;)a=a[Ns(f[y++])];return y&&y==E?a:n}function sx(a,f,y){var E=f(a);return _t(a)?E:os(E,y(a))}function Lr(a){return a==null?a===n?lt:$t:Bn&&Bn in I(a)?E8(a):B8(a)}function wg(a,f){return a>f}function z9(a,f){return a!=null&&Ne.call(a,f)}function q9(a,f){return a!=null&&f in I(a)}function W9(a,f,y){return a>=wn(f,y)&&a<Ht(f,y)}function Cg(a,f,y){for(var E=y?rl:Rs,L=a[0].length,ie=a.length,ve=ie,Se=Y(ie),Ae=1/0,ze=[];ve--;){var We=a[ve];ve&&f&&(We=cn(We,Sr(f))),Ae=wn(We.length,Ae),Se[ve]=!y&&(f||L>=120&&We.length>=120)?new Qa(ve&&We):n}We=a[0];var Xe=-1,ot=Se[0];e:for(;++Xe<L&&ze.length<Ae;){var gt=We[Xe],St=f?f(gt):gt;if(gt=y||gt!==0?gt:0,!(ot?yn(ot,St):E(ze,St,y))){for(ve=ie;--ve;){var Ot=Se[ve];if(!(Ot?yn(Ot,St):E(a[ve],St,y)))continue e}ot&&ot.push(St),ze.push(gt)}}return ze}function H9(a,f,y,E){return Bs(a,function(L,ie,ve){f(E,y(L),ie,ve)}),E}function ef(a,f,y){f=aa(f,a),a=Wx(a,f);var E=a==null?a:a[Ns(Fi(f))];return E==null?n:In(E,a,y)}function ox(a){return Vn(a)&&Lr(a)==Ie}function G9(a){return Vn(a)&&Lr(a)==Jt}function Y9(a){return Vn(a)&&Lr(a)==Ue}function tf(a,f,y,E,L){return a===f?!0:a==null||f==null||!Vn(a)&&!Vn(f)?a!==a&&f!==f:Z9(a,f,y,E,tf,L)}function Z9(a,f,y,E,L,ie){var ve=_t(a),Se=_t(f),Ae=ve?Ze:Dr(a),ze=Se?Ze:Dr(f);Ae=Ae==Ie?Rt:Ae,ze=ze==Ie?Rt:ze;var We=Ae==Rt,Xe=ze==Rt,ot=Ae==ze;if(ot&&la(a)){if(!la(f))return!1;ve=!0,We=!1}if(ot&&!We)return ie||(ie=new ds),ve||ml(a)?Vx(a,f,y,E,L,ie):C8(a,f,Ae,y,E,L,ie);if(!(y&$)){var gt=We&&Ne.call(a,"__wrapped__"),St=Xe&&Ne.call(f,"__wrapped__");if(gt||St){var Ot=gt?a.value():a,Et=St?f.value():f;return ie||(ie=new ds),L(Ot,Et,y,E,ie)}}return ot?(ie||(ie=new ds),S8(a,f,y,E,L,ie)):!1}function X9(a){return Vn(a)&&Dr(a)==xt}function Sg(a,f,y,E){var L=y.length,ie=L,ve=!E;if(a==null)return!ie;for(a=I(a);L--;){var Se=y[L];if(ve&&Se[2]?Se[1]!==a[Se[0]]:!(Se[0]in a))return!1}for(;++L<ie;){Se=y[L];var Ae=Se[0],ze=a[Ae],We=Se[1];if(ve&&Se[2]){if(ze===n&&!(Ae in a))return!1}else{var Xe=new ds;if(E)var ot=E(ze,We,Ae,a,f,Xe);if(!(ot===n?tf(We,ze,$|w,E,Xe):ot))return!1}}return!0}function ax(a){if(!_n(a)||F8(a))return!1;var f=Po(a)?Q:Zn;return f.test(ru(a))}function J9(a){return Vn(a)&&Lr(a)==Te}function Q9(a){return Vn(a)&&Dr(a)==He}function e8(a){return Vn(a)&&xh(a.length)&&!!Wt[Lr(a)]}function ux(a){return typeof a=="function"?a:a==null?ni:typeof a=="object"?_t(a)?fx(a[0],a[1]):cx(a):_w(a)}function Eg(a){if(!sf(a))return ls(a);var f=[];for(var y in I(a))Ne.call(a,y)&&y!="constructor"&&f.push(y);return f}function t8(a){if(!_n(a))return L8(a);var f=sf(a),y=[];for(var E in a)E=="constructor"&&(f||!Ne.call(a,E))||y.push(E);return y}function Dg(a,f){return a<f}function lx(a,f){var y=-1,E=ei(a)?Y(a.length):[];return sa(a,function(L,ie,ve){E[++y]=f(L,ie,ve)}),E}function cx(a){var f=jg(a);return f.length==1&&f[0][2]?zx(f[0][0],f[0][1]):function(y){return y===a||Sg(y,a,f)}}function fx(a,f){return Ug(a)&&Ux(f)?zx(Ns(a),f):function(y){var E=Qg(y,a);return E===n&&E===f?ev(y,a):tf(f,E,$|w)}}function sh(a,f,y,E,L){a!==f&&$g(f,function(ie,ve){if(L||(L=new ds),_n(ie))n8(a,f,ve,y,sh,E,L);else{var Se=E?E(qg(a,ve),ie,ve+"",a,f,L):n;Se===n&&(Se=ie),yg(a,ve,Se)}},ti)}function n8(a,f,y,E,L,ie,ve){var Se=qg(a,y),Ae=qg(f,y),ze=ve.get(Ae);if(ze){yg(a,y,ze);return}var We=ie?ie(Se,Ae,y+"",a,f,ve):n,Xe=We===n;if(Xe){var ot=_t(Ae),gt=!ot&&la(Ae),St=!ot&&!gt&&ml(Ae);We=Ae,ot||gt||St?_t(Se)?We=Se:Un(Se)?We=Qr(Se):gt?(Xe=!1,We=Cx(Ae,!0)):St?(Xe=!1,We=Sx(Ae,!0)):We=[]:af(Ae)||iu(Ae)?(We=Se,iu(Se)?We=$w(Se):(!_n(Se)||Po(Se))&&(We=Kx(Ae))):Xe=!1}Xe&&(ve.set(Ae,We),L(We,Ae,E,ie,ve),ve.delete(Ae)),yg(a,y,We)}function dx(a,f){var y=a.length;if(y)return f+=f<0?y:0,To(f,y)?a[f]:n}function hx(a,f,y){f.length?f=cn(f,function(ie){return _t(ie)?function(ve){return tu(ve,ie.length===1?ie[0]:ie)}:ie}):f=[ni];var E=-1;f=cn(f,Sr(wt()));var L=lx(a,function(ie,ve,Se){var Ae=cn(f,function(ze){return ze(ie)});return{criteria:Ae,index:++E,value:ie}});return Xa(L,function(ie,ve){return m8(ie,ve,y)})}function r8(a,f){return px(a,f,function(y,E){return ev(a,E)})}function px(a,f,y){for(var E=-1,L=f.length,ie={};++E<L;){var ve=f[E],Se=tu(a,ve);y(Se,ve)&&nf(ie,aa(ve,a),Se)}return ie}function i8(a){return function(f){return tu(f,a)}}function Ag(a,f,y,E){var L=E?Xd:xo,ie=-1,ve=f.length,Se=a;for(a===f&&(f=Qr(f)),y&&(Se=cn(a,Sr(y)));++ie<ve;)for(var Ae=0,ze=f[ie],We=y?y(ze):ze;(Ae=L(Se,We,Ae,E))>-1;)Se!==a&&zt.call(Se,Ae,1),zt.call(a,Ae,1);return a}function mx(a,f){for(var y=a?f.length:0,E=y-1;y--;){var L=f[y];if(y==E||L!==ie){var ie=L;To(L)?zt.call(a,L,1):Mg(a,L)}}return a}function Tg(a,f){return a+Jr(cs()*(f-a+1))}function s8(a,f,y,E){for(var L=-1,ie=Ht(fn((f-a)/(y||1)),0),ve=Y(ie);ie--;)ve[E?ie:++L]=a,a+=y;return ve}function Pg(a,f){var y="";if(!a||f<1||f>V)return y;do f%2&&(y+=a),f=Jr(f/2),f&&(a+=a);while(f);return y}function Bt(a,f){return Wg(qx(a,f,ni),a+"")}function o8(a){return J$(gl(a))}function a8(a,f){var y=gl(a);return mh(y,eu(f,0,y.length))}function nf(a,f,y,E){if(!_n(a))return a;f=aa(f,a);for(var L=-1,ie=f.length,ve=ie-1,Se=a;Se!=null&&++L<ie;){var Ae=Ns(f[L]),ze=y;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return a;if(L!=ve){var We=Se[Ae];ze=E?E(We,Ae,Se):n,ze===n&&(ze=_n(We)?We:To(f[L+1])?[]:{})}Jc(Se,Ae,ze),Se=Se[Ae]}return a}var gx=Qd?function(a,f){return Qd.set(a,f),a}:ni,u8=jn?function(a,f){return jn(a,"toString",{configurable:!0,enumerable:!1,value:nv(f),writable:!0})}:ni;function l8(a){return mh(gl(a))}function Ri(a,f,y){var E=-1,L=a.length;f<0&&(f=-f>L?0:L+f),y=y>L?L:y,y<0&&(y+=L),L=f>y?0:y-f>>>0,f>>>=0;for(var ie=Y(L);++E<L;)ie[E]=a[E+f];return ie}function c8(a,f){var y;return sa(a,function(E,L,ie){return y=f(E,L,ie),!y}),!!y}function oh(a,f,y){var E=0,L=a==null?E:a.length;if(typeof f=="number"&&f===f&&L<=Pe){for(;E<L;){var ie=E+L>>>1,ve=a[ie];ve!==null&&!bi(ve)&&(y?ve<=f:ve<f)?E=ie+1:L=ie}return L}return _g(a,f,ni,y)}function _g(a,f,y,E){var L=0,ie=a==null?0:a.length;if(ie===0)return 0;f=y(f);for(var ve=f!==f,Se=f===null,Ae=bi(f),ze=f===n;L<ie;){var We=Jr((L+ie)/2),Xe=y(a[We]),ot=Xe!==n,gt=Xe===null,St=Xe===Xe,Ot=bi(Xe);if(ve)var Et=E||St;else ze?Et=St&&(E||ot):Se?Et=St&&ot&&(E||!gt):Ae?Et=St&&ot&&!gt&&(E||!Ot):gt||Ot?Et=!1:Et=E?Xe<=f:Xe<f;Et?L=We+1:ie=We}return wn(ie,xe)}function vx(a,f){for(var y=-1,E=a.length,L=0,ie=[];++y<E;){var ve=a[y],Se=f?f(ve):ve;if(!y||!hs(Se,Ae)){var Ae=Se;ie[L++]=ve===0?0:ve}}return ie}function yx(a){return typeof a=="number"?a:bi(a)?U:+a}function yi(a){if(typeof a=="string")return a;if(_t(a))return cn(a,yi)+"";if(bi(a))return Z$?Z$.call(a):"";var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function oa(a,f,y){var E=-1,L=Rs,ie=a.length,ve=!0,Se=[],Ae=Se;if(y)ve=!1,L=rl;else if(ie>=i){var ze=f?null:x8(a);if(ze)return ra(ze);ve=!1,L=yn,Ae=new Qa}else Ae=f?[]:Se;e:for(;++E<ie;){var We=a[E],Xe=f?f(We):We;if(We=y||We!==0?We:0,ve&&Xe===Xe){for(var ot=Ae.length;ot--;)if(Ae[ot]===Xe)continue e;f&&Ae.push(Xe),Se.push(We)}else L(Ae,Xe,y)||(Ae!==Se&&Ae.push(Xe),Se.push(We))}return Se}function Mg(a,f){return f=aa(f,a),a=Wx(a,f),a==null||delete a[Ns(Fi(f))]}function bx(a,f,y,E){return nf(a,f,y(tu(a,f)),E)}function ah(a,f,y,E){for(var L=a.length,ie=E?L:-1;(E?ie--:++ie<L)&&f(a[ie],ie,a););return y?Ri(a,E?0:ie,E?ie+1:L):Ri(a,E?ie+1:0,E?L:ie)}function $x(a,f){var y=a;return y instanceof Kt&&(y=y.value()),il(f,function(E,L){return L.func.apply(L.thisArg,os([E],L.args))},y)}function Rg(a,f,y){var E=a.length;if(E<2)return E?oa(a[0]):[];for(var L=-1,ie=Y(E);++L<E;)for(var ve=a[L],Se=-1;++Se<E;)Se!=L&&(ie[L]=Qc(ie[L]||ve,a[Se],f,y));return oa(br(ie,1),f,y)}function xx(a,f,y){for(var E=-1,L=a.length,ie=f.length,ve={};++E<L;){var Se=E<ie?f[E]:n;y(ve,a[E],Se)}return ve}function Fg(a){return Un(a)?a:[]}function kg(a){return typeof a=="function"?a:ni}function aa(a,f){return _t(a)?a:Ug(a,f)?[a]:Zx(sn(a))}var f8=Bt;function ua(a,f,y){var E=a.length;return y=y===n?E:y,!f&&y>=E?a:Ri(a,f,y)}var wx=Kn||function(a){return Dn.clearTimeout(a)};function Cx(a,f){if(f)return a.slice();var y=a.length,E=ct?ct(y):new a.constructor(y);return a.copy(E),E}function Og(a){var f=new a.constructor(a.byteLength);return new Fe(f).set(new Fe(a)),f}function d8(a,f){var y=f?Og(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.byteLength)}function h8(a){var f=new a.constructor(a.source,dn.exec(a));return f.lastIndex=a.lastIndex,f}function p8(a){return Xc?I(Xc.call(a)):{}}function Sx(a,f){var y=f?Og(a.buffer):a.buffer;return new a.constructor(y,a.byteOffset,a.length)}function Ex(a,f){if(a!==f){var y=a!==n,E=a===null,L=a===a,ie=bi(a),ve=f!==n,Se=f===null,Ae=f===f,ze=bi(f);if(!Se&&!ze&&!ie&&a>f||ie&&ve&&Ae&&!Se&&!ze||E&&ve&&Ae||!y&&Ae||!L)return 1;if(!E&&!ie&&!ze&&a<f||ze&&y&&L&&!E&&!ie||Se&&y&&L||!ve&&L||!Ae)return-1}return 0}function m8(a,f,y){for(var E=-1,L=a.criteria,ie=f.criteria,ve=L.length,Se=y.length;++E<ve;){var Ae=Ex(L[E],ie[E]);if(Ae){if(E>=Se)return Ae;var ze=y[E];return Ae*(ze=="desc"?-1:1)}}return a.index-f.index}function Dx(a,f,y,E){for(var L=-1,ie=a.length,ve=y.length,Se=-1,Ae=f.length,ze=Ht(ie-ve,0),We=Y(Ae+ze),Xe=!E;++Se<Ae;)We[Se]=f[Se];for(;++L<ve;)(Xe||L<ie)&&(We[y[L]]=a[L]);for(;ze--;)We[Se++]=a[L++];return We}function Ax(a,f,y,E){for(var L=-1,ie=a.length,ve=-1,Se=y.length,Ae=-1,ze=f.length,We=Ht(ie-Se,0),Xe=Y(We+ze),ot=!E;++L<We;)Xe[L]=a[L];for(var gt=L;++Ae<ze;)Xe[gt+Ae]=f[Ae];for(;++ve<Se;)(ot||L<ie)&&(Xe[gt+y[ve]]=a[L++]);return Xe}function Qr(a,f){var y=-1,E=a.length;for(f||(f=Y(E));++y<E;)f[y]=a[y];return f}function Vs(a,f,y,E){var L=!y;y||(y={});for(var ie=-1,ve=f.length;++ie<ve;){var Se=f[ie],Ae=E?E(y[Se],a[Se],Se,y,a):n;Ae===n&&(Ae=a[Se]),L?Eo(y,Se,Ae):Jc(y,Se,Ae)}return y}function g8(a,f){return Vs(a,Kg(a),f)}function v8(a,f){return Vs(a,Nx(a),f)}function uh(a,f){return function(y,E){var L=_t(y)?Ms:V9,ie=f?f():{};return L(y,a,wt(E,2),ie)}}function dl(a){return Bt(function(f,y){var E=-1,L=y.length,ie=L>1?y[L-1]:n,ve=L>2?y[2]:n;for(ie=a.length>3&&typeof ie=="function"?(L--,ie):n,ve&&Br(y[0],y[1],ve)&&(ie=L<3?n:ie,L=1),f=I(f);++E<L;){var Se=y[E];Se&&a(f,Se,E,ie)}return f})}function Tx(a,f){return function(y,E){if(y==null)return y;if(!ei(y))return a(y,E);for(var L=y.length,ie=f?L:-1,ve=I(y);(f?ie--:++ie<L)&&E(ve[ie],ie,ve)!==!1;);return y}}function Px(a){return function(f,y,E){for(var L=-1,ie=I(f),ve=E(f),Se=ve.length;Se--;){var Ae=ve[a?Se:++L];if(y(ie[Ae],Ae,ie)===!1)break}return f}}function y8(a,f,y){var E=f&D,L=rf(a);function ie(){var ve=this&&this!==Dn&&this instanceof ie?L:a;return ve.apply(E?y:this,arguments)}return ie}function _x(a){return function(f){f=sn(f);var y=Er(f)?P(f):n,E=y?y[0]:f.charAt(0),L=y?ua(y,1).join(""):f.slice(1);return E[a]()+L}}function hl(a){return function(f){return il(Tw(Aw(f).replace(is,"")),a,"")}}function rf(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=fl(a.prototype),E=a.apply(y,f);return _n(E)?E:y}}function b8(a,f,y){var E=rf(a);function L(){for(var ie=arguments.length,ve=Y(ie),Se=ie,Ae=pl(L);Se--;)ve[Se]=arguments[Se];var ze=ie<3&&ve[0]!==Ae&&ve[ie-1]!==Ae?[]:Xr(ve,Ae);if(ie-=ze.length,ie<y)return Ox(a,f,lh,L.placeholder,n,ve,ze,n,n,y-ie);var We=this&&this!==Dn&&this instanceof L?E:a;return In(We,this,ve)}return L}function Mx(a){return function(f,y,E){var L=I(f);if(!ei(f)){var ie=wt(y,3);f=dr(f),y=function(Se){return ie(L[Se],Se,L)}}var ve=a(f,y,E);return ve>-1?L[ie?f[ve]:ve]:n}}function Rx(a){return Ao(function(f){var y=f.length,E=y,L=_i.prototype.thru;for(a&&f.reverse();E--;){var ie=f[E];if(typeof ie!="function")throw new re(o);if(L&&!ve&&hh(ie)=="wrapper")var ve=new _i([],!0)}for(E=ve?E:y;++E<y;){ie=f[E];var Se=hh(ie),Ae=Se=="wrapper"?Ng(ie):n;Ae&&zg(Ae[0])&&Ae[1]==(N|T|M|F)&&!Ae[4].length&&Ae[9]==1?ve=ve[hh(Ae[0])].apply(ve,Ae[3]):ve=ie.length==1&&zg(ie)?ve[Se]():ve.thru(ie)}return function(){var ze=arguments,We=ze[0];if(ve&&ze.length==1&&_t(We))return ve.plant(We).value();for(var Xe=0,ot=y?f[Xe].apply(this,ze):We;++Xe<y;)ot=f[Xe].call(this,ot);return ot}})}function lh(a,f,y,E,L,ie,ve,Se,Ae,ze){var We=f&N,Xe=f&D,ot=f&S,gt=f&(T|O),St=f&ae,Ot=ot?n:rf(a);function Et(){for(var Vt=arguments.length,qt=Y(Vt),$i=Vt;$i--;)qt[$i]=arguments[$i];if(gt)var Vr=pl(Et),xi=mg(qt,Vr);if(E&&(qt=Dx(qt,E,L,gt)),ie&&(qt=Ax(qt,ie,ve,gt)),Vt-=xi,gt&&Vt<ze){var zn=Xr(qt,Vr);return Ox(a,f,lh,Et.placeholder,y,qt,zn,Se,Ae,ze-Vt)}var ps=Xe?y:this,Mo=ot?ps[a]:a;return Vt=qt.length,Se?qt=V8(qt,Se):St&&Vt>1&&qt.reverse(),We&&Ae<Vt&&(qt.length=Ae),this&&this!==Dn&&this instanceof Et&&(Mo=Ot||rf(Mo)),Mo.apply(ps,qt)}return Et}function Fx(a,f){return function(y,E){return H9(y,a,f(E),{})}}function ch(a,f){return function(y,E){var L;if(y===n&&E===n)return f;if(y!==n&&(L=y),E!==n){if(L===n)return E;typeof y=="string"||typeof E=="string"?(y=yi(y),E=yi(E)):(y=yx(y),E=yx(E)),L=a(y,E)}return L}}function Ig(a){return Ao(function(f){return f=cn(f,Sr(wt())),Bt(function(y){var E=this;return a(f,function(L){return In(L,E,y)})})})}function fh(a,f){f=f===n?" ":yi(f);var y=f.length;if(y<2)return y?Pg(f,a):f;var E=Pg(f,fn(a/x(f)));return Er(f)?ua(P(E),0,a).join(""):E.slice(0,a)}function $8(a,f,y,E){var L=f&D,ie=rf(a);function ve(){for(var Se=-1,Ae=arguments.length,ze=-1,We=E.length,Xe=Y(We+Ae),ot=this&&this!==Dn&&this instanceof ve?ie:a;++ze<We;)Xe[ze]=E[ze];for(;Ae--;)Xe[ze++]=arguments[++Se];return In(ot,L?y:this,Xe)}return ve}function kx(a){return function(f,y,E){return E&&typeof E!="number"&&Br(f,y,E)&&(y=E=n),f=_o(f),y===n?(y=f,f=0):y=_o(y),E=E===n?f<y?1:-1:_o(E),s8(f,y,E,a)}}function dh(a){return function(f,y){return typeof f=="string"&&typeof y=="string"||(f=ki(f),y=ki(y)),a(f,y)}}function Ox(a,f,y,E,L,ie,ve,Se,Ae,ze){var We=f&T,Xe=We?ve:n,ot=We?n:ve,gt=We?ie:n,St=We?n:ie;f|=We?M:k,f&=~(We?k:M),f&C||(f&=-4);var Ot=[a,f,L,gt,Xe,St,ot,Se,Ae,ze],Et=y.apply(n,Ot);return zg(a)&&Hx(Et,Ot),Et.placeholder=E,Gx(Et,a,f)}function Lg(a){var f=Z[a];return function(y,E){if(y=ki(y),E=E==null?0:wn(Ft(E),292),E&&mi(y)){var L=(sn(y)+"e").split("e"),ie=f(L[0]+"e"+(+L[1]+E));return L=(sn(ie)+"e").split("e"),+(L[0]+"e"+(+L[1]-E))}return f(y)}}var x8=ll&&1/ra(new ll([,-0]))[1]==j?function(a){return new ll(a)}:sv;function Ix(a){return function(f){var y=Dr(f);return y==xt?Ln(f):y==He?c(f):pg(f,a(f))}}function Do(a,f,y,E,L,ie,ve,Se){var Ae=f&S;if(!Ae&&typeof a!="function")throw new re(o);var ze=E?E.length:0;if(ze||(f&=-97,E=L=n),ve=ve===n?ve:Ht(Ft(ve),0),Se=Se===n?Se:Ft(Se),ze-=L?L.length:0,f&k){var We=E,Xe=L;E=L=n}var ot=Ae?n:Ng(a),gt=[a,f,y,E,L,We,Xe,ie,ve,Se];if(ot&&I8(gt,ot),a=gt[0],f=gt[1],y=gt[2],E=gt[3],L=gt[4],Se=gt[9]=gt[9]===n?Ae?0:a.length:Ht(gt[9]-ze,0),!Se&&f&(T|O)&&(f&=-25),!f||f==D)var St=y8(a,f,y);else f==T||f==O?St=b8(a,f,Se):(f==M||f==(D|M))&&!L.length?St=$8(a,f,y,E):St=lh.apply(n,gt);var Ot=ot?gx:Hx;return Gx(Ot(St,gt),a,f)}function Lx(a,f,y,E){return a===n||hs(a,ke[y])&&!Ne.call(E,y)?f:a}function Bx(a,f,y,E,L,ie){return _n(a)&&_n(f)&&(ie.set(f,a),sh(a,f,n,Bx,ie),ie.delete(f)),a}function w8(a){return af(a)?n:a}function Vx(a,f,y,E,L,ie){var ve=y&$,Se=a.length,Ae=f.length;if(Se!=Ae&&!(ve&&Ae>Se))return!1;var ze=ie.get(a),We=ie.get(f);if(ze&&We)return ze==f&&We==a;var Xe=-1,ot=!0,gt=y&w?new Qa:n;for(ie.set(a,f),ie.set(f,a);++Xe<Se;){var St=a[Xe],Ot=f[Xe];if(E)var Et=ve?E(Ot,St,Xe,f,a,ie):E(St,Ot,Xe,a,f,ie);if(Et!==n){if(Et)continue;ot=!1;break}if(gt){if(!Fs(f,function(Vt,qt){if(!yn(gt,qt)&&(St===Vt||L(St,Vt,y,E,ie)))return gt.push(qt)})){ot=!1;break}}else if(!(St===Ot||L(St,Ot,y,E,ie))){ot=!1;break}}return ie.delete(a),ie.delete(f),ot}function C8(a,f,y,E,L,ie,ve){switch(y){case Ut:if(a.byteLength!=f.byteLength||a.byteOffset!=f.byteOffset)return!1;a=a.buffer,f=f.buffer;case Jt:return!(a.byteLength!=f.byteLength||!ie(new Fe(a),new Fe(f)));case De:case Ue:case ln:return hs(+a,+f);case Ve:return a.name==f.name&&a.message==f.message;case Te:case et:return a==f+"";case xt:var Se=Ln;case He:var Ae=E&$;if(Se||(Se=ra),a.size!=f.size&&!Ae)return!1;var ze=ve.get(a);if(ze)return ze==f;E|=w,ve.set(a,f);var We=Vx(Se(a),Se(f),E,L,ie,ve);return ve.delete(a),We;case Je:if(Xc)return Xc.call(a)==Xc.call(f)}return!1}function S8(a,f,y,E,L,ie){var ve=y&$,Se=Bg(a),Ae=Se.length,ze=Bg(f),We=ze.length;if(Ae!=We&&!ve)return!1;for(var Xe=Ae;Xe--;){var ot=Se[Xe];if(!(ve?ot in f:Ne.call(f,ot)))return!1}var gt=ie.get(a),St=ie.get(f);if(gt&&St)return gt==f&&St==a;var Ot=!0;ie.set(a,f),ie.set(f,a);for(var Et=ve;++Xe<Ae;){ot=Se[Xe];var Vt=a[ot],qt=f[ot];if(E)var $i=ve?E(qt,Vt,ot,f,a,ie):E(Vt,qt,ot,a,f,ie);if(!($i===n?Vt===qt||L(Vt,qt,y,E,ie):$i)){Ot=!1;break}Et||(Et=ot=="constructor")}if(Ot&&!Et){var Vr=a.constructor,xi=f.constructor;Vr!=xi&&"constructor"in a&&"constructor"in f&&!(typeof Vr=="function"&&Vr instanceof Vr&&typeof xi=="function"&&xi instanceof xi)&&(Ot=!1)}return ie.delete(a),ie.delete(f),Ot}function Ao(a){return Wg(qx(a,n,ew),a+"")}function Bg(a){return sx(a,dr,Kg)}function Vg(a){return sx(a,ti,Nx)}var Ng=Qd?function(a){return Qd.get(a)}:sv;function hh(a){for(var f=a.name+"",y=cl[f],E=Ne.call(cl,f)?y.length:0;E--;){var L=y[E],ie=L.func;if(ie==null||ie==a)return L.name}return f}function pl(a){var f=Ne.call(X,"placeholder")?X:a;return f.placeholder}function wt(){var a=X.iteratee||rv;return a=a===rv?ux:a,arguments.length?a(arguments[0],arguments[1]):a}function ph(a,f){var y=a.__data__;return R8(f)?y[typeof f=="string"?"string":"hash"]:y.map}function jg(a){for(var f=dr(a),y=f.length;y--;){var E=f[y],L=a[E];f[y]=[E,L,Ux(L)]}return f}function nu(a,f){var y=vg(a,f);return ax(y)?y:n}function E8(a){var f=Ne.call(a,Bn),y=a[Bn];try{a[Bn]=n;var E=!0}catch{}var L=Be.call(a);return E&&(f?a[Bn]=y:delete a[Bn]),L}var Kg=Pi?function(a){return a==null?[]:(a=I(a),Cr(Pi(a),function(f){return xn.call(a,f)}))}:ov,Nx=Pi?function(a){for(var f=[];a;)os(f,Kg(a)),a=Tt(a);return f}:ov,Dr=Lr;(fs&&Dr(new fs(new ArrayBuffer(1)))!=Ut||Ls&&Dr(new Ls)!=xt||ia&&Dr(ia.resolve())!=$e||ll&&Dr(new ll)!=He||Yc&&Dr(new Yc)!=bt)&&(Dr=function(a){var f=Lr(a),y=f==Rt?a.constructor:n,E=y?ru(y):"";if(E)switch(E){case a9:return Ut;case u9:return xt;case l9:return $e;case c9:return He;case f9:return bt}return f});function D8(a,f,y){for(var E=-1,L=y.length;++E<L;){var ie=y[E],ve=ie.size;switch(ie.type){case"drop":a+=ve;break;case"dropRight":f-=ve;break;case"take":f=wn(f,a+ve);break;case"takeRight":a=Ht(a,f-ve);break}}return{start:a,end:f}}function A8(a){var f=a.match(wr);return f?f[1].split(Hu):[]}function jx(a,f,y){f=aa(f,a);for(var E=-1,L=f.length,ie=!1;++E<L;){var ve=Ns(f[E]);if(!(ie=a!=null&&y(a,ve)))break;a=a[ve]}return ie||++E!=L?ie:(L=a==null?0:a.length,!!L&&xh(L)&&To(ve,L)&&(_t(a)||iu(a)))}function T8(a){var f=a.length,y=new a.constructor(f);return f&&typeof a[0]=="string"&&Ne.call(a,"index")&&(y.index=a.index,y.input=a.input),y}function Kx(a){return typeof a.constructor=="function"&&!sf(a)?fl(Tt(a)):{}}function P8(a,f,y){var E=a.constructor;switch(f){case Jt:return Og(a);case De:case Ue:return new E(+a);case Ut:return d8(a,y);case Yr:case Fr:case rn:case Pt:case Lt:case Yt:case sr:case Qi:case es:return Sx(a,y);case xt:return new E;case ln:case et:return new E(a);case Te:return h8(a);case He:return new E;case Je:return p8(a)}}function _8(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(Wu,`{
|
|
66
|
+
/* [wrapped with `+f+`] */
|
|
67
|
+
`)}function M8(a){return _t(a)||iu(a)||!!(fr&&a&&a[fr])}function To(a,f){var y=typeof a;return f=f??V,!!f&&(y=="number"||y!="symbol"&&As.test(a))&&a>-1&&a%1==0&&a<f}function Br(a,f,y){if(!_n(y))return!1;var E=typeof f;return(E=="number"?ei(y)&&To(f,y.length):E=="string"&&f in y)?hs(y[f],a):!1}function Ug(a,f){if(_t(a))return!1;var y=typeof a;return y=="number"||y=="symbol"||y=="boolean"||a==null||bi(a)?!0:qu.test(a)||!Oa.test(a)||f!=null&&a in I(f)}function R8(a){var f=typeof a;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?a!=="__proto__":a===null}function zg(a){var f=hh(a),y=X[f];if(typeof y!="function"||!(f in Kt.prototype))return!1;if(a===y)return!0;var E=Ng(y);return!!E&&a===E[0]}function F8(a){return!!ft&&ft in a}var k8=tt?Po:av;function sf(a){var f=a&&a.constructor,y=typeof f=="function"&&f.prototype||ke;return a===y}function Ux(a){return a===a&&!_n(a)}function zx(a,f){return function(y){return y==null?!1:y[a]===f&&(f!==n||a in I(y))}}function O8(a){var f=bh(a,function(E){return y.size===d&&y.clear(),E}),y=f.cache;return f}function I8(a,f){var y=a[1],E=f[1],L=y|E,ie=L<(D|S|N),ve=E==N&&y==T||E==N&&y==F&&a[7].length<=f[8]||E==(N|F)&&f[7].length<=f[8]&&y==T;if(!(ie||ve))return a;E&D&&(a[2]=f[2],L|=y&D?0:C);var Se=f[3];if(Se){var Ae=a[3];a[3]=Ae?Dx(Ae,Se,f[4]):Se,a[4]=Ae?Xr(a[3],h):f[4]}return Se=f[5],Se&&(Ae=a[5],a[5]=Ae?Ax(Ae,Se,f[6]):Se,a[6]=Ae?Xr(a[5],h):f[6]),Se=f[7],Se&&(a[7]=Se),E&N&&(a[8]=a[8]==null?f[8]:wn(a[8],f[8])),a[9]==null&&(a[9]=f[9]),a[0]=f[0],a[1]=L,a}function L8(a){var f=[];if(a!=null)for(var y in I(a))f.push(y);return f}function B8(a){return Be.call(a)}function qx(a,f,y){return f=Ht(f===n?a.length-1:f,0),function(){for(var E=arguments,L=-1,ie=Ht(E.length-f,0),ve=Y(ie);++L<ie;)ve[L]=E[f+L];L=-1;for(var Se=Y(f+1);++L<f;)Se[L]=E[L];return Se[f]=y(ve),In(a,this,Se)}}function Wx(a,f){return f.length<2?a:tu(a,Ri(f,0,-1))}function V8(a,f){for(var y=a.length,E=wn(f.length,y),L=Qr(a);E--;){var ie=f[E];a[E]=To(ie,y)?L[ie]:n}return a}function qg(a,f){if(!(f==="constructor"&&typeof a[f]=="function")&&f!="__proto__")return a[f]}var Hx=Yx(gx),of=dt||function(a,f){return Dn.setTimeout(a,f)},Wg=Yx(u8);function Gx(a,f,y){var E=f+"";return Wg(a,_8(E,N8(A8(E),y)))}function Yx(a){var f=0,y=0;return function(){var E=Is(),L=ne-(E-y);if(y=E,L>0){if(++f>=Ce)return arguments[0]}else f=0;return a.apply(n,arguments)}}function mh(a,f){var y=-1,E=a.length,L=E-1;for(f=f===n?E:f;++y<f;){var ie=Tg(y,L),ve=a[ie];a[ie]=a[y],a[y]=ve}return a.length=f,a}var Zx=O8(function(a){var f=[];return a.charCodeAt(0)===46&&f.push(""),a.replace(ts,function(y,E,L,ie){f.push(L?ie.replace(Zr,"$1"):E||y)}),f});function Ns(a){if(typeof a=="string"||bi(a))return a;var f=a+"";return f=="0"&&1/a==-1/0?"-0":f}function ru(a){if(a!=null){try{return Qe.call(a)}catch{}try{return a+""}catch{}}return""}function N8(a,f){return hn(Oe,function(y){var E="_."+y[0];f&y[1]&&!Rs(a,E)&&a.push(E)}),a.sort()}function Xx(a){if(a instanceof Kt)return a.clone();var f=new _i(a.__wrapped__,a.__chain__);return f.__actions__=Qr(a.__actions__),f.__index__=a.__index__,f.__values__=a.__values__,f}function j8(a,f,y){(y?Br(a,f,y):f===n)?f=1:f=Ht(Ft(f),0);var E=a==null?0:a.length;if(!E||f<1)return[];for(var L=0,ie=0,ve=Y(fn(E/f));L<E;)ve[ie++]=Ri(a,L,L+=f);return ve}function K8(a){for(var f=-1,y=a==null?0:a.length,E=0,L=[];++f<y;){var ie=a[f];ie&&(L[E++]=ie)}return L}function U8(){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 os(_t(y)?Qr(y):[y],br(f,1))}var z8=Bt(function(a,f){return Un(a)?Qc(a,br(f,1,Un,!0)):[]}),q8=Bt(function(a,f){var y=Fi(f);return Un(y)&&(y=n),Un(a)?Qc(a,br(f,1,Un,!0),wt(y,2)):[]}),W8=Bt(function(a,f){var y=Fi(f);return Un(y)&&(y=n),Un(a)?Qc(a,br(f,1,Un,!0),n,y):[]});function H8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),Ri(a,f<0?0:f,E)):[]}function G8(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),f=E-f,Ri(a,0,f<0?0:f)):[]}function Y8(a,f){return a&&a.length?ah(a,wt(f,3),!0,!0):[]}function Z8(a,f){return a&&a.length?ah(a,wt(f,3),!0):[]}function X8(a,f,y,E){var L=a==null?0:a.length;return L?(y&&typeof y!="number"&&Br(a,f,y)&&(y=0,E=L),U9(a,f,y,E)):[]}function Jx(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=y==null?0:Ft(y);return L<0&&(L=Ht(E+L,0)),Ya(a,wt(f,3),L)}function Qx(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=E-1;return y!==n&&(L=Ft(y),L=y<0?Ht(E+L,0):wn(L,E-1)),Ya(a,wt(f,3),L,!0)}function ew(a){var f=a==null?0:a.length;return f?br(a,1):[]}function J8(a){var f=a==null?0:a.length;return f?br(a,j):[]}function Q8(a,f){var y=a==null?0:a.length;return y?(f=f===n?1:Ft(f),br(a,f)):[]}function eL(a){for(var f=-1,y=a==null?0:a.length,E={};++f<y;){var L=a[f];E[L[0]]=L[1]}return E}function tw(a){return a&&a.length?a[0]:n}function tL(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=y==null?0:Ft(y);return L<0&&(L=Ht(E+L,0)),xo(a,f,L)}function nL(a){var f=a==null?0:a.length;return f?Ri(a,0,-1):[]}var rL=Bt(function(a){var f=cn(a,Fg);return f.length&&f[0]===a[0]?Cg(f):[]}),iL=Bt(function(a){var f=Fi(a),y=cn(a,Fg);return f===Fi(y)?f=n:y.pop(),y.length&&y[0]===a[0]?Cg(y,wt(f,2)):[]}),sL=Bt(function(a){var f=Fi(a),y=cn(a,Fg);return f=typeof f=="function"?f:n,f&&y.pop(),y.length&&y[0]===a[0]?Cg(y,n,f):[]});function oL(a,f){return a==null?"":us.call(a,f)}function Fi(a){var f=a==null?0:a.length;return f?a[f-1]:n}function aL(a,f,y){var E=a==null?0:a.length;if(!E)return-1;var L=E;return y!==n&&(L=Ft(y),L=L<0?Ht(E+L,0):wn(L,E-1)),f===f?v(a,f,L):Ya(a,qc,L,!0)}function uL(a,f){return a&&a.length?dx(a,Ft(f)):n}var lL=Bt(nw);function nw(a,f){return a&&a.length&&f&&f.length?Ag(a,f):a}function cL(a,f,y){return a&&a.length&&f&&f.length?Ag(a,f,wt(y,2)):a}function fL(a,f,y){return a&&a.length&&f&&f.length?Ag(a,f,n,y):a}var dL=Ao(function(a,f){var y=a==null?0:a.length,E=bg(a,f);return mx(a,cn(f,function(L){return To(L,y)?+L:L}).sort(Ex)),E});function hL(a,f){var y=[];if(!(a&&a.length))return y;var E=-1,L=[],ie=a.length;for(f=wt(f,3);++E<ie;){var ve=a[E];f(ve,E,a)&&(y.push(ve),L.push(E))}return mx(a,L),y}function Hg(a){return a==null?a:vi.call(a)}function pL(a,f,y){var E=a==null?0:a.length;return E?(y&&typeof y!="number"&&Br(a,f,y)?(f=0,y=E):(f=f==null?0:Ft(f),y=y===n?E:Ft(y)),Ri(a,f,y)):[]}function mL(a,f){return oh(a,f)}function gL(a,f,y){return _g(a,f,wt(y,2))}function vL(a,f){var y=a==null?0:a.length;if(y){var E=oh(a,f);if(E<y&&hs(a[E],f))return E}return-1}function yL(a,f){return oh(a,f,!0)}function bL(a,f,y){return _g(a,f,wt(y,2),!0)}function $L(a,f){var y=a==null?0:a.length;if(y){var E=oh(a,f,!0)-1;if(hs(a[E],f))return E}return-1}function xL(a){return a&&a.length?vx(a):[]}function wL(a,f){return a&&a.length?vx(a,wt(f,2)):[]}function CL(a){var f=a==null?0:a.length;return f?Ri(a,1,f):[]}function SL(a,f,y){return a&&a.length?(f=y||f===n?1:Ft(f),Ri(a,0,f<0?0:f)):[]}function EL(a,f,y){var E=a==null?0:a.length;return E?(f=y||f===n?1:Ft(f),f=E-f,Ri(a,f<0?0:f,E)):[]}function DL(a,f){return a&&a.length?ah(a,wt(f,3),!1,!0):[]}function AL(a,f){return a&&a.length?ah(a,wt(f,3)):[]}var TL=Bt(function(a){return oa(br(a,1,Un,!0))}),PL=Bt(function(a){var f=Fi(a);return Un(f)&&(f=n),oa(br(a,1,Un,!0),wt(f,2))}),_L=Bt(function(a){var f=Fi(a);return f=typeof f=="function"?f:n,oa(br(a,1,Un,!0),n,f)});function ML(a){return a&&a.length?oa(a):[]}function RL(a,f){return a&&a.length?oa(a,wt(f,2)):[]}function FL(a,f){return f=typeof f=="function"?f:n,a&&a.length?oa(a,n,f):[]}function Gg(a){if(!(a&&a.length))return[];var f=0;return a=Cr(a,function(y){if(Un(y))return f=Ht(y.length,f),!0}),al(f,function(y){return cn(a,sl(y))})}function rw(a,f){if(!(a&&a.length))return[];var y=Gg(a);return f==null?y:cn(y,function(E){return In(f,n,E)})}var kL=Bt(function(a,f){return Un(a)?Qc(a,f):[]}),OL=Bt(function(a){return Rg(Cr(a,Un))}),IL=Bt(function(a){var f=Fi(a);return Un(f)&&(f=n),Rg(Cr(a,Un),wt(f,2))}),LL=Bt(function(a){var f=Fi(a);return f=typeof f=="function"?f:n,Rg(Cr(a,Un),n,f)}),BL=Bt(Gg);function VL(a,f){return xx(a||[],f||[],Jc)}function NL(a,f){return xx(a||[],f||[],nf)}var jL=Bt(function(a){var f=a.length,y=f>1?a[f-1]:n;return y=typeof y=="function"?(a.pop(),y):n,rw(a,y)});function iw(a){var f=X(a);return f.__chain__=!0,f}function KL(a,f){return f(a),a}function gh(a,f){return f(a)}var UL=Ao(function(a){var f=a.length,y=f?a[0]:0,E=this.__wrapped__,L=function(ie){return bg(ie,a)};return f>1||this.__actions__.length||!(E instanceof Kt)||!To(y)?this.thru(L):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:gh,args:[L],thisArg:n}),new _i(E,this.__chain__).thru(function(ie){return f&&!ie.length&&ie.push(n),ie}))});function zL(){return iw(this)}function qL(){return new _i(this.value(),this.__chain__)}function WL(){this.__values__===n&&(this.__values__=yw(this.value()));var a=this.__index__>=this.__values__.length,f=a?n:this.__values__[this.__index__++];return{done:a,value:f}}function HL(){return this}function GL(a){for(var f,y=this;y instanceof th;){var E=Xx(y);E.__index__=0,E.__values__=n,f?L.__wrapped__=E:f=E;var L=E;y=y.__wrapped__}return L.__wrapped__=a,f}function YL(){var a=this.__wrapped__;if(a instanceof Kt){var f=a;return this.__actions__.length&&(f=new Kt(this)),f=f.reverse(),f.__actions__.push({func:gh,args:[Hg],thisArg:n}),new _i(f,this.__chain__)}return this.thru(Hg)}function ZL(){return $x(this.__wrapped__,this.__actions__)}var XL=uh(function(a,f,y){Ne.call(a,y)?++a[y]:Eo(a,y,1)});function JL(a,f,y){var E=_t(a)?$o:K9;return y&&Br(a,f,y)&&(f=n),E(a,wt(f,3))}function QL(a,f){var y=_t(a)?Cr:rx;return y(a,wt(f,3))}var eB=Mx(Jx),tB=Mx(Qx);function nB(a,f){return br(vh(a,f),1)}function rB(a,f){return br(vh(a,f),j)}function iB(a,f,y){return y=y===n?1:Ft(y),br(vh(a,f),y)}function sw(a,f){var y=_t(a)?hn:sa;return y(a,wt(f,3))}function ow(a,f){var y=_t(a)?lr:nx;return y(a,wt(f,3))}var sB=uh(function(a,f,y){Ne.call(a,y)?a[y].push(f):Eo(a,y,[f])});function oB(a,f,y,E){a=ei(a)?a:gl(a),y=y&&!E?Ft(y):0;var L=a.length;return y<0&&(y=Ht(L+y,0)),wh(a)?y<=L&&a.indexOf(f,y)>-1:!!L&&xo(a,f,y)>-1}var aB=Bt(function(a,f,y){var E=-1,L=typeof f=="function",ie=ei(a)?Y(a.length):[];return sa(a,function(ve){ie[++E]=L?In(f,ve,y):ef(ve,f,y)}),ie}),uB=uh(function(a,f,y){Eo(a,y,f)});function vh(a,f){var y=_t(a)?cn:lx;return y(a,wt(f,3))}function lB(a,f,y,E){return a==null?[]:(_t(f)||(f=f==null?[]:[f]),y=E?n:y,_t(y)||(y=y==null?[]:[y]),hx(a,f,y))}var cB=uh(function(a,f,y){a[y?0:1].push(f)},function(){return[[],[]]});function fB(a,f,y){var E=_t(a)?il:Wc,L=arguments.length<3;return E(a,wt(f,4),y,L,sa)}function dB(a,f,y){var E=_t(a)?Wa:Wc,L=arguments.length<3;return E(a,wt(f,4),y,L,nx)}function hB(a,f){var y=_t(a)?Cr:rx;return y(a,$h(wt(f,3)))}function pB(a){var f=_t(a)?J$:o8;return f(a)}function mB(a,f,y){(y?Br(a,f,y):f===n)?f=1:f=Ft(f);var E=_t(a)?L9:a8;return E(a,f)}function gB(a){var f=_t(a)?B9:l8;return f(a)}function vB(a){if(a==null)return 0;if(ei(a))return wh(a)?x(a):a.length;var f=Dr(a);return f==xt||f==He?a.size:Eg(a).length}function yB(a,f,y){var E=_t(a)?Fs:c8;return y&&Br(a,f,y)&&(f=n),E(a,wt(f,3))}var bB=Bt(function(a,f){if(a==null)return[];var y=f.length;return y>1&&Br(a,f[0],f[1])?f=[]:y>2&&Br(f[0],f[1],f[2])&&(f=[f[0]]),hx(a,br(f,1),[])}),yh=yr||function(){return Dn.Date.now()};function $B(a,f){if(typeof f!="function")throw new re(o);return a=Ft(a),function(){if(--a<1)return f.apply(this,arguments)}}function aw(a,f,y){return f=y?n:f,f=a&&f==null?a.length:f,Do(a,N,n,n,n,n,f)}function uw(a,f){var y;if(typeof f!="function")throw new re(o);return a=Ft(a),function(){return--a>0&&(y=f.apply(this,arguments)),a<=1&&(f=n),y}}var Yg=Bt(function(a,f,y){var E=D;if(y.length){var L=Xr(y,pl(Yg));E|=M}return Do(a,E,f,y,L)}),lw=Bt(function(a,f,y){var E=D|S;if(y.length){var L=Xr(y,pl(lw));E|=M}return Do(f,E,a,y,L)});function cw(a,f,y){f=y?n:f;var E=Do(a,T,n,n,n,n,n,f);return E.placeholder=cw.placeholder,E}function fw(a,f,y){f=y?n:f;var E=Do(a,O,n,n,n,n,n,f);return E.placeholder=fw.placeholder,E}function dw(a,f,y){var E,L,ie,ve,Se,Ae,ze=0,We=!1,Xe=!1,ot=!0;if(typeof a!="function")throw new re(o);f=ki(f)||0,_n(y)&&(We=!!y.leading,Xe="maxWait"in y,ie=Xe?Ht(ki(y.maxWait)||0,f):ie,ot="trailing"in y?!!y.trailing:ot);function gt(zn){var ps=E,Mo=L;return E=L=n,ze=zn,ve=a.apply(Mo,ps),ve}function St(zn){return ze=zn,Se=of(Vt,f),We?gt(zn):ve}function Ot(zn){var ps=zn-Ae,Mo=zn-ze,Mw=f-ps;return Xe?wn(Mw,ie-Mo):Mw}function Et(zn){var ps=zn-Ae,Mo=zn-ze;return Ae===n||ps>=f||ps<0||Xe&&Mo>=ie}function Vt(){var zn=yh();if(Et(zn))return qt(zn);Se=of(Vt,Ot(zn))}function qt(zn){return Se=n,ot&&E?gt(zn):(E=L=n,ve)}function $i(){Se!==n&&wx(Se),ze=0,E=Ae=L=Se=n}function Vr(){return Se===n?ve:qt(yh())}function xi(){var zn=yh(),ps=Et(zn);if(E=arguments,L=this,Ae=zn,ps){if(Se===n)return St(Ae);if(Xe)return wx(Se),Se=of(Vt,f),gt(Ae)}return Se===n&&(Se=of(Vt,f)),ve}return xi.cancel=$i,xi.flush=Vr,xi}var xB=Bt(function(a,f){return tx(a,1,f)}),wB=Bt(function(a,f,y){return tx(a,ki(f)||0,y)});function CB(a){return Do(a,ae)}function bh(a,f){if(typeof a!="function"||f!=null&&typeof f!="function")throw new re(o);var y=function(){var E=arguments,L=f?f.apply(this,E):E[0],ie=y.cache;if(ie.has(L))return ie.get(L);var ve=a.apply(this,E);return y.cache=ie.set(L,ve)||ie,ve};return y.cache=new(bh.Cache||So),y}bh.Cache=So;function $h(a){if(typeof a!="function")throw new re(o);return function(){var f=arguments;switch(f.length){case 0:return!a.call(this);case 1:return!a.call(this,f[0]);case 2:return!a.call(this,f[0],f[1]);case 3:return!a.call(this,f[0],f[1],f[2])}return!a.apply(this,f)}}function SB(a){return uw(2,a)}var EB=f8(function(a,f){f=f.length==1&&_t(f[0])?cn(f[0],Sr(wt())):cn(br(f,1),Sr(wt()));var y=f.length;return Bt(function(E){for(var L=-1,ie=wn(E.length,y);++L<ie;)E[L]=f[L].call(this,E[L]);return In(a,this,E)})}),Zg=Bt(function(a,f){var y=Xr(f,pl(Zg));return Do(a,M,n,f,y)}),hw=Bt(function(a,f){var y=Xr(f,pl(hw));return Do(a,k,n,f,y)}),DB=Ao(function(a,f){return Do(a,F,n,n,n,f)});function AB(a,f){if(typeof a!="function")throw new re(o);return f=f===n?f:Ft(f),Bt(a,f)}function TB(a,f){if(typeof a!="function")throw new re(o);return f=f==null?0:Ht(Ft(f),0),Bt(function(y){var E=y[f],L=ua(y,0,f);return E&&os(L,E),In(a,this,L)})}function PB(a,f,y){var E=!0,L=!0;if(typeof a!="function")throw new re(o);return _n(y)&&(E="leading"in y?!!y.leading:E,L="trailing"in y?!!y.trailing:L),dw(a,f,{leading:E,maxWait:f,trailing:L})}function _B(a){return aw(a,1)}function MB(a,f){return Zg(kg(f),a)}function RB(){if(!arguments.length)return[];var a=arguments[0];return _t(a)?a:[a]}function FB(a){return Mi(a,b)}function kB(a,f){return f=typeof f=="function"?f:n,Mi(a,b,f)}function OB(a){return Mi(a,m|b)}function IB(a,f){return f=typeof f=="function"?f:n,Mi(a,m|b,f)}function LB(a,f){return f==null||ex(a,f,dr(f))}function hs(a,f){return a===f||a!==a&&f!==f}var BB=dh(wg),VB=dh(function(a,f){return a>=f}),iu=ox(function(){return arguments}())?ox:function(a){return Vn(a)&&Ne.call(a,"callee")&&!xn.call(a,"callee")},_t=Y.isArray,NB=bo?Sr(bo):G9;function ei(a){return a!=null&&xh(a.length)&&!Po(a)}function Un(a){return Vn(a)&&ei(a)}function jB(a){return a===!0||a===!1||Vn(a)&&Lr(a)==De}var la=as||av,KB=Yd?Sr(Yd):Y9;function UB(a){return Vn(a)&&a.nodeType===1&&!af(a)}function zB(a){if(a==null)return!0;if(ei(a)&&(_t(a)||typeof a=="string"||typeof a.splice=="function"||la(a)||ml(a)||iu(a)))return!a.length;var f=Dr(a);if(f==xt||f==He)return!a.size;if(sf(a))return!Eg(a).length;for(var y in a)if(Ne.call(a,y))return!1;return!0}function qB(a,f){return tf(a,f)}function WB(a,f,y){y=typeof y=="function"?y:n;var E=y?y(a,f):n;return E===n?tf(a,f,n,y):!!E}function Xg(a){if(!Vn(a))return!1;var f=Lr(a);return f==Ve||f==Re||typeof a.message=="string"&&typeof a.name=="string"&&!af(a)}function HB(a){return typeof a=="number"&&mi(a)}function Po(a){if(!_n(a))return!1;var f=Lr(a);return f==Le||f==nt||f==Ge||f==Ee}function pw(a){return typeof a=="number"&&a==Ft(a)}function xh(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=V}function _n(a){var f=typeof a;return a!=null&&(f=="object"||f=="function")}function Vn(a){return a!=null&&typeof a=="object"}var mw=Zd?Sr(Zd):X9;function GB(a,f){return a===f||Sg(a,f,jg(f))}function YB(a,f,y){return y=typeof y=="function"?y:n,Sg(a,f,jg(f),y)}function ZB(a){return gw(a)&&a!=+a}function XB(a){if(k8(a))throw new fe(s);return ax(a)}function JB(a){return a===null}function QB(a){return a==null}function gw(a){return typeof a=="number"||Vn(a)&&Lr(a)==ln}function af(a){if(!Vn(a)||Lr(a)!=Rt)return!1;var f=Tt(a);if(f===null)return!0;var y=Ne.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&Qe.call(y)==be}var Jg=Uc?Sr(Uc):J9;function eV(a){return pw(a)&&a>=-9007199254740991&&a<=V}var vw=na?Sr(na):Q9;function wh(a){return typeof a=="string"||!_t(a)&&Vn(a)&&Lr(a)==et}function bi(a){return typeof a=="symbol"||Vn(a)&&Lr(a)==Je}var ml=ss?Sr(ss):e8;function tV(a){return a===n}function nV(a){return Vn(a)&&Dr(a)==bt}function rV(a){return Vn(a)&&Lr(a)==gn}var iV=dh(Dg),sV=dh(function(a,f){return a<=f});function yw(a){if(!a)return[];if(ei(a))return wh(a)?P(a):Qr(a);if(Xn&&a[Xn])return Os(a[Xn]());var f=Dr(a),y=f==xt?Ln:f==He?ra:gl;return y(a)}function _o(a){if(!a)return a===0?a:0;if(a=ki(a),a===j||a===-1/0){var f=a<0?-1:1;return f*ge}return a===a?a:0}function Ft(a){var f=_o(a),y=f%1;return f===f?y?f-y:f:0}function bw(a){return a?eu(Ft(a),0,J):0}function ki(a){if(typeof a=="number")return a;if(bi(a))return U;if(_n(a)){var f=typeof a.valueOf=="function"?a.valueOf():a;a=_n(f)?f+"":f}if(typeof a!="string")return a===0?a:+a;a=Jd(a);var y=fi.test(a);return y||Ia.test(a)?nr(a.slice(2),y?2:8):rs.test(a)?U:+a}function $w(a){return Vs(a,ti(a))}function oV(a){return a?eu(Ft(a),-9007199254740991,V):a===0?a:0}function sn(a){return a==null?"":yi(a)}var aV=dl(function(a,f){if(sf(f)||ei(f)){Vs(f,dr(f),a);return}for(var y in f)Ne.call(f,y)&&Jc(a,y,f[y])}),xw=dl(function(a,f){Vs(f,ti(f),a)}),Ch=dl(function(a,f,y,E){Vs(f,ti(f),a,E)}),uV=dl(function(a,f,y,E){Vs(f,dr(f),a,E)}),lV=Ao(bg);function cV(a,f){var y=fl(a);return f==null?y:Q$(y,f)}var fV=Bt(function(a,f){a=I(a);var y=-1,E=f.length,L=E>2?f[2]:n;for(L&&Br(f[0],f[1],L)&&(E=1);++y<E;)for(var ie=f[y],ve=ti(ie),Se=-1,Ae=ve.length;++Se<Ae;){var ze=ve[Se],We=a[ze];(We===n||hs(We,ke[ze])&&!Ne.call(a,ze))&&(a[ze]=ie[ze])}return a}),dV=Bt(function(a){return a.push(n,Bx),In(ww,n,a)});function hV(a,f){return zc(a,wt(f,3),Bs)}function pV(a,f){return zc(a,wt(f,3),xg)}function mV(a,f){return a==null?a:$g(a,wt(f,3),ti)}function gV(a,f){return a==null?a:ix(a,wt(f,3),ti)}function vV(a,f){return a&&Bs(a,wt(f,3))}function yV(a,f){return a&&xg(a,wt(f,3))}function bV(a){return a==null?[]:ih(a,dr(a))}function $V(a){return a==null?[]:ih(a,ti(a))}function Qg(a,f,y){var E=a==null?n:tu(a,f);return E===n?y:E}function xV(a,f){return a!=null&&jx(a,f,z9)}function ev(a,f){return a!=null&&jx(a,f,q9)}var wV=Fx(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),a[f]=y},nv(ni)),CV=Fx(function(a,f,y){f!=null&&typeof f.toString!="function"&&(f=Be.call(f)),Ne.call(a,f)?a[f].push(y):a[f]=[y]},wt),SV=Bt(ef);function dr(a){return ei(a)?X$(a):Eg(a)}function ti(a){return ei(a)?X$(a,!0):t8(a)}function EV(a,f){var y={};return f=wt(f,3),Bs(a,function(E,L,ie){Eo(y,f(E,L,ie),E)}),y}function DV(a,f){var y={};return f=wt(f,3),Bs(a,function(E,L,ie){Eo(y,L,f(E,L,ie))}),y}var AV=dl(function(a,f,y){sh(a,f,y)}),ww=dl(function(a,f,y,E){sh(a,f,y,E)}),TV=Ao(function(a,f){var y={};if(a==null)return y;var E=!1;f=cn(f,function(ie){return ie=aa(ie,a),E||(E=ie.length>1),ie}),Vs(a,Vg(a),y),E&&(y=Mi(y,m|g|b,w8));for(var L=f.length;L--;)Mg(y,f[L]);return y});function PV(a,f){return Cw(a,$h(wt(f)))}var _V=Ao(function(a,f){return a==null?{}:r8(a,f)});function Cw(a,f){if(a==null)return{};var y=cn(Vg(a),function(E){return[E]});return f=wt(f),px(a,y,function(E,L){return f(E,L[0])})}function MV(a,f,y){f=aa(f,a);var E=-1,L=f.length;for(L||(L=1,a=n);++E<L;){var ie=a==null?n:a[Ns(f[E])];ie===n&&(E=L,ie=y),a=Po(ie)?ie.call(a):ie}return a}function RV(a,f,y){return a==null?a:nf(a,f,y)}function FV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:nf(a,f,y,E)}var Sw=Ix(dr),Ew=Ix(ti);function kV(a,f,y){var E=_t(a),L=E||la(a)||ml(a);if(f=wt(f,4),y==null){var ie=a&&a.constructor;L?y=E?new ie:[]:_n(a)?y=Po(ie)?fl(Tt(a)):{}:y={}}return(L?hn:Bs)(a,function(ve,Se,Ae){return f(y,ve,Se,Ae)}),y}function OV(a,f){return a==null?!0:Mg(a,f)}function IV(a,f,y){return a==null?a:bx(a,f,kg(y))}function LV(a,f,y,E){return E=typeof E=="function"?E:n,a==null?a:bx(a,f,kg(y),E)}function gl(a){return a==null?[]:Hc(a,dr(a))}function BV(a){return a==null?[]:Hc(a,ti(a))}function VV(a,f,y){return y===n&&(y=f,f=n),y!==n&&(y=ki(y),y=y===y?y:0),f!==n&&(f=ki(f),f=f===f?f:0),eu(ki(a),f,y)}function NV(a,f,y){return f=_o(f),y===n?(y=f,f=0):y=_o(y),a=ki(a),W9(a,f,y)}function jV(a,f,y){if(y&&typeof y!="boolean"&&Br(a,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof a=="boolean"&&(y=a,a=n)),a===n&&f===n?(a=0,f=1):(a=_o(a),f===n?(f=a,a=0):f=_o(f)),a>f){var E=a;a=f,f=E}if(y||a%1||f%1){var L=cs();return wn(a+L*(f-a+$n("1e-"+((L+"").length-1))),f)}return Tg(a,f)}var KV=hl(function(a,f,y){return f=f.toLowerCase(),a+(y?Dw(f):f)});function Dw(a){return tv(sn(a).toLowerCase())}function Aw(a){return a=sn(a),a&&a.replace(di,gg).replace(go,"")}function UV(a,f,y){a=sn(a),f=yi(f);var E=a.length;y=y===n?E:eu(Ft(y),0,E);var L=y;return y-=f.length,y>=0&&a.slice(y,L)==f}function zV(a){return a=sn(a),a&&Fc.test(a)?a.replace(ci,wo):a}function qV(a){return a=sn(a),a&&vt.test(a)?a.replace(ns,"\\$&"):a}var WV=hl(function(a,f,y){return a+(y?"-":"")+f.toLowerCase()}),HV=hl(function(a,f,y){return a+(y?" ":"")+f.toLowerCase()}),GV=_x("toLowerCase");function YV(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;if(!f||E>=f)return a;var L=(f-E)/2;return fh(Jr(L),y)+a+fh(fn(L),y)}function ZV(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;return f&&E<f?a+fh(f-E,y):a}function XV(a,f,y){a=sn(a),f=Ft(f);var E=f?x(a):0;return f&&E<f?fh(f-E,y)+a:a}function JV(a,f,y){return y||f==null?f=0:f&&(f=+f),gi(sn(a).replace(En,""),f||0)}function QV(a,f,y){return(y?Br(a,f,y):f===n)?f=1:f=Ft(f),Pg(sn(a),f)}function eN(){var a=arguments,f=sn(a[0]);return a.length<3?f:f.replace(a[1],a[2])}var tN=hl(function(a,f,y){return a+(y?"_":"")+f.toLowerCase()});function nN(a,f,y){return y&&typeof y!="number"&&Br(a,f,y)&&(f=y=n),y=y===n?J:y>>>0,y?(a=sn(a),a&&(typeof f=="string"||f!=null&&!Jg(f))&&(f=yi(f),!f&&Er(a))?ua(P(a),0,y):a.split(f,y)):[]}var rN=hl(function(a,f,y){return a+(y?" ":"")+tv(f)});function iN(a,f,y){return a=sn(a),y=y==null?0:eu(Ft(y),0,a.length),f=yi(f),a.slice(y,y+f.length)==f}function sN(a,f,y){var E=X.templateSettings;y&&Br(a,f,y)&&(f=n),a=sn(a),f=Ch({},f,E,Lx);var L=Ch({},f.imports,E.imports,Lx),ie=dr(L),ve=Hc(L,ie),Se,Ae,ze=0,We=f.interpolate||On,Xe="__p += '",ot=B((f.escape||On).source+"|"+We.source+"|"+(We===zu?st:On).source+"|"+(f.evaluate||On).source+"|$","g"),gt="//# sourceURL="+(Ne.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yo+"]")+`
|
|
68
|
+
`;a.replace(ot,function(Et,Vt,qt,$i,Vr,xi){return qt||(qt=$i),Xe+=a.slice(ze,xi).replace(Jo,pi),Vt&&(Se=!0,Xe+=`' +
|
|
69
|
+
__e(`+Vt+`) +
|
|
70
|
+
'`),Vr&&(Ae=!0,Xe+=`';
|
|
71
|
+
`+Vr+`;
|
|
72
|
+
__p += '`),qt&&(Xe+=`' +
|
|
73
|
+
((__t = (`+qt+`)) == null ? '' : __t) +
|
|
74
|
+
'`),ze=xi+Et.length,Et}),Xe+=`';
|
|
75
|
+
`;var St=Ne.call(f,"variable")&&f.variable;if(!St)Xe=`with (obj) {
|
|
76
|
+
`+Xe+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(Oc.test(St))throw new fe(u);Xe=(Ae?Xe.replace(Ci,""):Xe).replace(Ds,"$1").replace(ka,"$1;"),Xe="function("+(St||"obj")+`) {
|
|
79
|
+
`+(St?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(Se?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+Xe+`return __p
|
|
84
|
+
}`;var Ot=Pw(function(){return H(ie,gt+"return "+Xe).apply(n,ve)});if(Ot.source=Xe,Xg(Ot))throw Ot;return Ot}function oN(a){return sn(a).toLowerCase()}function aN(a){return sn(a).toUpperCase()}function uN(a,f,y){if(a=sn(a),a&&(y||f===n))return Jd(a);if(!a||!(f=yi(f)))return a;var E=P(a),L=P(f),ie=ul(E,L),ve=cr(E,L)+1;return ua(E,ie,ve).join("")}function lN(a,f,y){if(a=sn(a),a&&(y||f===n))return a.slice(0,_(a)+1);if(!a||!(f=yi(f)))return a;var E=P(a),L=cr(E,P(f))+1;return ua(E,0,L).join("")}function cN(a,f,y){if(a=sn(a),a&&(y||f===n))return a.replace(En,"");if(!a||!(f=yi(f)))return a;var E=P(a),L=ul(E,P(f));return ua(E,L).join("")}function fN(a,f){var y=oe,E=W;if(_n(f)){var L="separator"in f?f.separator:L;y="length"in f?Ft(f.length):y,E="omission"in f?yi(f.omission):E}a=sn(a);var ie=a.length;if(Er(a)){var ve=P(a);ie=ve.length}if(y>=ie)return a;var Se=y-x(E);if(Se<1)return E;var Ae=ve?ua(ve,0,Se).join(""):a.slice(0,Se);if(L===n)return Ae+E;if(ve&&(Se+=Ae.length-Se),Jg(L)){if(a.slice(Se).search(L)){var ze,We=Ae;for(L.global||(L=B(L.source,sn(dn.exec(L))+"g")),L.lastIndex=0;ze=L.exec(We);)var Xe=ze.index;Ae=Ae.slice(0,Xe===n?Se:Xe)}}else if(a.indexOf(yi(L),Se)!=Se){var ot=Ae.lastIndexOf(L);ot>-1&&(Ae=Ae.slice(0,ot))}return Ae+E}function dN(a){return a=sn(a),a&&ao.test(a)?a.replace(yt,q):a}var hN=hl(function(a,f,y){return a+(y?" ":"")+f.toUpperCase()}),tv=_x("toUpperCase");function Tw(a,f,y){return a=sn(a),f=y?n:f,f===n?Gc(a)?ye(a):hg(a):a.match(f)||[]}var Pw=Bt(function(a,f){try{return In(a,n,f)}catch(y){return Xg(y)?y:new fe(y)}}),pN=Ao(function(a,f){return hn(f,function(y){y=Ns(y),Eo(a,y,Yg(a[y],a))}),a});function mN(a){var f=a==null?0:a.length,y=wt();return a=f?cn(a,function(E){if(typeof E[1]!="function")throw new re(o);return[y(E[0]),E[1]]}):[],Bt(function(E){for(var L=-1;++L<f;){var ie=a[L];if(In(ie[0],this,E))return In(ie[1],this,E)}})}function gN(a){return j9(Mi(a,m))}function nv(a){return function(){return a}}function vN(a,f){return a==null||a!==a?f:a}var yN=Rx(),bN=Rx(!0);function ni(a){return a}function rv(a){return ux(typeof a=="function"?a:Mi(a,m))}function $N(a){return cx(Mi(a,m))}function xN(a,f){return fx(a,Mi(f,m))}var wN=Bt(function(a,f){return function(y){return ef(y,a,f)}}),CN=Bt(function(a,f){return function(y){return ef(a,y,f)}});function iv(a,f,y){var E=dr(f),L=ih(f,E);y==null&&!(_n(f)&&(L.length||!E.length))&&(y=f,f=a,a=this,L=ih(f,dr(f)));var ie=!(_n(y)&&"chain"in y)||!!y.chain,ve=Po(a);return hn(L,function(Se){var Ae=f[Se];a[Se]=Ae,ve&&(a.prototype[Se]=function(){var ze=this.__chain__;if(ie||ze){var We=a(this.__wrapped__),Xe=We.__actions__=Qr(this.__actions__);return Xe.push({func:Ae,args:arguments,thisArg:a}),We.__chain__=ze,We}return Ae.apply(a,os([this.value()],arguments))})}),a}function SN(){return Dn._===this&&(Dn._=ce),this}function sv(){}function EN(a){return a=Ft(a),Bt(function(f){return dx(f,a)})}var DN=Ig(cn),AN=Ig($o),TN=Ig(Fs);function _w(a){return Ug(a)?sl(Ns(a)):i8(a)}function PN(a){return function(f){return a==null?n:tu(a,f)}}var _N=kx(),MN=kx(!0);function ov(){return[]}function av(){return!1}function RN(){return{}}function FN(){return""}function kN(){return!0}function ON(a,f){if(a=Ft(a),a<1||a>V)return[];var y=J,E=wn(a,J);f=wt(f),a-=J;for(var L=al(E,f);++y<a;)f(y);return L}function IN(a){return _t(a)?cn(a,Ns):bi(a)?[a]:Qr(Zx(sn(a)))}function LN(a){var f=++at;return sn(a)+f}var BN=ch(function(a,f){return a+f},0),VN=Lg("ceil"),NN=ch(function(a,f){return a/f},1),jN=Lg("floor");function KN(a){return a&&a.length?rh(a,ni,wg):n}function UN(a,f){return a&&a.length?rh(a,wt(f,2),wg):n}function zN(a){return Za(a,ni)}function qN(a,f){return Za(a,wt(f,2))}function WN(a){return a&&a.length?rh(a,ni,Dg):n}function HN(a,f){return a&&a.length?rh(a,wt(f,2),Dg):n}var GN=ch(function(a,f){return a*f},1),YN=Lg("round"),ZN=ch(function(a,f){return a-f},0);function XN(a){return a&&a.length?ks(a,ni):0}function JN(a,f){return a&&a.length?ks(a,wt(f,2)):0}return X.after=$B,X.ary=aw,X.assign=aV,X.assignIn=xw,X.assignInWith=Ch,X.assignWith=uV,X.at=lV,X.before=uw,X.bind=Yg,X.bindAll=pN,X.bindKey=lw,X.castArray=RB,X.chain=iw,X.chunk=j8,X.compact=K8,X.concat=U8,X.cond=mN,X.conforms=gN,X.constant=nv,X.countBy=XL,X.create=cV,X.curry=cw,X.curryRight=fw,X.debounce=dw,X.defaults=fV,X.defaultsDeep=dV,X.defer=xB,X.delay=wB,X.difference=z8,X.differenceBy=q8,X.differenceWith=W8,X.drop=H8,X.dropRight=G8,X.dropRightWhile=Y8,X.dropWhile=Z8,X.fill=X8,X.filter=QL,X.flatMap=nB,X.flatMapDeep=rB,X.flatMapDepth=iB,X.flatten=ew,X.flattenDeep=J8,X.flattenDepth=Q8,X.flip=CB,X.flow=yN,X.flowRight=bN,X.fromPairs=eL,X.functions=bV,X.functionsIn=$V,X.groupBy=sB,X.initial=nL,X.intersection=rL,X.intersectionBy=iL,X.intersectionWith=sL,X.invert=wV,X.invertBy=CV,X.invokeMap=aB,X.iteratee=rv,X.keyBy=uB,X.keys=dr,X.keysIn=ti,X.map=vh,X.mapKeys=EV,X.mapValues=DV,X.matches=$N,X.matchesProperty=xN,X.memoize=bh,X.merge=AV,X.mergeWith=ww,X.method=wN,X.methodOf=CN,X.mixin=iv,X.negate=$h,X.nthArg=EN,X.omit=TV,X.omitBy=PV,X.once=SB,X.orderBy=lB,X.over=DN,X.overArgs=EB,X.overEvery=AN,X.overSome=TN,X.partial=Zg,X.partialRight=hw,X.partition=cB,X.pick=_V,X.pickBy=Cw,X.property=_w,X.propertyOf=PN,X.pull=lL,X.pullAll=nw,X.pullAllBy=cL,X.pullAllWith=fL,X.pullAt=dL,X.range=_N,X.rangeRight=MN,X.rearg=DB,X.reject=hB,X.remove=hL,X.rest=AB,X.reverse=Hg,X.sampleSize=mB,X.set=RV,X.setWith=FV,X.shuffle=gB,X.slice=pL,X.sortBy=bB,X.sortedUniq=xL,X.sortedUniqBy=wL,X.split=nN,X.spread=TB,X.tail=CL,X.take=SL,X.takeRight=EL,X.takeRightWhile=DL,X.takeWhile=AL,X.tap=KL,X.throttle=PB,X.thru=gh,X.toArray=yw,X.toPairs=Sw,X.toPairsIn=Ew,X.toPath=IN,X.toPlainObject=$w,X.transform=kV,X.unary=_B,X.union=TL,X.unionBy=PL,X.unionWith=_L,X.uniq=ML,X.uniqBy=RL,X.uniqWith=FL,X.unset=OV,X.unzip=Gg,X.unzipWith=rw,X.update=IV,X.updateWith=LV,X.values=gl,X.valuesIn=BV,X.without=kL,X.words=Tw,X.wrap=MB,X.xor=OL,X.xorBy=IL,X.xorWith=LL,X.zip=BL,X.zipObject=VL,X.zipObjectDeep=NL,X.zipWith=jL,X.entries=Sw,X.entriesIn=Ew,X.extend=xw,X.extendWith=Ch,iv(X,X),X.add=BN,X.attempt=Pw,X.camelCase=KV,X.capitalize=Dw,X.ceil=VN,X.clamp=VV,X.clone=FB,X.cloneDeep=OB,X.cloneDeepWith=IB,X.cloneWith=kB,X.conformsTo=LB,X.deburr=Aw,X.defaultTo=vN,X.divide=NN,X.endsWith=UV,X.eq=hs,X.escape=zV,X.escapeRegExp=qV,X.every=JL,X.find=eB,X.findIndex=Jx,X.findKey=hV,X.findLast=tB,X.findLastIndex=Qx,X.findLastKey=pV,X.floor=jN,X.forEach=sw,X.forEachRight=ow,X.forIn=mV,X.forInRight=gV,X.forOwn=vV,X.forOwnRight=yV,X.get=Qg,X.gt=BB,X.gte=VB,X.has=xV,X.hasIn=ev,X.head=tw,X.identity=ni,X.includes=oB,X.indexOf=tL,X.inRange=NV,X.invoke=SV,X.isArguments=iu,X.isArray=_t,X.isArrayBuffer=NB,X.isArrayLike=ei,X.isArrayLikeObject=Un,X.isBoolean=jB,X.isBuffer=la,X.isDate=KB,X.isElement=UB,X.isEmpty=zB,X.isEqual=qB,X.isEqualWith=WB,X.isError=Xg,X.isFinite=HB,X.isFunction=Po,X.isInteger=pw,X.isLength=xh,X.isMap=mw,X.isMatch=GB,X.isMatchWith=YB,X.isNaN=ZB,X.isNative=XB,X.isNil=QB,X.isNull=JB,X.isNumber=gw,X.isObject=_n,X.isObjectLike=Vn,X.isPlainObject=af,X.isRegExp=Jg,X.isSafeInteger=eV,X.isSet=vw,X.isString=wh,X.isSymbol=bi,X.isTypedArray=ml,X.isUndefined=tV,X.isWeakMap=nV,X.isWeakSet=rV,X.join=oL,X.kebabCase=WV,X.last=Fi,X.lastIndexOf=aL,X.lowerCase=HV,X.lowerFirst=GV,X.lt=iV,X.lte=sV,X.max=KN,X.maxBy=UN,X.mean=zN,X.meanBy=qN,X.min=WN,X.minBy=HN,X.stubArray=ov,X.stubFalse=av,X.stubObject=RN,X.stubString=FN,X.stubTrue=kN,X.multiply=GN,X.nth=uL,X.noConflict=SN,X.noop=sv,X.now=yh,X.pad=YV,X.padEnd=ZV,X.padStart=XV,X.parseInt=JV,X.random=jV,X.reduce=fB,X.reduceRight=dB,X.repeat=QV,X.replace=eN,X.result=MV,X.round=YN,X.runInContext=R,X.sample=pB,X.size=vB,X.snakeCase=tN,X.some=yB,X.sortedIndex=mL,X.sortedIndexBy=gL,X.sortedIndexOf=vL,X.sortedLastIndex=yL,X.sortedLastIndexBy=bL,X.sortedLastIndexOf=$L,X.startCase=rN,X.startsWith=iN,X.subtract=ZN,X.sum=XN,X.sumBy=JN,X.template=sN,X.times=ON,X.toFinite=_o,X.toInteger=Ft,X.toLength=bw,X.toLower=oN,X.toNumber=ki,X.toSafeInteger=oV,X.toString=sn,X.toUpper=aN,X.trim=uN,X.trimEnd=lN,X.trimStart=cN,X.truncate=fN,X.unescape=dN,X.uniqueId=LN,X.upperCase=hN,X.upperFirst=tv,X.each=sw,X.eachRight=ow,X.first=tw,iv(X,function(){var a={};return Bs(X,function(f,y){Ne.call(X.prototype,y)||(a[y]=f)}),a}(),{chain:!1}),X.VERSION=r,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){X[a].placeholder=X}),hn(["drop","take"],function(a,f){Kt.prototype[a]=function(y){y=y===n?1:Ht(Ft(y),0);var E=this.__filtered__&&!f?new Kt(this):this.clone();return E.__filtered__?E.__takeCount__=wn(y,E.__takeCount__):E.__views__.push({size:wn(y,J),type:a+(E.__dir__<0?"Right":"")}),E},Kt.prototype[a+"Right"]=function(y){return this.reverse()[a](y).reverse()}}),hn(["filter","map","takeWhile"],function(a,f){var y=f+1,E=y==se||y==K;Kt.prototype[a]=function(L){var ie=this.clone();return ie.__iteratees__.push({iteratee:wt(L,3),type:y}),ie.__filtered__=ie.__filtered__||E,ie}}),hn(["head","last"],function(a,f){var y="take"+(f?"Right":"");Kt.prototype[a]=function(){return this[y](1).value()[0]}}),hn(["initial","tail"],function(a,f){var y="drop"+(f?"":"Right");Kt.prototype[a]=function(){return this.__filtered__?new Kt(this):this[y](1)}}),Kt.prototype.compact=function(){return this.filter(ni)},Kt.prototype.find=function(a){return this.filter(a).head()},Kt.prototype.findLast=function(a){return this.reverse().find(a)},Kt.prototype.invokeMap=Bt(function(a,f){return typeof a=="function"?new Kt(this):this.map(function(y){return ef(y,a,f)})}),Kt.prototype.reject=function(a){return this.filter($h(wt(a)))},Kt.prototype.slice=function(a,f){a=Ft(a);var y=this;return y.__filtered__&&(a>0||f<0)?new Kt(y):(a<0?y=y.takeRight(-a):a&&(y=y.drop(a)),f!==n&&(f=Ft(f),y=f<0?y.dropRight(-f):y.take(f-a)),y)},Kt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Kt.prototype.toArray=function(){return this.take(J)},Bs(Kt.prototype,function(a,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),L=X[E?"take"+(f=="last"?"Right":""):f],ie=E||/^find/.test(f);L&&(X.prototype[f]=function(){var ve=this.__wrapped__,Se=E?[1]:arguments,Ae=ve instanceof Kt,ze=Se[0],We=Ae||_t(ve),Xe=function(Vt){var qt=L.apply(X,os([Vt],Se));return E&&ot?qt[0]:qt};We&&y&&typeof ze=="function"&&ze.length!=1&&(Ae=We=!1);var ot=this.__chain__,gt=!!this.__actions__.length,St=ie&&!ot,Ot=Ae&&!gt;if(!ie&&We){ve=Ot?ve:new Kt(this);var Et=a.apply(ve,Se);return Et.__actions__.push({func:gh,args:[Xe],thisArg:n}),new _i(Et,ot)}return St&&Ot?a.apply(this,Se):(Et=this.thru(Xe),St?E?Et.value()[0]:Et.value():Et)})}),hn(["pop","push","shift","sort","splice","unshift"],function(a){var f=le[a],y=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",E=/^(?:pop|shift)$/.test(a);X.prototype[a]=function(){var L=arguments;if(E&&!this.__chain__){var ie=this.value();return f.apply(_t(ie)?ie:[],L)}return this[y](function(ve){return f.apply(_t(ve)?ve:[],L)})}}),Bs(Kt.prototype,function(a,f){var y=X[f];if(y){var E=y.name+"";Ne.call(cl,E)||(cl[E]=[]),cl[E].push({name:f,func:y})}}),cl[lh(n,S).name]=[{name:"wrapper",func:n}],Kt.prototype.clone=d9,Kt.prototype.reverse=h9,Kt.prototype.value=p9,X.prototype.at=UL,X.prototype.chain=zL,X.prototype.commit=qL,X.prototype.next=WL,X.prototype.plant=GL,X.prototype.reverse=YL,X.prototype.toJSON=X.prototype.valueOf=X.prototype.value=ZL,X.prototype.first=X.prototype.head,Xn&&(X.prototype[Xn]=HL),X},Me=we();Ai?((Ai.exports=Me)._=Me,Di._=Me):Dn._=Me}).call(mU)}(Sf,Sf.exports)),Sf.exports}var UP=gU();const vU=ws(UP);var yd=e=>e.type==="checkbox",hu=e=>e instanceof Date,jr=e=>e==null;const zP=e=>typeof e=="object";var Gn=e=>!jr(e)&&!Array.isArray(e)&&zP(e)&&!hu(e),qP=e=>Gn(e)&&e.target?yd(e.target)?e.target.checked:e.target.value:e,yU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WP=(e,t)=>e.has(yU(t)),bU=e=>{const t=e.constructor&&e.constructor.prototype;return Gn(t)&&t.hasOwnProperty("isPrototypeOf")},F4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function rr(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(F4&&(e instanceof Blob||r))&&(n||Gn(e)))if(t=n?[]:{},!n&&!bU(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=rr(e[i]));else return e;return t}var bd=e=>Array.isArray(e)?e.filter(Boolean):[],Sn=e=>e===void 0,rt=(e,t,n)=>{if(!t||!Gn(e))return n;const r=bd(t.split(/[,[\].]+?/)).reduce((i,s)=>jr(i)?i:i[s],e);return Sn(r)||r===e?Sn(e[t])?n:e[t]:r},ji=e=>typeof e=="boolean",k4=e=>/^\w*$/.test(e),HP=e=>bd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Xt=(e,t,n)=>{let r=-1;const i=k4(t)?[t]:HP(t),s=i.length,o=s-1;for(;++r<s;){const u=i[r];let l=n;if(r!==o){const d=e[u];l=Gn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const Tp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},zi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ro={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},GP=A.createContext(null),$d=()=>A.useContext(GP),$U=e=>{const{children:t,...n}=e;return A.createElement(GP.Provider,{value:n},t)};var YP=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(i,s,{get:()=>{const o=s;return t._proxyFormState[o]!==zi.all&&(t._proxyFormState[o]=!r||zi.all),n&&(n[o]=!0),e[o]}});return i},Nr=e=>Gn(e)&&!Object.keys(e).length,ZP=(e,t,n,r)=>{n(e);const{name:i,...s}=e;return Nr(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(o=>t[o]===(!r||zi.all))},si=e=>Array.isArray(e)?e:[e],XP=(e,t,n)=>!e||!t||e===t||si(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Cm(e){const t=A.useRef(e);t.current=e,A.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function xU(e){const t=$d(),{control:n=t.control,disabled:r,name:i,exact:s}=e||{},[o,u]=A.useState(n._formState),l=A.useRef(!0),d=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=A.useRef(i);return h.current=i,Cm({disabled:r,next:m=>l.current&&XP(h.current,m.name,s)&&ZP(m,d.current,n._updateFormState)&&u({...n._formState,...m}),subject:n._subjects.state}),A.useEffect(()=>(l.current=!0,d.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),A.useMemo(()=>YP(o,n,d.current,!1),[o,n])}var Hs=e=>typeof e=="string",JP=(e,t,n,r,i)=>Hs(e)?(r&&t.watch.add(e),rt(n,e,i)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),rt(n,s))):(r&&(t.watchAll=!0),n);function QP(e){const t=$d(),{control:n=t.control,name:r,defaultValue:i,disabled:s,exact:o}=e||{},u=A.useRef(r);u.current=r,Cm({disabled:s,subject:n._subjects.values,next:h=>{XP(u.current,h.name,o)&&d(rr(JP(u.current,n._names,h.values||n._formValues,!1,i)))}});const[l,d]=A.useState(n._getWatch(r,i));return A.useEffect(()=>n._removeUnmounted()),l}function wU(e){const t=$d(),{name:n,disabled:r,control:i=t.control,shouldUnregister:s}=e,o=WP(i._names.array,n),u=QP({control:i,name:n,defaultValue:rt(i._formValues,n,rt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=xU({control:i,name:n,exact:!0}),d=A.useRef(i.register(n,{...e.rules,value:u,...ji(e.disabled)?{disabled:e.disabled}:{}})),h=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rt(l.validatingFields,n)},error:{enumerable:!0,get:()=>rt(l.errors,n)}}),[l,n]),m=A.useMemo(()=>({name:n,value:u,...ji(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:g=>d.current.onChange({target:{value:qP(g),name:n},type:Tp.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:rt(i._formValues,n),name:n},type:Tp.BLUR}),ref:g=>{const b=rt(i._fields,n);b&&g&&(b._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:$=>g.setCustomValidity($),reportValidity:()=>g.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return A.useEffect(()=>{const g=i._options.shouldUnregister||s,b=($,w)=>{const D=rt(i._fields,$);D&&D._f&&(D._f.mount=w)};if(b(n,!0),g){const $=rr(rt(i._options.defaultValues,n));Xt(i._defaultValues,n,$),Sn(rt(i._formValues,n))&&Xt(i._formValues,n,$)}return!o&&i.register(n),()=>{(o?g&&!i._state.action:g)?i.unregister(n):b(n,!1)}},[n,i,o,s]),A.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),A.useMemo(()=>({field:m,formState:l,fieldState:h}),[m,l,h])}const CU=e=>e.render(wU(e));var e5=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ca=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},vv=(e,t,n={})=>n.shouldFocus||Sn(n.shouldFocus)?n.focusName||`${e}.${Sn(n.focusIndex)?t:n.focusIndex}.`:"",If=e=>({isOnSubmit:!e||e===zi.onSubmit,isOnBlur:e===zi.onBlur,isOnChange:e===zi.onChange,isOnAll:e===zi.all,isOnTouch:e===zi.onTouched}),rb=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Bl=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const s=rt(e,i);if(s){const{_f:o,...u}=s;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!r)return!0;if(o.ref&&t(o.ref,o.name)&&!r)return!0;if(Bl(u,t))break}else if(Gn(u)&&Bl(u,t))break}}};var t5=(e,t,n)=>{const r=si(rt(e,n));return Xt(r,"root",t[n]),Xt(e,n,r),e},O4=e=>e.type==="file",Ws=e=>typeof e=="function",Pp=e=>{if(!F4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},np=e=>Hs(e),I4=e=>e.type==="radio",_p=e=>e instanceof RegExp;const aC={value:!1,isValid:!1},uC={value:!0,isValid:!0};var n5=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Sn(e[0].attributes.value)?Sn(e[0].value)||e[0].value===""?uC:{value:e[0].value,isValid:!0}:uC:aC}return aC};const lC={isValid:!1,value:null};var r5=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,lC):lC;function cC(e,t,n="validate"){if(np(e)||Array.isArray(e)&&e.every(np)||ji(e)&&!e)return{type:n,message:np(e)?e:"",ref:t}}var yl=e=>Gn(e)&&!_p(e)?e:{value:e,message:""},ib=async(e,t,n,r,i,s)=>{const{ref:o,refs:u,required:l,maxLength:d,minLength:h,min:m,max:g,pattern:b,validate:$,name:w,valueAsNumber:D,mount:S}=e._f,C=rt(n,w);if(!S||t.has(w))return{};const T=u?u[0]:o,O=Ce=>{i&&T.reportValidity&&(T.setCustomValidity(ji(Ce)?"":Ce||""),T.reportValidity())},M={},k=I4(o),N=yd(o),F=k||N,ae=(D||O4(o))&&Sn(o.value)&&Sn(C)||Pp(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,oe=e5.bind(null,w,r,M),W=(Ce,ne,se,z=Ro.maxLength,K=Ro.minLength)=>{const j=Ce?ne:se;M[w]={type:Ce?z:K,message:j,ref:o,...oe(Ce?z:K,j)}};if(s?!Array.isArray(C)||!C.length:l&&(!F&&(ae||jr(C))||ji(C)&&!C||N&&!n5(u).isValid||k&&!r5(u).isValid)){const{value:Ce,message:ne}=np(l)?{value:!!l,message:l}:yl(l);if(Ce&&(M[w]={type:Ro.required,message:ne,ref:T,...oe(Ro.required,ne)},!r))return O(ne),M}if(!ae&&(!jr(m)||!jr(g))){let Ce,ne;const se=yl(g),z=yl(m);if(!jr(C)&&!isNaN(C)){const K=o.valueAsNumber||C&&+C;jr(se.value)||(Ce=K>se.value),jr(z.value)||(ne=K<z.value)}else{const K=o.valueAsDate||new Date(C),j=U=>new Date(new Date().toDateString()+" "+U),V=o.type=="time",ge=o.type=="week";Hs(se.value)&&C&&(Ce=V?j(C)>j(se.value):ge?C>se.value:K>new Date(se.value)),Hs(z.value)&&C&&(ne=V?j(C)<j(z.value):ge?C<z.value:K<new Date(z.value))}if((Ce||ne)&&(W(!!Ce,se.message,z.message,Ro.max,Ro.min),!r))return O(M[w].message),M}if((d||h)&&!ae&&(Hs(C)||s&&Array.isArray(C))){const Ce=yl(d),ne=yl(h),se=!jr(Ce.value)&&C.length>+Ce.value,z=!jr(ne.value)&&C.length<+ne.value;if((se||z)&&(W(se,Ce.message,ne.message),!r))return O(M[w].message),M}if(b&&!ae&&Hs(C)){const{value:Ce,message:ne}=yl(b);if(_p(Ce)&&!C.match(Ce)&&(M[w]={type:Ro.pattern,message:ne,ref:o,...oe(Ro.pattern,ne)},!r))return O(ne),M}if($){if(Ws($)){const Ce=await $(C,n),ne=cC(Ce,T);if(ne&&(M[w]={...ne,...oe(Ro.validate,ne.message)},!r))return O(ne.message),M}else if(Gn($)){let Ce={};for(const ne in $){if(!Nr(Ce)&&!r)break;const se=cC(await $[ne](C,n),T,ne);se&&(Ce={...se,...oe(ne,se.message)},O(se.message),r&&(M[w]=Ce))}if(!Nr(Ce)&&(M[w]={ref:T,...Ce},!r))return M}}return O(!0),M},yv=(e,t)=>[...e,...si(t)],bv=e=>Array.isArray(e)?e.map(()=>{}):void 0;function $v(e,t,n){return[...e.slice(0,t),...si(n),...e.slice(t)]}var xv=(e,t,n)=>Array.isArray(e)?(Sn(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],wv=(e,t)=>[...si(t),...si(e)];function SU(e,t){let n=0;const r=[...e];for(const i of t)r.splice(i-n,1),n++;return bd(r).length?r:[]}var Cv=(e,t)=>Sn(t)?[]:SU(e,si(t).sort((n,r)=>n-r)),Sv=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]};function EU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Sn(e)?r++:e[t[r++]];return e}function DU(e){for(const t in e)if(e.hasOwnProperty(t)&&!Sn(e[t]))return!1;return!0}function Jn(e,t){const n=Array.isArray(t)?t:k4(t)?[t]:HP(t),r=n.length===1?e:EU(e,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(Gn(r)&&Nr(r)||Array.isArray(r)&&DU(r))&&Jn(e,n.slice(0,-1)),e}var fC=(e,t,n)=>(e[t]=n,e);function AU(e){const t=$d(),{control:n=t.control,name:r,keyName:i="id",shouldUnregister:s,rules:o}=e,[u,l]=A.useState(n._getFieldArray(r)),d=A.useRef(n._getFieldArray(r).map(ca)),h=A.useRef(u),m=A.useRef(r),g=A.useRef(!1);m.current=r,h.current=u,n._names.array.add(r),o&&n.register(r,o),Cm({next:({values:k,name:N})=>{if(N===m.current||!N){const F=rt(k,m.current);Array.isArray(F)&&(l(F),d.current=F.map(ca))}},subject:n._subjects.array});const b=A.useCallback(k=>{g.current=!0,n._updateFieldArray(r,k)},[n,r]),$=(k,N)=>{const F=si(rr(k)),ae=yv(n._getFieldArray(r),F);n._names.focus=vv(r,ae.length-1,N),d.current=yv(d.current,F.map(ca)),b(ae),l(ae),n._updateFieldArray(r,ae,yv,{argA:bv(k)})},w=(k,N)=>{const F=si(rr(k)),ae=wv(n._getFieldArray(r),F);n._names.focus=vv(r,0,N),d.current=wv(d.current,F.map(ca)),b(ae),l(ae),n._updateFieldArray(r,ae,wv,{argA:bv(k)})},D=k=>{const N=Cv(n._getFieldArray(r),k);d.current=Cv(d.current,k),b(N),l(N),!Array.isArray(rt(n._fields,r))&&Xt(n._fields,r,void 0),n._updateFieldArray(r,N,Cv,{argA:k})},S=(k,N,F)=>{const ae=si(rr(N)),oe=$v(n._getFieldArray(r),k,ae);n._names.focus=vv(r,k,F),d.current=$v(d.current,k,ae.map(ca)),b(oe),l(oe),n._updateFieldArray(r,oe,$v,{argA:k,argB:bv(N)})},C=(k,N)=>{const F=n._getFieldArray(r);Sv(F,k,N),Sv(d.current,k,N),b(F),l(F),n._updateFieldArray(r,F,Sv,{argA:k,argB:N},!1)},T=(k,N)=>{const F=n._getFieldArray(r);xv(F,k,N),xv(d.current,k,N),b(F),l(F),n._updateFieldArray(r,F,xv,{argA:k,argB:N},!1)},O=(k,N)=>{const F=rr(N),ae=fC(n._getFieldArray(r),k,F);d.current=[...ae].map((oe,W)=>!oe||W===k?ca():d.current[W]),b(ae),l([...ae]),n._updateFieldArray(r,ae,fC,{argA:k,argB:F},!0,!1)},M=k=>{const N=si(rr(k));d.current=N.map(ca),b([...N]),l([...N]),n._updateFieldArray(r,[...N],F=>F,{},!0,!1)};return A.useEffect(()=>{if(n._state.action=!1,rb(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!If(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(k=>{const N=rt(k.errors,r),F=rt(n._formState.errors,r);(F?!N&&F.type||N&&(F.type!==N.type||F.message!==N.message):N&&N.type)&&(N?Xt(n._formState.errors,r,N):Jn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const k=rt(n._fields,r);k&&k._f&&!(If(n._options.reValidateMode).isOnSubmit&&If(n._options.mode).isOnSubmit)&&ib(k,n._names.disabled,n._formValues,n._options.criteriaMode===zi.all,n._options.shouldUseNativeValidation,!0).then(N=>!Nr(N)&&n._subjects.state.next({errors:t5(n._formState.errors,N,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}),n._names.focus&&Bl(n._fields,(k,N)=>{if(n._names.focus&&N.startsWith(n._names.focus)&&k.focus)return k.focus(),1}),n._names.focus="",n._updateValid(),g.current=!1},[u,r,n]),A.useEffect(()=>(!rt(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||s)&&n.unregister(r)}),[r,n,i,s]),{swap:A.useCallback(C,[b,r,n]),move:A.useCallback(T,[b,r,n]),prepend:A.useCallback(w,[b,r,n]),append:A.useCallback($,[b,r,n]),remove:A.useCallback(D,[b,r,n]),insert:A.useCallback(S,[b,r,n]),update:A.useCallback(O,[b,r,n]),replace:A.useCallback(M,[b,r,n]),fields:A.useMemo(()=>u.map((k,N)=>({...k,[i]:d.current[N]||ca()})),[u,i])}}var Ev=()=>{let e=[];return{get observers(){return e},next:i=>{for(const s of e)s.next&&s.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(s=>s!==i)}}),unsubscribe:()=>{e=[]}}},sb=e=>jr(e)||!zP(e);function va(e,t){if(sb(e)||sb(t))return e===t;if(hu(e)&&hu(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const s=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(hu(s)&&hu(o)||Gn(s)&&Gn(o)||Array.isArray(s)&&Array.isArray(o)?!va(s,o):s!==o)return!1}}return!0}var i5=e=>e.type==="select-multiple",TU=e=>I4(e)||yd(e),Dv=e=>Pp(e)&&e.isConnected,s5=e=>{for(const t in e)if(Ws(e[t]))return!0;return!1};function Mp(e,t={}){const n=Array.isArray(e);if(Gn(e)||n)for(const r in e)Array.isArray(e[r])||Gn(e[r])&&!s5(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Mp(e[r],t[r])):jr(e[r])||(t[r]=!0);return t}function o5(e,t,n){const r=Array.isArray(e);if(Gn(e)||r)for(const i in e)Array.isArray(e[i])||Gn(e[i])&&!s5(e[i])?Sn(t)||sb(n[i])?n[i]=Array.isArray(e[i])?Mp(e[i],[]):{...Mp(e[i])}:o5(e[i],jr(t)?{}:t[i],n[i]):n[i]=!va(e[i],t[i]);return n}var uf=(e,t)=>o5(e,t,Mp(t)),a5=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Sn(e)?e:t?e===""?NaN:e&&+e:n&&Hs(e)?new Date(e):r?r(e):e;function Av(e){const t=e.ref;return O4(t)?t.files:I4(t)?r5(e.refs).value:i5(t)?[...t.selectedOptions].map(({value:n})=>n):yd(t)?n5(e.refs).value:a5(Sn(t.value)?e.ref.value:t.value,e)}var PU=(e,t,n,r)=>{const i={};for(const s of e){const o=rt(t,s);o&&Xt(i,s,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},lf=e=>Sn(e)?e:_p(e)?e.source:Gn(e)?_p(e.value)?e.value.source:e.value:e;const dC="AsyncFunction";var _U=e=>!!e&&!!e.validate&&!!(Ws(e.validate)&&e.validate.constructor.name===dC||Gn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===dC)),MU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function hC(e,t,n){const r=rt(e,n);if(r||k4(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),o=rt(t,s),u=rt(e,s);if(o&&!Array.isArray(o)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};i.pop()}return{name:n}}var RU=(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,FU=(e,t)=>!bd(rt(e,t)).length&&Jn(e,t);const kU={mode:zi.onSubmit,reValidateMode:zi.onChange,shouldFocusError:!0};function OU(e={}){let t={...kU,...e},n={submitCount:0,isDirty:!1,isLoading:Ws(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Gn(t.defaultValues)||Gn(t.values)?rr(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:rr(i),o={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:Ev(),array:Ev(),state:Ev()},g=If(t.mode),b=If(t.reValidateMode),$=t.criteriaMode===zi.all,w=$e=>Ee=>{clearTimeout(d),d=setTimeout($e,Ee)},D=async $e=>{if(!t.disabled&&(h.isValid||$e)){const Ee=t.resolver?Nr((await F()).errors):await oe(r,!0);Ee!==n.isValid&&m.state.next({isValid:Ee})}},S=($e,Ee)=>{!t.disabled&&(h.isValidating||h.validatingFields)&&(($e||Array.from(u.mount)).forEach(Te=>{Te&&(Ee?Xt(n.validatingFields,Te,Ee):Jn(n.validatingFields,Te))}),m.state.next({validatingFields:n.validatingFields,isValidating:!Nr(n.validatingFields)}))},C=($e,Ee=[],Te,He,et=!0,Je=!0)=>{if(He&&Te&&!t.disabled){if(o.action=!0,Je&&Array.isArray(rt(r,$e))){const lt=Te(rt(r,$e),He.argA,He.argB);et&&Xt(r,$e,lt)}if(Je&&Array.isArray(rt(n.errors,$e))){const lt=Te(rt(n.errors,$e),He.argA,He.argB);et&&Xt(n.errors,$e,lt),FU(n.errors,$e)}if(h.touchedFields&&Je&&Array.isArray(rt(n.touchedFields,$e))){const lt=Te(rt(n.touchedFields,$e),He.argA,He.argB);et&&Xt(n.touchedFields,$e,lt)}h.dirtyFields&&(n.dirtyFields=uf(i,s)),m.state.next({name:$e,isDirty:Ce($e,Ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Xt(s,$e,Ee)},T=($e,Ee)=>{Xt(n.errors,$e,Ee),m.state.next({errors:n.errors})},O=$e=>{n.errors=$e,m.state.next({errors:n.errors,isValid:!1})},M=($e,Ee,Te,He)=>{const et=rt(r,$e);if(et){const Je=rt(s,$e,Sn(Te)?rt(i,$e):Te);Sn(Je)||He&&He.defaultChecked||Ee?Xt(s,$e,Ee?Je:Av(et._f)):z($e,Je),o.mount&&D()}},k=($e,Ee,Te,He,et)=>{let Je=!1,lt=!1;const bt={name:$e};if(!t.disabled){const gn=!!(rt(r,$e)&&rt(r,$e)._f&&rt(r,$e)._f.disabled);if(!Te||He){h.isDirty&&(lt=n.isDirty,n.isDirty=bt.isDirty=Ce(),Je=lt!==bt.isDirty);const Jt=gn||va(rt(i,$e),Ee);lt=!!(!gn&&rt(n.dirtyFields,$e)),Jt||gn?Jn(n.dirtyFields,$e):Xt(n.dirtyFields,$e,!0),bt.dirtyFields=n.dirtyFields,Je=Je||h.dirtyFields&<!==!Jt}if(Te){const Jt=rt(n.touchedFields,$e);Jt||(Xt(n.touchedFields,$e,Te),bt.touchedFields=n.touchedFields,Je=Je||h.touchedFields&&Jt!==Te)}Je&&et&&m.state.next(bt)}return Je?bt:{}},N=($e,Ee,Te,He)=>{const et=rt(n.errors,$e),Je=h.isValid&&ji(Ee)&&n.isValid!==Ee;if(t.delayError&&Te?(l=w(()=>T($e,Te)),l(t.delayError)):(clearTimeout(d),l=null,Te?Xt(n.errors,$e,Te):Jn(n.errors,$e)),(Te?!va(et,Te):et)||!Nr(He)||Je){const lt={...He,...Je&&ji(Ee)?{isValid:Ee}:{},errors:n.errors,name:$e};n={...n,...lt},m.state.next(lt)}},F=async $e=>{S($e,!0);const Ee=await t.resolver(s,t.context,PU($e||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S($e),Ee},ae=async $e=>{const{errors:Ee}=await F($e);if($e)for(const Te of $e){const He=rt(Ee,Te);He?Xt(n.errors,Te,He):Jn(n.errors,Te)}else n.errors=Ee;return Ee},oe=async($e,Ee,Te={valid:!0})=>{for(const He in $e){const et=$e[He];if(et){const{_f:Je,...lt}=et;if(Je){const bt=u.array.has(Je.name),gn=et._f&&_U(et._f);gn&&h.validatingFields&&S([He],!0);const Jt=await ib(et,u.disabled,s,$,t.shouldUseNativeValidation&&!Ee,bt);if(gn&&h.validatingFields&&S([He]),Jt[Je.name]&&(Te.valid=!1,Ee))break;!Ee&&(rt(Jt,Je.name)?bt?t5(n.errors,Jt,Je.name):Xt(n.errors,Je.name,Jt[Je.name]):Jn(n.errors,Je.name))}!Nr(lt)&&await oe(lt,Ee,Te)}}return Te.valid},W=()=>{for(const $e of u.unMount){const Ee=rt(r,$e);Ee&&(Ee._f.refs?Ee._f.refs.every(Te=>!Dv(Te)):!Dv(Ee._f.ref))&&Ze($e)}u.unMount=new Set},Ce=($e,Ee)=>!t.disabled&&($e&&Ee&&Xt(s,$e,Ee),!va(J(),i)),ne=($e,Ee,Te)=>JP($e,u,{...o.mount?s:Sn(Ee)?i:Hs($e)?{[$e]:Ee}:Ee},Te,Ee),se=$e=>bd(rt(o.mount?s:i,$e,t.shouldUnregister?rt(i,$e,[]):[])),z=($e,Ee,Te={})=>{const He=rt(r,$e);let et=Ee;if(He){const Je=He._f;Je&&(!Je.disabled&&Xt(s,$e,a5(Ee,Je)),et=Pp(Je.ref)&&jr(Ee)?"":Ee,i5(Je.ref)?[...Je.ref.options].forEach(lt=>lt.selected=et.includes(lt.value)):Je.refs?yd(Je.ref)?Je.refs.length>1?Je.refs.forEach(lt=>(!lt.defaultChecked||!lt.disabled)&&(lt.checked=Array.isArray(et)?!!et.find(bt=>bt===lt.value):et===lt.value)):Je.refs[0]&&(Je.refs[0].checked=!!et):Je.refs.forEach(lt=>lt.checked=lt.value===et):O4(Je.ref)?Je.ref.value="":(Je.ref.value=et,Je.ref.type||m.values.next({name:$e,values:{...s}})))}(Te.shouldDirty||Te.shouldTouch)&&k($e,et,Te.shouldTouch,Te.shouldDirty,!0),Te.shouldValidate&&U($e)},K=($e,Ee,Te)=>{for(const He in Ee){const et=Ee[He],Je=`${$e}.${He}`,lt=rt(r,Je);(u.array.has($e)||Gn(et)||lt&&!lt._f)&&!hu(et)?K(Je,et,Te):z(Je,et,Te)}},j=($e,Ee,Te={})=>{const He=rt(r,$e),et=u.array.has($e),Je=rr(Ee);Xt(s,$e,Je),et?(m.array.next({name:$e,values:{...s}}),(h.isDirty||h.dirtyFields)&&Te.shouldDirty&&m.state.next({name:$e,dirtyFields:uf(i,s),isDirty:Ce($e,Je)})):He&&!He._f&&!jr(Je)?K($e,Je,Te):z($e,Je,Te),rb($e,u)&&m.state.next({...n}),m.values.next({name:o.mount?$e:void 0,values:{...s}})},V=async $e=>{o.mount=!0;const Ee=$e.target;let Te=Ee.name,He=!0;const et=rt(r,Te),Je=()=>Ee.type?Av(et._f):qP($e),lt=bt=>{He=Number.isNaN(bt)||hu(bt)&&isNaN(bt.getTime())||va(bt,rt(s,Te,bt))};if(et){let bt,gn;const Jt=Je(),Ut=$e.type===Tp.BLUR||$e.type===Tp.FOCUS_OUT,Yr=!MU(et._f)&&!t.resolver&&!rt(n.errors,Te)&&!et._f.deps||RU(Ut,rt(n.touchedFields,Te),n.isSubmitted,b,g),Fr=rb(Te,u,Ut);Xt(s,Te,Jt),Ut?(et._f.onBlur&&et._f.onBlur($e),l&&l(0)):et._f.onChange&&et._f.onChange($e);const rn=k(Te,Jt,Ut,!1),Pt=!Nr(rn)||Fr;if(!Ut&&m.values.next({name:Te,type:$e.type,values:{...s}}),Yr)return h.isValid&&(t.mode==="onBlur"&&Ut?D():Ut||D()),Pt&&m.state.next({name:Te,...Fr?{}:rn});if(!Ut&&Fr&&m.state.next({...n}),t.resolver){const{errors:Lt}=await F([Te]);if(lt(Jt),He){const Yt=hC(n.errors,r,Te),sr=hC(Lt,r,Yt.name||Te);bt=sr.error,Te=sr.name,gn=Nr(Lt)}}else S([Te],!0),bt=(await ib(et,u.disabled,s,$,t.shouldUseNativeValidation))[Te],S([Te]),lt(Jt),He&&(bt?gn=!1:h.isValid&&(gn=await oe(r,!0)));He&&(et._f.deps&&U(et._f.deps),N(Te,gn,bt,rn))}},ge=($e,Ee)=>{if(rt(n.errors,Ee)&&$e.focus)return $e.focus(),1},U=async($e,Ee={})=>{let Te,He;const et=si($e);if(t.resolver){const Je=await ae(Sn($e)?$e:et);Te=Nr(Je),He=$e?!et.some(lt=>rt(Je,lt)):Te}else $e?(He=(await Promise.all(et.map(async Je=>{const lt=rt(r,Je);return await oe(lt&<._f?{[Je]:lt}:lt)}))).every(Boolean),!(!He&&!n.isValid)&&D()):He=Te=await oe(r);return m.state.next({...!Hs($e)||h.isValid&&Te!==n.isValid?{}:{name:$e},...t.resolver||!$e?{isValid:Te}:{},errors:n.errors}),Ee.shouldFocus&&!He&&Bl(r,ge,$e?et:u.mount),He},J=$e=>{const Ee={...o.mount?s:i};return Sn($e)?Ee:Hs($e)?rt(Ee,$e):$e.map(Te=>rt(Ee,Te))},xe=($e,Ee)=>({invalid:!!rt((Ee||n).errors,$e),isDirty:!!rt((Ee||n).dirtyFields,$e),error:rt((Ee||n).errors,$e),isValidating:!!rt(n.validatingFields,$e),isTouched:!!rt((Ee||n).touchedFields,$e)}),Pe=$e=>{$e&&si($e).forEach(Ee=>Jn(n.errors,Ee)),m.state.next({errors:$e?n.errors:{}})},Oe=($e,Ee,Te)=>{const He=(rt(r,$e,{_f:{}})._f||{}).ref,et=rt(n.errors,$e)||{},{ref:Je,message:lt,type:bt,...gn}=et;Xt(n.errors,$e,{...gn,...Ee,ref:He}),m.state.next({name:$e,errors:n.errors,isValid:!1}),Te&&Te.shouldFocus&&He&&He.focus&&He.focus()},Ie=($e,Ee)=>Ws($e)?m.values.subscribe({next:Te=>$e(ne(void 0,Ee),Te)}):ne($e,Ee,!0),Ze=($e,Ee={})=>{for(const Te of $e?si($e):u.mount)u.mount.delete(Te),u.array.delete(Te),Ee.keepValue||(Jn(r,Te),Jn(s,Te)),!Ee.keepError&&Jn(n.errors,Te),!Ee.keepDirty&&Jn(n.dirtyFields,Te),!Ee.keepTouched&&Jn(n.touchedFields,Te),!Ee.keepIsValidating&&Jn(n.validatingFields,Te),!t.shouldUnregister&&!Ee.keepDefaultValue&&Jn(i,Te);m.values.next({values:{...s}}),m.state.next({...n,...Ee.keepDirty?{isDirty:Ce()}:{}}),!Ee.keepIsValid&&D()},Ge=({disabled:$e,name:Ee,field:Te,fields:He})=>{(ji($e)&&o.mount||$e||u.disabled.has(Ee))&&($e?u.disabled.add(Ee):u.disabled.delete(Ee),k(Ee,Av(Te?Te._f:rt(He,Ee)._f),!1,!1,!0))},De=($e,Ee={})=>{let Te=rt(r,$e);const He=ji(Ee.disabled)||ji(t.disabled);return Xt(r,$e,{...Te||{},_f:{...Te&&Te._f?Te._f:{ref:{name:$e}},name:$e,mount:!0,...Ee}}),u.mount.add($e),Te?Ge({field:Te,disabled:ji(Ee.disabled)?Ee.disabled:t.disabled,name:$e}):M($e,!0,Ee.value),{...He?{disabled:Ee.disabled||t.disabled}:{},...t.progressive?{required:!!Ee.required,min:lf(Ee.min),max:lf(Ee.max),minLength:lf(Ee.minLength),maxLength:lf(Ee.maxLength),pattern:lf(Ee.pattern)}:{},name:$e,onChange:V,onBlur:V,ref:et=>{if(et){De($e,Ee),Te=rt(r,$e);const Je=Sn(et.value)&&et.querySelectorAll&&et.querySelectorAll("input,select,textarea")[0]||et,lt=TU(Je),bt=Te._f.refs||[];if(lt?bt.find(gn=>gn===Je):Je===Te._f.ref)return;Xt(r,$e,{_f:{...Te._f,...lt?{refs:[...bt.filter(Dv),Je,...Array.isArray(rt(i,$e))?[{}]:[]],ref:{type:Je.type,name:$e}}:{ref:Je}}}),M($e,!1,void 0,Je)}else Te=rt(r,$e,{}),Te._f&&(Te._f.mount=!1),(t.shouldUnregister||Ee.shouldUnregister)&&!(WP(u.array,$e)&&o.action)&&u.unMount.add($e)}}},Ue=()=>t.shouldFocusError&&Bl(r,ge,u.mount),Re=$e=>{ji($e)&&(m.state.next({disabled:$e}),Bl(r,(Ee,Te)=>{const He=rt(r,Te);He&&(Ee.disabled=He._f.disabled||$e,Array.isArray(He._f.refs)&&He._f.refs.forEach(et=>{et.disabled=He._f.disabled||$e}))},0,!1))},Ve=($e,Ee)=>async Te=>{let He;Te&&(Te.preventDefault&&Te.preventDefault(),Te.persist&&Te.persist());let et=rr(s);if(u.disabled.size)for(const Je of u.disabled)Xt(et,Je,void 0);if(m.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:lt}=await F();n.errors=Je,et=lt}else await oe(r);if(Jn(n.errors,"root"),Nr(n.errors)){m.state.next({errors:{}});try{await $e(et,Te)}catch(Je){He=Je}}else Ee&&await Ee({...n.errors},Te),Ue(),setTimeout(Ue);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(n.errors)&&!He,submitCount:n.submitCount+1,errors:n.errors}),He)throw He},Le=($e,Ee={})=>{rt(r,$e)&&(Sn(Ee.defaultValue)?j($e,rr(rt(i,$e))):(j($e,Ee.defaultValue),Xt(i,$e,rr(Ee.defaultValue))),Ee.keepTouched||Jn(n.touchedFields,$e),Ee.keepDirty||(Jn(n.dirtyFields,$e),n.isDirty=Ee.defaultValue?Ce($e,rr(rt(i,$e))):Ce()),Ee.keepError||(Jn(n.errors,$e),h.isValid&&D()),m.state.next({...n}))},nt=($e,Ee={})=>{const Te=$e?rr($e):i,He=rr(Te),et=Nr($e),Je=et?i:He;if(Ee.keepDefaultValues||(i=Te),!Ee.keepValues){if(Ee.keepDirtyValues){const lt=new Set([...u.mount,...Object.keys(uf(i,s))]);for(const bt of Array.from(lt))rt(n.dirtyFields,bt)?Xt(Je,bt,rt(s,bt)):j(bt,rt(Je,bt))}else{if(F4&&Sn($e))for(const lt of u.mount){const bt=rt(r,lt);if(bt&&bt._f){const gn=Array.isArray(bt._f.refs)?bt._f.refs[0]:bt._f.ref;if(Pp(gn)){const Jt=gn.closest("form");if(Jt){Jt.reset();break}}}}r={}}s=t.shouldUnregister?Ee.keepDefaultValues?rr(i):{}:rr(Je),m.array.next({values:{...Je}}),m.values.next({values:{...Je}})}u={mount:Ee.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!h.isValid||!!Ee.keepIsValid||!!Ee.keepDirtyValues,o.watch=!!t.shouldUnregister,m.state.next({submitCount:Ee.keepSubmitCount?n.submitCount:0,isDirty:et?!1:Ee.keepDirty?n.isDirty:!!(Ee.keepDefaultValues&&!va($e,i)),isSubmitted:Ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:et?{}:Ee.keepDirtyValues?Ee.keepDefaultValues&&s?uf(i,s):n.dirtyFields:Ee.keepDefaultValues&&$e?uf(i,$e):Ee.keepDirty?n.dirtyFields:{},touchedFields:Ee.keepTouched?n.touchedFields:{},errors:Ee.keepErrors?n.errors:{},isSubmitSuccessful:Ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},xt=($e,Ee)=>nt(Ws($e)?$e(s):$e,Ee);return{control:{register:De,unregister:Ze,getFieldState:xe,handleSubmit:Ve,setError:Oe,_executeSchema:F,_getWatch:ne,_getDirty:Ce,_updateValid:D,_removeUnmounted:W,_updateFieldArray:C,_updateDisabledField:Ge,_getFieldArray:se,_reset:nt,_resetDefaultValues:()=>Ws(t.defaultValues)&&t.defaultValues().then($e=>{xt($e,t.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:$e=>{n={...n,...$e}},_disableForm:Re,_subjects:m,_proxyFormState:h,_setErrors:O,get _fields(){return r},get _formValues(){return s},get _state(){return o},set _state($e){o=$e},get _defaultValues(){return i},get _names(){return u},set _names($e){u=$e},get _formState(){return n},set _formState($e){n=$e},get _options(){return t},set _options($e){t={...t,...$e}}},trigger:U,register:De,handleSubmit:Ve,watch:Ie,setValue:j,getValues:J,reset:xt,resetField:Le,clearErrors:Pe,unregister:Ze,setError:Oe,setFocus:($e,Ee={})=>{const Te=rt(r,$e),He=Te&&Te._f;if(He){const et=He.refs?He.refs[0]:He.ref;et.focus&&(et.focus(),Ee.shouldSelect&&Ws(et.select)&&et.select())}},getFieldState:xe}}function IU(e={}){const t=A.useRef(void 0),n=A.useRef(void 0),[r,i]=A.useState({isDirty:!1,isValidating:!1,isLoading:Ws(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ws(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...OU(e),formState:r});const s=t.current.control;return s._options=e,Cm({subject:s._subjects.state,next:o=>{ZP(o,s._proxyFormState,s._updateFormState,!0)&&i({...s._formState})}}),A.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),A.useEffect(()=>{if(s._proxyFormState.isDirty){const o=s._getDirty();o!==r.isDirty&&s._subjects.state.next({isDirty:o})}},[s,r.isDirty]),A.useEffect(()=>{e.values&&!va(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,i(o=>({...o}))):s._resetDefaultValues()},[e.values,s]),A.useEffect(()=>{e.errors&&s._setErrors(e.errors)},[e.errors,s]),A.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),A.useEffect(()=>{e.shouldUnregister&&s._subjects.values.next({values:s._getWatch()})},[e.shouldUnregister,s]),t.current.formState=YP(r,s),t.current}const pn=typeof document<"u"?A.useLayoutEffect:()=>{};function Hn(e){const t=A.useRef(null);return pn(()=>{t.current=e},[e]),A.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function LU(e){let[t,n]=A.useState(e),r=A.useRef(null),i=Hn(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});pn(()=>{r.current&&i()});let s=Hn(o=>{r.current=o(t),i()});return[t,s]}const Rp={prefix:String(Math.round(Math.random()*1e10)),current:0},u5=A.createContext(Rp),BU=A.createContext(!1);let VU=!!(typeof window<"u"&&window.document&&window.document.createElement),Tv=new WeakMap;function NU(e=!1){let t=A.useContext(u5),n=A.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=Tv.get(s);o==null?Tv.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Tv.delete(s))}n.current=++t.current}return n.current}function jU(e){let t=A.useContext(u5);t===Rp&&!VU&&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=NU(!!e),r=t===Rp&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function KU(e){let t=A.useId(),[n]=A.useState(L4()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Rp.prefix}`;return e||`${r}-${t}`}const UU=typeof A.useId=="function"?KU:jU;function zU(){return!1}function qU(){return!0}function WU(e){return()=>{}}function L4(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(WU,zU,qU):A.useContext(BU)}let HU=!!(typeof window<"u"&&window.document&&window.document.createElement),Vl=new Map,pC=new FinalizationRegistry(e=>{Vl.delete(e)});function Wr(e){let[t,n]=A.useState(e),r=A.useRef(null),i=UU(t),s=A.useRef(null);if(pC.register(s,i),HU){const o=Vl.get(i);o&&!o.includes(r)?o.push(r):Vl.set(i,[r])}return pn(()=>{let o=i;return()=>{pC.unregister(s),Vl.delete(o)}},[i]),A.useEffect(()=>{let o=r.current;return o&&n(o),()=>{o&&(r.current=null)}}),i}function GU(e,t){if(e===t)return e;let n=Vl.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Vl.get(t);return r?(r.forEach(i=>i.current=e),e):t}function ec(e=[]){let t=Wr(),[n,r]=LU(t),i=A.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return pn(i,[t,i,...e]),n}function _u(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const nn=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},zo=e=>e&&"window"in e&&e.window===e?e:nn(e).defaultView||window;function YU(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ZU(e){return YU(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let XU=!1;function Sm(){return XU}function An(e,t){if(!Sm())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:ZU(n)?n=n.host:n=n.parentNode}return!1}const mr=(e=document)=>{var t;if(!Sm())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function en(e){return Sm()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class JU{get currentNode(){return this._currentNode}set currentNode(t){if(!An(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const o=r,u=this._doc.createTreeWalker(o,this.whatToShow,{acceptNode:this._acceptNode});n.push(u),u.currentNode=i,this._currentSetFor.add(u),r=i=o.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return An(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let o=this.lastChild();return o&&(this.currentNode=o),o}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=o=>{if(o.nodeType===Node.ELEMENT_NODE){const l=o.shadowRoot;if(l){const d=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(d),NodeFilter.FILTER_ACCEPT}else{var u;if(typeof this.filter=="function")return this.filter(o);if(!((u=this.filter)===null||u===void 0)&&u.acceptNode)return this.filter.acceptNode(o);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const o=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(o)}}}function QU(e,t,n,r){return Sm()?new JU(e,t,n,r):e.createTreeWalker(t,n,r)}function l5(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=l5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ez(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l5(e))&&(r&&(r+=" "),r+=t);return r}function Zt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let s=t[i],o=r[i];typeof s=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=_u(s,o):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?t[i]=ez(s,o):i==="id"&&s&&o?t.id=GU(s,o):t[i]=o!==void 0?o:s}}return t}const tz=new Set(["id"]),nz=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),rz=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),iz=/^(data-.*)$/;function Go(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(tz.has(o)||n&&nz.has(o)||r&&rz.has(o)||i!=null&&i.has(o)||iz.test(o))&&(s[o]=e[o]);return s}function Xi(e){if(sz())e.focus({preventScroll:!0});else{let t=oz(e);e.focus(),az(t)}}let Ph=null;function sz(){if(Ph==null){Ph=!1;try{document.createElement("div").focus({get preventScroll(){return Ph=!0,!0}})}catch{}}return Ph}function oz(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 az(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Em(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 B4(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Yo(e){let t=null;return()=>(t==null&&(t=e()),t)}const qo=Yo(function(){return B4(/^Mac/i)}),uz=Yo(function(){return B4(/^iPhone/i)}),c5=Yo(function(){return B4(/^iPad/i)||qo()&&navigator.maxTouchPoints>1}),xd=Yo(function(){return uz()||c5()}),rp=Yo(function(){return qo()||xd()}),V4=Yo(function(){return Em(/AppleWebKit/i)&&!f5()}),f5=Yo(function(){return Em(/Chrome/i)}),N4=Yo(function(){return Em(/Android/i)}),lz=Yo(function(){return Em(/Firefox/i)}),cz=A.createContext({isNative:!0,open:dz,useHref:e=>e});function Dm(){return A.useContext(cz)}function Mu(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:u,shiftKey:l}=t;lz()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(qo()?s=!0:o=!0);let d=V4()&&qo()&&!c5()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});Mu.isOpening=n,Xi(e),e.dispatchEvent(d),Mu.isOpening=!1}Mu.isOpening=!1;function fz(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 dz(e,t){fz(e,n=>Mu(n,t))}function hz(e){let t=Dm();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 Cl=new Map,ob=new Set;function mC(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Cl.get(r.target);i||(i=new Set,Cl.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=Cl.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Cl.delete(r.target)),Cl.size===0)){for(let s of ob)s();ob.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?mC():document.addEventListener("DOMContentLoaded",mC));function d5(e){requestAnimationFrame(()=>{Cl.size===0?e():ob.add(e)})}function Ma(){let e=A.useRef(new Map),t=A.useCallback((i,s,o,u)=>{let l=u!=null&&u.once?(...d)=>{e.current.delete(o),o(...d)}:o;e.current.set(o,{type:s,eventTarget:i,fn:l,options:u}),i.addEventListener(s,l,u)},[]),n=A.useCallback((i,s,o,u)=>{var l;let d=((l=e.current.get(o))===null||l===void 0?void 0:l.fn)||o;i.removeEventListener(s,d,u),e.current.delete(o)},[]),r=A.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return A.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function tc(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Wr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function ab(e,t){const n=A.useRef(!0),r=A.useRef(null);A.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),A.useEffect(()=>{let i=r.current;n.current?n.current=!1:(!i||t.some((s,o)=>!Object.is(s,i[o])))&&e(),r.current=t},t)}function gC(e,t){const n=A.useRef(!0),r=A.useRef(null);pn(()=>(n.current=!0,()=>{n.current=!1}),[]),pn(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function pz(){return typeof window.ResizeObserver<"u"}function vC(e){const{ref:t,box:n,onResize:r}=e;A.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(pz()){const s=new window.ResizeObserver(o=>{o.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function h5(e,t){pn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Yf(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 Am(e,t){let n=e;for(Yf(n,t)&&(n=n.parentElement);n&&!Yf(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function mz(e,t){const n=[];for(;e&&e!==document.documentElement;)Yf(e,t)&&n.push(e),e=e.parentElement;return n}let gz=0;const Pv=new Map;function wd(e){let[t,n]=A.useState();return pn(()=>{if(!e)return;let r=Pv.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${gz++}`;n(i);let s=document.createElement("div");s.id=i,s.style.display="none",s.textContent=e,document.body.appendChild(s),r={refCount:0,element:s},Pv.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Pv.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Gs(e,t,n,r){let i=Hn(n),s=n==null;A.useEffect(()=>{if(s||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,s,i])}function p5(e,t){let n=yC(e,t,"left"),r=yC(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,o=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:h,scrollPaddingRight:m,scrollPaddingBottom:g,scrollPaddingLeft:b}=getComputedStyle(e),$=o+parseInt(d,10),w=u+parseInt(l,10),D=$+e.clientWidth,S=w+e.clientHeight,C=parseInt(h,10)||0,T=parseInt(g,10)||0,O=parseInt(m,10)||0,M=parseInt(b,10)||0;n<=o+M?o=n-parseInt(d,10)-M:n+i>D-O&&(o+=n+i-D+O),r<=w+C?u=r-parseInt(l,10)-C:r+s>S-T&&(u+=r+s-S+T),e.scrollLeft=o,e.scrollTop=u}function yC(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 Fp(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=mz(e);for(let d of l)p5(d,e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:h,top:m}=e.getBoundingClientRect();if(Math.abs(l-h)>1||Math.abs(d-m)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function ub(e){return e.mozInputSource===0&&e.isTrusted?!0:N4()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function vz(e){return!N4()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function m5(e,t){let n=A.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function j4(e,t,n){let r=A.useRef(t),i=Hn(()=>{n&&n(r.current)});A.useEffect(()=>{var s;let o=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}const yz="react-aria-clear-focus",bz="react-aria-focus";function Sl(e){return qo()?e.metaKey:e.ctrlKey}const K4=["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"])'],$z=K4.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";K4.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const xz=K4.join(':not([hidden]):not([tabindex="-1"]),');function g5(e){return e.matches($z)}function wz(e){return e.matches(xz)}function wi(e,t,n){let[r,i]=A.useState(e||t),s=A.useRef(e!==void 0),o=e!==void 0;A.useEffect(()=>{let d=s.current;d!==o&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let u=o?e:r,l=A.useCallback((d,...h)=>{let m=(g,...b)=>{n&&(Object.is(u,g)||n(g,...b)),o||(u=g)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((b,...$)=>{let w=d(o?u:b,...$);return m(w,...h),o?b:w})):(o||i(d),m(d,...h))},[o,u,n]);return[u,l]}function nc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function _h(e,t){let n=e,r=t.toString(),i=r.indexOf("."),s=i>=0?r.length-i:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function cf(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,s=_h(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(_h(n/r,r))*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor(_h((n-t)/r,r))*r),s=_h(s,r),s}let Dl="default",lb="",ip=new WeakMap;function cb(e){if(xd()){if(Dl==="default"){const t=nn(e);lb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Dl="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ip.set(e,e.style[t]),e.style[t]="none"}}function sp(e){if(xd()){if(Dl!=="disabled")return;Dl="restoring",setTimeout(()=>{d5(()=>{if(Dl==="restoring"){const t=nn(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=lb||""),lb="",Dl="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ip.has(e)){let t=ip.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ip.delete(e)}}const U4=A.createContext({register:()=>{}});U4.displayName="PressResponderContext";class v5{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 y5(e){let t=A.useRef({isFocused:!1,observer:null});pn(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Hn(r=>{e==null||e(r)});return A.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=o=>{t.current.isFocused=!1,i.disabled&&n(new v5("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let kp=!1;function bC(e){for(;e&&!g5(e);)e=e.parentElement;let t=zo(e),n=t.document.activeElement;if(!n||n===e)return;kp=!0;let r=!1,i=h=>{(h.target===n||r)&&h.stopImmediatePropagation()},s=h=>{(h.target===n||r)&&(h.stopImmediatePropagation(),!e&&!r&&(r=!0,Xi(n),l()))},o=h=>{(h.target===e||r)&&h.stopImmediatePropagation()},u=h=>{(h.target===e||r)&&(h.stopImmediatePropagation(),r||(r=!0,Xi(n),l()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",u,!0),t.addEventListener("focus",o,!0);let l=()=>{cancelAnimationFrame(d),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",u,!0),t.removeEventListener("focus",o,!0),kp=!1,r=!1},d=requestAnimationFrame(l);return l}function Cz(e,t){return t.get?t.get.call(e):t.value}function b5(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Sz(e,t){var n=b5(e,t,"get");return Cz(e,n)}function Ez(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Cd(e,t,n){Ez(e,t),t.set(e,n)}function Dz(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 $C(e,t,n){var r=b5(e,t,"set");return Dz(e,r,n),n}function Az(e){let t=A.useContext(U4);if(t){let{register:n,...r}=t;e=Zt(r,e),n()}return h5(t,e.ref),e}var Mh=new WeakMap;class Rh{continuePropagation(){$C(this,Mh,!1)}get shouldStopPropagation(){return Sz(this,Mh)}constructor(t,n,r,i){Cd(this,Mh,{writable:!0,value:void 0}),$C(this,Mh,!0);var s;let o=(s=i==null?void 0:i.target)!==null&&s!==void 0?s:r.currentTarget;const u=o==null?void 0:o.getBoundingClientRect();let l,d=0,h,m=null;r.clientX!=null&&r.clientY!=null&&(h=r.clientX,m=r.clientY),u&&(h!=null&&m!=null?(l=h-u.left,d=m-u.top):(l=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const xC=Symbol("linkClicked");function Sd(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,isDisabled:o,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:h,ref:m,...g}=Az(e),[b,$]=A.useState(!1),w=A.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:D,removeAllGlobalListeners:S}=Ma(),C=Hn((F,ae)=>{let oe=w.current;if(o||oe.didFirePressStart)return!1;let W=!0;if(oe.isTriggeringEvent=!0,r){let Ce=new Rh("pressstart",ae,F);r(Ce),W=Ce.shouldStopPropagation}return n&&n(!0),oe.isTriggeringEvent=!1,oe.didFirePressStart=!0,$(!0),W}),T=Hn((F,ae,oe=!0)=>{let W=w.current;if(!W.didFirePressStart)return!1;W.didFirePressStart=!1,W.isTriggeringEvent=!0;let Ce=!0;if(i){let ne=new Rh("pressend",ae,F);i(ne),Ce=ne.shouldStopPropagation}if(n&&n(!1),$(!1),t&&oe&&!o){let ne=new Rh("press",ae,F);t(ne),Ce&&(Ce=ne.shouldStopPropagation)}return W.isTriggeringEvent=!1,Ce}),O=Hn((F,ae)=>{let oe=w.current;if(o)return!1;if(s){oe.isTriggeringEvent=!0;let W=new Rh("pressup",ae,F);return s(W),oe.isTriggeringEvent=!1,W.shouldStopPropagation}return!0}),M=Hn(F=>{let ae=w.current;if(ae.isPressed&&ae.target){ae.didFirePressStart&&ae.pointerType!=null&&T(bl(ae.target,F),ae.pointerType,!1),ae.isPressed=!1,ae.isOverTarget=!1,ae.activePointerId=null,ae.pointerType=null,S(),h||sp(ae.target);for(let oe of ae.disposables)oe();ae.disposables=[]}}),k=Hn(F=>{d&&M(F)}),N=A.useMemo(()=>{let F=w.current,ae={onKeyDown(W){if(_v(W.nativeEvent,W.currentTarget)&&An(W.currentTarget,en(W.nativeEvent))){var Ce;SC(en(W.nativeEvent),W.key)&&W.preventDefault();let ne=!0;if(!F.isPressed&&!W.repeat){F.target=W.currentTarget,F.isPressed=!0,F.pointerType="keyboard",ne=C(W,"keyboard");let se=W.currentTarget,z=K=>{_v(K,se)&&!K.repeat&&An(se,en(K))&&F.target&&O(bl(F.target,K),"keyboard")};D(nn(W.currentTarget),"keyup",_u(z,oe),!0)}ne&&W.stopPropagation(),W.metaKey&&qo()&&((Ce=F.metaKeyEvents)===null||Ce===void 0||Ce.set(W.key,W.nativeEvent))}else W.key==="Meta"&&(F.metaKeyEvents=new Map)},onClick(W){if(!(W&&!An(W.currentTarget,en(W.nativeEvent)))&&W&&W.button===0&&!F.isTriggeringEvent&&!Mu.isOpening){let Ce=!0;if(o&&W.preventDefault(),!F.ignoreEmulatedMouseEvents&&!F.isPressed&&(F.pointerType==="virtual"||ub(W.nativeEvent))){let ne=C(W,"virtual"),se=O(W,"virtual"),z=T(W,"virtual");Ce=ne&&se&&z}else if(F.isPressed&&F.pointerType!=="keyboard"){let ne=F.pointerType||W.nativeEvent.pointerType||"virtual";Ce=T(bl(W.currentTarget,W),ne,!0),F.isOverTarget=!1,M(W)}F.ignoreEmulatedMouseEvents=!1,Ce&&W.stopPropagation()}}},oe=W=>{var Ce;if(F.isPressed&&F.target&&_v(W,F.target)){var ne;SC(en(W),W.key)&&W.preventDefault();let z=en(W);T(bl(F.target,W),"keyboard",An(F.target,en(W))),S(),W.key!=="Enter"&&z4(F.target)&&An(F.target,z)&&!W[xC]&&(W[xC]=!0,Mu(F.target,W,!1)),F.isPressed=!1,(ne=F.metaKeyEvents)===null||ne===void 0||ne.delete(W.key)}else if(W.key==="Meta"&&(!((Ce=F.metaKeyEvents)===null||Ce===void 0)&&Ce.size)){var se;let z=F.metaKeyEvents;F.metaKeyEvents=void 0;for(let K of z.values())(se=F.target)===null||se===void 0||se.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){ae.onPointerDown=ne=>{if(ne.button!==0||!An(ne.currentTarget,en(ne.nativeEvent)))return;if(vz(ne.nativeEvent)){F.pointerType="virtual";return}F.pointerType=ne.pointerType;let se=!0;if(!F.isPressed){F.isPressed=!0,F.isOverTarget=!0,F.activePointerId=ne.pointerId,F.target=ne.currentTarget,h||cb(F.target),se=C(ne,F.pointerType);let z=en(ne.nativeEvent);"releasePointerCapture"in z&&z.releasePointerCapture(ne.pointerId),D(nn(ne.currentTarget),"pointerup",W,!1),D(nn(ne.currentTarget),"pointercancel",Ce,!1)}se&&ne.stopPropagation()},ae.onMouseDown=ne=>{if(An(ne.currentTarget,en(ne.nativeEvent))&&ne.button===0){if(l){let se=bC(ne.target);se&&F.disposables.push(se)}ne.stopPropagation()}},ae.onPointerUp=ne=>{!An(ne.currentTarget,en(ne.nativeEvent))||F.pointerType==="virtual"||ne.button===0&&O(ne,F.pointerType||ne.pointerType)},ae.onPointerEnter=ne=>{ne.pointerId===F.activePointerId&&F.target&&!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,C(bl(F.target,ne),F.pointerType))},ae.onPointerLeave=ne=>{ne.pointerId===F.activePointerId&&F.target&&F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,T(bl(F.target,ne),F.pointerType,!1),k(ne))};let W=ne=>{if(ne.pointerId===F.activePointerId&&F.isPressed&&ne.button===0&&F.target){if(An(F.target,en(ne))&&F.pointerType!=null){let se=!1,z=setTimeout(()=>{F.isPressed&&F.target instanceof HTMLElement&&(se?M(ne):(Xi(F.target),F.target.click()))},80);D(ne.currentTarget,"click",()=>se=!0,!0),F.disposables.push(()=>clearTimeout(z))}else M(ne);F.isOverTarget=!1}},Ce=ne=>{M(ne)};ae.onDragStart=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&M(ne)}}else{ae.onMouseDown=ne=>{if(ne.button!==0||!An(ne.currentTarget,en(ne.nativeEvent)))return;if(F.ignoreEmulatedMouseEvents){ne.stopPropagation();return}if(F.isPressed=!0,F.isOverTarget=!0,F.target=ne.currentTarget,F.pointerType=ub(ne.nativeEvent)?"virtual":"mouse",Vo.flushSync(()=>C(ne,F.pointerType))&&ne.stopPropagation(),l){let z=bC(ne.target);z&&F.disposables.push(z)}D(nn(ne.currentTarget),"mouseup",W,!1)},ae.onMouseEnter=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!0,se=C(ne,F.pointerType)),se&&ne.stopPropagation()},ae.onMouseLeave=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!1,se=T(ne,F.pointerType,!1),k(ne)),se&&ne.stopPropagation()},ae.onMouseUp=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&!F.ignoreEmulatedMouseEvents&&ne.button===0&&O(ne,F.pointerType||"mouse")};let W=ne=>{if(ne.button===0){if(F.ignoreEmulatedMouseEvents){F.ignoreEmulatedMouseEvents=!1;return}F.target&&F.target.contains(ne.target)&&F.pointerType!=null||M(ne),F.isOverTarget=!1}};ae.onTouchStart=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;let se=Tz(ne.nativeEvent);if(!se)return;F.activePointerId=se.identifier,F.ignoreEmulatedMouseEvents=!0,F.isOverTarget=!0,F.isPressed=!0,F.target=ne.currentTarget,F.pointerType="touch",h||cb(F.target),C(fa(F.target,ne),F.pointerType)&&ne.stopPropagation(),D(zo(ne.currentTarget),"scroll",Ce,!0)},ae.onTouchMove=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;if(!F.isPressed){ne.stopPropagation();return}let se=wC(ne.nativeEvent,F.activePointerId),z=!0;se&&CC(se,ne.currentTarget)?!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,z=C(fa(F.target,ne),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,z=T(fa(F.target,ne),F.pointerType,!1),k(fa(F.target,ne))),z&&ne.stopPropagation()},ae.onTouchEnd=ne=>{if(!An(ne.currentTarget,en(ne.nativeEvent)))return;if(!F.isPressed){ne.stopPropagation();return}let se=wC(ne.nativeEvent,F.activePointerId),z=!0;se&&CC(se,ne.currentTarget)&&F.pointerType!=null?(O(fa(F.target,ne),F.pointerType),z=T(fa(F.target,ne),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(z=T(fa(F.target,ne),F.pointerType,!1)),z&&ne.stopPropagation(),F.isPressed=!1,F.activePointerId=null,F.isOverTarget=!1,F.ignoreEmulatedMouseEvents=!0,F.target&&!h&&sp(F.target),S()},ae.onTouchCancel=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&(ne.stopPropagation(),F.isPressed&&M(fa(F.target,ne)))};let Ce=ne=>{F.isPressed&&An(en(ne),F.target)&&M({currentTarget:F.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};ae.onDragStart=ne=>{An(ne.currentTarget,en(ne.nativeEvent))&&M(ne)}}return ae},[D,o,l,S,h,M,k,T,C,O]);return A.useEffect(()=>{let F=w.current;return()=>{var ae;h||sp((ae=F.target)!==null&&ae!==void 0?ae:void 0);for(let oe of F.disposables)oe();F.disposables=[]}},[h]),{isPressed:u||b,pressProps:Zt(g,N)}}function z4(e){return e.tagName==="A"&&e.hasAttribute("href")}function _v(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof zo(i).HTMLInputElement&&!$5(i,n)||i instanceof zo(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&z4(i))&&n!=="Enter")}function Tz(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function wC(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function fa(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function bl(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 Pz(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 _z(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function CC(e,t){let n=t.getBoundingClientRect(),r=Pz(e);return _z(n,r)}function Mz(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!z4(e)}function SC(e,t){return e instanceof HTMLInputElement?!$5(e,t):Mz(e)}const Rz=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $5(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Rz.has(e.type)}let Iu=null,Fz=new Set,Lf=new Map,Ru=!1,fb=!1;function Tm(e,t){for(let n of Fz)n(e,t)}function kz(e){return!(e.metaKey||!qo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Op(e){Ru=!0,kz(e)&&(Iu="keyboard",Tm("keyboard",e))}function Ki(e){Iu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ru=!0,Tm("pointer",e))}function x5(e){ub(e)&&(Ru=!0,Iu="virtual")}function w5(e){e.target===window||e.target===document||kp||!e.isTrusted||(!Ru&&!fb&&(Iu="virtual",Tm("virtual",e)),Ru=!1,fb=!1)}function C5(){kp||(Ru=!1,fb=!0)}function EC(e){if(typeof window>"u"||Lf.get(zo(e)))return;const t=zo(e),n=nn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ru=!0,r.apply(this,arguments)},n.addEventListener("keydown",Op,!0),n.addEventListener("keyup",Op,!0),n.addEventListener("click",x5,!0),t.addEventListener("focus",w5,!0),t.addEventListener("blur",C5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Ki,!0),n.addEventListener("pointermove",Ki,!0),n.addEventListener("pointerup",Ki,!0)):(n.addEventListener("mousedown",Ki,!0),n.addEventListener("mousemove",Ki,!0),n.addEventListener("mouseup",Ki,!0)),t.addEventListener("beforeunload",()=>{S5(e)},{once:!0}),Lf.set(t,{focus:r})}const S5=(e,t)=>{const n=zo(e),r=nn(e);t&&r.removeEventListener("DOMContentLoaded",t),Lf.has(n)&&(n.HTMLElement.prototype.focus=Lf.get(n).focus,r.removeEventListener("keydown",Op,!0),r.removeEventListener("keyup",Op,!0),r.removeEventListener("click",x5,!0),n.removeEventListener("focus",w5,!0),n.removeEventListener("blur",C5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Ki,!0),r.removeEventListener("pointermove",Ki,!0),r.removeEventListener("pointerup",Ki,!0)):(r.removeEventListener("mousedown",Ki,!0),r.removeEventListener("mousemove",Ki,!0),r.removeEventListener("mouseup",Ki,!0)),Lf.delete(n))};function Oz(e){const t=nn(e);let n;return t.readyState!=="loading"?EC(e):(n=()=>{EC(e)},t.addEventListener("DOMContentLoaded",n)),()=>S5(e,n)}typeof document<"u"&&Oz();function DC(){return Iu!=="pointer"}function Zf(){return Iu}function E5(e){Iu=e,Tm(e,null)}function Fu(e){const t=nn(e),n=mr(t);if(Zf()==="virtual"){let r=n;d5(()=>{mr(t)===r&&e.isConnected&&Xi(e)})}else Xi(e)}function Iz(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=A.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),o=y5(s),u=A.useCallback(l=>{const d=nn(l.target),h=d?mr(d):mr();l.target===l.currentTarget&&h===en(l.nativeEvent)&&(n&&n(l),i&&i(!0),o(l))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?s:void 0}}}function AC(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 D5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:AC(e.onKeyDown),onKeyUp:AC(e.onKeyUp)}}}let Lz=A.createContext(null);function Bz(e){let t=A.useContext(Lz)||{};h5(t,e);let{ref:n,...r}=t;return r}function q4(e,t){let{focusProps:n}=Iz(e),{keyboardProps:r}=D5(e),i=Zt(n,r),s=Bz(t),o=e.isDisabled?{}:s,u=A.useRef(e.autoFocus);A.useEffect(()=>{u.current&&t.current&&Fu(t.current),u.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:Zt({...i,tabIndex:l},o)}}function Vz({children:e}){let t=A.useMemo(()=>({register:()=>{}}),[]);return A.createElement(U4.Provider,{value:t},e)}function bc(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=A.useRef({isFocusWithin:!1}),{addGlobalListener:o,removeAllGlobalListeners:u}=Ma(),l=A.useCallback(m=>{m.currentTarget.contains(m.target)&&s.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(s.current.isFocusWithin=!1,u(),n&&n(m),i&&i(!1))},[n,i,s,u]),d=y5(l),h=A.useCallback(m=>{if(!m.currentTarget.contains(m.target))return;const g=nn(m.target),b=mr(g);if(!s.current.isFocusWithin&&b===en(m.nativeEvent)){r&&r(m),i&&i(!0),s.current.isFocusWithin=!0,d(m);let $=m.currentTarget;o(g,"focus",w=>{if(s.current.isFocusWithin&&!An($,w.target)){let D=new v5("blur",new g.defaultView.FocusEvent("blur",{relatedTarget:w.target}));D.target=$,D.currentTarget=$,l(D)}},{capture:!0})}},[r,i,d,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:l}}}let Ip=!1,Mv=0;function db(){Ip=!0,setTimeout(()=>{Ip=!1},50)}function TC(e){e.pointerType==="touch"&&db()}function Nz(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",TC):document.addEventListener("touchend",db),Mv++,()=>{Mv--,!(Mv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",TC):document.removeEventListener("touchend",db))}}function jz(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,o]=A.useState(!1),u=A.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;A.useEffect(Nz,[]);let{addGlobalListener:l,removeAllGlobalListeners:d}=Ma(),{hoverProps:h,triggerHoverEnd:m}=A.useMemo(()=>{let g=(w,D)=>{if(u.pointerType=D,i||D==="touch"||u.isHovered||!w.currentTarget.contains(w.target))return;u.isHovered=!0;let S=w.currentTarget;u.target=S,l(nn(w.target),"pointerover",C=>{u.isHovered&&u.target&&!An(u.target,C.target)&&b(C,C.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:D}),n&&n(!0),o(!0)},b=(w,D)=>{let S=u.target;u.pointerType="",u.target=null,!(D==="touch"||!u.isHovered||!S)&&(u.isHovered=!1,d(),r&&r({type:"hoverend",target:S,pointerType:D}),n&&n(!1),o(!1))},$={};return typeof PointerEvent<"u"?($.onPointerEnter=w=>{Ip&&w.pointerType==="mouse"||g(w,w.pointerType)},$.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,w.pointerType)}):($.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=w=>{!u.ignoreEmulatedMouseEvents&&!Ip&&g(w,"mouse"),u.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=w=>{!i&&w.currentTarget.contains(w.target)&&b(w,"mouse")}),{hoverProps:$,triggerHoverEnd:b}},[t,n,r,i,u,l,d]);return A.useEffect(()=>{i&&m({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:h,isHovered:s}}function Kz(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Hn(l=>{n&&Fh(l,t)&&(i&&i(l),s.current.isPointerDown=!0)}),u=Hn(l=>{n&&n(l)});A.useEffect(()=>{let l=s.current;if(r)return;const d=t.current,h=nn(d);if(typeof PointerEvent<"u"){let m=g=>{l.isPointerDown&&Fh(g,t)&&u(g),l.isPointerDown=!1};return h.addEventListener("pointerdown",o,!0),h.addEventListener("pointerup",m,!0),()=>{h.removeEventListener("pointerdown",o,!0),h.removeEventListener("pointerup",m,!0)}}else{let m=b=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Fh(b,t)&&u(b),l.isPointerDown=!1},g=b=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Fh(b,t)&&u(b),l.isPointerDown=!1};return h.addEventListener("mousedown",o,!0),h.addEventListener("mouseup",m,!0),h.addEventListener("touchstart",o,!0),h.addEventListener("touchend",g,!0),()=>{h.removeEventListener("mousedown",o,!0),h.removeEventListener("mouseup",m,!0),h.removeEventListener("touchstart",o,!0),h.removeEventListener("touchend",g,!0)}}},[t,r,o,u])}function Fh(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function A5(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=A.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=Ma(),u=Hn((h,m,g,b)=>{g===0&&b===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey})),n==null||n({type:"move",pointerType:m,deltaX:g,deltaY:b,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))}),l=Hn((h,m)=>{sp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:m,shiftKey:h.shiftKey,metaKey:h.metaKey,ctrlKey:h.ctrlKey,altKey:h.altKey}))});return{moveProps:A.useMemo(()=>{let h={},m=()=>{cb(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let b=S=>{if(S.button===0){var C,T,O,M;u(S,"mouse",S.pageX-((O=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&O!==void 0?O:0),S.pageY-((M=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&M!==void 0?M:0)),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY}}},$=S=>{S.button===0&&(l(S,"mouse"),o(window,"mousemove",b,!1),o(window,"mouseup",$,!1))};h.onMouseDown=S=>{S.button===0&&(m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:S.pageX,pageY:S.pageY},s(window,"mousemove",b,!1),s(window,"mouseup",$,!1))};let w=S=>{let C=[...S.changedTouches].findIndex(({identifier:N})=>N===i.current.id);if(C>=0){var T,O;let{pageX:N,pageY:F}=S.changedTouches[C];var M,k;u(S,"touch",N-((M=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageX)!==null&&M!==void 0?M:0),F-((k=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:N,pageY:F}}},D=S=>{[...S.changedTouches].findIndex(({identifier:T})=>T===i.current.id)>=0&&(l(S,"touch"),i.current.id=null,o(window,"touchmove",w),o(window,"touchend",D),o(window,"touchcancel",D))};h.onTouchStart=S=>{if(S.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:T,identifier:O}=S.changedTouches[0];m(),S.stopPropagation(),S.preventDefault(),i.current.lastPosition={pageX:C,pageY:T},i.current.id=O,s(window,"touchmove",w,!1),s(window,"touchend",D,!1),s(window,"touchcancel",D,!1)}}else{let b=w=>{if(w.pointerId===i.current.id){var D,S;let O=w.pointerType||"mouse";var C,T;u(w,O,w.pageX-((C=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&C!==void 0?C:0),w.pageY-((T=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},$=w=>{if(w.pointerId===i.current.id){let D=w.pointerType||"mouse";l(w,D),i.current.id=null,o(window,"pointermove",b,!1),o(window,"pointerup",$,!1),o(window,"pointercancel",$,!1)}};h.onPointerDown=w=>{w.button===0&&i.current.id==null&&(m(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,s(window,"pointermove",b,!1),s(window,"pointerup",$,!1),s(window,"pointercancel",$,!1))}}let g=(b,$,w)=>{m(),u(b,"keyboard",$,w),l(b,"keyboard")};return h.onKeyDown=b=>{switch(b.key){case"Left":case"ArrowLeft":b.preventDefault(),b.stopPropagation(),g(b,-1,0);break;case"Right":case"ArrowRight":b.preventDefault(),b.stopPropagation(),g(b,1,0);break;case"Up":case"ArrowUp":b.preventDefault(),b.stopPropagation(),g(b,0,-1);break;case"Down":case"ArrowDown":b.preventDefault(),b.stopPropagation(),g(b,0,1);break}},h},[i,s,o,u,l])}}const Uz=500;function T5(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:s=Uz,accessibilityDescription:o}=e;const u=A.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Ma(),{pressProps:h}=Sd({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),u.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),nn(g.target).activeElement!==g.target&&Xi(g.target),i&&i({...g,type:"longpress"}),u.current=void 0},s),g.pointerType==="touch")){let b=$=>{$.preventDefault()};l(g.target,"contextmenu",b,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",b)},30)},{once:!0})}},onPressEnd(g){u.current&&clearTimeout(u.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),m=wd(i&&!t?o:void 0);return{longPressProps:Zt(h,m)}}const zz=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qz=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wz(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 zz.has(n.script)}let t=e.split("-")[0];return qz.has(t)}const Hz=Symbol.for("react-aria.i18n.locale");function P5(){let e=typeof window<"u"&&window[Hz]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Wz(e)?"rtl":"ltr"}}let hb=P5(),Ef=new Set;function PC(){hb=P5();for(let e of Ef)e(hb)}function Gz(){let e=L4(),[t,n]=A.useState(hb);return A.useEffect(()=>(Ef.size===0&&window.addEventListener("languagechange",PC),Ef.add(n),()=>{Ef.delete(n),Ef.size===0&&window.removeEventListener("languagechange",PC)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Yz=A.createContext(null);function Rr(){let e=Gz();return A.useContext(Yz)||e}const Zz=Symbol.for("react-aria.i18n.locale"),Xz=Symbol.for("react-aria.i18n.strings");let $l;class Ra{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=Jz(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Zz];if($l===void 0){let i=window[Xz];if(!i)return null;$l={};for(let s in i)$l[s]=new Ra({[n]:i[s]},n)}let r=$l==null?void 0:$l[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Jz(e,t,n="en-US"){if(t[e])return t[e];let r=Qz(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Qz(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const _C=new Map,MC=new Map;class _5{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,o=_C.get(s);o||(o=new Intl.PluralRules(this.locale,{type:r}),_C.set(s,o));let u=o.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=MC.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),MC.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 RC=new WeakMap;function eq(e){let t=RC.get(e);return t||(t=new Ra(e),RC.set(e,t)),t}function M5(e,t){return t&&Ra.getGlobalDictionaryForPackage(t)||eq(e)}function oo(e,t){let{locale:n}=Rr(),r=M5(e,t);return A.useMemo(()=>new _5(n,r),[n,r])}function Nl(e,t){return e-t*Math.floor(e/t)}const R5=1721426;function pu(e,t,n,r){t=Ed(e,t);let i=t-1,s=-2;return n<=2?s=0:ba(t)&&(s=-1),R5-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+s+r)}function ba(e){return e%4===0&&(e%100!==0||e%400===0)}function Ed(e,t){return e==="BC"?1-t:t}function Pm(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const tq={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Gr{fromJulianDay(t){let n=t,r=n-R5,i=Math.floor(r/146097),s=Nl(r,146097),o=Math.floor(s/36524),u=Nl(s,36524),l=Math.floor(u/1461),d=Nl(u,1461),h=Math.floor(d/365),m=i*400+o*100+l*4+h+(o!==4&&h!==4?1:0),[g,b]=Pm(m),$=n-pu(g,b,1,1),w=2;n<pu(g,b,3,1)?w=0:ba(b)&&(w=1);let D=Math.floor((($+w)*12+373)/367),S=n-pu(g,b,D,1)+1;return new Yn(g,b,D,S)}toJulianDay(t){return pu(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return tq[ba(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ba(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const nq={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function ir(e,t){return t=Fn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function pb(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 F5(e,t){return ir(e,_m(t))}const rq={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function W4(e,t,n){let r=e.calendar.toJulianDay(e),i=n?rq[n]:lq(t),s=Math.ceil(r+1-i)%7;return s<0&&(s+=7),s}function k5(e){return Io(Date.now(),e)}function _m(e){return Hr(k5(e))}function O5(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function I5(e,t){return FC(e)-FC(t)}function FC(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Rv=null;function Dd(){return Rv==null&&(Rv=new Intl.DateTimeFormat().resolvedOptions().timeZone),Rv}function Ad(e){return e.subtract({days:e.day-1})}function mb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function iq(e){return Ad(e.subtract({months:e.month-1}))}function sq(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function oq(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Xf(e,t,n){let r=W4(e,t,n);return e.subtract({days:r})}function aq(e,t,n){return Xf(e,t,n).add({days:6})}const kC=new Map;function uq(e){if(Intl.Locale){let n=kC.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&kC.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function lq(e){let t=uq(e);return t&&nq[t]||0}function cq(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((W4(Ad(e),t,n)+r)/7)}function H4(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function G4(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function rc(e){e=Fn(e,new Gr);let t=Ed(e.era,e.year);return L5(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function L5(e,t,n,r,i,s,o){let u=new Date;return u.setUTCHours(r,i,s,o),u.setUTCFullYear(e,t-1,n),u.getTime()}function gb(e,t){if(t==="UTC")return 0;if(e>0&&t===Dd())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:s,minute:o,second:u}=B5(e,t);return L5(n,r,i,s,o,u,0)-Math.floor(e/1e3)*1e3}const OC=new Map;function B5(e,t){let n=OC.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"}),OC.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let s of r)s.type!=="literal"&&(i[s.type]=s.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const IC=864e5;function fq(e,t,n,r){return(n===r?[n]:[n,r]).filter(s=>dq(e,t,s))}function dq(e,t,n){let r=B5(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Oo(e,t,n="compatible"){let r=xs(e);if(t==="UTC")return rc(r);if(t===Dd()&&n==="compatible"){r=Fn(r,new Gr);let l=new Date,d=Ed(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=rc(r),s=gb(i-IC,t),o=gb(i+IC,t),u=fq(r,t,i-s,i-o);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-s,i-o);case"compatible":case"later":return Math.max(i-s,i-o);case"reject":throw new RangeError("No such absolute time found")}}function V5(e,t,n="compatible"){return new Date(Oo(e,t,n))}function Io(e,t){let n=gb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),s=r.getUTCMonth()+1,o=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),h=r.getUTCMilliseconds();return new ed(i<1?"BC":"AD",i<1?-i+1:i,s,o,t,n,u,l,d,h)}function Hr(e){return new Yn(e.calendar,e.era,e.year,e.month,e.day)}function xs(e,t){let n=0,r=0,i=0,s=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:s}=t),new Qf(e.calendar,e.era,e.year,e.month,e.day,n,r,i,s)}function LC(e){return new Td(e.hour,e.minute,e.second,e.millisecond)}function Fn(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ku(r),r}function N5(e,t,n){if(e instanceof ed)return e.timeZone===t?e:pq(e,t);let r=Oo(e,t,n);return Io(r,t)}function hq(e){let t=rc(e)-e.offset;return new Date(t)}function pq(e,t){let n=rc(e)-e.offset;return Fn(Io(n,t),e.calendar)}const ff=36e5;function Mm(e,t){let n=e.copy(),r="hour"in n?z5(n,t):0;vb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,yb(n),j5(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,mq(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var s,o;let l=(s=(o=n.calendar).isInverseEra)===null||s===void 0?void 0:s.call(o,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function vb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function yb(e){for(;e.month<1;)vb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,vb(e,1)}function mq(e){for(;e.day<1;)e.month--,yb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,yb(e)}function j5(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 ku(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),j5(e)}function Y4(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function K5(e,t){return Mm(e,Y4(t))}function Z4(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),ku(n),n}function Jf(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),U5(n),n}function gq(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=kh(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=kh(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=kh(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=kh(e.hour,24),t}function U5(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function kh(e,t){let n=e%t;return n<0&&(n+=t),n}function z5(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,gq(e)}function q5(e,t){let n=e.copy();return z5(n,t),n}function vq(e,t){return q5(e,Y4(t))}function X4(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=Lo(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],ku(i);break}case"year":var s,o;!((s=(o=i.calendar).isInverseEra)===null||s===void 0)&&s.call(o,i)&&(n=-n),i.year=Lo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Lo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Lo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ku(i),i}function J4(e,t,n,r){let i=e.copy();switch(t){case"hour":{let s=e.hour,o=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=s>=12;o=l?12:0,u=l?23:11}i.hour=Lo(s,n,o,u,r==null?void 0:r.round);break}case"minute":i.minute=Lo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Lo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Lo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Lo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function W5(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=Mm(xs(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Oo(i,e.timeZone)}else n=rc(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Io(n,e.timeZone);return Fn(r,e.calendar)}function yq(e,t){return W5(e,Y4(t))}function bq(e,t,n,r){switch(t){case"hour":{let i=0,s=23;if((r==null?void 0:r.hourCycle)===12){let $=e.hour>=12;i=$?12:0,s=$?23:11}let o=xs(e),u=Fn(Jf(o,{hour:i}),new Gr),l=[Oo(u,e.timeZone,"earlier"),Oo(u,e.timeZone,"later")].filter($=>Io($,e.timeZone).day===u.day)[0],d=Fn(Jf(o,{hour:s}),new Gr),h=[Oo(d,e.timeZone,"earlier"),Oo(d,e.timeZone,"later")].filter($=>Io($,e.timeZone).day===d.day).pop(),m=rc(e)-e.offset,g=Math.floor(m/ff),b=m%ff;return m=Lo(g,n,Math.floor(l/ff),Math.floor(h/ff),r==null?void 0:r.round)*ff+b,Fn(Io(m,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return J4(e,t,n,r);case"era":case"year":case"month":case"day":{let i=X4(xs(e),t,n,r),s=Oo(i,e.timeZone);return Fn(Io(s,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function $q(e,t,n){let r=xs(e),i=Jf(Z4(r,t),t);if(i.compare(r)===0)return e;let s=Oo(i,e.timeZone,n);return Fn(Io(s,e.timeZone),e.calendar)}const xq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,wq=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function Cq(e){let t=e.match(xq);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Yn(Ks(t[1],0,9999),Ks(t[2],1,12),1);return n.day=Ks(t[3],0,n.calendar.getDaysInMonth(n)),n}function Sq(e){let t=e.match(wq);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Ks(t[1],-9999,9999),r=n<1?"BC":"AD",i=new Qf(r,n<1?-n+1:n,Ks(t[2],1,12),1,t[4]?Ks(t[4],0,23):0,t[5]?Ks(t[5],0,59):0,t[6]?Ks(t[6],0,59):0,t[7]?Ks(t[7],0,1/0)*1e3:0);return i.day=Ks(t[3],0,i.calendar.getDaysInMonth(i)),i}function Ks(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function H5(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 G5(e){let t=Fn(e,new Gr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Y5(e){return`${G5(e)}T${H5(e)}`}function Eq(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 Dq(e){return`${Y5(e)}${Eq(e.offset)}[${e.timeZone}]`}function Q4(e){let t=typeof e[0]=="object"?e.shift():new Gr,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let r=e.shift(),i=e.shift(),s=e.shift();return[t,n,r,i,s]}var Aq=new WeakMap;class Yn{copy(){return this.era?new Yn(this.calendar,this.era,this.year,this.month,this.day):new Yn(this.calendar,this.year,this.month,this.day)}add(t){return Mm(this,t)}subtract(t){return K5(this,t)}set(t){return Z4(this,t)}cycle(t,n,r){return X4(this,t,n,r)}toDate(t){return V5(this,t)}toString(){return G5(this)}compare(t){return O5(this,t)}constructor(...t){Cd(this,Aq,{writable:!0,value:void 0});let[n,r,i,s,o]=Q4(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,ku(this)}}var Tq=new WeakMap;class Td{copy(){return new Td(this.hour,this.minute,this.second,this.millisecond)}add(t){return q5(this,t)}subtract(t){return vq(this,t)}set(t){return Jf(this,t)}cycle(t,n,r){return J4(this,t,n,r)}toString(){return H5(this)}compare(t){return I5(this,t)}constructor(t=0,n=0,r=0,i=0){Cd(this,Tq,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,U5(this)}}var Pq=new WeakMap;class Qf{copy(){return this.era?new Qf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Mm(this,t)}subtract(t){return K5(this,t)}set(t){return Z4(Jf(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return X4(this,t,n,r);default:return J4(this,t,n,r)}}toDate(t,n){return V5(this,t,n)}toString(){return Y5(this)}compare(t){let n=O5(this,t);return n===0?I5(this,xs(t)):n}constructor(...t){Cd(this,Pq,{writable:!0,value:void 0});let[n,r,i,s,o]=Q4(t);this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ku(this)}}var _q=new WeakMap;class ed{copy(){return this.era?new ed(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ed(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return W5(this,t)}subtract(t){return yq(this,t)}set(t,n){return $q(this,t,n)}cycle(t,n,r){return bq(this,t,n,r)}toDate(){return hq(this)}toString(){return Dq(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-N5(t,this.timeZone).toDate().getTime()}constructor(...t){Cd(this,_q,{writable:!0,value:void 0});let[n,r,i,s,o]=Q4(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=s,this.day=o,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ku(this)}}const jl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Mq=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],op=[1867,1911,1925,1988,2018],ga=["meiji","taisho","showa","heisei","reiwa"];function BC(e){const t=jl.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?jl.length-1:t===0?0:t-1}function Fv(e){let t=op[ga.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Yn(e.year+t,e.month,e.day)}class Rq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=BC(n);return new Yn(this,ga[r],n.year-op[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(Fv(t))}balanceDate(t){let n=Fv(t),r=BC(n);ga[r]!==t.era&&(t.era=ga[r],t.year=n.year-op[r]),this.constrainDate(t)}constrainDate(t){let n=ga.indexOf(t.era),r=Mq[n];if(r!=null){let[i,s,o]=r,u=i-op[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(o,t.day)))}if(t.year===1&&n>=0){let[,i,s]=jl[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(s,t.day))}}getEras(){return ga}getYearsInEra(t){let n=ga.indexOf(t.era),r=jl[n],i=jl[n+1];if(i==null)return 9999-r[0]+1;let s=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth(Fv(t))}getMinimumMonthInYear(t){let n=VC(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=VC(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function VC(e){if(e.year===1){let t=ga.indexOf(e.era);return jl[t]}}const Z5=-543;class Fq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ed(n.era,n.year);return new Yn(this,r-Z5,n.month,n.day)}toJulianDay(t){return super.toJulianDay(NC(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(NC(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function NC(e){let[t,n]=Pm(e.year+Z5);return new Yn(t,n,e.month,e.day)}const Lp=1911;function X5(e){return e.era==="minguo"?e.year+Lp:1-e.year+Lp}function jC(e){let t=e-Lp;return t>0?["minguo",t]:["before_minguo",1-t]}class kq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ed(n.era,n.year),[i,s]=jC(r);return new Yn(this,i,s,n.month,n.day)}toJulianDay(t){return super.toJulianDay(KC(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=jC(X5(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(KC(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Lp}constructor(...t){super(...t),this.identifier="roc"}}function KC(e){let[t,n]=Pm(X5(e));return new Yn(t,n,e.month,e.day)}const UC=1948320,zC=[0,31,62,93,124,155,186,216,246,276,306,336];class Oq{fromJulianDay(t){let n=t-UC,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),s=n-i,o=s<216?Math.floor(s/31):Math.floor((s-6)/30),u=s-zC[o]+1;return new Yn(this,r,o+1,u)}toJulianDay(t){let n=UC-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=zC[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Nl(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const kv=78,qC=80;class Iq extends Gr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-kv,i=t-pu(n.era,n.year,1,1),s;i<qC?(r--,s=ba(n.year-1)?31:30,i+=s+155+90+10):(s=ba(n.year)?31:30,i-=qC);let o,u;if(i<s)o=1,u=i+1;else{let l=i-s;l<155?(o=Math.floor(l/31)+2,u=l%31+1):(l-=155,o=Math.floor(l/30)+7,u=l%30+1)}return new Yn(this,r,o,u)}toJulianDay(t){let n=t.year+kv,[r,i]=Pm(n),s,o;return ba(i)?(s=31,o=pu(r,i,3,21)):(s=30,o=pu(r,i,3,22)),t.month===1?o+t.day-1:(o+=s+Math.min(t.month-2,5)*31,t.month>=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&ba(t.year+kv)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Bp=1948440,WC=1948439,Ni=1300,xl=1600,Lq=460322;function Vp(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function J5(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+Vp(t,r,1,1)))/29.5)+1),s=n-Vp(t,r,i,1)+1;return new Yn(e,r,i,s)}function HC(e){return(14+11*e)%30<11}class e3{fromJulianDay(t){return J5(this,Bp,t)}toJulianDay(t){return Vp(Bp,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&HC(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return HC(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Bq extends e3{fromJulianDay(t){return J5(this,WC,t)}toJulianDay(t){return Vp(WC,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const Vq="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let bb,Kl;function ap(e){return Lq+Kl[e-Ni]}function Df(e,t){let n=e-Ni,r=1<<11-(t-1);return(bb[n]&r)===0?29:30}function GC(e,t){let n=ap(e);for(let r=1;r<t;r++)n+=Df(e,r);return n}function YC(e){return Kl[e+1-Ni]-Kl[e-Ni]}class Nq extends e3{fromJulianDay(t){let n=t-Bp,r=ap(Ni),i=ap(xl);if(n<r||n>i)return super.fromJulianDay(t);{let s=Ni-1,o=1,u=1;for(;u>0;){s++,u=n-ap(s)+1;let l=YC(s);if(u===l){o=12;break}else if(u<l){let d=Df(s,o);for(o=1;u>d;)u-=d,o++,d=Df(s,o);break}}return new Yn(this,s,o,n-GC(s,o)+1)}}toJulianDay(t){return t.year<Ni||t.year>xl?super.toJulianDay(t):Bp+GC(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ni||t.year>xl?super.getDaysInMonth(t):Df(t.year,t.month)}getDaysInYear(t){return t.year<Ni||t.year>xl?super.getDaysInYear(t):YC(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",bb||(bb=new Uint16Array(Uint8Array.from(atob(Vq),t=>t.charCodeAt(0)).buffer)),!Kl){Kl=new Uint32Array(xl-Ni+1);let t=0;for(let n=Ni;n<=xl;n++){Kl[n-Ni]=t;for(let r=1;r<=12;r++)t+=Df(n,r)}}}}const ZC=347997,Q5=1080,e_=24*Q5,jq=29,Kq=12*Q5+793,Uq=jq*e_+Kq;function cu(e){return Nl(e*7+1,19)<7}function up(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Nl(3*(r+1),7)<3&&(r+=1),r}function zq(e){let t=up(e-1),n=up(e);return up(e+1)-n===356?2:n-t===382?1:0}function Bf(e){return up(e)+zq(e)}function t_(e){return Bf(e+1)-Bf(e)}function qq(e){let t=t_(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Oh(e,t){if(t>=6&&!cu(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=qq(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?cu(e)?30:0:30}class Wq{fromJulianDay(t){let n=t-ZC,r=n*e_/Uq,i=Math.floor((19*r+234)/235)+1,s=Bf(i),o=Math.floor(n-s);for(;o<1;)i--,s=Bf(i),o=Math.floor(n-s);let u=1,l=0;for(;l<o;)l+=Oh(i,u),u++;u--,l-=Oh(i,u);let d=o-l;return new Yn(this,i,u,d)}toJulianDay(t){let n=Bf(t.year);for(let r=1;r<t.month;r++)n+=Oh(t.year,r);return n+t.day+ZC}getDaysInMonth(t){return Oh(t.year,t.month)}getMonthsInYear(t){return cu(t.year)?13:12}getDaysInYear(t){return t_(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(cu(n.year)&&!cu(t.year)&&n.month>6?t.month--:!cu(n.year)&&cu(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const $b=1723856,XC=1824665,xb=5500;function Np(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function t3(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Np(e,n,1,1))/30),i=t+1-Np(e,n,r,1);return[n,r,i]}function n_(e){return Math.floor(e%4/3)}function r_(e,t){return t%13!==0?30:n_(e)+5}class n3{fromJulianDay(t){let[n,r,i]=t3($b,t),s="AM";return n<=0&&(s="AA",n+=xb),new Yn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=xb),Np($b,n,t.month,t.day)}getDaysInMonth(t){return r_(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+n_(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Hq extends n3{fromJulianDay(t){let[n,r,i]=t3($b,t);return n+=xb,new Yn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class Gq extends n3{fromJulianDay(t){let[n,r,i]=t3(XC,t),s="CE";return n<=0&&(s="BCE",n=1-n),new Yn(this,s,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Np(XC,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),r_(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 Yq(e){switch(e){case"buddhist":return new Fq;case"ethiopic":return new n3;case"ethioaa":return new Hq;case"coptic":return new Gq;case"hebrew":return new Wq;case"indian":return new Iq;case"islamic-civil":return new e3;case"islamic-tbla":return new Bq;case"islamic-umalqura":return new Nq;case"japanese":return new Rq;case"persian":return new Oq;case"roc":return new kq;case"gregory":default:return new Gr}}let Ov=new Map;class Wi{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return Jq()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Qq(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=i_(t,n),this.options=n}}const Zq={true:{ja:"h11"},false:{}};function i_(e,t={}){if(typeof t.hour12=="boolean"&&Xq()){t={...t};let i=Zq[String(t.hour12)][e.split("-")[0]],s=t.hour12?"h12":"h23";t.hourCycle=i??s,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Ov.has(n))return Ov.get(n);let r=new Intl.DateTimeFormat(e,t);return Ov.set(n,r),r}let Iv=null;function Xq(){return Iv==null&&(Iv=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),Iv}let Lv=null;function Jq(){return Lv==null&&(Lv=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),Lv}function Qq(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=i_(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ys(e){e=m5(e??{},eW);let{locale:t}=Rr();return A.useMemo(()=>new Wi(t,e),[t,e])}function eW(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 Bv=new Map,wb=!1;try{wb=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let jp=!1;try{jp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const s_={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class o_{format(t){let n="";if(!wb&&this.options.signDisplay!=null?n=nW(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!jp){var r;let{unit:i,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!i)return n;let u=(r=s_[i])===null||r===void 0?void 0:r[s];n+=u[o]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!wb&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!jp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=tW(t,n),this.options=n}}function tW(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!jp){var r;let{unit:o,unitDisplay:u="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=s_[o])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,u)=>o[0]<u[0]?-1:1).join():"");if(Bv.has(i))return Bv.get(i);let s=new Intl.NumberFormat(e,t);return Bv.set(i,s),s}function nW(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),o=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return e.format(n)}}const rW=new RegExp("^.*\\(.*\\).*$"),iW=["latn","arab","hanidec","deva","beng"];class a_{parse(t){return Vv(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Vv(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Vv(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const JC=new Map;function Vv(e,t,n){let r=QC(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of iW)if(i!==r.options.numberingSystem){let s=QC(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(s.isValidPartialNumber(n))return s}}return r}function QC(e,t){let n=e+(t?Object.entries(t).sort((i,s)=>i[0]<s[0]?-1:1).join():""),r=JC.get(n);return r||(r=new sW(e,t),JC.set(n,r)),r}class sW{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Ih(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,o>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,s;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new a_(this.locale,o).parse(new o_(this.locale,o).format(r))}return this.options.currencySign==="accounting"&&rW.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=Ih(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Ih(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=Ih(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=aW(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 eS=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),oW=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function aW(e,t,n,r){var i,s,o,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),h=l.formatToParts(10000.111),m=oW.map(oe=>l.formatToParts(oe));var g;let b=(g=(i=d.find(oe=>oe.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",$=(s=h.find(oe=>oe.type==="plusSign"))===null||s===void 0?void 0:s.value;!$&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&($="+");let D=(o=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(oe=>oe.type==="decimal"))===null||o===void 0?void 0:o.value,S=(u=d.find(oe=>oe.type==="group"))===null||u===void 0?void 0:u.value,C=d.filter(oe=>!eS.has(oe.type)).map(oe=>tS(oe.value)),T=m.flatMap(oe=>oe.filter(W=>!eS.has(W.type)).map(W=>tS(W.value))),O=[...new Set([...C,...T])].sort((oe,W)=>W.length-oe.length),M=O.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${O.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),N=new Map(k.map((oe,W)=>[oe,W])),F=new RegExp(`[${k.join("")}]`,"g");return{minusSign:b,plusSign:$,decimal:D,group:S,literals:M,numeral:F,index:oe=>String(N.get(oe))}}function Ih(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function tS(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function uW(e={}){let{locale:t}=Rr();return A.useMemo(()=>new o_(t,e),[t,e])}let Nv=new Map;function u_(e){let{locale:t}=Rr(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]<s[0]?-1:1).join():"");if(Nv.has(n))return Nv.get(n);let r=new Intl.Collator(t,e);return Nv.set(n,r),r}function l_(e){let t=u_({usage:"search",...e}),n=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(0,o.length),o)===0),[t]),r=A.useCallback((s,o)=>o.length===0?!0:(s=s.normalize("NFC"),o=o.normalize("NFC"),t.compare(s.slice(-o.length),o)===0),[t]),i=A.useCallback((s,o)=>{if(o.length===0)return!0;s=s.normalize("NFC"),o=o.normalize("NFC");let u=0,l=o.length;for(;u+l<=s.length;u++){let d=s.slice(u,u+l);if(t.compare(o,d)===0)return!0}return!1},[t]);return A.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function lW(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:o,onPressUp:u,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:h,onClick:m,href:g,target:b,rel:$,type:w="button"}=e,D;n==="button"?D={type:w,disabled:r}:D={role:"button",href:n==="a"&&!r?g:void 0,target:n==="a"?b:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?$:void 0};let{pressProps:S,isPressed:C}=Sd({onPressStart:s,onPressEnd:o,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:T}=q4(e,t);h&&(T.tabIndex=r?-1:T.tabIndex);let O=Zt(T,S,Go(e,{labelable:!0}));return{isPressed:C,buttonProps:Zt(D,O,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],onClick:M=>{m&&(m(M),console.warn("onClick is deprecated, please use onPress"))}})}}function cW(e){const t=zo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:o,visibility:u}=s(e);i=o!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function fW(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 c_(e,t){return e.nodeName!=="#comment"&&cW(e)&&fW(e,t)&&(!e.parentElement||c_(e.parentElement,e))}const nS=A.createContext(null),Cb="react-aria-focus-scope-restore";let bn=null;function dW(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=A.useRef(null),o=A.useRef(null),u=A.useRef([]),{parentNode:l}=A.useContext(nS)||{},d=A.useMemo(()=>new Eb({scopeRef:u}),[u]);pn(()=>{let g=l||Qn.root;if(Qn.getTreeNode(g.scopeRef)&&bn&&!Kp(bn,g.scopeRef)){let b=Qn.getTreeNode(bn);b&&(g=b)}g.addChild(d),Qn.addNode(d)},[d,l]),pn(()=>{let g=Qn.getTreeNode(u);g&&(g.contain=!!n)},[n]),pn(()=>{var g;let b=(g=s.current)===null||g===void 0?void 0:g.nextSibling,$=[],w=D=>D.stopPropagation();for(;b&&b!==o.current;)$.push(b),b.addEventListener(Cb,w),b=b.nextSibling;return u.current=$,()=>{for(let D of $)D.removeEventListener(Cb,w)}},[t]),vW(u,r,n),pW(u,n),yW(u,r,n),gW(u,i),A.useEffect(()=>{const g=mr(nn(u.current?u.current[0]:void 0));let b=null;if(Ji(g,u.current)){for(let $ of Qn.traverse())$.scopeRef&&Ji(g,$.scopeRef.current)&&(b=$);b===Qn.getTreeNode(u)&&(bn=b.scopeRef)}},[u]),pn(()=>()=>{var g,b,$;let w=($=(b=Qn.getTreeNode(u))===null||b===void 0||(g=b.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&$!==void 0?$:null;(u===bn||Kp(u,bn))&&(!w||Qn.getTreeNode(w))&&(bn=w),Qn.removeTreeNode(u)},[u]);let h=A.useMemo(()=>hW(u),[]),m=A.useMemo(()=>({focusManager:h,parentNode:d}),[d,h]);return A.createElement(nS.Provider,{value:m},A.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,A.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function hW(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t;var u;let l=r||mr(nn((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[0].previousElementSibling,h=mu(n),m=Kr(h,{tabbable:i,accept:o},n);m.currentNode=Ji(l,n)?l:d;let g=m.nextNode();return!g&&s&&(m.currentNode=d,g=m.nextNode()),g&&ii(g,!0),g},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:o}=t;var u;let l=r||mr(nn((u=n[0])!==null&&u!==void 0?u:void 0)),d=n[n.length-1].nextElementSibling,h=mu(n),m=Kr(h,{tabbable:i,accept:o},n);m.currentNode=Ji(l,n)?l:d;let g=m.previousNode();return!g&&s&&(m.currentNode=d,g=m.previousNode()),g&&ii(g,!0),g},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),o=Kr(s,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let u=o.nextNode();return u&&ii(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=mu(n),o=Kr(s,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let u=o.previousNode();return u&&ii(u,!0),u}}}function mu(e){return e[0].parentElement}function Af(e){let t=Qn.getTreeNode(bn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function pW(e,t){let n=A.useRef(void 0),r=A.useRef(void 0);pn(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=nn(i?i[0]:void 0);let o=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Af(e)||d.isComposing)return;let h=mr(s),m=e.current;if(!m||!Ji(h,m))return;let g=mu(m),b=Kr(g,{tabbable:!0},m);if(!h)return;b.currentNode=h;let $=d.shiftKey?b.previousNode():b.nextNode();$||(b.currentNode=d.shiftKey?m[m.length-1].nextElementSibling:m[0].previousElementSibling,$=d.shiftKey?b.previousNode():b.nextNode()),d.preventDefault(),$&&ii($,!0)},u=d=>{(!bn||Kp(bn,e))&&Ji(en(d),e.current)?(bn=e,n.current=en(d)):Af(e)&&!$a(en(d),e)?n.current?n.current.focus():bn&&bn.current&&Sb(bn.current):Af(e)&&(n.current=en(d))},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let h=Zf(),m=(h==="virtual"||h===null)&&N4()&&f5(),g=mr(s);if(!m&&g&&Af(e)&&!$a(g,e)){bn=e;let $=en(d);if($&&$.isConnected){var b;n.current=$,(b=n.current)===null||b===void 0||b.focus()}else bn.current&&Sb(bn.current)}})};return s.addEventListener("keydown",o,!1),s.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",o,!1),s.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),pn(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function f_(e){return $a(e)}function Ji(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function $a(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Qn.traverse(Qn.getTreeNode(t)))if(n&&Ji(e,n.current))return!0;return!1}function mW(e){return $a(e,bn)}function Kp(e,t){var n;let r=(n=Qn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ii(e,t=!1){if(e!=null&&!t)try{Fu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function d_(e,t=!0){let n=e[0].previousElementSibling,r=mu(e),i=Kr(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=mu(e),i=Kr(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function Sb(e,t=!0){ii(d_(e,t))}function gW(e,t){const n=A.useRef(t);A.useEffect(()=>{if(n.current){bn=e;const r=nn(e.current?e.current[0]:void 0);!Ji(mr(r),bn.current)&&e.current&&Sb(e.current)}n.current=!1},[e])}function vW(e,t,n){pn(()=>{if(t||n)return;let r=e.current;const i=nn(r?r[0]:void 0);let s=o=>{let u=en(o);Ji(u,e.current)?bn=e:f_(u)||(bn=null)};return i.addEventListener("focusin",s,!1),r==null||r.forEach(o=>o.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",s,!1))}},[e,t,n])}function rS(e){let t=Qn.getTreeNode(bn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function yW(e,t,n){const r=A.useRef(typeof document<"u"?mr(nn(e.current?e.current[0]:void 0)):null);pn(()=>{let i=e.current;const s=nn(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!bn||Kp(bn,e))&&Ji(mr(s),e.current)&&(bn=e)};return s.addEventListener("focusin",o,!1),i==null||i.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{s.removeEventListener("focusin",o,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,n]),pn(()=>{const i=nn(e.current?e.current[0]:void 0);if(!t)return;let s=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!Af(e)||o.isComposing)return;let u=i.activeElement;if(!$a(u,e)||!rS(e))return;let l=Qn.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,h=Kr(i.body,{tabbable:!0});h.currentNode=u;let m=o.shiftKey?h.previousNode():h.nextNode();if((!d||!d.isConnected||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!m||!$a(m,e))&&d){h.currentNode=d;do m=o.shiftKey?h.previousNode():h.nextNode();while($a(m,e));o.preventDefault(),o.stopPropagation(),m?ii(m,!0):f_(d)?ii(d,!0):u.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),pn(()=>{const i=nn(e.current?e.current[0]:void 0);if(!t)return;let s=Qn.getTreeNode(e);if(s){var o;return s.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let u=Qn.getTreeNode(e);if(!u)return;let l=u.nodeToRestore,d=mr(i);if(t&&l&&(d&&$a(d,e)||d===i.body&&rS(e))){let h=Qn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let m=h.getTreeNode(e);for(;m;){if(m.nodeToRestore&&m.nodeToRestore.isConnected){iS(m.nodeToRestore);return}m=m.parent}for(m=h.getTreeNode(e);m;){if(m.scopeRef&&m.scopeRef.current&&Qn.getTreeNode(m.scopeRef)){let g=d_(m.scopeRef.current,!0);iS(g);return}m=m.parent}}})}}}},[e,t])}function iS(e){e.dispatchEvent(new CustomEvent(Cb,{bubbles:!0,cancelable:!0}))&&ii(e)}function Kr(e,t,n){let r=t!=null&&t.tabbable?wz:g5,i=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,s=nn(i),o=QU(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(u)?NodeFilter.FILTER_REJECT:r(u)&&c_(u)&&(!n||Ji(u,n))&&(!(t!=null&&t.accept)||t.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function Rm(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||mr(nn(r)),d=Kr(r,{tabbable:s,accept:u});r.contains(l)&&(d.currentNode=l);let h=d.nextNode();return!h&&o&&(d.currentNode=r,h=d.nextNode()),h&&ii(h,!0),h},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:s=t.tabbable,wrap:o=t.wrap,accept:u=t.accept}=n,l=i||mr(nn(r)),d=Kr(r,{tabbable:s,accept:u});if(r.contains(l))d.currentNode=l;else{let m=jv(d);return m&&ii(m,!0),m??null}let h=d.previousNode();if(!h&&o){d.currentNode=r;let m=jv(d);if(!m)return null;h=m}return h&&ii(h,!0),h??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,u=Kr(r,{tabbable:i,accept:s}).nextNode();return u&&ii(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:s=t.accept}=n,o=Kr(r,{tabbable:i,accept:s}),u=jv(o);return u&&ii(u,!0),u??null}}}function jv(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class r3{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new Eb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ji(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new r3;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 Eb({scopeRef:null}),this.fastMap.set(null,this.root)}}class Eb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Qn=new r3;function h_(e){let t=$W(nn(e));t!==e&&(t&&bW(t,e),e&&p_(e,t))}function bW(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function p_(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function $W(e){let t=mr(e),n=t==null?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}var m_={};m_={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 g_={};g_={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var v_={};v_={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 y_={};y_={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 b_={};b_={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 $_={};$_={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 x_={};x_={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 w_={};w_={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 C_={};C_={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 S_={};S_={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 E_={};E_={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 D_={};D_={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 A_={};A_={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 T_={};T_={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 P_={};P_={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 __={};__={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 M_={};M_={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 R_={};R_={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 F_={};F_={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 k_={};k_={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 O_={};O_={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 I_={};I_={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 L_={};L_={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 B_={};B_={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 V_={};V_={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 N_={};N_={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 j_={};j_={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 K_={};K_={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 U_={};U_={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 z_={};z_={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 q_={};q_={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 W_={};W_={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var H_={};H_={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 G_={};G_={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Pd={};Pd={"ar-AE":m_,"bg-BG":g_,"cs-CZ":v_,"da-DK":y_,"de-DE":b_,"el-GR":$_,"en-US":x_,"es-ES":w_,"et-EE":C_,"fi-FI":S_,"fr-FR":E_,"he-IL":D_,"hr-HR":A_,"hu-HU":T_,"it-IT":P_,"ja-JP":__,"ko-KR":M_,"lt-LT":R_,"lv-LV":F_,"nb-NO":k_,"nl-NL":O_,"pl-PL":I_,"pt-BR":L_,"pt-PT":B_,"ro-RO":V_,"ru-RU":N_,"sk-SK":j_,"sl-SI":K_,"sr-SP":U_,"sv-SE":z_,"tr-TR":q_,"uk-UA":W_,"zh-CN":H_,"zh-TW":G_};function Y_(e){return e&&e.__esModule?e.default:e}const i3=new WeakMap;function td(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function xW(e){let t=oo(Y_(Pd),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let s=Ys({weekday:"long",month:"long",year:"numeric",day:"numeric",era:td(n)||td(r),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return A.useMemo(()=>{if(!o&&n&&r)if(ir(n,r)){let u=s.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ab(s,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,o,e.timeZone,t,s])}function Db(e,t,n,r){let i=oo(Y_(Pd),"@react-aria/calendar"),s=td(e)||td(t),o=Ys({month:"long",year:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n}),u=Ys({month:"long",year:"numeric",day:"numeric",era:s,calendar:e.calendar.identifier,timeZone:n});return A.useMemo(()=>{if(ir(e,Ad(e))){if(ir(t,mb(e)))return o.format(e.toDate(n));if(ir(t,mb(t)))return r?Ab(o,i,e,t,n):o.formatRange(e.toDate(n),t.toDate(n))}return r?Ab(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,o,u,i,n,r])}function Ab(e,t,n,r,i){let s=e.formatRangeToParts(n.toDate(i),r.toDate(i)),o=-1;for(let d=0;d<s.length;d++){let h=s[d];if(h.source==="shared"&&h.type==="literal")o=d;else if(h.source==="endRange")break}let u="",l="";for(let d=0;d<s.length;d++)d<o?u+=s[d].value:d>o&&(l+=s[d].value);return t.format("dateRange",{startDate:u,endDate:l})}const Z_=7e3;let Bi=null;function Ul(e,t="assertive",n=Z_){Bi?Bi.announce(e,t,n):(Bi=new CW,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Bi.announce(e,t,n):setTimeout(()=>{Bi!=null&&Bi.isAttached()&&(Bi==null||Bi.announce(e,t,n))},100))}function wW(e){Bi&&Bi.clear(e)}class CW{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=Z_){var i,s;if(!this.node)return;let o=document.createElement("div");typeof t=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",t["aria-labelledby"])):o.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function SW(e){return e&&e.__esModule?e.default:e}function X_(e,t){let n=oo(SW(Pd),"@react-aria/calendar"),r=Go(e),i=Db(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),s=Db(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);ab(()=>{t.isFocused||Ul(s)},[s]);let o=xW(t);ab(()=>{o&&Ul(o,"polite",4e3)},[o]);let u=ec([!!e.errorMessage,e.isInvalid,e.validationState]);i3.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:o});let[l,d]=A.useState(!1),h=e.isDisabled||t.isNextVisibleRangeInvalid();h&&l&&(d(!1),t.setFocused(!0));let[m,g]=A.useState(!1),b=e.isDisabled||t.isPreviousVisibleRangeInvalid();b&&m&&(g(!1),t.setFocused(!0));let $=tc({id:e.id,"aria-label":[e["aria-label"],s].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:Zt(r,$,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:h,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:b,onFocusChange:g},errorMessageProps:{id:u},title:i}}function EW(e,t){return X_(e,t)}function DW(e,t,n){let r=X_(e,t),i=A.useRef(!1),s=A.useRef(typeof window<"u"?window:null);return Gs(s,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),Gs(s,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},Gs(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function AW(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:s}=Rr(),o=$=>{switch($.key){case"Enter":case" ":$.preventDefault(),t.selectFocusedDate();break;case"PageUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousSection($.shiftKey);break;case"PageDown":$.preventDefault(),$.stopPropagation(),t.focusNextSection($.shiftKey);break;case"End":$.preventDefault(),$.stopPropagation(),t.focusSectionEnd();break;case"Home":$.preventDefault(),$.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":$.preventDefault(),$.stopPropagation(),s==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":$.preventDefault(),$.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),s==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":$.preventDefault(),$.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&($.preventDefault(),t.setAnchorDate(null));break}},u=Db(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=i3.get(t),h=tc({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":d}),m=Ys({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:g}=Rr(),b=A.useMemo(()=>{let $=Xf(_m(t.timeZone),g,i);return[...new Array(7).keys()].map(w=>{let S=$.add({days:w}).toDate(t.timeZone);return m.format(S)})},[g,t.timeZone,m,i]);return{gridProps:Zt(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:b}}function TW(e){return e&&e.__esModule?e.default:e}function PW(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:s,selectedDateDescription:o}=i3.get(t),u=oo(TW(Pd),"@react-aria/calendar"),l=Ys({weekday:"long",day:"numeric",month:"long",year:"numeric",era:td(r),timeZone:t.timeZone}),d=t.isSelected(r),h=t.isCellFocused(r);i=i||t.isCellDisabled(r);let m=t.isCellUnavailable(r),g=!i&&!m,b=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&ir(t.value,r));b&&(d=!0),r=m5(r,pb);let $=A.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=F5(r,t.timeZone),D=A.useMemo(()=>{let W="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(ir(r,t.value.start)||ir(r,t.value.end))&&(W=o+", "),W+=l.format($),w?W=u.format(d?"todayDateSelected":"todayDate",{date:W}):d&&(W=u.format("dateSelected",{date:W})),t.minValue&&ir(r,t.minValue)?W+=", "+u.format("minimumDate"):t.maxValue&&ir(r,t.maxValue)&&(W+=", "+u.format("maximumDate")),W},[l,$,u,d,w,r,t,o]),S="";"anchorDate"in t&&h&&!t.isReadOnly&&g&&(t.anchorDate?S=u.format("finishRangeSelectionPrompt"):S=u.format("startRangeSelectionPrompt"));let C=wd(S),T=A.useRef(!1),O=A.useRef(!1),M=A.useRef(void 0),{pressProps:k,isPressed:N}=Sd({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(W){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(W.pointerType==="mouse"||W.pointerType==="touch")){if(t.highlightedRange&&!b){if(ir(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}else if(ir(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),O.current=!0;return}}let Ce=()=>{t.setDragging(!0),M.current=void 0,t.selectDate(r),t.setFocusedDate(r),T.current=!0};W.pointerType==="touch"?M.current=setTimeout(Ce,200):Ce()}},onPressEnd(){O.current=!1,T.current=!1,clearTimeout(M.current),M.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(W){if(!t.isReadOnly&&("anchorDate"in t&&M.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(O.current)t.setAnchorDate(r);else if(t.anchorDate&&!T.current)t.selectDate(r),t.setFocusedDate(r);else if(W.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Ce=r.add({days:1});t.isInvalid(Ce)&&(Ce=r.subtract({days:1})),t.isInvalid(Ce)||t.setFocusedDate(Ce)}else W.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),F;i||(F=ir(r,t.focusedDate)?0:-1),A.useEffect(()=>{h&&n.current&&(Xi(n.current),Zf()!=="pointer"&&document.activeElement===n.current&&Fp(n.current,{containingElement:Am(n.current)}))},[h,n]);let ae=Ys({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),oe=A.useMemo(()=>ae.formatToParts($).find(W=>W.type==="day").value,[ae,$]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":b||void 0},buttonProps:Zt(k,{onFocus(){i||t.setFocusedDate(r)},tabIndex:F,role:"button","aria-disabled":!g||void 0,"aria-label":D,"aria-invalid":b||void 0,"aria-describedby":[b?s:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(W){"highlightDate"in t&&(W.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(W){"releasePointerCapture"in W.target&&W.target.releasePointerCapture(W.pointerId)},onContextMenu(W){W.preventDefault()}}),isPressed:N,isFocused:h,isSelected:d,isDisabled:i,isUnavailable:m,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:b,formattedDate:oe}}const Fm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},J_={...Fm,customError:!0,valid:!1},fu={isInvalid:!1,validationDetails:Fm,validationErrors:[]},_W=A.createContext({}),ic="__formValidationState"+Date.now();function _d(e){if(e[ic]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[ic];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return MW(e)}function MW(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:o,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:J_}:null,d=A.useMemo(()=>{if(!o||i==null)return null;let oe=RW(o,i);return sS(oe)},[o,i]);s!=null&&s.validationDetails.valid&&(s=void 0);let h=A.useContext(_W),m=A.useMemo(()=>r?Array.isArray(r)?r.flatMap(oe=>Tb(h[oe])):Tb(h[r]):[],[h,r]),[g,b]=A.useState(h),[$,w]=A.useState(!1);h!==g&&(b(h),w(!1));let D=A.useMemo(()=>sS($?[]:m),[$,m]),S=A.useRef(fu),[C,T]=A.useState(fu),O=A.useRef(fu),M=()=>{if(!k)return;N(!1);let oe=d||s||S.current;Kv(oe,O.current)||(O.current=oe,T(oe))},[k,N]=A.useState(!1);return A.useEffect(M),{realtimeValidation:l||D||d||s||fu,displayValidation:u==="native"?l||D||C:l||D||d||s||C,updateValidation(oe){u==="aria"&&!Kv(C,oe)?T(oe):S.current=oe},resetValidation(){let oe=fu;Kv(oe,O.current)||(O.current=oe,T(oe)),u==="native"&&N(!1),w(!0)},commitValidation(){u==="native"&&N(!0),w(!0)}}}function Tb(e){return e?Array.isArray(e)?e:[e]:[]}function RW(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Tb(n)}return[]}function sS(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:J_}:null}function Kv(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 Up(...e){let t=new Set,n=!1,r={...Fm};for(let o of e){var i,s;for(let u of o.validationErrors)t.add(u);n||(n=o.isInvalid);for(let u in r)(i=r)[s=u]||(i[s]=o.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Q_(e,t,n){let{validationBehavior:r,focus:i}=e;pn(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(kW(n.current))}});let s=Hn(()=>{t.resetValidation()}),o=Hn(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let h=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&h&&OW(h)===n.current){var m;i?i():(m=n.current)===null||m===void 0||m.focus(),E5("keyboard")}l.preventDefault()}),u=Hn(()=>{t.commitValidation()});A.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",u),d==null||d.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",u),d==null||d.removeEventListener("reset",s)}},[n,o,u,s,r])}function FW(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 kW(e){return{isInvalid:!e.validity.valid,validationDetails:FW(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function OW(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function km(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:s="label"}=e;t=Wr(t);let o=Wr(),u={};n?(r=r?`${o} ${r}`:o,u={id:o,htmlFor:s==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=tc({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function Om(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:s,fieldProps:o}=km(e),u=ec([!!t,!!n,r,i]),l=ec([!!t,!!n,r,i]);return o=Zt(o,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:u},errorMessageProps:{id:l}}}const IW=0,LW=100,BW=1;function VW(e){const{isDisabled:t=!1,minValue:n=IW,maxValue:r=LW,numberFormatter:i,step:s=BW,orientation:o="horizontal"}=e;let u=A.useMemo(()=>{let J=(r-n)/10;return J=cf(J,0,J+s,s),Math.max(J,s)},[s,r,n]),l=A.useCallback(J=>J==null?void 0:J.map((xe,Pe)=>{let Oe=Pe===0?n:J[Pe-1],Ie=Pe===J.length-1?r:J[Pe+1];return cf(xe,Oe,Ie,s)}),[n,r,s]),d=A.useMemo(()=>l(aS(e.value)),[e.value]),h=A.useMemo(()=>{var J;return l((J=aS(e.defaultValue))!==null&&J!==void 0?J:[n])},[e.defaultValue,n]),m=uS(e.value,e.defaultValue,e.onChange),g=uS(e.value,e.defaultValue,e.onChangeEnd);const[b,$]=wi(d,h,m),[w,D]=A.useState(new Array(b.length).fill(!1)),S=A.useRef(new Array(b.length).fill(!0)),[C,T]=A.useState(void 0),O=A.useRef(b),M=A.useRef(w);let k=J=>{O.current=J,$(J)},N=J=>{M.current=J,D(J)};function F(J){return(J-n)/(r-n)}function ae(J){return J===0?n:b[J-1]}function oe(J){return J===b.length-1?r:b[J+1]}function W(J){return S.current[J]}function Ce(J,xe){S.current[J]=xe}function ne(J,xe){if(t||!W(J))return;const Pe=ae(J),Oe=oe(J);xe=cf(xe,Pe,Oe,s);let Ie=oS(O.current,J,xe);k(Ie)}function se(J,xe){if(t||!W(J))return;xe&&(O.current=b);const Pe=M.current[J];M.current=oS(M.current,J,xe),N(M.current),g&&Pe&&!M.current.some(Boolean)&&g(O.current)}function z(J){return i.format(J)}function K(J,xe){ne(J,V(xe))}function j(J){return Math.round((J-n)/s)*s+n}function V(J){const xe=J*(r-n)+n;return nc(j(xe),n,r)}function ge(J,xe=1){let Pe=Math.max(xe,s);ne(J,cf(b[J]+Pe,n,r,s))}function U(J,xe=1){let Pe=Math.max(xe,s);ne(J,cf(b[J]-Pe,n,r,s))}return{values:b,getThumbValue:J=>b[J],setThumbValue:ne,setThumbPercent:K,isThumbDragging:J=>w[J],setThumbDragging:se,focusedThumb:C,setFocusedThumb:T,getThumbPercent:J=>F(b[J]),getValuePercent:F,getThumbValueLabel:J=>z(b[J]),getFormattedValue:z,getThumbMinValue:ae,getThumbMaxValue:oe,getPercentValue:V,isThumbEditable:W,setThumbEditable:Ce,incrementThumb:ge,decrementThumb:U,step:s,pageSize:u,orientation:o,isDisabled:t}}function oS(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function aS(e){if(e!=null)return Array.isArray(e)?e:[e]}function uS(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const lS={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 NW(e={}){let{style:t,isFocusable:n}=e,[r,i]=A.useState(!1),{focusWithinProps:s}=bc({isDisabled:!n,onFocusWithinChange:u=>i(u)}),o=A.useMemo(()=>r?t:t?{...lS,...t}:lS,[r]);return{visuallyHiddenProps:{...s,style:o}}}function jW(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:o}=NW(e);return A.createElement(n,Zt(s,o),t)}const s3=new WeakMap;function Pb(e,t){let n=s3.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function KW(e,t,n){let{labelProps:r,fieldProps:i}=km(e),s=e.orientation==="vertical";var o;s3.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Rr(),{addGlobalListener:l,removeGlobalListener:d}=Ma();const h=A.useRef(null),m=u==="rtl",g=A.useRef(null),{moveProps:b}=A5({onMoveStart(){g.current=null},onMove({deltaX:S,deltaY:C}){if(!n.current)return;let{height:T,width:O}=n.current.getBoundingClientRect(),M=s?T:O;g.current==null&&h.current!=null&&(g.current=t.getThumbPercent(h.current)*M);let k=s?C:S;if((s||m)&&(k=-k),g.current+=k,h.current!=null&&n.current){const N=nc(g.current/M,0,1);t.setThumbPercent(h.current,N)}},onMoveEnd(){h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null)}});let $=A.useRef(void 0),w=(S,C,T,O)=>{if(n.current&&!e.isDisabled&&t.values.every((M,k)=>!t.isThumbDragging(k))){let{height:M,width:k,top:N,left:F}=n.current.getBoundingClientRect(),ae=s?M:k,ne=((s?O:T)-(s?N:F))/ae;(u==="rtl"||s)&&(ne=1-ne);let se=t.getPercentValue(ne),z,K=t.values.findIndex(j=>se-j<0);if(K===0)z=K;else if(K===-1)z=t.values.length-1;else{let j=t.values[K-1],V=t.values[K];Math.abs(j-se)<Math.abs(V-se)?z=K-1:z=K}z>=0&&t.isThumbEditable(z)?(S.preventDefault(),h.current=z,t.setFocusedThumb(z),$.current=C,t.setThumbDragging(h.current,!0),t.setThumbValue(z,se),l(window,"mouseup",D,!1),l(window,"touchend",D,!1),l(window,"pointerup",D,!1)):h.current=null}},D=S=>{var C,T;((T=S.pointerId)!==null&&T!==void 0?T:(C=S.changedTouches)===null||C===void 0?void 0:C[0].identifier)===$.current&&(h.current!=null&&(t.setThumbDragging(h.current,!1),h.current=null),d(window,"mouseup",D,!1),d(window,"touchend",D,!1),d(window,"pointerup",D,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var S;(S=document.getElementById(Pb(t,0)))===null||S===void 0||S.focus(),E5("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:Zt({onMouseDown(S){S.button!==0||S.altKey||S.ctrlKey||S.metaKey||w(S,void 0,S.clientX,S.clientY)},onPointerDown(S){S.pointerType==="mouse"&&(S.button!==0||S.altKey||S.ctrlKey||S.metaKey)||w(S,S.pointerId,S.clientX,S.clientY)},onTouchStart(S){w(S,S.changedTouches[0].identifier,S.changedTouches[0].clientX,S.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},b),outputProps:{htmlFor:t.values.map((S,C)=>Pb(t,C)).join(" "),"aria-live":"off"}}}function UW(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:s,trackRef:o,inputRef:u,orientation:l=t.orientation,name:d}=e,h=e.isDisabled||t.isDisabled,m=l==="vertical",{direction:g}=Rr(),{addGlobalListener:b,removeGlobalListener:$}=Ma(),w=s3.get(t);var D;const{labelProps:S,fieldProps:C}=km({...e,id:Pb(t,n),"aria-labelledby":`${w.id} ${(D=e["aria-labelledby"])!==null&&D!==void 0?D:""}`.trim()}),T=t.values[n],O=A.useCallback(()=>{u.current&&Xi(u.current)},[u]),M=t.focusedThumb===n;A.useEffect(()=>{M&&O()},[M,O]);let k=g==="rtl",N=A.useRef(null),{keyboardProps:F}=D5({onKeyDown(K){let{getThumbMaxValue:j,getThumbMinValue:V,decrementThumb:ge,incrementThumb:U,setThumbValue:J,setThumbDragging:xe,pageSize:Pe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(K.key)){K.continuePropagation();return}switch(K.preventDefault(),xe(n,!0),K.key){case"PageUp":U(n,Pe);break;case"PageDown":ge(n,Pe);break;case"Home":J(n,V(n));break;case"End":J(n,j(n));break}xe(n,!1)}}),{moveProps:ae}=A5({onMoveStart(){N.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:K,deltaY:j,pointerType:V,shiftKey:ge}){const{getThumbPercent:U,setThumbPercent:J,decrementThumb:xe,incrementThumb:Pe,step:Oe,pageSize:Ie}=t;if(!o.current)return;let{width:Ze,height:Ge}=o.current.getBoundingClientRect(),De=m?Ge:Ze;if(N.current==null&&(N.current=U(n)*De),V==="keyboard")K>0&&k||K<0&&!k||j>0?xe(n,ge?Ie:Oe):Pe(n,ge?Ie:Oe);else{let Ue=m?j:K;(m||k)&&(Ue=-Ue),N.current+=Ue,J(n,nc(N.current/De,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!h);const{focusableProps:oe}=q4(Zt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let W=A.useRef(void 0),Ce=K=>{O(),W.current=K,t.setThumbDragging(n,!0),b(window,"mouseup",ne,!1),b(window,"touchend",ne,!1),b(window,"pointerup",ne,!1)},ne=K=>{var j,V;((V=K.pointerId)!==null&&V!==void 0?V:(j=K.changedTouches)===null||j===void 0?void 0:j[0].identifier)===W.current&&(O(),t.setThumbDragging(n,!1),$(window,"mouseup",ne,!1),$(window,"touchend",ne,!1),$(window,"pointerup",ne,!1))},se=t.getThumbPercent(n);(m||g==="rtl")&&(se=1-se);let z=h?{}:Zt(F,ae,{onMouseDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||Ce()},onPointerDown:K=>{K.button!==0||K.altKey||K.ctrlKey||K.metaKey||Ce(K.pointerId)},onTouchStart:K=>{Ce(K.changedTouches[0].identifier)}});return j4(u,T,K=>{t.setThumbValue(n,K)}),{inputProps:Zt(oe,C,{type:"range",tabIndex:h?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:T,name:d,disabled:h,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":s||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:K=>{t.setThumbValue(n,parseFloat(K.target.value))}}),thumbProps:{...z,style:{position:"absolute",[m?"top":"left"]:`${se*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:S,isDragging:t.isThumbDragging(n),isDisabled:h,isFocused:M}}function zW(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:o="text",validationBehavior:u="aria"}=e,[l,d]=wi(e.value,e.defaultValue||"",e.onChange),{focusableProps:h}=q4(e,t),m=_d({...e,value:l}),{isInvalid:g,validationErrors:b,validationDetails:$}=m.displayValidation,{labelProps:w,fieldProps:D,descriptionProps:S,errorMessageProps:C}=Om({...e,isInvalid:g,errorMessage:e.errorMessage||b}),T=Go(e,{labelable:!0});const O={type:o,pattern:e.pattern};return j4(t,l,d),Q_(e,m,t),A.useEffect(()=>{if(t.current instanceof zo(t.current).HTMLTextAreaElement){let M=t.current;Object.defineProperty(M,"defaultValue",{get:()=>M.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:Zt(T,n==="input"?O:void 0,{disabled:r,readOnly:s,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":g||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:M=>d(M.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...D}),descriptionProps:S,errorMessageProps:C,isInvalid:g,validationErrors:b,validationDetails:$}}var e6={};e6={Empty:"فارغ"};var t6={};t6={Empty:"Изпразни"};var n6={};n6={Empty:"Prázdné"};var r6={};r6={Empty:"Tom"};var i6={};i6={Empty:"Leer"};var s6={};s6={Empty:"Άδειο"};var o6={};o6={Empty:"Empty"};var a6={};a6={Empty:"Vacío"};var u6={};u6={Empty:"Tühjenda"};var l6={};l6={Empty:"Tyhjä"};var c6={};c6={Empty:"Vide"};var f6={};f6={Empty:"ריק"};var d6={};d6={Empty:"Prazno"};var h6={};h6={Empty:"Üres"};var p6={};p6={Empty:"Vuoto"};var m6={};m6={Empty:"空"};var g6={};g6={Empty:"비어 있음"};var v6={};v6={Empty:"Tuščias"};var y6={};y6={Empty:"Tukšs"};var b6={};b6={Empty:"Tom"};var $6={};$6={Empty:"Leeg"};var x6={};x6={Empty:"Pusty"};var w6={};w6={Empty:"Vazio"};var C6={};C6={Empty:"Vazio"};var S6={};S6={Empty:"Gol"};var E6={};E6={Empty:"Не заполнено"};var D6={};D6={Empty:"Prázdne"};var A6={};A6={Empty:"Prazen"};var T6={};T6={Empty:"Prazno"};var P6={};P6={Empty:"Tomt"};var _6={};_6={Empty:"Boş"};var M6={};M6={Empty:"Пусто"};var R6={};R6={Empty:"空"};var F6={};F6={Empty:"空白"};var k6={};k6={"ar-AE":e6,"bg-BG":t6,"cs-CZ":n6,"da-DK":r6,"de-DE":i6,"el-GR":s6,"en-US":o6,"es-ES":a6,"et-EE":u6,"fi-FI":l6,"fr-FR":c6,"he-IL":f6,"hr-HR":d6,"hu-HU":h6,"it-IT":p6,"ja-JP":m6,"ko-KR":g6,"lt-LT":v6,"lv-LV":y6,"nb-NO":b6,"nl-NL":$6,"pl-PL":x6,"pt-BR":w6,"pt-PT":C6,"ro-RO":S6,"ru-RU":E6,"sk-SK":D6,"sl-SI":A6,"sr-SP":T6,"sv-SE":P6,"tr-TR":_6,"uk-UA":M6,"zh-CN":R6,"zh-TW":F6};function qW(e){return e&&e.__esModule?e.default:e}function WW(e){const t=A.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:s,isDisabled:o,isReadOnly:u,isRequired:l,onIncrement:d,onIncrementPage:h,onDecrement:m,onDecrementPage:g,onDecrementToMin:b,onIncrementToMax:$}=e;const w=oo(qW(k6),"@react-aria/spinbutton"),D=()=>clearTimeout(t.current);A.useEffect(()=>()=>D(),[]);let S=W=>{if(!(W.ctrlKey||W.metaKey||W.shiftKey||W.altKey||u))switch(W.key){case"PageUp":if(h){W.preventDefault(),h==null||h();break}case"ArrowUp":case"Up":d&&(W.preventDefault(),d==null||d());break;case"PageDown":if(g){W.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":m&&(W.preventDefault(),m==null||m());break;case"Home":b&&(W.preventDefault(),b==null||b());break;case"End":$&&(W.preventDefault(),$==null||$());break}},C=A.useRef(!1),T=()=>{C.current=!0},O=()=>{C.current=!1},M=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");A.useEffect(()=>{C.current&&(wW("assertive"),Ul(M,"assertive"))},[M]);const k=Hn(W=>{D(),d==null||d(),t.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n<s)&&k(60)},W)}),N=Hn(W=>{D(),m==null||m(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&N(60)},W)});let F=W=>{W.preventDefault()},{addGlobalListener:ae,removeAllGlobalListeners:oe}=Ma();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":M,"aria-valuemin":i,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:S,onFocus:T,onBlur:O},incrementButtonProps:{onPressStart:()=>{k(400),ae(window,"contextmenu",F)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O},decrementButtonProps:{onPressStart:()=>{N(400),ae(window,"contextmenu",F)},onPressEnd:()=>{D(),oe()},onFocus:T,onBlur:O}}}var O6={};O6={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 I6={};I6={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 L6={};L6={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 B6={};B6={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 V6={};V6={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 N6={};N6={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var j6={};j6={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var K6={};K6={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 U6={};U6={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 z6={};z6={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 W6={};W6={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var H6={};H6={buttonLabel:"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 G6={};G6={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 Y6={};Y6={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 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 X6={};X6={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var J6={};J6={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 Q6={};Q6={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 eM={};eM={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 tM={};tM={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 nM={};nM={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 rM={};rM={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 iM={};iM={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 sM={};sM={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 oM={};oM={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var aM={};aM={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 uM={};uM={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 lM={};lM={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 cM={};cM={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 fM={};fM={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 dM={};dM={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var hM={};hM={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 pM={};pM={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var mM={};mM={"ar-AE":O6,"bg-BG":I6,"cs-CZ":L6,"da-DK":B6,"de-DE":V6,"el-GR":N6,"en-US":j6,"es-ES":K6,"et-EE":U6,"fi-FI":z6,"fr-FR":q6,"he-IL":W6,"hr-HR":H6,"hu-HU":G6,"it-IT":Y6,"ja-JP":Z6,"ko-KR":X6,"lt-LT":J6,"lv-LV":Q6,"nb-NO":eM,"nl-NL":tM,"pl-PL":nM,"pt-BR":rM,"pt-PT":iM,"ro-RO":sM,"ru-RU":oM,"sk-SK":aM,"sl-SI":uM,"sr-SP":lM,"sv-SE":cM,"tr-TR":fM,"uk-UA":dM,"zh-CN":hM,"zh-TW":pM};const Zs={top:"top",bottom:"top",left:"left",right:"left"},zp={top:"bottom",bottom:"top",left:"right",right:"left"},HW={top:"left",left:"top"},_b={top:"height",left:"width"},gM={width:"totalWidth",height:"totalHeight"},Lh={};let hr=typeof document<"u"?window.visualViewport:null;function cS(e){let t=0,n=0,r=0,i=0,s=0,o=0,u={};var l;let d=((l=hr==null?void 0:hr.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let $=document.documentElement;r=$.clientWidth,i=$.clientHeight;var h;t=(h=hr==null?void 0:hr.width)!==null&&h!==void 0?h:r;var m;n=(m=hr==null?void 0:hr.height)!==null&&m!==void 0?m:i,u.top=$.scrollTop||e.scrollTop,u.left=$.scrollLeft||e.scrollLeft,hr&&(s=hr.offsetTop,o=hr.offsetLeft)}else({width:t,height:n,top:s,left:o}=zl(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(V4()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var g;s=(g=hr==null?void 0:hr.pageTop)!==null&&g!==void 0?g:0;var b;o=(b=hr==null?void 0:hr.pageLeft)!==null&&b!==void 0?b:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:s,left:o}}function GW(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function fS(e,t,n,r,i,s,o){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[_b[e]],h=r.scroll[Zs[e]]+s,m=d+r.scroll[Zs[e]]-s,g=t-l+o[e]-r[Zs[e]],b=t-l+n+o[e]-r[Zs[e]];return g<h?h-g:b>m?Math.max(m-b,h-g):0}function YW(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 dS(e){if(Lh[e])return Lh[e];let[t,n]=e.split(" "),r=Zs[t]||"right",i=HW[r];Zs[n]||(n="center");let s=_b[r],o=_b[i];return Lh[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:o},Lh[e]}function Uv(e,t,n,r,i,s,o,u,l,d){let{placement:h,crossPlacement:m,axis:g,crossAxis:b,size:$,crossSize:w}=r,D={};var S;D[b]=(S=e[b])!==null&&S!==void 0?S:0;var C,T,O,M;m==="center"?D[b]+=(((C=e[w])!==null&&C!==void 0?C:0)-((T=n[w])!==null&&T!==void 0?T:0))/2:m!==b&&(D[b]+=((O=e[w])!==null&&O!==void 0?O:0)-((M=n[w])!==null&&M!==void 0?M:0)),D[b]+=s;const k=e[b]-n[w]+l+d,N=e[b]+e[w]-l-d;if(D[b]=nc(D[b],k,N),h===g){const F=u?o[$]:t[gM[$]];D[zp[g]]=Math.floor(F-e[g]+i)}else D[g]=Math.floor(e[g]+e[$]+i);return D}function ZW(e,t,n,r,i,s,o,u){const l=r?n.height:t[gM.height];var d;let h=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-o);var m,g,b,$,w,D;let S=u!=="top"?Math.max(0,t.height+t.top+((m=t.scroll.top)!==null&&m!==void 0?m:0)-h-(((g=i.top)!==null&&g!==void 0?g:0)+((b=i.bottom)!==null&&b!==void 0?b:0)+s)):Math.max(0,h+o-(t.top+(($=t.scroll.top)!==null&&$!==void 0?$:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((D=i.bottom)!==null&&D!==void 0?D:0)+s));return Math.min(t.height-s*2,S)}function hS(e,t,n,r,i,s){let{placement:o,axis:u,size:l}=s;var d,h;if(o===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((h=r[u])!==null&&h!==void 0?h:0)-r[zp[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[zp[u]]-i)}function XW(e,t,n,r,i,s,o,u,l,d,h,m,g,b,$,w){let D=dS(e),{size:S,crossAxis:C,crossSize:T,placement:O,crossPlacement:M}=D,k=Uv(t,u,n,D,h,m,d,g,$,w),N=h,F=hS(u,d,t,i,s+h,D);if(o&&r[S]>F){let Oe=dS(`${zp[O]} ${M}`),Ie=Uv(t,u,n,Oe,h,m,d,g,$,w);hS(u,d,t,i,s+h,Oe)>F&&(D=Oe,k=Ie,N=h)}let ae="bottom";D.axis==="top"?D.placement==="top"?ae="top":D.placement==="bottom"&&(ae="bottom"):D.crossAxis==="top"&&(D.crossPlacement==="top"?ae="bottom":D.crossPlacement==="bottom"&&(ae="top"));let oe=fS(C,k[C],n[T],u,l,s,d);k[C]+=oe;let W=ZW(k,u,d,g,i,s,n.height,ae);b&&b<W&&(W=b),n.height=Math.min(n.height,W),k=Uv(t,u,n,D,N,m,d,g,$,w),oe=fS(C,k[C],n[T],u,l,s,d),k[C]+=oe;let Ce={},ne=t[C]+.5*t[T]-k[C]-i[Zs[C]];const se=$/2+w;var z,K,j,V;const ge=Zs[C]==="left"?((z=i.left)!==null&&z!==void 0?z:0)+((K=i.right)!==null&&K!==void 0?K:0):((j=i.top)!==null&&j!==void 0?j:0)+((V=i.bottom)!==null&&V!==void 0?V:0),U=n[T]-ge-$/2-w,J=t[C]+$/2-(k[C]+i[Zs[C]]),xe=t[C]+t[T]-$/2-(k[C]+i[Zs[C]]),Pe=nc(ne,J,xe);return Ce[C]=nc(Pe,se,U),{position:k,maxHeight:W,arrowOffsetLeft:Ce.left,arrowOffsetTop:Ce.top,placement:D.placement}}function JW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:s,shouldFlip:o,boundaryElement:u,offset:l,crossOffset:d,maxHeight:h,arrowSize:m=0,arrowBoundaryOffset:g=0}=e,b=r instanceof HTMLElement?QW(r):document.documentElement,$=b===document.documentElement;const w=window.getComputedStyle(b).position;let D=!!w&&w!=="static",S=$?zl(n):pS(n,b);if(!$){let{marginTop:Ce,marginLeft:ne}=window.getComputedStyle(n);S.top+=parseInt(Ce,10)||0,S.left+=parseInt(ne,10)||0}let C=zl(r),T=YW(r);var O,M;C.width+=((O=T.left)!==null&&O!==void 0?O:0)+((M=T.right)!==null&&M!==void 0?M:0);var k,N;C.height+=((k=T.top)!==null&&k!==void 0?k:0)+((N=T.bottom)!==null&&N!==void 0?N:0);let F=GW(i),ae=cS(u),oe=cS(b),W=u.tagName==="BODY"?zl(b):pS(b,u);return b.tagName==="HTML"&&u.tagName==="BODY"&&(oe.scroll.top=0,oe.scroll.left=0),XW(t,S,C,F,T,s,o,ae,oe,W,l,d,D,h,m,g)}function zl(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:o,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+s-u,left:n+o-l,width:r,height:i}}function pS(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:s,width:o,height:u}=e.getBoundingClientRect();r={top:i,left:s,width:o,height:u}}else{r=zl(e);let i=zl(t),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function QW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!mS(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!mS(t);)t=t.parentElement;return t||document.documentElement}function mS(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 vM=new WeakMap;function eH(e){let{triggerRef:t,isOpen:n,onClose:r}=e;A.useEffect(()=>{if(!n||r===null)return;let i=s=>{let o=s.target;if(!t.current||o instanceof Node&&!o.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let u=r||vM.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let qn=typeof document<"u"?window.visualViewport:null;function tH(e){let{direction:t}=Rr(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:o="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:h=0,crossOffset:m=0,shouldUpdatePosition:g=!0,isOpen:b=!0,onClose:$,maxHeight:w,arrowBoundaryOffset:D=0}=e,[S,C]=A.useState(null),T=[g,o,i.current,r.current,s.current,u,l,d,h,m,b,t,w,D,n],O=A.useRef(qn==null?void 0:qn.scale);A.useEffect(()=>{b&&(O.current=qn==null?void 0:qn.scale)},[b]);let M=A.useCallback(()=>{if(g===!1||!b||!i.current||!r.current||!d||(qn==null?void 0:qn.scale)!==O.current)return;let oe=null;if(s.current&&s.current.contains(document.activeElement)){var W;let V=(W=document.activeElement)===null||W===void 0?void 0:W.getBoundingClientRect(),ge=s.current.getBoundingClientRect();var Ce;if(oe={type:"top",offset:((Ce=V==null?void 0:V.top)!==null&&Ce!==void 0?Ce:0)-ge.top},oe.offset>ge.height/2){oe.type="bottom";var ne;oe.offset=((ne=V==null?void 0:V.bottom)!==null&&ne!==void 0?ne:0)-ge.bottom}}let se=i.current;if(!w&&i.current){var z;se.style.top="0px",se.style.bottom="";var K;se.style.maxHeight=((K=(z=window.visualViewport)===null||z===void 0?void 0:z.height)!==null&&K!==void 0?K:window.innerHeight)+"px"}let j=JW({placement:rH(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:u,shouldFlip:l,boundaryElement:d,offset:h,crossOffset:m,maxHeight:w,arrowSize:n,arrowBoundaryOffset:D});if(j.position){if(se.style.top="",se.style.bottom="",se.style.left="",se.style.right="",Object.keys(j.position).forEach(V=>se.style[V]=j.position[V]+"px"),se.style.maxHeight=j.maxHeight!=null?j.maxHeight+"px":"",oe&&document.activeElement&&s.current){let V=document.activeElement.getBoundingClientRect(),ge=s.current.getBoundingClientRect(),U=V[oe.type]-ge[oe.type];s.current.scrollTop+=U-oe.offset}C(j)}},T);pn(M,T),nH(M),vC({ref:i,onResize:M}),vC({ref:r,onResize:M});let k=A.useRef(!1);pn(()=>{let oe,W=()=>{k.current=!0,clearTimeout(oe),oe=setTimeout(()=>{k.current=!1},500),M()},Ce=()=>{k.current&&W()};return qn==null||qn.addEventListener("resize",W),qn==null||qn.addEventListener("scroll",Ce),()=>{qn==null||qn.removeEventListener("resize",W),qn==null||qn.removeEventListener("scroll",Ce)}},[M]);let N=A.useCallback(()=>{k.current||$==null||$()},[$,k]);eH({triggerRef:r,isOpen:b,onClose:$&&N});var F,ae;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...S==null?void 0:S.position,maxHeight:(F=S==null?void 0:S.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(ae=S==null?void 0:S.placement)!==null&&ae!==void 0?ae:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:S==null?void 0:S.arrowOffsetLeft,top:S==null?void 0:S.arrowOffsetTop}},updatePosition:M}}function nH(e){pn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function rH(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const js=[];function iH(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:s=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:u}=e;A.useEffect(()=>{if(i&&!js.includes(t))return js.push(t),()=>{let $=js.indexOf(t);$>=0&&js.splice($,1)}},[i,t]);let l=()=>{js[js.length-1]===t&&n&&n()},d=$=>{(!u||u($.target))&&js[js.length-1]===t&&($.stopPropagation(),$.preventDefault())},h=$=>{(!u||u($.target))&&(js[js.length-1]===t&&($.stopPropagation(),$.preventDefault()),l())},m=$=>{$.key==="Escape"&&!o&&!$.nativeEvent.isComposing&&($.stopPropagation(),$.preventDefault(),l())};Kz({ref:t,onInteractOutside:s&&i?h:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=bc({isDisabled:!r,onBlurWithin:$=>{!$.relatedTarget||mW($.relatedTarget)||(!u||u($.relatedTarget))&&(n==null||n())}}),b=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:m,...g},underlayProps:{onPointerDown:b}}}function sH(e,t,n){let{type:r}=e,{isOpen:i}=t;A.useEffect(()=>{n&&n.current&&vM.set(n.current,t.close)});let s;r==="menu"?s=!0:r==="listbox"&&(s="listbox");let o=Wr();return{triggerProps:{"aria-haspopup":s,"aria-expanded":i,"aria-controls":i?o:void 0,onPress:t.toggle},overlayProps:{id:o}}}const zv=typeof document<"u"&&window.visualViewport,oH=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Bh=0,qv;function aH(e={}){let{isDisabled:t}=e;pn(()=>{if(!t)return Bh++,Bh===1&&(xd()?qv=lH():qv=uH()),()=>{Bh--,Bh===0&&qv()}},[t])}function uH(){return _u(Al(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Al(document.documentElement,"overflow","hidden"))}function lH(){let e,t,n=d=>{e=Am(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Al(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=()=>{t&&t()},s=d=>{let h=d.target;cH(h)&&(u(),h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",zv&&(zv.height<window.innerHeight?requestAnimationFrame(()=>{gS(h)}):zv.addEventListener("resize",()=>gS(h),{once:!0}))}))},o=null,u=()=>{if(o)return;let d=()=>{window.scrollTo(0,0)},h=window.pageXOffset,m=window.pageYOffset;o=_u(df(window,"scroll",d),Al(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Al(document.documentElement,"overflow","hidden"),Al(document.body,"marginTop",`-${m}px`),()=>{window.scrollTo(h,m)}),window.scrollTo(0,0)},l=_u(df(document,"touchstart",n,{passive:!1,capture:!0}),df(document,"touchmove",r,{passive:!1,capture:!0}),df(document,"touchend",i,{passive:!1,capture:!0}),df(document,"focus",s,!0));return()=>{t==null||t(),o==null||o(),l()}}function Al(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function df(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function gS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Am(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function cH(e){return e instanceof HTMLInputElement&&!oH.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let hf=new WeakMap,ri=[];function yM(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let g of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let b of n)if(g.contains(b))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},h=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),m=d(l);if(m===NodeFilter.FILTER_ACCEPT&&s(l),m!==NodeFilter.FILTER_REJECT){let g=h.nextNode();for(;g!=null;)s(g),g=h.nextNode()}},s=l=>{var d;let h=(d=hf.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),hf.set(l,h+1))};ri.length&&ri[ri.length-1].disconnect(),i(t);let o=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(h=>h.contains(d.target))){for(let h of d.removedNodes)h instanceof Element&&(n.delete(h),r.delete(h));for(let h of d.addedNodes)(h instanceof HTMLElement||h instanceof SVGElement)&&(h.dataset.liveAnnouncer==="true"||h.dataset.reactAriaTopLayer==="true")?n.add(h):h instanceof Element&&i(h)}});o.observe(t,{childList:!0,subtree:!0});let u={visibleNodes:n,hiddenNodes:r,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return ri.push(u),()=>{o.disconnect();for(let l of r){let d=hf.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),hf.delete(l)):hf.set(l,d-1))}u===ri[ri.length-1]?(ri.pop(),ri.length&&ri[ri.length-1].observe()):ri.splice(ri.indexOf(u),1)}}function fH(e){let t=ri[ri.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function dH(e,t){let{triggerRef:n,popoverRef:r,groupRef:i,isNonModal:s,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u,...l}=e,d=l.trigger==="SubmenuTrigger",{overlayProps:h,underlayProps:m}=iH({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!s||d,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u},i??r),{overlayProps:g,arrowProps:b,placement:$}=tH({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:s?t.close:null});return aH({isDisabled:s||!t.isOpen}),pn(()=>{if(t.isOpen&&r.current){var w,D;return s?fH((w=i==null?void 0:i.current)!==null&&w!==void 0?w:r.current):yM([(D=i==null?void 0:i.current)!==null&&D!==void 0?D:r.current])}},[s,t.isOpen,r,i]),{popoverProps:Zt(h,g),arrowProps:b,underlayProps:m,placement:$}}const hH=A.createContext({});function pH(){var e;return(e=A.useContext(hH))!==null&&e!==void 0?e:{}}const bM=A.createContext(null);function mH(e){let t=L4(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=A.useState(!1),o=A.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:u}=pH();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=A.createElement(dW,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},l)),l=A.createElement(bM.Provider,{value:o},A.createElement(Vz,null,l)),Vo.createPortal(l,n)}function gH(){let e=A.useContext(bM),t=e==null?void 0:e.setContain;pn(()=>{t==null||t(!0)},[t])}const Im=new WeakMap;function vH(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function $M(e,t){let n=Im.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${vH(t)}`}function Mb(e){return rp()?e.altKey:e.ctrlKey}function lp(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const xM=new WeakMap;function yH(e){let t=Wr();return xM.set(e,t),t}function bH(e){return xM.get(e)}const $H=1e3;function xH(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=A.useRef({search:"",timeout:void 0}).current,s=o=>{let u=wH(o.key);if(!(!u||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))){if(u===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},$H)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function wH(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function wM(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:h,allowsTabNavigation:m=!1,isVirtualized:g,scrollRef:b=r,linkBehavior:$="action"}=e,{direction:w}=Rr(),D=Dm(),S=z=>{var K;if(z.altKey&&z.key==="Tab"&&z.preventDefault(),!(!((K=r.current)===null||K===void 0)&&K.contains(z.target)))return;const j=(Re,Ve)=>{if(Re!=null){if(t.isLink(Re)&&$==="selection"&&l&&!Mb(z)){Vo.flushSync(()=>{t.setFocusedKey(Re,Ve)});let Le=lp(r,Re),nt=t.getItemProps(Re);Le&&D.open(Le,z,nt.href,nt.routerOptions);return}if(t.setFocusedKey(Re,Ve),t.isLink(Re)&&$==="override")return;z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Re):l&&!Mb(z)&&t.replaceSelection(Re)}};switch(z.key){case"ArrowDown":if(n.getKeyBelow){var V,ge,U;let Re=t.focusedKey!=null?(V=n.getKeyBelow)===null||V===void 0?void 0:V.call(n,t.focusedKey):(ge=n.getFirstKey)===null||ge===void 0?void 0:ge.call(n);Re==null&&s&&(Re=(U=n.getFirstKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),Re!=null&&(z.preventDefault(),j(Re))}break;case"ArrowUp":if(n.getKeyAbove){var J,xe,Pe;let Re=t.focusedKey!=null?(J=n.getKeyAbove)===null||J===void 0?void 0:J.call(n,t.focusedKey):(xe=n.getLastKey)===null||xe===void 0?void 0:xe.call(n);Re==null&&s&&(Re=(Pe=n.getLastKey)===null||Pe===void 0?void 0:Pe.call(n,t.focusedKey)),Re!=null&&(z.preventDefault(),j(Re))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Oe,Ie,Ze;let Re=t.focusedKey!=null?(Oe=n.getKeyLeftOf)===null||Oe===void 0?void 0:Oe.call(n,t.focusedKey):null;Re==null&&s&&(Re=w==="rtl"?(Ie=n.getFirstKey)===null||Ie===void 0?void 0:Ie.call(n,t.focusedKey):(Ze=n.getLastKey)===null||Ze===void 0?void 0:Ze.call(n,t.focusedKey)),Re!=null&&(z.preventDefault(),j(Re,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Ge,De,Ue;let Re=t.focusedKey!=null?(Ge=n.getKeyRightOf)===null||Ge===void 0?void 0:Ge.call(n,t.focusedKey):null;Re==null&&s&&(Re=w==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ue=n.getFirstKey)===null||Ue===void 0?void 0:Ue.call(n,t.focusedKey)),Re!=null&&(z.preventDefault(),j(Re,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let Re=n.getFirstKey(t.focusedKey,Sl(z));t.setFocusedKey(Re),Re!=null&&(Sl(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Re):l&&t.replaceSelection(Re))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&z.shiftKey)return;z.preventDefault();let Re=n.getLastKey(t.focusedKey,Sl(z));t.setFocusedKey(Re),Re!=null&&(Sl(z)&&z.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Re):l&&t.replaceSelection(Re))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Re=n.getKeyPageBelow(t.focusedKey);Re!=null&&(z.preventDefault(),j(Re))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Re=n.getKeyPageAbove(t.focusedKey);Re!=null&&(z.preventDefault(),j(Re))}break;case"a":Sl(z)&&t.selectionMode==="multiple"&&u!==!0&&(z.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(z.stopPropagation(),z.preventDefault(),t.clearSelection());break;case"Tab":if(!m){if(z.shiftKey)r.current.focus();else{let Re=Kr(r.current,{tabbable:!0}),Ve,Le;do Le=Re.lastChild(),Le&&(Ve=Le);while(Le);Ve&&!Ve.contains(document.activeElement)&&Xi(Ve)}break}}},C=A.useRef({top:0,left:0});Gs(b,"scroll",g?void 0:()=>{var z,K,j,V;C.current={top:(j=(z=b.current)===null||z===void 0?void 0:z.scrollTop)!==null&&j!==void 0?j:0,left:(V=(K=b.current)===null||K===void 0?void 0:K.scrollLeft)!==null&&V!==void 0?V:0}});let T=z=>{if(t.isFocused){z.currentTarget.contains(z.target)||t.setFocused(!1);return}if(z.currentTarget.contains(z.target)){if(t.setFocused(!0),t.focusedKey==null){var K,j;let U=xe=>{xe!=null&&(t.setFocusedKey(xe),l&&!t.isSelected(xe)&&t.replaceSelection(xe))},J=z.relatedTarget;var V,ge;J&&z.currentTarget.compareDocumentPosition(J)&Node.DOCUMENT_POSITION_FOLLOWING?U((V=t.lastSelectedKey)!==null&&V!==void 0?V:(K=n.getLastKey)===null||K===void 0?void 0:K.call(n)):U((ge=t.firstSelectedKey)!==null&&ge!==void 0?ge:(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n))}else!g&&b.current&&(b.current.scrollTop=C.current.top,b.current.scrollLeft=C.current.left);if(t.focusedKey!=null&&b.current){let U=lp(r,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!h&&Xi(U),Zf()==="keyboard"&&Fp(U,{containingElement:r.current}))}}},O=z=>{z.currentTarget.contains(z.relatedTarget)||t.setFocused(!1)},M=A.useRef(!1);Gs(r,bz,h?z=>{let{detail:K}=z;z.stopPropagation(),t.setFocused(!0),(K==null?void 0:K.focusStrategy)==="first"&&(M.current=!0)}:void 0);let k=Hn(()=>{var z,K;let j=(K=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&K!==void 0?K:null;j==null?(h_(r.current),t.collection.size>0&&(M.current=!1)):(t.setFocusedKey(j),M.current=!1)});gC(()=>{M.current&&k()},[t.collection,k]);let N=Hn(()=>{t.collection.size>0&&(M.current=!1)});gC(()=>{N()},[t.focusedKey,N]),Gs(r,yz,h?z=>{var K;z.stopPropagation(),t.setFocused(!1),!((K=z.detail)===null||K===void 0)&&K.clearFocusKey&&t.setFocusedKey(null)}:void 0);const F=A.useRef(i),ae=A.useRef(!1);A.useEffect(()=>{if(F.current){var z,K;let ge=null;var j;i==="first"&&(ge=(j=(z=n.getFirstKey)===null||z===void 0?void 0:z.call(n))!==null&&j!==void 0?j:null);var V;i==="last"&&(ge=(V=(K=n.getLastKey)===null||K===void 0?void 0:K.call(n))!==null&&V!==void 0?V:null);let U=t.selectedKeys;if(U.size){for(let J of U)if(t.canSelectItem(J)){ge=J;break}}t.setFocused(!0),t.setFocusedKey(ge),ge==null&&!h&&r.current&&Fu(r.current),t.collection.size>0&&(F.current=!1,ae.current=!0)}});let oe=A.useRef(t.focusedKey);A.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==oe.current||ae.current)&&b.current&&r.current){let z=Zf(),K=lp(r,t.focusedKey);if(!(K instanceof HTMLElement))return;(z==="keyboard"||ae.current)&&(p5(b.current,K),z!=="virtual"&&Fp(K,{containingElement:r.current}))}!h&&t.isFocused&&t.focusedKey==null&&oe.current!=null&&r.current&&Fu(r.current),oe.current=t.focusedKey,ae.current=!1}),Gs(r,"react-aria-focus-scope-restore",z=>{z.preventDefault(),t.setFocused(!0)});let W={onKeyDown:S,onFocus:T,onBlur:O,onMouseDown(z){b.current===z.target&&z.preventDefault()}},{typeSelectProps:Ce}=xH({keyboardDelegate:n,selectionManager:t});d||(W=Zt(Ce,W));let ne;h||(ne=t.focusedKey==null?0:-1);let se=yH(t.collection);return{collectionProps:Zt(W,{tabIndex:ne,"data-collection":se})}}function CH(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:s,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Dm();t=Wr(t);let b=V=>{if(V.pointerType==="keyboard"&&Mb(V))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(m==="selection"&&i.current){let ge=n.getItemProps(r);g.open(i.current,V,ge.href,ge.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):V&&V.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||V&&(Sl(V)||V.pointerType==="touch"||V.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};A.useEffect(()=>{r===n.focusedKey&&n.isFocused&&(o?h_(i.current):u?u():document.activeElement!==i.current&&i.current&&Fu(i.current))},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(r);let $={};!o&&!l?$={tabIndex:r===n.focusedKey?0:-1,onFocus(V){V.target===i.current&&n.setFocusedKey(r)}}:l&&($.onMouseDown=V=>{V.preventDefault()});let w=n.isLink(r)&&m==="override",D=n.isLink(r)&&m!=="selection"&&m!=="none",S=!l&&n.canSelectItem(r)&&!w,C=(d||D)&&!l,T=C&&(n.selectionBehavior==="replace"?!S:!S||n.isEmpty),O=C&&S&&n.selectionBehavior==="replace",M=T||O,k=A.useRef(null),N=M&&S,F=A.useRef(!1),ae=A.useRef(!1),oe=V=>{if(d&&d(),D&&i.current){let ge=n.getItemProps(r);g.open(i.current,V,ge.href,ge.routerOptions)}},W={};s?(W.onPressStart=V=>{k.current=V.pointerType,F.current=N,V.pointerType==="keyboard"&&(!M||yS())&&b(V)},h?(W.onPressUp=T?void 0:V=>{V.pointerType==="mouse"&&S&&b(V)},W.onPress=T?oe:V=>{V.pointerType!=="keyboard"&&V.pointerType!=="mouse"&&S&&b(V)}):W.onPress=V=>{if(T||O&&V.pointerType!=="mouse"){if(V.pointerType==="keyboard"&&!vS())return;oe(V)}else V.pointerType!=="keyboard"&&S&&b(V)}):(W.onPressStart=V=>{k.current=V.pointerType,F.current=N,ae.current=T,S&&(V.pointerType==="mouse"&&!T||V.pointerType==="keyboard"&&(!C||yS()))&&b(V)},W.onPress=V=>{(V.pointerType==="touch"||V.pointerType==="pen"||V.pointerType==="virtual"||V.pointerType==="keyboard"&&M&&vS()||V.pointerType==="mouse"&&ae.current)&&(M?oe(V):S&&b(V))}),$["data-collection"]=bH(n.collection),$["data-key"]=r,W.preventFocusOnPress=o,o&&(W=Zt(W,{onPressStart(V){V.pointerType!=="touch"&&(n.setFocused(!0),n.setFocusedKey(r))},onPress(V){V.pointerType==="touch"&&(n.setFocused(!0),n.setFocusedKey(r))}}));let{pressProps:Ce,isPressed:ne}=Sd(W),se=O?V=>{k.current==="mouse"&&(V.stopPropagation(),V.preventDefault(),oe(V))}:void 0,{longPressProps:z}=T5({isDisabled:!N,onLongPress(V){V.pointerType==="touch"&&(b(V),n.setSelectionBehavior("toggle"))}}),K=V=>{k.current==="touch"&&F.current&&V.preventDefault()},j=n.isLink(r)?V=>{Mu.isOpening||V.preventDefault()}:void 0;return{itemProps:Zt($,S||T||o?Ce:{},N?z:{},{onDoubleClick:se,onDragStartCapture:K,onClick:j,id:t},o?{onMouseDown:V=>V.preventDefault()}:void 0),isPressed:ne,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:S,hasAction:M}}function vS(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function yS(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class bS{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?lp(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,s;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(s=t==null?void 0:t.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class CM{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let o=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(o,s)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Yf(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Yf(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<s&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let s=r.getItem(i);if(!s)return null;let o=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(o,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new bS(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 bS(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function SH(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:s,layoutDelegate:o}=e,u=u_({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=A.useMemo(()=>s||new CM({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:o}),[s,o,n,r,i,u,l]),{collectionProps:h}=wM({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:h}}function EH(e,t,n){let r=Go(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&s==="action"&&(s="override");let{listProps:o}=SH({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:u}=bc({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Wr(e.id);Im.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:d,fieldProps:h}=km({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:Zt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Zt(h,o)})}}function SM(e){return null}SM.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,o=t.title||t.children,u=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:u,"aria-label":t["aria-label"],hasChildNodes:DH(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];A.Children.forEach(s,d=>{l.push({type:"item",element:d})}),yield*l}}}};function DH(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&A.Children.count(e.children)>0)}let AH=SM;class TH{build(t,n){return this.context=n,$S(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(A.isValidElement(n)&&n.type===A.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];A.Children.forEach(n,o=>{o&&i.push(o)});let s=0;for(let o of i){let u=this.getFullNode({element:o,index:s},{});for(let l of u)s++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var o;let u=(o=s.key)!==null&&o!==void 0?o:s.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(A.isValidElement(t.element)&&t.element.type===A.Fragment){let D=[];A.Children.forEach(t.element.props.children,C=>{D.push(C)});var s;let S=(s=t.index)!==null&&s!==void 0?s:0;for(const C of D)yield*this.getFullNode({element:C,index:S++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let D=this.cache.get(t.value);if(D&&(!D.shouldInvalidate||!D.shouldInvalidate(this.context))){D.index=t.index,D.parentKey=i?i.key:null,yield D;return}o=n.renderer(t.value)}if(A.isValidElement(o)){let D=o.type;if(typeof D!="function"&&typeof D.getCollectionNode!="function"){let O=o.type;throw new Error(`Unknown element <${O}> in collection.`)}let S=D.getCollectionNode(o.props,this.context);var u;let C=(u=t.index)!==null&&u!==void 0?u:0,T=S.next();for(;!T.done&&T.value;){let O=T.value;t.index=C;var l;let M=(l=O.key)!==null&&l!==void 0?l:null;M==null&&(M=O.element?null:this.getKey(o,t,n,r));let N=[...this.getFullNode({...O,key:M,index:C,wrapper:PH(t.wrapper,O.wrapper)},this.getChildState(n,O),r?`${r}${o.key}`:o.key,i)];for(let F of N){var d,h;F.value=(h=(d=O.value)!==null&&d!==void 0?d:t.value)!==null&&h!==void 0?h:null,F.value&&this.cache.set(F.value,F);var m;if(t.type&&F.type!==t.type)throw new Error(`Unsupported type <${Wv(F.type)}> in <${Wv((m=i==null?void 0:i.type)!==null&&m!==void 0?m:"unknown parent type")}>. Only <${Wv(t.type)}> is supported.`);C++,yield F}T=S.next(N)}return}if(t.key==null||t.type==null)return;let g=this;var b,$;let w={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(b=t.value)!==null&&b!==void 0?b:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:($=t.textValue)!==null&&$!==void 0?$:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:$S(function*(){if(!t.hasChildNodes||!t.childNodes)return;let D=0;for(let S of t.childNodes()){S.key!=null&&(S.key=`${w.key}${S.key}`);let C=g.getFullNode({...S,index:D},g.getChildState(n,S),w.key,w);for(let T of C)D++,yield T}})};yield w}constructor(){this.cache=new WeakMap}}function $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 PH(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Wv(e){return e[0].toUpperCase()+e.slice(1)}function _H(e,t,n){let r=A.useMemo(()=>new TH,[]),{children:i,items:s,collection:o}=e;return A.useMemo(()=>{if(o)return o;let l=r.build({children:i,items:s},n);return t(l)},[r,i,s,o,n,t])}function Lm(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function MH(e){return RH(e)}function RH(e,t){for(let n of e)return n}function Hv(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...xS(e,t),t],i=[...xS(e,n),n],s=r.slice(0,i.length).findIndex((o,u)=>o!==i[u]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function xS(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 wS=new WeakMap;function EM(e){let t=wS.get(e);if(t!=null)return t;let n=0,r=i=>{for(let s of i)s.type==="section"?r(Lm(s,e)):n++};return r(e),wS.set(e,n),n}function FH(e,t,n){var r,i;let{key:s}=e,o=Im.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(s);var d;let h=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(s);var m;let g=(m=e.shouldSelectOnPressUp)!==null&&m!==void 0?m:o==null?void 0:o.shouldSelectOnPressUp;var b;let $=(b=e.shouldFocusOnHover)!==null&&b!==void 0?b:o==null?void 0:o.shouldFocusOnHover;var w;let D=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:o==null?void 0:o.shouldUseVirtualFocus;var S;let C=(S=e.isVirtualized)!==null&&S!==void 0?S:o==null?void 0:o.isVirtualized,T=ec(),O=ec(),M={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?h:void 0};qo()&&V4()||(M["aria-label"]=e["aria-label"],M["aria-labelledby"]=T,M["aria-describedby"]=O);let k=t.collection.getItem(s);if(C){let j=Number(k==null?void 0:k.index);M["aria-posinset"]=Number.isNaN(j)?void 0:j+1,M["aria-setsize"]=EM(t.collection)}let N=o!=null&&o.onAction?()=>{var j;return o==null||(j=o.onAction)===null||j===void 0?void 0:j.call(o,s)}:void 0,F=$M(t,s),{itemProps:ae,isPressed:oe,isFocused:W,hasAction:Ce,allowsSelection:ne}=CH({selectionManager:t.selectionManager,key:s,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&$,isVirtualized:C,shouldUseVirtualFocus:D,isDisabled:l,onAction:N||!(k==null||(r=k.props)===null||r===void 0)&&r.onAction?_u(k==null||(i=k.props)===null||i===void 0?void 0:i.onAction,N):void 0,linkBehavior:o==null?void 0:o.linkBehavior,id:F}),{hoverProps:se}=jz({isDisabled:l||!$,onHoverStart(){DC()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),z=Go(k==null?void 0:k.props);delete z.id;let K=hz(k==null?void 0:k.props);return{optionProps:{...M,...Zt(z,ae,se,K),id:F},labelProps:{id:T},descriptionProps:{id:O},isFocused:W,isFocusVisible:W&&t.selectionManager.isFocused&&DC(),isSelected:h,isDisabled:l,isPressed:oe,allowsSelection:ne,hasAction:Ce}}var DM={};DM={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var AM={};AM={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var TM={};TM={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var PM={};PM={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var _M={};_M={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var MM={};MM={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var RM={};RM={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var FM={};FM={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var kM={};kM={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var OM={};OM={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var IM={};IM={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var LM={};LM={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var BM={};BM={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var VM={};VM={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var NM={};NM={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var jM={};jM={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var KM={};KM={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var UM={};UM={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var zM={};zM={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var qM={};qM={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var WM={};WM={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var HM={};HM={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var GM={};GM={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var YM={};YM={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var ZM={};ZM={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var XM={};XM={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var JM={};JM={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var QM={};QM={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var eR={};eR={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var tR={};tR={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var nR={};nR={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var rR={};rR={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var iR={};iR={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var sR={};sR={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var oR={};oR={"ar-AE":DM,"bg-BG":AM,"cs-CZ":TM,"da-DK":PM,"de-DE":_M,"el-GR":MM,"en-US":RM,"es-ES":FM,"et-EE":kM,"fi-FI":OM,"fr-FR":IM,"he-IL":LM,"hr-HR":BM,"hu-HU":VM,"it-IT":NM,"ja-JP":jM,"ko-KR":KM,"lt-LT":UM,"lv-LV":zM,"nb-NO":qM,"nl-NL":WM,"pl-PL":HM,"pt-BR":GM,"pt-PT":YM,"ro-RO":ZM,"ru-RU":XM,"sk-SK":JM,"sl-SI":QM,"sr-SP":eR,"sv-SE":tR,"tr-TR":nR,"uk-UA":rR,"zh-CN":iR,"zh-TW":sR};function kH(e){return e&&e.__esModule?e.default:e}function OH(e,t,n){let{type:r="menu",isDisabled:i,trigger:s="press"}=e,o=Wr(),{triggerProps:u,overlayProps:l}=sH({type:r},t,n),d=b=>{if(!i&&!(s==="longPress"&&!b.altKey)&&n&&n.current)switch(b.key){case"Enter":case" ":if(s==="longPress")return;case"ArrowDown":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in b||b.stopPropagation(),b.preventDefault(),t.toggle("last");break;default:"continuePropagation"in b&&b.continuePropagation()}},h=oo(kH(oR),"@react-aria/menu"),{longPressProps:m}=T5({isDisabled:i||s!=="longPress",accessibilityDescription:h.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={preventFocusOnPress:!0,onPressStart(b){b.pointerType!=="touch"&&b.pointerType!=="keyboard"&&!i&&(Xi(b.target),t.open(b.pointerType==="virtual"?"first":null))},onPress(b){b.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...s==="press"?g:m,id:o,onKeyDown:d},menuProps:{...l,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function IH(e){return e&&e.__esModule?e.default:e}function LH(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:s,keyboardDelegate:o,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:d,isDisabled:h}=e,m=A.useRef(null);n=n??m;let g=oo(IH(mM),"@react-aria/combobox"),{menuTriggerProps:b,menuProps:$}=OH({type:"listbox",isDisabled:h||d},t,n);Im.set(t,{id:$.id});let{collection:w}=t,{disabledKeys:D}=t.selectionManager,S=A.useMemo(()=>o||new CM({collection:w,disabledKeys:D,ref:s,layoutDelegate:u}),[o,u,w,D,s]),{collectionProps:C}=wM({selectionManager:t.selectionManager,keyboardDelegate:S,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),T=Dm(),O=Ve=>{if(!Ve.nativeEvent.isComposing)switch(Ve.key){case"Enter":case"Tab":if(t.isOpen&&Ve.key==="Enter"&&Ve.preventDefault(),t.isOpen&&s.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Le=s.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ve.key==="Enter"&&Le instanceof HTMLAnchorElement){let nt=t.collection.getItem(t.selectionManager.focusedKey);nt&&T.open(Le,Ve,nt.props.href,nt.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ve.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},M=Ve=>{var Le;let nt=(n==null?void 0:n.current)&&n.current===Ve.relatedTarget,xt=(Le=r.current)===null||Le===void 0?void 0:Le.contains(Ve.relatedTarget);nt||xt||(e.onBlur&&e.onBlur(Ve),t.setFocused(!1))},k=Ve=>{t.isFocused||(e.onFocus&&e.onFocus(Ve),t.setFocused(!0))},{isInvalid:N,validationErrors:F,validationDetails:ae}=t.displayValidation,{labelProps:oe,inputProps:W,descriptionProps:Ce,errorMessageProps:ne}=zW({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:_u(t.isOpen&&C.onKeyDown,O,e.onKeyDown),onBlur:M,value:t.inputValue,onFocus:k,autoComplete:"off",validate:void 0,[ic]:t},i),se=Ve=>{if(Ve.pointerType==="touch"){var Le;(Le=i.current)===null||Le===void 0||Le.focus(),t.toggle(null,"manual")}},z=Ve=>{if(Ve.pointerType!=="touch"){var Le;(Le=i.current)===null||Le===void 0||Le.focus(),t.toggle(Ve.pointerType==="keyboard"||Ve.pointerType==="virtual"?"first":null,"manual")}},K=tc({id:b.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),j=tc({id:$.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||oe.id}),V=A.useRef(0),ge=Ve=>{if(h||d)return;if(Ve.timeStamp-V.current<500){var Le;Ve.preventDefault(),(Le=i.current)===null||Le===void 0||Le.focus();return}let nt=Ve.target.getBoundingClientRect(),xt=Ve.changedTouches[0],ln=Math.ceil(nt.left+.5*nt.width),$t=Math.ceil(nt.top+.5*nt.height);if(xt.clientX===ln&&xt.clientY===$t){var Rt;Ve.preventDefault(),(Rt=i.current)===null||Rt===void 0||Rt.focus(),t.toggle(null,"manual"),V.current=Ve.timeStamp}},U=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var J;let xe=(J=U==null?void 0:U.parentKey)!==null&&J!==void 0?J:null;var Pe;let Oe=(Pe=t.selectionManager.focusedKey)!==null&&Pe!==void 0?Pe:null,Ie=A.useRef(xe),Ze=A.useRef(Oe);A.useEffect(()=>{if(rp()&&U!=null&&Oe!=null&&Oe!==Ze.current){let Le=t.selectionManager.isSelected(Oe),nt=xe!=null?t.collection.getItem(xe):null,xt=(nt==null?void 0:nt["aria-label"])||(typeof(nt==null?void 0:nt.rendered)=="string"?nt.rendered:"")||"";var Ve;let ln=g.format("focusAnnouncement",{isGroupChange:(Ve=nt&&xe!==Ie.current)!==null&&Ve!==void 0?Ve:!1,groupTitle:xt,groupCount:nt?[...Lm(nt,t.collection)].length:0,optionText:U["aria-label"]||U.textValue||"",isSelected:Le});Ul(ln)}Ie.current=xe,Ze.current=Oe});let Ge=EM(t.collection),De=A.useRef(Ge),Ue=A.useRef(t.isOpen);A.useEffect(()=>{let Ve=t.isOpen!==Ue.current&&(t.selectionManager.focusedKey==null||rp());if(t.isOpen&&(Ve||Ge!==De.current)){let Le=g.format("countAnnouncement",{optionCount:Ge});Ul(Le)}De.current=Ge,Ue.current=t.isOpen});let Re=A.useRef(t.selectedKey);return A.useEffect(()=>{if(rp()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Re.current){let Ve=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Le=g.format("selectedAnnouncement",{optionText:Ve});Ul(Le)}Re.current=t.selectedKey}),A.useEffect(()=>{if(t.isOpen)return yM([i.current,r.current].filter(Ve=>Ve!=null))},[t.isOpen,i,r]),ab(()=>{!U&&i.current&&mr(nn(i.current))===i.current&&p_(i.current,null)},[U]),{labelProps:oe,buttonProps:{...b,...K,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:se,onPressStart:z,isDisabled:h||d},inputProps:Zt(W,{role:"combobox","aria-expanded":b["aria-expanded"],"aria-controls":t.isOpen?$.id:void 0,"aria-autocomplete":"list","aria-activedescendant":U?$M(t,U.key):void 0,onTouchEnd:ge,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Zt($,j,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Ce,errorMessageProps:ne,isInvalid:N,validationErrors:F,validationDetails:ae}}var aR={};aR={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 uR={};uR={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 lR={};lR={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 cR={};cR={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 fR={};fR={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 dR={};dR={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var hR={};hR={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 pR={};pR={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 mR={};mR={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 gR={};gR={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 vR={};vR={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 yR={};yR={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var bR={};bR={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 $R={};$R={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 xR={};xR={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 wR={};wR={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var CR={};CR={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var SR={};SR={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 ER={};ER={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 DR={};DR={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 AR={};AR={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 TR={};TR={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 PR={};PR={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 _R={};_R={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 MR={};MR={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 RR={};RR={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 FR={};FR={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 kR={};kR={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var OR={};OR={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var IR={};IR={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var LR={};LR={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var BR={};BR={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var VR={};VR={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var NR={};NR={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Md={};Md={"ar-AE":aR,"bg-BG":uR,"cs-CZ":lR,"da-DK":cR,"de-DE":fR,"el-GR":dR,"en-US":hR,"es-ES":pR,"et-EE":mR,"fi-FI":gR,"fr-FR":vR,"he-IL":yR,"hr-HR":bR,"hu-HU":$R,"it-IT":xR,"ja-JP":wR,"ko-KR":CR,"lt-LT":SR,"lv-LV":ER,"nb-NO":DR,"nl-NL":AR,"pl-PL":TR,"pt-BR":PR,"pt-PT":_R,"ro-RO":MR,"ru-RU":RR,"sk-SK":FR,"sl-SI":kR,"sr-SP":OR,"sv-SE":IR,"tr-TR":LR,"uk-UA":BR,"zh-CN":VR,"zh-TW":NR};function o3(e,t,n){let{direction:r}=Rr(),i=A.useMemo(()=>Rm(t),[t]),s=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=CS(t.current,d.getBoundingClientRect().left,-1);h&&h.focus()}}else i.focusPrevious();break;case"ArrowRight":if(l.preventDefault(),l.stopPropagation(),r==="rtl"){if(t.current){let d=l.target,h=CS(t.current,d.getBoundingClientRect().left,1);h&&h.focus()}}else i.focusNext();break}},o=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,h=Kr(t.current,{tabbable:!0});if(d&&(h.currentNode=d,d=h.previousNode()),!d){let m;do m=h.lastChild(),m&&(d=m);while(m)}for(;d!=null&&d.hasAttribute("data-placeholder");){let m=h.previousNode();if(m&&m.hasAttribute("data-placeholder"))d=m;else break}d&&d.focus()},{pressProps:u}=Sd({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&o()},onPress(l){l.pointerType!=="mouse"&&o()}});return Zt(u,{onKeyDown:s})}function CS(e,t,n){let r=Kr(e,{tabbable:!0}),i=r.nextNode(),s=null,o=1/0;for(;i;){let l=i.getBoundingClientRect().left-t,d=Math.abs(l);Math.sign(l)===n&&d<o&&(s=i,o=d),i=r.nextNode()}return s}function BH(e){return e&&e.__esModule?e.default:e}const jR=new WeakMap,Vf="__role_"+Date.now(),KR="__focusManager_"+Date.now();function UR(e,t,n){var r;let{isInvalid:i,validationErrors:s,validationDetails:o}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:d,errorMessageProps:h}=Om({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||s}),m=A.useRef(null),{focusWithinProps:g}=bc({...e,onFocusWithin(oe){var W;m.current=t.value,(W=e.onFocus)===null||W===void 0||W.call(e,oe)},onBlurWithin:oe=>{var W;t.confirmPlaceholder(),t.value!==m.current&&t.commitValidation(),(W=e.onBlur)===null||W===void 0||W.call(e,oe)},onFocusWithinChange:e.onFocusChange}),b=oo(BH(Md),"@react-aria/datepicker"),$=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",D=t.value?b.format($,{[w]:t.formatValue({month:"long"})}):"",S=wd(D),C=e[Vf]==="presentation"?l["aria-describedby"]:[S["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,T=e[KR],O=A.useMemo(()=>T||Rm(n),[T,n]),M=o3(t,n,e[Vf]==="presentation");jR.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:O});let k=A.useRef(e.autoFocus),N;e[Vf]==="presentation"?N={role:"presentation"}:N=Zt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),A.useEffect(()=>{k.current&&O.focusFirst(),k.current=!1},[O]),j4(e.inputRef,t.value,t.setValue),Q_({...e,focus(){O.focusFirst()}},t,e.inputRef);let F={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(F.type="text",F.hidden=!0,F.required=e.isRequired,F.onChange=()=>{});let ae=Go(e);return{labelProps:{...u,onClick:()=>{O.focusFirst()}},fieldProps:Zt(ae,N,M,g,{onKeyDown(oe){e.onKeyDown&&e.onKeyDown(oe)},onKeyUp(oe){e.onKeyUp&&e.onKeyUp(oe)},style:{unicodeBidi:"isolate"}}),inputProps:F,descriptionProps:d,errorMessageProps:h,isInvalid:i,validationErrors:s,validationDetails:o}}function VH(e,t,n){var r;let i=UR(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function NH(e){return e&&e.__esModule?e.default:e}function jH(e,t,n){let r=Wr(),i=Wr(),s=Wr(),o=oo(NH(Md),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Om({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=o3(t,n),w=m["aria-labelledby"]||m.id,{locale:D}=Rr(),S=t.formatValue(D,{month:"long"}),C=S?o.format("selectedDateDescription",{date:S}):"",T=wd(C),O=[T["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,M=Go(e),k=A.useMemo(()=>Rm(n),[n]),N=A.useRef(!1),{focusWithinProps:F}=bc({...e,isDisabled:t.isOpen,onBlurWithin:ae=>{let oe=document.getElementById(i);if(!(oe!=null&&oe.contains(ae.relatedTarget))){var W,Ce;N.current=!1,(W=e.onBlur)===null||W===void 0||W.call(e,ae),(Ce=e.onFocusChange)===null||Ce===void 0||Ce.call(e,!1)}},onFocusWithin:ae=>{if(!N.current){var oe,W;N.current=!0,(oe=e.onFocus)===null||oe===void 0||oe.call(e,ae),(W=e.onFocusChange)===null||W===void 0||W.call(e,!0)}}});return{groupProps:Zt(M,$,m,T,F,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":O,onKeyDown(ae){t.isOpen||e.onKeyDown&&e.onKeyDown(ae)},onKeyUp(ae){t.isOpen||e.onKeyUp&&e.onKeyUp(ae)}}),labelProps:{...h,onClick:()=>{k.focusFirst()}},fieldProps:{...m,id:s,[Vf]:"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,[ic]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:b,buttonProps:{...T,id:r,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":O,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function KH(e){return e&&e.__esModule?e.default:e}function UH(){let{locale:e}=Rr(),t=M5(KH(Md),"@react-aria/datepicker");return A.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new zH(e,t)}},[e,t])}class zH{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function qH(e,t,n){let r=A.useRef(""),{locale:i,direction:s}=Rr(),o=UH(),{ariaLabel:u,ariaLabelledBy:l,ariaDescribedBy:d,focusManager:h}=jR.get(t),m=e.isPlaceholder?"":e.text,g=A.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),b=Ys({month:"long",timeZone:g.timeZone}),$=Ys({hour:"numeric",hour12:g.hour12,timeZone:g.timeZone});if(e.type==="month"&&!e.isPlaceholder){let U=b.format(t.dateValue);m=U!==m?`${m} – ${U}`:U}else e.type==="hour"&&!e.isPlaceholder&&(m=$.format(t.dateValue));let{spinButtonProps:w}=WW({value:e.value,textValue:m,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),D=A.useMemo(()=>new a_(i,{maximumFractionDigits:0}),[i]),S=()=>{if(e.text===e.placeholder&&h.focusPrevious(),D.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let U=e.text.slice(0,-1),J=D.parse(U);U=J===0?"":U,U.length===0||J===0?t.clearSegment(e.type):t.setSegment(e.type,J),r.current=U}else e.type==="dayPeriod"&&t.clearSegment(e.type)},C=U=>{if(U.key==="a"&&(qo()?U.metaKey:U.ctrlKey)&&U.preventDefault(),!(U.ctrlKey||U.metaKey||U.shiftKey||U.altKey))switch(U.key){case"Backspace":case"Delete":U.preventDefault(),U.stopPropagation(),S();break}},{startsWith:T}=l_({sensitivity:"base"}),O=Ys({hour:"numeric",hour12:!0}),M=A.useMemo(()=>{let U=new Date;return U.setHours(0),O.formatToParts(U).find(J=>J.type==="dayPeriod").value},[O]),k=A.useMemo(()=>{let U=new Date;return U.setHours(12),O.formatToParts(U).find(J=>J.type==="dayPeriod").value},[O]),N=Ys({year:"numeric",era:"narrow",timeZone:"UTC"}),F=A.useMemo(()=>{if(e.type!=="era")return[];let U=Fn(new Yn(1,1,1),t.calendar),J=t.calendar.getEras().map(Pe=>{let Oe=U.set({year:1,month:1,day:1,era:Pe}).toDate("UTC"),Ze=N.formatToParts(Oe).find(Ge=>Ge.type==="era").value;return{era:Pe,formatted:Ze}}),xe=WH(J.map(Pe=>Pe.formatted));if(xe)for(let Pe of J)Pe.formatted=Pe.formatted.slice(xe);return J},[N,t.calendar,e.type]),ae=U=>{if(t.isDisabled||t.isReadOnly)return;let J=r.current+U;switch(e.type){case"dayPeriod":if(T(M,U))t.setSegment("dayPeriod",0);else if(T(k,U))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let xe=F.find(Pe=>T(Pe.formatted,U));xe&&(t.setSegment("era",xe.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!D.isValidPartialNumber(J))return;let xe=D.parse(J),Pe=xe,Oe=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":xe>11&&(Pe=D.parse(U));break;case"h12":Oe=!1,xe>12&&(Pe=D.parse(U));break}e.value!==void 0&&e.value>=12&&xe>1&&(xe+=12)}else e.maxValue!==void 0&&xe>e.maxValue&&(Pe=D.parse(U));if(isNaN(xe))return;let Ie=Pe!==0||Oe;Ie&&t.setSegment(e.type,Pe),e.maxValue!==void 0&&(+(xe+"0")>e.maxValue||J.length>=String(e.maxValue).length)?(r.current="",Ie&&h.focusNext()):r.current=J;break}}},oe=()=>{r.current="",n.current&&Fp(n.current,{containingElement:Am(n.current)});let U=window.getSelection();U==null||U.collapse(n.current)},W=A.useRef(typeof document<"u"?document:null);Gs(W,"selectionchange",()=>{var U;let J=window.getSelection();J!=null&&J.anchorNode&&(!((U=n.current)===null||U===void 0)&&U.contains(J==null?void 0:J.anchorNode))&&J.collapse(n.current)});let Ce=A.useRef("");Gs(n,"beforeinput",U=>{if(n.current)switch(U.preventDefault(),U.inputType){case"deleteContentBackward":case"deleteContentForward":D.isValidPartialNumber(e.text)&&!t.isReadOnly&&S();break;case"insertCompositionText":Ce.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:U.data!=null&&ae(U.data);break}}),Gs(n,"input",U=>{let{inputType:J,data:xe}=U;switch(J){case"insertCompositionText":n.current&&(n.current.textContent=Ce.current),xe!=null&&(T(M,xe)||T(k,xe))&&ae(xe);break}}),pn(()=>{let U=n.current;return()=>{document.activeElement===U&&(h.focusPrevious()||h.focusNext())}},[n,h]);let ne=xd()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},se=A.useMemo(()=>t.segments.find(U=>U.isEditable),[t.segments]);e!==se&&!t.isInvalid&&(d=void 0);let z=Wr(),K=!t.isDisabled&&!t.isReadOnly&&e.isEditable,j=e.type==="literal"?"":o.of(e.type),V=tc({"aria-label":`${j}${u?`, ${u}`:""}${l?", ":""}`,"aria-labelledby":l});if(e.type==="literal")return{segmentProps:{"aria-hidden":!0}};let ge={caretColor:"transparent"};if(s==="rtl"){ge.unicodeBidi="embed";let U=g[e.type];(U==="numeric"||U==="2-digit")&&(ge.direction="ltr")}return{segmentProps:Zt(w,V,{id:z,...ne,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:K,suppressContentEditableWarning:K,spellCheck:K?"false":void 0,autoCorrect:K?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:K?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!K?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:C,onFocus:oe,style:ge,onPointerDown(U){U.stopPropagation()},onMouseDown(U){U.stopPropagation()}})}}function WH(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 HH(e){return e&&e.__esModule?e.default:e}function GH(e,t,n){var r,i,s;let o=oo(HH(Md),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:h,fieldProps:m,descriptionProps:g,errorMessageProps:b}=Om({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),$=m["aria-labelledby"]||m.id,{locale:w}=Rr(),D=t.formatValue(w,{month:"long"}),S=D?o.format("selectedRangeDescription",{startDate:D.start,endDate:D.end}):"",C=wd(S),T={"aria-label":o.format("startDate"),"aria-labelledby":$},O={"aria-label":o.format("endDate"),"aria-labelledby":$},M=Wr(),k=Wr(),N=o3(t,n),F=[C["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,ae=A.useMemo(()=>Rm(n,{accept:V=>V.id!==M}),[n,M]),oe={[KR]:ae,[Vf]:"presentation","aria-describedby":F,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},W=Go(e),Ce=A.useRef(!1),{focusWithinProps:ne}=bc({...e,isDisabled:t.isOpen,onBlurWithin:V=>{let ge=document.getElementById(k);if(!(ge!=null&&ge.contains(V.relatedTarget))){var U,J;Ce.current=!1,(U=e.onBlur)===null||U===void 0||U.call(e,V),(J=e.onFocusChange)===null||J===void 0||J.call(e,!1)}},onFocusWithin:V=>{if(!Ce.current){var ge,U;Ce.current=!0,(ge=e.onFocus)===null||ge===void 0||ge.call(e,V),(U=e.onFocusChange)===null||U===void 0||U.call(e,!0)}}}),se=A.useRef(fu),z=A.useRef(fu);var K,j;return{groupProps:Zt(W,N,m,C,ne,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(V){t.isOpen||e.onKeyDown&&e.onKeyDown(V)},onKeyUp(V){t.isOpen||e.onKeyUp&&e.onKeyUp(V)}}),labelProps:{...h,onClick:()=>{ae.focusFirst()}},buttonProps:{...C,id:M,"aria-haspopup":"dialog","aria-label":o.format("calendar"),"aria-labelledby":`${M} ${$}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:k,"aria-labelledby":`${M} ${$}`},startFieldProps:{...T,...oe,value:(K=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&K!==void 0?K:null,onChange:V=>t.setDateTime("start",V),autoFocus:e.autoFocus,name:e.startName,[ic]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){se.current=V,t.updateValidation(Up(V,z.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...O,...oe,value:(j=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&j!==void 0?j:null,onChange:V=>t.setDateTime("end",V),name:e.endName,[ic]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){z.current=V,t.updateValidation(Up(se.current,V))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:b,calendarProps:{autoFocus:!0,value:!((s=t.dateRange)===null||s===void 0)&&s.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function YH(e,t){let{role:n="dialog"}=e,r=ec();r=e["aria-label"]?void 0:r;let i=A.useRef(!1);return A.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Fu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),Fu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),gH(),{dialogProps:{...Go(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function ql(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Rb(e,t,n,r,i){let s={};for(let u in t)s[u]=Math.floor(t[u]/2),s[u]>0&&t[u]%2===0&&s[u]--;let o=gu(e,t,n).subtract(s);return nd(e,o,t,n,r,i)}function gu(e,t,n,r,i){let s=e;return t.years?s=iq(e):t.months?s=Ad(e):t.weeks&&(s=Xf(e,n)),nd(e,s,t,n,r,i)}function Fb(e,t,n,r,i){let s={...t};s.days?s.days--:s.weeks?s.weeks--:s.months?s.months--:s.years&&s.years--;let o=gu(e,t,n).subtract(s);return nd(e,o,t,n,r,i)}function nd(e,t,n,r,i,s){if(i&&e.compare(i)>=0){let o=G4(t,gu(Hr(i),n,r));o&&(t=o)}if(s&&e.compare(s)<=0){let o=H4(t,Fb(Hr(s),n,r));o&&(t=o)}return t}function ha(e,t,n){if(t){let r=G4(e,Hr(t));r&&(e=r)}if(n){let r=H4(e,Hr(n));r&&(e=r)}return e}function zR(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 qR(e){let t=A.useMemo(()=>new Wi(e.locale),[e.locale]),n=A.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:s={months:1},minValue:o,maxValue:u,selectionAlignment:l,isDateUnavailable:d,pageBehavior:h="visible",firstDayOfWeek:m}=e,g=A.useMemo(()=>i(n.calendar),[i,n.calendar]);var b;let[$,w]=wi(e.value,(b=e.defaultValue)!==null&&b!==void 0?b:null,e.onChange),D=A.useMemo(()=>$?Fn(Hr($),g):null,[$,g]),S=A.useMemo(()=>$&&"timeZone"in $?$.timeZone:n.timeZone,[$,n.timeZone]),C=A.useMemo(()=>e.focusedValue?ha(Fn(Hr(e.focusedValue),g),o,u):void 0,[e.focusedValue,g,o,u]),T=A.useMemo(()=>ha(e.defaultFocusedValue?Fn(Hr(e.defaultFocusedValue),g):D||Fn(_m(S),g),o,u),[e.defaultFocusedValue,D,S,g,o,u]),[O,M]=wi(C,T,e.onFocusChange),[k,N]=A.useState(()=>{switch(l){case"start":return gu(O,s,r,o,u);case"end":return Fb(O,s,r,o,u);case"center":default:return Rb(O,s,r,o,u)}}),[F,ae]=A.useState(e.autoFocus||!1),oe=A.useMemo(()=>{let J={...s};return J.days?J.days--:J.days=-1,k.add(J)},[k,s]),[W,Ce]=A.useState(g.identifier);if(g.identifier!==W){let J=Fn(O,g);N(Rb(J,s,r,o,u)),M(J),Ce(g.identifier)}ql(O,o,u)?M(ha(O,o,u)):O.compare(k)<0?N(Fb(O,s,r,o,u)):O.compare(oe)>0&&N(gu(O,s,r,o,u));function ne(J){J=ha(J,o,u),M(J)}function se(J){if(!e.isDisabled&&!e.isReadOnly){let xe=J;if(xe===null){w(null);return}if(xe=ha(xe,o,u),xe=zR(xe,k,d),!xe)return;xe=Fn(xe,($==null?void 0:$.calendar)||new Gr),$&&"hour"in $?w($.set(xe)):w(xe)}}let z=A.useMemo(()=>D?d&&d(D)?!0:ql(D,o,u):!1,[D,d,o,u]),K=e.isInvalid||e.validationState==="invalid"||z,j=K?"invalid":null,V=A.useMemo(()=>h==="visible"?s:Gv(s),[h,s]);var ge,U;return{isDisabled:(ge=e.isDisabled)!==null&&ge!==void 0?ge:!1,isReadOnly:(U=e.isReadOnly)!==null&&U!==void 0?U:!1,value:D,setValue:se,visibleRange:{start:k,end:oe},minValue:o,maxValue:u,focusedDate:O,timeZone:S,validationState:j,isValueInvalid:K,setFocusedDate(J){ne(J),ae(!0)},focusNextDay(){ne(O.add({days:1}))},focusPreviousDay(){ne(O.subtract({days:1}))},focusNextRow(){s.days?this.focusNextPage():(s.weeks||s.months||s.years)&&ne(O.add({weeks:1}))},focusPreviousRow(){s.days?this.focusPreviousPage():(s.weeks||s.months||s.years)&&ne(O.subtract({weeks:1}))},focusNextPage(){let J=k.add(V);M(ha(O.add(V),o,u)),N(gu(nd(O,J,V,r,o,u),V,r))},focusPreviousPage(){let J=k.subtract(V);M(ha(O.subtract(V),o,u)),N(gu(nd(O,J,V,r,o,u),V,r))},focusSectionStart(){s.days?ne(k):s.weeks?ne(Xf(O,r)):(s.months||s.years)&&ne(Ad(O))},focusSectionEnd(){s.days?ne(oe):s.weeks?ne(aq(O,r)):(s.months||s.years)&&ne(mb(O))},focusNextSection(J){if(!J&&!s.days){ne(O.add(Gv(s)));return}s.days?this.focusNextPage():s.weeks?ne(O.add({months:1})):(s.months||s.years)&&ne(O.add({years:1}))},focusPreviousSection(J){if(!J&&!s.days){ne(O.subtract(Gv(s)));return}s.days?this.focusPreviousPage():s.weeks?ne(O.subtract({months:1})):(s.months||s.years)&&ne(O.subtract({years:1}))},selectFocusedDate(){d&&d(O)||se(O)},selectDate(J){se(J)},isFocused:F,setFocused:ae,isInvalid(J){return ql(J,o,u)},isSelected(J){return D!=null&&ir(J,D)&&!this.isCellDisabled(J)&&!this.isCellUnavailable(J)},isCellFocused(J){return F&&O&&ir(J,O)},isCellDisabled(J){return e.isDisabled||J.compare(k)<0||J.compare(oe)>0||this.isInvalid(J)},isCellUnavailable(J){return e.isDateUnavailable?e.isDateUnavailable(J):!1},isPreviousVisibleRangeInvalid(){let J=k.subtract({days:1});return ir(J,k)||this.isInvalid(J)},isNextVisibleRangeInvalid(){let J=oe.add({days:1});return ir(J,oe)||this.isInvalid(J)},getDatesInWeek(J,xe=k){let Pe=xe.add({weeks:J}),Oe=[];Pe=Xf(Pe,r,m);let Ie=W4(Pe,r,m);for(let Ze=0;Ze<Ie;Ze++)Oe.push(null);for(;Oe.length<7;){Oe.push(Pe);let Ze=Pe.add({days:1});if(ir(Pe,Ze))break;Pe=Ze}for(;Oe.length<7;)Oe.push(null);return Oe}}}function Gv(e){let t={...e};for(let n in e)t[n]=1;return t}function ZH(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:s,visibleDuration:o={months:1},minValue:u,maxValue:l,...d}=e,[h,m]=wi(t,n||null,r),[g,b]=A.useState(null),$="center";if(h&&h.start&&h.end){let V=Rb(Hr(h.start),o,s,u,l).add(o).subtract({days:1});h.end.compare(V)>0&&($="start")}let w=A.useRef(null),[D,S]=A.useState(null),C=A.useMemo(()=>G4(u,D==null?void 0:D.start),[u,D]),T=A.useMemo(()=>H4(l,D==null?void 0:D.end),[l,D]),O=qR({...d,value:h&&h.start,createCalendar:i,locale:s,visibleDuration:o,minValue:C,maxValue:T,selectionAlignment:$}),M=j=>{if(j&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const V=ES(j,O,-1),ge=ES(j,O,1);w.current={start:V,end:ge},S(w.current)}else w.current=null,S(null)},[k,N]=A.useState(O.visibleRange);(!pb(O.visibleRange.start,k.start)||!pb(O.visibleRange.end,k.end))&&(M(g),N(O.visibleRange));let F=j=>{j?(b(j),M(j)):(b(null),M(null))},ae=g?Yv(g,O.focusedDate):h&&Yv(h.start,h.end),oe=j=>{if(e.isReadOnly)return;const V=ha(j,C,T),ge=zR(V,O.visibleRange.start,e.isDateUnavailable);if(ge)if(!g)F(ge);else{let U=Yv(g,ge);U&&m({start:SS(U.start,h==null?void 0:h.start),end:SS(U.end,h==null?void 0:h.end)}),F(null)}},[W,Ce]=A.useState(!1),{isDateUnavailable:ne}=e,se=A.useMemo(()=>!h||g?!1:ne&&(ne(h.start)||ne(h.end))?!0:ql(h.start,u,l)||ql(h.end,u,l),[ne,h,g,u,l]),z=e.isInvalid||e.validationState==="invalid"||se;return{...O,value:h,setValue:m,anchorDate:g,setAnchorDate:F,highlightedRange:ae,validationState:z?"invalid":null,isValueInvalid:z,selectFocusedDate(){oe(O.focusedDate)},selectDate:oe,highlightDate(j){g&&O.setFocusedDate(j)},isSelected(j){return!!(ae&&j.compare(ae.start)>=0&&j.compare(ae.end)<=0&&!O.isCellDisabled(j)&&!O.isCellUnavailable(j))},isInvalid(j){var V,ge;return O.isInvalid(j)||ql(j,(V=w.current)===null||V===void 0?void 0:V.start,(ge=w.current)===null||ge===void 0?void 0:ge.end)},isDragging:W,setDragging:Ce}}function Yv(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Hr(e),end:Hr(t)})}function SS(e,t){return e=Fn(e,(t==null?void 0:t.calendar)||new Gr),t&&"hour"in t?t.set(e):e}function ES(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 kb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let u of o.childNodes)n(u)};for(let o of t)n(o);let r=null,i=0;for(let[o,u]of this.keyMap)r?(r.nextKey=o,u.prevKey=r.key):(this.firstKey=o,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var s;this.lastKey=(s=r==null?void 0:r.key)!==null&&s!==void 0?s:null}}class gs extends Set{constructor(t,n,r){super(t),t instanceof gs?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function XH(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function JH(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,o=A.useRef(!1),[,u]=A.useState(!1),l=A.useRef(null),d=A.useRef(null),[,h]=A.useState(null),m=A.useMemo(()=>DS(e.selectedKeys),[e.selectedKeys]),g=A.useMemo(()=>DS(e.defaultSelectedKeys,new gs),[e.defaultSelectedKeys]),[b,$]=wi(m,g,e.onSelectionChange),w=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[D,S]=A.useState(i);i==="replace"&&D==="toggle"&&typeof b=="object"&&b.size===0&&S("replace");let C=A.useRef(i);return A.useEffect(()=>{i!==C.current&&(S(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:D,setSelectionBehavior:S,get isFocused(){return o.current},setFocused(T){o.current=T,u(T)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(T,O="first"){l.current=T,d.current=O,h(T)},selectedKeys:b,setSelectedKeys(T){(r||!XH(T,b))&&$(T)},disabledKeys:w,disabledBehavior:s}}function DS(e,t){return e?e==="all"?"all":new gs(e):t}class a3{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&&Hv(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&&Hv(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new gs([n],n,n);else{let o=this.state.selectedKeys;var i;let u=(i=o.anchorKey)!==null&&i!==void 0?i:n;r=new gs(o,u,n);var s;for(let l of this.getKeyRange(u,(s=o.currentKey)!==null&&s!==void 0?s:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Hv(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let o=this.collection.getItem(s);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new gs(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new gs([n],n,n):new gs;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new gs;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let o=this.collection.getItem(r);(o==null?void 0:o.type)==="item"&&t.push(r);var s;o!=null&&o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n((s=(i=MH(Lm(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new gs)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new a3(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function QH(e){let{filter:t,layoutDelegate:n}=e,r=JH(e),i=A.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=A.useCallback(d=>t?new kb(t(d)):new kb(d),[t]),o=A.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=_H(e,s,o),l=A.useMemo(()=>new a3(u,r,{layoutDelegate:n}),[u,r,n]);return eG(u,l),{collection:u,disabledKeys:i,selectionManager:l}}function eG(e,t){const n=A.useRef(null);A.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&n.current){const h=n.current.getItem(t.focusedKey),m=[...n.current.getKeys()].map(S=>{const C=n.current.getItem(S);return(C==null?void 0:C.type)==="item"?C:null}).filter(S=>S!==null),g=[...e.getKeys()].map(S=>{const C=e.getItem(S);return(C==null?void 0:C.type)==="item"?C:null}).filter(S=>S!==null);var r,i;const b=((r=m==null?void 0:m.length)!==null&&r!==void 0?r:0)-((i=g==null?void 0:g.length)!==null&&i!==void 0?i:0);var s,o,u;let $=Math.min(b>1?Math.max(((s=h==null?void 0:h.index)!==null&&s!==void 0?s:0)-b+1,0):(o=h==null?void 0:h.index)!==null&&o!==void 0?o:0,((u=g==null?void 0:g.length)!==null&&u!==void 0?u:0)-1),w=null,D=!1;for(;$>=0;){if(!t.isDisabled(g[$].key)){w=g[$];break}if($<g.length-1&&!D)$++;else{D=!0;var l,d;$>((l=h==null?void 0:h.index)!==null&&l!==void 0?l:0)&&($=(d=h==null?void 0:h.index)!==null&&d!==void 0?d:0),$--}}t.setFocusedKey(w?w.key:null)}n.current=e},[e,t])}function tG(e){var t;let[n,r]=wi(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=A.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:o,selectionManager:u}=QH({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var h;let m=(h=d.values().next().value)!==null&&h!==void 0?h:null;m===n&&e.onSelectionChange&&e.onSelectionChange(m),r(m)}}),l=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:o,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function u3(e){let[t,n]=wi(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=A.useCallback(()=>{n(!0)},[n]),i=A.useCallback(()=>{n(!1)},[n]),s=A.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}function nG(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:s,shouldCloseOnBlur:o=!0}=e,[u,l]=A.useState(!1),[d,h]=A.useState(!1),[m,g]=A.useState(null),b=Ee=>{e.onSelectionChange&&e.onSelectionChange(Ee),Ee===S&&(Oe(),J())};var $;let{collection:w,selectionManager:D,selectedKey:S,setSelectedKey:C,selectedItem:T,disabledKeys:O}=tG({...e,onSelectionChange:b,items:($=e.items)!==null&&$!==void 0?$:e.defaultItems}),M=e.defaultInputValue;if(M==null){var k,N;S==null?M="":M=(N=(k=w.getItem(S))===null||k===void 0?void 0:k.textValue)!==null&&N!==void 0?N:""}let[F,ae]=wi(e.inputValue,M,e.onInputChange),oe=w,W=A.useMemo(()=>e.items!=null||!n?w:rG(w,F,n),[w,F,n,e.items]),[Ce,ne]=A.useState(W),se=A.useRef("focus"),K=u3({...e,onOpenChange:Ee=>{e.onOpenChange&&e.onOpenChange(Ee,Ee?se.current:void 0),D.setFocused(Ee),Ee||D.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),j=(Ee=null,Te)=>{let He=Te==="manual"||Te==="focus"&&r==="focus";(i||W.size>0||He&&oe.size>0||e.items)&&(He&&!K.isOpen&&e.items===void 0&&l(!0),se.current=Te,g(Ee),K.open())},V=(Ee=null,Te)=>{let He=Te==="manual"||Te==="focus"&&r==="focus";!(i||W.size>0||He&&oe.size>0||e.items)&&!K.isOpen||(He&&!K.isOpen&&e.items===void 0&&l(!0),K.isOpen||(se.current=Te),U(Ee))},ge=A.useCallback(()=>{ne(u?oe:W)},[u,oe,W]),U=A.useCallback((Ee=null)=>{K.isOpen&&ge(),g(Ee),K.toggle()},[K,ge]),J=A.useCallback(()=>{K.isOpen&&(ge(),K.close())},[K,ge]),[xe,Pe]=A.useState(F),Oe=()=>{var Ee,Te;let He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";Pe(He),ae(He)};var Ie,Ze;let Ge=A.useRef((Ze=(Ie=e.selectedKey)!==null&&Ie!==void 0?Ie:e.defaultSelectedKey)!==null&&Ze!==void 0?Ze:null);var De;let Ue=A.useRef(S!=null&&(De=(t=w.getItem(S))===null||t===void 0?void 0:t.textValue)!==null&&De!==void 0?De:"");A.useEffect(()=>{var Ee;d&&(W.size>0||i)&&!K.isOpen&&F!==xe&&r!=="manual"&&j(null,"input"),!u&&!i&&K.isOpen&&W.size===0&&J(),S!=null&&S!==Ge.current&&J(),F!==xe&&(D.setFocusedKey(null),l(!1),F===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),S!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Oe():xe!==F&&Pe(F);var Te;let He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";!d&&S!=null&&e.inputValue===void 0&&S===Ge.current&&Ue.current!==He&&(Pe(He),ae(He)),Ge.current=S,Ue.current=He});let Re=_d({...e,value:A.useMemo(()=>({inputValue:F,selectedKey:S}),[F,S])}),Ve=()=>{s&&S==null?Le():nt()},Le=()=>{Ge.current=null,C(null),J()},nt=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ee,Te;(Ee=e.onSelectionChange)===null||Ee===void 0||Ee.call(e,S);var He;let et=S!=null&&(He=(Te=w.getItem(S))===null||Te===void 0?void 0:Te.textValue)!==null&&He!==void 0?He:"";Pe(et),J()}else Oe(),J()};const xt=()=>{if(s){var Ee,Te;const He=S!=null&&(Te=(Ee=w.getItem(S))===null||Ee===void 0?void 0:Ee.textValue)!==null&&Te!==void 0?Te:"";F===He?nt():Le()}else nt()};let ln=()=>{K.isOpen&&D.focusedKey!=null?S===D.focusedKey?nt():C(D.focusedKey):xt()},$t=A.useRef(F),Rt=Ee=>{Ee?($t.current=F,r==="focus"&&!e.isReadOnly&&j(null,"focus")):(o&&xt(),F!==$t.current&&Re.commitValidation()),h(Ee)},$e=A.useMemo(()=>K.isOpen?u?oe:W:Ce,[K.isOpen,oe,W,u,Ce]);return{...Re,...K,focusStrategy:m,toggle:V,open:j,close:xt,selectionManager:D,selectedKey:S,setSelectedKey:C,disabledKeys:O,isFocused:d,setFocused:Rt,selectedItem:T,collection:$e,inputValue:F,setInputValue:ae,commit:ln,revert:Ve}}function rG(e,t,n){return new kb(WR(e,e,t,n))}function WR(e,t,n,r){let i=[];for(let s of t)if(s.type==="section"&&s.hasChildNodes){let o=WR(e,Lm(s,e),n,r);[...o].some(u=>u.type==="item")&&i.push({...s,childNodes:o})}else s.type==="item"&&r(s.textValue,n)?i.push({...s}):s.type!=="item"&&i.push({...s});return i}var HR={};HR={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var GR={};GR={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var YR={};YR={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 ZR={};ZR={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 XR={};XR={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 JR={};JR={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var QR={};QR={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 eF={};eF={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 tF={};tF={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 nF={};nF={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 rF={};rF={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 iF={};iF={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var sF={};sF={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 oF={};oF={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 aF={};aF={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 uF={};uF={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var lF={};lF={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var cF={};cF={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 fF={};fF={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 dF={};dF={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 hF={};hF={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 pF={};pF={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 mF={};mF={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 gF={};gF={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 vF={};vF={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 yF={};yF={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var bF={};bF={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 $F={};$F={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 xF={};xF={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 wF={};wF={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 CF={};CF={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 SF={};SF={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var EF={};EF={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var DF={};DF={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var AF={};AF={"ar-AE":HR,"bg-BG":GR,"cs-CZ":YR,"da-DK":ZR,"de-DE":XR,"el-GR":JR,"en-US":QR,"es-ES":eF,"et-EE":tF,"fi-FI":nF,"fr-FR":rF,"he-IL":iF,"hr-HR":sF,"hu-HU":oF,"it-IT":aF,"ja-JP":uF,"ko-KR":lF,"lt-LT":cF,"lv-LV":fF,"nb-NO":dF,"nl-NL":hF,"pl-PL":pF,"pt-BR":mF,"pt-PT":gF,"ro-RO":vF,"ru-RU":yF,"sk-SK":bF,"sl-SI":$F,"sr-SP":xF,"sv-SE":wF,"tr-TR":CF,"uk-UA":SF,"zh-CN":EF,"zh-TW":DF};function iG(e){return e&&e.__esModule?e.default:e}const TF=new Ra(iG(AF));function PF(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function qp(e,t,n,r,i){let s=e!=null&&n!=null&&e.compare(n)>0,o=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=s||o||u,d=[];if(l){let h=PF(),m=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||TF,g=new _5(h,m),b=new Wi(h,No({},i)),$=b.resolvedOptions().timeZone;o&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:b.format(t.toDate($))})),s&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:b.format(n.toDate($))})),u&&d.push(g.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:s,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function sG(e,t,n,r,i){var s;let o=qp((s=e==null?void 0:e.start)!==null&&s!==void 0?s:null,t,n,r,i);var u;let l=qp((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=Up(o,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let h=Ra.getGlobalDictionaryForPackage("@react-stately/datepicker")||TF;d=Up(d,{isInvalid:!0,validationErrors:[h.getStringForLocale("rangeReversed",PF())],validationDetails:{...Fm,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const oG={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},aG={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function No(e,t){e={...t.shouldForceLeadingZeros?aG:oG,...e};let r=t.granularity||"minute",i=Object.keys(e);var s;let o=i.indexOf((s=t.maxGranularity)!==null&&s!==void 0?s:"year");o<0&&(o=0);let u=i.indexOf(r);if(u<0&&(u=2),o>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(o,u+1).reduce((h,m)=>(h[m]=e[m],h),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&o===0&&(l.era="short"),l}function Tl(e){return e&&"hour"in e?e:new Td}function _F(e,t){if(e===null)return null;if(e)return Fn(e,t)}function pf(e,t,n,r){if(e)return _F(e,n);let i=Fn(k5(r??Dd()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Hr(i):r?i:xs(i)}function l3(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,s]=A.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&s([r,n]),t||(t=e?r:i[0]);let o=e?n:i[1];return[t,o]}function uG(e){let t=u3(e),[n,r]=wi(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[s,o]=l3(i,e.granularity),u=n!=null?n.toDate(o??"UTC"):null,l=s==="hour"||s==="minute"||s==="second";var d;let h=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[m,g]=A.useState(null),[b,$]=A.useState(null);if(n&&(m=n,"hour"in n&&(b=n)),i&&!(s in i))throw new Error("Invalid granularity "+s+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",D=A.useMemo(()=>({granularity:s,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[s,e.hourCycle,e.shouldForceLeadingZeros,o,e.hideTimeZone,w]),{minValue:S,maxValue:C,isDateUnavailable:T}=e,O=A.useMemo(()=>qp(n,S,C,T,D),[n,S,C,T,D]),M=_d({...e,value:n,builtinValidation:O}),k=M.displayValidation.isInvalid,N=e.validationState||(k?"invalid":null),F=(W,Ce)=>{r("timeZone"in Ce?Ce.set(Hr(W)):xs(W,Ce)),g(null),$(null),M.commitValidation()};return{...M,value:n,setValue:r,dateValue:m,timeValue:b,setDateValue:W=>{let Ce=typeof h=="function"?h():h;l?b||Ce?F(W,b||Tl(e.defaultValue||e.placeholderValue)):g(W):(r(W),M.commitValidation()),Ce&&t.setOpen(!1)},setTimeValue:W=>{m&&W?F(m,W):$(W)},granularity:s,hasTime:l,...t,setOpen(W){!W&&!n&&m&&l&&F(m,b||Tl(e.defaultValue||e.placeholderValue)),t.setOpen(W)},validationState:N,isInvalid:k,formatValue(W,Ce){if(!u)return"";let ne=No(Ce,D);return new Wi(W,ne).format(u)},getDateFormatter(W,Ce){let ne={...D,...Ce},se=No({},ne);return new Wi(W,se)}}}const lG=new Ra({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:"年",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function cG(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?lG.getStringForLocale(e,n):"––"}const cp={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},AS={year:5,month:2,day:7,hour:2,minute:15,second:15},fG={dayperiod:"dayPeriod"};function MF(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:s=!1,isRequired:o=!1,minValue:u,maxValue:l,isDateUnavailable:d}=e,h=e.value||e.defaultValue||e.placeholderValue||null,[m,g]=l3(h,e.granularity),b=g||"UTC";if(h&&!(m in h))throw new Error("Invalid granularity "+m+" for value "+h.toString());let $=A.useMemo(()=>new Wi(t),[t]),w=A.useMemo(()=>n($.resolvedOptions().calendar),[n,$]);var D;let[S,C]=wi(e.value,(D=e.defaultValue)!==null&&D!==void 0?D:null,e.onChange),T=A.useMemo(()=>{var De;return(De=_F(S,w))!==null&&De!==void 0?De:null},[S,w]),[O,M]=A.useState(()=>pf(e.placeholderValue,m,w,g)),k=T||O,N=w.identifier==="gregory"&&k.era==="BC",F=A.useMemo(()=>{var De;return{granularity:m,maxGranularity:(De=e.maxGranularity)!==null&&De!==void 0?De:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:N,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,m,e.hourCycle,e.shouldForceLeadingZeros,g,r,N]),ae=A.useMemo(()=>No({},F),[F]),oe=A.useMemo(()=>new Wi(t,ae),[t,ae]),W=A.useMemo(()=>oe.resolvedOptions(),[oe]),Ce=A.useMemo(()=>oe.formatToParts(new Date).filter(De=>cp[De.type]).reduce((De,Ue)=>(De[Ue.type]=!0,De),{}),[oe]),[ne,se]=A.useState(()=>e.value||e.defaultValue?{...Ce}:{}),z=A.useRef(null),K=A.useRef(w.identifier);A.useEffect(()=>{w.identifier!==K.current&&(K.current=w.identifier,M(De=>Object.keys(ne).length>0?Fn(De,w):pf(e.placeholderValue,m,w,g)))},[w,m,ne,g,e.placeholderValue]),S&&Object.keys(ne).length<Object.keys(Ce).length&&(ne={...Ce},se(ne)),S==null&&Object.keys(ne).length===Object.keys(Ce).length&&(ne={},se(ne),M(pf(e.placeholderValue,m,w,g)));let j=T&&Object.keys(ne).length>=Object.keys(Ce).length?T:O,V=De=>{if(e.isDisabled||e.isReadOnly)return;let Ue=Object.keys(ne),Re=Object.keys(Ce);De==null?(C(null),M(pf(e.placeholderValue,m,w,g)),se({})):Ue.length>=Re.length||Ue.length===Re.length-1&&Ce.dayPeriod&&!ne.dayPeriod&&z.current!=="dayPeriod"?(De=Fn(De,(h==null?void 0:h.calendar)||new Gr),C(De)):M(De),z.current=null},ge=A.useMemo(()=>j.toDate(b),[j,b]),U=A.useMemo(()=>dG(ge,ne,oe,W,j,w,t,m),[ge,ne,oe,W,j,w,t,m]);Ce.era&&ne.year&&!ne.era?(ne.era=!0,se({...ne})):!Ce.era&&ne.era&&(delete ne.era,se({...ne}));let J=De=>{ne[De]=!0,De==="year"&&Ce.era&&(ne.era=!0),se({...ne})},xe=(De,Ue)=>{if(ne[De])V(hG(j,De,Ue,W));else{J(De);let Re=Object.keys(ne),Ve=Object.keys(Ce);(Re.length>=Ve.length||Re.length===Ve.length-1&&Ce.dayPeriod&&!ne.dayPeriod)&&V(j)}},Pe=A.useMemo(()=>qp(S,u,l,d,F),[S,u,l,d,F]),Oe=_d({...e,value:S,builtinValidation:Pe}),Ie=Oe.displayValidation.isInvalid,Ze=e.validationState||(Ie?"invalid":null);var Ge;return{...Oe,value:T,dateValue:ge,calendar:w,setValue:V,segments:U,dateFormatter:oe,validationState:Ze,isInvalid:Ie,granularity:m,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:s,isRequired:o,increment(De){xe(De,1)},decrement(De){xe(De,-1)},incrementPage(De){xe(De,AS[De]||1)},decrementPage(De){xe(De,-(AS[De]||1))},setSegment(De,Ue){J(De),V(pG(j,De,Ue,W))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let De=Object.keys(ne),Ue=Object.keys(Ce);De.length===Ue.length-1&&Ce.dayPeriod&&!ne.dayPeriod&&(ne={...Ce},se(ne),V(j.copy()))},clearSegment(De){delete ne[De],z.current=De,se({...ne});let Ue=pf(e.placeholderValue,m,w,g),Re=j;if(De==="dayPeriod"&&"hour"in j&&"hour"in Ue){let Ve=j.hour>=12,Le=Ue.hour>=12;Ve&&!Le?Re=j.set({hour:j.hour-12}):!Ve&&Le&&(Re=j.set({hour:j.hour+12}))}else De==="hour"&&"hour"in j&&j.hour>=12&&ne.dayPeriod?Re=j.set({hour:Ue.hour+12}):De in j&&(Re=j.set({[De]:Ue[De]}));C(null),V(Re)},formatValue(De){if(!T)return"";let Ue=No(De,F);return new Wi(t,Ue).format(ge)},getDateFormatter(De,Ue){let Re={...F,...Ue},Ve=No({},Re);return new Wi(De,Ve)}}}function dG(e,t,n,r,i,s,o,u){let l=["hour","minute","second"],d=n.formatToParts(e),h=[];for(let m of d){let g=cp[m.type];m.type==="era"&&s.getEras().length===1&&(g=!1);let b=cp[m.type]&&!t[m.type],$=cp[m.type]?cG(m.type,m.value,o):null,w={type:fG[m.type]||m.type,text:b?$:m.value,...Vh(i,m.type,r),isPlaceholder:b,placeholder:$,isEditable:g};m.type==="hour"?(h.push({type:"literal",text:"",...Vh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),h.push(w),m.type===u&&h.push({type:"literal",text:"",...Vh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):l.includes(m.type)&&m.type===u?(h.push(w),h.push({type:"literal",text:"",...Vh(i,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):h.push(w)}return h}function Vh(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:sq(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:oq(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 hG(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return e.set({hour:s?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function pG(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,s=i>=12;return n>=12===s?e:e.set({hour:s?i-12:i+12})}case"hour":if(r.hour12){let s=e.hour>=12;!s&&n===12&&(n=0),s&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function mG(e){var t,n;let r=u3(e),[i,s]=wi(e.value,e.defaultValue||null,e.onChange),[o,u]=A.useState(()=>i||{start:null,end:null});i==null&&o.start&&o.end&&(o={start:null,end:null},u(o));let l=i||o,d=K=>{u(K||{start:null,end:null}),su(K)?s(K):s(null)},h=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[m,g]=l3(h,e.granularity),b=m==="hour"||m==="minute"||m==="second";var $;let w=($=e.shouldCloseOnSelect)!==null&&$!==void 0?$:!0,[D,S]=A.useState(null),[C,T]=A.useState(null);l&&su(l)&&(D=l,"hour"in l.start&&(C=l));let O=(K,j)=>{d({start:"timeZone"in j.start?j.start.set(Hr(K.start)):xs(K.start,j.start),end:"timeZone"in j.end?j.end.set(Hr(K.end)):xs(K.end,j.end)}),S(null),T(null),ne.commitValidation()},M=K=>{let j=typeof w=="function"?w():w;b?su(K)&&(C!=null&&C.start)&&(C!=null&&C.end)?O(K,{start:(C==null?void 0:C.start)||Tl(e.placeholderValue),end:(C==null?void 0:C.end)||Tl(e.placeholderValue)}):S(K):su(K)?(d(K),ne.commitValidation()):S(K),j&&r.setOpen(!1)},k=K=>{su(D)&&su(K)?O(D,K):T(K)},N=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",F=A.useMemo(()=>({granularity:m,timeZone:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:N}),[m,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,N]),{minValue:ae,maxValue:oe,isDateUnavailable:W}=e,Ce=A.useMemo(()=>sG(l,ae,oe,W,F),[l,ae,oe,W,F]),ne=_d({...e,value:i,name:A.useMemo(()=>[e.startName,e.endName].filter(K=>K!=null),[e.startName,e.endName]),builtinValidation:Ce}),se=ne.displayValidation.isInvalid,z=e.validationState||(se?"invalid":null);return{...ne,value:l,setValue:d,dateRange:D,timeRange:C,granularity:m,hasTime:b,setDate(K,j){var V,ge;M(K==="start"?{start:j,end:(V=D==null?void 0:D.end)!==null&&V!==void 0?V:null}:{start:(ge=D==null?void 0:D.start)!==null&&ge!==void 0?ge:null,end:j})},setTime(K,j){var V,ge;k(K==="start"?{start:j,end:(V=C==null?void 0:C.end)!==null&&V!==void 0?V:null}:{start:(ge=C==null?void 0:C.start)!==null&&ge!==void 0?ge:null,end:j})},setDateTime(K,j){var V,ge;d(K==="start"?{start:j,end:(V=l==null?void 0:l.end)!==null&&V!==void 0?V:null}:{start:(ge=l==null?void 0:l.start)!==null&&ge!==void 0?ge:null,end:j})},setDateRange:M,setTimeRange:k,...r,setOpen(K){!K&&!(l!=null&&l.start&&(l!=null&&l.end))&&su(D)&&b&&O(D,{start:(C==null?void 0:C.start)||Tl(e.placeholderValue),end:(C==null?void 0:C.end)||Tl(e.placeholderValue)}),r.setOpen(K)},validationState:z,isInvalid:se,formatValue(K,j){if(!l||!l.start||!l.end)return null;let V="timeZone"in l.start?l.start.timeZone:void 0,ge=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),U="timeZone"in l.end?l.end.timeZone:void 0,J=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),xe=No(j,{granularity:ge,timeZone:V,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(V||"UTC"),Oe=l.end.toDate(U||"UTC"),Ie=new Wi(K,xe),Ze;if(V===U&&ge===J&&l.start.compare(l.end)!==0){try{let Ge=Ie.formatRangeToParts(Pe,Oe),De=-1;for(let Ve=0;Ve<Ge.length;Ve++){let Le=Ge[Ve];if(Le.source==="shared"&&Le.type==="literal")De=Ve;else if(Le.source==="endRange")break}let Ue="",Re="";for(let Ve=0;Ve<Ge.length;Ve++)Ve<De?Ue+=Ge[Ve].value:Ve>De&&(Re+=Ge[Ve].value);return{start:Ue,end:Re}}catch{}Ze=Ie}else{let Ge=No(j,{granularity:J,timeZone:U,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ze=new Wi(K,Ge)}return{start:Ie.format(Pe),end:Ze.format(Oe)}},getDateFormatter(K,j){let V={...F,...j},ge=No({},V);return new Wi(K,ge)}}}function su(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function gG(e){let{placeholderValue:t=new Td,minValue:n,maxValue:r,granularity:i,validate:s}=e;var o;let[u,l]=wi(e.value,(o=e.defaultValue)!==null&&o!==void 0?o:null,e.onChange),d=u||t,h=d&&"day"in d?d:void 0,m=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=A.useMemo(()=>{let T=d&&"timeZone"in d?d.timeZone:void 0;return(T||m)&&t?N5(mf(t),T||m):mf(t)},[t,d,m]),b=A.useMemo(()=>mf(n,h),[n,h]),$=A.useMemo(()=>mf(r,h),[r,h]),w=A.useMemo(()=>u&&"day"in u?LC(u):u,[u]),D=A.useMemo(()=>u==null?null:mf(u),[u]);return{...MF({...e,value:D,defaultValue:void 0,minValue:b,maxValue:$,onChange:T=>{l(h||m?T:T&&LC(T))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Gr,validate:A.useCallback(()=>s==null?void 0:s(u),[s,u])}),timeValue:w}}function mf(e,t=_m(Dd())){return e?"day"in e?e:xs(t,e):null}var fp={exports:{}},vG=fp.exports,TS;function yG(){return TS||(TS=1,function(e,t){(function(n,r){e.exports=r()})(vG,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",u="minute",l="hour",d="day",h="week",m="month",g="quarter",b="year",$="date",w="Invalid Date",D=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(se){var z=["th","st","nd","rd"],K=se%100;return"["+se+(z[(K-20)%10]||z[K]||z[0])+"]"}},T=function(se,z,K){var j=String(se);return!j||j.length>=z?se:""+Array(z+1-j.length).join(K)+se},O={s:T,z:function(se){var z=-se.utcOffset(),K=Math.abs(z),j=Math.floor(K/60),V=K%60;return(z<=0?"+":"-")+T(j,2,"0")+":"+T(V,2,"0")},m:function se(z,K){if(z.date()<K.date())return-se(K,z);var j=12*(K.year()-z.year())+(K.month()-z.month()),V=z.clone().add(j,m),ge=K-V<0,U=z.clone().add(j+(ge?-1:1),m);return+(-(j+(K-V)/(ge?V-U:U-V))||0)},a:function(se){return se<0?Math.ceil(se)||0:Math.floor(se)},p:function(se){return{M:m,y:b,w:h,d,D:$,h:l,m:u,s:o,ms:s,Q:g}[se]||String(se||"").toLowerCase().replace(/s$/,"")},u:function(se){return se===void 0}},M="en",k={};k[M]=C;var N="$isDayjsObject",F=function(se){return se instanceof Ce||!(!se||!se[N])},ae=function se(z,K,j){var V;if(!z)return M;if(typeof z=="string"){var ge=z.toLowerCase();k[ge]&&(V=ge),K&&(k[ge]=K,V=ge);var U=z.split("-");if(!V&&U.length>1)return se(U[0])}else{var J=z.name;k[J]=z,V=J}return!j&&V&&(M=V),V||!j&&M},oe=function(se,z){if(F(se))return se.clone();var K=typeof z=="object"?z:{};return K.date=se,K.args=arguments,new Ce(K)},W=O;W.l=ae,W.i=F,W.w=function(se,z){return oe(se,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var Ce=function(){function se(K){this.$L=ae(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[N]=!0}var z=se.prototype;return z.parse=function(K){this.$d=function(j){var V=j.date,ge=j.utc;if(V===null)return new Date(NaN);if(W.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var U=V.match(D);if(U){var J=U[2]-1||0,xe=(U[7]||"0").substring(0,3);return ge?new Date(Date.UTC(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)):new Date(U[1],J,U[3]||1,U[4]||0,U[5]||0,U[6]||0,xe)}}return new Date(V)}(K),this.init()},z.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},z.$utils=function(){return W},z.isValid=function(){return this.$d.toString()!==w},z.isSame=function(K,j){var V=oe(K);return this.startOf(j)<=V&&V<=this.endOf(j)},z.isAfter=function(K,j){return oe(K)<this.startOf(j)},z.isBefore=function(K,j){return this.endOf(j)<oe(K)},z.$g=function(K,j,V){return W.u(K)?this[j]:this.set(V,K)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(K,j){var V=this,ge=!!W.u(j)||j,U=W.p(K),J=function(Ue,Re){var Ve=W.w(V.$u?Date.UTC(V.$y,Re,Ue):new Date(V.$y,Re,Ue),V);return ge?Ve:Ve.endOf(d)},xe=function(Ue,Re){return W.w(V.toDate()[Ue].apply(V.toDate("s"),(ge?[0,0,0,0]:[23,59,59,999]).slice(Re)),V)},Pe=this.$W,Oe=this.$M,Ie=this.$D,Ze="set"+(this.$u?"UTC":"");switch(U){case b:return ge?J(1,0):J(31,11);case m:return ge?J(1,Oe):J(0,Oe+1);case h:var Ge=this.$locale().weekStart||0,De=(Pe<Ge?Pe+7:Pe)-Ge;return J(ge?Ie-De:Ie+(6-De),Oe);case d:case $:return xe(Ze+"Hours",0);case l:return xe(Ze+"Minutes",1);case u:return xe(Ze+"Seconds",2);case o:return xe(Ze+"Milliseconds",3);default:return this.clone()}},z.endOf=function(K){return this.startOf(K,!1)},z.$set=function(K,j){var V,ge=W.p(K),U="set"+(this.$u?"UTC":""),J=(V={},V[d]=U+"Date",V[$]=U+"Date",V[m]=U+"Month",V[b]=U+"FullYear",V[l]=U+"Hours",V[u]=U+"Minutes",V[o]=U+"Seconds",V[s]=U+"Milliseconds",V)[ge],xe=ge===d?this.$D+(j-this.$W):j;if(ge===m||ge===b){var Pe=this.clone().set($,1);Pe.$d[J](xe),Pe.init(),this.$d=Pe.set($,Math.min(this.$D,Pe.daysInMonth())).$d}else J&&this.$d[J](xe);return this.init(),this},z.set=function(K,j){return this.clone().$set(K,j)},z.get=function(K){return this[W.p(K)]()},z.add=function(K,j){var V,ge=this;K=Number(K);var U=W.p(j),J=function(Oe){var Ie=oe(ge);return W.w(Ie.date(Ie.date()+Math.round(Oe*K)),ge)};if(U===m)return this.set(m,this.$M+K);if(U===b)return this.set(b,this.$y+K);if(U===d)return J(1);if(U===h)return J(7);var xe=(V={},V[u]=r,V[l]=i,V[o]=n,V)[U]||1,Pe=this.$d.getTime()+K*xe;return W.w(Pe,this)},z.subtract=function(K,j){return this.add(-1*K,j)},z.format=function(K){var j=this,V=this.$locale();if(!this.isValid())return V.invalidDate||w;var ge=K||"YYYY-MM-DDTHH:mm:ssZ",U=W.z(this),J=this.$H,xe=this.$m,Pe=this.$M,Oe=V.weekdays,Ie=V.months,Ze=V.meridiem,Ge=function(Re,Ve,Le,nt){return Re&&(Re[Ve]||Re(j,ge))||Le[Ve].slice(0,nt)},De=function(Re){return W.s(J%12||12,Re,"0")},Ue=Ze||function(Re,Ve,Le){var nt=Re<12?"AM":"PM";return Le?nt.toLowerCase():nt};return ge.replace(S,function(Re,Ve){return Ve||function(Le){switch(Le){case"YY":return String(j.$y).slice(-2);case"YYYY":return W.s(j.$y,4,"0");case"M":return Pe+1;case"MM":return W.s(Pe+1,2,"0");case"MMM":return Ge(V.monthsShort,Pe,Ie,3);case"MMMM":return Ge(Ie,Pe);case"D":return j.$D;case"DD":return W.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Ge(V.weekdaysMin,j.$W,Oe,2);case"ddd":return Ge(V.weekdaysShort,j.$W,Oe,3);case"dddd":return Oe[j.$W];case"H":return String(J);case"HH":return W.s(J,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return Ue(J,xe,!0);case"A":return Ue(J,xe,!1);case"m":return String(xe);case"mm":return W.s(xe,2,"0");case"s":return String(j.$s);case"ss":return W.s(j.$s,2,"0");case"SSS":return W.s(j.$ms,3,"0");case"Z":return U}return null}(Re)||U.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(K,j,V){var ge,U=this,J=W.p(j),xe=oe(K),Pe=(xe.utcOffset()-this.utcOffset())*r,Oe=this-xe,Ie=function(){return W.m(U,xe)};switch(J){case b:ge=Ie()/12;break;case m:ge=Ie();break;case g:ge=Ie()/3;break;case h:ge=(Oe-Pe)/6048e5;break;case d:ge=(Oe-Pe)/864e5;break;case l:ge=Oe/i;break;case u:ge=Oe/r;break;case o:ge=Oe/n;break;default:ge=Oe}return V?ge:W.a(ge)},z.daysInMonth=function(){return this.endOf(m).$D},z.$locale=function(){return k[this.$L]},z.locale=function(K,j){if(!K)return this.$L;var V=this.clone(),ge=ae(K,j,!0);return ge&&(V.$L=ge),V},z.clone=function(){return W.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},se}(),ne=Ce.prototype;return oe.prototype=ne,[["$ms",s],["$s",o],["$m",u],["$H",l],["$W",d],["$M",m],["$y",b],["$D",$]].forEach(function(se){ne[se[1]]=function(z){return this.$g(z,se[0],se[1])}}),oe.extend=function(se,z){return se.$i||(se(z,Ce,oe),se.$i=!0),oe},oe.locale=ae,oe.isDayjs=F,oe.unix=function(se){return oe(1e3*se)},oe.en=k[M],oe.Ls=k,oe.p={},oe})}(fp)),fp.exports}var RF=yG();const bG=ws(RF);var Zv,PS;function FF(){if(PS)return Zv;PS=1;var e=typeof qi=="object"&&qi&&qi.Object===Object&&qi;return Zv=e,Zv}var Xv,_S;function Zo(){if(_S)return Xv;_S=1;var e=FF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Xv=n,Xv}var Jv,MS;function Bm(){if(MS)return Jv;MS=1;var e=Zo(),t=e.Symbol;return Jv=t,Jv}var Qv,RS;function $G(){if(RS)return Qv;RS=1;var e=Bm(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(o){var u=n.call(o,i),l=o[i];try{o[i]=void 0;var d=!0}catch{}var h=r.call(o);return d&&(u?o[i]=l:delete o[i]),h}return Qv=s,Qv}var ey,FS;function xG(){if(FS)return ey;FS=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ey=n,ey}var ty,kS;function $c(){if(kS)return ty;kS=1;var e=Bm(),t=$G(),n=xG(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:r:s&&s in Object(u)?t(u):n(u)}return ty=o,ty}var ny,OS;function xc(){if(OS)return ny;OS=1;function e(t){return t!=null&&typeof t=="object"}return ny=e,ny}var ry,IS;function wG(){if(IS)return ry;IS=1;var e=$c(),t=xc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ry=r,ry}var CG=wG();const SG=ws(CG);var Lu=[["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"]],EG="react-international-phone-",kF=(...e)=>e.filter(t=>!!t).join(" ").trim(),DG=(...e)=>kF(...e).split(" ").map(t=>`${EG}${t}`).join(" "),_r=({addPrefix:e,rawClassNames:t})=>kF(DG(...e),...t),AG=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let s=e.slice(0,r),o=e.slice(r),u=s,l=0;for(let d of t.split("")){if(l>=o.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=o[l],l+=1):u+=d}return u},El=e=>e?/^\d+$/.test(e):!1,Vm=e=>e.replace(/\D/g,""),TG=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=i.top-r.top,o=r.bottom-i.bottom;s>=0&&o>=0||(Math.abs(s)<Math.abs(o)?e.scrollTop+=s:e.scrollTop-=o),e.style.display=n},PG=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),_G=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,s=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):s(i);if(i=Vm(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return s(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return s(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return s(`${t.prefix}${i}`)}let o=()=>{let d=t.dialCode.length,h=i.slice(0,d),m=i.slice(d);return{phoneLeftSide:h,phoneRightSide:m}},{phoneLeftSide:u,phoneRightSide:l}=o();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=AG({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),s(`${u}${l}`)},MG=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:s})=>{if(r<i)return i;if(!e)return n.length;let o=null;for(let h=r-1;h>=0;h-=1)if(El(t[h])){o=h;break}if(o===null){for(let h=0;h<t.length;h+=1)if(El(n[h]))return h;return t.length}let u=0;for(let h=0;h<o;h+=1)El(t[h])&&(u+=1);let l=0,d=0;for(let h=0;h<n.length&&(l+=1,El(n[h])&&(d+=1),!(d>=u+1));h+=1);if(s!=="backward")for(;!El(n[l])&&l<n.length;)l+=1;return l},dp=({phone:e,prefix:t})=>e?`${t}${Vm(e)}`:"";function Ob({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:s,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:h,disableFormatting:m}){let g=e;l&&(g=g.startsWith(`${s}`)?g:`${s}${t.dialCode}${g}`);let b=h?NG({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,$=(b==null?void 0:b.country)??t,w=_G(g,{prefix:s,mask:BG({phone:g,country:$,defaultMask:d,disableFormatting:m}),maskChar:OF,dialCode:$.dialCode,trimNonDigitsEnd:r,charAfterDialCode:o,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),D=h&&!(b!=null&&b.fullDialCodeMatch)?t:$;return{phone:dp({phone:l?`${D.dialCode}${w}`:w,prefix:s}),inputValue:w,country:D}}var RG=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},FG=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:d,disableFormatting:h,countries:m})=>{let g=e.nativeEvent,b=g.inputType,$=RG(b),w=!!(b!=null&&b.startsWith("insertFrom")),D=b==="insertText",S=(g==null?void 0:g.data)||void 0,C=e.target.value,T=e.target.selectionStart??0;if(b!=null&&b.includes("history"))return{inputValue:r,phone:dp({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(D&&!El(S)&&C!==i)return{inputValue:r,phone:dp({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:T-((S==null?void 0:S.length)??0),country:t};if(o&&!C.startsWith(`${i}${t.dialCode}`)&&!w){let F=C?r:`${i}${t.dialCode}${s}`;return{inputValue:F,phone:dp({phone:F,prefix:i}),cursorPosition:i.length+t.dialCode.length+s.length,country:t}}let{phone:O,inputValue:M,country:k}=Ob({value:C,country:t,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:m,prefix:i,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:u,disableFormatting:h,defaultMask:d}),N=MG({cursorPositionAfterInput:T,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:M,leftOffset:o?i.length+t.dialCode.length+s.length:0,deletion:$});return{phone:O,inputValue:M,cursorPosition:N,country:k}},kG=(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},OG=()=>{let e=A.useRef(),t=A.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},IG={size:20,overrideLastItemDebounceMS:-1};function LG(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...IG,...t},[s,o]=A.useState(e),[u,l]=A.useState([s]),[d,h]=A.useState(0),m=OG();return[s,(g,b)=>{if(typeof g=="object"&&typeof s=="object"&&kG(g,s)||g===s)return;let $=r>0,w=m.check(),D=$&&w!==void 0?w>r:!0;if((b==null?void 0:b.overrideLastItem)!==void 0?b.overrideLastItem:!D)l(S=>[...S.slice(0,d),g]);else{let S=u.length>=n;l(C=>[...C.slice(S?1:0,d+1),g]),S||h(C=>C+1)}o(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=u[d-1];return o(g),h(b=>b-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=u.length)return{success:!1};let g=u[d+1];return o(g),h(b=>b+1),i==null||i(g),{success:!0,value:g}}]}var OF=".",Oi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Lu},IF=({defaultCountry:e=Oi.defaultCountry,value:t=Oi.value,countries:n=Oi.countries,prefix:r=Oi.prefix,defaultMask:i=Oi.defaultMask,charAfterDialCode:s=Oi.charAfterDialCode,historySaveDebounceMS:o=Oi.historySaveDebounceMS,disableCountryGuess:u=Oi.disableCountryGuess,disableDialCodePrefill:l=Oi.disableDialCodePrefill,forceDialCode:d=Oi.forceDialCode,disableDialCodeAndPrefix:h=Oi.disableDialCodeAndPrefix,disableFormatting:m=Oi.disableFormatting,onChange:g,inputRef:b})=>{let $={countries:n,prefix:r,charAfterDialCode:s,forceDialCode:h?!1:d,disableDialCodeAndPrefix:h,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:m},w=A.useRef(null),D=b||w,S=se=>{Promise.resolve().then(()=>{var z;typeof window>"u"||D.current!==(document==null?void 0:document.activeElement)||((z=D.current)==null||z.setSelectionRange(se,se))})},[{phone:C,inputValue:T,country:O},M,k,N]=LG(()=>{let se=Pl({value:e,field:"iso2",countries:n});se||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let z=se||Pl({value:"us",field:"iso2",countries:n}),{phone:K,inputValue:j,country:V}=Ob({value:t,country:z,insertDialCodeOnEmpty:!l,...$});return S(j.length),{phone:K,inputValue:j,country:V.iso2}},{overrideLastItemDebounceMS:o,onChange:({inputValue:se,phone:z,country:K})=>{if(!g)return;let j=F(K);g({phone:z,inputValue:se,country:j})}}),F=A.useCallback(se=>Pl({value:se,field:"iso2",countries:n}),[n]),ae=A.useMemo(()=>F(O),[O,F]);A.useEffect(()=>{let se=D.current;if(!se)return;let z=K=>{if(!K.key)return;let j=K.ctrlKey,V=K.metaKey,ge=K.shiftKey;if(K.key.toLowerCase()==="z"){if(PG()){if(!V)return}else if(!j)return;ge?N():k()}};return se.addEventListener("keydown",z),()=>{se.removeEventListener("keydown",z)}},[D,k,N]);let oe=se=>{se.preventDefault();let{phone:z,inputValue:K,country:j,cursorPosition:V}=FG(se,{country:ae,phoneBeforeInput:T,insertDialCodeOnEmpty:!1,...$});return M({inputValue:K,phone:z,country:j.iso2}),S(V),t},W=(se,z={focusOnInput:!1})=>{let K=Pl({value:se,field:"iso2",countries:n});if(!K){console.error(`[react-international-phone]: can not find a country with "${se}" iso2 code`);return}let j=h?"":`${r}${K.dialCode}${s}`;M({inputValue:j,phone:`${r}${K.dialCode}`,country:K.iso2}),z.focusOnInput&&Promise.resolve().then(()=>{var V;(V=D.current)==null||V.focus()})},[Ce,ne]=A.useState(!1);return A.useEffect(()=>{if(!Ce){ne(!0),t!==C&&(g==null||g({inputValue:T,phone:C,country:ae}));return}if(t===C)return;let{phone:se,inputValue:z,country:K}=Ob({value:t,country:ae,insertDialCodeOnEmpty:!l,...$});M({phone:se,inputValue:z,country:K.iso2})},[t]),{phone:C,inputValue:T,country:ae,setCountry:W,handlePhoneValueChange:oe,inputRef:D}},BG=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,s=u=>r?u.replace(new RegExp(`[^${OF}]`,"g"),""):u;if(!i)return s(n);if(typeof i=="string")return s(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),s(n);let o=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return l.test(Vm(d))});return s(o?i[o]:i.default)},vs=e=>{let[t,n,r,i,s,o]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:s,areaCodes:o}},VG=e=>`Field "${e}" is not supported`,Pl=({field:e,value:t,countries:n=Lu})=>{if(["priority"].includes(e))throw new Error(VG(e));let r=n.find(i=>{let s=vs(i);return t===s[e]});if(r)return vs(r)},NG=({phone:e,countries:t=Lu,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Vm(e);if(!i)return r;let s=r,o=({country:l,fullDialCodeMatch:d})=>{var g,b;let h=l.dialCode===((g=s.country)==null?void 0:g.dialCode),m=(l.priority??0)<(((b=s.country)==null?void 0:b.priority)??0);(!h||m)&&(s={country:l,fullDialCodeMatch:d})};for(let l of t){let d=vs(l),{dialCode:h,areaCodes:m}=d;if(i.startsWith(h)){let g=s.country?Number(h)>=Number(s.country.dialCode):!0;if(m){let b=i.substring(h.length);for(let $ of m)if(b.startsWith($))return{country:d,fullDialCodeMatch:!0}}(g||h===i||!s.fullDialCodeMatch)&&o({country:d,fullDialCodeMatch:!0})}s.fullDialCodeMatch||i.length<h.length&&h.startsWith(i)&&(!s.country||Number(h)<=Number(s.country.dialCode))&&o({country:d,fullDialCodeMatch:!1})}if(n){let l=Pl({value:n,field:"iso2",countries:t});if(!l)return s;let d=l?(h=>{if(!(h!=null&&h.areaCodes))return!1;let m=i.substring(h.dialCode.length);return h.areaCodes.some(g=>g.startsWith(m))})(l):!1;s&&((u=s.country)==null?void 0:u.dialCode)===l.dialCode&&s.country!==l&&s.fullDialCodeMatch&&(!l.areaCodes||d)&&(s={country:l,fullDialCodeMatch:!0})}return s},jG=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},KG="abcdefghijklmnopqrstuvwxyz",UG="1f1e6",LS=KG.split("").reduce((e,t,n)=>({...e,[t]:jG(UG,n)}),{}),zG=e=>[LS[e[0]],LS[e[1]]].join("-"),c3=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:s,style:o,...u})=>{if(!e)return A.createElement("img",{className:_r({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:t,height:t,...u});let l=()=>{if(n)return n;let d=zG(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return A.createElement("img",{className:_r({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...o},alt:"",...u})},qG=1e3,WG=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=Lu,preferredCountries:i=[],flags:s,onSelect:o,onClose:u,...l})=>{let d=A.useRef(null),h=A.useRef(),m=A.useMemo(()=>{if(!i||!i.length)return r;let k=[],N=[...r];for(let F of i){let ae=N.findIndex(oe=>vs(oe).iso2===F);if(ae!==-1){let oe=N.splice(ae,1)[0];k.push(oe)}}return k.concat(N)},[r,i]),g=A.useRef({updatedAt:void 0,value:""}),b=k=>{let N=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>qG;g.current={value:N?k:`${g.current.value}${k}`,updatedAt:new Date};let F=m.findIndex(ae=>vs(ae).name.toLowerCase().startsWith(g.current.value));F!==-1&&D(F)},$=A.useCallback(k=>m.findIndex(N=>vs(N).iso2===k),[m]),[w,D]=A.useState($(n)),S=()=>{h.current!==n&&D($(n))},C=A.useCallback(k=>{D($(k.iso2)),o==null||o(k)},[o,$]),T=k=>{let N=m.length-1,F=ae=>k==="prev"?ae-1:k==="next"?ae+1:k==="last"?N:0;D(ae=>{let oe=F(ae);return oe<0?0:oe>N?N:oe})},O=k=>{if(k.stopPropagation(),k.key==="Enter"){k.preventDefault();let N=vs(m[w]);C(N);return}if(k.key==="Escape"){u==null||u();return}if(k.key==="ArrowUp"){k.preventDefault(),T("prev");return}if(k.key==="ArrowDown"){k.preventDefault(),T("next");return}if(k.key==="PageUp"){k.preventDefault(),T("first");return}if(k.key==="PageDown"){k.preventDefault(),T("last");return}k.key===" "&&k.preventDefault(),k.key.length===1&&!k.altKey&&!k.ctrlKey&&!k.metaKey&&b(k.key.toLocaleLowerCase())},M=A.useCallback(()=>{if(!d.current||w===void 0)return;let k=vs(m[w]).iso2;if(k===h.current)return;let N=d.current.querySelector(`[data-country="${k}"]`);N&&(TG(d.current,N),h.current=k)},[w,m]);return A.useEffect(()=>{M()},[w,M]),A.useEffect(()=>{d.current&&(e?d.current.focus():S())},[e]),A.useEffect(()=>{S()},[n]),A.createElement("ul",{ref:d,role:"listbox",className:_r({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:O,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${vs(m[w]).iso2}-option`},m.map((k,N)=>{let F=vs(k),ae=F.iso2===n,oe=N===w,W=i.includes(F.iso2),Ce=N===i.length-1,ne=s==null?void 0:s.find(se=>se.iso2===F.iso2);return A.createElement(A.Fragment,{key:F.iso2},A.createElement("li",{"data-country":F.iso2,role:"option","aria-selected":ae,"aria-label":`${F.name} ${t}${F.dialCode}`,id:`react-international-phone__${F.iso2}-option`,className:_r({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",ae&&"country-selector-dropdown__list-item--selected",oe&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>C(F),style:l.listItemStyle,title:F.name},A.createElement(c3,{iso2:F.iso2,src:ne==null?void 0:ne.src,className:_r({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),A.createElement("span",{className:_r({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},F.name),A.createElement("span",{className:_r({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,F.dialCode)),Ce?A.createElement("hr",{className:_r({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},HG=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=Lu,preferredCountries:s=[],flags:o,renderButtonWrapper:u,...l})=>{let[d,h]=A.useState(!1),m=A.useMemo(()=>{if(e)return Pl({value:e,field:"iso2",countries:i})},[i,e]),g=A.useRef(null),b=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),h(!0))},$=()=>{var S;let w={title:m==null?void 0:m.name,onClick:()=>h(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:b,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},D=A.createElement("div",{className:_r({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},A.createElement(c3,{iso2:e,src:(S=o==null?void 0:o.find(C=>C.iso2===e))==null?void 0:S.src,className:_r({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&A.createElement("div",{className:_r({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:D,rootProps:w}):A.createElement("button",{...w,type:"button",className:_r({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},D)};return A.createElement("div",{className:_r({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:g},$(),A.createElement(WG,{show:d,countries:i,preferredCountries:s,flags:o,onSelect:w=>{h(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{h(!1)},...l.dropdownStyleProps}))},GG=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>A.createElement("div",{className:_r({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);A.forwardRef(({value:e,onChange:t,countries:n=Lu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:o,flags:u,style:l,className:d,inputStyle:h,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:$,placeholder:w,disabled:D,name:S,onFocus:C,onBlur:T,required:O,autoFocus:M,...k},N)=>{let{phone:F,inputValue:ae,inputRef:oe,country:W,setCountry:Ce,handlePhoneValueChange:ne}=IF({value:e,countries:n,...k,onChange:z=>{t==null||t(z.phone,{country:z.country,inputValue:z.inputValue})}}),se=k.disableDialCodeAndPrefix&&s&&(W==null?void 0:W.dialCode);return A.useImperativeHandle(N,()=>oe.current?Object.assign(oe.current,{setCountry:Ce,state:{phone:F,inputValue:ae,country:W}}):null,[oe,Ce,F,ae,W]),A.createElement("div",{ref:N,className:_r({addPrefix:["input-container"],rawClassNames:[d]}),style:l},A.createElement(HG,{onSelect:z=>Ce(z.iso2,{focusOnInput:!o}),flags:u,selectedCountry:W.iso2,countries:n,preferredCountries:r,disabled:D,hideDropdown:i,...g}),se&&A.createElement(GG,{dialCode:W.dialCode,prefix:k.prefix??"+",disabled:D,...b}),A.createElement("input",{onChange:ne,value:ae,type:"tel",ref:oe,className:_r({addPrefix:["input",D&&"input--disabled"],rawClassNames:[m]}),placeholder:w,disabled:D,style:h,name:S,onFocus:C,onBlur:T,autoFocus:M,required:O,...$}))});var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ib={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",u="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",$="[object Object]",w="[object Promise]",D="[object RegExp]",S="[object Set]",C="[object String]",T="[object Symbol]",O="[object WeakMap]",M="[object ArrayBuffer]",k="[object DataView]",N="[object Float32Array]",F="[object Float64Array]",ae="[object Int8Array]",oe="[object Int16Array]",W="[object Int32Array]",Ce="[object Uint8Array]",ne="[object Uint8ClampedArray]",se="[object Uint16Array]",z="[object Uint32Array]",K=/[\\^$.*+?()[\]{}|]/g,j=/\w*$/,V=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,U={};U[s]=U[o]=U[M]=U[k]=U[u]=U[l]=U[N]=U[F]=U[ae]=U[oe]=U[W]=U[g]=U[b]=U[$]=U[D]=U[S]=U[C]=U[T]=U[Ce]=U[ne]=U[se]=U[z]=!0,U[d]=U[h]=U[O]=!1;var J=typeof xa=="object"&&xa&&xa.Object===Object&&xa,xe=typeof self=="object"&&self&&self.Object===Object&&self,Pe=J||xe||Function("return this")(),Oe=t&&!t.nodeType&&t,Ie=Oe&&!0&&e&&!e.nodeType&&e,Ze=Ie&&Ie.exports===Oe;function Ge(ue,_e){return ue.set(_e[0],_e[1]),ue}function De(ue,_e){return ue.add(_e),ue}function Ue(ue,_e){for(var qe=-1,pt=ue?ue.length:0;++qe<pt&&_e(ue[qe],qe,ue)!==!1;);return ue}function Re(ue,_e){for(var qe=-1,pt=_e.length,$n=ue.length;++qe<pt;)ue[$n+qe]=_e[qe];return ue}function Ve(ue,_e,qe,pt){for(var $n=-1,nr=ue?ue.length:0;++$n<nr;)qe=_e(qe,ue[$n],$n,ue);return qe}function Le(ue,_e){for(var qe=-1,pt=Array(ue);++qe<ue;)pt[qe]=_e(qe);return pt}function nt(ue,_e){return ue==null?void 0:ue[_e]}function xt(ue){var _e=!1;if(ue!=null&&typeof ue.toString!="function")try{_e=!!(ue+"")}catch{}return _e}function ln(ue){var _e=-1,qe=Array(ue.size);return ue.forEach(function(pt,$n){qe[++_e]=[$n,pt]}),qe}function $t(ue,_e){return function(qe){return ue(_e(qe))}}function Rt(ue){var _e=-1,qe=Array(ue.size);return ue.forEach(function(pt){qe[++_e]=pt}),qe}var $e=Array.prototype,Ee=Function.prototype,Te=Object.prototype,He=Pe["__core-js_shared__"],et=function(){var ue=/[^.]+$/.exec(He&&He.keys&&He.keys.IE_PROTO||"");return ue?"Symbol(src)_1."+ue:""}(),Je=Ee.toString,lt=Te.hasOwnProperty,bt=Te.toString,gn=RegExp("^"+Je.call(lt).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jt=Ze?Pe.Buffer:void 0,Ut=Pe.Symbol,Yr=Pe.Uint8Array,Fr=$t(Object.getPrototypeOf,Object),rn=Object.create,Pt=Te.propertyIsEnumerable,Lt=$e.splice,Yt=Object.getOwnPropertySymbols,sr=Jt?Jt.isBuffer:void 0,Qi=$t(Object.keys,Object),es=hi(Pe,"DataView"),Ci=hi(Pe,"Map"),Ds=hi(Pe,"Promise"),ka=hi(Pe,"Set"),yt=hi(Pe,"WeakMap"),ci=hi(Object,"create"),ao=Ir(es),Fc=Ir(Ci),Uu=Ir(Ds),kc=Ir(ka),zu=Ir(yt),Oa=Ut?Ut.prototype:void 0,qu=Oa?Oa.valueOf:void 0;function ts(ue){var _e=-1,qe=ue?ue.length:0;for(this.clear();++_e<qe;){var pt=ue[_e];this.set(pt[0],pt[1])}}function ns(){this.__data__=ci?ci(null):{}}function vt(ue){return this.has(ue)&&delete this.__data__[ue]}function En(ue){var _e=this.__data__;if(ci){var qe=_e[ue];return qe===r?void 0:qe}return lt.call(_e,ue)?_e[ue]:void 0}function uo(ue){var _e=this.__data__;return ci?_e[ue]!==void 0:lt.call(_e,ue)}function Wu(ue,_e){var qe=this.__data__;return qe[ue]=ci&&_e===void 0?r:_e,this}ts.prototype.clear=ns,ts.prototype.delete=vt,ts.prototype.get=En,ts.prototype.has=uo,ts.prototype.set=Wu;function wr(ue){var _e=-1,qe=ue?ue.length:0;for(this.clear();++_e<qe;){var pt=ue[_e];this.set(pt[0],pt[1])}}function Hu(){this.__data__=[]}function Gu(ue){var _e=this.__data__,qe=lo(_e,ue);if(qe<0)return!1;var pt=_e.length-1;return qe==pt?_e.pop():Lt.call(_e,qe,1),!0}function Oc(ue){var _e=this.__data__,qe=lo(_e,ue);return qe<0?void 0:_e[qe][1]}function Zr(ue){return lo(this.__data__,ue)>-1}function st(ue,_e){var qe=this.__data__,pt=lo(qe,ue);return pt<0?qe.push([ue,_e]):qe[pt][1]=_e,this}wr.prototype.clear=Hu,wr.prototype.delete=Gu,wr.prototype.get=Oc,wr.prototype.has=Zr,wr.prototype.set=st;function dn(ue){var _e=-1,qe=ue?ue.length:0;for(this.clear();++_e<qe;){var pt=ue[_e];this.set(pt[0],pt[1])}}function rs(){this.__data__={hash:new ts,map:new(Ci||wr),string:new ts}}function fi(ue){return Si(this,ue).delete(ue)}function Zn(ue){return Si(this,ue).get(ue)}function Ia(ue){return Si(this,ue).has(ue)}function As(ue,_e){return Si(this,ue).set(ue,_e),this}dn.prototype.clear=rs,dn.prototype.delete=fi,dn.prototype.get=Zn,dn.prototype.has=Ia,dn.prototype.set=As;function di(ue){this.__data__=new wr(ue)}function On(){this.__data__=new wr}function Jo(ue){return this.__data__.delete(ue)}function jt(ue){return this.__data__.get(ue)}function Ic(ue){return this.__data__.has(ue)}function Yu(ue,_e){var qe=this.__data__;if(qe instanceof wr){var pt=qe.__data__;if(!Ci||pt.length<n-1)return pt.push([ue,_e]),this;qe=this.__data__=new dn(pt)}return qe.set(ue,_e),this}di.prototype.clear=On,di.prototype.delete=Jo,di.prototype.get=jt,di.prototype.has=Ic,di.prototype.set=Yu;function Lc(ue,_e){var qe=mo(ue)||_s(ue)?Le(ue.length,String):[],pt=qe.length,$n=!!pt;for(var nr in ue)lt.call(ue,nr)&&!($n&&(nr=="length"||Ka(nr,pt)))&&qe.push(nr);return qe}function La(ue,_e,qe){var pt=ue[_e];(!(lt.call(ue,_e)&&Ps(pt,qe))||qe===void 0&&!(_e in ue))&&(ue[_e]=qe)}function lo(ue,_e){for(var qe=ue.length;qe--;)if(Ps(ue[qe][0],_e))return qe;return-1}function Zu(ue,_e){return ue&&vr(_e,yo(_e),ue)}function Ba(ue,_e,qe,pt,$n,nr,ar){var Nn;if(pt&&(Nn=nr?pt(ue,$n,nr,ar):pt(ue)),Nn!==void 0)return Nn;if(!vo(ue))return ue;var Dn=mo(ue);if(Dn){if(Nn=ja(ue),!_e)return Qo(ue,Nn)}else{var Di=Ei(ue),Ai=Di==h||Di==m;if(ea(ue))return Na(ue,_e);if(Di==$||Di==s||Ai&&!nr){if(xt(ue))return nr?ue:{};if(Nn=el(Ai?{}:ue),!_e)return fo(ue,Zu(Nn,ue))}else{if(!U[Di])return nr?ue:{};Nn=vn(ue,Di,Ba,_e)}}ar||(ar=new di);var qa=ar.get(ue);if(qa)return qa;if(ar.set(ue,Nn),!Dn)var ta=qe?ho(ue):yo(ue);return Ue(ta||ue,function(ur,bo){ta&&(bo=ur,ur=ue[bo]),La(Nn,bo,Ba(ur,_e,qe,pt,bo,ue,ar))}),Nn}function Bc(ue){return vo(ue)?rn(ue):{}}function Vc(ue,_e,qe){var pt=_e(ue);return mo(ue)?pt:Re(pt,qe(ue))}function Nc(ue){return bt.call(ue)}function Xu(ue){if(!vo(ue)||Ua(ue))return!1;var _e=nl(ue)||xt(ue)?gn:V;return _e.test(Ir(ue))}function Va(ue){if(!tl(ue))return Qi(ue);var _e=[];for(var qe in Object(ue))lt.call(ue,qe)&&qe!="constructor"&&_e.push(qe);return _e}function Na(ue,_e){if(_e)return ue.slice();var qe=new ue.constructor(ue.length);return ue.copy(qe),qe}function co(ue){var _e=new ue.constructor(ue.byteLength);return new Yr(_e).set(new Yr(ue)),_e}function Ju(ue,_e){var qe=_e?co(ue.buffer):ue.buffer;return new ue.constructor(qe,ue.byteOffset,ue.byteLength)}function Qu(ue,_e,qe){var pt=_e?qe(ln(ue),!0):ln(ue);return Ve(pt,Ge,new ue.constructor)}function kr(ue){var _e=new ue.constructor(ue.source,j.exec(ue));return _e.lastIndex=ue.lastIndex,_e}function gr(ue,_e,qe){var pt=_e?qe(Rt(ue),!0):Rt(ue);return Ve(pt,De,new ue.constructor)}function Or(ue){return qu?Object(qu.call(ue)):{}}function Ts(ue,_e){var qe=_e?co(ue.buffer):ue.buffer;return new ue.constructor(qe,ue.byteOffset,ue.length)}function Qo(ue,_e){var qe=-1,pt=ue.length;for(_e||(_e=Array(pt));++qe<pt;)_e[qe]=ue[qe];return _e}function vr(ue,_e,qe,pt){qe||(qe={});for(var $n=-1,nr=_e.length;++$n<nr;){var ar=_e[$n],Nn=void 0;La(qe,ar,Nn===void 0?ue[ar]:Nn)}return qe}function fo(ue,_e){return vr(ue,or(ue),_e)}function ho(ue){return Vc(ue,yo,or)}function Si(ue,_e){var qe=ue.__data__;return po(_e)?qe[typeof _e=="string"?"string":"hash"]:qe.map}function hi(ue,_e){var qe=nt(ue,_e);return Xu(qe)?qe:void 0}var or=Yt?$t(Yt,Object):Wt,Ei=Nc;(es&&Ei(new es(new ArrayBuffer(1)))!=k||Ci&&Ei(new Ci)!=g||Ds&&Ei(Ds.resolve())!=w||ka&&Ei(new ka)!=S||yt&&Ei(new yt)!=O)&&(Ei=function(ue){var _e=bt.call(ue),qe=_e==$?ue.constructor:void 0,pt=qe?Ir(qe):void 0;if(pt)switch(pt){case ao:return k;case Fc:return g;case Uu:return w;case kc:return S;case zu:return O}return _e});function ja(ue){var _e=ue.length,qe=ue.constructor(_e);return _e&&typeof ue[0]=="string"&<.call(ue,"index")&&(qe.index=ue.index,qe.input=ue.input),qe}function el(ue){return typeof ue.constructor=="function"&&!tl(ue)?Bc(Fr(ue)):{}}function vn(ue,_e,qe,pt){var $n=ue.constructor;switch(_e){case M:return co(ue);case u:case l:return new $n(+ue);case k:return Ju(ue,pt);case N:case F:case ae:case oe:case W:case Ce:case ne:case se:case z:return Ts(ue,pt);case g:return Qu(ue,pt,qe);case b:case C:return new $n(ue);case D:return kr(ue);case S:return gr(ue,pt,qe);case T:return Or(ue)}}function Ka(ue,_e){return _e=_e??i,!!_e&&(typeof ue=="number"||ge.test(ue))&&ue>-1&&ue%1==0&&ue<_e}function po(ue){var _e=typeof ue;return _e=="string"||_e=="number"||_e=="symbol"||_e=="boolean"?ue!=="__proto__":ue===null}function Ua(ue){return!!et&&et in ue}function tl(ue){var _e=ue&&ue.constructor,qe=typeof _e=="function"&&_e.prototype||Te;return ue===qe}function Ir(ue){if(ue!=null){try{return Je.call(ue)}catch{}try{return ue+""}catch{}}return""}function za(ue){return Ba(ue,!0,!0)}function Ps(ue,_e){return ue===_e||ue!==ue&&_e!==_e}function _s(ue){return go(ue)&<.call(ue,"callee")&&(!Pt.call(ue,"callee")||bt.call(ue)==s)}var mo=Array.isArray;function is(ue){return ue!=null&&jc(ue.length)&&!nl(ue)}function go(ue){return Kc(ue)&&is(ue)}var ea=sr||Qt;function nl(ue){var _e=vo(ue)?bt.call(ue):"";return _e==h||_e==m}function jc(ue){return typeof ue=="number"&&ue>-1&&ue%1==0&&ue<=i}function vo(ue){var _e=typeof ue;return!!ue&&(_e=="object"||_e=="function")}function Kc(ue){return!!ue&&typeof ue=="object"}function yo(ue){return is(ue)?Lc(ue):Va(ue)}function Wt(){return[]}function Qt(){return!1}e.exports=za})(Ib,Ib.exports);var wa=Ib.exports,Lb=function(){return Lb=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Lb.apply(this,arguments)};function YG(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function u(h){try{d(r.next(h))}catch(m){o(m)}}function l(h){try{d(r.throw(h))}catch(m){o(m)}}function d(h){h.done?s(h.value):i(h.value).then(u,l)}d((r=r.apply(e,[])).next())})}function ZG(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(d){return function(h){return l([d,h])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(s=d[0]&2?i.return:d[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,d[1])).done)return s;switch(i=0,s&&(d=[d[0]&2,s.value]),d[0]){case 0:case 1:s=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!s||d[1]>s[0]&&d[1]<s[3])){n.label=d[1];break}if(d[0]===6&&n.label<s[1]){n.label=s[1],s=d;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(d);break}s[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(h){d=[6,h],i=0}finally{r=s=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Wp(e,t,n,r,i){return YG(this,void 0,void 0,function(){var s,o;return ZG(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];o=0,u.label=1;case 1:return o<n.length?[4,n[o](e,t,r,i,n)]:[3,4];case 2:if(s=u.sent(),s==="canceled")return[3,4];u.label=3;case 3:return o++,[3,1];case 4:return s!=="canceled"?[2,s]:[2]}})})}var Bb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Lb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},XG=function(){function e(t,n,r,i){var s=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=wa(n);Wp(t,o,r,this.htmlPluginState,i).then(function(u){if(s.isMounted){s.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Bb(i,u);s.imgElement.setAttribute("src",o.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,s=wa(t);Wp(this.imgElement,s,n,this.htmlPluginState).then(function(o){if(i.isMounted){var u=Bb(r,o);i.imgElement.setAttribute("src",s.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let kn=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},JG=class extends Error{constructor(t="Unsupported"){super(t)}};function f3(e){return new JG(e)}function QG(){return this._qualifierModel||{error:f3(`unsupported qualifier ${this.constructor.name}`)}}let eY=class{constructor(){this._qualifierModel={}}toJson(){return QG.apply(this)}},kt=class extends eY{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof kn?this.qualifierValue=n:(this.qualifierValue=new kn,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Gi=class extends kt{constructor(t,n){let r;n?r=new kn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function tY(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function nY(){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:f3(`unsupported action ${this.constructor.name}`)}}let rY=class{constructor(){this._actionModel={}}toJson(){return nY.apply(this)}},Cs=class extends rY{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(),tY(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Gi(r)):this.qualifiers.set(n,new kt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Gi(t)):t instanceof Gi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class d3 extends Cs{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Nm extends d3{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new kt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new kt("h",t)),this}static fromJson(t){const n=new Nm;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 iY(){return new Nm}function LF(){return new d3("faces")}function sY(){return new d3("ocr_text")}class oY extends Cs{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new kt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new kt("e",`blur_region${t}`)),this.addQualifier(new kt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new kt("e",`blur_faces${t}`))):this.addQualifier(new kt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(LF()),r&&r.regionType==="ocr_text"&&i.region(sY()),r&&r.regionType==="custom"&&i.region(Nm.fromJson(r)),i}}function Bu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const BF={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},aY={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},VF={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},NF={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},uY={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},jF={444:"CHROMA_444",420:"CHROMA_420"},lY={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},cY=Bu(jF);Bu(lY);const fY=Bu(BF),dY=Bu(aY),KF=Bu(VF);Bu(NF);Bu(uY);class UF extends Cs{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=KF[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new kn([t,`${n}`]).setDelimiter(":"):r=new kn(t),new kt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,s=VF[n]||n;return new this(s,r||i)}}class hY extends UF{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=KF[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 jm(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class pY extends Cs{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new kn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new kn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new kn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new kn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new kn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new kt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:s,detailLevel:o,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),s&&l.despeckleLevel(s),o&&l.detailsLevel(o),u&&l.numOfColors(u),l}}class mY extends hY{level(t){return this._actionModel.level=t,this.setLevel(t)}}class gY extends Cs{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new kt("e",new kn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new kt("e",new kn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new kt("e",new kn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,s=new this;return r==="xray"&&s.xray(),r==="stripes"&&i&&s.stripesStrength(i),s}}class vY extends mY{color(t){return this._actionModel.color=t,this.addQualifier(new kt("co",new kn(jm(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,s=new this(n,r);return i&&s.color(i),s}}class yY extends Cs{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new kt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new kt("e",`pixelate_region${t}`)),this.addQualifier(new kt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new kt("e",`pixelate_faces${t}`))):this.addQualifier(new kt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(LF()),n&&n.regionType==="custom"&&i.region(iY()),i}}const bY=e=>SY(encodeURIComponent,wY,CY)(e),$Y=/[!'()*~_.-]/g,xY={"!":"%21","'":"%27","(":"%28",")":"%29","*":"%2A","~":"%7E",_:"%5F",".":"%2E","-":"%2D"},wY=e=>e.replace($Y,t=>{var n;return(n=xY[t])!==null&&n!==void 0?n:t}),CY=e=>e.replace(/%20/g," "),SY=(...e)=>t=>e.reduce((n,r)=>r(n),t);function EY(e){return new oY(e)}function DY(){return new UF("grayscale")}function BS(e){return new vY("colorize",e)}function AY(){return new pY}function TY(){return new gY}function PY(e){return new yY(e)}let _Y=class extends Cs{constructor(t){super(),this._actionModel={},this.addQualifier(new kt("b",new kn(jm(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},VS=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:f3(`unsupported action ${this.constructor.name}`)}}};function MY(e){const t=e;return"error"in t&&!!t.error}function RY(){return new Gi("ignore_aspect_ratio")}function FY(){return new Gi("lossy")}function kY(){return new Gi("preserve_transparency")}function OY(e){return new Gi("progressive",e)}function IY(){return new Gi("region_relative")}function LY(){return new Gi("relative")}let h3=class extends kn{constructor(t){super(t),this.val=t}getValue(){return this.val}},zF=class extends Cs{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof h3?i=n.getValue():i=n,this._actionModel.actionType=dY[t],this._actionModel[r]=i,this.addQualifier(new kt(t,n))}},BY=class extends Gi{constructor(t){super("progressive",t)}},Vb=class extends zF{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(FY()),this}progressive(t){return t instanceof BY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(OY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(kY()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}},Km=class qF{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 VS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof qF?this.actions=this.actions.concat(t.actions):this.actions.push(new VS(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 Vb("q",t)),this}format(t){return this.addAction(new Vb("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 _Y(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Cs;let r=t;return typeof t=="string"&&(r=new Gi(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(MY(r))return r;t.push(r)}return{actions:t}}};function NS(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 VY extends kn{}class NY extends Cs{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=fY[t]||t,this.addQualifier(new kt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new kt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new kt("w",t))}aspectRatio(t){if(t instanceof VY)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new kt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=NS(t),this.addQualifier(new kt("ar",NS(t)));if(t instanceof Gi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(LY())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(IY())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:s}=t,{aspectRatio:o,width:u,height:l}=r,d=BF[n]||n,h=new this(d,u,l);return o&&h.aspectRatio(o==="ignore_aspect_ratio"?RY():o),i&&h.relative(),s&&h.regionRelative(),h}}class p3 extends kt{constructor(t){super("g",new kn(t))}}class WF extends p3{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class HF extends p3{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class GF extends p3{constructor(t){super(t)}}function jY(e){return new GF(e)}function YF(...e){const t=[...e];return new HF(t)}function ZF(){return new WF}class sc extends kn{constructor(t){super(),this.name=t}toString(){return this.name}}function KY(){return new sc("ocr_text")}function UY(e){return e&&`${e}`.split(":")[0]==="auto"}function zY(e){const t=m3(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function m3(e){return`${e}`.replace("g_","")}function qY(e){return{compass:m3(e),gravityType:"direction"}}function WY(e){return m3(e)==="ocr_text"}function HY(){return{gravityType:"ocr"}}function GY(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function YY(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 XF(e){let t;const n=e==="auto"?new WF: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(YY)}}function ZY(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(s=>`${s}`)};if(t){const s=n[n.length-1].values.slice(1),o=ZF().autoFocus(...s);i.fallbackGravity=XF(o)}return i}function XY(e){const n=e.split(":").map(r=>new sc(r));return new HF(n)}function JY(e){return zY(e)?qY(e):WY(e)?HY():UY(e)||GY(e)?XF(e):ZY(typeof e=="string"?XY(e):e)}class g3 extends kn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof sc?t:new sc(t);return new g3(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 JF extends kn{constructor(t){super(),this.val=t}toString(){return this.val}}function QY(e){return e.gravityType==="direction"}function eZ(e){return e.gravityType==="ocr"}function tZ(e){return e.gravityType==="auto"}function nZ(e){const{object:t,weight:n,avoid:r}=e,i=new g3(new sc(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function QF(e){const n=(e.autoFocus||[]).map(nZ);return ZF().autoFocus(...n)}function rZ(e){const t=(e.focusOnObjects||[]).map(r=>new sc(r)),n=YF(...t);if(e.fallbackGravity){const r=QF(e.fallbackGravity);n.fallbackGravity(r)}return n}function iZ(e){return QY(e)?new GF(new JF(e.compass)):eZ(e)?YF(KY()):tZ(e)?QF(e):rZ(e)}class v3 extends NY{gravity(t){this._actionModel.gravity=JY(t);const n=typeof t=="string"?new kt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(iZ(t.gravity)),n}}class Rd extends kt{constructor(t){super("b"),t&&this.addValue(t)}}const e7=100,sZ=0;class oZ extends Rd{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}`:`:${e7}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var t7=oZ;class y3 extends Rd{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>jm(n)),this}}class n7 extends y3{toString(){return`
|
|
85
|
+
b_auto:border
|
|
86
|
+
${this._contrast?"_contrast":""}
|
|
87
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
88
|
+
`.replace(/\s+/g,"")}}class r7 extends y3{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class i7 extends r7{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 s7 extends r7{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 o7 extends y3{toString(){return`
|
|
101
|
+
b_auto:predominant
|
|
102
|
+
${this._contrast?"_contrast":""}
|
|
103
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
104
|
+
`.replace(/\s+/g,"")}}class a7 extends Rd{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){try{this._prompt=decodeURIComponent(t)}catch{this._prompt=t}return this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${bY(this._prompt)}`:""}`}}function u7(e){return`${e}`.replace("b_","")}function aZ(){return{backgroundType:"auto"}}function uZ(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 b3(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function lZ(e){return Object.assign(Object.assign({},b3(e)),{backgroundType:"border"})}function l7(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=b3(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function cZ(e){return Object.assign(Object.assign({},l7(e)),{backgroundType:"borderGradient"})}function fZ(e){return{backgroundType:"color",color:u7(e)}}function dZ(e){return Object.assign(Object.assign({},b3(e)),{backgroundType:"predominant"})}function hZ(e){return Object.assign(Object.assign({},l7(e)),{backgroundType:"predominantGradient"})}function pZ(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function mZ(e){return u7(e)==="auto"?aZ():e instanceof t7?uZ(e):e instanceof n7?lZ(e):e instanceof i7?cZ(e):e instanceof o7?dZ(e):e instanceof s7?hZ(e):e instanceof a7?pZ(e):fZ(e)}function gZ(){return new h3("svg")}function $3(){return new h3("auto")}function c7(){return new n7}function f7(){return new Rd("auto")}function d7(){return new i7}function h7(){return new s7}function p7(){return new o7}function m7(e){return new Rd(jm(e))}function vZ(){return new t7}function g7(){return new a7}const v7={auto:f7,border:c7,borderGradient:d7,predominantGradient:h7,predominant:p7,color:m7,blurred:vZ,generativeFill:g7};function yZ(e){const{brightness:t,intensity:n}=e,r=v7.blurred();return r.brightness(t??sZ),r.intensity(n??e7),r}function jS(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:s}=t;return i&&e.contrast(),s&&e.palette(...s),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function KS(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function bZ(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function $Z(e){const{backgroundType:t}=e;switch(t){case"auto":return f7();case"blurred":return yZ(e);case"border":return KS(c7(),e);case"borderGradient":return jS(d7(),e);case"predominant":return KS(p7(),e);case"predominantGradient":return jS(h7(),e);case"generativeFill":return bZ(g7(),e);default:return m7(e.color)}}class xZ extends v3{background(t){return this._actionModel.background=mZ(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background($Z(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class wZ extends v3{x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new kt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class CZ extends v3{x(t){return this._actionModel.x=t,this.addQualifier(new kt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new kt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function SZ(e,t){return new wZ("crop",e,t)}function EZ(e,t){return new CZ("fill",e,t)}function DZ(e,t){return new xZ("pad",e,t)}class AZ extends zF{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=jF[t];const n=new kn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new kt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new kn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new kt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,s=NF[n]||n,o=new this(s);if(r){const u=cY[r.toUpperCase()];u&&o.chromaSubSampling(+u)}return i&&o.quantization(i),o}}function Um(e){return new Vb("f",e)}function zm(e){return new AZ(e)}function TZ(){return new JF("north_east")}BS(70).color("black"),BS(40).color("white"),DY(),TY();var PZ=new Km().effect(AY()).delivery(zm("auto")).delivery(Um(gZ())),_Z=new Km().effect(PY()).delivery(zm("auto")).delivery(Um($3())),MZ=new Km().effect(EY(2e3)).delivery(zm("auto")).delivery(Um($3())),RZ=new Km().resize(DZ("iw_div_2").aspectRatio(1).background(v7.auto())).resize(SZ(1,1).gravity(jY(TZ()))).resize(EZ().height("ih").width("iw")).delivery(zm("auto")).delivery(Um($3())),US={vectorize:PZ,pixelate:_Z,blur:MZ,"predominant-color":RZ},zS="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",qS={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},WS="?_a=",FZ=function(){function e(t,n,r,i,s,o,u){var l=this;this.mimeType="video",this.mimeSubTypes=qS,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=wa(n);Wp(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(h){h()}),l.setVideoAttributes(s,o),l.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(s){r.appendSourceTag(wa(t),s)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var s=i.type,o=i.codecs,u=i.transcode;return r.appendSourceTag(wa(t).transcode(u),s,r.buildMimeType(s,o))})},e.prototype.appendSourceTag=function(t,n,r){var i,s=document.createElement("source"),o=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;o&&t.format(n);var u=t.toURL(),l=u.split(WS),d=l[1]?"".concat(WS).concat(l[1]):"",h=o?"":".".concat(n);s.src="".concat(l[0]).concat(h).concat(d),s.type=r||"video/".concat(qS[n]||n),this.videoElement.appendChild(s)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=wa(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var s=0,o=Object.entries(t);s<o.length;s++){var u=o[s],l=u[0],d=u[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,s){var o=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);Wp(this.videoElement,t,r,this.htmlPluginState).then(function(){o.setVideoAttributes(i,s),o.handleSourceToVideo(t,n),o.videoElement.load()})}},e}(),kZ=typeof xa=="object"&&xa&&xa.Object===Object&&xa,OZ=typeof self=="object"&&self&&self.Object===Object&&self;kZ||OZ||Function("return this")();function x3(){return typeof window<"u"}function IZ(e){return e instanceof HTMLImageElement}function LZ(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,s=i===void 0?.1:i;return BZ.bind(null,r,s)}function BZ(e,t,n,r,i,s){return e===void 0&&(e="0px"),t===void 0&&(t=.1),x3()?new Promise(function(o){var u=function(){return o({lazyload:!0})},l=NZ(n,u,e,t);i.cleanupCallbacks.push(function(){l(),o("canceled")})}):!1}function VZ(){return window&&"IntersectionObserver"in window}function NZ(e,t,n,r){try{if(!VZ())return t(),function(){};var i=new IntersectionObserver(function(s){s.forEach(function(o){o.isIntersecting&&(i.unobserve(o.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function jZ(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return KZ.bind(null,r)}function KZ(e,t,n,r,i,s){US[e]||(e="vectorize");var o=US[e].actions,u=wa(n);if(o.forEach(function(d){u.addAction(d)}),!x3())return n.transformation=u.transformation,!0;if(IZ(t)){u.transformation.actions.forEach(function(d,h){d instanceof Cs&&d.getActionTag()==="responsive"&&delete u.transformation.actions[h]});var l=Bb(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=zS},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=zS,d("canceled")});var h=new Image;h.src=n.toURL(l),h.onload=function(){d({placeholder:!0})},h.onerror=function(){d({placeholder:!0})}})})}}function UZ(e,t,n){var r=wa(t);if(e)for(var i=0;i<e.length;i++){var s=e[i](null,r);if(!s)break}return r.toURL(n?{trackedAnalytics:n}:null)}function Hp(e){e.cleanupCallbacks.forEach(function(t){t()})}/*! *****************************************************************************
|
|
105
|
+
Copyright (c) Microsoft Corporation.
|
|
106
|
+
|
|
107
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
108
|
+
purpose with or without fee is hereby granted.
|
|
109
|
+
|
|
110
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
111
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
112
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
113
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
114
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
115
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
116
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
117
|
+
***************************************************************************** */var Nb=function(e,t){return Nb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Nb(e,t)};function y7(e,t){Nb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var rd=function(){return rd=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},rd.apply(this,arguments)};function b7(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 iy={sdkSemver:"1.14.1",techVersion:A.version,sdkCode:"J"},zZ=function(e){y7(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=A.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new XG(this.imageRef.current,this.props.cldImg,this.props.plugins,iy)},t.prototype.componentDidUpdate=function(){Hp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,iy)},t.prototype.componentWillUnmount=function(){Hp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=b7(n,["cldImg","plugins"]);if(x3())return A.createElement("img",rd({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=UZ(this.props.plugins,this.props.cldImg,iy);return A.createElement("img",rd({},r,{src:i}))},t}(A.Component),qZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){y7(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=A.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new FZ(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(){Hp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Hp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return qZ.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=b7(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return A.createElement("video",rd({},r,{ref:this.attachRef}))},t})(A.Component);function WZ(e){return!(typeof e!="object"||e instanceof Array)}class HZ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return WZ(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 HS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class w3 extends HZ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,HS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,HS);return new w3(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 id{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 GZ extends Error{constructor(t="Unsupported"){super(t)}}function C3(e){return new GZ(e)}function YZ(){return this._qualifierModel||{error:C3(`unsupported qualifier ${this.constructor.name}`)}}class ZZ{constructor(){this._qualifierModel={}}toJson(){return YZ.apply(this)}}class qm extends ZZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof id?this.qualifierValue=n:(this.qualifierValue=new id,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class Ca extends qm{constructor(t,n){let r;n?r=new id([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function XZ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function JZ(){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:C3(`unsupported action ${this.constructor.name}`)}}class QZ{constructor(){this._actionModel={}}toJson(){return JZ.apply(this)}}class S3 extends QZ{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(),XZ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new Ca(r)):this.qualifiers.set(n,new qm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Ca(t)):t instanceof Ca&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function eX(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class tX extends S3{constructor(t){super(),this._actionModel={},this.addQualifier(new qm("b",new id(eX(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class GS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:C3(`unsupported action ${this.constructor.name}`)}}}function nX(e){const t=e;return"error"in t&&!!t.error}function rX(){return new Ca("lossy")}function iX(){return new Ca("preserve_transparency")}function sX(e){return new Ca("progressive",e)}class oX extends id{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Vu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const aX={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},uX={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"},cX={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},fX={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},dX={444:"CHROMA_444",420:"CHROMA_420"},hX={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Vu(dX);Vu(hX);Vu(aX);const pX=Vu(uX);Vu(lX);Vu(cX);Vu(fX);class mX extends S3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof oX?i=n.getValue():i=n,this._actionModel.actionType=pX[t],this._actionModel[r]=i,this.addQualifier(new qm(t,n))}}class gX extends Ca{constructor(t){super("progressive",t)}}class Gp extends mX{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(rX()),this}progressive(t){return t instanceof gX?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(sX(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(iX()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:s}=t;let o;return n?o=new this("f",n):o=new this("f"),i&&(i.mode?o.progressive(i.mode):o.progressive()),r&&o.lossy(),s&&o.preserveTransparency(),o}}class Wm{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 Wm?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 Gp("q",t)),this}format(t){return this.addAction(new Gp("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 tX(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new S3;let r=t;return typeof t=="string"&&(r=new Ca(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(nX(r))return r;t.push(r)}return{actions:t}}}class vX extends Wm{}class yX extends Wm{}function bX(e){return e.match(/^https?:\//)}function $X(e){return e.indexOf("/")<0}function xX(e){return e.match(/^v[0-9]+/)}function wX(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,s=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!s&&r?`https://${e}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${e}`:n&&s&&r?`https://${s}`:n&&s?`https://${s}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function CX(e){return e||"image"}function SX(e){return e||"upload"}function EX(e,t,n){const r=n!==!1;return t?`v${t}`:xX(e)||bX(e)||$X(e)?"":r?"v1":""}function E3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=DX(i,r/i.length)),i.slice(0,r)+String(e))}function DX(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const AX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yp={};let YS=0;AX.split("").forEach(e=>{let t=YS.toString(2);t=E3(t,6,"0"),Yp[t]=e,YS++});function TX(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function PX(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 E3(t,2,"0")}).join(".")}function ZS(e){let t="";const r=e.split(".").length*6,i=TX(e),s=PX(i);let u=parseInt(s.split(".").join("")).toString(2);if(u=E3(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+=Yp[l]}),t}function _X(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 MX="1.21.0";function RX(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),s=r.padStart(6,"0"),o=i.padStart(6,"0");return Yp[s]+Yp[o]}function FX(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function kX(e){const t={techVersion:FX(),sdkCode:"T",sdkSemver:MX.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 XS(e){const t=kX(e),n=_X(t);try{const r=OX(n.techVersion),i=ZS(n.sdkSemver),s=ZS(r),o=RX(n.osVersion),u=n.feature,l=n.sdkCode,{product:d,osType:h}=n;return`D${d}${l}${i}${s}${h}${o}${u}`}catch{return"E"}}function OX(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const JS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class IX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new w3(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=CX(this.assetType),n=SX(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,s=JS[`${t}/${n}`],o=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(o){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(s)return s;throw new Error(`URL Suffix only supported for ${Object.keys(JS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=wX(this.cloudName,this.urlConfig),i=t?t.toString():"",s=EX(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,s,o.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),s,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!o.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);l&&h.set("_a",XS(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=${XS(n)}`);return d?`${u}?${d}`:u}}}class $7 extends IX{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 Gp("q",t)),this}format(t){return this.addAction(new Gp("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 LX extends $7{constructor(t,n,r){super(t,n,r,new vX)}}class BX extends $7{constructor(t,n,r){super(t,n,r,new yX),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class VX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new LX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new BX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var sy,QS;function x7(){if(QS)return sy;QS=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 sy=e,sy}var oy,eE;function NX(){if(eE)return oy;eE=1;function e(){this.__data__=[],this.size=0}return oy=e,oy}var ay,tE;function D3(){if(tE)return ay;tE=1;function e(t,n){return t===n||t!==t&&n!==n}return ay=e,ay}var uy,nE;function Hm(){if(nE)return uy;nE=1;var e=D3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return uy=t,uy}var ly,rE;function jX(){if(rE)return ly;rE=1;var e=Hm(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,o=e(s,i);if(o<0)return!1;var u=s.length-1;return o==u?s.pop():n.call(s,o,1),--this.size,!0}return ly=r,ly}var cy,iE;function KX(){if(iE)return cy;iE=1;var e=Hm();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return cy=t,cy}var fy,sE;function UX(){if(sE)return fy;sE=1;var e=Hm();function t(n){return e(this.__data__,n)>-1}return fy=t,fy}var dy,oE;function zX(){if(oE)return dy;oE=1;var e=Hm();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return dy=t,dy}var hy,aE;function Gm(){if(aE)return hy;aE=1;var e=NX(),t=jX(),n=KX(),r=UX(),i=zX();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,hy=s,hy}var py,uE;function qX(){if(uE)return py;uE=1;var e=Gm();function t(){this.__data__=new e,this.size=0}return py=t,py}var my,lE;function WX(){if(lE)return my;lE=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return my=e,my}var gy,cE;function HX(){if(cE)return gy;cE=1;function e(t){return this.__data__.get(t)}return gy=e,gy}var vy,fE;function GX(){if(fE)return vy;fE=1;function e(t){return this.__data__.has(t)}return vy=e,vy}var yy,dE;function Ym(){if(dE)return yy;dE=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return yy=e,yy}var by,hE;function w7(){if(hE)return by;hE=1;var e=$c(),t=Ym(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function o(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==s}return by=o,by}var $y,pE;function YX(){if(pE)return $y;pE=1;var e=Zo(),t=e["__core-js_shared__"];return $y=t,$y}var xy,mE;function ZX(){if(mE)return xy;mE=1;var e=YX(),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 xy=n,xy}var wy,gE;function C7(){if(gE)return wy;gE=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 wy=n,wy}var Cy,vE;function XX(){if(vE)return Cy;vE=1;var e=w7(),t=ZX(),n=Ym(),r=C7(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,l=o.toString,d=u.hasOwnProperty,h=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(g){if(!n(g)||t(g))return!1;var b=e(g)?h:s;return b.test(r(g))}return Cy=m,Cy}var Sy,yE;function JX(){if(yE)return Sy;yE=1;function e(t,n){return t==null?void 0:t[n]}return Sy=e,Sy}var Ey,bE;function wc(){if(bE)return Ey;bE=1;var e=XX(),t=JX();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Ey=n,Ey}var Dy,$E;function A3(){if($E)return Dy;$E=1;var e=wc(),t=Zo(),n=e(t,"Map");return Dy=n,Dy}var Ay,xE;function Zm(){if(xE)return Ay;xE=1;var e=wc(),t=e(Object,"create");return Ay=t,Ay}var Ty,wE;function QX(){if(wE)return Ty;wE=1;var e=Zm();function t(){this.__data__=e?e(null):{},this.size=0}return Ty=t,Ty}var Py,CE;function eJ(){if(CE)return Py;CE=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Py=e,Py}var _y,SE;function tJ(){if(SE)return _y;SE=1;var e=Zm(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var o=this.__data__;if(e){var u=o[s];return u===t?void 0:u}return r.call(o,s)?o[s]:void 0}return _y=i,_y}var My,EE;function nJ(){if(EE)return My;EE=1;var e=Zm(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return My=r,My}var Ry,DE;function rJ(){if(DE)return Ry;DE=1;var e=Zm(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return Ry=n,Ry}var Fy,AE;function iJ(){if(AE)return Fy;AE=1;var e=QX(),t=eJ(),n=tJ(),r=nJ(),i=rJ();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Fy=s,Fy}var ky,TE;function sJ(){if(TE)return ky;TE=1;var e=iJ(),t=Gm(),n=A3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ky=r,ky}var Oy,PE;function oJ(){if(PE)return Oy;PE=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Oy=e,Oy}var Iy,_E;function Xm(){if(_E)return Iy;_E=1;var e=oJ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Iy=t,Iy}var Ly,ME;function aJ(){if(ME)return Ly;ME=1;var e=Xm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ly=t,Ly}var By,RE;function uJ(){if(RE)return By;RE=1;var e=Xm();function t(n){return e(this,n).get(n)}return By=t,By}var Vy,FE;function lJ(){if(FE)return Vy;FE=1;var e=Xm();function t(n){return e(this,n).has(n)}return Vy=t,Vy}var Ny,kE;function cJ(){if(kE)return Ny;kE=1;var e=Xm();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return Ny=t,Ny}var jy,OE;function T3(){if(OE)return jy;OE=1;var e=sJ(),t=aJ(),n=uJ(),r=lJ(),i=cJ();function s(o){var u=-1,l=o==null?0:o.length;for(this.clear();++u<l;){var d=o[u];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,jy=s,jy}var Ky,IE;function fJ(){if(IE)return Ky;IE=1;var e=Gm(),t=A3(),n=T3(),r=200;function i(s,o){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([s,o]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(s,o),this.size=u.size,this}return Ky=i,Ky}var Uy,LE;function S7(){if(LE)return Uy;LE=1;var e=Gm(),t=qX(),n=WX(),r=HX(),i=GX(),s=fJ();function o(u){var l=this.__data__=new e(u);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=s,Uy=o,Uy}var zy,BE;function dJ(){if(BE)return zy;BE=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return zy=t,zy}var qy,VE;function hJ(){if(VE)return qy;VE=1;function e(t){return this.__data__.has(t)}return qy=e,qy}var Wy,NE;function pJ(){if(NE)return Wy;NE=1;var e=T3(),t=dJ(),n=hJ();function r(i){var s=-1,o=i==null?0:i.length;for(this.__data__=new e;++s<o;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Wy=r,Wy}var Hy,jE;function mJ(){if(jE)return Hy;jE=1;function e(t,n){return t.has(n)}return Hy=e,Hy}var Gy,KE;function E7(){if(KE)return Gy;KE=1;var e=pJ(),t=x7(),n=mJ(),r=1,i=2;function s(o,u,l,d,h,m){var g=l&r,b=o.length,$=u.length;if(b!=$&&!(g&&$>b))return!1;var w=m.get(o),D=m.get(u);if(w&&D)return w==u&&D==o;var S=-1,C=!0,T=l&i?new e:void 0;for(m.set(o,u),m.set(u,o);++S<b;){var O=o[S],M=u[S];if(d)var k=g?d(M,O,S,u,o,m):d(O,M,S,o,u,m);if(k!==void 0){if(k)continue;C=!1;break}if(T){if(!t(u,function(N,F){if(!n(T,F)&&(O===N||h(O,N,l,d,m)))return T.push(F)})){C=!1;break}}else if(!(O===M||h(O,M,l,d,m))){C=!1;break}}return m.delete(o),m.delete(u),C}return Gy=s,Gy}var Yy,UE;function gJ(){if(UE)return Yy;UE=1;var e=Zo(),t=e.Uint8Array;return Yy=t,Yy}var Zy,zE;function vJ(){if(zE)return Zy;zE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return Zy=e,Zy}var Xy,qE;function yJ(){if(qE)return Xy;qE=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Xy=e,Xy}var Jy,WE;function bJ(){if(WE)return Jy;WE=1;var e=Bm(),t=gJ(),n=D3(),r=E7(),i=vJ(),s=yJ(),o=1,u=2,l="[object Boolean]",d="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",b="[object RegExp]",$="[object Set]",w="[object String]",D="[object Symbol]",S="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,O=T?T.valueOf:void 0;function M(k,N,F,ae,oe,W,Ce){switch(F){case C:if(k.byteLength!=N.byteLength||k.byteOffset!=N.byteOffset)return!1;k=k.buffer,N=N.buffer;case S:return!(k.byteLength!=N.byteLength||!W(new t(k),new t(N)));case l:case d:case g:return n(+k,+N);case h:return k.name==N.name&&k.message==N.message;case b:case w:return k==N+"";case m:var ne=i;case $:var se=ae&o;if(ne||(ne=s),k.size!=N.size&&!se)return!1;var z=Ce.get(k);if(z)return z==N;ae|=u,Ce.set(k,N);var K=r(ne(k),ne(N),ae,oe,W,Ce);return Ce.delete(k),K;case D:if(O)return O.call(k)==O.call(N)}return!1}return Jy=M,Jy}var Qy,HE;function $J(){if(HE)return Qy;HE=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return Qy=e,Qy}var e0,GE;function Xo(){if(GE)return e0;GE=1;var e=Array.isArray;return e0=e,e0}var t0,YE;function xJ(){if(YE)return t0;YE=1;var e=$J(),t=Xo();function n(r,i,s){var o=i(r);return t(r)?o:e(o,s(r))}return t0=n,t0}var n0,ZE;function wJ(){if(ZE)return n0;ZE=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,o=[];++r<i;){var u=t[r];n(u,r,t)&&(o[s++]=u)}return o}return n0=e,n0}var r0,XE;function CJ(){if(XE)return r0;XE=1;function e(){return[]}return r0=e,r0}var i0,JE;function SJ(){if(JE)return i0;JE=1;var e=wJ(),t=CJ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return r.call(o,u)}))}:t;return i0=s,i0}var s0,QE;function EJ(){if(QE)return s0;QE=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return s0=e,s0}var o0,eD;function DJ(){if(eD)return o0;eD=1;var e=$c(),t=xc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return o0=r,o0}var a0,tD;function D7(){if(tD)return a0;tD=1;var e=DJ(),t=xc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return a0=s,a0}var Tf={exports:{}},u0,nD;function AJ(){if(nD)return u0;nD=1;function e(){return!1}return u0=e,u0}Tf.exports;var rD;function A7(){return rD||(rD=1,function(e,t){var n=Zo(),r=AJ(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,u=o?n.Buffer:void 0,l=u?u.isBuffer:void 0,d=l||r;e.exports=d}(Tf,Tf.exports)),Tf.exports}var l0,iD;function P3(){if(iD)return l0;iD=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return l0=n,l0}var c0,sD;function _3(){if(sD)return c0;sD=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return c0=t,c0}var f0,oD;function TJ(){if(oD)return f0;oD=1;var e=$c(),t=_3(),n=xc(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",o="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",h="[object Number]",m="[object Object]",g="[object RegExp]",b="[object Set]",$="[object String]",w="[object WeakMap]",D="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",k="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",ae="[object Uint16Array]",oe="[object Uint32Array]",W={};W[C]=W[T]=W[O]=W[M]=W[k]=W[N]=W[F]=W[ae]=W[oe]=!0,W[r]=W[i]=W[D]=W[s]=W[S]=W[o]=W[u]=W[l]=W[d]=W[h]=W[m]=W[g]=W[b]=W[$]=W[w]=!1;function Ce(ne){return n(ne)&&t(ne.length)&&!!W[e(ne)]}return f0=Ce,f0}var d0,aD;function PJ(){if(aD)return d0;aD=1;function e(t){return function(n){return t(n)}}return d0=e,d0}var Pf={exports:{}};Pf.exports;var uD;function _J(){return uD||(uD=1,function(e,t){var n=FF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,o=s&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u}(Pf,Pf.exports)),Pf.exports}var h0,lD;function T7(){if(lD)return h0;lD=1;var e=TJ(),t=PJ(),n=_J(),r=n&&n.isTypedArray,i=r?t(r):e;return h0=i,h0}var p0,cD;function MJ(){if(cD)return p0;cD=1;var e=EJ(),t=D7(),n=Xo(),r=A7(),i=P3(),s=T7(),o=Object.prototype,u=o.hasOwnProperty;function l(d,h){var m=n(d),g=!m&&t(d),b=!m&&!g&&r(d),$=!m&&!g&&!b&&s(d),w=m||g||b||$,D=w?e(d.length,String):[],S=D.length;for(var C in d)(h||u.call(d,C))&&!(w&&(C=="length"||b&&(C=="offset"||C=="parent")||$&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,S)))&&D.push(C);return D}return p0=l,p0}var m0,fD;function RJ(){if(fD)return m0;fD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return m0=t,m0}var g0,dD;function FJ(){if(dD)return g0;dD=1;function e(t,n){return function(r){return t(n(r))}}return g0=e,g0}var v0,hD;function kJ(){if(hD)return v0;hD=1;var e=FJ(),t=e(Object.keys,Object);return v0=t,v0}var y0,pD;function OJ(){if(pD)return y0;pD=1;var e=RJ(),t=kJ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var o=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&o.push(u);return o}return y0=i,y0}var b0,mD;function M3(){if(mD)return b0;mD=1;var e=w7(),t=_3();function n(r){return r!=null&&t(r.length)&&!e(r)}return b0=n,b0}var $0,gD;function R3(){if(gD)return $0;gD=1;var e=MJ(),t=OJ(),n=M3();function r(i){return n(i)?e(i):t(i)}return $0=r,$0}var x0,vD;function IJ(){if(vD)return x0;vD=1;var e=xJ(),t=SJ(),n=R3();function r(i){return e(i,n,t)}return x0=r,x0}var w0,yD;function LJ(){if(yD)return w0;yD=1;var e=IJ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,o,u,l,d,h){var m=u&t,g=e(s),b=g.length,$=e(o),w=$.length;if(b!=w&&!m)return!1;for(var D=b;D--;){var S=g[D];if(!(m?S in o:r.call(o,S)))return!1}var C=h.get(s),T=h.get(o);if(C&&T)return C==o&&T==s;var O=!0;h.set(s,o),h.set(o,s);for(var M=m;++D<b;){S=g[D];var k=s[S],N=o[S];if(l)var F=m?l(N,k,S,o,s,h):l(k,N,S,s,o,h);if(!(F===void 0?k===N||d(k,N,u,l,h):F)){O=!1;break}M||(M=S=="constructor")}if(O&&!M){var ae=s.constructor,oe=o.constructor;ae!=oe&&"constructor"in s&&"constructor"in o&&!(typeof ae=="function"&&ae instanceof ae&&typeof oe=="function"&&oe instanceof oe)&&(O=!1)}return h.delete(s),h.delete(o),O}return w0=i,w0}var C0,bD;function BJ(){if(bD)return C0;bD=1;var e=wc(),t=Zo(),n=e(t,"DataView");return C0=n,C0}var S0,$D;function VJ(){if($D)return S0;$D=1;var e=wc(),t=Zo(),n=e(t,"Promise");return S0=n,S0}var E0,xD;function NJ(){if(xD)return E0;xD=1;var e=wc(),t=Zo(),n=e(t,"Set");return E0=n,E0}var D0,wD;function jJ(){if(wD)return D0;wD=1;var e=wc(),t=Zo(),n=e(t,"WeakMap");return D0=n,D0}var A0,CD;function KJ(){if(CD)return A0;CD=1;var e=BJ(),t=A3(),n=VJ(),r=NJ(),i=jJ(),s=$c(),o=C7(),u="[object Map]",l="[object Object]",d="[object Promise]",h="[object Set]",m="[object WeakMap]",g="[object DataView]",b=o(e),$=o(t),w=o(n),D=o(r),S=o(i),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=g||t&&C(new t)!=u||n&&C(n.resolve())!=d||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(T){var O=s(T),M=O==l?T.constructor:void 0,k=M?o(M):"";if(k)switch(k){case b:return g;case $:return u;case w:return d;case D:return h;case S:return m}return O}),A0=C,A0}var T0,SD;function UJ(){if(SD)return T0;SD=1;var e=S7(),t=E7(),n=bJ(),r=LJ(),i=KJ(),s=Xo(),o=A7(),u=T7(),l=1,d="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,b=g.hasOwnProperty;function $(w,D,S,C,T,O){var M=s(w),k=s(D),N=M?h:i(w),F=k?h:i(D);N=N==d?m:N,F=F==d?m:F;var ae=N==m,oe=F==m,W=N==F;if(W&&o(w)){if(!o(D))return!1;M=!0,ae=!1}if(W&&!ae)return O||(O=new e),M||u(w)?t(w,D,S,C,T,O):n(w,D,N,S,C,T,O);if(!(S&l)){var Ce=ae&&b.call(w,"__wrapped__"),ne=oe&&b.call(D,"__wrapped__");if(Ce||ne){var se=Ce?w.value():w,z=ne?D.value():D;return O||(O=new e),T(se,z,S,C,O)}}return W?(O||(O=new e),r(w,D,S,C,T,O)):!1}return T0=$,T0}var P0,ED;function P7(){if(ED)return P0;ED=1;var e=UJ(),t=xc();function n(r,i,s,o,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,o,n,u)}return P0=n,P0}var _0,DD;function zJ(){if(DD)return _0;DD=1;var e=S7(),t=P7(),n=1,r=2;function i(s,o,u,l){var d=u.length,h=d,m=!l;if(s==null)return!h;for(s=Object(s);d--;){var g=u[d];if(m&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<h;){g=u[d];var b=g[0],$=s[b],w=g[1];if(m&&g[2]){if($===void 0&&!(b in s))return!1}else{var D=new e;if(l)var S=l($,w,b,s,o,D);if(!(S===void 0?t(w,$,n|r,l,D):S))return!1}}return!0}return _0=i,_0}var M0,AD;function _7(){if(AD)return M0;AD=1;var e=Ym();function t(n){return n===n&&!e(n)}return M0=t,M0}var R0,TD;function qJ(){if(TD)return R0;TD=1;var e=_7(),t=R3();function n(r){for(var i=t(r),s=i.length;s--;){var o=i[s],u=r[o];i[s]=[o,u,e(u)]}return i}return R0=n,R0}var F0,PD;function M7(){if(PD)return F0;PD=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return F0=e,F0}var k0,_D;function WJ(){if(_D)return k0;_D=1;var e=zJ(),t=qJ(),n=M7();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(o){return o===i||e(o,i,s)}}return k0=r,k0}var O0,MD;function F3(){if(MD)return O0;MD=1;var e=$c(),t=xc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return O0=r,O0}var I0,RD;function k3(){if(RD)return I0;RD=1;var e=Xo(),t=F3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,o){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||o!=null&&s in Object(o)}return I0=i,I0}var L0,FD;function HJ(){if(FD)return L0;FD=1;var e=T3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var o=arguments,u=i?i.apply(this,o):o[0],l=s.cache;if(l.has(u))return l.get(u);var d=r.apply(this,o);return s.cache=l.set(u,d)||l,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,L0=n,L0}var B0,kD;function GJ(){if(kD)return B0;kD=1;var e=HJ(),t=500;function n(r){var i=e(r,function(o){return s.size===t&&s.clear(),o}),s=i.cache;return i}return B0=n,B0}var V0,OD;function YJ(){if(OD)return V0;OD=1;var e=GJ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(o,u,l,d){s.push(l?d.replace(n,"$1"):u||o)}),s});return V0=r,V0}var N0,ID;function ZJ(){if(ID)return N0;ID=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return N0=e,N0}var j0,LD;function XJ(){if(LD)return j0;LD=1;var e=Bm(),t=ZJ(),n=Xo(),r=F3(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(n(u))return t(u,o)+"";if(r(u))return s?s.call(u):"";var l=u+"";return l=="0"&&1/u==-1/0?"-0":l}return j0=o,j0}var K0,BD;function JJ(){if(BD)return K0;BD=1;var e=XJ();function t(n){return n==null?"":e(n)}return K0=t,K0}var U0,VD;function R7(){if(VD)return U0;VD=1;var e=Xo(),t=k3(),n=YJ(),r=JJ();function i(s,o){return e(s)?s:t(s,o)?[s]:n(r(s))}return U0=i,U0}var z0,ND;function Jm(){if(ND)return z0;ND=1;var e=F3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return z0=t,z0}var q0,jD;function F7(){if(jD)return q0;jD=1;var e=R7(),t=Jm();function n(r,i){i=e(i,r);for(var s=0,o=i.length;r!=null&&s<o;)r=r[t(i[s++])];return s&&s==o?r:void 0}return q0=n,q0}var W0,KD;function QJ(){if(KD)return W0;KD=1;var e=F7();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return W0=t,W0}var H0,UD;function eQ(){if(UD)return H0;UD=1;function e(t,n){return t!=null&&n in Object(t)}return H0=e,H0}var G0,zD;function tQ(){if(zD)return G0;zD=1;var e=R7(),t=D7(),n=Xo(),r=P3(),i=_3(),s=Jm();function o(u,l,d){l=e(l,u);for(var h=-1,m=l.length,g=!1;++h<m;){var b=s(l[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return G0=o,G0}var Y0,qD;function nQ(){if(qD)return Y0;qD=1;var e=eQ(),t=tQ();function n(r,i){return r!=null&&t(r,i,e)}return Y0=n,Y0}var Z0,WD;function rQ(){if(WD)return Z0;WD=1;var e=P7(),t=QJ(),n=nQ(),r=k3(),i=_7(),s=M7(),o=Jm(),u=1,l=2;function d(h,m){return r(h)&&i(m)?s(o(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|l)}}return Z0=d,Z0}var X0,HD;function iQ(){if(HD)return X0;HD=1;function e(t){return t}return X0=e,X0}var J0,GD;function sQ(){if(GD)return J0;GD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return J0=e,J0}var Q0,YD;function oQ(){if(YD)return Q0;YD=1;var e=F7();function t(n){return function(r){return e(r,n)}}return Q0=t,Q0}var e1,ZD;function aQ(){if(ZD)return e1;ZD=1;var e=sQ(),t=oQ(),n=k3(),r=Jm();function i(s){return n(s)?e(r(s)):t(s)}return e1=i,e1}var t1,XD;function uQ(){if(XD)return t1;XD=1;var e=WJ(),t=rQ(),n=iQ(),r=Xo(),i=aQ();function s(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return t1=s,t1}var n1,JD;function lQ(){if(JD)return n1;JD=1;function e(t){return function(n,r,i){for(var s=-1,o=Object(n),u=i(n),l=u.length;l--;){var d=u[t?l:++s];if(r(o[d],d,o)===!1)break}return n}}return n1=e,n1}var r1,QD;function cQ(){if(QD)return r1;QD=1;var e=lQ(),t=e();return r1=t,r1}var i1,eA;function fQ(){if(eA)return i1;eA=1;var e=cQ(),t=R3();function n(r,i){return r&&e(r,i,t)}return i1=n,i1}var s1,tA;function dQ(){if(tA)return s1;tA=1;var e=M3();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var o=i.length,u=r?o:-1,l=Object(i);(r?u--:++u<o)&&s(l[u],u,l)!==!1;);return i}}return s1=t,s1}var o1,nA;function hQ(){if(nA)return o1;nA=1;var e=fQ(),t=dQ(),n=t(e);return o1=n,o1}var a1,rA;function pQ(){if(rA)return a1;rA=1;var e=hQ();function t(n,r){var i;return e(n,function(s,o,u){return i=r(s,o,u),!i}),!!i}return a1=t,a1}var u1,iA;function mQ(){if(iA)return u1;iA=1;var e=D3(),t=M3(),n=P3(),r=Ym();function i(s,o,u){if(!r(u))return!1;var l=typeof o;return(l=="number"?t(u)&&n(o,u.length):l=="string"&&o in u)?e(u[o],s):!1}return u1=i,u1}var l1,sA;function gQ(){if(sA)return l1;sA=1;var e=x7(),t=uQ(),n=pQ(),r=Xo(),i=mQ();function s(o,u,l){var d=r(o)?e:n;return l&&i(o,u,l)&&(u=void 0),d(o,t(u,3))}return l1=s,l1}var vQ=gQ();const yQ=ws(vQ);var c1={exports:{}},oA;function bQ(){return oA||(oA=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
118
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
119
|
+
*
|
|
120
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
121
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
122
|
+
* @namespace
|
|
123
|
+
* @public
|
|
124
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(T){return T instanceof l?new l(T.type,C(T.content),T.alias):Array.isArray(T)?T.map(C):T.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++s}),C.__id},clone:function C(T,O){O=O||{};var M,k;switch(u.util.type(T)){case"Object":if(k=u.util.objId(T),O[k])return O[k];M={},O[k]=M;for(var N in T)T.hasOwnProperty(N)&&(M[N]=C(T[N],O));return M;case"Array":return k=u.util.objId(T),O[k]?O[k]:(M=[],O[k]=M,T.forEach(function(F,ae){M[ae]=C(F,O)}),M);default:return T}},getLanguage:function(C){for(;C;){var T=i.exec(C.className);if(T)return T[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,T){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+T)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(M){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(M.stack)||[])[1];if(C){var T=document.getElementsByTagName("script");for(var O in T)if(T[O].src==C)return T[O]}return null}},isActive:function(C,T,O){for(var M="no-"+T;C;){var k=C.classList;if(k.contains(T))return!0;if(k.contains(M))return!1;C=C.parentElement}return!!O}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(C,T){var O=u.util.clone(u.languages[C]);for(var M in T)O[M]=T[M];return O},insertBefore:function(C,T,O,M){M=M||u.languages;var k=M[C],N={};for(var F in k)if(k.hasOwnProperty(F)){if(F==T)for(var ae in O)O.hasOwnProperty(ae)&&(N[ae]=O[ae]);O.hasOwnProperty(F)||(N[F]=k[F])}var oe=M[C];return M[C]=N,u.languages.DFS(u.languages,function(W,Ce){Ce===oe&&W!=C&&(this[W]=N)}),N},DFS:function C(T,O,M,k){k=k||{};var N=u.util.objId;for(var F in T)if(T.hasOwnProperty(F)){O.call(T,F,T[F],M||F);var ae=T[F],oe=u.util.type(ae);oe==="Object"&&!k[N(ae)]?(k[N(ae)]=!0,C(ae,O,null,k)):oe==="Array"&&!k[N(ae)]&&(k[N(ae)]=!0,C(ae,O,F,k))}}},plugins:{},highlightAll:function(C,T){u.highlightAllUnder(document,C,T)},highlightAllUnder:function(C,T,O){var M={callback:O,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",M),M.elements=Array.prototype.slice.apply(M.container.querySelectorAll(M.selector)),u.hooks.run("before-all-elements-highlight",M);for(var k=0,N;N=M.elements[k++];)u.highlightElement(N,T===!0,M.callback)},highlightElement:function(C,T,O){var M=u.util.getLanguage(C),k=u.languages[M];u.util.setLanguage(C,M);var N=C.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(N,M);var F=C.textContent,ae={element:C,language:M,grammar:k,code:F};function oe(Ce){ae.highlightedCode=Ce,u.hooks.run("before-insert",ae),ae.element.innerHTML=ae.highlightedCode,u.hooks.run("after-highlight",ae),u.hooks.run("complete",ae),O&&O.call(ae.element)}if(u.hooks.run("before-sanity-check",ae),N=ae.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!ae.code){u.hooks.run("complete",ae),O&&O.call(ae.element);return}if(u.hooks.run("before-highlight",ae),!ae.grammar){oe(u.util.encode(ae.code));return}if(T&&r.Worker){var W=new Worker(u.filename);W.onmessage=function(Ce){oe(Ce.data)},W.postMessage(JSON.stringify({language:ae.language,code:ae.code,immediateClose:!0}))}else oe(u.highlight(ae.code,ae.grammar,ae.language))},highlight:function(C,T,O){var M={code:C,grammar:T,language:O};if(u.hooks.run("before-tokenize",M),!M.grammar)throw new Error('The language "'+M.language+'" has no grammar.');return M.tokens=u.tokenize(M.code,M.grammar),u.hooks.run("after-tokenize",M),l.stringify(u.util.encode(M.tokens),M.language)},tokenize:function(C,T){var O=T.rest;if(O){for(var M in O)T[M]=O[M];delete T.rest}var k=new m;return g(k,k.head,C),h(C,k,T,k.head,0),$(k)},hooks:{all:{},add:function(C,T){var O=u.hooks.all;O[C]=O[C]||[],O[C].push(T)},run:function(C,T){var O=u.hooks.all[C];if(!(!O||!O.length))for(var M=0,k;k=O[M++];)k(T)}},Token:l};r.Prism=u;function l(C,T,O,M){this.type=C,this.content=T,this.alias=O,this.length=(M||"").length|0}l.stringify=function C(T,O){if(typeof T=="string")return T;if(Array.isArray(T)){var M="";return T.forEach(function(oe){M+=C(oe,O)}),M}var k={type:T.type,content:C(T.content,O),tag:"span",classes:["token",T.type],attributes:{},language:O},N=T.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(k.classes,N):k.classes.push(N)),u.hooks.run("wrap",k);var F="";for(var ae in k.attributes)F+=" "+ae+'="'+(k.attributes[ae]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+F+">"+k.content+"</"+k.tag+">"};function d(C,T,O,M){C.lastIndex=T;var k=C.exec(O);if(k&&M&&k[1]){var N=k[1].length;k.index+=N,k[0]=k[0].slice(N)}return k}function h(C,T,O,M,k,N){for(var F in O)if(!(!O.hasOwnProperty(F)||!O[F])){var ae=O[F];ae=Array.isArray(ae)?ae:[ae];for(var oe=0;oe<ae.length;++oe){if(N&&N.cause==F+","+oe)return;var W=ae[oe],Ce=W.inside,ne=!!W.lookbehind,se=!!W.greedy,z=W.alias;if(se&&!W.pattern.global){var K=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,K+"g")}for(var j=W.pattern||W,V=M.next,ge=k;V!==T.tail&&!(N&&ge>=N.reach);ge+=V.value.length,V=V.next){var U=V.value;if(T.length>C.length)return;if(!(U instanceof l)){var J=1,xe;if(se){if(xe=d(j,ge,C,ne),!xe||xe.index>=C.length)break;var Ze=xe.index,Pe=xe.index+xe[0].length,Oe=ge;for(Oe+=V.value.length;Ze>=Oe;)V=V.next,Oe+=V.value.length;if(Oe-=V.value.length,ge=Oe,V.value instanceof l)continue;for(var Ie=V;Ie!==T.tail&&(Oe<Pe||typeof Ie.value=="string");Ie=Ie.next)J++,Oe+=Ie.value.length;J--,U=C.slice(ge,Oe),xe.index-=ge}else if(xe=d(j,0,U,ne),!xe)continue;var Ze=xe.index,Ge=xe[0],De=U.slice(0,Ze),Ue=U.slice(Ze+Ge.length),Re=ge+U.length;N&&Re>N.reach&&(N.reach=Re);var Ve=V.prev;De&&(Ve=g(T,Ve,De),ge+=De.length),b(T,Ve,J);var Le=new l(F,Ce?u.tokenize(Ge,Ce):Ge,z,Ge);if(V=g(T,Ve,Le),Ue&&g(T,V,Ue),J>1){var nt={cause:F+","+oe,reach:Re};h(C,T,O,V.prev,ge,nt),N&&nt.reach>N.reach&&(N.reach=nt.reach)}}}}}}function m(){var C={value:null,prev:null,next:null},T={value:null,prev:C,next:null};C.next=T,this.head=C,this.tail=T,this.length=0}function g(C,T,O){var M=T.next,k={value:O,prev:T,next:M};return T.next=k,M.prev=k,C.length++,k}function b(C,T,O){for(var M=T.next,k=0;k<O&&M!==C.tail;k++)M=M.next;T.next=M,M.prev=T,C.length-=k}function $(C){for(var T=[],O=C.head.next;O!==C.tail;)T.push(O.value),O=O.next;return T}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(C){var T=JSON.parse(C.data),O=T.language,M=T.code,k=T.immediateClose;r.postMessage(u.highlight(M,u.languages[O],O)),k&&r.close()},!1)),u;var w=u.util.currentScript();w&&(u.filename=w.src,w.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var S=document.readyState;S==="loading"||S==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof qi<"u"&&(qi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var o={};o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var s=r.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(w,D){return"✖ Error "+w+" while fetching file: "+D},s="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function g(w,D,S){var C=new XMLHttpRequest;C.open("GET",w,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?D(C.responseText):C.status>=400?S(i(C.status,C.statusText)):S(s))},C.send(null)}function b(w){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(D){var S=Number(D[1]),C=D[2],T=D[3];return C?T?[S,Number(T)]:[S,void 0]:[S,S]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+m}),n.hooks.add("before-sanity-check",function(w){var D=w.element;if(D.matches(m)){w.code="",D.setAttribute(u,l);var S=D.appendChild(document.createElement("CODE"));S.textContent=r;var C=D.getAttribute("data-src"),T=w.language;if(T==="none"){var O=(/\.(\w+)$/.exec(C)||[,"none"])[1];T=o[O]||O}n.util.setLanguage(S,T),n.util.setLanguage(D,T);var M=n.plugins.autoloader;M&&M.loadLanguages(T),g(C,function(k){D.setAttribute(u,d);var N=b(D.getAttribute("data-range"));if(N){var F=k.split(/\r\n?|\n/g),ae=N[0],oe=N[1]==null?F.length:N[1];ae<0&&(ae+=F.length),ae=Math.max(0,Math.min(ae-1,F.length)),oe<0&&(oe+=F.length),oe=Math.max(0,Math.min(oe,F.length)),k=F.slice(ae,oe).join(`
|
|
125
|
+
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(ae+1))}S.textContent=k,n.highlightElement(S)},function(k){D.setAttribute(u,h),S.textContent=k})}}),n.plugins.fileHighlight={highlight:function(D){for(var S=(D||document).querySelectorAll(m),C=0,T;T=S[C++];)n.highlightElement(T)}};var $=!1;n.fileHighlight=function(){$||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),$=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(c1)),c1.exports}var $Q=bQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function s(g){g()}var o=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML=" <br /> ",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var $=getComputedStyle(g),w=getComputedStyle(b);function D(S){return+S.substr(0,S.length-2)}return b.offsetTop+D(w.borderTopWidth)+D(w.paddingTop)-D($.paddingTop)}function l(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,$,w){$=typeof $=="string"?$:b.getAttribute("data-line")||"";var D=$.replace(/\s+/g,"").split(",").filter(Boolean),S=+b.getAttribute("data-line-offset")||0,C=o()?parseInt:parseFloat,T=C(getComputedStyle(b).lineHeight),O=Prism.util.isActive(b,e),M=b.querySelector("code"),k=O?b:M||b,N=[],F=M.textContent.match(n),ae=F?F.length+1:1,oe=!M||k==M?0:u(b,M);D.forEach(function(ne){var se=ne.split("-"),z=+se[0],K=+se[1]||z;if(K=Math.min(ae+S,K),!(K<z)){var j=b.querySelector('.line-highlight[data-range="'+ne+'"]')||document.createElement("div");if(N.push(function(){j.setAttribute("aria-hidden","true"),j.setAttribute("data-range",ne),j.className=(w||"")+" line-highlight"}),O&&Prism.plugins.lineNumbers){var V=Prism.plugins.lineNumbers.getLine(b,z),ge=Prism.plugins.lineNumbers.getLine(b,K);if(V){var U=V.offsetTop+oe+"px";N.push(function(){j.style.top=U})}if(ge){var J=ge.offsetTop-V.offsetTop+ge.offsetHeight+"px";N.push(function(){j.style.height=J})}}else N.push(function(){j.setAttribute("data-start",String(z)),K>z&&j.setAttribute("data-end",String(K)),j.style.top=(z-S-1)*T+oe+"px",j.textContent=new Array(K-z+2).join(`
|
|
126
|
+
`)});N.push(function(){j.style.width=b.scrollWidth+"px"}),N.push(function(){k.appendChild(j)})}});var W=b.id;if(O&&Prism.util.isActive(b,t)&&W){i(b,t)||N.push(function(){b.classList.add(t)});var Ce=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(ne,se){var z=se+Ce;ne.onclick=function(){var K=W+"."+z;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){N.forEach(s)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(S){S.parentNode.removeChild(S)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var $=g.slice(0,g.lastIndexOf(".")),w=document.getElementById($);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(w,b,"temporary ");D(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(l(b)){var $=0;r(".line-highlight",b).forEach(function(w){$+=w.textContent.length,w.parentNode.removeChild(w)}),$&&/^(?: \n)+$/.test(g.code.slice(-$))&&(g.code=g.code.slice(0,-$))}}),Prism.hooks.add("complete",function g(b){var $=b.element.parentElement;if(l($)){clearTimeout(m);var w=Prism.plugins.lineNumbers,D=b.plugins&&b.plugins.lineNumbers;if(i($,e)&&w&&!D)Prism.hooks.add("line-numbers",g);else{var S=Prism.plugins.lineHighlight.highlightLines($);S(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(l).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(s)})})();const k7=A.createContext({});function Fd(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const O3=A.createContext(null),I3=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xQ(e=!0){const t=A.useContext(O3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=A.useId();A.useEffect(()=>{if(e)return i(s)},[e]);const o=A.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const L3=typeof window<"u",O7=L3?A.useLayoutEffect:A.useEffect,ui=e=>e;let Cc=ui,io=ui;process.env.NODE_ENV!=="production"&&(Cc=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},io=(e,t)=>{if(!e)throw new Error(t)});function B3(e){let t;return()=>(t===void 0&&(t=e()),t)}const oc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},to=e=>e*1e3,jo=e=>e/1e3,wQ={useManualTiming:!1},Nh=["read","resolveKeyframes","update","preRender","render","postRender"];function CQ(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(u=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const SQ=40;function I7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Nh.reduce((S,C)=>(S[C]=CQ(s),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,SQ),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:Nh.reduce((S,C)=>{const T=o[C];return S[C]=(O,M=!1,k=!1)=>(n||$(),T.schedule(O,M,k)),S},{}),cancel:S=>{for(let C=0;C<Nh.length;C++)o[Nh[C]].cancel(S)},state:i,steps:o}}const{schedule:mn,cancel:Wo,state:$r,steps:f1}=I7(typeof requestAnimationFrame<"u"?requestAnimationFrame:ui,!0),L7=A.createContext({strict:!1}),aA={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"]},ac={};for(const e in aA)ac[e]={isEnabled:t=>aA[e].some(n=>!!t[n])};function EQ(e){for(const t in e)ac[t]={...ac[t],...e[t]}}const DQ=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 Zp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||DQ.has(e)}let B7=e=>!Zp(e);function AQ(e){e&&(B7=t=>t.startsWith("on")?!Zp(t):e(t))}try{AQ(require("@emotion/is-prop-valid").default)}catch{}function TQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(B7(i)||n===!0&&Zp(i)||!t&&!Zp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const uA=new Set;function Qm(e,t,n){e||uA.has(t)||(console.warn(t),uA.add(t))}function PQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Qm(!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 eg=A.createContext({});function tg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sd(e){return typeof e=="string"||Array.isArray(e)}const V3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],N3=["initial",...V3];function ng(e){return tg(e.animate)||N3.some(t=>sd(e[t]))}function V7(e){return!!(ng(e)||e.variants)}function _Q(e,t){if(ng(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sd(n)?n:void 0,animate:sd(r)?r:void 0}}return e.inherit!==!1?t:{}}function MQ(e){const{initial:t,animate:n}=_Q(e,A.useContext(eg));return A.useMemo(()=>({initial:t,animate:n}),[lA(t),lA(n)])}function lA(e){return Array.isArray(e)?e.join(" "):e}const RQ=Symbol.for("motionComponentSymbol");function _l(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function FQ(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_l(n)&&(n.current=r))},[t])}const j3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kQ="framerAppearId",N7="data-"+j3(kQ),{schedule:K3}=I7(queueMicrotask,!1),j7=A.createContext({});function OQ(e,t,n,r,i){var s,o;const{visualElement:u}=A.useContext(eg),l=A.useContext(L7),d=A.useContext(O3),h=A.useContext(I3).reducedMotion,m=A.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=A.useContext(j7);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&IQ(m.current,n,i,b);const $=A.useRef(!1);A.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[N7],D=A.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return O7(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),K3.render(g.render),D.current&&g.animationState&&g.animationState.animateChanges())}),A.useEffect(()=>{g&&(!D.current&&g.animationState&&g.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),D.current=!1))}),g}function IQ(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:K7(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&_l(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function K7(e){if(e)return e.options.allowProjection!==!1?e.projection:K7(e.parent)}function LQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&EQ(e);function u(d,h){let m;const g={...A.useContext(I3),...d,layoutId:BQ(d)},{isStatic:b}=g,$=MQ(d),w=r(d,b);if(!b&&L3){VQ(g,e);const D=NQ(g);m=D.MeasureLayout,$.visualElement=OQ(i,w,g,t,D.ProjectionNode)}return Uo.jsxs(eg.Provider,{value:$,children:[m&&$.visualElement?Uo.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,FQ(w,$.visualElement,h),w,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=A.forwardRef(u);return l[RQ]=i,l}function BQ({layoutId:e}){const t=A.useContext(k7).id;return t&&e!==void 0?t+"-"+e:e}function VQ(e,t){const n=A.useContext(L7).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?Cc(!1,r):io(!1,r)}}function NQ(e){const{drag:t,layout:n}=ac;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),U3=U7("--"),jQ=U7("var(--"),z3=e=>jQ(e)?KQ.test(e.split("/*")[0].trim()):!1,KQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,od={};function UQ(e){for(const t in e)od[t]=e[t],U3(t)&&(od[t].isCSSVariable=!0)}const Sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nu=new Set(Sc);function z7(e,{layout:t,layoutId:n}){return Nu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!od[e]||e==="opacity")}const xr=e=>!!(e&&e.getVelocity),q7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ho=(e,t,n)=>n>t?t:n<e?e:n,Ec={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ad={...Ec,transform:e=>Ho(0,1,e)},jh={...Ec,default:1},kd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pa=kd("deg"),no=kd("%"),Dt=kd("px"),zQ=kd("vh"),qQ=kd("vw"),cA={...no,parse:e=>no.parse(e)/100,transform:e=>no.transform(e*100)},WQ={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt},HQ={rotate:pa,rotateX:pa,rotateY:pa,rotateZ:pa,scale:jh,scaleX:jh,scaleY:jh,scaleZ:jh,skew:pa,skewX:pa,skewY:pa,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:ad,originX:cA,originY:cA,originZ:Dt},fA={...Ec,transform:Math.round},q3={...WQ,...HQ,zIndex:fA,size:Dt,fillOpacity:ad,strokeOpacity:ad,numOctaves:fA},GQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YQ=Sc.length;function ZQ(e,t,n){let r="",i=!0;for(let s=0;s<YQ;s++){const o=Sc[s],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=q7(u,q3[o]);if(!l){i=!1;const h=GQ[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function W3(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const l in t){const d=t[l];if(Nu.has(l)){o=!0;continue}else if(U3(l)){i[l]=d;continue}else{const h=q7(d,q3[l]);l.startsWith("origin")?(u=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=ZQ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const H3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W7(e,t,n){for(const r in t)!xr(t[r])&&!z7(r,n)&&(e[r]=t[r])}function XQ({transformTemplate:e},t){return A.useMemo(()=>{const n=H3();return W3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function JQ(e,t){const n=e.style||{},r={};return W7(r,n,e),Object.assign(r,XQ(e,t)),r}function QQ(e,t){const n={},r=JQ(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 eee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function G3(e){return typeof e!="string"||e.includes("-")?!1:!!(eee.indexOf(e)>-1||/[A-Z]/u.test(e))}const tee={offset:"stroke-dashoffset",array:"stroke-dasharray"},nee={offset:"strokeDashoffset",array:"strokeDasharray"};function ree(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?tee:nee;e[s.offset]=Dt.transform(-r);const o=Dt.transform(t),u=Dt.transform(n);e[s.array]=`${o} ${u}`}function dA(e,t,n){return typeof e=="string"?e:Dt.transform(t+n*e)}function iee(e,t,n){const r=dA(t,e.x,e.width),i=dA(n,e.y,e.height);return`${r} ${i}`}function Y3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(W3(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=iee($,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&ree(g,o,u,l,!1)}const H7=()=>({...H3(),attrs:{}}),Z3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function see(e,t,n,r){const i=A.useMemo(()=>{const s=H7();return Y3(s,t,Z3(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};W7(s,e.style,e),i.style={...s,...i.style}}return i}function oee(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(G3(n)?see:QQ)(r,s,o,n),d=TQ(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>xr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function hA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function X3(e,t,n,r){if(typeof t=="function"){const[i,s]=hA(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=hA(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const jb=e=>Array.isArray(e),aee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uee=e=>jb(e)?e[e.length-1]||0:e;function hp(e){const t=xr(e)?e.get():e;return aee(t)?t.toValue():t}function lee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:cee(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const G7=e=>(t,n)=>{const r=A.useContext(eg),i=A.useContext(O3),s=()=>lee(e,t,r,i);return n?s():Fd(s)};function cee(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=hp(s[g]);let{initial:o,animate:u}=e;const l=ng(e),d=V7(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?u:o;if(m&&typeof m!="boolean"&&!tg(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=X3(e,g[b]);if($){const{transitionEnd:w,transition:D,...S}=$;for(const C in S){let T=S[C];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[C]=T)}for(const C in w)i[C]=w[C]}}}return i}function J3(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xr(i[o])||t.style&&xr(t.style[o])||z7(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const fee={useVisualState:G7({scrapeMotionValuesFromProps:J3,createRenderState:H3})};function Y7(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 Z7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const X7=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 J7(e,t,n,r){Z7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X7.has(i)?i:j3(i),t.attrs[i])}function Q7(e,t,n){const r=J3(e,t,n);for(const i in e)if(xr(e[i])||xr(t[i])){const s=Sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const pA=["x","y","width","height","cx","cy","r"],dee={useVisualState:G7({scrapeMotionValuesFromProps:Q7,createRenderState:H7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(Nu.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<pA.length;u++){const l=pA[u];e[l]!==t[l]&&(o=!0)}o&&mn.read(()=>{Y7(n,r),mn.render(()=>{Y3(r,i,Z3(n.tagName),e.transformTemplate),J7(n,r)})})}})};function hee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...G3(r)?dee:fee,preloadedFeatures:e,useRender:oee(i),createVisualElement:t,Component:r};return LQ(o)}}function ud(e,t,n){const r=e.getProps();return X3(r,t,n!==void 0?n:r.custom,e)}const pee=B3(()=>window.ScrollTimeline!==void 0);let mee=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(pee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},gee=class extends mee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function Q3(e,t){return e?e[t]||e.default||e:void 0}const Kb=2e4;function ek(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Kb;)t+=n,r=e.next(t);return t>=Kb?1/0:t}function e$(e){return typeof e=="function"}function mA(e,t){e.timeline=t,e.onfinish=null}const t$=e=>Array.isArray(e)&&typeof e[0]=="number",vee={linearEasing:void 0};function yee(e,t){const n=B3(e);return()=>{var r;return(r=vee[t])!==null&&r!==void 0?r:n()}}const Xp=yee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(oc(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function nk(e){return!!(typeof e=="function"&&Xp()||!e||typeof e=="string"&&(e in Ub||Xp())||t$(e)||Array.isArray(e)&&e.every(nk))}const _f=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ub={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_f([0,.65,.55,1]),circOut:_f([.55,0,1,.45]),backIn:_f([.31,.01,.66,-.59]),backOut:_f([.33,1.53,.69,.99])};function rk(e,t){if(e)return typeof e=="function"&&Xp()?tk(e,t):t$(e)?_f(e):Array.isArray(e)?e.map(n=>rk(n,t)||Ub.easeOut):Ub[e]}const ms={x:!1,y:!1};function ik(){return ms.x||ms.y}function bee(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function sk(e,t){const n=bee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gA(e){return!(e.pointerType==="touch"||ik())}function $ee(e,t,n={}){const[r,i,s]=sk(e,n),o=u=>{if(!gA(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{gA(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}function Nf(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const ok=(e,t)=>t?e===t?!0:ok(e,t.parentElement):!1,n$=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wee(e){return xee.has(e.tagName)||e.tabIndex!==-1}const Mf=new WeakSet;function vA(e){return t=>{t.key==="Enter"&&e(t)}}function d1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=vA(()=>{if(Mf.has(n))return;d1(n,"down");const i=vA(()=>{d1(n,"up")}),s=()=>d1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yA(e){return n$(e)&&!ik()}function See(e,t,n={}){const[r,i,s]=sk(e,n),o=u=>{const l=u.currentTarget;if(!l||!yA(u)||Mf.has(l))return;Mf.add(l),Nf(u,"set");const d=t(l,u),h=(b,$)=>{l.removeEventListener("pointerup",m),l.removeEventListener("pointercancel",g),Nf(b,"release"),!(!yA(b)||!Mf.has(l))&&(Mf.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{(b.isTrusted?Eee(b,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?h(b,!1):h(b,!(l instanceof Element)||ok(l,b.target))},g=b=>{h(b,!1)};l.addEventListener("pointerup",m,i),l.addEventListener("pointercancel",g,i),l.addEventListener("lostpointercapture",g,i)};return r.forEach(u=>{u=n.useGlobalTarget?window:u;let l=!1;u instanceof HTMLElement&&(l=!0,!wee(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0)),u.addEventListener("pointerdown",o,i),l&&u.addEventListener("focus",d=>Cee(d,i),i)}),s}function Eee(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}function Dee(e){return e==="x"||e==="y"?ms[e]?null:(ms[e]=!0,()=>{ms[e]=!1}):ms.x||ms.y?null:(ms.x=ms.y=!0,()=>{ms.x=ms.y=!1})}const ak=new Set(["width","height","top","left","right","bottom",...Sc]);let pp;function Aee(){pp=void 0}const ro={now:()=>(pp===void 0&&ro.set($r.isProcessing||wQ.useManualTiming?$r.timestamp:performance.now()),pp),set:e=>{pp=e,queueMicrotask(Aee)}};function r$(e,t){e.indexOf(t)===-1&&e.push(t)}function i$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Tee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(i,0,s)}return e}let s$=class{constructor(){this.subscriptions=[]}add(t){return r$(this.subscriptions,t),()=>i$(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function uk(e,t){return t?e*(1e3/t):0}const bA=30,Pee=e=>!isNaN(parseFloat(e)),jf={current:void 0};let _ee=class{constructor(t,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ro.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ro.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Qm(!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 s$);const r=this.events[t].add(n);return t==="change"?()=>{r(),mn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return jf.current&&jf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ro.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>bA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,bA);return uk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function uc(e,t){return new _ee(e,t)}function Mee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uc(n))}function Ree(e,t){const n=ud(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=uee(s[o]);Mee(e,o,u)}}function Fee(e){return!!(xr(e)&&e.add)}function zb(e,t){const n=e.getValue("willChange");if(Fee(n))return n.add(t)}function lk(e){return e.props[N7]}const ck=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kee=1e-7,Oee=12;function Iee(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=ck(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>kee&&++u<Oee);return o}function Od(e,t,n,r){if(e===t&&n===r)return ui;const i=s=>Iee(s,0,1,e,n);return s=>s===0||s===1?s:ck(i(s),t,r)}const fk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dk=e=>t=>1-e(1-t),hk=Od(.33,1.53,.69,.99),o$=dk(hk),pk=fk(o$),mk=e=>(e*=2)<1?.5*o$(e):.5*(2-Math.pow(2,-10*(e-1))),a$=e=>1-Math.sin(Math.acos(e)),gk=dk(a$),vk=fk(a$),yk=e=>/^0[^.\s]+$/u.test(e);function Lee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yk(e):!0}const Kf=e=>Math.round(e*1e5)/1e5,u$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bee(e){return e==null}const Vee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,l$=(e,t)=>n=>!!(typeof n=="string"&&Vee.test(n)&&n.startsWith(e)||t&&!Bee(n)&&Object.prototype.hasOwnProperty.call(n,t)),bk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(u$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Nee=e=>Ho(0,255,e),h1={...Ec,transform:e=>Math.round(Nee(e))},vu={test:l$("rgb","red"),parse:bk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+h1.transform(e)+", "+h1.transform(t)+", "+h1.transform(n)+", "+Kf(ad.transform(r))+")"};function jee(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const qb={test:l$("#"),parse:jee,transform:vu.transform},Ml={test:l$("hsl","hue"),parse:bk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+no.transform(Kf(t))+", "+no.transform(Kf(n))+", "+Kf(ad.transform(r))+")"},Ar={test:e=>vu.test(e)||qb.test(e)||Ml.test(e),parse:e=>vu.test(e)?vu.parse(e):Ml.test(e)?Ml.parse(e):qb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?vu.transform(e):Ml.transform(e)},Kee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(u$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Kee))===null||n===void 0?void 0:n.length)||0)>0}const $k="number",xk="color",zee="var",qee="var(",$A="${}",Wee=/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 ld(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Wee,l=>(Ar.test(l)?(r.color.push(s),i.push(xk),n.push(Ar.parse(l))):l.startsWith(qee)?(r.var.push(s),i.push(zee),n.push(l)):(r.number.push(s),i.push($k),n.push(parseFloat(l))),++s,$A)).split($A);return{values:n,split:u,indexes:r,types:i}}function wk(e){return ld(e).values}function Ck(e){const{split:t,types:n}=ld(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===$k?s+=Kf(i[o]):u===xk?s+=Ar.transform(i[o]):s+=i[o]}return s}}const Hee=e=>typeof e=="number"?0:e;function Gee(e){const t=wk(e);return Ck(e)(t.map(Hee))}const Aa={test:Uee,parse:wk,createTransformer:Ck,getAnimatableNone:Gee},Yee=new Set(["brightness","contrast","saturate","opacity"]);function Zee(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(u$)||[];if(!r)return e;const i=n.replace(r,"");let s=Yee.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Xee=/\b([a-z-]*)\(.*?\)/gu,Wb={...Aa,getAnimatableNone:e=>{const t=e.match(Xee);return t?t.map(Zee).join(" "):e}},Jee={...q3,color:Ar,backgroundColor:Ar,outlineColor:Ar,fill:Ar,stroke:Ar,borderColor:Ar,borderTopColor:Ar,borderRightColor:Ar,borderBottomColor:Ar,borderLeftColor:Ar,filter:Wb,WebkitFilter:Wb},c$=e=>Jee[e];function Sk(e,t){let n=c$(e);return n!==Wb&&(n=Aa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Qee=new Set(["auto","none","0"]);function ete(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Qee.has(s)&&ld(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Sk(n,i)}const xA=e=>e===Ec||e===Dt,wA=(e,t)=>parseFloat(e.split(", ")[t]),CA=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return wA(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?wA(s[1],e):0}},tte=new Set(["x","y","z"]),nte=Sc.filter(e=>!tte.has(e));function rte(e){const t=[];return nte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const lc={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:CA(4,13),y:CA(5,14)};lc.translateX=lc.x;lc.translateY=lc.y;const Cu=new Set;let Hb=!1,Gb=!1;function Ek(){if(Gb){const e=Array.from(Cu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=rte(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Gb=!1,Hb=!1,Cu.forEach(e=>e.complete()),Cu.clear()}function Dk(){Cu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gb=!0)})}function ite(){Dk(),Ek()}let f$=class{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Cu.add(this),Hb||(Hb=!0,mn.read(Dk),mn.resolveKeyframes(Ek))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Cu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Cu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Ak=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ste=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ote(e){const t=ste.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ate=4;function Tk(e,t,n=1){io(n<=ate,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=ote(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Ak(o)?parseFloat(o):o}return z3(i)?Tk(i,t,n+1):i}const Pk=e=>t=>t.test(e),ute={test:e=>e==="auto",parse:e=>e},_k=[Ec,Dt,no,pa,qQ,zQ,ute],SA=e=>_k.find(Pk(e));let Mk=class extends f${constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),z3(d))){const h=Tk(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ak.has(r)||t.length!==2)return;const[i,s]=t,o=SA(i),u=SA(s);if(o!==u)if(xA(o)&&xA(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++)Lee(t[i])&&r.push(i);r.length&&ete(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=lc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=lc[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 EA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Aa.test(e)||e==="0")&&!e.startsWith("url("));function lte(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 cte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=EA(i,t),u=EA(s,t);return Cc(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:lte(e)||(n==="spring"||e$(n))&&r}const fte=e=>e!==null;function rg(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(fte),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const dte=40;let Rk=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ro.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dte?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ite(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ro.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!cte(t,r,i,s))if(o)this.options.duration=0;else{l&&l(rg(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 Pn=(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 hte({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=p1(l,u,e+1/3),s=p1(l,u,e),o=p1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Jp(e,t){return n=>n>0?t:e}const m1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},pte=[qb,vu,Ml],mte=e=>pte.find(t=>t.test(e));function DA(e){const t=mte(e);if(Cc(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ml&&(n=hte(n)),n}const AA=(e,t)=>{const n=DA(e),r=DA(t);if(!n||!r)return Jp(e,t);const i={...n};return s=>(i.red=m1(n.red,r.red,s),i.green=m1(n.green,r.green,s),i.blue=m1(n.blue,r.blue,s),i.alpha=Pn(n.alpha,r.alpha,s),vu.transform(i))},gte=(e,t)=>n=>t(e(n)),Id=(...e)=>e.reduce(gte),Yb=new Set(["none","hidden"]);function vte(e,t){return Yb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yte(e,t){return n=>Pn(e,t,n)}function d$(e){return typeof e=="number"?yte:typeof e=="string"?z3(e)?Jp:Ar.test(e)?AA:xte:Array.isArray(e)?Fk:typeof e=="object"?Ar.test(e)?AA:bte:Jp}function Fk(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>d$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function bte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=d$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function $te(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const xte=(e,t)=>{const n=Aa.createTransformer(t),r=ld(e),i=ld(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?Yb.has(e)&&!i.values.length||Yb.has(t)&&!r.values.length?vte(e,t):Id(Fk($te(r,i),i.values),n):(Cc(!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.`),Jp(e,t))};function kk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pn(e,t,n):d$(e)(e,t)}const wte=5;function Ok(e,t,n){const r=Math.max(t-wte,0);return uk(n-e(r),t-r)}const Mn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},TA=.001;function Cte({duration:e=Mn.duration,bounce:t=Mn.bounce,velocity:n=Mn.velocity,mass:r=Mn.mass}){let i,s;Cc(e<=to(Mn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Ho(Mn.minDamping,Mn.maxDamping,o),e=Ho(Mn.minDuration,Mn.maxDuration,jo(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=Zb(d,o),$=Math.exp(-m);return TA-g/b*$},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,$=Math.exp(-m),w=Zb(Math.pow(d,2),o);return(-i(d)+TA>0?-1:1)*((g-b)*$)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=Ete(i,s,u);if(e=to(e),isNaN(l))return{stiffness:Mn.stiffness,damping:Mn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const Ste=12;function Ete(e,t,n){let r=n;for(let i=1;i<Ste;i++)r=r-e(r)/t(r);return r}function Zb(e,t){return e*Math.sqrt(1-t*t)}const Dte=["duration","bounce"],Ate=["stiffness","damping","mass"];function PA(e,t){return t.some(n=>e[n]!==void 0)}function Tte(e){let t={velocity:Mn.velocity,stiffness:Mn.stiffness,damping:Mn.damping,mass:Mn.mass,isResolvedFromDuration:!1,...e};if(!PA(e,Ate)&&PA(e,Dte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ho(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Mn.mass,stiffness:i,damping:s}}else{const n=Cte(e);t={...t,...n,mass:Mn.mass},t.isResolvedFromDuration=!0}return t}function Ik(e=Mn.visualDuration,t=Mn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Tte({...n,velocity:-jo(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(l*h)),D=o-s,S=jo(Math.sqrt(l/h)),C=Math.abs(D)<5;r||(r=C?Mn.restSpeed.granular:Mn.restSpeed.default),i||(i=C?Mn.restDelta.granular:Mn.restDelta.default);let T;if(w<1){const M=Zb(S,w);T=k=>{const N=Math.exp(-w*S*k);return o-N*(($+w*S*D)/M*Math.sin(M*k)+D*Math.cos(M*k))}}else if(w===1)T=M=>o-Math.exp(-S*M)*(D+($+S*D)*M);else{const M=S*Math.sqrt(w*w-1);T=k=>{const N=Math.exp(-w*S*k),F=Math.min(M*k,300);return o-N*(($+w*S*D)*Math.sinh(F)+M*D*Math.cosh(F))/M}}const O={calculatedDuration:b&&m||null,next:M=>{const k=T(M);if(b)u.done=M>=m;else{let N=0;w<1&&(N=M===0?to($):Ok(T,M,k));const F=Math.abs(N)<=r,ae=Math.abs(o-k)<=i;u.done=F&&ae}return u.value=u.done?o:k,u},toString:()=>{const M=Math.min(ek(O),Kb),k=tk(N=>O.next(M*N).value,M,30);return M+"ms "+k}};return O}function _A({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,$=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let w=n*t;const D=m+w,S=o===void 0?D:o(D);S!==D&&(w=S-m);const C=F=>-w*Math.exp(-F/r),T=F=>S+C(F),O=F=>{const ae=C(F),oe=T(F);g.done=Math.abs(ae)<=d,g.value=g.done?S:oe};let M,k;const N=F=>{b(g.value)&&(M=F,k=Ik({keyframes:[g.value,$(g.value)],velocity:Ok(T,F,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:F=>{let ae=!1;return!k&&M===void 0&&(ae=!0,O(F),N(F)),M!==void 0&&F>=M?k.next(F-M):(!ae&&O(F),g)}}}const Pte=Od(.42,0,1,1),_te=Od(0,0,.58,1),Lk=Od(.42,0,.58,1),Mte=e=>Array.isArray(e)&&typeof e[0]!="number",MA={linear:ui,easeIn:Pte,easeInOut:Lk,easeOut:_te,circIn:a$,circInOut:vk,circOut:gk,backIn:o$,backInOut:pk,backOut:hk,anticipate:mk},RA=e=>{if(t$(e)){io(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Od(t,n,r,i)}else if(typeof e=="string")return io(MA[e]!==void 0,`Invalid easing type '${e}'`),MA[e];return e};function Rte(e,t,n){const r=[],i=n||kk,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||ui:t;u=Id(l,u)}r.push(u)}return r}function Bk(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(io(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Rte(t,r,i),l=u.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=oc(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Ho(e[0],e[s-1],h)):d}function Fte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=oc(0,t,r);e.push(Pn(n,1,i))}}function kte(e){const t=[0];return Fte(t,e.length-1),t}function Ote(e,t){return e.map(n=>n*t)}function Ite(e,t){return e.map(()=>t||Lk).splice(0,e.length-1)}function Uf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Mte(r)?r.map(RA):RA(r),s={done:!1,value:t[0]},o=Ote(n&&n.length===t.length?n:kte(t),e),u=Bk(o,t,{ease:Array.isArray(i)?i:Ite(t,i)});return{calculatedDuration:e,next:l=>(s.value=u(l),s.done=l>=e,s)}}const Lte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>mn.update(t,!0),stop:()=>Wo(t),now:()=>$r.isProcessing?$r.timestamp:ro.now()}},Bte={decay:_A,inertia:_A,tween:Uf,keyframes:Uf,spring:Ik},Vte=e=>e/100;let h$=class extends Rk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||f$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,u=e$(n)?n:Bte[n]||Uf;let l,d;process.env.NODE_ENV!=="production"&&u!==Uf&&io(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),u!==Uf&&typeof t[0]!="number"&&(l=Id(Vte,kk(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});s==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=ek(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:w,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),C=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const F=Math.min(this.currentTime,h)/m;let ae=Math.floor(F),oe=F%1;!oe&&F>=1&&(oe=1),oe===1&&ae--,ae=Math.min(ae,b+1),!!(ae%2)&&($==="reverse"?(oe=1-oe,w&&(oe-=w/m)):$==="mirror"&&(O=o)),T=Ho(0,1,oe)*m}const M=C?{done:!1,value:l[0]}:O.next(T);u&&(M.value=u(M.value));let{done:k}=M;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(M.value=rg(l,this.options,i)),D&&D(M.value),N&&this.finish(),M}get duration(){const{resolved:t}=this;return t?jo(t.calculatedDuration):0}get time(){return jo(this.currentTime)}set time(t){t=to(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Lte,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const Nte=new Set(["opacity","clipPath","filter","transform"]);function jte(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=rk(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Kte=B3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Qp=10,Ute=2e4;function zte(e){return e$(e.type)||e.type==="spring"||!nk(e.ease)}function qte(e,t){const n=new h$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Ute;)r=n.sample(s),i.push(r.value),s+=Qp;return{times:void 0,keyframes:i,duration:s-Qp,ease:"linear"}}const Vk={anticipate:mk,backInOut:pk,circInOut:vk};function Wte(e){return e in Vk}let FA=class extends Rk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Mk(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&Xp()&&Wte(s)&&(s=Vk[s]),zte(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...w}=this.options,D=qte(t,w);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=jte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(mA(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(rg(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return jo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return jo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=to(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ui;const{animation:r}=n;mA(r,t)}return ui}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new h$({...b,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),w=to(this.time);d.setWithVelocity($.sample(w-Qp).value,$.sample(w).value,Qp)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return Kte()&&r&&Nte.has(r)&&!l&&!d&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}};const Hte={type:"spring",stiffness:500,damping:25,restSpeed:10},Gte=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yte={type:"keyframes",duration:.8},Zte={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Xte=(e,{keyframes:t})=>t.length>2?Yte:Nu.has(e)?e.startsWith("scale")?Gte(t[1]):Hte:Zte;function Jte({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const p$=(e,t,n,r={},i,s)=>o=>{const u=Q3(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-to(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};Jte(u)||(h={...h,...Xte(e,h)}),h.duration&&(h.duration=to(h.duration)),h.repeatDelay&&(h.repeatDelay=to(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!s&&t.get()!==void 0){const g=rg(h.keyframes,u);if(g!==void 0)return mn.update(()=>{h.onUpdate(g),h.onComplete()}),new gee([])}return!s&&FA.supports(h)?new FA(h):new h$(h)};function Qte({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Nk(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),b=l[m];if(b===void 0||h&&Qte(h,m))continue;const $={delay:n,...Q3(o||{},m)};let w=!1;if(window.MotionHandoffAnimation){const S=lk(e);if(S){const C=window.MotionHandoffAnimation(S,m,mn);C!==null&&($.startTime=C,w=!0)}}zb(e,m),g.start(p$(m,g,b,e.shouldReduceMotion&&ak.has(m)?{type:!1}:$,e,w));const D=g.animation;D&&d.push(D)}return u&&Promise.all(d).then(()=>{mn.update(()=>{u&&Ree(e,u)})}),d}function Xb(e,t,n={}){var r;const i=ud(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Nk(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=s;return ene(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,h]=l==="beforeChildren"?[o,u]:[u,o];return d().then(()=>h())}else return Promise.all([o(),u(n.delay)])}function ene(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(tne).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(Xb(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function tne(e,t){return e.sortNodePosition(t)}function nne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Xb(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Xb(e,t,n);else{const i=typeof t=="function"?ud(e,t,n.custom):t;r=Promise.all(Nk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function jk(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 rne=N3.length;function Kk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rne;n++){const r=N3[n],i=e.props[r];(sd(i)||i===!1)&&(t[r]=i)}return t}const ine=[...V3].reverse(),sne=V3.length;function one(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nne(e,n,r)))}function ane(e){let t=one(e),n=kA(),r=!0;const i=l=>(d,h)=>{var m;const g=ud(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=Kk(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let D=0;D<sne;D++){const S=ine[D],C=n[S],T=d[S]!==void 0?d[S]:h[S],O=sd(T),M=S===l?C.isActive:null;M===!1&&($=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...b},!C.isActive&&M===null||!T&&!C.prevProp||tg(T)||typeof T=="boolean")continue;const N=une(C.prevProp,T);let F=N||S===l&&C.isActive&&!k&&O||D>$&&O,ae=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(i(S),{});M===!1&&(W={});const{prevResolvedValues:Ce={}}=C,ne={...Ce,...W},se=j=>{F=!0,g.has(j)&&(ae=!0,g.delete(j)),C.needsAnimating[j]=!0;const V=e.getValue(j);V&&(V.liveStyle=!1)};for(const j in ne){const V=W[j],ge=Ce[j];if(b.hasOwnProperty(j))continue;let U=!1;jb(V)&&jb(ge)?U=!jk(V,ge):U=V!==ge,U?V!=null?se(j):g.add(j):V!==void 0&&g.has(j)?se(j):C.protectedKeys[j]=!0}C.prevProp=T,C.prevResolvedValues=W,C.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(k&&N)||ae)&&m.push(...oe.map(j=>({animation:j,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=ud(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const C=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=C??null}),m.push({animation:D})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=o(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=kA(),r=!0}}}function une(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jk(t,e):!1}function ou(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kA(){return{animate:ou(!0),whileInView:ou(),whileHover:ou(),whileTap:ou(),whileDrag:ou(),whileFocus:ou(),exit:ou()}}let Fa=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},lne=class extends Fa{constructor(t){super(t),t.animationState||(t.animationState=ane(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();tg(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)}},cne=0,fne=class extends Fa{constructor(){super(...arguments),this.id=cne++}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 dne={animation:{Feature:lne},exit:{Feature:fne}};function cd(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ld(e){return{point:{x:e.pageX,y:e.pageY}}}const hne=e=>t=>n$(t)&&e(t,Ld(t));function Rl(e,t,n,r){return cd(e,t,hne(n),r)}function Uk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mne(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const zk=1e-4,gne=1-zk,vne=1+zk,qk=.01,yne=0-qk,bne=0+qk;function Ur(e){return e.max-e.min}function $ne(e,t,n){return Math.abs(e-t)<=n}function OA(e,t,n,r=.5){e.origin=r,e.originPoint=Pn(t.min,t.max,e.origin),e.scale=Ur(n)/Ur(t),e.translate=Pn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gne&&e.scale<=vne||isNaN(e.scale))&&(e.scale=1),(e.translate>=yne&&e.translate<=bne||isNaN(e.translate))&&(e.translate=0)}function zf(e,t,n,r){OA(e.x,t.x,n.x,r?r.originX:void 0),OA(e.y,t.y,n.y,r?r.originY:void 0)}function IA(e,t,n){e.min=n.min+t.min,e.max=e.min+Ur(t)}function xne(e,t,n){IA(e.x,t.x,n.x),IA(e.y,t.y,n.y)}function LA(e,t,n){e.min=t.min-n.min,e.max=e.min+Ur(t)}function qf(e,t,n){LA(e.x,t.x,n.x),LA(e.y,t.y,n.y)}const BA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fl=()=>({x:BA(),y:BA()}),VA=()=>({min:0,max:0}),Wn=()=>({x:VA(),y:VA()});function Vi(e){return[e("x"),e("y")]}function g1(e){return e===void 0||e===1}function Jb({scale:e,scaleX:t,scaleY:n}){return!g1(e)||!g1(t)||!g1(n)}function uu(e){return Jb(e)||Wk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wk(e){return NA(e.x)||NA(e.y)}function NA(e){return e&&e!=="0%"}function em(e,t,n){const r=e-n,i=t*r;return n+i}function jA(e,t,n,r,i){return i!==void 0&&(e=em(e,i,r)),em(e,n,r)+t}function Qb(e,t=0,n=1,r,i){e.min=jA(e.min,t,n,r,i),e.max=jA(e.max,t,n,r,i)}function Hk(e,{x:t,y:n}){Qb(e.x,t.translate,t.scale,t.originPoint),Qb(e.y,n.translate,n.scale,n.originPoint)}const KA=.999999999999,UA=1.0000000000001;function wne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let u=0;u<i;u++){s=n[u],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ol(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Hk(e,o)),r&&uu(s.latestValues)&&Ol(e,s.latestValues))}t.x<UA&&t.x>KA&&(t.x=1),t.y<UA&&t.y>KA&&(t.y=1)}function kl(e,t){e.min=e.min+t,e.max=e.max+t}function zA(e,t,n,r,i=.5){const s=Pn(e.min,e.max,i);Qb(e,t,n,s,r)}function Ol(e,t){zA(e.x,t.x,t.scaleX,t.scale,t.originX),zA(e.y,t.y,t.scaleY,t.scale,t.originY)}function Gk(e,t){return Uk(mne(e.getBoundingClientRect(),t))}function Cne(e,t,n){const r=Gk(e,n),{scroll:i}=t;return i&&(kl(r.x,i.offset.x),kl(r.y,i.offset.y)),r}const qA=(e,t)=>Math.abs(e-t);function Sne(e,t){const n=qA(e.x,t.x),r=qA(e.y,t.y);return Math.sqrt(n**2+r**2)}class Yk{constructor(t,n,{transformPagePoint:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=y1(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Sne(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:b}=h,{timestamp:$}=$r;this.history.push({...b,timestamp:$});const{onStart:w,onMove:D}=this.handlers;m||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{if(this.index=HA(h.currentTarget),h.target instanceof Element&&h.target.hasPointerCapture&&h.pointerId!==void 0)try{if(!h.target.hasPointerCapture(h.pointerId))return}catch{}this.lastMoveEvent=h,this.lastMoveEventInfo=v1(m,this.transformPagePoint),mn.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{Nf(h,"release"),this.end();const{onEnd:g,onSessionEnd:b,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=y1(h.type==="pointercancel"||h.type==="lostpointercapture"?this.lastMoveEventInfo:v1(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,w),b&&b(h,w)},!n$(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r;const s=Ld(t),o=v1(s,this.transformPagePoint),{point:u}=o,{timestamp:l}=$r;this.history=[{...u,timestamp:l}];const{onSessionStart:d}=n;d&&d(t,y1(o,this.history)),Nf(t,"set"),this.removeListeners=Id(Rl(t.currentTarget,"pointermove",this.handlePointerMove),Rl(t.currentTarget,"pointerup",this.handlePointerUp),Rl(t.currentTarget,"pointercancel",this.handlePointerUp),Rl(t.currentTarget,"lostpointercapture",(h,m)=>{HA(h.currentTarget)!==this.index?Nf(h,"set"):this.handlePointerUp(h,m)}))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wo(this.updatePoint)}}function v1(e,t){return t?{point:t(e.point)}:e}function WA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function y1({point:e},t){return{point:e,delta:WA(e,Zk(t)),offset:WA(e,Ene(t)),velocity:Dne(t,.1)}}function Ene(e){return e[0]}function Zk(e){return e[e.length-1]}function Dne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Zk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>to(t)));)n--;if(!r)return{x:0,y:0};const s=jo(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function HA(e){return e.parentNode?Array.from(e.parentNode.children).indexOf(e):-1}function Ane(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pn(n,e,r.max):Math.min(e,n)),e}function GA(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 Tne(e,{top:t,left:n,bottom:r,right:i}){return{x:GA(e.x,n,i),y:GA(e.y,t,r)}}function YA(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 Pne(e,t){return{x:YA(e.x,t.x),y:YA(e.y,t.y)}}function _ne(e,t){let n=.5;const r=Ur(e),i=Ur(t);return i>r?n=oc(t.min,t.max-r,e.min):r>i&&(n=oc(e.min,e.max-i,t.min)),Ho(0,1,n)}function Mne(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 e4=.35;function Rne(e=e4){return e===!1?e=0:e===!0&&(e=e4),{x:ZA(e,"left","right"),y:ZA(e,"top","bottom")}}function ZA(e,t,n){return{min:XA(e,t),max:XA(e,n)}}function XA(e,t){return typeof e=="number"?e:e[t]||0}const Fne=new WeakMap;class kne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ld(h).point)},s=(h,m)=>{const{drag:g,dragPropagation:b,onDragStart:$}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Dee(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(D=>{let S=this.getAxisMotionValue(D).get()||0;if(no.test(S)){const{projection:C}=this.visualElement;if(C&&C.layout){const T=C.layout.layoutBox[D];T&&(S=Ur(T)*(parseFloat(S)/100))}}this.originPoint[D]=S}),$&&mn.postRender(()=>$(h,m)),zb(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(h,m)=>{const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:$,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:D}=m;if(b&&this.currentDirection===null){this.currentDirection=One(D),this.currentDirection!==null&&$&&$(this.currentDirection);return}this.updateAxis("x",m.point,D),this.updateAxis("y",m.point,D),this.visualElement.render(),w&&w(h,m)},u=(h,m)=>this.stop(h,m),l=()=>Vi(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Yk(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&mn.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kh(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Ane(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&_l(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Tne(i.layoutBox,n):this.constraints=!1,this.elastic=Rne(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Vi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Mne(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_l(t))return!1;const r=t.current;io(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Cne(r,i.root,this.visualElement.getTransformPagePoint());let o=Pne(i.layout.layoutBox,s);if(n){const u=n(pne(o));this.hasMutatedConstraints=!!u,u&&(o=Uk(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=Vi(h=>{if(!Kh(h,n,this.currentDirection))return;let m=l&&l[h]||{};o&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,$={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...m};return this.startAxisValueAnimation(h,$)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return zb(this.visualElement,t),r.start(p$(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!Kh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];s.set(t[n]-Pn(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_l(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=_ne({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(o=>{if(!Kh(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:d}=this.constraints[o];u.set(Pn(l,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fne.set(this.visualElement,this);const t=this.visualElement.current,n=Rl(t,"pointerdown",l=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_l(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),mn.read(r);const o=cd(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=l[h].translate,m.set(m.get()+l[h].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=e4,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:u}}}function Kh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function One(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ine extends Fa{constructor(t){super(t),this.removeGroupControls=ui,this.removeListeners=ui,this.controls=new kne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ui}unmount(){this.removeGroupControls(),this.removeListeners()}}const JA=e=>(t,n)=>{e&&mn.postRender(()=>e(t,n))};class Lne extends Fa{constructor(){super(...arguments),this.removePointerDownListener=ui}onPointerDown(t){this.session=new Yk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:JA(t),onStart:JA(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&mn.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Rl(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 mp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function QA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gf={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=QA(e,t.target.x),r=QA(e,t.target.y);return`${n}% ${r}%`}},Bne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Aa.parse(e);if(i.length>5)return r;const s=Aa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const d=Pn(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),s(i)}};class Vne extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;UQ(Nne),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),mp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||mn.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),K3.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 Xk(e){const[t,n]=xQ(),r=A.useContext(k7);return Uo.jsx(Vne,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(j7),isPresent:t,safeToRemove:n})}const Nne={borderRadius:{...gf,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gf,borderTopRightRadius:gf,borderBottomLeftRadius:gf,borderBottomRightRadius:gf,boxShadow:Bne};function jne(e,t,n){const r=xr(e)?e:uc(e);return r.start(p$("",r,t,n)),r.animation}function Kne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Une=(e,t)=>e.depth-t.depth;class zne{constructor(){this.children=[],this.isDirty=!1}add(t){r$(this.children,t),this.isDirty=!0}remove(t){i$(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Une),this.isDirty=!1,this.children.forEach(t)}}function qne(e,t){const n=ro.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Wo(r),e(s-t))};return mn.read(r,!0),()=>Wo(r)}const Jk=["TopLeft","TopRight","BottomLeft","BottomRight"],Wne=Jk.length,eT=e=>typeof e=="string"?parseFloat(e):e,tT=e=>typeof e=="number"||Dt.test(e);function Hne(e,t,n,r,i,s){i?(e.opacity=Pn(0,n.opacity!==void 0?n.opacity:1,Gne(r)),e.opacityExit=Pn(t.opacity!==void 0?t.opacity:1,0,Yne(r))):s&&(e.opacity=Pn(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Wne;o++){const u=`border${Jk[o]}Radius`;let l=nT(t,u),d=nT(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||tT(l)===tT(d)?(e[u]=Math.max(Pn(eT(l),eT(d),r),0),(no.test(d)||no.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Pn(t.rotate||0,n.rotate||0,r))}function nT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Gne=Qk(0,.5,gk),Yne=Qk(.5,.95,ui);function Qk(e,t,n){return r=>r<e?0:r>t?1:n(oc(e,t,r))}function rT(e,t){e.min=t.min,e.max=t.max}function Ii(e,t){rT(e.x,t.x),rT(e.y,t.y)}function iT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function sT(e,t,n,r,i){return e-=t,e=em(e,1/n,r),i!==void 0&&(e=em(e,1/i,r)),e}function Zne(e,t=0,n=1,r=.5,i,s=e,o=e){if(no.test(t)&&(t=parseFloat(t),t=Pn(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Pn(s.min,s.max,r);e===s&&(u-=t),e.min=sT(e.min,t,n,u,i),e.max=sT(e.max,t,n,u,i)}function oT(e,t,[n,r,i],s,o){Zne(e,t[n],t[r],t[i],t.scale,s,o)}const Xne=["x","scaleX","originX"],Jne=["y","scaleY","originY"];function aT(e,t,n,r){oT(e.x,t,Xne,n?n.x:void 0,r?r.x:void 0),oT(e.y,t,Jne,n?n.y:void 0,r?r.y:void 0)}function uT(e){return e.translate===0&&e.scale===1}function eO(e){return uT(e.x)&&uT(e.y)}function lT(e,t){return e.min===t.min&&e.max===t.max}function Qne(e,t){return lT(e.x,t.x)&&lT(e.y,t.y)}function cT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tO(e,t){return cT(e.x,t.x)&&cT(e.y,t.y)}function fT(e){return Ur(e.x)/Ur(e.y)}function dT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ere{constructor(){this.members=[]}add(t){r$(this.members,t),t.scheduleRender()}remove(t){if(i$(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function tre(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:$}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),$&&(r+=`skewY(${$}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const b1=["","X","Y","Z"],nre={visibility:"hidden"},hT=1e3;let rre=0;function $1(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=lk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",mn,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nO(r)}function rO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=rre++,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(ore),this.nodes.forEach(fre),this.nodes.forEach(dre),this.nodes.forEach(are)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new s$),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Kne(o),this.instance=o;const{layoutId:l,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=qne(g,250),mp.hasAnimatedSinceResize&&(mp.hasAnimatedSinceResize=!1,this.nodes.forEach(mT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:$})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||vre,{onLayoutAnimationStart:D,onLayoutAnimationComplete:S}=h.getProps(),C=!this.targetLayout||!tO(this.targetLayout,$),T=!g&&b;if(this.options.layoutRoot||this.resumeFrom||T||g&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,T);const O={...Q3(w,"layout"),onPlay:D,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else g||mT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=$})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(hre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(pT);return}this.isUpdating||this.nodes.forEach(lre),this.isUpdating=!1,this.nodes.forEach(cre),this.nodes.forEach(ire),this.nodes.forEach(sre),this.clearAllSnapshots();const u=ro.now();$r.delta=Ho(0,1e3/60,u-$r.timestamp),$r.timestamp=u,$r.isProcessing=!0,f1.update.process($r),f1.preRender.process($r),f1.render.process($r),$r.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,K3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ure),this.sharedNodes.forEach(pre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ur(this.snapshot.measuredBox.x)&&!Ur(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!eO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;o&&(u||uu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),yre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return Wn();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(bre))){const{scroll:h}=this.root;h&&(kl(l.x,h.offset.x),kl(l.y,h.offset.y))}return l}removeElementScroll(o){var u;const l=Wn();if(Ii(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Ii(l,o),kl(l.x,m.offset.x),kl(l.y,m.offset.y))}return l}applyTransform(o,u=!1){const l=Wn();Ii(l,o);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ol(l,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),uu(h.latestValues)&&Ol(l,h.latestValues)}return uu(this.latestValues)&&Ol(l,this.latestValues),l}removeTransform(o){const u=Wn();Ii(u,o);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!uu(d.latestValues))continue;Jb(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Ii(h,m),aT(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return uu(this.latestValues)&&aT(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$r.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=$r.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),qf(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ii(this.target,this.layout.layoutBox),Hk(this.target,this.targetDelta)):Ii(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),qf(this.relativeTargetOrigin,this.target,b.target),Ii(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Jb(this.parent.latestValues)||Wk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===$r.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;Ii(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;wne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Wn());const{target:$}=u;if(!$){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iT(this.prevProjectionDelta.x,this.projectionDelta.x),iT(this.prevProjectionDelta.y,this.projectionDelta.y)),zf(this.projectionDelta,this.layoutCorrected,$,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!dT(this.projectionDelta.x,this.prevProjectionDelta.x)||!dT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",$))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fl(),this.projectionDelta=Fl(),this.projectionDeltaWithTransform=Fl()}setAnimationOrigin(o,u=!1){const l=this.snapshot,d=l?l.latestValues:{},h={...this.latestValues},m=Fl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=l?l.source:void 0,$=this.layout?this.layout.source:void 0,w=b!==$,D=this.getStack(),S=!D||D.members.length<=1,C=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(gre));this.animationProgress=0;let T;this.mixTargetDelta=O=>{const M=O/1e3;gT(m.x,o.x,M),gT(m.y,o.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mre(this.relativeTarget,this.relativeTargetOrigin,g,M),T&&Qne(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=Wn()),Ii(T,this.relativeTarget)),w&&(this.animationValues=h,Hne(h,d,this.latestValues,M,C,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mn.update(()=>{mp.hasAnimatedSinceResize=!0,this.currentAnimation=jne(0,hT,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:h}=o;if(!(!u||!l||!d)){if(this!==o&&this.layout&&d&&iO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||Wn();const m=Ur(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+m;const g=Ur(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+g}Ii(u,l),Ol(u,h),zf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ere),this.sharedNodes.get(o).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&$1("z",o,d,this.animationValues);for(let h=0;h<b1.length;h++)$1(`rotate${b1[h]}`,o,d,this.animationValues),$1(`skew${b1[h]}`,o,d,this.animationValues);o.render();for(const h in d)o.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nre;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=hp(o==null?void 0:o.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=hp(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!uu(this.latestValues)&&(w.transform=h?h({},""):"none",this.hasProjected=!1),w}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=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 w in od){if(g[w]===void 0)continue;const{correct:D,applyTo:S,isCSSVariable:C}=od[w],T=d.transform==="none"?g[w]:D(g[w],m);if(S){const O=S.length;for(let M=0;M<O;M++)d[S[M]]=T}else C?this.options.visualElement.renderState.vars[w]=T:d[w]=T}return this.options.layoutId&&(d.pointerEvents=m===this?hp(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(pT),this.root.sharedNodes.clear()}}}function ire(e){e.updateLayout()}function sre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(g);g.min=r[m].min,g.max=g.min+b}):iO(s,n.layoutBox,r)&&Vi(m=>{const g=o?n.measuredBox[m]:n.layoutBox[m],b=Ur(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=Fl();zf(u,r,n.layoutBox);const l=Fl();o?zf(l,e.applyTransform(i,!0),n.measuredBox):zf(l,r,n.layoutBox);const d=!eO(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const $=Wn();qf($,n.layoutBox,g.layoutBox);const w=Wn();qf(w,r,b.layoutBox),tO($,w)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=$,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ore(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 are(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ure(e){e.clearSnapshot()}function pT(e){e.clearMeasurements()}function lre(e){e.isLayoutDirty=!1}function cre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fre(e){e.resolveTargetDelta()}function dre(e){e.calcProjection()}function hre(e){e.resetSkewAndRotation()}function pre(e){e.removeLeadSnapshot()}function gT(e,t,n){e.translate=Pn(t.translate,0,n),e.scale=Pn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function vT(e,t,n,r){e.min=Pn(t.min,n.min,r),e.max=Pn(t.max,n.max,r)}function mre(e,t,n,r){vT(e.x,t.x,n.x,r),vT(e.y,t.y,n.y,r)}function gre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vre={duration:.45,ease:[.4,0,.1,1]},yT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bT=yT("applewebkit/")&&!yT("chrome/")?Math.round:ui;function $T(e){e.min=bT(e.min),e.max=bT(e.max)}function yre(e){$T(e.x),$T(e.y)}function iO(e,t,n){return e==="position"||e==="preserve-aspect"&&!$ne(fT(t),fT(n),.2)}function bre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $re=rO({attachResizeListener:(e,t)=>cd(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),x1={current:void 0},sO=rO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!x1.current){const e=new $re({});e.mount(window),e.setOptions({layoutScroll:!0}),x1.current=e}return x1.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),xre={pan:{Feature:Lne},drag:{Feature:Ine,ProjectionNode:sO,MeasureLayout:Xk}};function xT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&mn.postRender(()=>s(t,Ld(t)))}let wre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=$ee(t,(n,r)=>(xT(this.node,r,"Start"),i=>xT(this.node,i,"End"))))}unmount(){}},Cre=class extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Id(cd(this.node.current,"focus",()=>this.onFocus()),cd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function wT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&mn.postRender(()=>s(t,Ld(t)))}let Sre=class extends Fa{mount(){const{current:t}=this.node;t&&(this.unmount=See(t,(n,r)=>(wT(this.node,r,"Start"),(i,{success:s})=>wT(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const t4=new WeakMap,w1=new WeakMap,Ere=e=>{const t=t4.get(e.target);t&&t(e)},Dre=e=>{e.forEach(Ere)};function Are({root:e,...t}){const n=e||document;w1.has(n)||w1.set(n,{});const r=w1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Dre,{root:e,...t})),r[i]}function Tre(e,t,n){const r=Are(t);return t4.set(e,n),r.observe(e),()=>{t4.delete(e),r.unobserve(e)}}const Pre={some:0,all:1};let _re=class extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Pre[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Tre(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Mre(t,n))&&this.startObserver()}unmount(){}};function Mre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Rre={inView:{Feature:_re},tap:{Feature:Sre},focus:{Feature:Cre},hover:{Feature:wre}},Fre={layout:{ProjectionNode:sO,MeasureLayout:Xk}},n4={current:null},oO={current:!1};function kre(){if(oO.current=!0,!!L3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n4.current=e.matches;e.addListener(t),t()}else n4.current=!1}const Ore=[..._k,Ar,Aa],Ire=e=>Ore.find(Pk(e)),Lre=new WeakMap;function Bre(e,t,n){for(const r in t){const i=t[r],s=n[r];if(xr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Qm(i.version==="12.4.10",`Attempting to mix Motion versions ${i.version} with 12.4.10 may not work as expected.`);else if(xr(s))e.addValue(r,uc(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,uc(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const CT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=f$,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=ro.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,mn.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=ng(n),this.isVariantNode=V7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&xr($)&&$.set(l[b],!1)}}mount(t){this.current=t,Lre.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)),oO.current||kre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:n4.current,process.env.NODE_ENV!=="production"&&Qm(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Wo(this.notifyUpdate),Wo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Nu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&mn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ac){const n=ac[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<CT.length;r++){const i=CT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Bre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ak(i)||yk(i))?i=parseFloat(i):!Ire(i)&&Aa.test(n)&&(i=Sk(t,n)),this.setBaseTarget(t,xr(i)?i.get():i)),xr(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=X3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!xr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new s$),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},aO=class extends Vre{constructor(){super(...arguments),this.KeyframeResolver=Mk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Nre(e){return window.getComputedStyle(e)}let jre=class extends aO{constructor(){super(...arguments),this.type="html",this.renderInstance=Z7}readValueFromInstance(t,n){if(Nu.has(n)){const r=c$(n);return r&&r.default||0}else{const r=Nre(t),i=(U3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Gk(t,n)}build(t,n,r){W3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return J3(t,n,r)}},Kre=class extends aO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Y7(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Nu.has(n)){const r=c$(n);return r&&r.default||0}return n=X7.has(n)?n:j3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Q7(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&mn.postRender(this.updateDimensions)}build(t,n,r){Y3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){J7(t,n,r,i)}mount(t){this.isSVGTag=Z3(t.tagName),super.mount(t)}};const Ure=(e,t)=>G3(e)?new Kre(t):new jre(t,{allowProjection:e!==A.Fragment}),zre=hee({...dne,...Rre,...xre,...Fre},Ure),uO=PQ(zre);function lO(e){const t=Fd(()=>uc(e)),{isStatic:n}=A.useContext(I3);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function cO(e,t){const n=lO(t()),r=()=>n.set(t());return r(),O7(()=>{const i=()=>mn.preRender(r,!1,!0),s=e.map(o=>o.on("change",i));return()=>{s.forEach(o=>o()),Wo(r)}}),n}const qre=e=>e&&typeof e=="object"&&e.mix,Wre=e=>qre(e)?e.mix:void 0;function Hre(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],s=e[2+n],o=e[3+n],u=Bk(i,s,{mixer:Wre(s[0]),...o});return t?u(r):u}function Gre(e){jf.current=[],e();const t=cO(jf.current,e);return jf.current=void 0,t}function Yre(e,t,n,r){if(typeof e=="function")return Gre(e);const i=typeof t=="function"?t:Hre(t,n,r);return Array.isArray(e)?ST(e,i):ST([e],([s])=>i(s))}function ST(e,t){const n=Fd(()=>[]);return cO(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const fO=A.createContext(null);function Zre(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const s=r>0?1:-1,o=e[i+s];if(!o)return e;const u=e[i],l=o.layout,d=Pn(l.min,l.max,.5);return s===1&&u.layout.max+n>d||s===-1&&u.layout.min+n<d?Tee(e,i,i+s):e}function Xre({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...s},o){const u=Fd(()=>uO[t]),l=[],d=A.useRef(!1);io(!!i,"Reorder.Group must be provided a values prop");const h={axis:n,registerItem:(m,g)=>{const b=l.findIndex($=>m===$.value);b!==-1?l[b].layout=g[n]:l.push({value:m,layout:g[n]}),l.sort(eie)},updateOrder:(m,g,b)=>{if(d.current)return;const $=Zre(l,m,g,b);l!==$&&(d.current=!0,r($.map(Qre).filter(w=>i.indexOf(w)!==-1)))}};return A.useEffect(()=>{d.current=!1}),Uo.jsx(u,{...s,ref:o,ignoreStrict:!0,children:Uo.jsx(fO.Provider,{value:h,children:e})})}const Jre=A.forwardRef(Xre);function Qre(e){return e.value}function eie(e,t){return e.layout.min-t.layout.min}function ET(e,t=0){return xr(e)?e:lO(t)}function tie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:s=!0,...o},u){const l=Fd(()=>uO[r]),d=A.useContext(fO),h={x:ET(t.x),y:ET(t.y)},m=Yre([h.x,h.y],([w,D])=>w||D?1:"unset");io(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:g,registerItem:b,updateOrder:$}=d;return Uo.jsx(l,{drag:g,...o,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:s,onDrag:(w,D)=>{const{velocity:S}=D;S[g]&&$(n,h[g].get(),S[g]),i&&i(w,D)},onLayoutMeasure:w=>b(n,w),ref:u,ignoreStrict:!0,children:e})}const nie=A.forwardRef(tie);var gp={exports:{}},rie=gp.exports,DT;function iie(){return DT||(DT=1,function(e,t){(function(n,r){e.exports=r()})(rie,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,s){var o=i.prototype,u=o.format;s.en.formats=n,o.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,$,w){var D=w&&w.toUpperCase();return $||g[w]||n[w]||g[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,C,T){return C||T.slice(1)})})}(l,d===void 0?{}:d);return u.call(this,h)}}})}(gp)),gp.exports}var sie=iie();const oie=ws(sie),AT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=rt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},dO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?AT(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>AT(i,n,e))}},aie=(e,t)=>{t.shouldUseNativeValidation&&dO(e,t);const n={};for(const r in e){const i=rt(t.fields,r),s=Object.assign(e[r]||{},{ref:i&&i.ref});if(uie(t.names||Object.keys(e),r)){const o=Object.assign({},rt(n,r));Xt(o,"root",s),Xt(n,r,o)}else Xt(n,r,s)}return n},uie=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function lie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,s){try{return Promise.resolve(function(o,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return s.shouldUseNativeValidation&&dO({},s),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:aie((u=o,l=!s.shouldUseNativeValidation&&s.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),l){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=e5(h.path,l,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),s)};var u,l}))}catch(o){return Promise.reject(o)}}}var Rf={exports:{}},cie=Rf.exports,TT;function fie(){return TT||(TT=1,function(e,t){(function(n,r){r(t,A)})(cie,function(n,r){function i(se){return se&&typeof se=="object"&&"default"in se?se:{default:se}}var s=i(r),o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof qi<"u"?qi:typeof self<"u"?self:{},u={exports:{}};(function(se,z){typeof navigator<"u"&&function(K,j){se.exports=j()}(o,function(){var K="http://www.w3.org/2000/svg",j="",V=!1,ge=-999999,U=function(p){V=!!p},J=function(){return V},xe=function(p){j=p},Pe=function(){return j};function Oe(c){return document.createElement(c)}function Ie(c,p){var v,x=c.length,P;for(v=0;v<x;v+=1){P=c[v].prototype;for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&(p.prototype[_]=P[_])}}function Ze(c){function p(){}return p.prototype=c,p}var Ge=function(){function c(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return c.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].pause()},resume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].resume()},setRate:function(v){var x,P=this.audios.length;for(x=0;x<P;x+=1)this.audios[x].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,x=this.audios.length;for(v=0;v<x;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new c}}(),De=function(){function c(v,x){var P=0,_=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(P=0;P<x;P+=1)_.push(q);return _}function p(v,x){return v==="float32"?new Float32Array(x):v==="int16"?new Int16Array(x):v==="uint8c"?new Uint8ClampedArray(x):c(v,x)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:c}();function Ue(c){return Array.apply(null,{length:c})}var Re=!0,Ve=null,Le="",nt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),xt=Math.pow,ln=Math.sqrt,$t=Math.floor,Rt=Math.min,$e=150,Ee=Math.PI/180,Te=.5519;function He(c,p,v,x){this.type=c,this.currentTime=p,this.totalTime=v,this.direction=x<0?-1:1}function et(c,p){this.type=c,this.direction=p<0?-1:1}function Je(c,p,v,x){this.type=c,this.currentLoop=v,this.totalLoops=p,this.direction=x<0?-1:1}function lt(c,p,v){this.type=c,this.firstFrame=p,this.totalFrames=v}function bt(c,p){this.type=c,this.target=p}function gn(c,p){this.type="renderFrameError",this.nativeError=c,this.currentTime=p}function Jt(c){this.type="configError",this.nativeError=c}var Ut=function(){var c=0;return function(){return c+=1,Le+"__lottie_element_"+c}}();function Yr(c,p,v){var x,P,_,q,pe,ee,ye,we;switch(q=Math.floor(c*6),pe=c*6-q,ee=v*(1-p),ye=v*(1-pe*p),we=v*(1-(1-pe)*p),q%6){case 0:x=v,P=we,_=ee;break;case 1:x=ye,P=v,_=ee;break;case 2:x=ee,P=v,_=we;break;case 3:x=ee,P=ye,_=v;break;case 4:x=we,P=ee,_=v;break;case 5:x=v,P=ee,_=ye;break}return[x,P,_]}function Fr(c,p,v){var x=Math.max(c,p,v),P=Math.min(c,p,v),_=x-P,q,pe=x===0?0:_/x,ee=x/255;switch(x){case P:q=0;break;case c:q=p-v+_*(p<v?6:0),q/=6*_;break;case p:q=v-c+_*2,q/=6*_;break;case v:q=c-p+_*4,q/=6*_;break}return[q,pe,ee]}function rn(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),Yr(v[0],v[1],v[2])}function Pt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),Yr(v[0],v[1],v[2])}function Lt(c,p){var v=Fr(c[0]*255,c[1]*255,c[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),Yr(v[0],v[1],v[2])}(function(){var c=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),c[p]=v.length===1?"0"+v:v;return function(x,P,_){return x<0&&(x=0),P<0&&(P=0),_<0&&(_=0),"#"+c[x]+c[P]+c[_]}})();var Yt=function(p){Re=!!p},sr=function(){return Re},Qi=function(p){Ve=p},es=function(){return Ve},Ci=function(p){$e=p},Ds=function(){return $e},ka=function(p){Le=p};function yt(c){return document.createElementNS(K,c)}function ci(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ci=function(v){return typeof v}:ci=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ci(c)}var ao=function(){var c=1,p=[],v,x,P={onmessage:function(){},postMessage:function(te){v({data:te})}},_={postMessage:function(te){P.onmessage({data:te})}};function q(R){if(window.Worker&&window.Blob&&J()){var te=new Blob(["var _workerSelf = self; self.onmessage = ",R.toString()],{type:"text/javascript"}),Y=URL.createObjectURL(te);return new Worker(Y)}return v=R,P}function pe(){x||(x=q(function(te){function Y(){function fe(Be,be){var ce,Q,me=Be.length,je,Fe,ct,Tt;for(Q=0;Q<me;Q+=1)if(ce=Be[Q],"ks"in ce&&!ce.completed){if(ce.completed=!0,ce.hasMask){var Ct=ce.masksProperties;for(Fe=Ct.length,je=0;je<Fe;je+=1)if(Ct[je].pt.k.i)G(Ct[je].pt.k);else for(Tt=Ct[je].pt.k.length,ct=0;ct<Tt;ct+=1)Ct[je].pt.k[ct].s&&G(Ct[je].pt.k[ct].s[0]),Ct[je].pt.k[ct].e&&G(Ct[je].pt.k[ct].e[0])}ce.ty===0?(ce.layers=I(ce.refId,be),fe(ce.layers,be)):ce.ty===4?B(ce.shapes):ce.ty===5&&at(ce)}}function H(Be,be){if(Be){var ce=0,Q=Be.length;for(ce=0;ce<Q;ce+=1)Be[ce].t===1&&(Be[ce].data.layers=I(Be[ce].data.refId,be),fe(Be[ce].data.layers,be))}}function Z(Be,be){for(var ce=0,Q=be.length;ce<Q;){if(be[ce].id===Be)return be[ce];ce+=1}return null}function I(Be,be){var ce=Z(Be,be);return ce?ce.layers.__used?JSON.parse(JSON.stringify(ce.layers)):(ce.layers.__used=!0,ce.layers):null}function B(Be){var be,ce=Be.length,Q,me;for(be=ce-1;be>=0;be-=1)if(Be[be].ty==="sh")if(Be[be].ks.k.i)G(Be[be].ks.k);else for(me=Be[be].ks.k.length,Q=0;Q<me;Q+=1)Be[be].ks.k[Q].s&&G(Be[be].ks.k[Q].s[0]),Be[be].ks.k[Q].e&&G(Be[be].ks.k[Q].e[0]);else Be[be].ty==="gr"&&B(Be[be].it)}function G(Be){var be,ce=Be.i.length;for(be=0;be<ce;be+=1)Be.i[be][0]+=Be.v[be][0],Be.i[be][1]+=Be.v[be][1],Be.o[be][0]+=Be.v[be][0],Be.o[be][1]+=Be.v[be][1]}function re(Be,be){var ce=be?be.split("."):[100,100,100];return Be[0]>ce[0]?!0:ce[0]>Be[0]?!1:Be[1]>ce[1]?!0:ce[1]>Be[1]?!1:Be[2]>ce[2]?!0:ce[2]>Be[2]?!1:null}var le=function(){var Be=[4,4,14];function be(Q){var me=Q.t.d;Q.t.d={k:[{s:me,t:0}]}}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),he=function(){var Be=[4,7,99];return function(be){if(be.chars&&!re(Be,be.v)){var ce,Q=be.chars.length;for(ce=0;ce<Q;ce+=1){var me=be.chars[ce];me.data&&me.data.shapes&&(B(me.data.shapes),me.data.ip=0,me.data.op=99999,me.data.st=0,me.data.sr=1,me.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},be.chars[ce].t||(me.data.shapes.push({ty:"no"}),me.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),ke=function(){var Be=[5,7,15];function be(Q){var me=Q.t.p;typeof me.a=="number"&&(me.a={a:0,k:me.a}),typeof me.p=="number"&&(me.p={a:0,k:me.p}),typeof me.r=="number"&&(me.r={a:0,k:me.r})}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===5&&be(Q[me])}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),tt=function(){var Be=[4,1,9];function be(Q){var me,je=Q.length,Fe,ct;for(me=0;me<je;me+=1)if(Q[me].ty==="gr")be(Q[me].it);else if(Q[me].ty==="fl"||Q[me].ty==="st")if(Q[me].c.k&&Q[me].c.k[0].i)for(ct=Q[me].c.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].c.k[Fe].s&&(Q[me].c.k[Fe].s[0]/=255,Q[me].c.k[Fe].s[1]/=255,Q[me].c.k[Fe].s[2]/=255,Q[me].c.k[Fe].s[3]/=255),Q[me].c.k[Fe].e&&(Q[me].c.k[Fe].e[0]/=255,Q[me].c.k[Fe].e[1]/=255,Q[me].c.k[Fe].e[2]/=255,Q[me].c.k[Fe].e[3]/=255);else Q[me].c.k[0]/=255,Q[me].c.k[1]/=255,Q[me].c.k[2]/=255,Q[me].c.k[3]/=255}function ce(Q){var me,je=Q.length;for(me=0;me<je;me+=1)Q[me].ty===4&&be(Q[me].shapes)}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}(),Qe=function(){var Be=[4,4,18];function be(Q){var me,je=Q.length,Fe,ct;for(me=je-1;me>=0;me-=1)if(Q[me].ty==="sh")if(Q[me].ks.k.i)Q[me].ks.k.c=Q[me].closed;else for(ct=Q[me].ks.k.length,Fe=0;Fe<ct;Fe+=1)Q[me].ks.k[Fe].s&&(Q[me].ks.k[Fe].s[0].c=Q[me].closed),Q[me].ks.k[Fe].e&&(Q[me].ks.k[Fe].e[0].c=Q[me].closed);else Q[me].ty==="gr"&&be(Q[me].it)}function ce(Q){var me,je,Fe=Q.length,ct,Tt,Ct,xn;for(je=0;je<Fe;je+=1){if(me=Q[je],me.hasMask){var zt=me.masksProperties;for(Tt=zt.length,ct=0;ct<Tt;ct+=1)if(zt[ct].pt.k.i)zt[ct].pt.k.c=zt[ct].cl;else for(xn=zt[ct].pt.k.length,Ct=0;Ct<xn;Ct+=1)zt[ct].pt.k[Ct].s&&(zt[ct].pt.k[Ct].s[0].c=zt[ct].cl),zt[ct].pt.k[Ct].e&&(zt[ct].pt.k[Ct].e[0].c=zt[ct].cl)}me.ty===4&&be(me.shapes)}}return function(Q){if(re(Be,Q.v)&&(ce(Q.layers),Q.assets)){var me,je=Q.assets.length;for(me=0;me<je;me+=1)Q.assets[me].layers&&ce(Q.assets[me].layers)}}}();function Ne(Be){Be.__complete||(tt(Be),le(Be),he(Be),ke(Be),Qe(Be),fe(Be.layers,Be.assets),H(Be.chars,Be.assets),Be.__complete=!0)}function at(Be){Be.t.a.length===0&&"m"in Be.t.p}var ft={};return ft.completeData=Ne,ft.checkColors=tt,ft.checkChars=he,ft.checkPathProperties=ke,ft.checkShapes=Qe,ft.completeLayers=fe,ft}if(_.dataManager||(_.dataManager=Y()),_.assetLoader||(_.assetLoader=function(){function fe(Z){var I=Z.getResponseHeader("content-type");return I&&Z.responseType==="json"&&I.indexOf("json")!==-1||Z.response&&ci(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,I,B,G){var re,le=new XMLHttpRequest;try{le.responseType="json"}catch{}le.onreadystatechange=function(){if(le.readyState===4)if(le.status===200)re=fe(le),B(re);else try{re=fe(le),B(re)}catch(he){G&&G(he)}};try{le.open(["G","E","T"].join(""),Z,!0)}catch{le.open(["G","E","T"].join(""),I+"/"+Z,!0)}le.send()}return{load:H}}()),te.data.type==="loadAnimation")_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.dataManager.completeData(fe),_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})});else if(te.data.type==="complete"){var de=te.data.animation;_.dataManager.completeData(de),_.postMessage({id:te.data.id,payload:de,status:"success"})}else te.data.type==="loadData"&&_.assetLoader.load(te.data.path,te.data.fullPath,function(fe){_.postMessage({id:te.data.id,payload:fe,status:"success"})},function(){_.postMessage({id:te.data.id,status:"error"})})}),x.onmessage=function(R){var te=R.data,Y=te.id,de=p[Y];p[Y]=null,te.status==="success"?de.onComplete(te.payload):de.onError&&de.onError()})}function ee(R,te){c+=1;var Y="processId_"+c;return p[Y]={onComplete:R,onError:te},Y}function ye(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"loadAnimation",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function we(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"loadData",path:R,fullPath:window.location.origin+window.location.pathname,id:de})}function Me(R,te,Y){pe();var de=ee(te,Y);x.postMessage({type:"complete",animation:R,id:de})}return{loadAnimation:ye,loadData:we,completeAnimation:Me}}(),Fc=function(){var c=function(){var H=Oe("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,I){var B="";if(H.e)B=H.p;else if(Z){var G=H.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),B=Z+G}else B=I,B+=H.u?H.u:"",B+=H.p;return B}function P(H){var Z=0,I=setInterval((function(){var B=H.getBBox();(B.width||Z>500)&&(this._imageLoaded(),clearInterval(I)),Z+=1}).bind(this),50)}function _(H){var Z=x(H,this.assetsPath,this.path),I=yt("image");nt?this.testImageLoaded(I):I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){B.img=c,this._imageLoaded()}).bind(this),!1),I.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(I):this._elementHelper.appendChild(I);var B={img:I,assetData:H};return B}function q(H){var Z=x(H,this.assetsPath,this.path),I=Oe("img");I.crossOrigin="anonymous",I.addEventListener("load",this._imageLoaded,!1),I.addEventListener("error",(function(){B.img=c,this._imageLoaded()}).bind(this),!1),I.src=Z;var B={img:I,assetData:H};return B}function pe(H){var Z={assetData:H},I=x(H,this.assetsPath,this.path);return ao.loadData(I,(function(B){Z.img=B,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function ee(H,Z){this.imagesLoadedCb=Z;var I,B=H.length;for(I=0;I<B;I+=1)H[I].layers||(!H[I].t||H[I].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(H[I]))):H[I].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(H[I]))))}function ye(H){this.path=H||""}function we(H){this.assetsPath=H||""}function Me(H){for(var Z=0,I=this.images.length;Z<I;){if(this.images[Z].assetData===H)return this.images[Z].img;Z+=1}return null}function R(){this.imagesLoadedCb=null,this.images.length=0}function te(){return this.totalImages===this.loadedAssets}function Y(){return this.totalFootages===this.loadedFootagesCount}function de(H,Z){H==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function fe(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=P.bind(this),this.createFootageData=pe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:ee,setAssetsPath:we,setPath:ye,loadedImages:te,loadedFootages:Y,destroy:R,getAsset:Me,createImgData:q,createImageData:_,imageLoaded:p,footageLoaded:v,setCacheType:de},fe}();function Uu(){}Uu.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 kc=function(){function c(p){for(var v=p.split(`\r
|
|
127
|
+
`),x={},P,_=0,q=0;q<v.length;q+=1)P=v[q].split(":"),P.length===2&&(x[P[0]]=P[1].trim(),_+=1);if(_===0)throw new Error;return x}return function(p){for(var v=[],x=0;x<p.length;x+=1){var P=p[x],_={time:P.tm,duration:P.dr};try{_.payload=JSON.parse(p[x].cm)}catch{try{_.payload=c(p[x].cm)}catch{_.payload={name:p[x].cm}}}v.push(_)}return v}}(),zu=function(){function c(p){this.compositions.push(p)}return function(){function p(v){for(var x=0,P=this.compositions.length;x<P;){if(this.compositions[x].data&&this.compositions[x].data.nm===v)return this.compositions[x].prepareFrame&&this.compositions[x].data.xt&&this.compositions[x].prepareFrame(this.currentFrame),this.compositions[x].compInterface;x+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=c,p}}(),Oa={},qu=function(p,v){Oa[p]=v};function ts(c){return Oa[c]}function ns(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(v){return typeof v}:ns=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},ns(c)}var vt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Ut(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=sr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=zu(),this.imagePreloader=new Fc,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new He("drawnFrame",0,0,0)};Ie([Uu],vt),vt.prototype.setParams=function(c){(c.wrapper||c.container)&&(this.wrapper=c.wrapper||c.container);var p="svg";c.animType?p=c.animType:c.renderer&&(p=c.renderer);var v=ts(p);this.renderer=new v(this,c.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,c.loop===""||c.loop===null||c.loop===void 0||c.loop===!0?this.loop=!0:c.loop===!1?this.loop=!1:this.loop=parseInt(c.loop,10),this.autoplay="autoplay"in c?c.autoplay:!0,this.name=c.name?c.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(c,"autoloadSegments")?c.autoloadSegments:!0,this.assetsPath=c.assetsPath,this.initialSegment=c.initialSegment,c.audioFactory&&this.audioController.setAudioFactory(c.audioFactory),c.animationData?this.setupAnimation(c.animationData):c.path&&(c.path.lastIndexOf("\\")!==-1?this.path=c.path.substr(0,c.path.lastIndexOf("\\")+1):this.path=c.path.substr(0,c.path.lastIndexOf("/")+1),this.fileName=c.path.substr(c.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ao.loadAnimation(c.path,this.configAnimation,this.onSetupError))},vt.prototype.onSetupError=function(){this.trigger("data_failed")},vt.prototype.setupAnimation=function(c){ao.completeAnimation(c,this.configAnimation)},vt.prototype.setData=function(c,p){p&&ns(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:c,animationData:p},x=c.attributes;v.path=x.getNamedItem("data-animation-path")?x.getNamedItem("data-animation-path").value:x.getNamedItem("data-bm-path")?x.getNamedItem("data-bm-path").value:x.getNamedItem("bm-path")?x.getNamedItem("bm-path").value:"",v.animType=x.getNamedItem("data-anim-type")?x.getNamedItem("data-anim-type").value:x.getNamedItem("data-bm-type")?x.getNamedItem("data-bm-type").value:x.getNamedItem("bm-type")?x.getNamedItem("bm-type").value:x.getNamedItem("data-bm-renderer")?x.getNamedItem("data-bm-renderer").value:x.getNamedItem("bm-renderer")?x.getNamedItem("bm-renderer").value:"canvas";var P=x.getNamedItem("data-anim-loop")?x.getNamedItem("data-anim-loop").value:x.getNamedItem("data-bm-loop")?x.getNamedItem("data-bm-loop").value:x.getNamedItem("bm-loop")?x.getNamedItem("bm-loop").value:"";P==="false"?v.loop=!1:P==="true"?v.loop=!0:P!==""&&(v.loop=parseInt(P,10));var _=x.getNamedItem("data-anim-autoplay")?x.getNamedItem("data-anim-autoplay").value:x.getNamedItem("data-bm-autoplay")?x.getNamedItem("data-bm-autoplay").value:x.getNamedItem("bm-autoplay")?x.getNamedItem("bm-autoplay").value:!0;v.autoplay=_!=="false",v.name=x.getNamedItem("data-name")?x.getNamedItem("data-name").value:x.getNamedItem("data-bm-name")?x.getNamedItem("data-bm-name").value:x.getNamedItem("bm-name")?x.getNamedItem("bm-name").value:"";var q=x.getNamedItem("data-anim-prerender")?x.getNamedItem("data-anim-prerender").value:x.getNamedItem("data-bm-prerender")?x.getNamedItem("data-bm-prerender").value:x.getNamedItem("bm-prerender")?x.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},vt.prototype.includeLayers=function(c){c.op>this.animationData.op&&(this.animationData.op=c.op,this.totalFrames=Math.floor(c.op-this.animationData.ip));var p=this.animationData.layers,v,x=p.length,P=c.layers,_,q=P.length;for(_=0;_<q;_+=1)for(v=0;v<x;){if(p[v].id===P[_].id){p[v]=P[_];break}v+=1}if((c.chars||c.fonts)&&(this.renderer.globalData.fontManager.addChars(c.chars),this.renderer.globalData.fontManager.addFonts(c.fonts,this.renderer.globalData.defs)),c.assets)for(x=c.assets.length,v=0;v<x;v+=1)this.animationData.assets.push(c.assets[v]);this.animationData.__complete=!1,ao.completeAnimation(this.animationData,this.onSegmentComplete)},vt.prototype.onSegmentComplete=function(c){this.animationData=c;var p=es();p&&p.initExpressions(this),this.loadNextSegment()},vt.prototype.loadNextSegment=function(){var c=this.animationData.segments;if(!c||c.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=c.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ao.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},vt.prototype.loadSegments=function(){var c=this.animationData.segments;c||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},vt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},vt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},vt.prototype.configAnimation=function(c){if(this.renderer)try{this.animationData=c,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(c),c.assets||(c.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(c.assets),this.markers=kc(c.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},vt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},vt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var c=es();c&&c.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},vt.prototype.resize=function(c,p){var v=typeof c=="number"?c:void 0,x=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,x)},vt.prototype.setSubframe=function(c){this.isSubframeEnabled=!!c},vt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},vt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(c){this.triggerRenderFrameError(c)}},vt.prototype.play=function(c){c&&this.name!==c||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},vt.prototype.pause=function(c){c&&this.name!==c||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},vt.prototype.togglePause=function(c){c&&this.name!==c||(this.isPaused===!0?this.play():this.pause())},vt.prototype.stop=function(c){c&&this.name!==c||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},vt.prototype.getMarkerData=function(c){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===c)return p;return null},vt.prototype.goToAndStop=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&this.goToAndStop(P.time,!0)}else p?this.setCurrentRawFrameValue(c):this.setCurrentRawFrameValue(c*this.frameModifier);this.pause()}},vt.prototype.goToAndPlay=function(c,p,v){if(!(v&&this.name!==v)){var x=Number(c);if(isNaN(x)){var P=this.getMarkerData(c);P&&(P.duration?this.playSegments([P.time,P.time+P.duration],!0):this.goToAndStop(P.time,!0))}else this.goToAndStop(x,p,v);this.play()}},vt.prototype.advanceTime=function(c){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+c*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},vt.prototype.adjustSegment=function(c,p){this.playCount=0,c[1]<c[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=c[0]-c[1],this.timeCompleted=this.totalFrames,this.firstFrame=c[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):c[1]>c[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=c[1]-c[0],this.timeCompleted=this.totalFrames,this.firstFrame=c[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},vt.prototype.setSegment=function(c,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<c?v=c:this.currentRawFrame+this.firstFrame>p&&(v=p-c)),this.firstFrame=c,this.totalFrames=p-c,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},vt.prototype.playSegments=function(c,p){if(p&&(this.segments.length=0),ns(c[0])==="object"){var v,x=c.length;for(v=0;v<x;v+=1)this.segments.push(c[v])}else this.segments.push(c);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},vt.prototype.resetSegments=function(c){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),c&&this.checkSegments(0)},vt.prototype.checkSegments=function(c){return this.segments.length?(this.adjustSegment(this.segments.shift(),c),!0):!1},vt.prototype.destroy=function(c){c&&this.name!==c||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},vt.prototype.setCurrentRawFrameValue=function(c){this.currentRawFrame=c,this.gotoFrame()},vt.prototype.setSpeed=function(c){this.playSpeed=c,this.updaFrameModifier()},vt.prototype.setDirection=function(c){this.playDirection=c<0?-1:1,this.updaFrameModifier()},vt.prototype.setLoop=function(c){this.loop=c},vt.prototype.setVolume=function(c,p){p&&this.name!==p||this.audioController.setVolume(c)},vt.prototype.getVolume=function(){return this.audioController.getVolume()},vt.prototype.mute=function(c){c&&this.name!==c||this.audioController.mute()},vt.prototype.unmute=function(c){c&&this.name!==c||this.audioController.unmute()},vt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},vt.prototype.getPath=function(){return this.path},vt.prototype.getAssetsPath=function(c){var p="";if(c.e)p=c.p;else if(this.assetsPath){var v=c.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=c.u?c.u:"",p+=c.p;return p},vt.prototype.getAssetData=function(c){for(var p=0,v=this.assets.length;p<v;){if(c===this.assets[p].id)return this.assets[p];p+=1}return null},vt.prototype.hide=function(){this.renderer.hide()},vt.prototype.show=function(){this.renderer.show()},vt.prototype.getDuration=function(c){return c?this.totalFrames:this.totalFrames/this.frameRate},vt.prototype.updateDocumentData=function(c,p,v){try{var x=this.renderer.getElementByPath(c);x.updateDocumentData(p,v)}catch{}},vt.prototype.trigger=function(c){if(this._cbs&&this._cbs[c])switch(c){case"enterFrame":this.triggerEvent(c,new He(c,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(c,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(c,new Je(c,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(c,new et(c,this.frameMult));break;case"segmentStart":this.triggerEvent(c,new lt(c,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(c,new bt(c,this));break;default:this.triggerEvent(c)}c==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new He(c,this.currentFrame,this.totalFrames,this.frameMult)),c==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Je(c,this.loop,this.playCount,this.frameMult)),c==="complete"&&this.onComplete&&this.onComplete.call(this,new et(c,this.frameMult)),c==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new lt(c,this.firstFrame,this.totalFrames)),c==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new bt(c,this))},vt.prototype.triggerRenderFrameError=function(c){var p=new gn(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},vt.prototype.triggerConfigError=function(c){var p=new Jt(c,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var En=function(){var c={},p=[],v=0,x=0,P=0,_=!0,q=!1;function pe(be){for(var ce=0,Q=be.target;ce<x;)p[ce].animation===Q&&(p.splice(ce,1),ce-=1,x-=1,Q.isPaused||Me()),ce+=1}function ee(be,ce){if(!be)return null;for(var Q=0;Q<x;){if(p[Q].elem===be&&p[Q].elem!==null)return p[Q].animation;Q+=1}var me=new vt;return R(me,be),me.setData(be,ce),me}function ye(){var be,ce=p.length,Q=[];for(be=0;be<ce;be+=1)Q.push(p[be].animation);return Q}function we(){P+=1,tt()}function Me(){P-=1}function R(be,ce){be.addEventListener("destroy",pe),be.addEventListener("_active",we),be.addEventListener("_idle",Me),p.push({elem:ce,animation:be}),x+=1}function te(be){var ce=new vt;return R(ce,null),ce.setParams(be),ce}function Y(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setSpeed(be,ce)}function de(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setDirection(be,ce)}function fe(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.play(be)}function H(be){var ce=be-v,Q;for(Q=0;Q<x;Q+=1)p[Q].animation.advanceTime(ce);v=be,P&&!q?window.requestAnimationFrame(H):_=!0}function Z(be){v=be,window.requestAnimationFrame(H)}function I(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.pause(be)}function B(be,ce,Q){var me;for(me=0;me<x;me+=1)p[me].animation.goToAndStop(be,ce,Q)}function G(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.stop(be)}function re(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.togglePause(be)}function le(be){var ce;for(ce=x-1;ce>=0;ce-=1)p[ce].animation.destroy(be)}function he(be,ce,Q){var me=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,Fe=me.length;for(je=0;je<Fe;je+=1)Q&&me[je].setAttribute("data-bm-type",Q),ee(me[je],be);if(ce&&Fe===0){Q||(Q="svg");var ct=document.getElementsByTagName("body")[0];ct.innerText="";var Tt=Oe("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",Q),ct.appendChild(Tt),ee(Tt,be)}}function ke(){var be;for(be=0;be<x;be+=1)p[be].animation.resize()}function tt(){!q&&P&&_&&(window.requestAnimationFrame(Z),_=!1)}function Qe(){q=!0}function Ne(){q=!1,tt()}function at(be,ce){var Q;for(Q=0;Q<x;Q+=1)p[Q].animation.setVolume(be,ce)}function ft(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.mute(be)}function Be(be){var ce;for(ce=0;ce<x;ce+=1)p[ce].animation.unmute(be)}return c.registerAnimation=ee,c.loadAnimation=te,c.setSpeed=Y,c.setDirection=de,c.play=fe,c.pause=I,c.stop=G,c.togglePause=re,c.searchAnimations=he,c.resize=ke,c.goToAndStop=B,c.destroy=le,c.freeze=Qe,c.unfreeze=Ne,c.setVolume=at,c.mute=ft,c.unmute=Be,c.getRegisteredAnimations=ye,c}(),uo=function(){var c={};c.getBezierEasing=v;var p={};function v(Z,I,B,G,re){var le=re||("bez_"+Z+"_"+I+"_"+B+"_"+G).replace(/\./g,"p");if(p[le])return p[le];var he=new H([Z,I,B,G]);return p[le]=he,he}var x=4,P=.001,_=1e-7,q=10,pe=11,ee=1/(pe-1),ye=typeof Float32Array=="function";function we(Z,I){return 1-3*I+3*Z}function Me(Z,I){return 3*I-6*Z}function R(Z){return 3*Z}function te(Z,I,B){return((we(I,B)*Z+Me(I,B))*Z+R(I))*Z}function Y(Z,I,B){return 3*we(I,B)*Z*Z+2*Me(I,B)*Z+R(I)}function de(Z,I,B,G,re){var le,he,ke=0;do he=I+(B-I)/2,le=te(he,G,re)-Z,le>0?B=he:I=he;while(Math.abs(le)>_&&++ke<q);return he}function fe(Z,I,B,G){for(var re=0;re<x;++re){var le=Y(I,B,G);if(le===0)return I;var he=te(I,B,G)-Z;I-=he/le}return I}function H(Z){this._p=Z,this._mSampleValues=ye?new Float32Array(pe):new Array(pe),this._precomputed=!1,this.get=this.get.bind(this)}return H.prototype={get:function(I){var B=this._p[0],G=this._p[1],re=this._p[2],le=this._p[3];return this._precomputed||this._precompute(),B===G&&re===le?I:I===0?0:I===1?1:te(this._getTForX(I),G,le)},_precompute:function(){var I=this._p[0],B=this._p[1],G=this._p[2],re=this._p[3];this._precomputed=!0,(I!==B||G!==re)&&this._calcSampleValues()},_calcSampleValues:function(){for(var I=this._p[0],B=this._p[2],G=0;G<pe;++G)this._mSampleValues[G]=te(G*ee,I,B)},_getTForX:function(I){for(var B=this._p[0],G=this._p[2],re=this._mSampleValues,le=0,he=1,ke=pe-1;he!==ke&&re[he]<=I;++he)le+=ee;--he;var tt=(I-re[he])/(re[he+1]-re[he]),Qe=le+tt*ee,Ne=Y(Qe,B,G);return Ne>=P?fe(I,Qe,B,G):Ne===0?Qe:de(I,le,le+ee,B,G)}},c}(),Wu=function(){function c(p){return p.concat(Ue(p.length))}return{double:c}}(),wr=function(){return function(c,p,v){var x=0,P=c,_=Ue(P),q={newElement:pe,release:ee};function pe(){var ye;return x?(x-=1,ye=_[x]):ye=p(),ye}function ee(ye){x===P&&(_=Wu.double(_),P*=2),v&&v(ye),_[x]=ye,x+=1}return q}}(),Hu=function(){function c(){return{addedLength:0,percents:De("float32",Ds()),lengths:De("float32",Ds())}}return wr(8,c)}(),Gu=function(){function c(){return{lengths:[],totalLength:0}}function p(v){var x,P=v.lengths.length;for(x=0;x<P;x+=1)Hu.release(v.lengths[x]);v.lengths.length=0}return wr(8,c,p)}();function Oc(){var c=Math;function p(R,te,Y,de,fe,H){var Z=R*de+te*fe+Y*H-fe*de-H*R-Y*te;return Z>-.001&&Z<.001}function v(R,te,Y,de,fe,H,Z,I,B){if(Y===0&&H===0&&B===0)return p(R,te,de,fe,Z,I);var G=c.sqrt(c.pow(de-R,2)+c.pow(fe-te,2)+c.pow(H-Y,2)),re=c.sqrt(c.pow(Z-R,2)+c.pow(I-te,2)+c.pow(B-Y,2)),le=c.sqrt(c.pow(Z-de,2)+c.pow(I-fe,2)+c.pow(B-H,2)),he;return G>re?G>le?he=G-re-le:he=le-re-G:le>re?he=le-re-G:he=re-G-le,he>-1e-4&&he<1e-4}var x=function(){return function(R,te,Y,de){var fe=Ds(),H,Z,I,B,G,re=0,le,he=[],ke=[],tt=Hu.newElement();for(I=Y.length,H=0;H<fe;H+=1){for(G=H/(fe-1),le=0,Z=0;Z<I;Z+=1)B=xt(1-G,3)*R[Z]+3*xt(1-G,2)*G*Y[Z]+3*(1-G)*xt(G,2)*de[Z]+xt(G,3)*te[Z],he[Z]=B,ke[Z]!==null&&(le+=xt(he[Z]-ke[Z],2)),ke[Z]=he[Z];le&&(le=ln(le),re+=le),tt.percents[H]=G,tt.lengths[H]=re}return tt.addedLength=re,tt}}();function P(R){var te=Gu.newElement(),Y=R.c,de=R.v,fe=R.o,H=R.i,Z,I=R._length,B=te.lengths,G=0;for(Z=0;Z<I-1;Z+=1)B[Z]=x(de[Z],de[Z+1],fe[Z],H[Z+1]),G+=B[Z].addedLength;return Y&&I&&(B[Z]=x(de[Z],de[0],fe[Z],H[0]),G+=B[Z].addedLength),te.totalLength=G,te}function _(R){this.segmentLength=0,this.points=new Array(R)}function q(R,te){this.partialLength=R,this.point=te}var pe=function(){var R={};return function(te,Y,de,fe){var H=(te[0]+"_"+te[1]+"_"+Y[0]+"_"+Y[1]+"_"+de[0]+"_"+de[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!R[H]){var Z=Ds(),I,B,G,re,le,he=0,ke,tt,Qe=null;te.length===2&&(te[0]!==Y[0]||te[1]!==Y[1])&&p(te[0],te[1],Y[0],Y[1],te[0]+de[0],te[1]+de[1])&&p(te[0],te[1],Y[0],Y[1],Y[0]+fe[0],Y[1]+fe[1])&&(Z=2);var Ne=new _(Z);for(G=de.length,I=0;I<Z;I+=1){for(tt=Ue(G),le=I/(Z-1),ke=0,B=0;B<G;B+=1)re=xt(1-le,3)*te[B]+3*xt(1-le,2)*le*(te[B]+de[B])+3*(1-le)*xt(le,2)*(Y[B]+fe[B])+xt(le,3)*Y[B],tt[B]=re,Qe!==null&&(ke+=xt(tt[B]-Qe[B],2));ke=ln(ke),he+=ke,Ne.points[I]=new q(ke,tt),Qe=tt}Ne.segmentLength=he,R[H]=Ne}return R[H]}}();function ee(R,te){var Y=te.percents,de=te.lengths,fe=Y.length,H=$t((fe-1)*R),Z=R*te.addedLength,I=0;if(H===fe-1||H===0||Z===de[H])return Y[H];for(var B=de[H]>Z?-1:1,G=!0;G;)if(de[H]<=Z&&de[H+1]>Z?(I=(Z-de[H])/(de[H+1]-de[H]),G=!1):H+=B,H<0||H>=fe-1){if(H===fe-1)return Y[H];G=!1}return Y[H]+(Y[H+1]-Y[H])*I}function ye(R,te,Y,de,fe,H){var Z=ee(fe,H),I=1-Z,B=c.round((I*I*I*R[0]+(Z*I*I+I*Z*I+I*I*Z)*Y[0]+(Z*Z*I+I*Z*Z+Z*I*Z)*de[0]+Z*Z*Z*te[0])*1e3)/1e3,G=c.round((I*I*I*R[1]+(Z*I*I+I*Z*I+I*I*Z)*Y[1]+(Z*Z*I+I*Z*Z+Z*I*Z)*de[1]+Z*Z*Z*te[1])*1e3)/1e3;return[B,G]}var we=De("float32",8);function Me(R,te,Y,de,fe,H,Z){fe<0?fe=0:fe>1&&(fe=1);var I=ee(fe,Z);H=H>1?1:H;var B=ee(H,Z),G,re=R.length,le=1-I,he=1-B,ke=le*le*le,tt=I*le*le*3,Qe=I*I*le*3,Ne=I*I*I,at=le*le*he,ft=I*le*he+le*I*he+le*le*B,Be=I*I*he+le*I*B+I*le*B,be=I*I*B,ce=le*he*he,Q=I*he*he+le*B*he+le*he*B,me=I*B*he+le*B*B+I*he*B,je=I*B*B,Fe=he*he*he,ct=B*he*he+he*B*he+he*he*B,Tt=B*B*he+he*B*B+B*he*B,Ct=B*B*B;for(G=0;G<re;G+=1)we[G*4]=c.round((ke*R[G]+tt*Y[G]+Qe*de[G]+Ne*te[G])*1e3)/1e3,we[G*4+1]=c.round((at*R[G]+ft*Y[G]+Be*de[G]+be*te[G])*1e3)/1e3,we[G*4+2]=c.round((ce*R[G]+Q*Y[G]+me*de[G]+je*te[G])*1e3)/1e3,we[G*4+3]=c.round((Fe*R[G]+ct*Y[G]+Tt*de[G]+Ct*te[G])*1e3)/1e3;return we}return{getSegmentsLength:P,getNewSegment:Me,getPointInSegment:ye,buildBezierData:pe,pointOnLine2D:p,pointOnLine3D:v}}var Zr=Oc(),st=function(){var c=ge,p=Math.abs;function v(fe,H){var Z=this.offsetTime,I;this.propType==="multidimensional"&&(I=De("float32",this.pv.length));for(var B=H.lastIndex,G=B,re=this.keyframes.length-1,le=!0,he,ke,tt;le;){if(he=this.keyframes[G],ke=this.keyframes[G+1],G===re-1&&fe>=ke.t-Z){he.h&&(he=ke),B=0;break}if(ke.t-Z>fe){B=G;break}G<re-1?G+=1:(B=0,le=!1)}tt=this.keyframesMetadata[G]||{};var Qe,Ne,at,ft,Be,be,ce=ke.t-Z,Q=he.t-Z,me;if(he.to){tt.bezierData||(tt.bezierData=Zr.buildBezierData(he.s,ke.s||he.e,he.to,he.ti));var je=tt.bezierData;if(fe>=ce||fe<Q){var Fe=fe>=ce?je.points.length-1:0;for(Ne=je.points[Fe].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Fe].point[Qe]}else{tt.__fnct?be=tt.__fnct:(be=uo.getBezierEasing(he.o.x,he.o.y,he.i.x,he.i.y,he.n).get,tt.__fnct=be),at=be((fe-Q)/(ce-Q));var ct=je.segmentLength*at,Tt,Ct=H.lastFrame<fe&&H._lastKeyframeIndex===G?H._lastAddedLength:0;for(Be=H.lastFrame<fe&&H._lastKeyframeIndex===G?H._lastPoint:0,le=!0,ft=je.points.length;le;){if(Ct+=je.points[Be].partialLength,ct===0||at===0||Be===je.points.length-1){for(Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe];break}else if(ct>=Ct&&ct<Ct+je.points[Be+1].partialLength){for(Tt=(ct-Ct)/je.points[Be+1].partialLength,Ne=je.points[Be].point.length,Qe=0;Qe<Ne;Qe+=1)I[Qe]=je.points[Be].point[Qe]+(je.points[Be+1].point[Qe]-je.points[Be].point[Qe])*Tt;break}Be<ft-1?Be+=1:le=!1}H._lastPoint=Be,H._lastAddedLength=Ct-je.points[Be].partialLength,H._lastKeyframeIndex=G}}else{var xn,zt,fr,Xn,Bn;if(re=he.s.length,me=ke.s||he.e,this.sh&&he.h!==1)if(fe>=ce)I[0]=me[0],I[1]=me[1],I[2]=me[2];else if(fe<=Q)I[0]=he.s[0],I[1]=he.s[1],I[2]=he.s[2];else{var jn=_(he.s),Kn=_(me),yr=(fe-Q)/(ce-Q);P(I,x(jn,Kn,yr))}else for(G=0;G<re;G+=1)he.h!==1&&(fe>=ce?at=1:fe<Q?at=0:(he.o.x.constructor===Array?(tt.__fnct||(tt.__fnct=[]),tt.__fnct[G]?be=tt.__fnct[G]:(xn=he.o.x[G]===void 0?he.o.x[0]:he.o.x[G],zt=he.o.y[G]===void 0?he.o.y[0]:he.o.y[G],fr=he.i.x[G]===void 0?he.i.x[0]:he.i.x[G],Xn=he.i.y[G]===void 0?he.i.y[0]:he.i.y[G],be=uo.getBezierEasing(xn,zt,fr,Xn).get,tt.__fnct[G]=be)):tt.__fnct?be=tt.__fnct:(xn=he.o.x,zt=he.o.y,fr=he.i.x,Xn=he.i.y,be=uo.getBezierEasing(xn,zt,fr,Xn).get,he.keyframeMetadata=be),at=be((fe-Q)/(ce-Q)))),me=ke.s||he.e,Bn=he.h===1?he.s[G]:he.s[G]+(me[G]-he.s[G])*at,this.propType==="multidimensional"?I[G]=Bn:I=Bn}return H.lastIndex=B,I}function x(fe,H,Z){var I=[],B=fe[0],G=fe[1],re=fe[2],le=fe[3],he=H[0],ke=H[1],tt=H[2],Qe=H[3],Ne,at,ft,Be,be;return at=B*he+G*ke+re*tt+le*Qe,at<0&&(at=-at,he=-he,ke=-ke,tt=-tt,Qe=-Qe),1-at>1e-6?(Ne=Math.acos(at),ft=Math.sin(Ne),Be=Math.sin((1-Z)*Ne)/ft,be=Math.sin(Z*Ne)/ft):(Be=1-Z,be=Z),I[0]=Be*B+be*he,I[1]=Be*G+be*ke,I[2]=Be*re+be*tt,I[3]=Be*le+be*Qe,I}function P(fe,H){var Z=H[0],I=H[1],B=H[2],G=H[3],re=Math.atan2(2*I*G-2*Z*B,1-2*I*I-2*B*B),le=Math.asin(2*Z*I+2*B*G),he=Math.atan2(2*Z*G-2*I*B,1-2*Z*Z-2*B*B);fe[0]=re/Ee,fe[1]=le/Ee,fe[2]=he/Ee}function _(fe){var H=fe[0]*Ee,Z=fe[1]*Ee,I=fe[2]*Ee,B=Math.cos(H/2),G=Math.cos(Z/2),re=Math.cos(I/2),le=Math.sin(H/2),he=Math.sin(Z/2),ke=Math.sin(I/2),tt=B*G*re-le*he*ke,Qe=le*he*re+B*G*ke,Ne=le*G*re+B*he*ke,at=B*he*re-le*G*ke;return[Qe,Ne,at,tt]}function q(){var fe=this.comp.renderedFrame-this.offsetTime,H=this.keyframes[0].t-this.offsetTime,Z=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(fe===this._caching.lastFrame||this._caching.lastFrame!==c&&(this._caching.lastFrame>=Z&&fe>=Z||this._caching.lastFrame<H&&fe<H))){this._caching.lastFrame>=fe&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var I=this.interpolateValue(fe,this._caching);this.pv=I}return this._caching.lastFrame=fe,this.pv}function pe(fe){var H;if(this.propType==="unidimensional")H=fe*this.mult,p(this.v-H)>1e-5&&(this.v=H,this._mdf=!0);else for(var Z=0,I=this.v.length;Z<I;)H=fe[Z]*this.mult,p(this.v[Z]-H)>1e-5&&(this.v[Z]=H,this._mdf=!0),Z+=1}function ee(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var fe,H=this.effectsSequence.length,Z=this.kf?this.pv:this.data.k;for(fe=0;fe<H;fe+=1)Z=this.effectsSequence[fe](Z);this.setVValue(Z),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(fe){this.effectsSequence.push(fe),this.container.addDynamicProperty(this)}function we(fe,H,Z,I){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=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function Me(fe,H,Z,I){this.propType="multidimensional",this.mult=Z||1,this.data=H,this._mdf=!1,this.elem=fe,this.container=I,this.comp=fe.comp,this.k=!1,this.kf=!1,this.frameId=-1;var B,G=H.k.length;for(this.v=De("float32",G),this.pv=De("float32",G),this.vel=De("float32",G),B=0;B<G;B+=1)this.v[B]=H.k[B]*this.mult,this.pv[B]=H.k[B];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ee,this.setVValue=pe,this.addEffect=ye}function R(fe,H,Z,I){this.propType="unidimensional",this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.frameId=-1,this._caching={lastFrame:c,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=H,this.mult=Z||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.v=c,this.pv=c,this._isFirstFrame=!0,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=ye}function te(fe,H,Z,I){this.propType="multidimensional";var B,G=H.k.length,re,le,he,ke;for(B=0;B<G-1;B+=1)H.k[B].to&&H.k[B].s&&H.k[B+1]&&H.k[B+1].s&&(re=H.k[B].s,le=H.k[B+1].s,he=H.k[B].to,ke=H.k[B].ti,(re.length===2&&!(re[0]===le[0]&&re[1]===le[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],re[0]+he[0],re[1]+he[1])&&Zr.pointOnLine2D(re[0],re[1],le[0],le[1],le[0]+ke[0],le[1]+ke[1])||re.length===3&&!(re[0]===le[0]&&re[1]===le[1]&&re[2]===le[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],re[0]+he[0],re[1]+he[1],re[2]+he[2])&&Zr.pointOnLine3D(re[0],re[1],re[2],le[0],le[1],le[2],le[0]+ke[0],le[1]+ke[1],le[2]+ke[2]))&&(H.k[B].to=null,H.k[B].ti=null),re[0]===le[0]&&re[1]===le[1]&&he[0]===0&&he[1]===0&&ke[0]===0&&ke[1]===0&&(re.length===2||re[2]===le[2]&&he[2]===0&&ke[2]===0)&&(H.k[B].to=null,H.k[B].ti=null));this.effectsSequence=[q.bind(this)],this.data=H,this.keyframes=H.k,this.keyframesMetadata=[],this.offsetTime=fe.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Z||1,this.elem=fe,this.container=I,this.comp=fe.comp,this.getValue=ee,this.setVValue=pe,this.interpolateValue=v,this.frameId=-1;var tt=H.k[0].s.length;for(this.v=De("float32",tt),this.pv=De("float32",tt),B=0;B<tt;B+=1)this.v[B]=c,this.pv[B]=c;this._caching={lastFrame:c,lastIndex:0,value:De("float32",tt)},this.addEffect=ye}function Y(fe,H,Z,I,B){var G;if(!H.k.length)G=new we(fe,H,I,B);else if(typeof H.k[0]=="number")G=new Me(fe,H,I,B);else switch(Z){case 0:G=new R(fe,H,I,B);break;case 1:G=new te(fe,H,I,B);break}return G.effectsSequence.length&&B.addDynamicProperty(G),G}var de={getProp:Y};return de}();function dn(){}dn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var rs=function(){function c(){return De("float32",2)}return wr(8,c)}();function fi(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ue(this._maxLength),this.o=Ue(this._maxLength),this.i=Ue(this._maxLength)}fi.prototype.setPathData=function(c,p){this.c=c,this.setLength(p);for(var v=0;v<p;)this.v[v]=rs.newElement(),this.o[v]=rs.newElement(),this.i[v]=rs.newElement(),v+=1},fi.prototype.setLength=function(c){for(;this._maxLength<c;)this.doubleArrayLength();this._length=c},fi.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ue(this._maxLength)),this.i=this.i.concat(Ue(this._maxLength)),this.o=this.o.concat(Ue(this._maxLength)),this._maxLength*=2},fi.prototype.setXYAt=function(c,p,v,x,P){var _;switch(this._length=Math.max(this._length,x+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":_=this.v;break;case"i":_=this.i;break;case"o":_=this.o;break;default:_=[];break}(!_[x]||_[x]&&!P)&&(_[x]=rs.newElement()),_[x][0]=c,_[x][1]=p},fi.prototype.setTripleAt=function(c,p,v,x,P,_,q,pe){this.setXYAt(c,p,"v",q,pe),this.setXYAt(v,x,"o",q,pe),this.setXYAt(P,_,"i",q,pe)},fi.prototype.reverse=function(){var c=new fi;c.setPathData(this.c,this._length);var p=this.v,v=this.o,x=this.i,P=0;this.c&&(c.setTripleAt(p[0][0],p[0][1],x[0][0],x[0][1],v[0][0],v[0][1],0,!1),P=1);var _=this._length-1,q=this._length,pe;for(pe=P;pe<q;pe+=1)c.setTripleAt(p[_][0],p[_][1],x[_][0],x[_][1],v[_][0],v[_][1],pe,!1),_-=1;return c},fi.prototype.length=function(){return this._length};var Zn=function(){function c(){return new fi}function p(P){var _=P._length,q;for(q=0;q<_;q+=1)rs.release(P.v[q]),rs.release(P.i[q]),rs.release(P.o[q]),P.v[q]=null,P.i[q]=null,P.o[q]=null;P._length=0,P.c=!1}function v(P){var _=x.newElement(),q,pe=P._length===void 0?P.v.length:P._length;for(_.setLength(pe),_.c=P.c,q=0;q<pe;q+=1)_.setTripleAt(P.v[q][0],P.v[q][1],P.o[q][0],P.o[q][1],P.i[q][0],P.i[q][1],q);return _}var x=wr(4,c,p);return x.clone=v,x}();function Ia(){this._length=0,this._maxLength=4,this.shapes=Ue(this._maxLength)}Ia.prototype.addShape=function(c){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ue(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=c,this._length+=1},Ia.prototype.releaseShapes=function(){var c;for(c=0;c<this._length;c+=1)Zn.release(this.shapes[c]);this._length=0};var As=function(){var c={newShapeCollection:P,release:_},p=0,v=4,x=Ue(v);function P(){var q;return p?(p-=1,q=x[p]):q=new Ia,q}function _(q){var pe,ee=q._length;for(pe=0;pe<ee;pe+=1)Zn.release(q.shapes[pe]);q._length=0,p===v&&(x=Wu.double(x),v*=2),x[p]=q,p+=1}return c}(),di=function(){var c=-999999;function p(H,Z,I){var B=I.lastIndex,G,re,le,he,ke,tt,Qe,Ne,at,ft=this.keyframes;if(H<ft[0].t-this.offsetTime)G=ft[0].s[0],le=!0,B=0;else if(H>=ft[ft.length-1].t-this.offsetTime)G=ft[ft.length-1].s?ft[ft.length-1].s[0]:ft[ft.length-2].e[0],le=!0;else{for(var Be=B,be=ft.length-1,ce=!0,Q,me,je;ce&&(Q=ft[Be],me=ft[Be+1],!(me.t-this.offsetTime>H));)Be<be-1?Be+=1:ce=!1;if(je=this.keyframesMetadata[Be]||{},le=Q.h===1,B=Be,!le){if(H>=me.t-this.offsetTime)Ne=1;else if(H<Q.t-this.offsetTime)Ne=0;else{var Fe;je.__fnct?Fe=je.__fnct:(Fe=uo.getBezierEasing(Q.o.x,Q.o.y,Q.i.x,Q.i.y).get,je.__fnct=Fe),Ne=Fe((H-(Q.t-this.offsetTime))/(me.t-this.offsetTime-(Q.t-this.offsetTime)))}re=me.s?me.s[0]:Q.e[0]}G=Q.s[0]}for(tt=Z._length,Qe=G.i[0].length,I.lastIndex=B,he=0;he<tt;he+=1)for(ke=0;ke<Qe;ke+=1)at=le?G.i[he][ke]:G.i[he][ke]+(re.i[he][ke]-G.i[he][ke])*Ne,Z.i[he][ke]=at,at=le?G.o[he][ke]:G.o[he][ke]+(re.o[he][ke]-G.o[he][ke])*Ne,Z.o[he][ke]=at,at=le?G.v[he][ke]:G.v[he][ke]+(re.v[he][ke]-G.v[he][ke])*Ne,Z.v[he][ke]=at}function v(){var H=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,I=this.keyframes[this.keyframes.length-1].t-this.offsetTime,B=this._caching.lastFrame;return B!==c&&(B<Z&&H<Z||B>I&&H>I)||(this._caching.lastIndex=B<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 I,B=H._length;for(I=0;I<B;I+=1)if(H.v[I][0]!==Z.v[I][0]||H.v[I][1]!==Z.v[I][1]||H.o[I][0]!==Z.o[I][0]||H.o[I][1]!==Z.o[I][1]||H.i[I][0]!==Z.i[I][0]||H.i[I][1]!==Z.i[I][1])return!1;return!0}function _(H){P(this.v,H)||(this.v=Zn.clone(H),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var H;this.kf?H=this.pv:this.data.ks?H=this.data.ks.k:H=this.data.pt.k;var Z,I=this.effectsSequence.length;for(Z=0;Z<I;Z+=1)H=this.effectsSequence[Z](H);this.setVValue(H),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function pe(H,Z,I){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 B=I===3?Z.pt.k:Z.ks.k;this.v=Zn.clone(B),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=x,this.effectsSequence=[]}function ee(H){this.effectsSequence.push(H),this.container.addDynamicProperty(this)}pe.prototype.interpolateShape=p,pe.prototype.getValue=q,pe.prototype.setVValue=_,pe.prototype.addEffect=ee;function ye(H,Z,I){this.propType="shape",this.comp=H.comp,this.elem=H,this.container=H,this.offsetTime=H.data.st,this.keyframes=I===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var B=this.keyframes[0].s[0].i.length;this.v=Zn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,B),this.pv=Zn.clone(this.v),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=c,this.reset=x,this._caching={lastFrame:c,lastIndex:0},this.effectsSequence=[v.bind(this)]}ye.prototype.getValue=q,ye.prototype.interpolateShape=p,ye.prototype.setVValue=_,ye.prototype.addEffect=ee;var we=function(){var H=Te;function Z(I,B){this.v=Zn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=As.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=B.d,this.elem=I,this.comp=I.comp,this.frameId=-1,this.initDynamicPropertyContainer(I),this.p=st.getProp(I,B.p,1,0,this),this.s=st.getProp(I,B.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 B=this.p.v[0],G=this.p.v[1],re=this.s.v[0]/2,le=this.s.v[1]/2,he=this.d!==3,ke=this.v;ke.v[0][0]=B,ke.v[0][1]=G-le,ke.v[1][0]=he?B+re:B-re,ke.v[1][1]=G,ke.v[2][0]=B,ke.v[2][1]=G+le,ke.v[3][0]=he?B-re:B+re,ke.v[3][1]=G,ke.i[0][0]=he?B-re*H:B+re*H,ke.i[0][1]=G-le,ke.i[1][0]=he?B+re:B-re,ke.i[1][1]=G-le*H,ke.i[2][0]=he?B+re*H:B-re*H,ke.i[2][1]=G+le,ke.i[3][0]=he?B-re:B+re,ke.i[3][1]=G+le*H,ke.o[0][0]=he?B+re*H:B-re*H,ke.o[0][1]=G-le,ke.o[1][0]=he?B+re:B-re,ke.o[1][1]=G+le*H,ke.o[2][0]=he?B-re*H:B+re*H,ke.o[2][1]=G+le,ke.o[3][0]=he?B-re:B+re,ke.o[3][1]=G-le*H}},Ie([dn],Z),Z}(),Me=function(){function H(Z,I){this.v=Zn.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=I,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(Z),I.sy===1?(this.ir=st.getProp(Z,I.ir,0,0,this),this.is=st.getProp(Z,I.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=st.getProp(Z,I.pt,0,0,this),this.p=st.getProp(Z,I.p,1,0,this),this.r=st.getProp(Z,I.r,0,Ee,this),this.or=st.getProp(Z,I.or,0,0,this),this.os=st.getProp(Z,I.os,0,.01,this),this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return H.prototype={reset:x,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var I=Math.floor(this.pt.v)*2,B=Math.PI*2/I,G=!0,re=this.or.v,le=this.ir.v,he=this.os.v,ke=this.is.v,tt=2*Math.PI*re/(I*2),Qe=2*Math.PI*le/(I*2),Ne,at,ft,Be,be=-Math.PI/2;be+=this.r.v;var ce=this.data.d===3?-1:1;for(this.v._length=0,Ne=0;Ne<I;Ne+=1){at=G?re:le,ft=G?he:ke,Be=G?tt:Qe;var Q=at*Math.cos(be),me=at*Math.sin(be),je=Q===0&&me===0?0:me/Math.sqrt(Q*Q+me*me),Fe=Q===0&&me===0?0:-Q/Math.sqrt(Q*Q+me*me);Q+=+this.p.v[0],me+=+this.p.v[1],this.v.setTripleAt(Q,me,Q-je*Be*ft*ce,me-Fe*Be*ft*ce,Q+je*Be*ft*ce,me+Fe*Be*ft*ce,Ne,!0),G=!G,be+=B*ce}},convertPolygonToPath:function(){var I=Math.floor(this.pt.v),B=Math.PI*2/I,G=this.or.v,re=this.os.v,le=2*Math.PI*G/(I*4),he,ke=-Math.PI*.5,tt=this.data.d===3?-1:1;for(ke+=this.r.v,this.v._length=0,he=0;he<I;he+=1){var Qe=G*Math.cos(ke),Ne=G*Math.sin(ke),at=Qe===0&&Ne===0?0:Ne/Math.sqrt(Qe*Qe+Ne*Ne),ft=Qe===0&&Ne===0?0:-Qe/Math.sqrt(Qe*Qe+Ne*Ne);Qe+=+this.p.v[0],Ne+=+this.p.v[1],this.v.setTripleAt(Qe,Ne,Qe-at*le*re*tt,Ne-ft*le*re*tt,Qe+at*le*re*tt,Ne+ft*le*re*tt,he,!0),ke+=B*tt}this.paths.length=0,this.paths[0]=this.v}},Ie([dn],H),H}(),R=function(){function H(Z,I){this.v=Zn.newElement(),this.v.c=!0,this.localShapeCollection=As.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=I.d,this.initDynamicPropertyContainer(Z),this.p=st.getProp(Z,I.p,1,0,this),this.s=st.getProp(Z,I.s,1,0,this),this.r=st.getProp(Z,I.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return H.prototype={convertRectToPath:function(){var I=this.p.v[0],B=this.p.v[1],G=this.s.v[0]/2,re=this.s.v[1]/2,le=Rt(G,re,this.r.v),he=le*(1-Te);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(I+G,B-re+le,I+G,B-re+le,I+G,B-re+he,0,!0),this.v.setTripleAt(I+G,B+re-le,I+G,B+re-he,I+G,B+re-le,1,!0),le!==0?(this.v.setTripleAt(I+G-le,B+re,I+G-le,B+re,I+G-he,B+re,2,!0),this.v.setTripleAt(I-G+le,B+re,I-G+he,B+re,I-G+le,B+re,3,!0),this.v.setTripleAt(I-G,B+re-le,I-G,B+re-le,I-G,B+re-he,4,!0),this.v.setTripleAt(I-G,B-re+le,I-G,B-re+he,I-G,B-re+le,5,!0),this.v.setTripleAt(I-G+le,B-re,I-G+le,B-re,I-G+he,B-re,6,!0),this.v.setTripleAt(I+G-le,B-re,I+G-he,B-re,I+G-le,B-re,7,!0)):(this.v.setTripleAt(I-G,B+re,I-G+he,B+re,I-G,B+re,2),this.v.setTripleAt(I-G,B-re,I-G,B-re+he,I-G,B-re,3))):(this.v.setTripleAt(I+G,B-re+le,I+G,B-re+he,I+G,B-re+le,0,!0),le!==0?(this.v.setTripleAt(I+G-le,B-re,I+G-le,B-re,I+G-he,B-re,1,!0),this.v.setTripleAt(I-G+le,B-re,I-G+he,B-re,I-G+le,B-re,2,!0),this.v.setTripleAt(I-G,B-re+le,I-G,B-re+le,I-G,B-re+he,3,!0),this.v.setTripleAt(I-G,B+re-le,I-G,B+re-he,I-G,B+re-le,4,!0),this.v.setTripleAt(I-G+le,B+re,I-G+le,B+re,I-G+he,B+re,5,!0),this.v.setTripleAt(I+G-le,B+re,I+G-he,B+re,I+G-le,B+re,6,!0),this.v.setTripleAt(I+G,B+re-le,I+G,B+re-le,I+G,B+re-he,7,!0)):(this.v.setTripleAt(I-G,B-re,I-G+he,B-re,I-G,B-re,1,!0),this.v.setTripleAt(I-G,B+re,I-G,B+re-he,I-G,B+re,2,!0),this.v.setTripleAt(I+G,B+re,I+G-he,B+re,I+G,B+re,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:x},Ie([dn],H),H}();function te(H,Z,I){var B;if(I===3||I===4){var G=I===3?Z.pt:Z.ks,re=G.k;re.length?B=new ye(H,Z,I):B=new pe(H,Z,I)}else I===5?B=new R(H,Z):I===6?B=new we(H,Z):I===7&&(B=new Me(H,Z));return B.k&&H.addDynamicProperty(B),B}function Y(){return pe}function de(){return ye}var fe={};return fe.getShapeProp=te,fe.getConstructorFunction=Y,fe.getKeyframedConstructorFunction=de,fe}();/*!
|
|
128
|
+
Transformation Matrix v2.0
|
|
129
|
+
(c) Epistemex 2014-2015
|
|
130
|
+
www.epistemex.com
|
|
131
|
+
By Ken Fyrstenberg
|
|
132
|
+
Contributions by leeoniya.
|
|
133
|
+
License: MIT, header required.
|
|
134
|
+
*/var On=function(){var c=Math.cos,p=Math.sin,v=Math.tan,x=Math.round;function P(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function _(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,-me,0,0,me,Q,0,0,0,0,1,0,0,0,0,1)}function q(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(1,0,0,0,0,Q,-me,0,0,me,Q,0,0,0,0,1)}function pe(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,0,me,0,0,1,0,0,-me,0,Q,0,0,0,0,1)}function ee(ce){if(ce===0)return this;var Q=c(ce),me=p(ce);return this._t(Q,-me,0,0,me,Q,0,0,0,0,1,0,0,0,0,1)}function ye(ce,Q){return this._t(1,Q,ce,1,0,0)}function we(ce,Q){return this.shear(v(ce),v(Q))}function Me(ce,Q){var me=c(Q),je=p(Q);return this._t(me,je,0,0,-je,me,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,v(ce),1,0,0,0,0,1,0,0,0,0,1)._t(me,-je,0,0,je,me,0,0,0,0,1,0,0,0,0,1)}function R(ce,Q,me){return!me&&me!==0&&(me=1),ce===1&&Q===1&&me===1?this:this._t(ce,0,0,0,0,Q,0,0,0,0,me,0,0,0,0,1)}function te(ce,Q,me,je,Fe,ct,Tt,Ct,xn,zt,fr,Xn,Bn,jn,Kn,yr){return this.props[0]=ce,this.props[1]=Q,this.props[2]=me,this.props[3]=je,this.props[4]=Fe,this.props[5]=ct,this.props[6]=Tt,this.props[7]=Ct,this.props[8]=xn,this.props[9]=zt,this.props[10]=fr,this.props[11]=Xn,this.props[12]=Bn,this.props[13]=jn,this.props[14]=Kn,this.props[15]=yr,this}function Y(ce,Q,me){return me=me||0,ce!==0||Q!==0||me!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ce,Q,me,1):this}function de(ce,Q,me,je,Fe,ct,Tt,Ct,xn,zt,fr,Xn,Bn,jn,Kn,yr){var dt=this.props;if(ce===1&&Q===0&&me===0&&je===0&&Fe===0&&ct===1&&Tt===0&&Ct===0&&xn===0&&zt===0&&fr===1&&Xn===0)return dt[12]=dt[12]*ce+dt[15]*Bn,dt[13]=dt[13]*ct+dt[15]*jn,dt[14]=dt[14]*fr+dt[15]*Kn,dt[15]*=yr,this._identityCalculated=!1,this;var fn=dt[0],Jr=dt[1],Pi=dt[2],as=dt[3],mi=dt[4],us=dt[5],ls=dt[6],Ht=dt[7],wn=dt[8],Is=dt[9],gi=dt[10],cs=dt[11],vi=dt[12],fs=dt[13],Ls=dt[14],ia=dt[15];return dt[0]=fn*ce+Jr*Fe+Pi*xn+as*Bn,dt[1]=fn*Q+Jr*ct+Pi*zt+as*jn,dt[2]=fn*me+Jr*Tt+Pi*fr+as*Kn,dt[3]=fn*je+Jr*Ct+Pi*Xn+as*yr,dt[4]=mi*ce+us*Fe+ls*xn+Ht*Bn,dt[5]=mi*Q+us*ct+ls*zt+Ht*jn,dt[6]=mi*me+us*Tt+ls*fr+Ht*Kn,dt[7]=mi*je+us*Ct+ls*Xn+Ht*yr,dt[8]=wn*ce+Is*Fe+gi*xn+cs*Bn,dt[9]=wn*Q+Is*ct+gi*zt+cs*jn,dt[10]=wn*me+Is*Tt+gi*fr+cs*Kn,dt[11]=wn*je+Is*Ct+gi*Xn+cs*yr,dt[12]=vi*ce+fs*Fe+Ls*xn+ia*Bn,dt[13]=vi*Q+fs*ct+Ls*zt+ia*jn,dt[14]=vi*me+fs*Tt+Ls*fr+ia*Kn,dt[15]=vi*je+fs*Ct+Ls*Xn+ia*yr,this._identityCalculated=!1,this}function fe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function H(ce){for(var Q=0;Q<16;){if(ce.props[Q]!==this.props[Q])return!1;Q+=1}return!0}function Z(ce){var Q;for(Q=0;Q<16;Q+=1)ce.props[Q]=this.props[Q];return ce}function I(ce){var Q;for(Q=0;Q<16;Q+=1)this.props[Q]=ce[Q]}function B(ce,Q,me){return{x:ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12],y:ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13],z:ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]}}function G(ce,Q,me){return ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12]}function re(ce,Q,me){return ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13]}function le(ce,Q,me){return ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]}function he(){var ce=this.props[0]*this.props[5]-this.props[1]*this.props[4],Q=this.props[5]/ce,me=-this.props[1]/ce,je=-this.props[4]/ce,Fe=this.props[0]/ce,ct=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ce,Tt=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ce,Ct=new On;return Ct.props[0]=Q,Ct.props[1]=me,Ct.props[4]=je,Ct.props[5]=Fe,Ct.props[12]=ct,Ct.props[13]=Tt,Ct}function ke(ce){var Q=this.getInverseMatrix();return Q.applyToPointArray(ce[0],ce[1],ce[2]||0)}function tt(ce){var Q,me=ce.length,je=[];for(Q=0;Q<me;Q+=1)je[Q]=ke(ce[Q]);return je}function Qe(ce,Q,me){var je=De("float32",6);if(this.isIdentity())je[0]=ce[0],je[1]=ce[1],je[2]=Q[0],je[3]=Q[1],je[4]=me[0],je[5]=me[1];else{var Fe=this.props[0],ct=this.props[1],Tt=this.props[4],Ct=this.props[5],xn=this.props[12],zt=this.props[13];je[0]=ce[0]*Fe+ce[1]*Tt+xn,je[1]=ce[0]*ct+ce[1]*Ct+zt,je[2]=Q[0]*Fe+Q[1]*Tt+xn,je[3]=Q[0]*ct+Q[1]*Ct+zt,je[4]=me[0]*Fe+me[1]*Tt+xn,je[5]=me[0]*ct+me[1]*Ct+zt}return je}function Ne(ce,Q,me){var je;return this.isIdentity()?je=[ce,Q,me]:je=[ce*this.props[0]+Q*this.props[4]+me*this.props[8]+this.props[12],ce*this.props[1]+Q*this.props[5]+me*this.props[9]+this.props[13],ce*this.props[2]+Q*this.props[6]+me*this.props[10]+this.props[14]],je}function at(ce,Q){if(this.isIdentity())return ce+","+Q;var me=this.props;return Math.round((ce*me[0]+Q*me[4]+me[12])*100)/100+","+Math.round((ce*me[1]+Q*me[5]+me[13])*100)/100}function ft(){for(var ce=0,Q=this.props,me="matrix3d(",je=1e4;ce<16;)me+=x(Q[ce]*je)/je,me+=ce===15?")":",",ce+=1;return me}function Be(ce){var Q=1e4;return ce<1e-6&&ce>0||ce>-1e-6&&ce<0?x(ce*Q)/Q:ce}function be(){var ce=this.props,Q=Be(ce[0]),me=Be(ce[1]),je=Be(ce[4]),Fe=Be(ce[5]),ct=Be(ce[12]),Tt=Be(ce[13]);return"matrix("+Q+","+me+","+je+","+Fe+","+ct+","+Tt+")"}return function(){this.reset=P,this.rotate=_,this.rotateX=q,this.rotateY=pe,this.rotateZ=ee,this.skew=we,this.skewFromAxis=Me,this.shear=ye,this.scale=R,this.setTransform=te,this.translate=Y,this.transform=de,this.applyToPoint=B,this.applyToX=G,this.applyToY=re,this.applyToZ=le,this.applyToPointArray=Ne,this.applyToTriplePoints=Qe,this.applyToPointStringified=at,this.toCSS=ft,this.to2dCSS=be,this.clone=Z,this.cloneFromProps=I,this.equals=H,this.inversePoints=tt,this.inversePoint=ke,this.getInverseMatrix=he,this._t=this.transform,this.isIdentity=fe,this._identity=!0,this._identityCalculated=!1,this.props=De("float32",16),this.reset()}}();function Jo(c){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jo=function(v){return typeof v}:Jo=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Jo(c)}var jt={};function Ic(c){xe(c)}function Yu(){En.searchAnimations()}function Lc(c){Yt(c)}function La(c){ka(c)}function lo(c){return En.loadAnimation(c)}function Zu(c){if(typeof c=="string")switch(c){case"high":Ci(200);break;default:case"medium":Ci(50);break;case"low":Ci(10);break}else!isNaN(c)&&c>1&&Ci(c)}function Ba(){return typeof navigator<"u"}function Bc(c,p){c==="expressions"&&Qi(p)}function Vc(c){switch(c){case"propertyFactory":return st;case"shapePropertyFactory":return di;case"matrix":return On;default:return null}}jt.play=En.play,jt.pause=En.pause,jt.setLocationHref=Ic,jt.togglePause=En.togglePause,jt.setSpeed=En.setSpeed,jt.setDirection=En.setDirection,jt.stop=En.stop,jt.searchAnimations=Yu,jt.registerAnimation=En.registerAnimation,jt.loadAnimation=lo,jt.setSubframeRendering=Lc,jt.resize=En.resize,jt.goToAndStop=En.goToAndStop,jt.destroy=En.destroy,jt.setQuality=Zu,jt.inBrowser=Ba,jt.installPlugin=Bc,jt.freeze=En.freeze,jt.unfreeze=En.unfreeze,jt.setVolume=En.setVolume,jt.mute=En.mute,jt.unmute=En.unmute,jt.getRegisteredAnimations=En.getRegisteredAnimations,jt.useWebWorker=U,jt.setIDPrefix=La,jt.__getFactory=Vc,jt.version="5.10.2";function Nc(){document.readyState==="complete"&&(clearInterval(Qu),Yu())}function Xu(c){for(var p=Va.split("&"),v=0;v<p.length;v+=1){var x=p[v].split("=");if(decodeURIComponent(x[0])==c)return decodeURIComponent(x[1])}return null}var Va="";{var Na=document.getElementsByTagName("script"),co=Na.length-1,Ju=Na[co]||{src:""};Va=Ju.src?Ju.src.replace(/^[^\?]+\??/,""):"",Xu("renderer")}var Qu=setInterval(Nc,100);try{Jo(z)!=="object"&&(window.bodymovin=jt)}catch{}var kr=function(){var c={},p={};c.registerModifier=v,c.getModifier=x;function v(P,_){p[P]||(p[P]=_)}function x(P,_,q){return new p[P](_,q)}return c}();function gr(){}gr.prototype.initModifierProperties=function(){},gr.prototype.addShapeToModifier=function(){},gr.prototype.addShape=function(c){if(!this.closed){c.sh.container.addDynamicProperty(c.sh);var p={shape:c.sh,data:c,localShapeCollection:As.newShapeCollection()};this.shapes.push(p),this.addShapeToModifier(p),this._isAnimated&&c.setAsAnimated()}},gr.prototype.init=function(c,p){this.shapes=[],this.elem=c,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p),this.frameId=ge,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},gr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Ie([dn],gr);function Or(){}Ie([gr],Or),Or.prototype.initModifierProperties=function(c,p){this.s=st.getProp(c,p.s,0,.01,this),this.e=st.getProp(c,p.e,0,.01,this),this.o=st.getProp(c,p.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=p.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Or.prototype.addShapeToModifier=function(c){c.pathsData=[]},Or.prototype.calculateShapeEdges=function(c,p,v,x,P){var _=[];p<=1?_.push({s:c,e:p}):c>=1?_.push({s:c-1,e:p-1}):(_.push({s:c,e:1}),_.push({s:0,e:p-1}));var q=[],pe,ee=_.length,ye;for(pe=0;pe<ee;pe+=1)if(ye=_[pe],!(ye.e*P<x||ye.s*P>x+v)){var we,Me;ye.s*P<=x?we=0:we=(ye.s*P-x)/v,ye.e*P>=x+v?Me=1:Me=(ye.e*P-x)/v,q.push([we,Me])}return q.length||q.push([0,0]),q},Or.prototype.releasePathsData=function(c){var p,v=c.length;for(p=0;p<v;p+=1)Gu.release(c[p]);return c.length=0,c},Or.prototype.processShapes=function(c){var p,v;if(this._mdf||c){var x=this.o.v%360/360;if(x<0&&(x+=1),this.s.v>1?p=1+x:this.s.v<0?p=0+x:p=this.s.v+x,this.e.v>1?v=1+x:this.e.v<0?v=0+x:v=this.e.v+x,p>v){var P=p;p=v,v=P}p=Math.round(p*1e4)*1e-4,v=Math.round(v*1e4)*1e-4,this.sValue=p,this.eValue=v}else p=this.sValue,v=this.eValue;var _,q,pe=this.shapes.length,ee,ye,we,Me,R,te=0;if(v===p)for(q=0;q<pe;q+=1)this.shapes[q].localShapeCollection.releaseShapes(),this.shapes[q].shape._mdf=!0,this.shapes[q].shape.paths=this.shapes[q].localShapeCollection,this._mdf&&(this.shapes[q].pathsData.length=0);else if(v===1&&p===0||v===0&&p===1){if(this._mdf)for(q=0;q<pe;q+=1)this.shapes[q].pathsData.length=0,this.shapes[q].shape._mdf=!0}else{var Y=[],de,fe;for(q=0;q<pe;q+=1)if(de=this.shapes[q],!de.shape._mdf&&!this._mdf&&!c&&this.m!==2)de.shape.paths=de.localShapeCollection;else{if(_=de.shape.paths,ye=_._length,R=0,!de.shape._mdf&&de.pathsData.length)R=de.totalShapeLength;else{for(we=this.releasePathsData(de.pathsData),ee=0;ee<ye;ee+=1)Me=Zr.getSegmentsLength(_.shapes[ee]),we.push(Me),R+=Me.totalLength;de.totalShapeLength=R,de.pathsData=we}te+=R,de.shape._mdf=!0}var H=p,Z=v,I=0,B;for(q=pe-1;q>=0;q-=1)if(de=this.shapes[q],de.shape._mdf){for(fe=de.localShapeCollection,fe.releaseShapes(),this.m===2&&pe>1?(B=this.calculateShapeEdges(p,v,de.totalShapeLength,I,te),I+=de.totalShapeLength):B=[[H,Z]],ye=B.length,ee=0;ee<ye;ee+=1){H=B[ee][0],Z=B[ee][1],Y.length=0,Z<=1?Y.push({s:de.totalShapeLength*H,e:de.totalShapeLength*Z}):H>=1?Y.push({s:de.totalShapeLength*(H-1),e:de.totalShapeLength*(Z-1)}):(Y.push({s:de.totalShapeLength*H,e:de.totalShapeLength}),Y.push({s:0,e:de.totalShapeLength*(Z-1)}));var G=this.addShapes(de,Y[0]);if(Y[0].s!==Y[0].e){if(Y.length>1){var re=de.shape.paths.shapes[de.shape.paths._length-1];if(re.c){var le=G.pop();this.addPaths(G,fe),G=this.addShapes(de,Y[1],le)}else this.addPaths(G,fe),G=this.addShapes(de,Y[1])}this.addPaths(G,fe)}}de.shape.paths=fe}}},Or.prototype.addPaths=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)p.addShape(c[v])},Or.prototype.addSegment=function(c,p,v,x,P,_,q){P.setXYAt(p[0],p[1],"o",_),P.setXYAt(v[0],v[1],"i",_+1),q&&P.setXYAt(c[0],c[1],"v",_),P.setXYAt(x[0],x[1],"v",_+1)},Or.prototype.addSegmentFromArray=function(c,p,v,x){p.setXYAt(c[1],c[5],"o",v),p.setXYAt(c[2],c[6],"i",v+1),x&&p.setXYAt(c[0],c[4],"v",v),p.setXYAt(c[3],c[7],"v",v+1)},Or.prototype.addShapes=function(c,p,v){var x=c.pathsData,P=c.shape.paths.shapes,_,q=c.shape.paths._length,pe,ee,ye=0,we,Me,R,te,Y=[],de,fe=!0;for(v?(Me=v._length,de=v._length):(v=Zn.newElement(),Me=0,de=0),Y.push(v),_=0;_<q;_+=1){for(R=x[_].lengths,v.c=P[_].c,ee=P[_].c?R.length:R.length+1,pe=1;pe<ee;pe+=1)if(we=R[pe-1],ye+we.addedLength<p.s)ye+=we.addedLength,v.c=!1;else if(ye>p.e){v.c=!1;break}else p.s<=ye&&p.e>=ye+we.addedLength?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[pe],P[_].v[pe],v,Me,fe),fe=!1):(te=Zr.getNewSegment(P[_].v[pe-1],P[_].v[pe],P[_].o[pe-1],P[_].i[pe],(p.s-ye)/we.addedLength,(p.e-ye)/we.addedLength,R[pe-1]),this.addSegmentFromArray(te,v,Me,fe),fe=!1,v.c=!1),ye+=we.addedLength,Me+=1;if(P[_].c&&R.length){if(we=R[pe-1],ye<=p.e){var H=R[pe-1].addedLength;p.s<=ye&&p.e>=ye+H?(this.addSegment(P[_].v[pe-1],P[_].o[pe-1],P[_].i[0],P[_].v[0],v,Me,fe),fe=!1):(te=Zr.getNewSegment(P[_].v[pe-1],P[_].v[0],P[_].o[pe-1],P[_].i[0],(p.s-ye)/H,(p.e-ye)/H,R[pe-1]),this.addSegmentFromArray(te,v,Me,fe),fe=!1,v.c=!1)}else v.c=!1;ye+=we.addedLength,Me+=1}if(v._length&&(v.setXYAt(v.v[de][0],v.v[de][1],"i",de),v.setXYAt(v.v[v._length-1][0],v.v[v._length-1][1],"o",v._length-1)),ye>p.e)break;_<q-1&&(v=Zn.newElement(),fe=!0,Y.push(v),Me=0)}return Y};function Ts(){}Ie([gr],Ts),Ts.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ts.prototype.processPath=function(c,p){var v=p/100,x=[0,0],P=c._length,_=0;for(_=0;_<P;_+=1)x[0]+=c.v[_][0],x[1]+=c.v[_][1];x[0]/=P,x[1]/=P;var q=Zn.newElement();q.c=c.c;var pe,ee,ye,we,Me,R;for(_=0;_<P;_+=1)pe=c.v[_][0]+(x[0]-c.v[_][0])*v,ee=c.v[_][1]+(x[1]-c.v[_][1])*v,ye=c.o[_][0]+(x[0]-c.o[_][0])*-v,we=c.o[_][1]+(x[1]-c.o[_][1])*-v,Me=c.i[_][0]+(x[0]-c.i[_][0])*-v,R=c.i[_][1]+(x[1]-c.i[_][1])*-v,q.setTripleAt(pe,ee,ye,we,Me,R,_);return q},Ts.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amount.v;if(q!==0){var pe,ee;for(v=0;v<x;v+=1){if(pe=this.shapes[v],ee=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(ee.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)ee.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Qo=function(){var c=[0,0];function p(ee){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,this.a&&ee.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&ee.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&ee.skewFromAxis(-this.sk.v,this.sa.v),this.r?ee.rotate(-this.r.v):ee.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?ee.translate(this.px.v,this.py.v,-this.pz.v):ee.translate(this.px.v,this.py.v,0):ee.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function v(ee){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||ee){var ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var we,Me;if(ye=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(we=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ye,0),Me=this.p.getValueAtTime(this.p.keyframes[0].t/ye,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(we=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ye,0),Me=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):(we=this.p.pv,Me=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){we=[],Me=[];var R=this.px,te=this.py;R._caching.lastFrame+R.offsetTime<=R.keyframes[0].t?(we[0]=R.getValueAtTime((R.keyframes[0].t+.01)/ye,0),we[1]=te.getValueAtTime((te.keyframes[0].t+.01)/ye,0),Me[0]=R.getValueAtTime(R.keyframes[0].t/ye,0),Me[1]=te.getValueAtTime(te.keyframes[0].t/ye,0)):R._caching.lastFrame+R.offsetTime>=R.keyframes[R.keyframes.length-1].t?(we[0]=R.getValueAtTime(R.keyframes[R.keyframes.length-1].t/ye,0),we[1]=te.getValueAtTime(te.keyframes[te.keyframes.length-1].t/ye,0),Me[0]=R.getValueAtTime((R.keyframes[R.keyframes.length-1].t-.01)/ye,0),Me[1]=te.getValueAtTime((te.keyframes[te.keyframes.length-1].t-.01)/ye,0)):(we=[R.pv,te.pv],Me[0]=R.getValueAtTime((R._caching.lastFrame+R.offsetTime-.01)/ye,R.offsetTime),Me[1]=te.getValueAtTime((te._caching.lastFrame+te.offsetTime-.01)/ye,te.offsetTime))}else Me=c,we=Me;this.v.rotate(-Math.atan2(we[1]-Me[1],we[0]-Me[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function x(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function P(){}function _(ee){this._addDynamicProperty(ee),this.elem.addDynamicProperty(ee),this._isDirty=!0}function q(ee,ye,we){if(this.elem=ee,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new On,this.pre=new On,this.appliedTransformations=0,this.initDynamicPropertyContainer(we||ee),ye.p&&ye.p.s?(this.px=st.getProp(ee,ye.p.x,0,0,this),this.py=st.getProp(ee,ye.p.y,0,0,this),ye.p.z&&(this.pz=st.getProp(ee,ye.p.z,0,0,this))):this.p=st.getProp(ee,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=st.getProp(ee,ye.rx,0,Ee,this),this.ry=st.getProp(ee,ye.ry,0,Ee,this),this.rz=st.getProp(ee,ye.rz,0,Ee,this),ye.or.k[0].ti){var Me,R=ye.or.k.length;for(Me=0;Me<R;Me+=1)ye.or.k[Me].to=null,ye.or.k[Me].ti=null}this.or=st.getProp(ee,ye.or,1,Ee,this),this.or.sh=!0}else this.r=st.getProp(ee,ye.r||{k:0},0,Ee,this);ye.sk&&(this.sk=st.getProp(ee,ye.sk,0,Ee,this),this.sa=st.getProp(ee,ye.sa,0,Ee,this)),this.a=st.getProp(ee,ye.a||{k:[0,0,0]},1,0,this),this.s=st.getProp(ee,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=st.getProp(ee,ye.o,0,.01,ee):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}q.prototype={applyToMatrix:p,getValue:v,precalculateMatrix:x,autoOrient:P},Ie([dn],q),q.prototype.addDynamicProperty=_,q.prototype._addDynamicProperty=dn.prototype.addDynamicProperty;function pe(ee,ye,we){return new q(ee,ye,we)}return{getTransformProperty:pe}}();function vr(){}Ie([gr],vr),vr.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.c=st.getProp(c,p.c,0,null,this),this.o=st.getProp(c,p.o,0,null,this),this.tr=Qo.getTransformProperty(c,p.tr,this),this.so=st.getProp(c,p.tr.so,0,.01,this),this.eo=st.getProp(c,p.tr.eo,0,.01,this),this.data=p,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new On,this.rMatrix=new On,this.sMatrix=new On,this.tMatrix=new On,this.matrix=new On},vr.prototype.applyTransforms=function(c,p,v,x,P,_){var q=_?-1:1,pe=x.s.v[0]+(1-x.s.v[0])*(1-P),ee=x.s.v[1]+(1-x.s.v[1])*(1-P);c.translate(x.p.v[0]*q*P,x.p.v[1]*q*P,x.p.v[2]),p.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),p.rotate(-x.r.v*q*P),p.translate(x.a.v[0],x.a.v[1],x.a.v[2]),v.translate(-x.a.v[0],-x.a.v[1],x.a.v[2]),v.scale(_?1/pe:pe,_?1/ee:ee),v.translate(x.a.v[0],x.a.v[1],x.a.v[2])},vr.prototype.init=function(c,p,v,x){for(this.elem=c,this.arr=p,this.pos=v,this.elemsData=x,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(c),this.initModifierProperties(c,p[v]);v>0;)v-=1,this._elements.unshift(p[v]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},vr.prototype.resetElements=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p]._processed=!1,c[p].ty==="gr"&&this.resetElements(c[p].it)},vr.prototype.cloneElements=function(c){var p=JSON.parse(JSON.stringify(c));return this.resetElements(p),p},vr.prototype.changeGroupRender=function(c,p){var v,x=c.length;for(v=0;v<x;v+=1)c[v]._render=p,c[v].ty==="gr"&&this.changeGroupRender(c[v].it,p)},vr.prototype.processShapes=function(c){var p,v,x,P,_,q=!1;if(this._mdf||c){var pe=Math.ceil(this.c.v);if(this._groups.length<pe){for(;this._groups.length<pe;){var ee={it:this.cloneElements(this._elements),ty:"gr"};ee.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,ee),this._groups.splice(0,0,ee),this._currentCopies+=1}this.elem.reloadShapes(),q=!0}_=0;var ye;for(x=0;x<=this._groups.length-1;x+=1){if(ye=_<pe,this._groups[x]._render=ye,this.changeGroupRender(this._groups[x].it,ye),!ye){var we=this.elemsData[x].it,Me=we[we.length-1];Me.transform.op.v!==0?(Me.transform.op._mdf=!0,Me.transform.op.v=0):Me.transform.op._mdf=!1}_+=1}this._currentCopies=pe;var R=this.o.v,te=R%1,Y=R>0?Math.floor(R):Math.ceil(R),de=this.pMatrix.props,fe=this.rMatrix.props,H=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(R>0){for(;Z<Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;te&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,te,!1),Z+=te)}else if(R<0){for(;Z>Y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;te&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-te,!0),Z-=te)}x=this.data.m===1?0:this._currentCopies-1,P=this.data.m===1?1:-1,_=this._currentCopies;for(var I,B;_;){if(p=this.elemsData[x].it,v=p[p.length-1].transform.mProps.v.props,B=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(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),this.matrix.transform(H[0],H[1],H[2],H[3],H[4],H[5],H[6],H[7],H[8],H[9],H[10],H[11],H[12],H[13],H[14],H[15]),this.matrix.transform(de[0],de[1],de[2],de[3],de[4],de[5],de[6],de[7],de[8],de[9],de[10],de[11],de[12],de[13],de[14],de[15]),I=0;I<B;I+=1)v[I]=this.matrix.props[I];this.matrix.reset()}else for(this.matrix.reset(),I=0;I<B;I+=1)v[I]=this.matrix.props[I];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 q},vr.prototype.addShape=function(){};function fo(){}Ie([gr],fo),fo.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.rd=st.getProp(c,p.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},fo.prototype.processPath=function(c,p){var v=Zn.newElement();v.c=c.c;var x,P=c._length,_,q,pe,ee,ye,we,Me=0,R,te,Y,de,fe,H;for(x=0;x<P;x+=1)_=c.v[x],pe=c.o[x],q=c.i[x],_[0]===pe[0]&&_[1]===pe[1]&&_[0]===q[0]&&_[1]===q[1]?(x===0||x===P-1)&&!c.c?(v.setTripleAt(_[0],_[1],pe[0],pe[1],q[0],q[1],Me),Me+=1):(x===0?ee=c.v[P-1]:ee=c.v[x-1],ye=Math.sqrt(Math.pow(_[0]-ee[0],2)+Math.pow(_[1]-ee[1],2)),we=ye?Math.min(ye/2,p)/ye:0,fe=_[0]+(ee[0]-_[0])*we,R=fe,H=_[1]-(_[1]-ee[1])*we,te=H,Y=R-(R-_[0])*Te,de=te-(te-_[1])*Te,v.setTripleAt(R,te,Y,de,fe,H,Me),Me+=1,x===P-1?ee=c.v[0]:ee=c.v[x+1],ye=Math.sqrt(Math.pow(_[0]-ee[0],2)+Math.pow(_[1]-ee[1],2)),we=ye?Math.min(ye/2,p)/ye:0,Y=_[0]+(ee[0]-_[0])*we,R=Y,de=_[1]+(ee[1]-_[1])*we,te=de,fe=R-(R-_[0])*Te,H=te-(te-_[1])*Te,v.setTripleAt(R,te,Y,de,fe,H,Me),Me+=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],Me),Me+=1);return v},fo.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.rd.v;if(q!==0){var pe,ee;for(v=0;v<x;v+=1){if(pe=this.shapes[v],ee=pe.localShapeCollection,!(!pe.shape._mdf&&!this._mdf&&!c))for(ee.releaseShapes(),pe.shape._mdf=!0,p=pe.shape.paths.shapes,_=pe.shape.paths._length,P=0;P<_;P+=1)ee.addShape(this.processPath(p[P],q));pe.shape.paths=pe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function ho(c,p){return Math.abs(c-p)*1e5<=Math.min(Math.abs(c),Math.abs(p))}function Si(c){return Math.abs(c)<=1e-5}function hi(c,p,v){return c*(1-v)+p*v}function or(c,p,v){return[hi(c[0],p[0],v),hi(c[1],p[1],v)]}function Ei(c,p,v){if(c===0)return[];var x=p*p-4*c*v;if(x<0)return[];var P=-p/(2*c);if(x===0)return[P];var _=Math.sqrt(x)/(2*c);return[P-_,P+_]}function ja(c,p,v,x){return[-c+3*p-3*v+x,3*c-6*p+3*v,-3*c+3*p,c]}function el(c){return new vn(c,c,c,c,!1)}function vn(c,p,v,x,P){P&&is(c,p)&&(p=or(c,x,1/3)),P&&is(v,x)&&(v=or(c,x,2/3));var _=ja(c[0],p[0],v[0],x[0]),q=ja(c[1],p[1],v[1],x[1]);this.a=[_[0],q[0]],this.b=[_[1],q[1]],this.c=[_[2],q[2]],this.d=[_[3],q[3]],this.points=[c,p,v,x]}vn.prototype.point=function(c){return[((this.a[0]*c+this.b[0])*c+this.c[0])*c+this.d[0],((this.a[1]*c+this.b[1])*c+this.c[1])*c+this.d[1]]},vn.prototype.derivative=function(c){return[(3*c*this.a[0]+2*this.b[0])*c+this.c[0],(3*c*this.a[1]+2*this.b[1])*c+this.c[1]]},vn.prototype.tangentAngle=function(c){var p=this.derivative(c);return Math.atan2(p[1],p[0])},vn.prototype.normalAngle=function(c){var p=this.derivative(c);return Math.atan2(p[0],p[1])},vn.prototype.inflectionPoints=function(){var c=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Si(c))return[];var p=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/c,v=p*p-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/c;if(v<0)return[];var x=Math.sqrt(v);return Si(x)?x>0&&x<1?[p]:[]:[p-x,p+x].filter(function(P){return P>0&&P<1})},vn.prototype.split=function(c){if(c<=0)return[el(this.points[0]),this];if(c>=1)return[this,el(this.points[this.points.length-1])];var p=or(this.points[0],this.points[1],c),v=or(this.points[1],this.points[2],c),x=or(this.points[2],this.points[3],c),P=or(p,v,c),_=or(v,x,c),q=or(P,_,c);return[new vn(this.points[0],p,P,q,!0),new vn(q,_,x,this.points[3],!0)]};function Ka(c,p){var v=c.points[0][p],x=c.points[c.points.length-1][p];if(v>x){var P=x;x=v,v=P}for(var _=Ei(3*c.a[p],2*c.b[p],c.c[p]),q=0;q<_.length;q+=1)if(_[q]>0&&_[q]<1){var pe=c.point(_[q])[p];pe<v?v=pe:pe>x&&(x=pe)}return{min:v,max:x}}vn.prototype.bounds=function(){return{x:Ka(this,0),y:Ka(this,1)}},vn.prototype.boundingBox=function(){var c=this.bounds();return{left:c.x.min,right:c.x.max,top:c.y.min,bottom:c.y.max,width:c.x.max-c.x.min,height:c.y.max-c.y.min,cx:(c.x.max+c.x.min)/2,cy:(c.y.max+c.y.min)/2}};function po(c,p,v){var x=c.boundingBox();return{cx:x.cx,cy:x.cy,width:x.width,height:x.height,bez:c,t:(p+v)/2,t1:p,t2:v}}function Ua(c){var p=c.bez.split(.5);return[po(p[0],c.t1,c.t),po(p[1],c.t,c.t2)]}function tl(c,p){return Math.abs(c.cx-p.cx)*2<c.width+p.width&&Math.abs(c.cy-p.cy)*2<c.height+p.height}function Ir(c,p,v,x,P,_){if(tl(c,p)){if(v>=_||c.width<=x&&c.height<=x&&p.width<=x&&p.height<=x){P.push([c.t,p.t]);return}var q=Ua(c),pe=Ua(p);Ir(q[0],pe[0],v+1,x,P,_),Ir(q[0],pe[1],v+1,x,P,_),Ir(q[1],pe[0],v+1,x,P,_),Ir(q[1],pe[1],v+1,x,P,_)}}vn.prototype.intersections=function(c,p,v){p===void 0&&(p=2),v===void 0&&(v=7);var x=[];return Ir(po(this,0,1),po(c,0,1),0,p,x,v),x},vn.shapeSegment=function(c,p){var v=(p+1)%c.length();return new vn(c.v[p],c.o[p],c.i[v],c.v[v],!0)},vn.shapeSegmentInverted=function(c,p){var v=(p+1)%c.length();return new vn(c.v[v],c.i[v],c.o[p],c.v[p],!0)};function za(c,p){return[c[1]*p[2]-c[2]*p[1],c[2]*p[0]-c[0]*p[2],c[0]*p[1]-c[1]*p[0]]}function Ps(c,p,v,x){var P=[c[0],c[1],1],_=[p[0],p[1],1],q=[v[0],v[1],1],pe=[x[0],x[1],1],ee=za(za(P,_),za(q,pe));return Si(ee[2])?null:[ee[0]/ee[2],ee[1]/ee[2]]}function _s(c,p,v){return[c[0]+Math.cos(p)*v,c[1]-Math.sin(p)*v]}function mo(c,p){return Math.hypot(c[0]-p[0],c[1]-p[1])}function is(c,p){return ho(c[0],p[0])&&ho(c[1],p[1])}function go(){}Ie([gr],go),go.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amplitude=st.getProp(c,p.s,0,null,this),this.frequency=st.getProp(c,p.r,0,null,this),this.pointsType=st.getProp(c,p.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function ea(c,p,v,x,P,_,q){var pe=v-Math.PI/2,ee=v+Math.PI/2,ye=p[0]+Math.cos(v)*x*P,we=p[1]-Math.sin(v)*x*P;c.setTripleAt(ye,we,ye+Math.cos(pe)*_,we-Math.sin(pe)*_,ye+Math.cos(ee)*q,we-Math.sin(ee)*q,c.length())}function nl(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 jc(c,p){var v=p===0?c.length()-1:p-1,x=(p+1)%c.length(),P=c.v[v],_=c.v[x],q=nl(P,_);return Math.atan2(0,1)-Math.atan2(q[1],q[0])}function vo(c,p,v,x,P,_,q){var pe=jc(p,v),ee=p.v[v%p._length],ye=p.v[v===0?p._length-1:v-1],we=p.v[(v+1)%p._length],Me=_===2?Math.sqrt(Math.pow(ee[0]-ye[0],2)+Math.pow(ee[1]-ye[1],2)):0,R=_===2?Math.sqrt(Math.pow(ee[0]-we[0],2)+Math.pow(ee[1]-we[1],2)):0;ea(c,p.v[v%p._length],pe,q,x,R/((P+1)*2),Me/((P+1)*2))}function Kc(c,p,v,x,P,_){for(var q=0;q<x;q+=1){var pe=(q+1)/(x+1),ee=P===2?Math.sqrt(Math.pow(p.points[3][0]-p.points[0][0],2)+Math.pow(p.points[3][1]-p.points[0][1],2)):0,ye=p.normalAngle(pe),we=p.point(pe);ea(c,we,ye,_,v,ee/((x+1)*2),ee/((x+1)*2)),_=-_}return _}go.prototype.processPath=function(c,p,v,x){var P=c._length,_=Zn.newElement();if(_.c=c.c,c.c||(P-=1),P===0)return _;var q=-1,pe=vn.shapeSegment(c,0);vo(_,c,0,p,v,x,q);for(var ee=0;ee<P;ee+=1)q=Kc(_,pe,p,v,x,-q),ee===P-1&&!c.c?pe=null:pe=vn.shapeSegment(c,(ee+1)%P),vo(_,c,ee+1,p,v,x,q);return _},go.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amplitude.v,pe=Math.max(0,Math.round(this.frequency.v)),ee=this.pointsType.v;if(q!==0){var ye,we;for(v=0;v<x;v+=1){if(ye=this.shapes[v],we=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)we.addShape(this.processPath(p[P],q,pe,ee));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function yo(c,p,v){var x=Math.atan2(p[0]-c[0],p[1]-c[1]);return[_s(c,x,v),_s(p,x,v)]}function Wt(c,p){var v,x,P,_,q,pe,ee;ee=yo(c.points[0],c.points[1],p),v=ee[0],x=ee[1],ee=yo(c.points[1],c.points[2],p),P=ee[0],_=ee[1],ee=yo(c.points[2],c.points[3],p),q=ee[0],pe=ee[1];var ye=Ps(v,x,P,_);ye===null&&(ye=x);var we=Ps(q,pe,P,_);return we===null&&(we=q),new vn(v,ye,we,pe)}function Qt(c,p,v,x,P){var _=p.points[3],q=v.points[0];if(x===3||is(_,q))return _;if(x===2){var pe=-p.tangentAngle(1),ee=-v.tangentAngle(0)+Math.PI,ye=Ps(_,_s(_,pe+Math.PI/2,100),q,_s(q,pe+Math.PI/2,100)),we=ye?mo(ye,_):mo(_,q)/2,Me=_s(_,pe,2*we*Te);return c.setXYAt(Me[0],Me[1],"o",c.length()-1),Me=_s(q,ee,2*we*Te),c.setTripleAt(q[0],q[1],q[0],q[1],Me[0],Me[1],c.length()),q}var R=is(_,p.points[2])?p.points[0]:p.points[2],te=is(q,v.points[1])?v.points[3]:v.points[1],Y=Ps(R,_,q,te);return Y&&mo(Y,_)<P?(c.setTripleAt(Y[0],Y[1],Y[0],Y[1],Y[0],Y[1],c.length()),Y):_}function ue(c,p){var v=c.intersections(p);return v.length&&ho(v[0][0],1)&&v.shift(),v.length?v[0]:null}function _e(c,p){var v=c.slice(),x=p.slice(),P=ue(c[c.length-1],p[0]);return P&&(v[c.length-1]=c[c.length-1].split(P[0])[0],x[0]=p[0].split(P[1])[1]),c.length>1&&p.length>1&&(P=ue(c[0],p[p.length-1]),P)?[[c[0].split(P[0])[0]],[p[p.length-1].split(P[1])[1]]]:[v,x]}function qe(c){for(var p,v=1;v<c.length;v+=1)p=_e(c[v-1],c[v]),c[v-1]=p[0],c[v]=p[1];return c.length>1&&(p=_e(c[c.length-1],c[0]),c[c.length-1]=p[0],c[0]=p[1]),c}function pt(c,p){var v=c.inflectionPoints(),x,P,_,q;if(v.length===0)return[Wt(c,p)];if(v.length===1||ho(v[1],1))return _=c.split(v[0]),x=_[0],P=_[1],[Wt(x,p),Wt(P,p)];_=c.split(v[0]),x=_[0];var pe=(v[1]-v[0])/(1-v[0]);return _=_[1].split(pe),q=_[0],P=_[1],[Wt(x,p),Wt(q,p),Wt(P,p)]}function $n(){}Ie([gr],$n),$n.prototype.initModifierProperties=function(c,p){this.getValue=this.processKeys,this.amount=st.getProp(c,p.a,0,null,this),this.miterLimit=st.getProp(c,p.ml,0,null,this),this.lineJoin=p.lj,this._isAnimated=this.amount.effectsSequence.length!==0},$n.prototype.processPath=function(c,p,v,x){var P=Zn.newElement();P.c=c.c;var _=c.length();c.c||(_-=1);var q,pe,ee,ye=[];for(q=0;q<_;q+=1)ee=vn.shapeSegment(c,q),ye.push(pt(ee,p));if(!c.c)for(q=_-1;q>=0;q-=1)ee=vn.shapeSegmentInverted(c,q),ye.push(pt(ee,p));ye=qe(ye);var we=null,Me=null;for(q=0;q<ye.length;q+=1){var R=ye[q];for(Me&&(we=Qt(P,Me,R[0],v,x)),Me=R[R.length-1],pe=0;pe<R.length;pe+=1)ee=R[pe],we&&is(ee.points[0],we)?P.setXYAt(ee.points[1][0],ee.points[1][1],"o",P.length()-1):P.setTripleAt(ee.points[0][0],ee.points[0][1],ee.points[1][0],ee.points[1][1],ee.points[0][0],ee.points[0][1],P.length()),P.setTripleAt(ee.points[3][0],ee.points[3][1],ee.points[3][0],ee.points[3][1],ee.points[2][0],ee.points[2][1],P.length()),we=ee.points[3]}return ye.length&&Qt(P,Me,ye[0][0],v,x),P},$n.prototype.processShapes=function(c){var p,v,x=this.shapes.length,P,_,q=this.amount.v,pe=this.miterLimit.v,ee=this.lineJoin;if(q!==0){var ye,we;for(v=0;v<x;v+=1){if(ye=this.shapes[v],we=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!c))for(we.releaseShapes(),ye.shape._mdf=!0,p=ye.shape.paths.shapes,_=ye.shape.paths._length,P=0;P<_;P+=1)we.addShape(this.processPath(p[P],q,ee,pe));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function nr(c){for(var p=c.fStyle?c.fStyle.split(" "):[],v="normal",x="normal",P=p.length,_,q=0;q<P;q+=1)switch(_=p[q].toLowerCase(),_){case"italic":x="italic";break;case"bold":v="700";break;case"black":v="900";break;case"medium":v="500";break;case"regular":case"normal":v="400";break;case"light":case"thin":v="200";break}return{style:x,weight:c.fWeight||v}}var ar=function(){var c=5e3,p={w:0,size:0,shapes:[],data:{shapes:[]}},v=[];v=v.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var x=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],P=[65039,8205];function _(B){var G=B.split(","),re,le=G.length,he=[];for(re=0;re<le;re+=1)G[re]!=="sans-serif"&&G[re]!=="monospace"&&he.push(G[re]);return he.join(",")}function q(B,G){var re=Oe("span");re.setAttribute("aria-hidden",!0),re.style.fontFamily=G;var le=Oe("span");le.innerText="giItT1WQy@!-/#",re.style.position="absolute",re.style.left="-10000px",re.style.top="-10000px",re.style.fontSize="300px",re.style.fontVariant="normal",re.style.fontStyle="normal",re.style.fontWeight="normal",re.style.letterSpacing="0",re.appendChild(le),document.body.appendChild(re);var he=le.offsetWidth;return le.style.fontFamily=_(B)+", "+G,{node:le,w:he,parent:re}}function pe(){var B,G=this.fonts.length,re,le,he=G;for(B=0;B<G;B+=1)this.fonts[B].loaded?he-=1:this.fonts[B].fOrigin==="n"||this.fonts[B].origin===0?this.fonts[B].loaded=!0:(re=this.fonts[B].monoCase.node,le=this.fonts[B].monoCase.w,re.offsetWidth!==le?(he-=1,this.fonts[B].loaded=!0):(re=this.fonts[B].sansCase.node,le=this.fonts[B].sansCase.w,re.offsetWidth!==le&&(he-=1,this.fonts[B].loaded=!0)),this.fonts[B].loaded&&(this.fonts[B].sansCase.parent.parentNode.removeChild(this.fonts[B].sansCase.parent),this.fonts[B].monoCase.parent.parentNode.removeChild(this.fonts[B].monoCase.parent)));he!==0&&Date.now()-this.initTime<c?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function ee(B,G){var re=document.body&&G?"svg":"canvas",le,he=nr(B);if(re==="svg"){var ke=yt("text");ke.style.fontSize="100px",ke.setAttribute("font-family",B.fFamily),ke.setAttribute("font-style",he.style),ke.setAttribute("font-weight",he.weight),ke.textContent="1",B.fClass?(ke.style.fontFamily="inherit",ke.setAttribute("class",B.fClass)):ke.style.fontFamily=B.fFamily,G.appendChild(ke),le=ke}else{var tt=new OffscreenCanvas(500,500).getContext("2d");tt.font=he.style+" "+he.weight+" 100px "+B.fFamily,le=tt}function Qe(Ne){return re==="svg"?(le.textContent=Ne,le.getComputedTextLength()):le.measureText(Ne).width}return{measureText:Qe}}function ye(B,G){if(!B){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=B.list;return}if(!document.body){this.isLoaded=!0,B.list.forEach(function(be){be.helper=ee(be),be.cache={}}),this.fonts=B.list;return}var re=B.list,le,he=re.length,ke=he;for(le=0;le<he;le+=1){var tt=!0,Qe,Ne;if(re[le].loaded=!1,re[le].monoCase=q(re[le].fFamily,"monospace"),re[le].sansCase=q(re[le].fFamily,"sans-serif"),!re[le].fPath)re[le].loaded=!0,ke-=1;else if(re[le].fOrigin==="p"||re[le].origin===3){if(Qe=document.querySelectorAll('style[f-forigin="p"][f-family="'+re[le].fFamily+'"], style[f-origin="3"][f-family="'+re[le].fFamily+'"]'),Qe.length>0&&(tt=!1),tt){var at=Oe("style");at.setAttribute("f-forigin",re[le].fOrigin),at.setAttribute("f-origin",re[le].origin),at.setAttribute("f-family",re[le].fFamily),at.type="text/css",at.innerText="@font-face {font-family: "+re[le].fFamily+"; font-style: normal; src: url('"+re[le].fPath+"');}",G.appendChild(at)}}else if(re[le].fOrigin==="g"||re[le].origin===1){for(Qe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ne=0;Ne<Qe.length;Ne+=1)Qe[Ne].href.indexOf(re[le].fPath)!==-1&&(tt=!1);if(tt){var ft=Oe("link");ft.setAttribute("f-forigin",re[le].fOrigin),ft.setAttribute("f-origin",re[le].origin),ft.type="text/css",ft.rel="stylesheet",ft.href=re[le].fPath,document.body.appendChild(ft)}}else if(re[le].fOrigin==="t"||re[le].origin===2){for(Qe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ne=0;Ne<Qe.length;Ne+=1)re[le].fPath===Qe[Ne].src&&(tt=!1);if(tt){var Be=Oe("link");Be.setAttribute("f-forigin",re[le].fOrigin),Be.setAttribute("f-origin",re[le].origin),Be.setAttribute("rel","stylesheet"),Be.setAttribute("href",re[le].fPath),G.appendChild(Be)}}re[le].helper=ee(re[le],G),re[le].cache={},this.fonts.push(re[le])}ke===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function we(B){if(B){this.chars||(this.chars=[]);var G,re=B.length,le,he=this.chars.length,ke;for(G=0;G<re;G+=1){for(le=0,ke=!1;le<he;)this.chars[le].style===B[G].style&&this.chars[le].fFamily===B[G].fFamily&&this.chars[le].ch===B[G].ch&&(ke=!0),le+=1;ke||(this.chars.push(B[G]),he+=1)}}}function Me(B,G,re){for(var le=0,he=this.chars.length;le<he;){if(this.chars[le].ch===B&&this.chars[le].style===G&&this.chars[le].fFamily===re)return this.chars[le];le+=1}return(typeof B=="string"&&B.charCodeAt(0)!==13||!B)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",B,G,re)),p}function R(B,G,re){var le=this.getFontByName(G),he=B.charCodeAt(0);if(!le.cache[he+1]){var ke=le.helper;if(B===" "){var tt=ke.measureText("|"+B+"|"),Qe=ke.measureText("||");le.cache[he+1]=(tt-Qe)/100}else le.cache[he+1]=ke.measureText(B)/100}return le.cache[he+1]*re}function te(B){for(var G=0,re=this.fonts.length;G<re;){if(this.fonts[G].fName===B)return this.fonts[G];G+=1}return this.fonts[0]}function Y(B,G){var re=B.toString(16)+G.toString(16);return x.indexOf(re)!==-1}function de(B,G){return G?B===P[0]&&G===P[1]:B===P[1]}function fe(B){return v.indexOf(B)!==-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=de,Z.isCombinedCharacter=fe;var I={addChars:we,addFonts:ye,getCharData:Me,getFontByName:te,measureText:R,checkLoadedFonts:pe,setIsLoaded:H};return Z.prototype=I,Z}();function Nn(){}Nn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(p){this.renderableComponents.indexOf(p)===-1&&this.renderableComponents.push(p)},removeRenderableComponent:function(p){this.renderableComponents.indexOf(p)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(p),1)},prepareRenderableFrame:function(p){this.checkLayerLimits(p)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(p){this.data.ip-this.data.st<=p&&this.data.op-this.data.st>p?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var p,v=this.renderableComponents.length;for(p=0;p<v;p+=1)this.renderableComponents[p].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Dn=function(){var c={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(p){return c[p]||""}}();function Di(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Ai(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function qa(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function ta(c,p,v){this.p=st.getProp(p,c.v,1,0,v)}function ur(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function bo(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Yd(c,p,v){this.p=st.getProp(p,c.v,0,0,v)}function Zd(){this.p={}}function Uc(c,p){var v=c.ef||[];this.effectElements=[];var x,P=v.length,_;for(x=0;x<P;x+=1)_=new na(v[x],p),this.effectElements.push(_)}function na(c,p){this.init(c,p)}Ie([dn],na),na.prototype.getValue=na.prototype.iterateDynamicProperties,na.prototype.init=function(c,p){this.data=c,this.effectElements=[],this.initDynamicPropertyContainer(p);var v,x=this.data.ef.length,P,_=this.data.ef;for(v=0;v<x;v+=1){switch(P=null,_[v].ty){case 0:P=new Di(_[v],p,this);break;case 1:P=new Ai(_[v],p,this);break;case 2:P=new qa(_[v],p,this);break;case 3:P=new ta(_[v],p,this);break;case 4:case 7:P=new Yd(_[v],p,this);break;case 10:P=new ur(_[v],p,this);break;case 11:P=new bo(_[v],p,this);break;case 5:P=new Uc(_[v],p);break;default:P=new Zd(_[v]);break}P&&this.effectElements.push(P)}};function ss(){}ss.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var p=0,v=this.data.masksProperties.length;p<v;){if(this.data.masksProperties[p].mode!=="n"&&this.data.masksProperties[p].cl!==!1)return!0;p+=1}return!1},initExpressions:function(){},setBlendMode:function(){var p=Dn(this.data.bm),v=this.baseElement||this.layerElement;v.style["mix-blend-mode"]=p},initBaseData:function(p,v,x){this.globalData=v,this.comp=x,this.data=p,this.layerId=Ut(),this.data.sr||(this.data.sr=1),this.effectsManager=new Uc(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function In(){}In.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(p,v){var x,P=this.dynamicProperties.length;for(x=0;x<P;x+=1)(v||this._isParent&&this.dynamicProperties[x].propType==="transform")&&(this.dynamicProperties[x].getValue(),this.dynamicProperties[x]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&this.dynamicProperties.push(p)}};function Ms(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.footageData=p.imageLoader.getAsset(this.assetData),this.initBaseData(c,p,v)}Ms.prototype.prepareFrame=function(){},Ie([Nn,ss,In],Ms),Ms.prototype.getBaseElement=function(){return null},Ms.prototype.renderFrame=function(){},Ms.prototype.destroy=function(){},Ms.prototype.initExpressions=function(){},Ms.prototype.getFootageData=function(){return this.footageData};function hn(c,p,v){this.initFrame(),this.initRenderable(),this.assetData=p.getAssetData(c.refId),this.initBaseData(c,p,v),this._isPlaying=!1,this._canPlay=!1;var x=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(x),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0},this.lv=st.getProp(this,c.au&&c.au.lv?c.au.lv:{k:[100]},1,.01,this)}hn.prototype.prepareFrame=function(c){if(this.prepareRenderableFrame(c,!0),this.prepareProperties(c,!0),this.tm._placeholder)this._currentTime=c/this.data.sr;else{var p=this.tm.v;this._currentTime=p}this._volume=this.lv.v[0];var v=this._volume*this._volumeMultiplier;this._previousVolume!==v&&(this._previousVolume=v,this.audio.volume(v))},Ie([Nn,ss,In],hn),hn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},hn.prototype.show=function(){},hn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},hn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},hn.prototype.resume=function(){this._canPlay=!0},hn.prototype.setRate=function(c){this.audio.rate(c)},hn.prototype.volume=function(c){this._volumeMultiplier=c,this._previousVolume=c*this._volume,this.audio.volume(this._previousVolume)},hn.prototype.getBaseElement=function(){return null},hn.prototype.destroy=function(){},hn.prototype.sourceRectAtTime=function(){},hn.prototype.initExpressions=function(){};function lr(){}lr.prototype.checkLayers=function(c){var p,v=this.layers.length,x;for(this.completeLayers=!0,p=v-1;p>=0;p-=1)this.elements[p]||(x=this.layers[p],x.ip-x.st<=c-this.layers[p].st&&x.op-x.st>c-this.layers[p].st&&this.buildItem(p)),this.completeLayers=this.elements[p]?this.completeLayers:!1;this.checkPendingElements()},lr.prototype.createItem=function(c){switch(c.ty){case 2:return this.createImage(c);case 0:return this.createComp(c);case 1:return this.createSolid(c);case 3:return this.createNull(c);case 4:return this.createShape(c);case 5:return this.createText(c);case 6:return this.createAudio(c);case 13:return this.createCamera(c);case 15:return this.createFootage(c);default:return this.createNull(c)}},lr.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},lr.prototype.createAudio=function(c){return new hn(c,this.globalData,this)},lr.prototype.createFootage=function(c){return new Ms(c,this.globalData,this)},lr.prototype.buildAllItems=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.buildItem(c);this.checkPendingElements()},lr.prototype.includeLayers=function(c){this.completeLayers=!1;var p,v=c.length,x,P=this.layers.length;for(p=0;p<v;p+=1)for(x=0;x<P;){if(this.layers[x].id===c[p].id){this.layers[x]=c[p];break}x+=1}},lr.prototype.setProjectInterface=function(c){this.globalData.projectInterface=c},lr.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},lr.prototype.buildElementParenting=function(c,p,v){for(var x=this.elements,P=this.layers,_=0,q=P.length;_<q;)P[_].ind==p&&(!x[_]||x[_]===!0?(this.buildItem(_),this.addPendingElement(c)):(v.push(x[_]),x[_].setAsParent(),P[_].parent!==void 0?this.buildElementParenting(c,P[_].parent,v):c.setHierarchy(v))),_+=1},lr.prototype.addPendingElement=function(c){this.pendingElements.push(c)},lr.prototype.searchExtraCompositions=function(c){var p,v=c.length;for(p=0;p<v;p+=1)if(c[p].xt){var x=this.createComp(c[p]);x.initExpressions(),this.globalData.projectInterface.registerComposition(x)}},lr.prototype.getElementById=function(c){var p,v=this.elements.length;for(p=0;p<v;p+=1)if(this.elements[p].data.ind===c)return this.elements[p];return null},lr.prototype.getElementByPath=function(c){var p=c.shift(),v;if(typeof p=="number")v=this.elements[p];else{var x,P=this.elements.length;for(x=0;x<P;x+=1)if(this.elements[x].data.nm===p){v=this.elements[x];break}}return c.length===0?v:v.getElementByPath(c)},lr.prototype.setupGlobalData=function(c,p){this.globalData.fontManager=new ar,this.globalData.fontManager.addChars(c.chars),this.globalData.fontManager.addFonts(c.fonts,p),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=c.fr,this.globalData.nm=c.nm,this.globalData.compSize={w:c.w,h:c.h}};function $o(){}$o.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Qo.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new On},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var p,v=this.finalTransform.mat,x=0,P=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;x<P;){if(this.hierarchy[x].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}x+=1}if(this.finalTransform._matMdf)for(p=this.finalTransform.mProp.v.props,v.cloneFromProps(p),x=0;x<P;x+=1)p=this.hierarchy[x].finalTransform.mProp.v.props,v.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15])}},globalToLocal:function(p){var v=[];v.push(this.finalTransform);for(var x=!0,P=this.comp;x;)P.finalTransform?(P.data.hasMask&&v.splice(0,0,P.finalTransform),P=P.comp):x=!1;var _,q=v.length,pe;for(_=0;_<q;_+=1)pe=v[_].mat.applyToPointArray(0,0,0),p=[p[0]-pe[0],p[1]-pe[1],0];return p},mHelper:new On};function Cr(c,p,v){this.data=c,this.element=p,this.globalData=v,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var x=this.globalData.defs,P,_=this.masksProperties?this.masksProperties.length:0;this.viewData=Ue(_),this.solidPath="";var q,pe=this.masksProperties,ee=0,ye=[],we,Me,R=Ut(),te,Y,de,fe,H="clipPath",Z="clip-path";for(P=0;P<_;P+=1)if((pe[P].mode!=="a"&&pe[P].mode!=="n"||pe[P].inv||pe[P].o.k!==100||pe[P].o.x)&&(H="mask",Z="mask"),(pe[P].mode==="s"||pe[P].mode==="i")&&ee===0?(te=yt("rect"),te.setAttribute("fill","#ffffff"),te.setAttribute("width",this.element.comp.data.w||0),te.setAttribute("height",this.element.comp.data.h||0),ye.push(te)):te=null,q=yt("path"),pe[P].mode==="n")this.viewData[P]={op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:di.getShapeProp(this.element,pe[P],3),elem:q,lastPath:""},x.appendChild(q);else{ee+=1,q.setAttribute("fill",pe[P].mode==="s"?"#000000":"#ffffff"),q.setAttribute("clip-rule","nonzero");var I;if(pe[P].x.k!==0?(H="mask",Z="mask",fe=st.getProp(this.element,pe[P].x,0,null,this.element),I=Ut(),Y=yt("filter"),Y.setAttribute("id",I),de=yt("feMorphology"),de.setAttribute("operator","erode"),de.setAttribute("in","SourceGraphic"),de.setAttribute("radius","0"),Y.appendChild(de),x.appendChild(Y),q.setAttribute("stroke",pe[P].mode==="s"?"#000000":"#ffffff")):(de=null,fe=null),this.storedData[P]={elem:q,x:fe,expan:de,lastPath:"",lastOperator:"",filterId:I,lastRadius:0},pe[P].mode==="i"){Me=ye.length;var B=yt("g");for(we=0;we<Me;we+=1)B.appendChild(ye[we]);var G=yt("mask");G.setAttribute("mask-type","alpha"),G.setAttribute("id",R+"_"+ee),G.appendChild(q),x.appendChild(G),B.setAttribute("mask","url("+Pe()+"#"+R+"_"+ee+")"),ye.length=0,ye.push(B)}else ye.push(q);pe[P].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[P]={elem:q,lastPath:"",op:st.getProp(this.element,pe[P].o,0,.01,this.element),prop:di.getShapeProp(this.element,pe[P],3),invRect:te},this.viewData[P].prop.k||this.drawPath(pe[P],this.viewData[P].prop.v,this.viewData[P])}for(this.maskElement=yt(H),_=ye.length,P=0;P<_;P+=1)this.maskElement.appendChild(ye[P]);ee>0&&(this.maskElement.setAttribute("id",R),this.element.maskedElement.setAttribute(Z,"url("+Pe()+"#"+R+")"),x.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Cr.prototype.getMaskProperty=function(c){return this.viewData[c].prop},Cr.prototype.renderFrame=function(c){var p=this.element.finalTransform.mat,v,x=this.masksProperties.length;for(v=0;v<x;v+=1)if((this.viewData[v].prop._mdf||c)&&this.drawPath(this.masksProperties[v],this.viewData[v].prop.v,this.viewData[v]),(this.viewData[v].op._mdf||c)&&this.viewData[v].elem.setAttribute("fill-opacity",this.viewData[v].op.v),this.masksProperties[v].mode!=="n"&&(this.viewData[v].invRect&&(this.element.finalTransform.mProp._mdf||c)&&this.viewData[v].invRect.setAttribute("transform",p.getInverseMatrix().to2dCSS()),this.storedData[v].x&&(this.storedData[v].x._mdf||c))){var P=this.storedData[v].expan;this.storedData[v].x.v<0?(this.storedData[v].lastOperator!=="erode"&&(this.storedData[v].lastOperator="erode",this.storedData[v].elem.setAttribute("filter","url("+Pe()+"#"+this.storedData[v].filterId+")")),P.setAttribute("radius",-this.storedData[v].x.v)):(this.storedData[v].lastOperator!=="dilate"&&(this.storedData[v].lastOperator="dilate",this.storedData[v].elem.setAttribute("filter",null)),this.storedData[v].elem.setAttribute("stroke-width",this.storedData[v].x.v*2))}},Cr.prototype.getMaskelement=function(){return this.maskElement},Cr.prototype.createLayerSolidPath=function(){var c="M0,0 ";return c+=" h"+this.globalData.compSize.w,c+=" v"+this.globalData.compSize.h,c+=" h-"+this.globalData.compSize.w,c+=" v-"+this.globalData.compSize.h+" ",c},Cr.prototype.drawPath=function(c,p,v){var x=" M"+p.v[0][0]+","+p.v[0][1],P,_;for(_=p._length,P=1;P<_;P+=1)x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[P][0]+","+p.i[P][1]+" "+p.v[P][0]+","+p.v[P][1];if(p.c&&_>1&&(x+=" C"+p.o[P-1][0]+","+p.o[P-1][1]+" "+p.i[0][0]+","+p.i[0][1]+" "+p.v[0][0]+","+p.v[0][1]),v.lastPath!==x){var q="";v.elem&&(p.c&&(q=c.inv?this.solidPath+x:x),v.elem.setAttribute("d",q)),v.lastPath=x}},Cr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Rs=function(){var c={};c.createFilter=p,c.createAlphaToLuminanceFilter=v;function p(x,P){var _=yt("filter");return _.setAttribute("id",x),P!==!0&&(_.setAttribute("filterUnits","objectBoundingBox"),_.setAttribute("x","0%"),_.setAttribute("y","0%"),_.setAttribute("width","100%"),_.setAttribute("height","100%")),_}function v(){var x=yt("feColorMatrix");return x.setAttribute("type","matrix"),x.setAttribute("color-interpolation-filters","sRGB"),x.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),x}return c}(),rl=function(){var c={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(c.maskType=!1),/firefox/i.test(navigator.userAgent)&&(c.svgLumaHidden=!1),c}(),cn={},os="filter_result_";function il(c){var p,v="SourceGraphic",x=c.data.ef?c.data.ef.length:0,P=Ut(),_=Rs.createFilter(P,!0),q=0;this.filters=[];var pe;for(p=0;p<x;p+=1){pe=null;var ee=c.data.ef[p].ty;if(cn[ee]){var ye=cn[ee].effect;pe=new ye(_,c.effectsManager.effectElements[p],c,os+q,v),v=os+q,cn[ee].countsAsEffect&&(q+=1)}pe&&this.filters.push(pe)}q&&(c.globalData.defs.appendChild(_),c.layerElement.setAttribute("filter","url("+Pe()+"#"+P+")")),this.filters.length&&c.addRenderableComponent(this)}il.prototype.renderFrame=function(c){var p,v=this.filters.length;for(p=0;p<v;p+=1)this.filters[p].renderFrame(c)};function Wa(){}Wa.prototype={initRendererElement:function(){this.layerElement=yt("g")},createContainerElements:function(){this.matteElement=yt("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var p=null;if(this.data.td){this.matteMasks={};var v=yt("g");v.setAttribute("id",this.layerId),v.appendChild(this.layerElement),p=v,this.globalData.defs.appendChild(v)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),p=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var x=yt("clipPath"),P=yt("path");P.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var _=Ut();if(x.setAttribute("id",_),x.appendChild(P),this.globalData.defs.appendChild(x),this.checkMasks()){var q=yt("g");q.setAttribute("clip-path","url("+Pe()+"#"+_+")"),q.appendChild(this.layerElement),this.transformedElement=q,p?p.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+_+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Cr(this.data,this,this.globalData),this.renderableEffectsManager=new il(this)},getMatte:function(p){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[p]){var v=this.layerId+"_"+p,x,P,_,q;if(p===1||p===3){var pe=yt("mask");pe.setAttribute("id",v),pe.setAttribute("mask-type",p===3?"luminance":"alpha"),_=yt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),pe.appendChild(_),this.globalData.defs.appendChild(pe),!rl.maskType&&p===1&&(pe.setAttribute("mask-type","luminance"),x=Ut(),P=Rs.createFilter(x),this.globalData.defs.appendChild(P),P.appendChild(Rs.createAlphaToLuminanceFilter()),q=yt("g"),q.appendChild(_),pe.appendChild(q),q.setAttribute("filter","url("+Pe()+"#"+x+")"))}else if(p===2){var ee=yt("mask");ee.setAttribute("id",v),ee.setAttribute("mask-type","alpha");var ye=yt("g");ee.appendChild(ye),x=Ut(),P=Rs.createFilter(x);var we=yt("feComponentTransfer");we.setAttribute("in","SourceGraphic"),P.appendChild(we);var Me=yt("feFuncA");Me.setAttribute("type","table"),Me.setAttribute("tableValues","1.0 0.0"),we.appendChild(Me),this.globalData.defs.appendChild(P);var R=yt("rect");R.setAttribute("width",this.comp.data.w),R.setAttribute("height",this.comp.data.h),R.setAttribute("x","0"),R.setAttribute("y","0"),R.setAttribute("fill","#ffffff"),R.setAttribute("opacity","0"),ye.setAttribute("filter","url("+Pe()+"#"+x+")"),ye.appendChild(R),_=yt("use"),_.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(_),rl.maskType||(ee.setAttribute("mask-type","luminance"),P.appendChild(Rs.createAlphaToLuminanceFilter()),q=yt("g"),ye.appendChild(R),q.appendChild(this.layerElement),ye.appendChild(q)),this.globalData.defs.appendChild(ee)}this.matteMasks[p]=v}return this.matteMasks[p]},setMatte:function(p){this.matteElement&&this.matteElement.setAttribute("mask","url("+Pe()+"#"+p+")")}};function Fs(){}Fs.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(p){this.hierarchy=p},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function Ha(){}(function(){var c={initElement:function(v,x,P){this.initFrame(),this.initBaseData(v,x,P),this.initTransform(v,x,P),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var v=this.baseElement||this.layerElement;v.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var v=this.baseElement||this.layerElement;v.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(v){this._mdf=!1,this.prepareRenderableFrame(v),this.prepareProperties(v,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Ie([Nn,Ze(c)],Ha)})();function Ga(c,p,v){this.assetData=p.getAssetData(c.refId),this.initElement(c,p,v),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Ie([ss,$o,Wa,Fs,In,Ha],Ga),Ga.prototype.createContent=function(){var c=this.globalData.getAssetsPath(this.assetData);this.innerElem=yt("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",c),this.layerElement.appendChild(this.innerElem)},Ga.prototype.sourceRectAtTime=function(){return this.sourceRect};function hg(c,p){this.elem=c,this.pos=p}function zc(){}zc.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 hg(p,v))},prepareFrame:function(p){this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange)}};var Ya={1:"butt",2:"round",3:"square"},xo={1:"miter",2:"round",3:"bevel"};function Xd(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}}Xd.prototype.setAsAnimated=function(){this._isAnimated=!0};function qc(c,p){this.data=c,this.type=c.ty,this.d="",this.lvl=p,this._mdf=!1,this.closed=c.hd===!0,this.pElem=yt("path"),this.msElem=null}qc.prototype.reset=function(){this.d="",this._mdf=!1};function Za(c,p,v,x){this.elem=c,this.frameId=-1,this.dataProps=Ue(p.length),this.renderer=v,this.k=!1,this.dashStr="",this.dashArray=De("float32",p.length?p.length-1:0),this.dashoffset=De("float32",1),this.initDynamicPropertyContainer(x);var P,_=p.length||0,q;for(P=0;P<_;P+=1)q=st.getProp(c,p[P].v,0,0,this),this.k=q.k||this.k,this.dataProps[P]={n:p[P].n,p:q};this.k||this.getValue(!0),this._isAnimated=this.k}Za.prototype.getValue=function(c){if(!(this.elem.globalData.frameId===this.frameId&&!c)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||c,this._mdf)){var p=0,v=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),p=0;p<v;p+=1)this.dataProps[p].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[p].p.v:this.dashArray[p]=this.dataProps[p].p.v:this.dashoffset[0]=this.dataProps[p].p.v}},Ie([dn],Za);function sl(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.w=st.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.c=st.getProp(c,p.c,1,255,this),this.style=v,this._isAnimated=!!this._isAnimated}Ie([dn],sl);function ol(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.o=st.getProp(c,p.o,0,.01,this),this.c=st.getProp(c,p.c,1,255,this),this.style=v}Ie([dn],ol);function Wc(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.style=v}Ie([dn],Wc);function Xa(c,p,v){this.data=p,this.c=De("uint8c",p.p*4);var x=p.k.k[0].s?p.k.k[0].s.length-p.p*4:p.k.k.length-p.p*4;this.o=De("float32",x),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=x,this.initDynamicPropertyContainer(v),this.prop=st.getProp(c,p.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}Xa.prototype.comparePoints=function(c,p){for(var v=0,x=this.o.length/2,P;v<x;){if(P=Math.abs(c[v*4]-c[p*4+v*2]),P>.01)return!1;v+=1}return!0},Xa.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var c=0,p=this.data.k.k.length;c<p;){if(!this.comparePoints(this.data.k.k[c].s,this.data.p))return!1;c+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Xa.prototype.getValue=function(c){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||c){var p,v=this.data.p*4,x,P;for(p=0;p<v;p+=1)x=p%4===0?100:255,P=Math.round(this.prop.v[p]*x),this.c[p]!==P&&(this.c[p]=P,this._cmdf=!c);if(this.o.length)for(v=this.prop.v.length,p=this.data.p*4;p<v;p+=1)x=p%2===0?100:1,P=p%2===0?Math.round(this.prop.v[p]*100):this.prop.v[p],this.o[p-this.data.p*4]!==P&&(this.o[p-this.data.p*4]=P,this._omdf=!c);this._mdf=!c}},Ie([dn],Xa);function ks(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.initGradientData(c,p,v)}ks.prototype.initGradientData=function(c,p,v){this.o=st.getProp(c,p.o,0,.01,this),this.s=st.getProp(c,p.s,1,null,this),this.e=st.getProp(c,p.e,1,null,this),this.h=st.getProp(c,p.h||{k:0},0,.01,this),this.a=st.getProp(c,p.a||{k:0},0,Ee,this),this.g=new Xa(c,p.g,this),this.style=v,this.stops=[],this.setGradientData(v.pElem,p),this.setGradientOpacity(p,v),this._isAnimated=!!this._isAnimated},ks.prototype.setGradientData=function(c,p){var v=Ut(),x=yt(p.t===1?"linearGradient":"radialGradient");x.setAttribute("id",v),x.setAttribute("spreadMethod","pad"),x.setAttribute("gradientUnits","userSpaceOnUse");var P=[],_,q,pe;for(pe=p.g.p*4,q=0;q<pe;q+=4)_=yt("stop"),x.appendChild(_),P.push(_);c.setAttribute(p.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+v+")"),this.gf=x,this.cst=P},ks.prototype.setGradientOpacity=function(c,p){if(this.g._hasOpacity&&!this.g._collapsable){var v,x,P,_=yt("mask"),q=yt("path");_.appendChild(q);var pe=Ut(),ee=Ut();_.setAttribute("id",ee);var ye=yt(c.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",pe),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),P=c.g.k.k[0].s?c.g.k.k[0].s.length:c.g.k.k.length;var we=this.stops;for(x=c.g.p*4;x<P;x+=2)v=yt("stop"),v.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(v),we.push(v);q.setAttribute(c.ty==="gf"?"fill":"stroke","url("+Pe()+"#"+pe+")"),c.ty==="gs"&&(q.setAttribute("stroke-linecap",Ya[c.lc||2]),q.setAttribute("stroke-linejoin",xo[c.lj||2]),c.lj===1&&q.setAttribute("stroke-miterlimit",c.ml)),this.of=ye,this.ms=_,this.ost=we,this.maskId=ee,p.msElem=q}},Ie([dn],ks);function al(c,p,v){this.initDynamicPropertyContainer(c),this.getValue=this.iterateDynamicProperties,this.w=st.getProp(c,p.w,0,null,this),this.d=new Za(c,p.d||{},"svg",this),this.initGradientData(c,p,v),this._isAnimated=!!this._isAnimated}Ie([ks,dn],al);function pg(){this.it=[],this.prevViewData=[],this.gr=yt("g")}function Jd(c,p,v){this.transform={mProps:c,op:p,container:v},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Sr=function(p,v,x,P){if(v===0)return"";var _=p.o,q=p.i,pe=p.v,ee,ye=" M"+P.applyToPointStringified(pe[0][0],pe[0][1]);for(ee=1;ee<v;ee+=1)ye+=" C"+P.applyToPointStringified(_[ee-1][0],_[ee-1][1])+" "+P.applyToPointStringified(q[ee][0],q[ee][1])+" "+P.applyToPointStringified(pe[ee][0],pe[ee][1]);return x&&v&&(ye+=" C"+P.applyToPointStringified(_[ee-1][0],_[ee-1][1])+" "+P.applyToPointStringified(q[0][0],q[0][1])+" "+P.applyToPointStringified(pe[0][0],pe[0][1]),ye+="z"),ye},Hc=function(){var c=new On,p=new On,v={createRenderFunction:x};function x(Me){switch(Me.ty){case"fl":return pe;case"gf":return ye;case"gs":return ee;case"st":return we;case"sh":case"el":case"rc":case"sr":return q;case"tr":return P;case"no":return _;default:return null}}function P(Me,R,te){(te||R.transform.op._mdf)&&R.transform.container.setAttribute("opacity",R.transform.op.v),(te||R.transform.mProps._mdf)&&R.transform.container.setAttribute("transform",R.transform.mProps.v.to2dCSS())}function _(){}function q(Me,R,te){var Y,de,fe,H,Z,I,B=R.styles.length,G=R.lvl,re,le,he,ke,tt;for(I=0;I<B;I+=1){if(H=R.sh._mdf||te,R.styles[I].lvl<G){for(le=p.reset(),ke=G-R.styles[I].lvl,tt=R.transformers.length-1;!H&&ke>0;)H=R.transformers[tt].mProps._mdf||H,ke-=1,tt-=1;if(H)for(ke=G-R.styles[I].lvl,tt=R.transformers.length-1;ke>0;)he=R.transformers[tt].mProps.v.props,le.transform(he[0],he[1],he[2],he[3],he[4],he[5],he[6],he[7],he[8],he[9],he[10],he[11],he[12],he[13],he[14],he[15]),ke-=1,tt-=1}else le=c;if(re=R.sh.paths,de=re._length,H){for(fe="",Y=0;Y<de;Y+=1)Z=re.shapes[Y],Z&&Z._length&&(fe+=Sr(Z,Z._length,Z.c,le));R.caches[I]=fe}else fe=R.caches[I];R.styles[I].d+=Me.hd===!0?"":fe,R.styles[I]._mdf=H||R.styles[I]._mdf}}function pe(Me,R,te){var Y=R.style;(R.c._mdf||te)&&Y.pElem.setAttribute("fill","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||te)&&Y.pElem.setAttribute("fill-opacity",R.o.v)}function ee(Me,R,te){ye(Me,R,te),we(Me,R,te)}function ye(Me,R,te){var Y=R.gf,de=R.g._hasOpacity,fe=R.s.v,H=R.e.v;if(R.o._mdf||te){var Z=Me.ty==="gf"?"fill-opacity":"stroke-opacity";R.style.pElem.setAttribute(Z,R.o.v)}if(R.s._mdf||te){var I=Me.t===1?"x1":"cx",B=I==="x1"?"y1":"cy";Y.setAttribute(I,fe[0]),Y.setAttribute(B,fe[1]),de&&!R.g._collapsable&&(R.of.setAttribute(I,fe[0]),R.of.setAttribute(B,fe[1]))}var G,re,le,he;if(R.g._cmdf||te){G=R.cst;var ke=R.g.c;for(le=G.length,re=0;re<le;re+=1)he=G[re],he.setAttribute("offset",ke[re*4]+"%"),he.setAttribute("stop-color","rgb("+ke[re*4+1]+","+ke[re*4+2]+","+ke[re*4+3]+")")}if(de&&(R.g._omdf||te)){var tt=R.g.o;for(R.g._collapsable?G=R.cst:G=R.ost,le=G.length,re=0;re<le;re+=1)he=G[re],R.g._collapsable||he.setAttribute("offset",tt[re*2]+"%"),he.setAttribute("stop-opacity",tt[re*2+1])}if(Me.t===1)(R.e._mdf||te)&&(Y.setAttribute("x2",H[0]),Y.setAttribute("y2",H[1]),de&&!R.g._collapsable&&(R.of.setAttribute("x2",H[0]),R.of.setAttribute("y2",H[1])));else{var Qe;if((R.s._mdf||R.e._mdf||te)&&(Qe=Math.sqrt(Math.pow(fe[0]-H[0],2)+Math.pow(fe[1]-H[1],2)),Y.setAttribute("r",Qe),de&&!R.g._collapsable&&R.of.setAttribute("r",Qe)),R.e._mdf||R.h._mdf||R.a._mdf||te){Qe||(Qe=Math.sqrt(Math.pow(fe[0]-H[0],2)+Math.pow(fe[1]-H[1],2)));var Ne=Math.atan2(H[1]-fe[1],H[0]-fe[0]),at=R.h.v;at>=1?at=.99:at<=-1&&(at=-.99);var ft=Qe*at,Be=Math.cos(Ne+R.a.v)*ft+fe[0],be=Math.sin(Ne+R.a.v)*ft+fe[1];Y.setAttribute("fx",Be),Y.setAttribute("fy",be),de&&!R.g._collapsable&&(R.of.setAttribute("fx",Be),R.of.setAttribute("fy",be))}}}function we(Me,R,te){var Y=R.style,de=R.d;de&&(de._mdf||te)&&de.dashStr&&(Y.pElem.setAttribute("stroke-dasharray",de.dashStr),Y.pElem.setAttribute("stroke-dashoffset",de.dashoffset[0])),R.c&&(R.c._mdf||te)&&Y.pElem.setAttribute("stroke","rgb("+$t(R.c.v[0])+","+$t(R.c.v[1])+","+$t(R.c.v[2])+")"),(R.o._mdf||te)&&Y.pElem.setAttribute("stroke-opacity",R.o.v),(R.w._mdf||te)&&(Y.pElem.setAttribute("stroke-width",R.w.v),Y.msElem&&Y.msElem.setAttribute("stroke-width",R.w.v))}return v}();function yn(c,p,v){this.shapes=[],this.shapesData=c.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(c,p,v),this.prevViewData=[]}Ie([ss,$o,Wa,zc,Fs,In,Ha],yn),yn.prototype.initSecondaryElement=function(){},yn.prototype.identityMatrix=new On,yn.prototype.buildExpressionInterface=function(){},yn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},yn.prototype.filterUniqueShapes=function(){var c,p=this.shapes.length,v,x,P=this.stylesList.length,_,q=[],pe=!1;for(x=0;x<P;x+=1){for(_=this.stylesList[x],pe=!1,q.length=0,c=0;c<p;c+=1)v=this.shapes[c],v.styles.indexOf(_)!==-1&&(q.push(v),pe=v._isAnimated||pe);q.length>1&&pe&&this.setShapesAsAnimated(q)}},yn.prototype.setShapesAsAnimated=function(c){var p,v=c.length;for(p=0;p<v;p+=1)c[p].setAsAnimated()},yn.prototype.createStyleElement=function(c,p){var v,x=new qc(c,p),P=x.pElem;if(c.ty==="st")v=new sl(this,c,x);else if(c.ty==="fl")v=new ol(this,c,x);else if(c.ty==="gf"||c.ty==="gs"){var _=c.ty==="gf"?ks:al;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 Wc(this,c,x));return(c.ty==="st"||c.ty==="gs")&&(P.setAttribute("stroke-linecap",Ya[c.lc||2]),P.setAttribute("stroke-linejoin",xo[c.lj||2]),P.setAttribute("fill-opacity","0"),c.lj===1&&P.setAttribute("stroke-miterlimit",c.ml)),c.r===2&&P.setAttribute("fill-rule","evenodd"),c.ln&&P.setAttribute("id",c.ln),c.cl&&P.setAttribute("class",c.cl),c.bm&&(P.style["mix-blend-mode"]=Dn(c.bm)),this.stylesList.push(x),this.addToAnimatedContents(c,v),v},yn.prototype.createGroupElement=function(c){var p=new pg;return c.ln&&p.gr.setAttribute("id",c.ln),c.cl&&p.gr.setAttribute("class",c.cl),c.bm&&(p.gr.style["mix-blend-mode"]=Dn(c.bm)),p},yn.prototype.createTransformElement=function(c,p){var v=Qo.getTransformProperty(this,c,this),x=new Jd(v,v.o,p);return this.addToAnimatedContents(c,x),x},yn.prototype.createShapeElement=function(c,p,v){var x=4;c.ty==="rc"?x=5:c.ty==="el"?x=6:c.ty==="sr"&&(x=7);var P=di.getShapeProp(this,c,x,this),_=new Xd(p,v,P);return this.shapes.push(_),this.addShapeToModifiers(_),this.addToAnimatedContents(c,_),_},yn.prototype.addToAnimatedContents=function(c,p){for(var v=0,x=this.animatedContents.length;v<x;){if(this.animatedContents[v].element===p)return;v+=1}this.animatedContents.push({fn:Hc.createRenderFunction(c),element:p,data:c})},yn.prototype.setElementStyles=function(c){var p=c.styles,v,x=this.stylesList.length;for(v=0;v<x;v+=1)this.stylesList[v].closed||p.push(this.stylesList[v])},yn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var c,p=this.itemsData.length;for(c=0;c<p;c+=1)this.prevViewData[c]=this.itemsData[c];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),p=this.dynamicProperties.length,c=0;c<p;c+=1)this.dynamicProperties[c].getValue();this.renderModifiers()},yn.prototype.searchShapes=function(c,p,v,x,P,_,q){var pe=[].concat(_),ee,ye=c.length-1,we,Me,R=[],te=[],Y,de,fe;for(ee=ye;ee>=0;ee-=1){if(fe=this.searchProcessedElement(c[ee]),fe?p[ee]=v[fe-1]:c[ee]._render=q,c[ee].ty==="fl"||c[ee].ty==="st"||c[ee].ty==="gf"||c[ee].ty==="gs"||c[ee].ty==="no")fe?p[ee].style.closed=!1:p[ee]=this.createStyleElement(c[ee],P),c[ee]._render&&p[ee].style.pElem.parentNode!==x&&x.appendChild(p[ee].style.pElem),R.push(p[ee].style);else if(c[ee].ty==="gr"){if(!fe)p[ee]=this.createGroupElement(c[ee]);else for(Me=p[ee].it.length,we=0;we<Me;we+=1)p[ee].prevViewData[we]=p[ee].it[we];this.searchShapes(c[ee].it,p[ee].it,p[ee].prevViewData,p[ee].gr,P+1,pe,q),c[ee]._render&&p[ee].gr.parentNode!==x&&x.appendChild(p[ee].gr)}else c[ee].ty==="tr"?(fe||(p[ee]=this.createTransformElement(c[ee],x)),Y=p[ee].transform,pe.push(Y)):c[ee].ty==="sh"||c[ee].ty==="rc"||c[ee].ty==="el"||c[ee].ty==="sr"?(fe||(p[ee]=this.createShapeElement(c[ee],pe,P)),this.setElementStyles(p[ee])):c[ee].ty==="tm"||c[ee].ty==="rd"||c[ee].ty==="ms"||c[ee].ty==="pb"||c[ee].ty==="zz"||c[ee].ty==="op"?(fe?(de=p[ee],de.closed=!1):(de=kr.getModifier(c[ee].ty),de.init(this,c[ee]),p[ee]=de,this.shapeModifiers.push(de)),te.push(de)):c[ee].ty==="rp"&&(fe?(de=p[ee],de.closed=!0):(de=kr.getModifier(c[ee].ty),p[ee]=de,de.init(this,c,ee,p),this.shapeModifiers.push(de),q=!1),te.push(de));this.addProcessedElement(c[ee],ee+1)}for(ye=R.length,ee=0;ee<ye;ee+=1)R[ee].closed=!0;for(ye=te.length,ee=0;ee<ye;ee+=1)te[ee].closed=!0},yn.prototype.renderInnerContent=function(){this.renderModifiers();var c,p=this.stylesList.length;for(c=0;c<p;c+=1)this.stylesList[c].reset();for(this.renderShape(),c=0;c<p;c+=1)(this.stylesList[c]._mdf||this._isFirstFrame)&&(this.stylesList[c].msElem&&(this.stylesList[c].msElem.setAttribute("d",this.stylesList[c].d),this.stylesList[c].d="M0 0"+this.stylesList[c].d),this.stylesList[c].pElem.setAttribute("d",this.stylesList[c].d||"M0 0"))},yn.prototype.renderShape=function(){var c,p=this.animatedContents.length,v;for(c=0;c<p;c+=1)v=this.animatedContents[c],(this._isFirstFrame||v.element._isAnimated)&&v.data!==!0&&v.fn(v.data,v.element,this._isFirstFrame)},yn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function ul(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}}ul.prototype.update=function(c,p,v,x,P,_){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var q=!1;return this.o!==c&&(this.o=c,this._mdf.o=!0,q=!0),this.sw!==p&&(this.sw=p,this._mdf.sw=!0,q=!0),this.sc!==v&&(this.sc=v,this._mdf.sc=!0,q=!0),this.fc!==x&&(this.fc=x,this._mdf.fc=!0,q=!0),this.m!==P&&(this.m=P,this._mdf.m=!0,q=!0),_.length&&(this.p[0]!==_[0]||this.p[1]!==_[1]||this.p[4]!==_[4]||this.p[5]!==_[5]||this.p[12]!==_[12]||this.p[13]!==_[13])&&(this.p=_,this._mdf.p=!0,q=!0),q};function cr(c,p){this._frameId=ge,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=p,this.elem=c,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}cr.prototype.defaultBoxWidth=[0,0],cr.prototype.copyData=function(c,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(c[v]=p[v]);return c},cr.prototype.setCurrentData=function(c){c.__complete||this.completeTextData(c),this.currentData=c,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},cr.prototype.searchProperty=function(){return this.searchKeyframes()},cr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},cr.prototype.addEffect=function(c){this.effectsSequence.push(c),this.elem.addDynamicProperty(this)},cr.prototype.getValue=function(c){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!c)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var p=this.currentData,v=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var x,P=this.effectsSequence.length,_=c||this.data.d.k[this.keysIndex].s;for(x=0;x<P;x+=1)v!==this.keysIndex?_=this.effectsSequence[x](_,_.t):_=this.effectsSequence[x](this.currentData,_.t);p!==_&&this.setCurrentData(_),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},cr.prototype.getKeyframeValue=function(){for(var c=this.data.d.k,p=this.elem.comp.renderedFrame,v=0,x=c.length;v<=x-1&&!(v===x-1||c[v+1].t>p);)v+=1;return this.keysIndex!==v&&(this.keysIndex=v),this.data.d.k[this.keysIndex].s},cr.prototype.buildFinalText=function(c){for(var p=[],v=0,x=c.length,P,_,q=!1;v<x;)P=c.charCodeAt(v),ar.isCombinedCharacter(P)?p[p.length-1]+=c.charAt(v):P>=55296&&P<=56319?(_=c.charCodeAt(v+1),_>=56320&&_<=57343?(q||ar.isModifier(P,_)?(p[p.length-1]+=c.substr(v,2),q=!1):p.push(c.substr(v,2)),v+=1):p.push(c.charAt(v))):P>56319?(_=c.charCodeAt(v+1),ar.isZeroWidthJoiner(P,_)?(q=!0,p[p.length-1]+=c.substr(v,2),v+=1):p.push(c.charAt(v))):ar.isZeroWidthJoiner(P)?(p[p.length-1]+=c.charAt(v),q=!0):p.push(c.charAt(v)),v+=1;return p},cr.prototype.completeTextData=function(c){c.__complete=!0;var p=this.elem.globalData.fontManager,v=this.data,x=[],P,_,q,pe=0,ee,ye=v.m.g,we=0,Me=0,R=0,te=[],Y=0,de=0,fe,H,Z=p.getFontByName(c.f),I,B=0,G=nr(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,le;if(c.sz)for(var he=!0,ke=c.sz[0],tt=c.sz[1],Qe,Ne;he;){Ne=this.buildFinalText(c.t),Qe=0,Y=0,_=Ne.length,re=c.tr/1e3*c.finalSize;var at=-1;for(P=0;P<_;P+=1)le=Ne[P].charCodeAt(0),q=!1,Ne[P]===" "?at=P:(le===13||le===3)&&(Y=0,q=!0,Qe+=c.finalLineHeight||c.finalSize*1.2),p.chars?(I=p.getCharData(Ne[P],Z.fStyle,Z.fFamily),B=q?0:I.w*c.finalSize/100):B=p.measureText(Ne[P],c.f,c.finalSize),Y+B>ke&&Ne[P]!==" "?(at===-1?_+=1:P=at,Qe+=c.finalLineHeight||c.finalSize*1.2,Ne.splice(P,at===P?1:0,"\r"),at=-1,Y=0):(Y+=B,Y+=re);Qe+=Z.ascent*c.finalSize/100,this.canResize&&c.finalSize>this.minimumFontSize&&tt<Qe?(c.finalSize-=1,c.finalLineHeight=c.finalSize*c.lh/c.s):(c.finalText=Ne,_=c.finalText.length,he=!1)}Y=-re,B=0;var ft=0,Be;for(P=0;P<_;P+=1)if(q=!1,Be=c.finalText[P],le=Be.charCodeAt(0),le===13||le===3?(ft=0,te.push(Y),de=Y>de?Y:de,Y=-2*re,ee="",q=!0,R+=1):ee=Be,p.chars?(I=p.getCharData(Be,Z.fStyle,p.getFontByName(c.f).fFamily),B=q?0:I.w*c.finalSize/100):B=p.measureText(ee,c.f,c.finalSize),Be===" "?ft+=B+re:(Y+=B+re+ft,ft=0),x.push({l:B,an:B,add:we,n:q,anIndexes:[],val:ee,line:R,animatorJustifyOffset:0}),ye==2){if(we+=B,ee===""||ee===" "||P===_-1){for((ee===""||ee===" ")&&(we-=B);Me<=P;)x[Me].an=we,x[Me].ind=pe,x[Me].extra=B,Me+=1;pe+=1,we=0}}else if(ye==3){if(we+=B,ee===""||P===_-1){for(ee===""&&(we-=B);Me<=P;)x[Me].an=we,x[Me].ind=pe,x[Me].extra=B,Me+=1;we=0,pe+=1}}else x[pe].ind=pe,x[pe].extra=0,pe+=1;if(c.l=x,de=Y>de?Y:de,te.push(Y),c.sz)c.boxWidth=c.sz[0],c.justifyOffset=0;else switch(c.boxWidth=de,c.j){case 1:c.justifyOffset=-c.boxWidth;break;case 2:c.justifyOffset=-c.boxWidth/2;break;default:c.justifyOffset=0}c.lineWidths=te;var be=v.a,ce,Q;H=be.length;var me,je,Fe=[];for(fe=0;fe<H;fe+=1){for(ce=be[fe],ce.a.sc&&(c.strokeColorAnim=!0),ce.a.sw&&(c.strokeWidthAnim=!0),(ce.a.fc||ce.a.fh||ce.a.fs||ce.a.fb)&&(c.fillColorAnim=!0),je=0,me=ce.s.b,P=0;P<_;P+=1)Q=x[P],Q.anIndexes[fe]=je,(me==1&&Q.val!==""||me==2&&Q.val!==""&&Q.val!==" "||me==3&&(Q.n||Q.val==" "||P==_-1)||me==4&&(Q.n||P==_-1))&&(ce.s.rn===1&&Fe.push(je),je+=1);v.a[fe].s.totalChars=je;var ct=-1,Tt;if(ce.s.rn===1)for(P=0;P<_;P+=1)Q=x[P],ct!=Q.anIndexes[fe]&&(ct=Q.anIndexes[fe],Tt=Fe.splice(Math.floor(Math.random()*Fe.length),1)[0]),Q.anIndexes[fe]=Tt}c.yOffset=c.finalLineHeight||c.finalSize*1.2,c.ls=c.ls||0,c.ascent=Z.ascent*c.finalSize/100},cr.prototype.updateDocumentData=function(c,p){p=p===void 0?this.keysIndex:p;var v=this.copyData({},this.data.d.k[p].s);v=this.copyData(v,c),this.data.d.k[p].s=v,this.recalculate(p),this.elem.addDynamicProperty(this)},cr.prototype.recalculate=function(c){var p=this.data.d.k[c].s;p.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(p)},cr.prototype.canResizeFont=function(c){this.canResize=c,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},cr.prototype.setMinimumFontSize=function(c){this.minimumFontSize=Math.floor(c)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mg=function(){var c=Math.max,p=Math.min,v=Math.floor;function x(_,q){this._currentTextLength=-1,this.k=!1,this.data=q,this.elem=_,this.comp=_.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(_),this.s=st.getProp(_,q.s||{k:0},0,0,this),"e"in q?this.e=st.getProp(_,q.e,0,0,this):this.e={v:100},this.o=st.getProp(_,q.o||{k:0},0,0,this),this.xe=st.getProp(_,q.xe||{k:0},0,0,this),this.ne=st.getProp(_,q.ne||{k:0},0,0,this),this.sm=st.getProp(_,q.sm||{k:100},0,0,this),this.a=st.getProp(_,q.a,0,.01,this),this.dynamicProperties.length||this.getValue()}x.prototype={getMult:function(q){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var pe=0,ee=0,ye=1,we=1;this.ne.v>0?pe=this.ne.v/100:ee=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:we=1+this.xe.v/100;var Me=uo.getBezierEasing(pe,ee,ye,we).get,R=0,te=this.finalS,Y=this.finalE,de=this.data.sh;if(de===2)Y===te?R=q>=Y?1:0:R=c(0,p(.5/(Y-te)+(q-te)/(Y-te),1)),R=Me(R);else if(de===3)Y===te?R=q>=Y?0:1:R=1-c(0,p(.5/(Y-te)+(q-te)/(Y-te),1)),R=Me(R);else if(de===4)Y===te?R=0:(R=c(0,p(.5/(Y-te)+(q-te)/(Y-te),1)),R<.5?R*=2:R=1-2*(R-.5)),R=Me(R);else if(de===5){if(Y===te)R=0;else{var fe=Y-te;q=p(c(0,q+.5-te),Y-te);var H=-fe/2+q,Z=fe/2;R=Math.sqrt(1-H*H/(Z*Z))}R=Me(R)}else de===6?(Y===te?R=0:(q=p(c(0,q+.5-te),Y-te),R=(1+Math.cos(Math.PI+Math.PI*2*q/(Y-te)))/2),R=Me(R)):(q>=v(te)&&(q-te<0?R=c(0,p(p(Y,1)-(te-q),1)):R=c(0,p(Y-q,1))),R=Me(R));if(this.sm.v!==100){var I=this.sm.v*.01;I===0&&(I=1e-8);var B=.5-I*.5;R<B?R=0:(R=(R-B)/I,R>1&&(R=1))}return R*this.a.v},getValue:function(q){this.iterateDynamicProperties(),this._mdf=q||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,q&&this.data.r===2&&(this.e.v=this._currentTextLength);var pe=this.data.r===2?1:100/this.data.totalChars,ee=this.o.v/pe,ye=this.s.v/pe+ee,we=this.e.v/pe+ee;if(ye>we){var Me=ye;ye=we,we=Me}this.finalS=ye,this.finalE=we}},Ie([dn],x);function P(_,q,pe){return new x(_,q)}return{getTextSelectorProp:P}}();function gg(c,p,v){var x={propType:!1},P=st.getProp,_=p.a;this.a={r:_.r?P(c,_.r,0,Ee,v):x,rx:_.rx?P(c,_.rx,0,Ee,v):x,ry:_.ry?P(c,_.ry,0,Ee,v):x,sk:_.sk?P(c,_.sk,0,Ee,v):x,sa:_.sa?P(c,_.sa,0,Ee,v):x,s:_.s?P(c,_.s,1,.01,v):x,a:_.a?P(c,_.a,1,0,v):x,o:_.o?P(c,_.o,0,.01,v):x,p:_.p?P(c,_.p,1,0,v):x,sw:_.sw?P(c,_.sw,0,0,v):x,sc:_.sc?P(c,_.sc,1,0,v):x,fc:_.fc?P(c,_.fc,1,0,v):x,fh:_.fh?P(c,_.fh,0,0,v):x,fs:_.fs?P(c,_.fs,0,.01,v):x,fb:_.fb?P(c,_.fb,0,.01,v):x,t:_.t?P(c,_.t,0,0,v):x},this.s=mg.getTextSelectorProp(c,p.s,v),this.s.t=p.s.t}function wo(c,p,v){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=c,this._renderType=p,this._elem=v,this._animatorsData=Ue(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(v)}wo.prototype.searchProperties=function(){var c,p=this._textData.a.length,v,x=st.getProp;for(c=0;c<p;c+=1)v=this._textData.a[c],this._animatorsData[c]=new gg(this._elem,v,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:x(this._elem,this._textData.p.a,0,0,this),f:x(this._elem,this._textData.p.f,0,0,this),l:x(this._elem,this._textData.p.l,0,0,this),r:x(this._elem,this._textData.p.r,0,0,this),p:x(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=x(this._elem,this._textData.m.a,1,0,this)},wo.prototype.getMeasures=function(c,p){if(this.lettersChangedFlag=p,!(!this._mdf&&!this._isFirstFrame&&!p&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var v=this._moreOptions.alignment.v,x=this._animatorsData,P=this._textData,_=this.mHelper,q=this._renderType,pe=this.renderedLetters.length,ee,ye,we,Me,R=c.l,te,Y,de,fe,H,Z,I,B,G,re,le,he,ke,tt,Qe;if(this._hasMaskedPath){if(Qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ne=Qe.v;this._pathData.r.v&&(Ne=Ne.reverse()),te={tLength:0,segments:[]},Me=Ne._length-1;var at;for(he=0,we=0;we<Me;we+=1)at=Zr.buildBezierData(Ne.v[we],Ne.v[we+1],[Ne.o[we][0]-Ne.v[we][0],Ne.o[we][1]-Ne.v[we][1]],[Ne.i[we+1][0]-Ne.v[we+1][0],Ne.i[we+1][1]-Ne.v[we+1][1]]),te.tLength+=at.segmentLength,te.segments.push(at),he+=at.segmentLength;we=Me,Qe.v.c&&(at=Zr.buildBezierData(Ne.v[we],Ne.v[0],[Ne.o[we][0]-Ne.v[we][0],Ne.o[we][1]-Ne.v[we][1]],[Ne.i[0][0]-Ne.v[0][0],Ne.i[0][1]-Ne.v[0][1]]),te.tLength+=at.segmentLength,te.segments.push(at),he+=at.segmentLength),this._pathData.pi=te}if(te=this._pathData.pi,Y=this._pathData.f.v,I=0,Z=1,fe=0,H=!0,re=te.segments,Y<0&&Qe.v.c)for(te.tLength<Math.abs(Y)&&(Y=-Math.abs(Y)%te.tLength),I=re.length-1,G=re[I].points,Z=G.length-1;Y<0;)Y+=G[Z].partialLength,Z-=1,Z<0&&(I-=1,G=re[I].points,Z=G.length-1);G=re[I].points,B=G[Z-1],de=G[Z],le=de.partialLength}Me=R.length,ee=0,ye=0;var ft=c.finalSize*1.2*.714,Be=!0,be,ce,Q,me,je;me=x.length;var Fe,ct=-1,Tt,Ct,xn,zt=Y,fr=I,Xn=Z,Bn=-1,jn,Kn,yr,dt,fn,Jr,Pi,as,mi="",us=this.defaultPropsArray,ls;if(c.j===2||c.j===1){var Ht=0,wn=0,Is=c.j===2?-.5:-1,gi=0,cs=!0;for(we=0;we<Me;we+=1)if(R[we].n){for(Ht&&(Ht+=wn);gi<we;)R[gi].animatorJustifyOffset=Ht,gi+=1;Ht=0,cs=!0}else{for(Q=0;Q<me;Q+=1)be=x[Q].a,be.t.propType&&(cs&&c.j===2&&(wn+=be.t.v*Is),ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?Ht+=be.t.v*Fe[0]*Is:Ht+=be.t.v*Fe*Is);cs=!1}for(Ht&&(Ht+=wn);gi<we;)R[gi].animatorJustifyOffset=Ht,gi+=1}for(we=0;we<Me;we+=1){if(_.reset(),jn=1,R[we].n)ee=0,ye+=c.yOffset,ye+=Be?1:0,Y=zt,Be=!1,this._hasMaskedPath&&(I=fr,Z=Xn,G=re[I].points,B=G[Z-1],de=G[Z],le=de.partialLength,fe=0),mi="",as="",Jr="",ls="",us=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Bn!==R[we].line){switch(c.j){case 1:Y+=he-c.lineWidths[R[we].line];break;case 2:Y+=(he-c.lineWidths[R[we].line])/2;break}Bn=R[we].line}ct!==R[we].ind&&(R[ct]&&(Y+=R[ct].extra),Y+=R[we].an/2,ct=R[we].ind),Y+=v[0]*R[we].an*.005;var vi=0;for(Q=0;Q<me;Q+=1)be=x[Q].a,be.p.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?vi+=be.p.v[0]*Fe[0]:vi+=be.p.v[0]*Fe),be.a.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?vi+=be.a.v[0]*Fe[0]:vi+=be.a.v[0]*Fe);for(H=!0,this._pathData.a.v&&(Y=R[0].an*.5+(he-this._pathData.f.v-R[0].an*.5-R[R.length-1].an*.5)*ct/(Me-1),Y+=this._pathData.f.v);H;)fe+le>=Y+vi||!G?(ke=(Y+vi-fe)/de.partialLength,Ct=B.point[0]+(de.point[0]-B.point[0])*ke,xn=B.point[1]+(de.point[1]-B.point[1])*ke,_.translate(-v[0]*R[we].an*.005,-(v[1]*ft)*.01),H=!1):G&&(fe+=de.partialLength,Z+=1,Z>=G.length&&(Z=0,I+=1,re[I]?G=re[I].points:Qe.v.c?(Z=0,I=0,G=re[I].points):(fe-=de.partialLength,G=null)),G&&(B=de,de=G[Z],le=de.partialLength));Tt=R[we].an/2-R[we].add,_.translate(-Tt,0,0)}else Tt=R[we].an/2-R[we].add,_.translate(-Tt,0,0),_.translate(-v[0]*R[we].an*.005,-v[1]*ft*.01,0);for(Q=0;Q<me;Q+=1)be=x[Q].a,be.t.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),(ee!==0||c.j!==0)&&(this._hasMaskedPath?Fe.length?Y+=be.t.v*Fe[0]:Y+=be.t.v*Fe:Fe.length?ee+=be.t.v*Fe[0]:ee+=be.t.v*Fe));for(c.strokeWidthAnim&&(yr=c.sw||0),c.strokeColorAnim&&(c.sc?Kn=[c.sc[0],c.sc[1],c.sc[2]]:Kn=[0,0,0]),c.fillColorAnim&&c.fc&&(dt=[c.fc[0],c.fc[1],c.fc[2]]),Q=0;Q<me;Q+=1)be=x[Q].a,be.a.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?_.translate(-be.a.v[0]*Fe[0],-be.a.v[1]*Fe[1],be.a.v[2]*Fe[2]):_.translate(-be.a.v[0]*Fe,-be.a.v[1]*Fe,be.a.v[2]*Fe));for(Q=0;Q<me;Q+=1)be=x[Q].a,be.s.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),Fe.length?_.scale(1+(be.s.v[0]-1)*Fe[0],1+(be.s.v[1]-1)*Fe[1],1):_.scale(1+(be.s.v[0]-1)*Fe,1+(be.s.v[1]-1)*Fe,1));for(Q=0;Q<me;Q+=1){if(be=x[Q].a,ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),be.sk.propType&&(Fe.length?_.skewFromAxis(-be.sk.v*Fe[0],be.sa.v*Fe[1]):_.skewFromAxis(-be.sk.v*Fe,be.sa.v*Fe)),be.r.propType&&(Fe.length?_.rotateZ(-be.r.v*Fe[2]):_.rotateZ(-be.r.v*Fe)),be.ry.propType&&(Fe.length?_.rotateY(be.ry.v*Fe[1]):_.rotateY(be.ry.v*Fe)),be.rx.propType&&(Fe.length?_.rotateX(be.rx.v*Fe[0]):_.rotateX(be.rx.v*Fe)),be.o.propType&&(Fe.length?jn+=(be.o.v*Fe[0]-jn)*Fe[0]:jn+=(be.o.v*Fe-jn)*Fe),c.strokeWidthAnim&&be.sw.propType&&(Fe.length?yr+=be.sw.v*Fe[0]:yr+=be.sw.v*Fe),c.strokeColorAnim&&be.sc.propType)for(fn=0;fn<3;fn+=1)Fe.length?Kn[fn]+=(be.sc.v[fn]-Kn[fn])*Fe[0]:Kn[fn]+=(be.sc.v[fn]-Kn[fn])*Fe;if(c.fillColorAnim&&c.fc){if(be.fc.propType)for(fn=0;fn<3;fn+=1)Fe.length?dt[fn]+=(be.fc.v[fn]-dt[fn])*Fe[0]:dt[fn]+=(be.fc.v[fn]-dt[fn])*Fe;be.fh.propType&&(Fe.length?dt=Lt(dt,be.fh.v*Fe[0]):dt=Lt(dt,be.fh.v*Fe)),be.fs.propType&&(Fe.length?dt=rn(dt,be.fs.v*Fe[0]):dt=rn(dt,be.fs.v*Fe)),be.fb.propType&&(Fe.length?dt=Pt(dt,be.fb.v*Fe[0]):dt=Pt(dt,be.fb.v*Fe))}}for(Q=0;Q<me;Q+=1)be=x[Q].a,be.p.propType&&(ce=x[Q].s,Fe=ce.getMult(R[we].anIndexes[Q],P.a[Q].s.totalChars),this._hasMaskedPath?Fe.length?_.translate(0,be.p.v[1]*Fe[0],-be.p.v[2]*Fe[1]):_.translate(0,be.p.v[1]*Fe,-be.p.v[2]*Fe):Fe.length?_.translate(be.p.v[0]*Fe[0],be.p.v[1]*Fe[1],-be.p.v[2]*Fe[2]):_.translate(be.p.v[0]*Fe,be.p.v[1]*Fe,-be.p.v[2]*Fe));if(c.strokeWidthAnim&&(Jr=yr<0?0:yr),c.strokeColorAnim&&(Pi="rgb("+Math.round(Kn[0]*255)+","+Math.round(Kn[1]*255)+","+Math.round(Kn[2]*255)+")"),c.fillColorAnim&&c.fc&&(as="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(_.translate(0,-c.ls),_.translate(0,v[1]*ft*.01+ye,0),this._pathData.p.v){tt=(de.point[1]-B.point[1])/(de.point[0]-B.point[0]);var fs=Math.atan(tt)*180/Math.PI;de.point[0]<B.point[0]&&(fs+=180),_.rotate(-fs*Math.PI/180)}_.translate(Ct,xn,0),Y-=v[0]*R[we].an*.005,R[we+1]&&ct!==R[we+1].ind&&(Y+=R[we].an/2,Y+=c.tr*.001*c.finalSize)}else{switch(_.translate(ee,ye,0),c.ps&&_.translate(c.ps[0],c.ps[1]+c.ascent,0),c.j){case 1:_.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line]),0,0);break;case 2:_.translate(R[we].animatorJustifyOffset+c.justifyOffset+(c.boxWidth-c.lineWidths[R[we].line])/2,0,0);break}_.translate(0,-c.ls),_.translate(Tt,0,0),_.translate(v[0]*R[we].an*.005,v[1]*ft*.01,0),ee+=R[we].l+c.tr*.001*c.finalSize}q==="html"?mi=_.toCSS():q==="svg"?mi=_.to2dCSS():us=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],ls=jn}pe<=we?(je=new ul(ls,Jr,Pi,as,mi,us),this.renderedLetters.push(je),pe+=1,this.lettersChangedFlag=!0):(je=this.renderedLetters[we],this.lettersChangedFlag=je.update(ls,Jr,Pi,as,mi,us)||this.lettersChangedFlag)}}},wo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},wo.prototype.mHelper=new On,wo.prototype.defaultPropsArray=[],Ie([dn],wo);function pi(){}pi.prototype.initElement=function(c,p,v){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(c,p,v),this.textProperty=new cr(this,c.t,this.dynamicProperties),this.textAnimator=new wo(c.t,this.renderType,this),this.initTransform(c,p,v),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},pi.prototype.prepareFrame=function(c){this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},pi.prototype.createPathShape=function(c,p){var v,x=p.length,P,_="";for(v=0;v<x;v+=1)p[v].ty==="sh"&&(P=p[v].ks.k,_+=Sr(P,P.i.length,!0,c));return _},pi.prototype.updateDocumentData=function(c,p){this.textProperty.updateDocumentData(c,p)},pi.prototype.canResizeFont=function(c){this.textProperty.canResizeFont(c)},pi.prototype.setMinimumFontSize=function(c){this.textProperty.setMinimumFontSize(c)},pi.prototype.applyTextPropertiesToMatrix=function(c,p,v,x,P){switch(c.ps&&p.translate(c.ps[0],c.ps[1]+c.ascent,0),p.translate(0,-c.ls,0),c.j){case 1:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v]),0,0);break;case 2:p.translate(c.justifyOffset+(c.boxWidth-c.lineWidths[v])/2,0,0);break}p.translate(x,P,0)},pi.prototype.buildColor=function(c){return"rgb("+Math.round(c[0]*255)+","+Math.round(c[1]*255)+","+Math.round(c[2]*255)+")"},pi.prototype.emptyProp=new ul,pi.prototype.destroy=function(){};var vg={shapes:[]};function Er(c,p,v){this.textSpans=[],this.renderType="svg",this.initElement(c,p,v)}Ie([ss,$o,Wa,Fs,In,Ha,pi],Er),Er.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=yt("text"))},Er.prototype.buildTextContents=function(c){for(var p=0,v=c.length,x=[],P="";p<v;)c[p]==="\r"||c[p]===""?(x.push(P),P=""):P+=c[p],p+=1;return x.push(P),x},Er.prototype.buildShapeData=function(c,p){if(c.shapes&&c.shapes.length){var v=c.shapes[0];if(v.it){var x=v.it[v.it.length-1];x.s&&(x.s.k[0]=p,x.s.k[1]=p)}}return c},Er.prototype.buildNewText=function(){this.addDynamicProperty(this);var c,p,v=this.textProperty.currentData;this.renderedLetters=Ue(v?v.l.length:0),v.fc?this.layerElement.setAttribute("fill",this.buildColor(v.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),v.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(v.sc)),this.layerElement.setAttribute("stroke-width",v.sw)),this.layerElement.setAttribute("font-size",v.finalSize);var x=this.globalData.fontManager.getFontByName(v.f);if(x.fClass)this.layerElement.setAttribute("class",x.fClass);else{this.layerElement.setAttribute("font-family",x.fFamily);var P=v.fWeight,_=v.fStyle;this.layerElement.setAttribute("font-style",_),this.layerElement.setAttribute("font-weight",P)}this.layerElement.setAttribute("aria-label",v.t);var q=v.l||[],pe=!!this.globalData.fontManager.chars;p=q.length;var ee,ye=this.mHelper,we="",Me=this.data.singleShape,R=0,te=0,Y=!0,de=v.tr*.001*v.finalSize;if(Me&&!pe&&!v.sz){var fe=this.textContainer,H="start";switch(v.j){case 1:H="end";break;case 2:H="middle";break;default:H="start";break}fe.setAttribute("text-anchor",H),fe.setAttribute("letter-spacing",de);var Z=this.buildTextContents(v.finalText);for(p=Z.length,te=v.ps?v.ps[1]+v.ascent:0,c=0;c<p;c+=1)ee=this.textSpans[c].span||yt("tspan"),ee.textContent=Z[c],ee.setAttribute("x",0),ee.setAttribute("y",te),ee.style.display="inherit",fe.appendChild(ee),this.textSpans[c]||(this.textSpans[c]={span:null,glyph:null}),this.textSpans[c].span=ee,te+=v.finalLineHeight;this.layerElement.appendChild(fe)}else{var I=this.textSpans.length,B;for(c=0;c<p;c+=1){if(this.textSpans[c]||(this.textSpans[c]={span:null,childSpan:null,glyph:null}),!pe||!Me||c===0){if(ee=I>c?this.textSpans[c].span:yt(pe?"g":"text"),I<=c){if(ee.setAttribute("stroke-linecap","butt"),ee.setAttribute("stroke-linejoin","round"),ee.setAttribute("stroke-miterlimit","4"),this.textSpans[c].span=ee,pe){var G=yt("g");ee.appendChild(G),this.textSpans[c].childSpan=G}this.textSpans[c].span=ee,this.layerElement.appendChild(ee)}ee.style.display="inherit"}if(ye.reset(),Me&&(q[c].n&&(R=-de,te+=v.yOffset,te+=Y?1:0,Y=!1),this.applyTextPropertiesToMatrix(v,ye,q[c].line,R,te),R+=q[c].l||0,R+=de),pe){B=this.globalData.fontManager.getCharData(v.finalText[c],x.fStyle,this.globalData.fontManager.getFontByName(v.f).fFamily);var re;if(B.t===1)re=new Xr(B.data,this.globalData,this);else{var le=vg;B.data&&B.data.shapes&&(le=this.buildShapeData(B.data,v.finalSize)),re=new yn(le,this.globalData,this)}if(this.textSpans[c].glyph){var he=this.textSpans[c].glyph;this.textSpans[c].childSpan.removeChild(he.layerElement),he.destroy()}this.textSpans[c].glyph=re,re._debug=!0,re.prepareFrame(0),re.renderFrame(),this.textSpans[c].childSpan.appendChild(re.layerElement),B.t===1&&this.textSpans[c].childSpan.setAttribute("transform","scale("+v.finalSize/100+","+v.finalSize/100+")")}else Me&&ee.setAttribute("transform","translate("+ye.props[12]+","+ye.props[13]+")"),ee.textContent=q[c].val,ee.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Me&&ee&&ee.setAttribute("d",we)}for(;c<this.textSpans.length;)this.textSpans[c].span.style.display="none",c+=1;this._sizeChanged=!0},Er.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var c=this.layerElement.getBBox();this.bbox={top:c.y,left:c.x,width:c.width,height:c.height}}return this.bbox},Er.prototype.getValue=function(){var c,p=this.textSpans.length,v;for(this.renderedFrame=this.comp.renderedFrame,c=0;c<p;c+=1)v=this.textSpans[c].glyph,v&&(v.prepareFrame(this.comp.renderedFrame-this.data.st),v._mdf&&(this._mdf=!0))},Er.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var c,p,v=this.textAnimator.renderedLetters,x=this.textProperty.currentData.l;p=x.length;var P,_,q;for(c=0;c<p;c+=1)x[c].n||(P=v[c],_=this.textSpans[c].span,q=this.textSpans[c].glyph,q&&q.renderFrame(),P._mdf.m&&_.setAttribute("transform",P.m),P._mdf.o&&_.setAttribute("opacity",P.o),P._mdf.sw&&_.setAttribute("stroke-width",P.sw),P._mdf.sc&&_.setAttribute("stroke",P.sc),P._mdf.fc&&_.setAttribute("fill",P.fc))}};function Gc(c,p,v){this.initElement(c,p,v)}Ie([Ga],Gc),Gc.prototype.createContent=function(){var c=yt("rect");c.setAttribute("width",this.data.sw),c.setAttribute("height",this.data.sh),c.setAttribute("fill",this.data.sc),this.layerElement.appendChild(c)};function Os(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initFrame(),this.initTransform(c,p,v),this.initHierarchy()}Os.prototype.prepareFrame=function(c){this.prepareProperties(c,!0)},Os.prototype.renderFrame=function(){},Os.prototype.getBaseElement=function(){return null},Os.prototype.destroy=function(){},Os.prototype.sourceRectAtTime=function(){},Os.prototype.hide=function(){},Ie([ss,$o,Fs,In],Os);function Ln(){}Ie([lr],Ln),Ln.prototype.createNull=function(c){return new Os(c,this.globalData,this)},Ln.prototype.createShape=function(c){return new yn(c,this.globalData,this)},Ln.prototype.createText=function(c){return new Er(c,this.globalData,this)},Ln.prototype.createImage=function(c){return new Ga(c,this.globalData,this)},Ln.prototype.createSolid=function(c){return new Gc(c,this.globalData,this)},Ln.prototype.configAnimation=function(c){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+c.w+" "+c.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",c.w),this.svgElement.setAttribute("height",c.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var p=this.globalData.defs;this.setupGlobalData(c,p),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=c;var v=yt("clipPath"),x=yt("rect");x.setAttribute("width",c.w),x.setAttribute("height",c.h),x.setAttribute("x",0),x.setAttribute("y",0);var P=Ut();v.setAttribute("id",P),v.appendChild(x),this.layerElement.setAttribute("clip-path","url("+Pe()+"#"+P+")"),p.appendChild(v),this.layers=c.layers,this.elements=Ue(c.layers.length)},Ln.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var c,p=this.layers?this.layers.length:0;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Ln.prototype.updateContainerSize=function(){},Ln.prototype.findIndexByInd=function(c){var p=0,v=this.layers.length;for(p=0;p<v;p+=1)if(this.layers[p].ind===c)return p;return-1},Ln.prototype.buildItem=function(c){var p=this.elements;if(!(p[c]||this.layers[c].ty===99)){p[c]=!0;var v=this.createItem(this.layers[c]);if(p[c]=v,es()&&(this.layers[c].ty===0&&this.globalData.projectInterface.registerComposition(v),v.initExpressions()),this.appendElementInPos(v,c),this.layers[c].tt){var x="tp"in this.layers[c]?this.findIndexByInd(this.layers[c].tp):c-1;if(x===-1)return;if(!this.elements[x]||this.elements[x]===!0)this.buildItem(x),this.addPendingElement(v);else{var P=p[x],_=P.getMatte(this.layers[c].tt);v.setMatte(_)}}}},Ln.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var c=this.pendingElements.pop();if(c.checkParenting(),c.data.tt)for(var p=0,v=this.elements.length;p<v;){if(this.elements[p]===c){var x="tp"in c.data?this.findIndexByInd(c.data.tp):p-1,P=this.elements[x],_=P.getMatte(this.layers[p].tt);c.setMatte(_);break}p+=1}}},Ln.prototype.renderFrame=function(c){if(!(this.renderedFrame===c||this.destroyed)){c===null?c=this.renderedFrame:this.renderedFrame=c,this.globalData.frameNum=c,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=c,this.globalData._mdf=!1;var p,v=this.layers.length;for(this.completeLayers||this.checkLayers(c),p=v-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&this.elements[p].prepareFrame(c-this.layers[p].st);if(this.globalData._mdf)for(p=0;p<v;p+=1)(this.completeLayers||this.elements[p])&&this.elements[p].renderFrame()}},Ln.prototype.appendElementInPos=function(c,p){var v=c.getBaseElement();if(v){for(var x=0,P;x<p;)this.elements[x]&&this.elements[x]!==!0&&this.elements[x].getBaseElement()&&(P=this.elements[x].getBaseElement()),x+=1;P?this.layerElement.insertBefore(v,P):this.layerElement.appendChild(v)}},Ln.prototype.hide=function(){this.layerElement.style.display="none"},Ln.prototype.show=function(){this.layerElement.style.display="block"};function Ti(){}Ie([ss,$o,Fs,In,Ha],Ti),Ti.prototype.initElement=function(c,p,v){this.initFrame(),this.initBaseData(c,p,v),this.initTransform(c,p,v),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!p.progressiveLoad)&&this.buildAllItems(),this.hide()},Ti.prototype.prepareFrame=function(c){if(this._mdf=!1,this.prepareRenderableFrame(c),this.prepareProperties(c,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=c/this.data.sr;else{var p=this.tm.v;p===this.data.op&&(p=this.data.op-1),this.renderedFrame=p}var v,x=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),v=x-1;v>=0;v-=1)(this.completeLayers||this.elements[v])&&(this.elements[v].prepareFrame(this.renderedFrame-this.layers[v].st),this.elements[v]._mdf&&(this._mdf=!0))}},Ti.prototype.renderInnerContent=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)(this.completeLayers||this.elements[c])&&this.elements[c].renderFrame()},Ti.prototype.setElements=function(c){this.elements=c},Ti.prototype.getElements=function(){return this.elements},Ti.prototype.destroyElements=function(){var c,p=this.layers.length;for(c=0;c<p;c+=1)this.elements[c]&&this.elements[c].destroy()},Ti.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function Xr(c,p,v){this.layers=c.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Ue(this.layers.length):[],this.initElement(c,p,v),this.tm=c.tm?st.getProp(this,c.tm,0,p.frameRate,this):{_placeholder:!0}}Ie([Ln,Ti,Wa],Xr),Xr.prototype.createComp=function(c){return new Xr(c,this.globalData,this)};function ra(c,p){this.animationItem=c,this.layers=null,this.renderedFrame=-1,this.svgElement=yt("svg");var v="";if(p&&p.title){var x=yt("title"),P=Ut();x.setAttribute("id",P),x.textContent=p.title,this.svgElement.appendChild(x),v+=P}if(p&&p.description){var _=yt("desc"),q=Ut();_.setAttribute("id",q),_.textContent=p.description,this.svgElement.appendChild(_),v+=" "+q}v&&this.svgElement.setAttribute("aria-labelledby",v);var pe=yt("defs");this.svgElement.appendChild(pe);var ee=yt("g");this.svgElement.appendChild(ee),this.layerElement=ee,this.renderConfig={preserveAspectRatio:p&&p.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:p&&p.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:p&&p.contentVisibility||"visible",progressiveLoad:p&&p.progressiveLoad||!1,hideOnTransparent:!(p&&p.hideOnTransparent===!1),viewBoxOnly:p&&p.viewBoxOnly||!1,viewBoxSize:p&&p.viewBoxSize||!1,className:p&&p.className||"",id:p&&p.id||"",focusable:p&&p.focusable,filterSize:{width:p&&p.filterSize&&p.filterSize.width||"100%",height:p&&p.filterSize&&p.filterSize.height||"100%",x:p&&p.filterSize&&p.filterSize.x||"0%",y:p&&p.filterSize&&p.filterSize.y||"0%"},width:p&&p.width,height:p&&p.height,runExpressions:!p||p.runExpressions===void 0||p.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:pe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Ie([Ln],ra),ra.prototype.createComp=function(c){return new Xr(c,this.globalData,this)},qu("svg",ra),kr.registerModifier("tm",Or),kr.registerModifier("pb",Ts),kr.registerModifier("rp",vr),kr.registerModifier("rd",fo),kr.registerModifier("zz",go),kr.registerModifier("op",$n),jt})})(u,u.exports);var l=u.exports;function d(se,z){var K=se==null?null:typeof Symbol<"u"&&se[Symbol.iterator]||se["@@iterator"];if(K!=null){var j,V,ge,U,J=[],xe=!0,Pe=!1;try{if(ge=(K=K.call(se)).next,z!==0)for(;!(xe=(j=ge.call(K)).done)&&(J.push(j.value),J.length!==z);xe=!0);}catch(Oe){Pe=!0,V=Oe}finally{try{if(!xe&&K.return!=null&&(U=K.return(),Object(U)!==U))return}finally{if(Pe)throw V}}return J}}function h(se,z){var K=Object.keys(se);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(se);z&&(j=j.filter(function(V){return Object.getOwnPropertyDescriptor(se,V).enumerable})),K.push.apply(K,j)}return K}function m(se){for(var z=1;z<arguments.length;z++){var K=arguments[z]!=null?arguments[z]:{};z%2?h(Object(K),!0).forEach(function(j){g(se,j,K[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(K)):h(Object(K)).forEach(function(j){Object.defineProperty(se,j,Object.getOwnPropertyDescriptor(K,j))})}return se}function g(se,z,K){return z=M(z),z in se?Object.defineProperty(se,z,{value:K,enumerable:!0,configurable:!0,writable:!0}):se[z]=K,se}function b(se,z){if(se==null)return{};var K={},j=Object.keys(se),V,ge;for(ge=0;ge<j.length;ge++)V=j[ge],!(z.indexOf(V)>=0)&&(K[V]=se[V]);return K}function $(se,z){if(se==null)return{};var K=b(se,z),j,V;if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(se);for(V=0;V<ge.length;V++)j=ge[V],!(z.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(se,j)&&(K[j]=se[j])}return K}function w(se,z){return D(se)||d(se,z)||S(se,z)||T()}function D(se){if(Array.isArray(se))return se}function S(se,z){if(se){if(typeof se=="string")return C(se,z);var K=Object.prototype.toString.call(se).slice(8,-1);if(K==="Object"&&se.constructor&&(K=se.constructor.name),K==="Map"||K==="Set")return Array.from(se);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return C(se,z)}}function C(se,z){(z==null||z>se.length)&&(z=se.length);for(var K=0,j=new Array(z);K<z;K++)j[K]=se[K];return j}function T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
135
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(se,z){if(typeof se!="object"||se===null)return se;var K=se[Symbol.toPrimitive];if(K!==void 0){var j=K.call(se,z);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(se)}function M(se){var z=O(se,"string");return typeof z=="symbol"?z:String(z)}var k=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],N=function(z,K){var j=z.animationData,V=z.loop,ge=z.autoplay,U=z.initialSegment,J=z.onComplete,xe=z.onLoopComplete,Pe=z.onEnterFrame,Oe=z.onSegmentStart,Ie=z.onConfigReady,Ze=z.onDataReady,Ge=z.onDataFailed,De=z.onLoadedImages,Ue=z.onDOMLoaded,Re=z.onDestroy;z.lottieRef,z.renderer,z.name,z.assetsPath,z.rendererSettings;var Ve=$(z,k),Le=r.useState(!1),nt=w(Le,2),xt=nt[0],ln=nt[1],$t=r.useRef(),Rt=r.useRef(null),$e=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.play()},Ee=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.stop()},Te=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.pause()},He=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setSpeed(Pt)},et=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.goToAndPlay(Pt,Lt)},Je=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.goToAndStop(Pt,Lt)},lt=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setDirection(Pt)},bt=function(Pt,Lt){var Yt;(Yt=$t.current)===null||Yt===void 0||Yt.playSegments(Pt,Lt)},gn=function(Pt){var Lt;(Lt=$t.current)===null||Lt===void 0||Lt.setSubframe(Pt)},Jt=function(Pt){var Lt;return(Lt=$t.current)===null||Lt===void 0?void 0:Lt.getDuration(Pt)},Ut=function(){var Pt;(Pt=$t.current)===null||Pt===void 0||Pt.destroy(),$t.current=void 0},Yr=function(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Lt;if(Rt.current){(Lt=$t.current)===null||Lt===void 0||Lt.destroy();var Yt=m(m(m({},z),Pt),{},{container:Rt.current});return $t.current=l.loadAnimation(Yt),ln(!!$t.current),function(){var sr;(sr=$t.current)===null||sr===void 0||sr.destroy(),$t.current=void 0}}};r.useEffect(function(){var rn=Yr();return function(){return rn==null?void 0:rn()}},[j,V]),r.useEffect(function(){$t.current&&($t.current.autoplay=!!ge)},[ge]),r.useEffect(function(){if($t.current){if(!U){$t.current.resetSegments(!0);return}!Array.isArray(U)||!U.length||(($t.current.currentRawFrame<U[0]||$t.current.currentRawFrame>U[1])&&($t.current.currentRawFrame=U[0]),$t.current.setSegment(U[0],U[1]))}},[U]),r.useEffect(function(){var rn=[{name:"complete",handler:J},{name:"loopComplete",handler:xe},{name:"enterFrame",handler:Pe},{name:"segmentStart",handler:Oe},{name:"config_ready",handler:Ie},{name:"data_ready",handler:Ze},{name:"data_failed",handler:Ge},{name:"loaded_images",handler:De},{name:"DOMLoaded",handler:Ue},{name:"destroy",handler:Re}],Pt=rn.filter(function(Yt){return Yt.handler!=null});if(Pt.length){var Lt=Pt.map(function(Yt){var sr;return(sr=$t.current)===null||sr===void 0||sr.addEventListener(Yt.name,Yt.handler),function(){var Qi;(Qi=$t.current)===null||Qi===void 0||Qi.removeEventListener(Yt.name,Yt.handler)}});return function(){Lt.forEach(function(Yt){return Yt()})}}},[J,xe,Pe,Oe,Ie,Ze,Ge,De,Ue,Re]);var Fr=s.default.createElement("div",m({style:K,ref:Rt},Ve));return{View:Fr,play:$e,stop:Ee,pause:Te,setSpeed:He,goToAndStop:Je,goToAndPlay:et,setDirection:lt,playSegments:bt,setSubframe:gn,getDuration:Jt,destroy:Ut,animationContainerRef:Rt,animationLoaded:xt,animationItem:$t.current}};function F(se){var z=se.getBoundingClientRect(),K=z.top,j=z.height,V=window.innerHeight-K,ge=window.innerHeight+j;return V/ge}function ae(se,z,K){var j=se.getBoundingClientRect(),V=j.top,ge=j.left,U=j.width,J=j.height,xe=(z-ge)/U,Pe=(K-V)/J;return{x:xe,y:Pe}}var oe=function(z){var K=z.wrapperRef,j=z.animationItem,V=z.mode,ge=z.actions;r.useEffect(function(){var U=K.current;if(!(!U||!j||!ge.length)){j.stop();var J=function(){var Oe=null,Ie=function(){var Ge=F(U),De=ge.find(function(Re){var Ve=Re.visibility;return Ve&&Ge>=Ve[0]&&Ge<=Ve[1]});if(De){if(De.type==="seek"&&De.visibility&&De.frames.length===2){var Ue=De.frames[0]+Math.ceil((Ge-De.visibility[0])/(De.visibility[1]-De.visibility[0])*De.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
136
|
+
j.goToAndStop(Ue-j.firstFrame-1,!0)}De.type==="loop"&&(Oe===null||Oe!==De.frames||j.isPaused)&&(j.playSegments(De.frames,!0),Oe=De.frames),De.type==="play"&&j.isPaused&&(j.resetSegments(!0),j.play()),De.type==="stop"&&j.goToAndStop(De.frames[0]-j.firstFrame-1,!0)}};return document.addEventListener("scroll",Ie),function(){document.removeEventListener("scroll",Ie)}},xe=function(){var Oe=function(De,Ue){var Re=De,Ve=Ue;if(Re!==-1&&Ve!==-1){var Le=ae(U,Re,Ve);Re=Le.x,Ve=Le.y}var nt=ge.find(function($t){var Rt=$t.position;return Rt&&Array.isArray(Rt.x)&&Array.isArray(Rt.y)?Re>=Rt.x[0]&&Re<=Rt.x[1]&&Ve>=Rt.y[0]&&Ve<=Rt.y[1]:Rt&&!Number.isNaN(Rt.x)&&!Number.isNaN(Rt.y)?Re===Rt.x&&Ve===Rt.y:!1});if(nt){if(nt.type==="seek"&&nt.position&&Array.isArray(nt.position.x)&&Array.isArray(nt.position.y)&&nt.frames.length===2){var xt=(Re-nt.position.x[0])/(nt.position.x[1]-nt.position.x[0]),ln=(Ve-nt.position.y[0])/(nt.position.y[1]-nt.position.y[0]);j.playSegments(nt.frames,!0),j.goToAndStop(Math.ceil((xt+ln)/2*(nt.frames[1]-nt.frames[0])),!0)}nt.type==="loop"&&j.playSegments(nt.frames,!0),nt.type==="play"&&(j.isPaused&&j.resetSegments(!1),j.playSegments(nt.frames)),nt.type==="stop"&&j.goToAndStop(nt.frames[0],!0)}},Ie=function(De){Oe(De.clientX,De.clientY)},Ze=function(){Oe(-1,-1)};return U.addEventListener("mousemove",Ie),U.addEventListener("mouseout",Ze),function(){U.removeEventListener("mousemove",Ie),U.removeEventListener("mouseout",Ze)}};switch(V){case"scroll":return J();case"cursor":return xe()}}},[V,j])},W=function(z){var K=z.actions,j=z.mode,V=z.lottieObj,ge=V.animationItem,U=V.View,J=V.animationContainerRef;return oe({actions:K,animationItem:ge,mode:j,wrapperRef:J}),U},Ce=["style","interactivity"],ne=function(z){var K,j,V,ge=z.style,U=z.interactivity,J=$(z,Ce),xe=N(J,ge),Pe=xe.View,Oe=xe.play,Ie=xe.stop,Ze=xe.pause,Ge=xe.setSpeed,De=xe.goToAndStop,Ue=xe.goToAndPlay,Re=xe.setDirection,Ve=xe.playSegments,Le=xe.setSubframe,nt=xe.getDuration,xt=xe.destroy,ln=xe.animationContainerRef,$t=xe.animationLoaded,Rt=xe.animationItem;return r.useEffect(function(){z.lottieRef&&(z.lottieRef.current={play:Oe,stop:Ie,pause:Ze,setSpeed:Ge,goToAndPlay:Ue,goToAndStop:De,setDirection:Re,playSegments:Ve,setSubframe:Le,getDuration:nt,destroy:xt,animationContainerRef:ln,animationLoaded:$t,animationItem:Rt})},[(K=z.lottieRef)===null||K===void 0?void 0:K.current]),W({lottieObj:{View:Pe,play:Oe,stop:Ie,pause:Ze,setSpeed:Ge,goToAndStop:De,goToAndPlay:Ue,setDirection:Re,playSegments:Ve,setSubframe:Le,getDuration:nt,destroy:xt,animationContainerRef:ln,animationLoaded:$t,animationItem:Rt},actions:(j=U==null?void 0:U.actions)!==null&&j!==void 0?j:[],mode:(V=U==null?void 0:U.mode)!==null&&V!==void 0?V:"scroll"})};n.LottiePlayer=l,n.default=ne,n.useLottie=N,n.useLottieInteractivity=W,Object.defineProperty(n,"__esModule",{value:!0})})}(Rf,Rf.exports)),Rf.exports}var die=fie();const hie=ws(die),pie=A.createContext({});function mie(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const hO=A.createContext(null),pO=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),m$=typeof window<"u",gie=m$?A.useLayoutEffect:A.useEffect,Ta=e=>e;let Bd=Ta,cc=Ta;process.env.NODE_ENV!=="production"&&(Bd=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cc=(e,t)=>{if(!e)throw new Error(t)});const vie={useManualTiming:!1},Uh=["read","resolveKeyframes","update","preRender","render","postRender"];function yie(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(h){o.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const $=g&&i?n:r;return m&&o.add(h),$.has(h)||$.add(h),h},cancel:h=>{r.delete(h),o.delete(h)},process:h=>{if(u=h,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,d.process(h))}};return d}const bie=40;function mO(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Uh.reduce((S,C)=>(S[C]=yie(s),S),{}),{read:u,resolveKeyframes:l,update:d,preRender:h,render:m,postRender:g}=o,b=()=>{const S=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,bie),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:Uh.reduce((S,C)=>{const T=o[C];return S[C]=(O,M=!1,k=!1)=>(n||$(),T.schedule(O,M,k)),S},{}),cancel:S=>{for(let C=0;C<Uh.length;C++)o[Uh[C]].cancel(S)},state:i,steps:o}}const{schedule:li,cancel:r4,state:tm}=mO(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ta,!0),g$=A.createContext({strict:!1}),PT={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"]},fc={};for(const e in PT)fc[e]={isEnabled:t=>PT[e].some(n=>!!t[n])};function _T(e){for(const t in e)fc[t]={...fc[t],...e[t]}}function $ie({children:e,features:t,strict:n=!1}){const[,r]=A.useState(!C1(t)),i=A.useRef(void 0);if(!C1(t)){const{renderer:s,...o}=t;i.current=s,_T(o)}return A.useEffect(()=>{C1(t)&&t().then(({renderer:s,...o})=>{_T(o),i.current=s,r(!0)})},[]),Uo.jsx(g$.Provider,{value:{renderer:i.current,strict:n},children:e})}function C1(e){return typeof e=="function"}const xie=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 nm(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xie.has(e)}let gO=e=>!nm(e);function wie(e){e&&(gO=t=>t.startsWith("on")?!nm(t):e(t))}try{wie(require("@emotion/is-prop-valid").default)}catch{}function Cie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(gO(i)||n===!0&&nm(i)||!t&&!nm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const MT=new Set;function ig(e,t,n){e||MT.has(t)||(console.warn(t),MT.add(t))}function Sie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ig(!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=A.createContext({});function og(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fd(e){return typeof e=="string"||Array.isArray(e)}const v$=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y$=["initial",...v$];function ag(e){return og(e.animate)||y$.some(t=>fd(e[t]))}function vO(e){return!!(ag(e)||e.variants)}function Eie(e,t){if(ag(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fd(n)?n:void 0,animate:fd(r)?r:void 0}}return e.inherit!==!1?t:{}}function Die(e){const{initial:t,animate:n}=Eie(e,A.useContext(sg));return A.useMemo(()=>({initial:t,animate:n}),[RT(t),RT(n)])}function RT(e){return Array.isArray(e)?e.join(" "):e}const Aie=Symbol.for("motionComponentSymbol");function yO(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Tie(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):yO(n)&&(n.current=r))},[t])}const b$=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Pie="framerAppearId",bO="data-"+b$(Pie),{schedule:_ie}=mO(queueMicrotask,!1),Mie=A.createContext({});function Rie(e,t,n,r,i){var s,o;const{visualElement:u}=A.useContext(sg),l=A.useContext(g$),d=A.useContext(hO),h=A.useContext(pO).reducedMotion,m=A.useRef(null);r=r||l.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,b=A.useContext(Mie);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&Fie(m.current,n,i,b);const $=A.useRef(!1);A.useInsertionEffect(()=>{g&&$.current&&g.update(n,d)});const w=n[bO],D=A.useRef(!!w&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,w))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,w)));return gie(()=>{g&&($.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),_ie.render(g.render),D.current&&g.animationState&&g.animationState.animateChanges())}),A.useEffect(()=>{g&&(!D.current&&g.animationState&&g.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,w)}),D.current=!1))}),g}function Fie(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$O(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||u&&yO(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function $O(e){if(e)return e.options.allowProjection!==!1?e.projection:$O(e.parent)}function kie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;function u(d,h){let m;const g={...A.useContext(pO),...d,layoutId:Oie(d)},{isStatic:b}=g,$=Die(d),w=r(d,b);if(!b&&m$){Iie(g,e);const D=Lie(g);m=D.MeasureLayout,$.visualElement=Rie(i,w,g,t,D.ProjectionNode)}return Uo.jsxs(sg.Provider,{value:$,children:[m&&$.visualElement?Uo.jsx(m,{visualElement:$.visualElement,...g}):null,n(i,d,Tie(w,$.visualElement,h),w,b,$.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=A.forwardRef(u);return l[Aie]=i,l}function Oie({layoutId:e}){const t=A.useContext(pie).id;return t&&e!==void 0?t+"-"+e:e}function Iie(e,t){A.useContext(g$).strict,process.env.NODE_ENV}function Lie(e){const{drag:t,layout:n}=fc;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const xO=e=>t=>typeof t=="string"&&t.startsWith(e),wO=xO("--"),Bie=xO("var(--"),$$=e=>Bie(e)?Vie.test(e.split("/*")[0].trim()):!1,Vie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Nie={},Dc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ju=new Set(Dc);function CO(e,{layout:t,layoutId:n}){return ju.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nie[e]||e==="opacity")}const zr=e=>!!(e&&e.getVelocity),SO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ou=(e,t,n)=>n>t?t:n<e?e:n,Ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},dd={...Ac,transform:e=>Ou(0,1,e)},zh={...Ac,default:1},Vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ma=Vd("deg"),Wl=Vd("%"),At=Vd("px"),jie=Vd("vh"),Kie=Vd("vw"),FT={...Wl,parse:e=>Wl.parse(e)/100,transform:e=>Wl.transform(e*100)},Uie={borderWidth:At,borderTopWidth:At,borderRightWidth:At,borderBottomWidth:At,borderLeftWidth:At,borderRadius:At,radius:At,borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomRightRadius:At,borderBottomLeftRadius:At,width:At,maxWidth:At,height:At,maxHeight:At,top:At,right:At,bottom:At,left:At,padding:At,paddingTop:At,paddingRight:At,paddingBottom:At,paddingLeft:At,margin:At,marginTop:At,marginRight:At,marginBottom:At,marginLeft:At,backgroundPositionX:At,backgroundPositionY:At},zie={rotate:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:zh,scaleX:zh,scaleY:zh,scaleZ:zh,skew:ma,skewX:ma,skewY:ma,distance:At,translateX:At,translateY:At,translateZ:At,x:At,y:At,z:At,perspective:At,transformPerspective:At,opacity:dd,originX:FT,originY:FT,originZ:At},kT={...Ac,transform:Math.round},x$={...Uie,...zie,zIndex:kT,size:At,fillOpacity:dd,strokeOpacity:dd,numOctaves:kT},qie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Wie=Dc.length;function Hie(e,t,n){let r="",i=!0;for(let s=0;s<Wie;s++){const o=Dc[s],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=SO(u,x$[o]);if(!l){i=!1;const h=qie[o]||o;r+=`${h}(${d}) `}n&&(t[o]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w$(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,u=!1;for(const l in t){const d=t[l];if(ju.has(l)){o=!0;continue}else if(wO(l)){i[l]=d;continue}else{const h=SO(d,x$[l]);l.startsWith("origin")?(u=!0,s[l]=h):r[l]=h}}if(t.transform||(o||n?r.transform=Hie(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:h=0}=s;r.transformOrigin=`${l} ${d} ${h}`}}const C$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function EO(e,t,n){for(const r in t)!zr(t[r])&&!CO(r,n)&&(e[r]=t[r])}function Gie({transformTemplate:e},t){return A.useMemo(()=>{const n=C$();return w$(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Yie(e,t){const n=e.style||{},r={};return EO(r,n,e),Object.assign(r,Gie(e,t)),r}function Zie(e,t){const n={},r=Yie(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 Xie=["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 S$(e){return typeof e!="string"||e.includes("-")?!1:!!(Xie.indexOf(e)>-1||/[A-Z]/u.test(e))}const Jie={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qie={offset:"strokeDashoffset",array:"strokeDasharray"};function ese(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Jie:Qie;e[s.offset]=At.transform(-r);const o=At.transform(t),u=At.transform(n);e[s.array]=`${o} ${u}`}function OT(e,t,n){return typeof e=="string"?e:At.transform(t+n*e)}function tse(e,t,n){const r=OT(t,e.x,e.width),i=OT(n,e.y,e.height);return`${r} ${i}`}function E$(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...d},h,m){if(w$(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b,dimensions:$}=e;g.transform&&($&&(b.transform=g.transform),delete g.transform),$&&(i!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=tse($,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),o!==void 0&&ese(g,o,u,l,!1)}const DO=()=>({...C$(),attrs:{}}),D$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nse(e,t,n,r){const i=A.useMemo(()=>{const s=DO();return E$(s,t,D$(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};EO(s,e.style,e),i.style={...s,...i.style}}return i}function rse(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(S$(n)?nse:Zie)(r,s,o,n),d=Cie(r,typeof n=="string",e),h=n!==A.Fragment?{...d,...l,ref:i}:{},{children:m}=r,g=A.useMemo(()=>zr(m)?m.get():m,[m]);return A.createElement(n,{...h,children:g})}}function IT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function A$(e,t,n,r){if(typeof t=="function"){const[i,s]=IT(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=IT(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const i4=e=>Array.isArray(e),ise=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sse=e=>i4(e)?e[e.length-1]||0:e;function ose(e){const t=zr(e)?e.get():e;return ise(t)?t.toValue():t}function ase({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:use(r,i,s,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const AO=e=>(t,n)=>{const r=A.useContext(sg),i=A.useContext(hO),s=()=>ase(e,t,r,i);return n?s():mie(s)};function use(e,t,n,r){const i={},s=r(e,{});for(const g in s)i[g]=ose(s[g]);let{initial:o,animate:u}=e;const l=ag(e),d=vO(e);t&&d&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||o===!1;const m=h?u:o;if(m&&typeof m!="boolean"&&!og(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const $=A$(e,g[b]);if($){const{transitionEnd:w,transition:D,...S}=$;for(const C in S){let T=S[C];if(Array.isArray(T)){const O=h?T.length-1:0;T=T[O]}T!==null&&(i[C]=T)}for(const C in w)i[C]=w[C]}}}return i}function T$(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(zr(i[o])||t.style&&zr(t.style[o])||CO(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}const lse={useVisualState:AO({scrapeMotionValuesFromProps:T$,createRenderState:C$})};function TO(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 PO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const _O=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 MO(e,t,n,r){PO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(_O.has(i)?i:b$(i),t.attrs[i])}function RO(e,t,n){const r=T$(e,t,n);for(const i in e)if(zr(e[i])||zr(t[i])){const s=Dc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const LT=["x","y","width","height","cx","cy","r"],cse={useVisualState:AO({scrapeMotionValuesFromProps:RO,createRenderState:DO,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const u in i)if(ju.has(u)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let u=0;u<LT.length;u++){const l=LT[u];e[l]!==t[l]&&(o=!0)}o&&li.read(()=>{TO(n,r),li.render(()=>{E$(r,i,D$(n.tagName),e.transformTemplate),MO(n,r)})})}})};function fse(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...S$(r)?cse:lse,preloadedFeatures:e,useRender:rse(i),createVisualElement:t,Component:r};return kie(o)}}const dse=fse(),hse=Sie(dse);function hd(e,t,n){const r=e.getProps();return A$(r,t,n!==void 0?n:r.custom,e)}function FO(e,t){return e?e[t]||e.default||e:void 0}const kO=new Set(["width","height","top","left","right","bottom",...Dc]);let vp;function pse(){vp=void 0}const Sa={now:()=>(vp===void 0&&Sa.set(tm.isProcessing||vie.useManualTiming?tm.timestamp:performance.now()),vp),set:e=>{vp=e,queueMicrotask(pse)}};function mse(e,t){e.indexOf(t)===-1&&e.push(t)}function gse(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class OO{constructor(){this.subscriptions=[]}add(t){return mse(this.subscriptions,t),()=>gse(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function IO(e,t){return t?e*(1e3/t):0}const BT=30,vse=e=>!isNaN(parseFloat(e));class yse{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Sa.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Sa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=vse(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ig(!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 OO);const r=this.events[t].add(n);return t==="change"?()=>{r(),li.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Sa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>BT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,BT);return IO(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 rm(e,t){return new yse(e,t)}function bse(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rm(n))}function $se(e,t){const n=hd(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const u=sse(s[o]);bse(e,o,u)}}function xse(e){return!!(zr(e)&&e.add)}function wse(e,t){const n=e.getValue("willChange");if(xse(n))return n.add(t)}function Cse(e){return e.props[bO]}function P$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sse=P$(()=>window.ScrollTimeline!==void 0);class Ese{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(Sse()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Dse extends Ese{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Ko=e=>e*1e3,Ea=e=>e/1e3;function _$(e){return typeof e=="function"}function VT(e,t){e.timeline=t,e.onfinish=null}const M$=e=>Array.isArray(e)&&typeof e[0]=="number",Ase={linearEasing:void 0};function Tse(e,t){const n=P$(e);return()=>{var r;return(r=Ase[t])!==null&&r!==void 0?r:n()}}const im=Tse(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},LO=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(R$(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function BO(e){return!!(typeof e=="function"&&im()||!e||typeof e=="string"&&(e in s4||im())||M$(e)||Array.isArray(e)&&e.every(BO))}const Ff=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,s4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ff([0,.65,.55,1]),circOut:Ff([.55,0,1,.45]),backIn:Ff([.31,.01,.66,-.59]),backOut:Ff([.33,1.53,.69,.99])};function VO(e,t){if(e)return typeof e=="function"&&im()?LO(e,t):M$(e)?Ff(e):Array.isArray(e)?e.map(n=>VO(n,t)||s4.easeOut):s4[e]}const NO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pse=1e-7,_se=12;function Mse(e,t,n,r,i){let s,o,u=0;do o=t+(n-t)/2,s=NO(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Pse&&++u<_se);return o}function Nd(e,t,n,r){if(e===t&&n===r)return Ta;const i=s=>Mse(s,0,1,e,n);return s=>s===0||s===1?s:NO(i(s),t,r)}const jO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,KO=e=>t=>1-e(1-t),UO=Nd(.33,1.53,.69,.99),F$=KO(UO),zO=jO(F$),qO=e=>(e*=2)<1?.5*F$(e):.5*(2-Math.pow(2,-10*(e-1))),k$=e=>1-Math.sin(Math.acos(e)),Rse=KO(k$),WO=jO(k$),HO=e=>/^0[^.\s]+$/u.test(e);function Fse(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||HO(e):!0}const Wf=e=>Math.round(e*1e5)/1e5,O$=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kse(e){return e==null}const Ose=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,I$=(e,t)=>n=>!!(typeof n=="string"&&Ose.test(n)&&n.startsWith(e)||t&&!kse(n)&&Object.prototype.hasOwnProperty.call(n,t)),GO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,u]=r.match(O$);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Ise=e=>Ou(0,255,e),S1={...Ac,transform:e=>Math.round(Ise(e))},yu={test:I$("rgb","red"),parse:GO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+S1.transform(e)+", "+S1.transform(t)+", "+S1.transform(n)+", "+Wf(dd.transform(r))+")"};function Lse(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 o4={test:I$("#"),parse:Lse,transform:yu.transform},Il={test:I$("hsl","hue"),parse:GO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wl.transform(Wf(t))+", "+Wl.transform(Wf(n))+", "+Wf(dd.transform(r))+")"},Tr={test:e=>yu.test(e)||o4.test(e)||Il.test(e),parse:e=>yu.test(e)?yu.parse(e):Il.test(e)?Il.parse(e):o4.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yu.transform(e):Il.transform(e)},Bse=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Vse(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(O$))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Bse))===null||n===void 0?void 0:n.length)||0)>0}const YO="number",ZO="color",Nse="var",jse="var(",NT="${}",Kse=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pd(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const u=t.replace(Kse,l=>(Tr.test(l)?(r.color.push(s),i.push(ZO),n.push(Tr.parse(l))):l.startsWith(jse)?(r.var.push(s),i.push(Nse),n.push(l)):(r.number.push(s),i.push(YO),n.push(parseFloat(l))),++s,NT)).split(NT);return{values:n,split:u,indexes:r,types:i}}function XO(e){return pd(e).values}function JO(e){const{split:t,types:n}=pd(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const u=n[o];u===YO?s+=Wf(i[o]):u===ZO?s+=Tr.transform(i[o]):s+=i[o]}return s}}const Use=e=>typeof e=="number"?0:e;function zse(e){const t=XO(e);return JO(e)(t.map(Use))}const Tc={test:Vse,parse:XO,createTransformer:JO,getAnimatableNone:zse},qse=new Set(["brightness","contrast","saturate","opacity"]);function Wse(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(O$)||[];if(!r)return e;const i=n.replace(r,"");let s=qse.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Hse=/\b([a-z-]*)\(.*?\)/gu,a4={...Tc,getAnimatableNone:e=>{const t=e.match(Hse);return t?t.map(Wse).join(" "):e}},Gse={...x$,color:Tr,backgroundColor:Tr,outlineColor:Tr,fill:Tr,stroke:Tr,borderColor:Tr,borderTopColor:Tr,borderRightColor:Tr,borderBottomColor:Tr,borderLeftColor:Tr,filter:a4,WebkitFilter:a4},L$=e=>Gse[e];function QO(e,t){let n=L$(e);return n!==a4&&(n=Tc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Yse=new Set(["auto","none","0"]);function Zse(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Yse.has(s)&&pd(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=QO(n,i)}const jT=e=>e===Ac||e===At,KT=(e,t)=>parseFloat(e.split(", ")[t]),UT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return KT(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?KT(s[1],e):0}},Xse=new Set(["x","y","z"]),Jse=Dc.filter(e=>!Xse.has(e));function Qse(e){const t=[];return Jse.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const dc={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:UT(4,13),y:UT(5,14)};dc.translateX=dc.x;dc.translateY=dc.y;const Su=new Set;let u4=!1,l4=!1;function eI(){if(l4){const e=Array.from(Su).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Qse(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var u;(u=r.getValue(s))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}l4=!1,u4=!1,Su.forEach(e=>e.complete()),Su.clear()}function tI(){Su.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l4=!0)})}function eoe(){tI(),eI()}class B${constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Su.add(this),u4||(u4=!0,li.read(tI),li.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Su.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Su.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const nI=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),toe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function noe(e){const t=toe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const roe=4;function rI(e,t,n=1){cc(n<=roe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=noe(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return nI(o)?parseFloat(o):o}return $$(i)?rI(i,t,n+1):i}const iI=e=>t=>t.test(e),ioe={test:e=>e==="auto",parse:e=>e},sI=[Ac,At,Wl,ma,Kie,jie,ioe],zT=e=>sI.find(iI(e));class oI extends B${constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),$$(d))){const h=rI(d,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!kO.has(r)||t.length!==2)return;const[i,s]=t,o=zT(i),u=zT(s);if(o!==u)if(jT(o)&&jT(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++)Fse(t[i])&&r.push(i);r.length&&Zse(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=dc[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=dc[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 qT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tc.test(e)||e==="0")&&!e.startsWith("url("));function soe(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 ooe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=qT(i,t),u=qT(s,t);return Bd(o===u,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!o||!u?!1:soe(e)||(n==="spring"||_$(n))&&r}const aoe=e=>e!==null;function ug(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(aoe),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const uoe=40;class aI{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Sa.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uoe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eoe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Sa.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!ooe(t,r,i,s))if(o)this.options.duration=0;else{l&&l(ug(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 c4=2e4;function uI(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<c4;)t+=n,r=e.next(t);return t>=c4?1/0:t}const lg=(e,t,n)=>e+(t-e)*n;function E1(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 loe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=E1(l,u,e+1/3),s=E1(l,u,e),o=E1(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function sm(e,t){return n=>n>0?t:e}const D1=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},coe=[o4,yu,Il],foe=e=>coe.find(t=>t.test(e));function WT(e){const t=foe(e);if(Bd(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Il&&(n=loe(n)),n}const HT=(e,t)=>{const n=WT(e),r=WT(t);if(!n||!r)return sm(e,t);const i={...n};return s=>(i.red=D1(n.red,r.red,s),i.green=D1(n.green,r.green,s),i.blue=D1(n.blue,r.blue,s),i.alpha=lg(n.alpha,r.alpha,s),yu.transform(i))},doe=(e,t)=>n=>t(e(n)),cg=(...e)=>e.reduce(doe),f4=new Set(["none","hidden"]);function hoe(e,t){return f4.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function poe(e,t){return n=>lg(e,t,n)}function V$(e){return typeof e=="number"?poe:typeof e=="string"?$$(e)?sm:Tr.test(e)?HT:voe:Array.isArray(e)?lI:typeof e=="object"?Tr.test(e)?HT:moe:sm}function lI(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>V$(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function moe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=V$(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function goe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const voe=(e,t)=>{const n=Tc.createTransformer(t),r=pd(e),i=pd(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?f4.has(e)&&!i.values.length||f4.has(t)&&!r.values.length?hoe(e,t):cg(lI(goe(r,i),i.values),n):(Bd(!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.`),sm(e,t))};function cI(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?lg(e,t,n):V$(e)(e,t)}const yoe=5;function fI(e,t,n){const r=Math.max(t-yoe,0);return IO(n-e(r),t-r)}const Rn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},GT=.001;function boe({duration:e=Rn.duration,bounce:t=Rn.bounce,velocity:n=Rn.velocity,mass:r=Rn.mass}){let i,s;Bd(e<=Ko(Rn.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Ou(Rn.minDamping,Rn.maxDamping,o),e=Ou(Rn.minDuration,Rn.maxDuration,Ea(e)),o<1?(i=d=>{const h=d*o,m=h*e,g=h-n,b=d4(d,o),$=Math.exp(-m);return GT-g/b*$},s=d=>{const m=d*o*e,g=m*n+n,b=Math.pow(o,2)*Math.pow(d,2)*e,$=Math.exp(-m),w=d4(Math.pow(d,2),o);return(-i(d)+GT>0?-1:1)*((g-b)*$)/w}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},s=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,l=xoe(i,s,u);if(e=Ko(e),isNaN(l))return{stiffness:Rn.stiffness,damping:Rn.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const $oe=12;function xoe(e,t,n){let r=n;for(let i=1;i<$oe;i++)r=r-e(r)/t(r);return r}function d4(e,t){return e*Math.sqrt(1-t*t)}const woe=["duration","bounce"],Coe=["stiffness","damping","mass"];function YT(e,t){return t.some(n=>e[n]!==void 0)}function Soe(e){let t={velocity:Rn.velocity,stiffness:Rn.stiffness,damping:Rn.damping,mass:Rn.mass,isResolvedFromDuration:!1,...e};if(!YT(e,Coe)&&YT(e,woe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ou(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Rn.mass,stiffness:i,damping:s}}else{const n=boe(e);t={...t,...n,mass:Rn.mass},t.isResolvedFromDuration=!0}return t}function dI(e=Rn.visualDuration,t=Rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:l,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=Soe({...n,velocity:-Ea(n.velocity||0)}),$=g||0,w=d/(2*Math.sqrt(l*h)),D=o-s,S=Ea(Math.sqrt(l/h)),C=Math.abs(D)<5;r||(r=C?Rn.restSpeed.granular:Rn.restSpeed.default),i||(i=C?Rn.restDelta.granular:Rn.restDelta.default);let T;if(w<1){const M=d4(S,w);T=k=>{const N=Math.exp(-w*S*k);return o-N*(($+w*S*D)/M*Math.sin(M*k)+D*Math.cos(M*k))}}else if(w===1)T=M=>o-Math.exp(-S*M)*(D+($+S*D)*M);else{const M=S*Math.sqrt(w*w-1);T=k=>{const N=Math.exp(-w*S*k),F=Math.min(M*k,300);return o-N*(($+w*S*D)*Math.sinh(F)+M*D*Math.cosh(F))/M}}const O={calculatedDuration:b&&m||null,next:M=>{const k=T(M);if(b)u.done=M>=m;else{let N=0;w<1&&(N=M===0?Ko($):fI(T,M,k));const F=Math.abs(N)<=r,ae=Math.abs(o-k)<=i;u.done=F&&ae}return u.value=u.done?o:k,u},toString:()=>{const M=Math.min(uI(O),c4),k=LO(N=>O.next(M*N).value,M,30);return M+"ms "+k}};return O}function ZT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:u,max:l,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=F=>u!==void 0&&F<u||l!==void 0&&F>l,$=F=>u===void 0?l:l===void 0||Math.abs(u-F)<Math.abs(l-F)?u:l;let w=n*t;const D=m+w,S=o===void 0?D:o(D);S!==D&&(w=S-m);const C=F=>-w*Math.exp(-F/r),T=F=>S+C(F),O=F=>{const ae=C(F),oe=T(F);g.done=Math.abs(ae)<=d,g.value=g.done?S:oe};let M,k;const N=F=>{b(g.value)&&(M=F,k=dI({keyframes:[g.value,$(g.value)],velocity:fI(T,F,g.value),damping:i,stiffness:s,restDelta:d,restSpeed:h}))};return N(0),{calculatedDuration:null,next:F=>{let ae=!1;return!k&&M===void 0&&(ae=!0,O(F),N(F)),M!==void 0&&F>=M?k.next(F-M):(!ae&&O(F),g)}}}const Eoe=Nd(.42,0,1,1),Doe=Nd(0,0,.58,1),hI=Nd(.42,0,.58,1),Aoe=e=>Array.isArray(e)&&typeof e[0]!="number",XT={linear:Ta,easeIn:Eoe,easeInOut:hI,easeOut:Doe,circIn:k$,circInOut:WO,circOut:Rse,backIn:F$,backInOut:zO,backOut:UO,anticipate:qO},JT=e=>{if(M$(e)){cc(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 cc(XT[e]!==void 0,`Invalid easing type '${e}'`),XT[e];return e};function Toe(e,t,n){const r=[],i=n||cI,s=e.length-1;for(let o=0;o<s;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ta:t;u=cg(l,u)}r.push(u)}return r}function Poe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(cc(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Toe(t,r,i),l=u.length,d=h=>{if(o&&h<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=R$(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Ou(e[0],e[s-1],h)):d}function _oe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=R$(0,t,r);e.push(lg(n,1,i))}}function Moe(e){const t=[0];return _oe(t,e.length-1),t}function Roe(e,t){return e.map(n=>n*t)}function Foe(e,t){return e.map(()=>t||hI).splice(0,e.length-1)}function om({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Aoe(r)?r.map(JT):JT(r),s={done:!1,value:t[0]},o=Roe(n&&n.length===t.length?n:Moe(t),e),u=Poe(o,t,{ease:Array.isArray(i)?i:Foe(t,i)});return{calculatedDuration:e,next:l=>(s.value=u(l),s.done=l>=e,s)}}const koe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>li.update(t,!0),stop:()=>r4(t),now:()=>tm.isProcessing?tm.timestamp:Sa.now()}},Ooe={decay:ZT,inertia:ZT,tween:om,keyframes:om,spring:dI},Ioe=e=>e/100;class N$ 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:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||B$,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new o(s,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,u=_$(n)?n:Ooe[n]||om;let l,d;u!==om&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cc(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=cg(Ioe,cI(t[0],t[1])),t=[0,100]);const h=u({...this.options,keyframes:t});s==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),h.calculatedDuration===null&&(h.calculatedDuration=uI(h));const{calculatedDuration:m}=h,g=m+i,b=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:m,resolvedDuration:g,totalDuration:b}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return s.next(0);const{delay:g,repeat:b,repeatType:$,repeatDelay:w,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const S=this.currentTime-g*(this.speed>=0?1:-1),C=this.speed>=0?S<0:S>h;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let T=this.currentTime,O=s;if(b){const F=Math.min(this.currentTime,h)/m;let ae=Math.floor(F),oe=F%1;!oe&&F>=1&&(oe=1),oe===1&&ae--,ae=Math.min(ae,b+1),!!(ae%2)&&($==="reverse"?(oe=1-oe,w&&(oe-=w/m)):$==="mirror"&&(O=o)),T=Ou(0,1,oe)*m}const M=C?{done:!1,value:l[0]}:O.next(T);u&&(M.value=u(M.value));let{done:k}=M;!C&&d!==null&&(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return N&&i!==void 0&&(M.value=ug(l,this.options,i)),D&&D(M.value),N&&this.finish(),M}get duration(){const{resolved:t}=this;return t?Ea(t.calculatedDuration):0}get time(){return Ea(this.currentTime)}set time(t){t=Ko(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ea(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=koe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Loe=new Set(["opacity","clipPath","filter","transform"]);function Boe(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const h=VO(u,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Voe=P$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),am=10,Noe=2e4;function joe(e){return _$(e.type)||e.type==="spring"||!BO(e.ease)}function Koe(e,t){const n=new N$({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Noe;)r=n.sample(s),i.push(r.value),s+=am;return{times:void 0,keyframes:i,duration:s-am,ease:"linear"}}const pI={anticipate:qO,backInOut:zO,circInOut:WO};function Uoe(e){return e in pI}class QT extends aI{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new oI(s,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof s=="string"&&im()&&Uoe(s)&&(s=pI[s]),joe(this.options)){const{onComplete:m,onUpdate:g,motionValue:b,element:$,...w}=this.options,D=Koe(t,w);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,s=D.ease,o="keyframes"}const h=Boe(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(VT(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;u.set(ug(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ea(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ea(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ko(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ta;const{animation:r}=n;VT(r,t)}return Ta}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...b}=this.options,$=new N$({...b,keyframes:r,duration:i,type:s,ease:o,times:u,isGenerator:!0}),w=Ko(this.time);d.setWithVelocity($.sample(w-am).value,$.sample(w).value,am)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return Voe()&&r&&Loe.has(r)&&!l&&!d&&!i&&s!=="mirror"&&o!==0&&u!=="inertia"}}const zoe={type:"spring",stiffness:500,damping:25,restSpeed:10},qoe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Woe={type:"keyframes",duration:.8},Hoe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Goe=(e,{keyframes:t})=>t.length>2?Woe:ju.has(e)?e.startsWith("scale")?qoe(t[1]):zoe:Hoe;function Yoe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:u,from:l,elapsed:d,...h}){return!!Object.keys(h).length}const Zoe=(e,t,n,r={},i,s)=>o=>{const u=FO(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ko(l);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:i};Yoe(u)||(h={...h,...Goe(e,h)}),h.duration&&(h.duration=Ko(h.duration)),h.repeatDelay&&(h.repeatDelay=Ko(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),m&&!s&&t.get()!==void 0){const g=ug(h.keyframes,u);if(g!==void 0)return li.update(()=>{h.onUpdate(g),h.onComplete()}),new Dse([])}return!s&&QT.supports(h)?new QT(h):new N$(h)};function Xoe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mI(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in l){const g=e.getValue(m,(s=e.latestValues[m])!==null&&s!==void 0?s:null),b=l[m];if(b===void 0||h&&Xoe(h,m))continue;const $={delay:n,...FO(o||{},m)};let w=!1;if(window.MotionHandoffAnimation){const S=Cse(e);if(S){const C=window.MotionHandoffAnimation(S,m,li);C!==null&&($.startTime=C,w=!0)}}wse(e,m),g.start(Zoe(m,g,b,e.shouldReduceMotion&&kO.has(m)?{type:!1}:$,e,w));const D=g.animation;D&&d.push(D)}return u&&Promise.all(d).then(()=>{li.update(()=>{u&&$se(e,u)})}),d}function h4(e,t,n={}){var r;const i=hd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(mI(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=s;return Joe(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[d,h]=l==="beforeChildren"?[o,u]:[u,o];return d().then(()=>h())}else return Promise.all([o(),u(n.delay)])}function Joe(e,t,n=0,r=0,i=1,s){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Qoe).forEach((d,h)=>{d.notify("AnimationStart",t),o.push(h4(d,t,{...s,delay:n+l(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function Qoe(e,t){return e.sortNodePosition(t)}function eae(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>h4(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=h4(e,t,n);else{const i=typeof t=="function"?hd(e,t,n.custom):t;r=Promise.all(mI(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function gI(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=y$.length;function vI(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vI(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=y$[n],i=e.props[r];(fd(i)||i===!1)&&(t[r]=i)}return t}const nae=[...v$].reverse(),rae=v$.length;function iae(e){return t=>Promise.all(t.map(({animation:n,options:r})=>eae(e,n,r)))}function sae(e){let t=iae(e),n=e2(),r=!0;const i=l=>(d,h)=>{var m;const g=hd(e,h,l==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:b,transitionEnd:$,...w}=g;d={...d,...w,...$}}return d};function s(l){t=l(e)}function o(l){const{props:d}=e,h=vI(e.parent)||{},m=[],g=new Set;let b={},$=1/0;for(let D=0;D<rae;D++){const S=nae[D],C=n[S],T=d[S]!==void 0?d[S]:h[S],O=fd(T),M=S===l?C.isActive:null;M===!1&&($=D);let k=T===h[S]&&T!==d[S]&&O;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),C.protectedKeys={...b},!C.isActive&&M===null||!T&&!C.prevProp||og(T)||typeof T=="boolean")continue;const N=oae(C.prevProp,T);let F=N||S===l&&C.isActive&&!k&&O||D>$&&O,ae=!1;const oe=Array.isArray(T)?T:[T];let W=oe.reduce(i(S),{});M===!1&&(W={});const{prevResolvedValues:Ce={}}=C,ne={...Ce,...W},se=j=>{F=!0,g.has(j)&&(ae=!0,g.delete(j)),C.needsAnimating[j]=!0;const V=e.getValue(j);V&&(V.liveStyle=!1)};for(const j in ne){const V=W[j],ge=Ce[j];if(b.hasOwnProperty(j))continue;let U=!1;i4(V)&&i4(ge)?U=!gI(V,ge):U=V!==ge,U?V!=null?se(j):g.add(j):V!==void 0&&g.has(j)?se(j):C.protectedKeys[j]=!0}C.prevProp=T,C.prevResolvedValues=W,C.isActive&&(b={...b,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(k&&N)||ae)&&m.push(...oe.map(j=>({animation:j,options:{type:S}})))}if(g.size){const D={};if(typeof d.initial!="boolean"){const S=hd(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(D.transition=S.transition)}g.forEach(S=>{const C=e.getBaseTarget(S),T=e.getValue(S);T&&(T.liveStyle=!0),D[S]=C??null}),m.push({animation:D})}let w=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(m):Promise.resolve()}function u(l,d){var h;if(n[l].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var b;return(b=g.animationState)===null||b===void 0?void 0:b.setActive(l,d)}),n[l].isActive=d;const m=o(l);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:o,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=e2(),r=!0}}}function oae(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gI(t,e):!1}function au(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e2(){return{animate:au(!0),whileInView:au(),whileHover:au(),whileTap:au(),whileDrag:au(),whileFocus:au(),exit:au()}}class Pc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aae extends Pc{constructor(t){super(t),t.animationState||(t.animationState=sae(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();og(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let uae=0;class lae extends Pc{constructor(){super(...arguments),this.id=uae++}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 cae={animation:{Feature:aae},exit:{Feature:lae}},fae={y:!1};function dae(){return fae.y}const hae=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function t2(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function yI(e){return{point:{x:e.pageX,y:e.pageY}}}const n2=()=>({min:0,max:0}),bI=()=>({x:n2(),y:n2()});function pae({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mae(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 gae(e,t){return pae(mae(e.getBoundingClientRect(),t))}function vae(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function $I(e,t){const n=vae(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function r2(e){return!(e.pointerType==="touch"||dae())}function yae(e,t,n={}){const[r,i,s]=$I(e,n),o=u=>{if(!r2(u))return;const{target:l}=u,d=t(l,u);if(typeof d!="function"||!l)return;const h=m=>{r2(m)&&(d(m),l.removeEventListener("pointerleave",h))};l.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),s}function i2(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&li.postRender(()=>s(t,yI(t)))}class bae extends Pc{mount(){const{current:t}=this.node;t&&(this.unmount=yae(t,(n,r)=>(i2(this.node,r,"Start"),i=>i2(this.node,i,"End"))))}unmount(){}}class $ae extends Pc{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=cg(t2(this.node.current,"focus",()=>this.onFocus()),t2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const xI=(e,t)=>t?e===t?!0:xI(e,t.parentElement):!1,xae=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wae(e){return xae.has(e.tagName)||e.tabIndex!==-1}const kf=new WeakSet;function s2(e){return t=>{t.key==="Enter"&&e(t)}}function A1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Cae=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=s2(()=>{if(kf.has(n))return;A1(n,"down");const i=s2(()=>{A1(n,"up")}),s=()=>A1(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function o2(e){return hae(e)&&!0}function Sae(e,t,n={}){const[r,i,s]=$I(e,n),o=u=>{const l=u.currentTarget;if(!o2(u)||kf.has(l))return;kf.add(l);const d=t(l,u),h=(b,$)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!o2(b)||!kf.has(l))&&(kf.delete(l),typeof d=="function"&&d(b,{success:$}))},m=b=>{h(b,n.useGlobalTarget||xI(l,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{!wae(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",d=>Cae(d,i),i)}),s}function a2(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&li.postRender(()=>s(t,yI(t)))}class Eae extends Pc{mount(){const{current:t}=this.node;t&&(this.unmount=Sae(t,(n,r)=>(a2(this.node,r,"Start"),(i,{success:s})=>a2(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const p4=new WeakMap,T1=new WeakMap,Dae=e=>{const t=p4.get(e.target);t&&t(e)},Aae=e=>{e.forEach(Dae)};function Tae({root:e,...t}){const n=e||document;T1.has(n)||T1.set(n,{});const r=T1.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Aae,{root:e,...t})),r[i]}function Pae(e,t,n){const r=Tae(t);return p4.set(e,n),r.observe(e),()=>{p4.delete(e),r.unobserve(e)}}const _ae={some:0,all:1};class Mae extends Pc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:_ae[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,s&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(l)};return Pae(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Rae(t,n))&&this.startObserver()}unmount(){}}function Rae({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fae={inView:{Feature:Mae},tap:{Feature:Eae},focus:{Feature:$ae},hover:{Feature:bae}},m4={current:null},wI={current:!1};function kae(){if(wI.current=!0,!!m$)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>m4.current=e.matches;e.addListener(t),t()}else m4.current=!1}const Oae=[...sI,Tr,Tc],Iae=e=>Oae.find(iI(e)),Lae=new WeakMap;function Bae(e,t,n){for(const r in t){const i=t[r],s=n[r];if(zr(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ig(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(zr(s))e.addValue(r,rm(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,rm(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const u2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Vae{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=B$,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Sa.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,li.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:h}=o;this.onUpdate=h,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=ag(n),this.isVariantNode=vO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const $=g[b];l[b]!==void 0&&zr($)&&$.set(l[b],!1)}}mount(t){this.current=t,Lae.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)),wI.current||kae(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:m4.current,process.env.NODE_ENV!=="production"&&ig(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(),r4(this.notifyUpdate),r4(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=ju.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&li.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in fc){const n=fc[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bI()}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<u2.length;r++){const i=u2[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Bae(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=rm(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"&&(nI(i)||HO(i))?i=parseFloat(i):!Iae(i)&&Tc.test(n)&&(i=QO(t,n)),this.setBaseTarget(t,zr(i)?i.get():i)),zr(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=A$(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!zr(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new OO),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class CI extends Vae{constructor(){super(...arguments),this.KeyframeResolver=oI}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Nae(e){return window.getComputedStyle(e)}class jae extends CI{constructor(){super(...arguments),this.type="html",this.renderInstance=PO}readValueFromInstance(t,n){if(ju.has(n)){const r=L$(n);return r&&r.default||0}else{const r=Nae(t),i=(wO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gae(t,n)}build(t,n,r){w$(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return T$(t,n,r)}}class Kae extends CI{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&TO(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ju.has(n)){const r=L$(n);return r&&r.default||0}return n=_O.has(n)?n:b$(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return RO(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&li.postRender(this.updateDimensions)}build(t,n,r){E$(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){MO(t,n,r,i)}mount(t){this.isSVGTag=D$(t.tagName),super.mount(t)}}const Uae=(e,t)=>S$(e)?new Kae(t):new jae(t,{allowProjection:e!==A.Fragment}),zae={renderer:Uae,...cae,...Fae};function SI(e){return t=>typeof t===e}var qae=SI("function"),Wae=e=>e===null,l2=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",c2=e=>!Hae(e)&&!Wae(e)&&(qae(e)||typeof e=="object"),Hae=SI("undefined");function Gae(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!qr(e[r],t[r]))return!1;return!0}function Yae(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 Zae(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!qr(n[1],t.get(n[0])))return!1;return!0}function Xae(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function qr(e,t){if(e===t)return!0;if(e&&c2(e)&&t&&c2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Gae(e,t);if(e instanceof Map&&t instanceof Map)return Zae(e,t);if(e instanceof Set&&t instanceof Set)return Xae(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Yae(e,t);if(l2(e)&&l2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!qr(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Jae=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Qae=["bigint","boolean","null","number","string","symbol","undefined"];function fg(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(eue(t))return t}function Ss(e){return t=>fg(t)===e}function eue(e){return Jae.includes(e)}function _c(e){return t=>typeof t===e}function tue(e){return Qae.includes(e)}var nue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=fg(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>fg(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ss("AsyncFunction");ut.bigint=_c("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ss("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&nue.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ss("Error");ut.function=_c("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ss("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ss("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>_c("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ss("Function");ut.plainObject=e=>{if(fg(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||tue(typeof e);ut.promise=Ss("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ss("RegExp");ut.set=Ss("Set");ut.string=_c("string");ut.symbol=_c("symbol");ut.undefined=_c("undefined");ut.weakMap=Ss("WeakMap");ut.weakSet=Ss("WeakSet");var ht=ut;function rue(...e){return e.every(t=>ht.string(t)||ht.array(t)||ht.plainObject(t))}function iue(e,t,n){return EI(e,t)?[e,t].every(ht.array)?!e.some(m2(n))&&t.some(m2(n)):[e,t].every(ht.plainObject)?!Object.entries(e).some(p2(n))&&Object.entries(t).some(p2(n)):t===n:!1}function f2(e,t,n){const{actual:r,key:i,previous:s,type:o}=n,u=Xs(e,i),l=Xs(t,i);let d=[u,l].every(ht.number)&&(o==="increased"?u<l:u>l);return ht.undefined(r)||(d=d&&l===r),ht.undefined(s)||(d=d&&u===s),d}function d2(e,t,n){const{key:r,type:i,value:s}=n,o=Xs(e,r),u=Xs(t,r),l=i==="added"?o:u,d=i==="added"?u:o;if(!ht.nullOrUndefined(s)){if(ht.defined(l)){if(ht.array(l)||ht.plainObject(l))return iue(l,d,s)}else return qr(d,s);return!1}return[o,u].every(ht.array)?!d.every(j$(l)):[o,u].every(ht.plainObject)?sue(Object.keys(l),Object.keys(d)):![o,u].every(h=>ht.primitive(h)&&ht.defined(h))&&(i==="added"?!ht.defined(o)&&ht.defined(u):ht.defined(o)&&!ht.defined(u))}function h2(e,t,{key:n}={}){let r=Xs(e,n),i=Xs(t,n);if(!EI(r,i))throw new TypeError("Inputs have different types");if(!rue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ht.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function p2(e){return([t,n])=>ht.array(e)?qr(e,n)||e.some(r=>qr(r,n)||ht.array(n)&&j$(n)(r)):ht.plainObject(e)&&e[t]?!!e[t]&&qr(e[t],n):qr(e,n)}function sue(e,t){return t.some(n=>!e.includes(n))}function m2(e){return t=>ht.array(e)?e.some(n=>qr(n,t)||ht.array(t)&&j$(t)(n)):qr(e,t)}function vf(e,t){return ht.array(e)?e.some(n=>qr(n,t)):qr(e,t)}function j$(e){return t=>e.some(n=>qr(n,t))}function EI(...e){return e.every(ht.array)||e.every(ht.number)||e.every(ht.plainObject)||e.every(ht.string)}function Xs(e,t){return ht.plainObject(e)||ht.array(e)?ht.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ht.number(t)?e[t]:e:e}function um(e,t){if([e,t].some(ht.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(h=>ht.plainObject(h)||ht.array(h)))throw new Error("Expected plain objects or array");return{added:(h,m)=>{try{return d2(e,t,{key:h,type:"added",value:m})}catch{return!1}},changed:(h,m,g)=>{try{const b=Xs(e,h),$=Xs(t,h),w=ht.defined(m),D=ht.defined(g);if(w||D){const S=D?vf(g,b):!vf(m,b),C=vf(m,$);return S&&C}return[b,$].every(ht.array)||[b,$].every(ht.plainObject)?!qr(b,$):b!==$}catch{return!1}},changedFrom:(h,m,g)=>{if(!ht.defined(h))return!1;try{const b=Xs(e,h),$=Xs(t,h),w=ht.defined(g);return vf(m,b)&&(w?vf(g,$):!w)}catch{return!1}},decreased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return f2(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},emptied:h=>{try{const[m,g]=h2(e,t,{key:h});return!!m.length&&!g.length}catch{return!1}},filled:h=>{try{const[m,g]=h2(e,t,{key:h});return!m.length&&!!g.length}catch{return!1}},increased:(h,m,g)=>{if(!ht.defined(h))return!1;try{return f2(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},removed:(h,m)=>{try{return d2(e,t,{key:h,type:"removed",value:m})}catch{return!1}}}}var P1,g2;function oue(){if(g2)return P1;g2=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;P1={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,h,m,g){m=m||{},typeof m=="function"&&(g=m,m={}),typeof g!="function"&&(g=o);var b=r(),$=d[u],w=m.ease||s,D=isNaN(m.duration)?350:+m.duration,S=!1;return $===h?g(e,d[u]):requestAnimationFrame(T),C;function C(){S=!0}function T(O){if(S)return g(t,d[u]);var M=r(),k=n(1,(M-b)/D),N=w(k);d[u]=N*(h-$)+$,k<1?requestAnimationFrame(T):requestAnimationFrame(function(){g(null,d[u])})}}}function s(u){return .5*(1-Math.cos(Math.PI*u))}function o(){}return P1}var aue=oue();const uue=ws(aue);var yp={exports:{}},lue=yp.exports,v2;function cue(){return v2||(v2=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(lue,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})}(yp)),yp.exports}var fue=cue();const DI=ws(fue);var _1,y2;function due(){if(y2)return _1;y2=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,_1=n,_1}var hue=due();const b2=ws(hue);var M1,$2;function pue(){if($2)return M1;$2=1;var e=function(C){return t(C)&&!n(C)};function t(S){return!!S&&typeof S=="object"}function n(S){var C=Object.prototype.toString.call(S);return C==="[object RegExp]"||C==="[object Date]"||s(S)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function s(S){return S.$$typeof===i}function o(S){return Array.isArray(S)?[]:{}}function u(S,C){return C.clone!==!1&&C.isMergeableObject(S)?w(o(S),S,C):S}function l(S,C,T){return S.concat(C).map(function(O){return u(O,T)})}function d(S,C){if(!C.customMerge)return w;var T=C.customMerge(S);return typeof T=="function"?T:w}function h(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(C){return Object.propertyIsEnumerable.call(S,C)}):[]}function m(S){return Object.keys(S).concat(h(S))}function g(S,C){try{return C in S}catch{return!1}}function b(S,C){return g(S,C)&&!(Object.hasOwnProperty.call(S,C)&&Object.propertyIsEnumerable.call(S,C))}function $(S,C,T){var O={};return T.isMergeableObject(S)&&m(S).forEach(function(M){O[M]=u(S[M],T)}),m(C).forEach(function(M){b(S,M)||(g(S,M)&&T.isMergeableObject(C[M])?O[M]=d(M,T)(S[M],C[M],T):O[M]=u(C[M],T))}),O}function w(S,C,T){T=T||{},T.arrayMerge=T.arrayMerge||l,T.isMergeableObject=T.isMergeableObject||e,T.cloneUnlessOtherwiseSpecified=u;var O=Array.isArray(C),M=Array.isArray(S),k=O===M;return k?O?T.arrayMerge(S,C,T):$(S,C,T):u(C,T)}w.all=function(C,T){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(O,M){return w(O,M,T)},{})};var D=w;return M1=D,M1}var mue=pue();const ys=ws(mue);var qh={exports:{}},Wh={exports:{}},on={};/** @license React v16.13.1
|
|
137
|
+
* react-is.production.min.js
|
|
138
|
+
*
|
|
139
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the MIT license found in the
|
|
142
|
+
* LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/var x2;function gue(){if(x2)return on;x2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(M){if(typeof M=="object"&&M!==null){var k=M.$$typeof;switch(k){case t:switch(M=M.type,M){case l:case d:case r:case s:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case u:case h:case $:case b:case o:return M;default:return k}}case n:return k}}}function O(M){return T(M)===d}return on.AsyncMode=l,on.ConcurrentMode=d,on.ContextConsumer=u,on.ContextProvider=o,on.Element=t,on.ForwardRef=h,on.Fragment=r,on.Lazy=$,on.Memo=b,on.Portal=n,on.Profiler=s,on.StrictMode=i,on.Suspense=m,on.isAsyncMode=function(M){return O(M)||T(M)===l},on.isConcurrentMode=O,on.isContextConsumer=function(M){return T(M)===u},on.isContextProvider=function(M){return T(M)===o},on.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},on.isForwardRef=function(M){return T(M)===h},on.isFragment=function(M){return T(M)===r},on.isLazy=function(M){return T(M)===$},on.isMemo=function(M){return T(M)===b},on.isPortal=function(M){return T(M)===n},on.isProfiler=function(M){return T(M)===s},on.isStrictMode=function(M){return T(M)===i},on.isSuspense=function(M){return T(M)===m},on.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===s||M===i||M===m||M===g||typeof M=="object"&&M!==null&&(M.$$typeof===$||M.$$typeof===b||M.$$typeof===o||M.$$typeof===u||M.$$typeof===h||M.$$typeof===D||M.$$typeof===S||M.$$typeof===C||M.$$typeof===w)},on.typeOf=T,on}var an={};/** @license React v16.13.1
|
|
144
|
+
* react-is.development.js
|
|
145
|
+
*
|
|
146
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the MIT license found in the
|
|
149
|
+
* LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/var w2;function vue(){return w2||(w2=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,$=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,D=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function T(Le){return typeof Le=="string"||typeof Le=="function"||Le===r||Le===d||Le===s||Le===i||Le===m||Le===g||typeof Le=="object"&&Le!==null&&(Le.$$typeof===$||Le.$$typeof===b||Le.$$typeof===o||Le.$$typeof===u||Le.$$typeof===h||Le.$$typeof===D||Le.$$typeof===S||Le.$$typeof===C||Le.$$typeof===w)}function O(Le){if(typeof Le=="object"&&Le!==null){var nt=Le.$$typeof;switch(nt){case t:var xt=Le.type;switch(xt){case l:case d:case r:case s:case i:case m:return xt;default:var ln=xt&&xt.$$typeof;switch(ln){case u:case h:case $:case b:case o:return ln;default:return nt}}case n:return nt}}}var M=l,k=d,N=u,F=o,ae=t,oe=h,W=r,Ce=$,ne=b,se=n,z=s,K=i,j=m,V=!1;function ge(Le){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(Le)||O(Le)===l}function U(Le){return O(Le)===d}function J(Le){return O(Le)===u}function xe(Le){return O(Le)===o}function Pe(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===t}function Oe(Le){return O(Le)===h}function Ie(Le){return O(Le)===r}function Ze(Le){return O(Le)===$}function Ge(Le){return O(Le)===b}function De(Le){return O(Le)===n}function Ue(Le){return O(Le)===s}function Re(Le){return O(Le)===i}function Ve(Le){return O(Le)===m}an.AsyncMode=M,an.ConcurrentMode=k,an.ContextConsumer=N,an.ContextProvider=F,an.Element=ae,an.ForwardRef=oe,an.Fragment=W,an.Lazy=Ce,an.Memo=ne,an.Portal=se,an.Profiler=z,an.StrictMode=K,an.Suspense=j,an.isAsyncMode=ge,an.isConcurrentMode=U,an.isContextConsumer=J,an.isContextProvider=xe,an.isElement=Pe,an.isForwardRef=Oe,an.isFragment=Ie,an.isLazy=Ze,an.isMemo=Ge,an.isPortal=De,an.isProfiler=Ue,an.isStrictMode=Re,an.isSuspense=Ve,an.isValidElementType=T,an.typeOf=O}()),an}var C2;function AI(){return C2||(C2=1,process.env.NODE_ENV==="production"?Wh.exports=gue():Wh.exports=vue()),Wh.exports}/*
|
|
151
|
+
object-assign
|
|
152
|
+
(c) Sindre Sorhus
|
|
153
|
+
@license MIT
|
|
154
|
+
*/var R1,S2;function yue(){if(S2)return R1;S2=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},u=0;u<10;u++)o["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return R1=i()?Object.assign:function(s,o){for(var u,l=r(s),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(l[m]=u[m]);if(e){d=e(u);for(var g=0;g<d.length;g++)n.call(u,d[g])&&(l[d[g]]=u[d[g]])}}return l},R1}var F1,E2;function K$(){if(E2)return F1;E2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return F1=e,F1}var k1,D2;function TI(){return D2||(D2=1,k1=Function.call.bind(Object.prototype.hasOwnProperty)),k1}var O1,A2;function bue(){if(A2)return O1;A2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=K$(),n={},r=TI();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(s,o,u,l,d){if(process.env.NODE_ENV!=="production"){for(var h in s)if(r(s,h)){var m;try{if(typeof s[h]!="function"){var g=Error((l||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=s[h](o,h,l,u,null,t)}catch($){m=$}if(m&&!(m instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var b=d?d():"";e("Failed "+u+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},O1=i,O1}var I1,T2;function $ue(){if(T2)return I1;T2=1;var e=AI(),t=yue(),n=K$(),r=TI(),i=bue(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return I1=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(U){var J=U&&(d&&U[d]||U[h]);if(typeof J=="function")return J}var g="<<anonymous>>",b={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:T,element:O(),elementType:M(),instanceOf:k,node:oe(),objectOf:F,oneOf:N,oneOfType:ae,shape:Ce,exact:ne};function $(U,J){return U===J?U!==0||1/U===1/J:U!==U&&J!==J}function w(U,J){this.message=U,this.data=J&&typeof J=="object"?J:{},this.stack=""}w.prototype=Error.prototype;function D(U){if(process.env.NODE_ENV!=="production")var J={},xe=0;function Pe(Ie,Ze,Ge,De,Ue,Re,Ve){if(De=De||g,Re=Re||Ge,Ve!==n){if(l){var Le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Le.name="Invariant Violation",Le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var nt=De+":"+Ge;!J[nt]&&xe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Re+"` prop on `"+De+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),J[nt]=!0,xe++)}}return Ze[Ge]==null?Ie?Ze[Ge]===null?new w("The "+Ue+" `"+Re+"` is marked as required "+("in `"+De+"`, but its value is `null`.")):new w("The "+Ue+" `"+Re+"` is marked as required in "+("`"+De+"`, but its value is `undefined`.")):null:U(Ze,Ge,De,Ue,Re)}var Oe=Pe.bind(null,!1);return Oe.isRequired=Pe.bind(null,!0),Oe}function S(U){function J(xe,Pe,Oe,Ie,Ze,Ge){var De=xe[Pe],Ue=K(De);if(Ue!==U){var Re=j(De);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+Re+"` supplied to `"+Oe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return D(J)}function C(){return D(o)}function T(U){function J(xe,Pe,Oe,Ie,Ze){if(typeof U!="function")return new w("Property `"+Ze+"` of component `"+Oe+"` has invalid PropType notation inside arrayOf.");var Ge=xe[Pe];if(!Array.isArray(Ge)){var De=K(Ge);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected an array."))}for(var Ue=0;Ue<Ge.length;Ue++){var Re=U(Ge,Ue,Oe,Ie,Ze+"["+Ue+"]",n);if(Re instanceof Error)return Re}return null}return D(J)}function O(){function U(J,xe,Pe,Oe,Ie){var Ze=J[xe];if(!u(Ze)){var Ge=K(Ze);return new w("Invalid "+Oe+" `"+Ie+"` of type "+("`"+Ge+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return D(U)}function M(){function U(J,xe,Pe,Oe,Ie){var Ze=J[xe];if(!e.isValidElementType(Ze)){var Ge=K(Ze);return new w("Invalid "+Oe+" `"+Ie+"` of type "+("`"+Ge+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return D(U)}function k(U){function J(xe,Pe,Oe,Ie,Ze){if(!(xe[Pe]instanceof U)){var Ge=U.name||g,De=ge(xe[Pe]);return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected ")+("instance of `"+Ge+"`."))}return null}return D(J)}function N(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function J(xe,Pe,Oe,Ie,Ze){for(var Ge=xe[Pe],De=0;De<U.length;De++)if($(Ge,U[De]))return null;var Ue=JSON.stringify(U,function(Ve,Le){var nt=j(Le);return nt==="symbol"?String(Le):Le});return new w("Invalid "+Ie+" `"+Ze+"` of value `"+String(Ge)+"` "+("supplied to `"+Oe+"`, expected one of "+Ue+"."))}return D(J)}function F(U){function J(xe,Pe,Oe,Ie,Ze){if(typeof U!="function")return new w("Property `"+Ze+"` of component `"+Oe+"` has invalid PropType notation inside objectOf.");var Ge=xe[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type "+("`"+De+"` supplied to `"+Oe+"`, expected an object."));for(var Ue in Ge)if(r(Ge,Ue)){var Re=U(Ge,Ue,Oe,Ie,Ze+"."+Ue,n);if(Re instanceof Error)return Re}return null}return D(J)}function ae(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var J=0;J<U.length;J++){var xe=U[J];if(typeof xe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(xe)+" at index "+J+"."),o}function Pe(Oe,Ie,Ze,Ge,De){for(var Ue=[],Re=0;Re<U.length;Re++){var Ve=U[Re],Le=Ve(Oe,Ie,Ze,Ge,De,n);if(Le==null)return null;Le.data&&r(Le.data,"expectedType")&&Ue.push(Le.data.expectedType)}var nt=Ue.length>0?", expected one of type ["+Ue.join(", ")+"]":"";return new w("Invalid "+Ge+" `"+De+"` supplied to "+("`"+Ze+"`"+nt+"."))}return D(Pe)}function oe(){function U(J,xe,Pe,Oe,Ie){return se(J[xe])?null:new w("Invalid "+Oe+" `"+Ie+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return D(U)}function W(U,J,xe,Pe,Oe){return new w((U||"React class")+": "+J+" type `"+xe+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Oe+"`.")}function Ce(U){function J(xe,Pe,Oe,Ie,Ze){var Ge=xe[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type `"+De+"` "+("supplied to `"+Oe+"`, expected `object`."));for(var Ue in U){var Re=U[Ue];if(typeof Re!="function")return W(Oe,Ie,Ze,Ue,j(Re));var Ve=Re(Ge,Ue,Oe,Ie,Ze+"."+Ue,n);if(Ve)return Ve}return null}return D(J)}function ne(U){function J(xe,Pe,Oe,Ie,Ze){var Ge=xe[Pe],De=K(Ge);if(De!=="object")return new w("Invalid "+Ie+" `"+Ze+"` of type `"+De+"` "+("supplied to `"+Oe+"`, expected `object`."));var Ue=t({},xe[Pe],U);for(var Re in Ue){var Ve=U[Re];if(r(U,Re)&&typeof Ve!="function")return W(Oe,Ie,Ze,Re,j(Ve));if(!Ve)return new w("Invalid "+Ie+" `"+Ze+"` key `"+Re+"` supplied to `"+Oe+"`.\nBad object: "+JSON.stringify(xe[Pe],null," ")+`
|
|
155
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var Le=Ve(Ge,Re,Oe,Ie,Ze+"."+Re,n);if(Le)return Le}return null}return D(J)}function se(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(se);if(U===null||u(U))return!0;var J=m(U);if(J){var xe=J.call(U),Pe;if(J!==U.entries){for(;!(Pe=xe.next()).done;)if(!se(Pe.value))return!1}else for(;!(Pe=xe.next()).done;){var Oe=Pe.value;if(Oe&&!se(Oe[1]))return!1}}else return!1;return!0;default:return!1}}function z(U,J){return U==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function K(U){var J=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":z(J,U)?"symbol":J}function j(U){if(typeof U>"u"||U===null)return""+U;var J=K(U);if(J==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return J}function V(U){var J=j(U);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function ge(U){return!U.constructor||!U.constructor.name?g:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},I1}var L1,P2;function xue(){if(P2)return L1;P2=1;var e=K$();function t(){}function n(){}return n.resetWarningCache=t,L1=function(){function r(o,u,l,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},L1}var _2;function wue(){if(_2)return qh.exports;if(_2=1,process.env.NODE_ENV!=="production"){var e=AI(),t=!0;qh.exports=$ue()(e.isElement,t)}else qh.exports=xue()();return qh.exports}var Cue=wue();const it=ws(Cue);/**!
|
|
156
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
157
|
+
* @version 1.16.1
|
|
158
|
+
* @license
|
|
159
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
160
|
+
*
|
|
161
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
162
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
163
|
+
* in the Software without restriction, including without limitation the rights
|
|
164
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
165
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
166
|
+
* furnished to do so, subject to the following conditions:
|
|
167
|
+
*
|
|
168
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
169
|
+
* copies or substantial portions of the Software.
|
|
170
|
+
*
|
|
171
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
172
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
173
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
174
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
175
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
176
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
177
|
+
* SOFTWARE.
|
|
178
|
+
*/var jd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Sue=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(jd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Eue(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Due(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Sue))}}var Aue=jd&&window.Promise,Tue=Aue?Eue:Due;function PI(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ku(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function U$(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Kd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ku(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Kd(U$(e))}function _I(e){return e&&e.referenceNode?e.referenceNode:e}var M2=jd&&!!(window.MSInputMethodContext&&document.documentMode),R2=jd&&/MSIE 10/.test(navigator.userAgent);function Mc(e){return e===11?M2:e===10?R2:M2||R2}function hc(e){if(!e)return document.documentElement;for(var t=Mc(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&&Ku(n,"position")==="static"?hc(n):n}function Pue(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||hc(e.firstElementChild)===e}function g4(e){return e.parentNode!==null?g4(e.parentNode):e}function lm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,s=document.createRange();s.setStart(r,0),s.setEnd(i,0);var o=s.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return Pue(o)?o:hc(o);var u=g4(e);return u.host?lm(u.host,t):lm(e,g4(t).host)}function pc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||i;return s[n]}return e[n]}function _ue(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=pc(t,"top"),i=pc(t,"left"),s=n?-1:1;return e.top+=r*s,e.bottom+=r*s,e.left+=i*s,e.right+=i*s,e}function F2(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 k2(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Mc(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function MI(e){var t=e.body,n=e.documentElement,r=Mc(10)&&getComputedStyle(n);return{height:k2("Height",t,n,r),width:k2("Width",t,n,r)}}var Mue=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Rue=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}}(),mc=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Pa(e){return Hi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function v4(e){var t={};try{if(Mc(10)){t=e.getBoundingClientRect();var n=pc(e,"top"),r=pc(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?MI(e.ownerDocument):{},o=s.width||e.clientWidth||i.width,u=s.height||e.clientHeight||i.height,l=e.offsetWidth-o,d=e.offsetHeight-u;if(l||d){var h=Ku(e);l-=F2(h,"x"),d-=F2(h,"y"),i.width-=l,i.height-=d}return Pa(i)}function z$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Mc(10),i=t.nodeName==="HTML",s=v4(e),o=v4(t),u=Kd(e),l=Ku(t),d=parseFloat(l.borderTopWidth),h=parseFloat(l.borderLeftWidth);n&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var m=Pa({top:s.top-o.top-d,left:s.left-o.left-h,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);m.top-=d-g,m.bottom-=d-g,m.left-=h-b,m.right-=h-b,m.marginTop=g,m.marginLeft=b}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(m=_ue(m,t)),m}function Fue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=z$(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),s=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:pc(n),u=t?0:pc(n,"left"),l={top:o-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:s};return Pa(l)}function RI(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ku(e,"position")==="fixed")return!0;var n=U$(e);return n?RI(n):!1}function FI(e){if(!e||!e.parentElement||Mc())return document.documentElement;for(var t=e.parentElement;t&&Ku(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function q$(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},o=i?FI(e):lm(e,_I(t));if(r==="viewport")s=Fue(o,i);else{var u=void 0;r==="scrollParent"?(u=Kd(U$(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=z$(u,o,i);if(u.nodeName==="HTML"&&!RI(o)){var d=MI(e.ownerDocument),h=d.height,m=d.width;s.top+=l.top-l.marginTop,s.bottom=h+l.top,s.left+=l.left-l.marginLeft,s.right=m+l.left}else s=l}n=n||0;var g=typeof n=="number";return s.left+=g?n:n.left||0,s.top+=g?n:n.top||0,s.right-=g?n:n.right||0,s.bottom-=g?n:n.bottom||0,s}function kue(e){var t=e.width,n=e.height;return t*n}function kI(e,t,n,r,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=q$(n,r,s,i),u={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(u).map(function(g){return Hi({key:g},u[g],{area:kue(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 OI(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?FI(t):lm(t,_I(n));return z$(n,i,r)}function II(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),s={width:e.offsetWidth+i,height:e.offsetHeight+r};return s}function cm(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function LI(e,t,n){n=n.split("-")[0];var r=II(e),i={width:r.width,height:r.height},s=["right","left"].indexOf(n)!==-1,o=s?"top":"left",u=s?"left":"top",l=s?"height":"width",d=s?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[cm(u)],i}function Ud(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Oue(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Ud(e,function(i){return i[t]===n});return e.indexOf(r)}function BI(e,t,n){var r=n===void 0?e:e.slice(0,Oue(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=i.function||i.fn;i.enabled&&PI(s)&&(t.offsets.popper=Pa(t.offsets.popper),t.offsets.reference=Pa(t.offsets.reference),t=s(t,i))}),t}function Iue(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=OI(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=kI(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=LI(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=BI(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function VI(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function W$(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],s=i?""+i+n:e;if(typeof document.body.style[s]<"u")return s}return null}function Lue(){return this.state.isDestroyed=!0,VI(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[W$("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function NI(e){var t=e.ownerDocument;return t?t.defaultView:window}function jI(e,t,n,r){var i=e.nodeName==="BODY",s=i?e.ownerDocument.defaultView:e;s.addEventListener(t,n,{passive:!0}),i||jI(Kd(s.parentNode),t,n,r),r.push(s)}function Bue(e,t,n,r){n.updateBound=r,NI(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Kd(e);return jI(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Vue(){this.state.eventsEnabled||(this.state=Bue(this.reference,this.options,this.state,this.scheduleUpdate))}function Nue(e,t){return NI(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 jue(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Nue(this.reference,this.state))}function H$(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function y4(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&H$(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Kue(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Uue(e){return y4(e.instance.popper,e.styles),Kue(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&y4(e.arrowElement,e.arrowStyles),e}function zue(e,t,n,r,i){var s=OI(i,t,e,n.positionFixed),o=kI(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),y4(t,{position:n.positionFixed?"fixed":"absolute"}),n}function que(e,t){var n=e.offsets,r=n.popper,i=n.reference,s=Math.round,o=Math.floor,u=function(S){return S},l=s(i.width),d=s(r.width),h=["left","right"].indexOf(e.placement)!==-1,m=e.placement.indexOf("-")!==-1,g=l%2===d%2,b=l%2===1&&d%2===1,$=t?h||m||g?s:o:u,w=t?s:u;return{left:$(b&&!m&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:$(r.right)}}var Wue=jd&&/Firefox/i.test(navigator.userAgent);function Hue(e,t){var n=t.x,r=t.y,i=e.offsets.popper,s=Ud(e.instance.modifiers,function(T){return T.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=s!==void 0?s:t.gpuAcceleration,u=hc(e.instance.popper),l=v4(u),d={position:i.position},h=que(e,window.devicePixelRatio<2||!Wue),m=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",b=W$("transform"),$=void 0,w=void 0;if(m==="bottom"?u.nodeName==="HTML"?w=-u.clientHeight+h.bottom:w=-l.height+h.bottom:w=h.top,g==="right"?u.nodeName==="HTML"?$=-u.clientWidth+h.right:$=-l.width+h.right:$=h.left,o&&b)d[b]="translate3d("+$+"px, "+w+"px, 0)",d[m]=0,d[g]=0,d.willChange="transform";else{var D=m==="bottom"?-1:1,S=g==="right"?-1:1;d[m]=w*D,d[g]=$*S,d.willChange=m+", "+g}var C={"x-placement":e.placement};return e.attributes=Hi({},C,e.attributes),e.styles=Hi({},d,e.styles),e.arrowStyles=Hi({},e.offsets.arrow,e.arrowStyles),e}function KI(e,t,n){var r=Ud(e,function(u){var l=u.name;return l===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var s="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return i}function Gue(e,t){var n;if(!KI(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],s=e.offsets,o=s.popper,u=s.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",h=l?"Top":"Left",m=h.toLowerCase(),g=l?"left":"top",b=l?"bottom":"right",$=II(r)[d];u[b]-$<o[m]&&(e.offsets.popper[m]-=o[m]-(u[b]-$)),u[m]+$>o[b]&&(e.offsets.popper[m]+=u[m]+$-o[b]),e.offsets.popper=Pa(e.offsets.popper);var w=u[m]+u[d]/2-$/2,D=Ku(e.instance.popper),S=parseFloat(D["margin"+h]),C=parseFloat(D["border"+h+"Width"]),T=w-e.offsets.popper[m]-S-C;return T=Math.max(Math.min(o[d]-$,T),0),e.arrowElement=r,e.offsets.arrow=(n={},mc(n,m,Math.round(T)),mc(n,g,""),n),e}function Yue(e){return e==="end"?"start":e==="start"?"end":e}var UI=["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"],B1=UI.slice(3);function O2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=B1.indexOf(e),r=B1.slice(n+1).concat(B1.slice(0,n));return t?r.reverse():r}var V1={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Zue(e,t){if(VI(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=q$(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=cm(r),s=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case V1.FLIP:o=[r,i];break;case V1.CLOCKWISE:o=O2(r);break;case V1.COUNTERCLOCKWISE:o=O2(r,!0);break;default:o=t.behavior}return o.forEach(function(u,l){if(r!==u||o.length===l+1)return e;r=e.placement.split("-")[0],i=cm(r);var d=e.offsets.popper,h=e.offsets.reference,m=Math.floor,g=r==="left"&&m(d.right)>m(h.left)||r==="right"&&m(d.left)<m(h.right)||r==="top"&&m(d.bottom)>m(h.top)||r==="bottom"&&m(d.top)<m(h.bottom),b=m(d.left)<m(n.left),$=m(d.right)>m(n.right),w=m(d.top)<m(n.top),D=m(d.bottom)>m(n.bottom),S=r==="left"&&b||r==="right"&&$||r==="top"&&w||r==="bottom"&&D,C=["top","bottom"].indexOf(r)!==-1,T=!!t.flipVariations&&(C&&s==="start"&&b||C&&s==="end"&&$||!C&&s==="start"&&w||!C&&s==="end"&&D),O=!!t.flipVariationsByContent&&(C&&s==="start"&&$||C&&s==="end"&&b||!C&&s==="start"&&D||!C&&s==="end"&&w),M=T||O;(g||S||M)&&(e.flipped=!0,(g||S)&&(r=o[l+1]),M&&(s=Yue(s)),e.placement=r+(s?"-"+s:""),e.offsets.popper=Hi({},e.offsets.popper,LI(e.instance.popper,e.offsets.reference,e.placement)),e=BI(e.instance.modifiers,e,"flip"))}),e}function Xue(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],s=Math.floor,o=["top","bottom"].indexOf(i)!==-1,u=o?"right":"bottom",l=o?"left":"top",d=o?"width":"height";return n[u]<s(r[l])&&(e.offsets.popper[l]=s(r[l])-n[d]),n[l]>s(r[u])&&(e.offsets.popper[l]=s(r[u])),e}function Jue(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+i[1],o=i[2];if(!s)return e;if(o.indexOf("%")===0){var u=void 0;switch(o){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=Pa(u);return l[t]/100*s}else if(o==="vh"||o==="vw"){var d=void 0;return o==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*s}else return s}function Que(e,t,n,r){var i=[0,0],s=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(h){return h.trim()}),u=o.indexOf(Ud(o,function(h){return h.search(/,|\s/)!==-1}));o[u]&&o[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=u!==-1?[o.slice(0,u).concat([o[u].split(l)[0]]),[o[u].split(l)[1]].concat(o.slice(u+1))]:[o];return d=d.map(function(h,m){var g=(m===1?!s:s)?"height":"width",b=!1;return h.reduce(function($,w){return $[$.length-1]===""&&["+","-"].indexOf(w)!==-1?($[$.length-1]=w,b=!0,$):b?($[$.length-1]+=w,b=!1,$):$.concat(w)},[]).map(function($){return Jue($,g,t,n)})}),d.forEach(function(h,m){h.forEach(function(g,b){H$(g)&&(i[m]+=g*(h[b-1]==="-"?-1:1))})}),i}function ele(e,t){var n=t.offset,r=e.placement,i=e.offsets,s=i.popper,o=i.reference,u=r.split("-")[0],l=void 0;return H$(+n)?l=[+n,0]:l=Que(n,s,o,u),u==="left"?(s.top+=l[0],s.left-=l[1]):u==="right"?(s.top+=l[0],s.left+=l[1]):u==="top"?(s.left+=l[0],s.top-=l[1]):u==="bottom"&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function tle(e,t){var n=t.boundariesElement||hc(e.instance.popper);e.instance.reference===n&&(n=hc(n));var r=W$("transform"),i=e.instance.popper.style,s=i.top,o=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=q$(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=s,i.left=o,i[r]=u,t.boundaries=l;var d=t.priority,h=e.offsets.popper,m={primary:function(b){var $=h[b];return h[b]<l[b]&&!t.escapeWithReference&&($=Math.max(h[b],l[b])),mc({},b,$)},secondary:function(b){var $=b==="right"?"left":"top",w=h[$];return h[b]>l[b]&&!t.escapeWithReference&&(w=Math.min(h[$],l[b]-(b==="right"?h.width:h.height))),mc({},$,w)}};return d.forEach(function(g){var b=["left","top"].indexOf(g)!==-1?"primary":"secondary";h=Hi({},h,m[b](g))}),e.offsets.popper=h,e}function nle(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,s=i.reference,o=i.popper,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",d=u?"width":"height",h={start:mc({},l,s[l]),end:mc({},l,s[l]+s[d]-o[d])};e.offsets.popper=Hi({},o,h[r])}return e}function rle(e){if(!KI(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ud(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 ile(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,s=r.reference,o=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=s[n]-(u?i[o?"width":"height"]:0),e.placement=cm(t),e.offsets.popper=Pa(i),e}var sle={shift:{order:100,enabled:!0,fn:nle},offset:{order:200,enabled:!0,fn:ele,offset:0},preventOverflow:{order:300,enabled:!0,fn:tle,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Xue},arrow:{order:500,enabled:!0,fn:Gue,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Zue,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:ile},hide:{order:800,enabled:!0,fn:rle},computeStyle:{order:850,enabled:!0,fn:Hue,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Uue,onLoad:zue,gpuAcceleration:void 0}},ole={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:sle},md=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Mue(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Tue(this.update.bind(this)),this.options=Hi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Hi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){r.options.modifiers[o]=Hi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Hi({name:o},r.options.modifiers[o])}).sort(function(o,u){return o.order-u.order}),this.modifiers.forEach(function(o){o.enabled&&PI(o.onLoad)&&o.onLoad(r.reference,r.popper,r.options,o,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Rue(e,[{key:"update",value:function(){return Iue.call(this)}},{key:"destroy",value:function(){return Lue.call(this)}},{key:"enableEventListeners",value:function(){return Vue.call(this)}},{key:"disableEventListeners",value:function(){return jue.call(this)}}]),e}();md.Utils=(typeof window<"u"?window:global).PopperUtils;md.placements=UI;md.Defaults=ole;var ale=["innerHTML","ownerDocument","style","attributes","nodeValue"],ule=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],lle=["bigint","boolean","null","number","string","symbol","undefined"];function dg(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(cle(t))return t}function Es(e){return function(t){return dg(t)===e}}function cle(e){return ule.includes(e)}function Rc(e){return function(t){return typeof t===e}}function fle(e){return lle.includes(e)}function Ke(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=dg(e);return t||"Object"}Ke.array=Array.isArray;Ke.arrayOf=function(e,t){return!Ke.array(e)&&!Ke.function(t)?!1:e.every(function(n){return t(n)})};Ke.asyncGeneratorFunction=function(e){return dg(e)==="AsyncGeneratorFunction"};Ke.asyncFunction=Es("AsyncFunction");Ke.bigint=Rc("bigint");Ke.boolean=function(e){return e===!0||e===!1};Ke.date=Es("Date");Ke.defined=function(e){return!Ke.undefined(e)};Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&e.nodeType===1&&Ke.string(e.nodeName)&&ale.every(function(t){return t in e})};Ke.empty=function(e){return Ke.string(e)&&e.length===0||Ke.array(e)&&e.length===0||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&Object.keys(e).length===0||Ke.set(e)&&e.size===0||Ke.map(e)&&e.size===0};Ke.error=Es("Error");Ke.function=Rc("function");Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)};Ke.generatorFunction=Es("GeneratorFunction");Ke.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])};Ke.map=Es("Map");Ke.nan=function(e){return Number.isNaN(e)};Ke.null=function(e){return e===null};Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)};Ke.number=function(e){return Rc("number")(e)&&!Ke.nan(e)};Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))};Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||typeof e=="object")};Ke.oneOf=function(e,t){return Ke.array(e)?e.indexOf(t)>-1:!1};Ke.plainFunction=Es("Function");Ke.plainObject=function(e){if(dg(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ke.primitive=function(e){return Ke.null(e)||fle(typeof e)};Ke.promise=Es("Promise");Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)};Ke.regexp=Es("RegExp");Ke.set=Es("Set");Ke.string=Rc("string");Ke.symbol=Rc("symbol");Ke.undefined=Rc("undefined");Ke.weakMap=Es("WeakMap");Ke.weakSet=Es("WeakSet");function zI(e){return function(t){return typeof t===e}}var dle=zI("function"),hle=function(e){return e===null},I2=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},L2=function(e){return!ple(e)&&!hle(e)&&(dle(e)||typeof e=="object")},ple=zI("undefined"),b4=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function mle(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!oi(e[r],t[r]))return!1;return!0}function gle(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 vle(e,t){var n,r,i,s;if(e.size!==t.size)return!1;try{for(var o=b4(e.entries()),u=o.next();!u.done;u=o.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(m){n={error:m}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}try{for(var d=b4(e.entries()),h=d.next();!h.done;h=d.next()){var l=h.value;if(!oi(l[1],t.get(l[0])))return!1}}catch(m){i={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}return!0}function yle(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=b4(e.entries()),s=i.next();!s.done;s=i.next()){var o=s.value;if(!t.has(o[0]))return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function oi(e,t){if(e===t)return!0;if(e&&L2(e)&&t&&L2(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return mle(e,t);if(e instanceof Map&&t instanceof Map)return vle(e,t);if(e instanceof Set&&t instanceof Set)return yle(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return gle(e,t);if(I2(e)&&I2(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var s=n[i];if(!(s==="_owner"&&e.$$typeof)&&!oi(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function ble(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return Ke.string(n)||Ke.array(n)||Ke.plainObject(n)})}function $le(e,t,n){return qI(e,t)?[e,t].every(Ke.array)?!e.some(K2(n))&&t.some(K2(n)):[e,t].every(Ke.plainObject)?!Object.entries(e).some(j2(n))&&Object.entries(t).some(j2(n)):t===n:!1}function B2(e,t,n){var r=n.actual,i=n.key,s=n.previous,o=n.type,u=Js(e,i),l=Js(t,i),d=[u,l].every(Ke.number)&&(o==="increased"?u<l:u>l);return Ke.undefined(r)||(d=d&&l===r),Ke.undefined(s)||(d=d&&u===s),d}function V2(e,t,n){var r=n.key,i=n.type,s=n.value,o=Js(e,r),u=Js(t,r),l=i==="added"?o:u,d=i==="added"?u:o;if(!Ke.nullOrUndefined(s)){if(Ke.defined(l)){if(Ke.array(l)||Ke.plainObject(l))return $le(l,d,s)}else return oi(d,s);return!1}return[o,u].every(Ke.array)?!d.every(G$(l)):[o,u].every(Ke.plainObject)?xle(Object.keys(l),Object.keys(d)):![o,u].every(function(h){return Ke.primitive(h)&&Ke.defined(h)})&&(i==="added"?!Ke.defined(o)&&Ke.defined(u):Ke.defined(o)&&!Ke.defined(u))}function N2(e,t,n){var r=n===void 0?{}:n,i=r.key,s=Js(e,i),o=Js(t,i);if(!qI(s,o))throw new TypeError("Inputs have different types");if(!ble(s,o))throw new TypeError("Inputs don't have length");return[s,o].every(Ke.plainObject)&&(s=Object.keys(s),o=Object.keys(o)),[s,o]}function j2(e){return function(t){var n=t[0],r=t[1];return Ke.array(e)?oi(e,r)||e.some(function(i){return oi(i,r)||Ke.array(r)&&G$(r)(i)}):Ke.plainObject(e)&&e[n]?!!e[n]&&oi(e[n],r):oi(e,r)}}function xle(e,t){return t.some(function(n){return!e.includes(n)})}function K2(e){return function(t){return Ke.array(e)?e.some(function(n){return oi(n,t)||Ke.array(t)&&G$(t)(n)}):oi(e,t)}}function yf(e,t){return Ke.array(e)?e.some(function(n){return oi(n,t)}):oi(e,t)}function G$(e){return function(t){return e.some(function(n){return oi(n,t)})}}function qI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(Ke.array)||e.every(Ke.number)||e.every(Ke.plainObject)||e.every(Ke.string)}function Js(e,t){if(Ke.plainObject(e)||Ke.array(e)){if(Ke.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return Ke.number(t)?e[t]:e}return e}function wle(e,t){if([e,t].some(Ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(m){return Ke.plainObject(m)||Ke.array(m)}))throw new Error("Expected plain objects or array");var n=function(m,g){try{return V2(e,t,{key:m,type:"added",value:g})}catch{return!1}},r=function(m,g,b){try{var $=Js(e,m),w=Js(t,m),D=Ke.defined(g),S=Ke.defined(b);if(D||S){var C=S?yf(b,$):!yf(g,$),T=yf(g,w);return C&&T}return[$,w].every(Ke.array)||[$,w].every(Ke.plainObject)?!oi($,w):$!==w}catch{return!1}},i=function(m,g,b){if(!Ke.defined(m))return!1;try{var $=Js(e,m),w=Js(t,m),D=Ke.defined(b);return yf(g,$)&&(D?yf(b,w):!D)}catch{return!1}},s=function(m,g){return Ke.defined(m)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(m,g)):!1},o=function(m,g,b){if(!Ke.defined(m))return!1;try{return B2(e,t,{key:m,actual:g,previous:b,type:"decreased"})}catch{return!1}},u=function(m){try{var g=N2(e,t,{key:m}),b=g[0],$=g[1];return!!b.length&&!$.length}catch{return!1}},l=function(m){try{var g=N2(e,t,{key:m}),b=g[0],$=g[1];return!b.length&&!!$.length}catch{return!1}},d=function(m,g,b){if(!Ke.defined(m))return!1;try{return B2(e,t,{key:m,actual:g,previous:b,type:"increased"})}catch{return!1}},h=function(m,g){try{return V2(e,t,{key:m,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:s,decreased:o,emptied:u,filled:l,increased:d,removed:h}}function U2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U2(Object(n),!0).forEach(function(r){Pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cle(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,HI(r.key),r)}}function qd(e,t,n){return t&&Cle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pr(e,t,n){return t=HI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wd(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&&$4(e,t)}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fm(e)}function $4(e,t){return $4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$4(e,t)}function Sle(){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 Ele(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function WI(e,t){if(e==null)return{};var n=Ele(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fo(e)}function Hd(e){var t=Sle();return function(){var r=fm(e),i;if(t){var s=fm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return Dle(this,i)}}function Ale(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 HI(e){var t=Ale(e,"string");return typeof t=="symbol"?t:String(t)}var Tle={flip:{padding:20},preventOverflow:{padding:10}},Ple="The typeValidator argument must be a function with the signature function(props, propName, componentName).",_le="The error message is optional, but must be a string if provided.";function Mle(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Rle(e,t){return Object.hasOwnProperty.call(e,t)}function Fle(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function kle(e,t){if(typeof e!="function")throw new TypeError(Ple);if(t)throw new TypeError(_le)}function z2(e,t,n){return kle(e,n),function(r,i,s){for(var o=arguments.length,u=new Array(o>3?o-3:0),l=3;l<o;l++)u[l-3]=arguments[l];return Mle(t,r,i,s)?Rle(r,i)?e.apply(void 0,[r,i,s].concat(u)):Fle(r,i,s):e.apply(void 0,[r,i,s].concat(u))}}var Gt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},bf=Vo.createPortal!==void 0;function zs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function N1(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Hh(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,s=e.debug,o=s===void 0?!1:s,u=i?console.warn||console.error:console.log;o&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){Ke.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function Ole(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Ile(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Lle(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(o){n(o),Ile(e,t,i)},Ole(e,t,i,r)}function q2(){}var GI=function(e){Wd(n,e);var t=Hd(n);function n(){return zd(this,n),t.apply(this,arguments)}return qd(n,[{key:"componentDidMount",value:function(){zs()&&(this.node||this.appendNode(),bf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){zs()&&(bf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!zs()||!this.node||(bf||Vo.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,s=i.id,o=i.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),o&&(this.node.style.zIndex=o),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!zs())return null;var i=this.props,s=i.children,o=i.setRef;if(this.node||this.appendNode(),bf)return Vo.createPortal(s,this.node);var u=Vo.unstable_renderSubtreeIntoContainer(this,s.length>1?A.createElement("div",null,s):s[0],this.node);return o(u),null}},{key:"renderReact16",value:function(){var i=this.props,s=i.hasChildren,o=i.placement,u=i.target;return s?this.renderPortal():u||o==="center"?this.renderPortal():null}},{key:"render",value:function(){return bf?this.renderReact16():null}}]),n}(A.Component);Pr(GI,"propTypes",{children:it.oneOfType([it.element,it.array]),hasChildren:it.bool,id:it.oneOfType([it.string,it.number]),placement:it.string,setRef:it.func.isRequired,target:it.oneOfType([it.object,it.string]),zIndex:it.number});var YI=function(e){Wd(n,e);var t=Hd(n);function n(){return zd(this,n),t.apply(this,arguments)}return qd(n,[{key:"parentStyle",get:function(){var i=this.props,s=i.placement,o=i.styles,u=o.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):s.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):s.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):s.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,s=i.placement,o=i.setArrowRef,u=i.styles,l=u.arrow,d=l.color,h=l.display,m=l.length,g=l.margin,b=l.position,$=l.spread,w={display:h,position:b},D,S=$,C=m;return s.startsWith("top")?(D="0,0 ".concat(S/2,",").concat(C," ").concat(S,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):s.startsWith("bottom")?(D="".concat(S,",").concat(C," ").concat(S/2,",0 0,").concat(C),w.top=0,w.marginLeft=g,w.marginRight=g):s.startsWith("left")?(C=$,S=m,D="0,0 ".concat(S,",").concat(C/2," 0,").concat(C),w.right=0,w.marginTop=g,w.marginBottom=g):s.startsWith("right")&&(C=$,S=m,D="".concat(S,",").concat(C," ").concat(S,",0 0,").concat(C/2),w.left=0,w.marginTop=g,w.marginBottom=g),A.createElement("div",{className:"__floater__arrow",style:this.parentStyle},A.createElement("span",{ref:o,style:w},A.createElement("svg",{width:S,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},A.createElement("polygon",{points:D,fill:d}))))}}]),n}(A.Component);Pr(YI,"propTypes",{placement:it.string.isRequired,setArrowRef:it.func.isRequired,styles:it.object.isRequired});var Ble=["color","height","width"];function ZI(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,s=n.width,o=WI(n,Ble);return A.createElement("button",{"aria-label":"close",onClick:t,style:o,type:"button"},A.createElement("svg",{width:"".concat(s,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},A.createElement("g",null,A.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}ZI.propTypes={handleClick:it.func.isRequired,styles:it.object.isRequired};function XI(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,s=e.positionWrapper,o=e.showCloseButton,u=e.title,l=e.styles,d={content:A.isValidElement(t)?t:A.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(d.title=A.isValidElement(u)?u:A.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(d.footer=A.isValidElement(n)?n:A.createElement("div",{className:"__floater__footer",style:l.footer},n)),(o||s)&&!Ke.boolean(i)&&(d.close=A.createElement(ZI,{styles:l.close,handleClick:r})),A.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}XI.propTypes={content:it.node.isRequired,footer:it.node,handleClick:it.func.isRequired,open:it.bool,positionWrapper:it.bool.isRequired,showCloseButton:it.bool.isRequired,styles:it.object.isRequired,title:it.node};var JI=function(e){Wd(n,e);var t=Hd(n);function n(){return zd(this,n),t.apply(this,arguments)}return qd(n,[{key:"style",get:function(){var i=this.props,s=i.disableAnimation,o=i.component,u=i.placement,l=i.hideArrow,d=i.status,h=i.styles,m=h.arrow.length,g=h.floater,b=h.floaterCentered,$=h.floaterClosing,w=h.floaterOpening,D=h.floaterWithAnimation,S=h.floaterWithComponent,C={};return l||(u.startsWith("top")?C.padding="0 0 ".concat(m,"px"):u.startsWith("bottom")?C.padding="".concat(m,"px 0 0"):u.startsWith("left")?C.padding="0 ".concat(m,"px 0 0"):u.startsWith("right")&&(C.padding="0 0 0 ".concat(m,"px"))),[Gt.OPENING,Gt.OPEN].indexOf(d)!==-1&&(C=Tn(Tn({},C),w)),d===Gt.CLOSING&&(C=Tn(Tn({},C),$)),d===Gt.OPEN&&!s&&(C=Tn(Tn({},C),D)),u==="center"&&(C=Tn(Tn({},C),b)),o&&(C=Tn(Tn({},C),S)),Tn(Tn({},g),C)}},{key:"render",value:function(){var i=this.props,s=i.component,o=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,d=i.status,h={},m=["__floater"];return s?A.isValidElement(s)?h.content=A.cloneElement(s,{closeFn:o}):h.content=s({closeFn:o}):h.content=A.createElement(XI,this.props),d===Gt.OPEN&&m.push("__floater__open"),u||(h.arrow=A.createElement(YI,this.props)),A.createElement("div",{ref:l,className:m.join(" "),style:this.style},A.createElement("div",{className:"__floater__body"},h.content,h.arrow))}}]),n}(A.Component);Pr(JI,"propTypes",{component:it.oneOfType([it.func,it.element]),content:it.node,disableAnimation:it.bool.isRequired,footer:it.node,handleClick:it.func.isRequired,hideArrow:it.bool.isRequired,open:it.bool,placement:it.string.isRequired,positionWrapper:it.bool.isRequired,setArrowRef:it.func.isRequired,setFloaterRef:it.func.isRequired,showCloseButton:it.bool,status:it.string.isRequired,styles:it.object.isRequired,title:it.node});var QI=function(e){Wd(n,e);var t=Hd(n);function n(){return zd(this,n),t.apply(this,arguments)}return qd(n,[{key:"render",value:function(){var i=this.props,s=i.children,o=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,h=i.setWrapperRef,m=i.style,g=i.styles,b;if(s)if(A.Children.count(s)===1)if(!A.isValidElement(s))b=A.createElement("span",null,s);else{var $=Ke.function(s.type)?"innerRef":"ref";b=A.cloneElement(A.Children.only(s),Pr({},$,d))}else b=s;return b?A.createElement("span",{ref:h,style:Tn(Tn({},g),m),onClick:o,onMouseEnter:u,onMouseLeave:l},b):null}}]),n}(A.Component);Pr(QI,"propTypes",{children:it.node,handleClick:it.func.isRequired,handleMouseEnter:it.func.isRequired,handleMouseLeave:it.func.isRequired,setChildRef:it.func.isRequired,setWrapperRef:it.func.isRequired,style:it.object,styles:it.object.isRequired});var Vle={zIndex:100};function Nle(e){var t=ys(Vle,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 jle=["arrow","flip","offset"],Kle=["position","top","right","bottom","left"],Y$=function(e){Wd(n,e);var t=Hd(n);function n(r){var i;return zd(this,n),i=t.call(this,r),Pr(Fo(i),"setArrowRef",function(s){i.arrowRef=s}),Pr(Fo(i),"setChildRef",function(s){i.childRef=s}),Pr(Fo(i),"setFloaterRef",function(s){i.floaterRef=s}),Pr(Fo(i),"setWrapperRef",function(s){i.wrapperRef=s}),Pr(Fo(i),"handleTransitionEnd",function(){var s=i.state.status,o=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:s===Gt.OPENING?Gt.OPEN:Gt.IDLE},function(){var u=i.state.status;o(u===Gt.OPEN?"open":"close",i.props)})}),Pr(Fo(i),"handleClick",function(){var s=i.props,o=s.event,u=s.open;if(!Ke.boolean(u)){var l=i.state,d=l.positionWrapper,h=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Hh({title:"click",data:[{event:o,status:h===Gt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Pr(Fo(i),"handleMouseEnter",function(){var s=i.props,o=s.event,u=s.open;if(!(Ke.boolean(u)||N1())){var l=i.state.status;i.event==="hover"&&l===Gt.IDLE&&(Hh({title:"mouseEnter",data:[{key:"originalEvent",value:o}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Pr(Fo(i),"handleMouseLeave",function(){var s=i.props,o=s.event,u=s.eventDelay,l=s.open;if(!(Ke.boolean(l)||N1())){var d=i.state,h=d.status,m=d.positionWrapper;i.event==="hover"&&(Hh({title:"mouseLeave",data:[{key:"originalEvent",value:o}],debug:i.debug}),u?[Gt.OPENING,Gt.OPEN].indexOf(h)!==-1&&!m&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(Gt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:Gt.INIT,statusWrapper:Gt.INIT},i._isMounted=!1,i.hasMounted=!1,zs()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return qd(n,[{key:"componentDidMount",value:function(){if(zs()){var i=this.state.positionWrapper,s=this.props,o=s.children,u=s.open,l=s.target;this._isMounted=!0,Hh({title:"init",data:{hasChildren:!!o,hasTarget:!!l,isControlled:Ke.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!o&&l&&Ke.boolean(u)}}},{key:"componentDidUpdate",value:function(i,s){if(zs()){var o=this.props,u=o.autoOpen,l=o.open,d=o.target,h=o.wrapperOptions,m=wle(s,this.state),g=m.changedFrom,b=m.changed;if(i.open!==l){var $;Ke.boolean(l)&&($=l?Gt.OPENING:Gt.CLOSING),this.toggle($)}(i.wrapperOptions.position!==h.position||i.target!==d)&&this.changeWrapperPosition(this.props),b("status",Gt.IDLE)&&l?this.toggle(Gt.OPEN):g("status",Gt.INIT,Gt.IDLE)&&u&&this.toggle(Gt.OPEN),this.popper&&b("status",Gt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(b("status",Gt.OPENING)||b("status",Gt.CLOSING))&&Lle(this.floaterRef,"transitionend",this.handleTransitionEnd),b("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){zs()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,o=this.state.positionWrapper,u=this.props,l=u.disableFlip,d=u.getPopper,h=u.hideArrow,m=u.offset,g=u.placement,b=u.wrapperOptions,$=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:Gt.IDLE});else if(s&&this.floaterRef){var w=this.options,D=w.arrow,S=w.flip,C=w.offset,T=WI(w,jle);new md(s,this.floaterRef,{placement:g,modifiers:Tn({arrow:Tn({enabled:!h,element:this.arrowRef},D),flip:Tn({enabled:!l,behavior:$},S),offset:Tn({offset:"0, ".concat(m,"px")},C)},T),onCreate:function(k){var N;if(i.popper=k,!((N=i.floaterRef)!==null&&N!==void 0&&N.isConnected)){i.setState({needsUpdate:!0});return}d(k,"floater"),i._isMounted&&i.setState({currentPlacement:k.placement,status:Gt.IDLE}),g!==k.placement&&setTimeout(function(){k.instance.update()},1)},onUpdate:function(k){i.popper=k;var N=i.state.currentPlacement;i._isMounted&&k.placement!==N&&i.setState({currentPlacement:k.placement})}})}if(o){var O=Ke.undefined(b.offset)?0:b.offset;new md(this.target,this.wrapperRef,{placement:b.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(O,"px")},flip:{enabled:!1}},onCreate:function(k){i.wrapperPopper=k,i._isMounted&&i.setState({statusWrapper:Gt.IDLE}),d(k,"wrapper"),g!==k.placement&&setTimeout(function(){k.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var s;(s=i.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var s=i.target,o=i.wrapperOptions;this.setState({positionWrapper:o.position&&!!s})}},{key:"toggle",value:function(i){var s=this.state.status,o=s===Gt.OPEN?Gt.CLOSING:Gt.OPENING;Ke.undefined(i)||(o=i),this.setState({status:o})}},{key:"debug",get:function(){var i=this.props.debug;return i||zs()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,s=i.disableHoverToClick,o=i.event;return o==="hover"&&N1()&&!s?"click":o}},{key:"options",get:function(){var i=this.props.options;return ys(Tle,i||{})}},{key:"styles",get:function(){var i=this,s=this.state,o=s.status,u=s.positionWrapper,l=s.statusWrapper,d=this.props.styles,h=ys(Nle(d),d);if(u){var m;[Gt.IDLE].indexOf(o)===-1||[Gt.IDLE].indexOf(l)===-1?m=h.wrapperPosition:m=this.wrapperPopper.styles,h.wrapper=Tn(Tn({},h.wrapper),m)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},u||(Kle.forEach(function(b){i.wrapperStyles[b]=g[b]}),h.wrapper=Tn(Tn({},h.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return h}},{key:"target",get:function(){if(!zs())return null;var i=this.props.target;return i?Ke.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,s=i.currentPlacement,o=i.positionWrapper,u=i.status,l=this.props,d=l.children,h=l.component,m=l.content,g=l.disableAnimation,b=l.footer,$=l.hideArrow,w=l.id,D=l.open,S=l.showCloseButton,C=l.style,T=l.target,O=l.title,M=A.createElement(QI,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},d),k={};return o?k.wrapperInPortal=M:k.wrapperAsChildren=M,A.createElement("span",null,A.createElement(GI,{hasChildren:!!d,id:w,placement:s,setRef:this.setFloaterRef,target:T,zIndex:this.styles.options.zIndex},A.createElement(JI,{component:h,content:m,disableAnimation:g,footer:b,handleClick:this.handleClick,hideArrow:$||s==="center",open:D,placement:s,positionWrapper:o,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:u,styles:this.styles,title:O}),k.wrapperInPortal),k.wrapperAsChildren)}}]),n}(A.Component);Pr(Y$,"propTypes",{autoOpen:it.bool,callback:it.func,children:it.node,component:z2(it.oneOfType([it.func,it.element]),function(e){return!e.content}),content:z2(it.node,function(e){return!e.component}),debug:it.bool,disableAnimation:it.bool,disableFlip:it.bool,disableHoverToClick:it.bool,event:it.oneOf(["hover","click"]),eventDelay:it.number,footer:it.node,getPopper:it.func,hideArrow:it.bool,id:it.oneOfType([it.string,it.number]),offset:it.number,open:it.bool,options:it.object,placement:it.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:it.bool,style:it.object,styles:it.object,target:it.oneOfType([it.object,it.string]),title:it.node,wrapperOptions:it.shape({offset:it.number,placement:it.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:it.bool})});Pr(Y$,"defaultProps",{autoOpen:!1,callback:q2,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:q2,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Ule=Object.defineProperty,zle=(e,t,n)=>t in e?Ule(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>zle(e,typeof t!="symbol"?t+"":t,n),tn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Ui={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Mt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ya(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function e9(e){return e?e.getBoundingClientRect():null}function qle(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((s,o)=>s-o),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function Bo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Wle(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function gd(e,t,n){if(!e)return bu();const r=DI(e);if(r){if(r.isSameNode(bu()))return n?document:bu();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",bu()}return r}function Gd(e,t){if(!e)return!1;const n=gd(e,t);return n?!n.isSameNode(bu()):!1}function Hle(e){return e.offsetParent!==document.body}function gc(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Wle(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?gc(e.parentNode,t):!1}function Gle(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 Yle(e,t,n){var r,i,s;const o=e9(e),u=gd(e,n),l=Gd(e,n),d=gc(e);let h=0,m=(r=o==null?void 0:o.top)!=null?r:0;if(l&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,b=(s=u==null?void 0:u.scrollTop)!=null?s:0;m=g-b}else u instanceof HTMLElement&&(h=u.scrollTop,!l&&!gc(e)&&(m+=h),u.isSameNode(bu())||(m+=bu().scrollTop));return Math.floor(m-t)}function Zle(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:s=0}=(r=DI(e))!=null?r:{};let o=e.getBoundingClientRect().top+s;i&&(Gd(e,n)||Hle(e))&&(o-=i);const u=Math.floor(o-t);return u<0?0:u}function bu(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Xle(e,t){const{duration:n,element:r}=t;return new Promise((i,s)=>{const{scrollTop:o}=r,u=e>o?e-o:o-e;uue.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?s(l):i())})}var $f=Vo.createPortal!==void 0;function t9(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 bp(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function qs(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let s=b2(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&r&&i&&(s=s.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(A.isValidElement(e)&&!Object.values(e.props).length&&bp(e.type)==="function"){const o=e.type({});s=qs(o,t)}else s=b2(n);return s}function Jle(e,t){return!ht.plainObject(e)||!ht.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Qle(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,s,o,u)=>s+s+o+o+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function W2(e){return e.disableBeacon||e.placement==="center"}function H2(){return!["chrome","safari","firefox","opera"].includes(t9())}function _a({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(s=>{ht.plainObject(s)&&s.key?i.apply(console,[s.key,s.value]):i.apply(console,[s])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function ece(e){return Object.keys(e)}function n9(e,...t){if(!ht.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function tce(e,...t){if(!ht.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function x4(e,t,n){const r=s=>s.replace("{step}",String(t)).replace("{steps}",String(n));if(bp(e)==="string")return r(e);if(!A.isValidElement(e))return e;const{children:i}=e.props;if(bp(i)==="string"&&i.includes("{step}"))return A.cloneElement(e,{children:r(i)});if(Array.isArray(i))return A.cloneElement(e,{children:i.map(s=>typeof s=="string"?r(s):x4(s,t,n))});if(bp(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return x4(s,t,n)}return e}function nce(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:s,target:o}=e;return!s.disableScrolling&&(!t||i||n===Mt.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!gc(o))&&r!==n&&[Mt.BEACON,Mt.TOOLTIP].includes(n)}var rce={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},r9={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},ice={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:r9,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},sce={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:[]},oce={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},xf={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},G2={borderRadius:4,position:"absolute"};function ace(e,t){var n,r,i,s,o;const{floaterProps:u,styles:l}=e,d=ys((n=t.floaterProps)!=null?n:{},u??{}),h=ys(l??{},(r=t.styles)!=null?r:{}),m=ys(oce,h.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:b}=m;window.innerWidth>480&&(b=380),"width"in m&&(b=typeof m.width=="number"&&window.innerWidth<m.width?window.innerWidth-30:m.width);const $={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:m.zIndex},w={beacon:{...xf,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(${Qle(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:{...xf,backgroundColor:m.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...xf,color:m.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...xf,color:m.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...xf,color:m.textColor,fontSize:14},overlay:{...$,backgroundColor:m.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...$},overlayLegacyCenter:{...$,backgroundColor:m.overlayColor},spotlight:{...G2,backgroundColor:"gray"},spotlightLegacy:{...G2,boxShadow:`0 0 0 9999px ${m.overlayColor}, ${m.spotlightShadow}`},floaterStyles:{arrow:{color:(o=(s=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:s.color)!=null?o:m.arrowColor},options:{zIndex:m.zIndex+100}},options:m};return ys(w,h)}function uce(e){return tce(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function wl(e,t){var n,r,i,s,o,u;const l=t??{},d=ys.all([ice,uce(e),l],{isMergeableObject:ht.plainObject}),h=ace(e,d),m=Gd(Bo(d.target),d.disableScrollParentFix),g=ys.all([rce,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=ys((i=g.styles)!=null?i:{},h.floaterStyles),g.offset+=(o=(s=e.spotlightPadding)!=null?s:d.spotlightPadding)!=null?o:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),m&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:ys.all([r9,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:g,styles:n9(h,"floaterStyles")}}function i9(e,t=!1){return ht.plainObject(e)?e.target?!0:(_a({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(_a({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function Y2(e,t=!1){return ht.array(e)?e.every(n=>i9(n,t)):(_a({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var s9={action:"init",controlled:!1,index:0,lifecycle:Mt.INIT,origin:null,size:0,status:Nt.IDLE},Z2=ece(n9(s9,"controlled","size")),lce=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:s,status:o}=this.getState(),u={size:i.length,status:o};this.data.set("steps",i),o===Nt.WAITING&&!s&&i.length&&(u.status=Nt.RUNNING),this.setState(u)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,s)=>{i==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:s,status:o}=this.getState();o===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.CLOSE,index:s+1,origin:i})})}),mt(this,"go",i=>{const{controlled:s,status:o}=this.getState();if(s||o!==Nt.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:tn.GO,index:i}),status:u?o:Nt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:s}=this.getState();s===Nt.RUNNING&&this.setState(this.getNextState({action:tn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.UPDATE,lifecycle:Mt.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:s}=this.getState();s===Nt.RUNNING&&this.setState({...this.getNextState({action:tn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:tn.RESET,index:0}),status:i?Nt.RUNNING:Nt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Nt.RUNNING&&this.setState({action:tn.SKIP,lifecycle:Mt.INIT,status:Nt.SKIPPED})}),mt(this,"start",i=>{const{index:s,size:o}=this.getState();this.setState({...this.getNextState({action:tn.START,index:ht.number(i)?i:s},!0),status:o?Nt.RUNNING:Nt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:s,status:o}=this.getState();[Nt.FINISHED,Nt.SKIPPED].includes(o)||this.setState({...this.getNextState({action:tn.STOP,index:s+(i?1:0)}),status:Nt.PAUSED})}),mt(this,"update",i=>{var s,o;if(!Jle(i,Z2))throw new Error(`State is not valid. Valid keys: ${Z2.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(s=i.action)!=null?s:tn.UPDATE,origin:(o=i.origin)!=null?o:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:tn.INIT,controlled:ht.number(n),continuous:t,index:ht.number(n)?n:0,lifecycle:Mt.INIT,origin:null,status:r.length?Nt.READY:Nt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...s9}}getNextState(e,t=!1){var n,r,i,s,o;const{action:u,controlled:l,index:d,size:h,status:m}=this.getState(),g=ht.number(e.index)?e.index:d,b=l&&!t?d:Math.min(Math.max(g,0),h);return{action:(n=e.action)!=null?n:u,controlled:l,index:b,lifecycle:(r=e.lifecycle)!=null?r:Mt.INIT,origin:(i=e.origin)!=null?i:null,size:(s=e.size)!=null?s:h,status:b===h?Nt.FINISHED:(o=e.status)!=null?o:m}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:s,origin:o=null,size:u,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",s),this.store.set("origin",o),this.store.set("size",u),this.store.set("status",l),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function cce(e){return new lce(e)}function fce({styles:e}){return Ye.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var dce=fce,hce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Mt.INIT,Mt.BEACON,Mt.COMPLETE,Mt.ERROR];return t||(e?r.includes(n):n!==Mt.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:s,width:o}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=u>=s&&u<=s+n,m=l>=r&&l<=r+o&&d;m!==t&&this.updateState({mouseOverSpotlight:m})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=Bo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else gc(t,"sticky")&&this.updateState({})}),mt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Bo(r);this.scrollParent=gd(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Gd(i,!0)&&_a({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:s}=this.props,{changed:o}=um(e,this.props);if(o("target")||o("disableScrollParentFix")){const u=Bo(s);this.scrollParent=gd(u??document.body,n,!0)}o("lifecycle",Mt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Mt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Mt.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return H2()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:qle(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:s,spotlightPadding:o=0,styles:u,target:l}=this.props,d=Bo(l),h=e9(d),m=gc(d),g=Yle(d,o,i);return{...H2()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=h==null?void 0:h.height)!=null?e:0)+o*2),left:Math.round(((t=h==null?void 0:h.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:s?"none":"auto",position:m?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=h==null?void 0:h.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:s}=this;if(r())return null;let o=n!=="center"&&e&&Ye.createElement(dce,{styles:s});if(t9()==="safari"){const{mixBlendMode:u,zIndex:l,...d}=i;o=Ye.createElement("div",{style:{...d}},o),delete i.backgroundColor}return Ye.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},o)}},pce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;ya()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),$f||this.renderReact15())}componentDidUpdate(){ya()&&($f||this.renderReact15())}componentWillUnmount(){!ya()||!this.node||($f||Gh.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ya())return;const{children:e}=this.props;this.node&&Gh.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ya()||!$f)return null;const{children:e}=this.props;return this.node?Gh.createPortal(e,this.node):null}render(){return $f?this.renderReact16():null}},mce=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let s=document.activeElement?r.indexOf(document.activeElement):0;s===-1||!i&&s+1===r.length?s=0:i&&s===0?s=r.length-1:s+=i?-1:1,r[s].focus()}),mt(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),mt(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},gce=class extends Ye.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
179
|
+
@keyframes joyride-beacon-inner {
|
|
180
|
+
20% {
|
|
181
|
+
opacity: 0.9;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
90% {
|
|
185
|
+
opacity: 0.7;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@keyframes joyride-beacon-outer {
|
|
190
|
+
0% {
|
|
191
|
+
transform: scale(1);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
45% {
|
|
195
|
+
opacity: 0.7;
|
|
196
|
+
transform: scale(0.75);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
100% {
|
|
200
|
+
opacity: 0.9;
|
|
201
|
+
transform: scale(1);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ht.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ht.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:s,size:o,step:u,styles:l}=this.props,d=qs(i.open),h={"aria-label":d,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=Ye.createElement(g,{continuous:t,index:n,isLastStep:r,size:o,step:u,...h})}else m=Ye.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...h},Ye.createElement("span",{style:l.beaconInner}),Ye.createElement("span",{style:l.beaconOuter}));return m}};function vce({styles:e,...t}){const{color:n,height:r,width:i,...s}=e;return A.createElement("button",{style:s,type:"button",...t},A.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},A.createElement("g",null,A.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var yce=vce;function bce(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:s,skipProps:o,step:u,tooltipProps:l}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:$,title:w}=u,D={};return D.primary=Ye.createElement("button",{"data-test-id":"button-primary",style:$.buttonNext,type:"button",...s}),b&&!i&&(D.skip=Ye.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:$.buttonSkip,type:"button",...o})),!h&&r>0&&(D.back=Ye.createElement("button",{"data-test-id":"button-back",style:$.buttonBack,type:"button",...t})),D.close=!m&&Ye.createElement(yce,{"data-test-id":"button-close",styles:$.buttonClose,...n}),Ye.createElement("div",{key:"JoyrideTooltip","aria-label":qs(w??d),className:"react-joyride__tooltip",style:$.tooltip,...l},Ye.createElement("div",{style:$.tooltipContainer},w&&Ye.createElement("h1",{"aria-label":qs(w),style:$.tooltipTitle},w),Ye.createElement("div",{style:$.tooltipContent},d)),!g&&Ye.createElement("div",{style:$.tooltipFooter},Ye.createElement("div",{style:$.tooltipFooterSpacer},D.skip),D.back,D.primary),D.close)}var $ce=bce,xce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{back:o,close:u,last:l,next:d,nextLabelWithProgress:h,skip:m}=s.locale,g=qs(o),b=qs(u),$=qs(l),w=qs(d),D=qs(m);let S=u,C=b;if(e){if(S=d,C=w,s.showProgress&&!n){const T=qs(h,{step:t+1,steps:i});S=x4(h,t+1,i),C=T}n&&(S=l,C=$)}return{backProps:{"aria-label":g,children:o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":C,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":D,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:D},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:s}=this.props,{beaconComponent:o,tooltipComponent:u,...l}=s;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},m=u;d=Ye.createElement(m,{...h})}else d=Ye.createElement($ce,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:s});return d}},wce=class extends Ye.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Mt.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:s,store:o}=this.props;t==="wrapper"?o.setPopper("beacon",e):o.setPopper("tooltip",e),o.getPopper("beacon")&&(o.getPopper("tooltip")||s.placement==="center")&&i===Mt.INIT&&o.update({action:r,lifecycle:Mt.READY}),(n=s.floaterProps)!=null&&n.getPopper&&s.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:s}=this.props;return Ye.createElement(xce,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;_a({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:s,debug:o,helpers:u,index:l,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:$,changedFrom:w}=um(e,this.props),D=u.info(),S=i&&n!==tn.CLOSE&&(l>0||n===tn.PREV),C=$("action")||$("index")||$("lifecycle")||$("status"),T=w("lifecycle",[Mt.TOOLTIP,Mt.INIT],Mt.INIT),O=$("action",[tn.NEXT,tn.PREV,tn.SKIP,tn.CLOSE]),M=s&&l===e.index;if(O&&(T||M)&&r({...D,index:e.index,lifecycle:Mt.COMPLETE,step:e.step,type:Ui.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&$("index")&&n!==tn.START&&d===Mt.INIT&&b.update({lifecycle:Mt.READY}),C){const k=Bo(g.target),N=!!k;N&&Gle(k)?(w("status",Nt.READY,Nt.RUNNING)||w("lifecycle",Mt.INIT,Mt.READY))&&r({...D,step:g,type:Ui.STEP_BEFORE}):(console.warn(N?"Target not visible":"Target not mounted",g),r({...D,type:Ui.TARGET_NOT_FOUND,step:g}),s||b.update({index:l+(n===tn.PREV?-1:1)}))}w("lifecycle",Mt.INIT,Mt.READY)&&b.update({lifecycle:W2(g)||S?Mt.TOOLTIP:Mt.BEACON}),$("index")&&_a({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:o}),$("lifecycle",Mt.BEACON)&&r({...D,step:g,type:Ui.BEACON}),$("lifecycle",Mt.TOOLTIP)&&(r({...D,step:g,type:Ui.TOOLTIP}),h&&this.tooltip&&(this.scope=new mce(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[Mt.TOOLTIP,Mt.INIT],Mt.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return W2(t)||e===Mt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:s,step:o}=this.props,u=Bo(o.target);return!i9(o)||!ht.domElement(u)?null:Ye.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ye.createElement(Y$,{...o.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:o.placement,target:o.target},Ye.createElement(gce,{beaconComponent:o.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:o.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:s,step:o,styles:o.styles})))}},o9=class extends Ye.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",o=>{const{callback:u}=this.props;ht.function(u)&&u(o)}),mt(this,"handleKeyboard",o=>{const{index:u,lifecycle:l}=this.state,{steps:d}=this.props,h=d[u];l===Mt.TOOLTIP&&o.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:o}=this.state,{steps:u}=this.props;wl(this.props,u[o]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",o=>{this.setState(o)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=cce({...e,controlled:r&&ht.number(i)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;_a({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ya())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;Y2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ya())return;const{action:n,controlled:r,index:i,status:s}=this.state,{debug:o,run:u,stepIndex:l,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:$,stop:w,update:D}=this.store,{changed:S}=um(e,this.props),{changed:C,changedFrom:T}=um(t,this.state),O=wl(this.props,d[i]),M=!qr(m,d),k=ht.number(l)&&S("stepIndex"),N=Bo(O.target);if(M&&(Y2(d,o)?b(d):console.warn("Steps are not valid",d)),S("run")&&(u?$(l):w()),k){let oe=ht.number(h)&&h<l?tn.NEXT:tn.PREV;n===tn.STOP&&(oe=tn.START),[Nt.FINISHED,Nt.SKIPPED].includes(s)||D({action:n===tn.CLOSE?tn.CLOSE:oe,index:l,lifecycle:Mt.INIT})}!r&&s===Nt.RUNNING&&i===0&&!N&&(this.store.update({index:i+1}),this.callback({...this.state,type:Ui.TARGET_NOT_FOUND,step:O}));const F={...this.state,index:i,step:O};if(C("action",[tn.NEXT,tn.PREV,tn.SKIP,tn.CLOSE])&&C("status",Nt.PAUSED)){const oe=wl(this.props,d[t.index]);this.callback({...F,index:t.index,lifecycle:Mt.COMPLETE,step:oe,type:Ui.STEP_AFTER})}if(C("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=wl(this.props,d[t.index]);r||this.callback({...F,index:t.index,lifecycle:Mt.COMPLETE,step:oe,type:Ui.STEP_AFTER}),this.callback({...F,type:Ui.TOUR_END,step:oe,index:t.index}),g()}else T("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...F,type:Ui.TOUR_START}):(C("status")||C("action",tn.RESET))&&this.callback({...F,type:Ui.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:s=!1,scrollDuration:o,scrollOffset:u=20,scrollToFirstStep:l=!1,steps:d}=this.props,h=wl(this.props,d[t]),m=Bo(h.target),g=nce({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Gd(m,s),$=gd(m,s);let w=Math.floor(Zle(m,u,s))||0;_a({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const D=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(n===Mt.BEACON&&D){const{offsets:C,placement:T}=D;!["bottom"].includes(T)&&!b&&(w=Math.floor(C.popper.top-u))}else if(n===Mt.TOOLTIP&&S){const{flipped:C,offsets:T,placement:O}=S;["top","right","left"].includes(O)&&!C&&!b?w=Math.floor(T.popper.top-u):w-=h.spotlightPadding}w=w>=0?w:0,r===Nt.RUNNING&&Xle(w,{element:$,duration:o}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!ya())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:s,scrollToFirstStep:o=!1,steps:u}=this.props,l=n===Nt.RUNNING,d={};if(l&&u[e]){const h=wl(this.props,u[e]);d.step=Ye.createElement(wce,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:s,shouldScroll:!h.disableScrolling&&(e!==0||o),step:h,store:this.store}),d.overlay=Ye.createElement(pce,{id:"react-joyride-portal"},Ye.createElement(hce,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ye.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(o9,"defaultProps",sce);var Cce=o9;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=qR;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=F5;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Dd;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=cq;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=ir;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=VH;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=UR;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Rr;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=VW;exports.$293f70390ea03370$export$497855f14858aa34=FH;exports.$32489daedd52963e$export$1315d136e6f7581=qH;exports.$337b884510726a0d$export$c6fdb837b070b4ff=mH;exports.$36a0ac60f04457c5$export$136073280381448e=PW;exports.$3c0fc76039f1c516$export$60e84778edff6d26=MF;exports.$40df3f8667284809$export$d55e7ee900f34e93=YH;exports.$46a4342aab3d8076$export$87e0539f600c24e5=DW;exports.$47b897dc8cdb026b$export$8d15029008292ae=UW;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=jW;exports.$6057a3d2a53a12fd$export$42df105a73306d51=jH;exports.$64244302c3013299$export$dd0bbc9b26defe37=Yq;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=lW;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=GH;exports.$93c38a5e28be6249$export$e50a61c1de9f574=mG;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=EW;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=ZH;exports.$a916eb452884faea$export$b7a616150fdb9f44=uW;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=nG;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=uG;exports.$bb77f239b46e8c72$export$3274cf84b703fff=l_;exports.$bcca50147b47f54d$export$56b2c08e277f365=KW;exports.$c132121280ec012d$export$50eacbbf140a3141=EH;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=AH;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=LH;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=AW;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=gG;exports.$f2f8a6077418541e$export$542a6fd13ac93354=dH;exports.$fae977aafc393c5c$export$588937bcd60ade55=Sq;exports.$fae977aafc393c5c$export$6b862160d295c8e=Cq;exports.ACTIONS=tn;exports.AdvancedImage=zZ;exports.Cloudinary=VX;exports.Controller=CU;exports.EVENTS=Ui;exports.FormProvider=$U;exports.LazyMotion=$ie;exports.Lottie=hie;exports.M=vs;exports.R=Lu;exports.ReorderGroup=Jre;exports.ReorderItem=nie;exports.STATUS=Nt;exports._=vU;exports.autoUpdate=zK;exports.components_default=Cce;exports.dayjs=bG;exports.dayjs_minExports=RF;exports.domAnimation=zae;exports.dt=wP;exports.ee=IF;exports.flip=XK;exports.isNumber=SG;exports.lazyload=LZ;exports.localizedFormat=oie;exports.lodashExports=UP;exports.lt=A4;exports.m=hse;exports.mt=oK;exports.nt=rK;exports.o=lie;exports.offset=YK;exports.ot=iK;exports.placeholder=jZ;exports.prismExports=$Q;exports.q=c3;exports.shift=ZK;exports.some=yQ;exports.useFieldArray=AU;exports.useFloating=cU;exports.useFloating$1=BP;exports.useFocus=fU;exports.useForm=IU;exports.useFormContext=$d;exports.useHover=aU;exports.useInteractions=dU;exports.useRole=pU;exports.useWatch=QP;
|